]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
gdb: remove local extern declaration of cli_styling
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * ui-file.c: Include cli/cli-style.h.
4 (term_cli_styling): Remove cli_styling declaration.
5
6 2019-09-18 Alan Modra <amodra@gmail.com>
7
8 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
9 to bfd_asymbol_section.
10
11 2019-09-18 Alan Modra <amodra@gmail.com>
12
13 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
14 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
15 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
16
17 2019-09-18 Alan Modra <amodra@gmail.com>
18
19 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
20 * spu-linux-nat.c (spu_bfd_open): Likewise.
21
22 2019-09-18 Christian Biesinger <cbiesinger@google.com>
23
24 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
25 to bool to match definition in dwarf2read.c.
26
27 2019-09-17 Christian Biesinger <cbiesinger@google.com>
28
29 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
30 (print_signatures): Likewise.
31 (trust_pad_over_xvs): Likewise.
32 * arch/aarch64-insn.c (aarch64_debug): Likewise.
33 * arch/aarch64-insn.h (aarch64_debug): Likewise.
34 * arm-linux-nat.c (arm_apcs_32): Likewise.
35 * arm-linux-tdep.c (arm_apcs_32): Likewise.
36 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
37 * arm-tdep.c (arm_debug): Likewise.
38 (arm_apcs_32): Likewise.
39 * auto-load.c (debug_auto_load): Likewise.
40 (auto_load_gdb_scripts): Likewise.
41 (global_auto_load): Likewise.
42 (auto_load_local_gdbinit): Likewise.
43 (auto_load_local_gdbinit_loaded): Likewise.
44 * auto-load.h (global_auto_load): Likewise.
45 (auto_load_local_gdbinit): Likewise.
46 (auto_load_local_gdbinit_loaded): Likewise.
47 * breakpoint.c (disconnected_dprintf): Likewise.
48 (breakpoint_proceeded): Likewise.
49 (automatic_hardware_breakpoints): Likewise.
50 (always_inserted_mode): Likewise.
51 (target_exact_watchpoints): Likewise.
52 (_initialize_breakpoint): Update.
53 * breakpoint.h (target_exact_watchpoints): Change to bool.
54 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
55 * cli/cli-cmds.c (trace_commands): Likewise.
56 * cli/cli-cmds.h (trace_commands): Likewise.
57 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
58 to bool*.
59 * cli/cli-logging.c (logging_overwrite): Change to bool.
60 (logging_redirect): Likewise.
61 (debug_redirect): Likewise.
62 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
63 (struct boolean_option_def) <get_var_address_cb_>: Change return type
64 to bool.
65 <boolean_option_def>: Update.
66 (struct flag_option_def): Change default type of Context to bool
67 from int.
68 <flag_option_def>: Change return type of var_address_cb_ to bool*.
69 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
70 (get_setshow_command_value_string): Likewise.
71 * cli/cli-style.c (cli_styling): Change to bool.
72 (source_styling): Likewise.
73 * cli/cli-style.h (source_styling): Likewise.
74 (cli_styling): Likewise.
75 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
76 to bool.
77 * command.h (var_types): Update comment.
78 (add_setshow_boolean_cmd): Change int* var argument to bool*.
79 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
80 bool.
81 (debug_compile_cplus_scopes): Likewise.
82 * compile/compile-internal.h (compile_debug): Likewise.
83 * compile/compile.c (compile_debug): Likewise.
84 (struct compile_options) <raw>: Likewise.
85 * cp-support.c (catch_demangler_crashes): Likewise.
86 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
87 (usr_cmd_cris_dwarf2_cfi): Likewise.
88 * csky-tdep.c (csky_debug): Likewise.
89 * darwin-nat.c (enable_mach_exceptions): Likewise.
90 * dcache.c (dcache_enabled_p): Likewise.
91 * defs.h (info_verbose): Likewise.
92 * demangle.c (demangle): Likewise.
93 (asm_demangle): Likewise.
94 * dwarf-index-cache.c (debug_index_cache): Likewise.
95 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
96 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
97 * dwarf2read.c (check_physname): Likewise.
98 (use_deprecated_index_sections): Likewise.
99 (dwarf_always_disassemble): Likewise.
100 * eval.c (overload_resolution): Likewise.
101 * event-top.c (set_editing_cmd_var): Likewise.
102 (exec_done_display_p): Likewise.
103 * event-top.h (set_editing_cmd_var): Likewise.
104 (exec_done_display_p): Likewise.
105 * exec.c (write_files): Likewise.
106 * fbsd-nat.c (debug_fbsd_lwp): Likewise
107 (debug_fbsd_nat): Likewise.
108 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
109 Likewise.
110 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
111 <backtrace_past_entry> Likewise.
112 * gdb-demangle.h (demangle): Likewise.
113 (asm_demangle): Likewise.
114 * gdb_bfd.c (bfd_sharing): Likewise.
115 * gdbcore.h (write_files): Likewise.
116 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
117 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
118 * gdbthread.h (print_thread_events): Likewise.
119 * gdbtypes.c (opaque_type_resolution): Likewise.
120 (strict_type_checking): Likewise.
121 * gnu-nat.c (gnu_debug_flag): Likewise.
122 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
123 * guile/scm-param.c (pascm_variable): Add boolval.
124 (add_setshow_generic): Update.
125 (pascm_param_value): Update.
126 (pascm_set_param_value_x): Update.
127 * hppa-tdep.c (hppa_debug): Change to bool..
128 * infcall.c (may_call_functions_p): Likewise.
129 (coerce_float_to_double_p): Likewise.
130 (unwind_on_signal_p): Likewise.
131 (unwind_on_terminating_exception_p): Likewise.
132 * infcmd.c (startup_with_shell): Likewise.
133 * inferior.c (print_inferior_events): Likewise.
134 * inferior.h (startup_with_shell): Likewise.
135 (print_inferior_events): Likewise.
136 * infrun.c (step_stop_if_no_debug): Likewise.
137 (detach_fork): Likewise.
138 (debug_displaced): Likewise.
139 (disable_randomization): Likewise.
140 (non_stop): Likewise.
141 (non_stop_1): Likewise.
142 (observer_mode): Likewise.
143 (observer_mode_1): Likewise.
144 (set_observer_mode): Update.
145 (sched_multi): Change to bool.
146 * infrun.h (debug_displaced): Likewise.
147 (sched_multi): Likewise.
148 (step_stop_if_no_debug): Likewise.
149 (non_stop): Likewise.
150 (disable_randomization): Likewise.
151 * linux-tdep.c (use_coredump_filter): Likewise.
152 (dump_excluded_mappings): Likewise.
153 * linux-thread-db.c (auto_load_thread_db): Likewise.
154 (check_thread_db_on_load): Likewise.
155 * main.c (captured_main_1): Update.
156 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
157 xx2_opt, boolean_opt>: Change to bool.
158 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
159 * maint.c (maintenance_profile_p): Likewise.
160 (per_command_time): Likewise.
161 (per_command_space): Likewise.
162 (per_command_symtab): Likewise.
163 * memattr.c (inaccessible_by_default): Likewise.
164 * mi/mi-main.c (mi_async): Likewise.
165 (mi_async_1): Likewise.
166 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
167 * nat/fork-inferior.h (startup_with_shell): Likewise.
168 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
169 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
170 * nios2-tdep.c (nios2_debug): Likewise.
171 * or1k-tdep.c (or1k_debug): Likewise.
172 * parse.c (parser_debug): Likewise.
173 * parser-defs.h (parser_debug): Likewise.
174 * printcmd.c (print_symbol_filename): Likewise.
175 * proc-api.c (procfs_trace): Likewise.
176 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
177 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
178 (set_parameter_value): Update.
179 (add_setshow_generic): Update.
180 * python/py-value.c (copy_py_bool_obj): Change argument from int*
181 to bool*.
182 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
183 int*.
184 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
185 * record-btrace.c (record_btrace_target::store_registers): Update.
186 * record-full.c (record_full_memory_query): Change to bool.
187 (record_full_stop_at_limit): Likewise.
188 * record-full.h (record_full_memory_query): Likewise.
189 * remote-notif.c (notif_debug): Likewise.
190 * remote-notif.h (notif_debug): Likewise.
191 * remote.c (use_range_stepping): Likewise.
192 (interrupt_on_connect): Likewise.
193 (remote_break): Likewise.
194 * ser-tcp.c (tcp_auto_retry): Likewise.
195 * ser-unix.c (serial_hwflow): Likewise.
196 * skip.c (debug_skip): Likewise.
197 * solib-aix.c (solib_aix_debug): Likewise.
198 * spu-tdep.c (spu_stop_on_load_p): Likewise.
199 (spu_auto_flush_cache_p): Likewise.
200 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
201 Likewise.
202 (struct info_print_options) <quiet>: Likewise.
203 * symfile-debug.c (debug_symfile): Likewise.
204 * symfile.c (auto_solib_add): Likewise.
205 (separate_debug_file_debug): Likewise.
206 * symfile.h (auto_solib_add): Likewise.
207 (separate_debug_file_debug): Likewise.
208 * symtab.c (basenames_may_differ): Likewise.
209 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
210 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
211 (struct info_types_options) <quiet>: Likewise.
212 * symtab.h (demangle): Likewise.
213 (basenames_may_differ): Likewise.
214 * target-dcache.c (stack_cache_enabled_1): Likewise.
215 (code_cache_enabled_1): Likewise.
216 * target.c (trust_readonly): Likewise.
217 (may_write_registers): Likewise.
218 (may_write_memory): Likewise.
219 (may_insert_breakpoints): Likewise.
220 (may_insert_tracepoints): Likewise.
221 (may_insert_fast_tracepoints): Likewise.
222 (may_stop): Likewise.
223 (auto_connect_native_target): Likewise.
224 (target_stop_and_wait): Update.
225 (target_async_permitted): Change to bool.
226 (target_async_permitted_1): Likewise.
227 (may_write_registers_1): Likewise.
228 (may_write_memory_1): Likewise.
229 (may_insert_breakpoints_1): Likewise.
230 (may_insert_tracepoints_1): Likewise.
231 (may_insert_fast_tracepoints_1): Likewise.
232 (may_stop_1): Likewise.
233 * target.h (target_async_permitted): Likewise.
234 (may_write_registers): Likewise.
235 (may_write_memory): Likewise.
236 (may_insert_breakpoints): Likewise.
237 (may_insert_tracepoints): Likewise.
238 (may_insert_fast_tracepoints): Likewise.
239 (may_stop): Likewise.
240 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
241 (make_thread_apply_all_options_def_group): Change argument from int*
242 to bool*.
243 (thread_apply_all_command): Update.
244 (print_thread_events): Change to bool.
245 * top.c (confirm): Likewise.
246 (command_editing_p): Likewise.
247 (history_expansion_p): Likewise.
248 (write_history_p): Likewise.
249 (info_verbose): Likewise.
250 * top.h (confirm): Likewise.
251 (history_expansion_p): Likewise.
252 * tracepoint.c (disconnected_tracing): Likewise.
253 (circular_trace_buffer): Likewise.
254 * typeprint.c (print_methods): Likewise.
255 (print_typedefs): Likewise.
256 * utils.c (debug_timestamp): Likewise.
257 (sevenbit_strings): Likewise.
258 (pagination_enabled): Likewise.
259 * utils.h (sevenbit_strings): Likewise.
260 (pagination_enabled): Likewise.
261 * valops.c (overload_resolution): Likewise.
262 * valprint.h (struct value_print_options) <prettyformat_arrays,
263 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
264 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
265 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
266 Likewise.
267 * windows-nat.c (new_console): Likewise.
268 (cygwin_exceptions): Likewise.
269 (new_group): Likewise.
270 (debug_exec): Likewise.
271 (debug_events): Likewise.
272 (debug_memory): Likewise.
273 (debug_exceptions): Likewise.
274 (useshell): Likewise.
275 * windows-tdep.c (maint_display_all_tib): Likewise.
276 * xml-support.c (debug_xml): Likewise.
277
278 2019-09-17 Mike Gulick <mgulick@mathworks.com>
279
280 * source.c (prepare_path_for_appending): New function.
281 (openp): Make use of new function.
282 (find_and_open_source): Search for the compilation directory and
283 source file as a relative path beneath the directory search path.
284
285 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
286
287 * source-cache.c (source_cache::get_line_charpos): Catch
288 exceptions and return false, this matches the behaviour documented
289 in the header file.
290
291 2019-09-17 Joel Brobecker <brobecker@adacore.com>
292
293 * ada-tasks.c (info_task): Remove quoting of the task's name.
294
295 2019-09-16 Christian Biesinger <cbiesinger@google.com>
296
297 * symfile.c (auto_solib_add): Replace comment with a reference
298 to the header file.
299
300 2019-09-14 Christian Biesinger <cbiesinger@google.com>
301
302 * NEWS: Mention that gdb can now be compiled with Python 3
303 on Windows.
304
305 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
306
307 * maint.c (maint_print_section_data::maint_print_section_data):
308 Force use of 'float log10 (float)' by casting the argument to
309 float.
310
311 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
312
313 * maint.c: Add 'cmath' include.
314 (struct maint_print_section_data): New structure.
315 (print_section_index): New function.
316 (print_bfd_section_info): Add header comment, small whitespace
317 cleanup, and update to call new print_section_index function.
318 (print_objfile_section_info): Likewise.
319 (maint_obj_section_from_bfd_section): New function.
320 (print_bfd_section_info_maybe_relocated): New function.
321 (maintenance_info_sections): Add header comment, always use
322 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
323
324 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
325
326 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
327 inner scope, add check that the objfile has psymtabs before
328 checking psymtabs_addrmap.
329 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
330
331 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
332
333 * NEWS: Announce that Ada task names are now shown at more places,
334 and between quotes (except in info task output).
335 * gdb/ada-tasks.c (task_to_str): New function.
336 (display_current_task_id): Call task_to_str.
337 (task_command_1): Likewise.
338 (print_ada_task_info): In non-mi mode, Properly align headers and data
339 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
340
341 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
342
343 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
344 prstatus.pr_lwp.pr_info instead of making it up.
345
346 2019-09-11 Christian Biesinger <cbiesinger@google.com>
347
348 * auto-load.c (auto_load_expand_dir_vars): Update.
349 * defs.h (gdb_datadir): Change to std::string.
350 (python_libdir): Likewise.
351 (relocate_gdb_directory): Change return type to std::string.
352 * guile/guile.c (gdbscm_data_directory): Update.
353 (initialize_scheme_side): Update.
354 * jit.c (jit_reader_dir): Change to std::string.
355 (jit_reader_load_command): Update.
356 * main.c (gdb_datadir): Change to std::string.
357 (python_libdir): Likewise.
358 (set_gdb_data_directory): Update.
359 (relocate_path): Change to return std::string.
360 (relocate_gdb_directory): Change to return std::string.
361 (relocate_gdbinit_path_maybe_in_datadir): Update.
362 (captured_main_1): Update.
363 * python/python.c (do_start_initialization): Update.
364 * top.c (show_gdb_datadir): Update.
365 * xml-syscall.c (xml_init_syscalls_info): Update.
366 (init_syscalls_info): Update.
367
368 2019-09-11 Christian Biesinger <cbiesinger@google.com>
369
370 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
371 out of get_init_files.
372 (get_init_files): Update.
373
374 2019-09-11 Christian Biesinger <cbiesinger@google.com>
375
376 * main.c (get_init_files): Change to use std::string.
377 (captured_main_1): Update.
378 (print_gdb_help): Update.
379
380 2019-09-11 Ali Tamur <tamur@google.com>
381
382 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
383 implementation.
384
385 2019-09-11 Christian Biesinger <cbiesinger@google.com>
386
387 * dbxread.c (read_dbx_symtab): Update.
388 * dwarf2read.c (load_partial_dies): Update.
389 * mdebugread.c (parse_partial_symbols): Update.
390 (handle_psymbol_enumerators): Update.
391 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
392 * psymtab.c (add_psymbol_to_bcache): Likewise.
393 (add_psymbol_to_list): Likewise.
394 * symtab.c (symbol_set_names): Likewise.
395 * symtab.h (symbol_set_names): Likewise.
396 * xcoffread.c (scan_xcoff_symtab): Update.
397
398 2019-09-11 Tom Tromey <tom@tromey.com>
399
400 * symfile-mem.c (symbol_file_add_from_memory): Use
401 bfd_set_filename.
402 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
403 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
404
405 2019-09-10 Tom Tromey <tromey@adacore.com>
406
407 * dwarf-index-write.c (write_psymbols): Extend error message.
408 (debug_names::insert): Add Ada code.
409 (debug_names::write_psymbols): Remove Ada check.
410 (debug_names) <m_string_obstack>: New member.
411 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
412 (gdb_index_symbol_name_matcher::matches): Remove.
413 (mapped_index_base::find_name_components_bounds): Add "lang"
414 parameter.
415 (mapped_index_base::build_name_components): Also split names
416 according to Ada syntax.
417 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
418 type of "match_callback".
419 (check_match, check_find_bounds_finds)
420 (dw2_expand_symtabs_matching): Update.
421 (dw2_debug_names_iterator): Add new constructor.
422 (dw2_debug_names_map_matching_symbols): New function.
423 (dw2_debug_names_expand_symtabs_matching): Update.
424 (dwarf2_debug_names_functions): Use
425 dw2_debug_names_map_matching_symbols.
426
427 2019-09-10 Tom Tromey <tromey@adacore.com>
428
429 * dwarf2read.c (dw2_get_file_names_reader): Add the
430 CU's file name to the results.
431
432 2019-09-10 Tom Tromey <tromey@adacore.com>
433
434 * ada-lang.c (add_nonlocal_symbols): Combine calls to
435 map_matching_symbols. Update.
436 * dwarf2read.c (dw2_map_matching_symbols): Update.
437 * psymtab.c (match_partial_symbol): Change type; update.
438 (psym_map_matching_symbols): Likewise.
439 * symfile-debug.c (debug_qf_map_matching_symbols): Change
440 type; update.
441 * symfile.h (struct quick_symbol_functions)
442 <map_matching_symbols>: Change "name" to be a lookup_name_info.
443 Remove "match".
444
445 2019-09-10 Tom Tromey <tromey@adacore.com>
446
447 * psymtab.c (map_block): Remove.
448 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
449 * symtab.c (iterate_over_symbols_terminated): New function.
450 * symtab.c (iterate_over_symbols_terminated): Declare.
451
452 2019-09-10 Tom Tromey <tromey@adacore.com>
453
454 * ada-lang.c (ada_iterate_over_symbols): Return bool.
455 * language.h (struct language_defn) <la_iterate_over_symbols>:
456 Return bool.
457 * symtab.c (iterate_over_symbols): Return bool.
458 * symtab.h (iterate_over_symbols): Return bool.
459
460 2019-09-10 Tom Tromey <tromey@adacore.com>
461
462 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
463 (add_nonlocal_symbols): Update.
464 * dwarf2read.c (dw2_map_matching_symbols): Change type.
465 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
466 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
467 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
468 Change type of "callback". Remove "data".
469
470
471 2019-09-09 Ali Tamur <tamur@google.com>
472
473 * dwarf2read.c (comp_unit_head): Update comment.
474 (dwarf2_dwo_name): New function declaration.
475 (dwarf_unit_type_name): New function declaration.
476 (read_comp_unit_head): Add support for new compilation units,
477 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
478 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
479 (currently named as "signature") in their header. Also clarify error
480 messages.
481 (lookup_dwo_id): New function. Returns the dwo id of the given
482 compile unit.
483 (lookup_dwo_unit): Use the new lookup_dwo_id function.
484 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
485 functions.
486 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
487 (dwarf2_dwo_name): Get the dwo name if present.
488 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
489 purposes.
490
491 2019-09-09 Tom Tromey <tom@tromey.com>
492
493 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
494
495 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
496
497 * python/python.c (do_start_initialization): Make progname_copy static,
498 to avoid a leak report.
499
500 2019-09-08 Tom Tromey <tom@tromey.com>
501
502 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
503
504 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
505
506 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
507 Change type to gdb::optional<block_enum>.
508 (dw2_symtab_iter_init): Change block_index parameter type
509 to gdb::optional<block_enum>.
510 (dw2_lookup_symbol): Change block_index parameter
511 type to block_enum.c
512 (dw2_debug_names_lookup_symbol): Likewise.
513 * psymtab.c (psym_lookup_symbol): Likewise.
514 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
515 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
516 Likewise.
517
518 2019-09-06 Christian Biesinger <cbiesinger@google.com>
519
520 * defs.h (relocate_gdb_directory): Change int to bool in
521 signature and rename flag to relocatable.
522 * main.c (relocate_path): Likewise.
523 (relocate_gdb_directory): Likewise.
524
525 2019-09-06 Alan Modra <amodra@gmail.com>
526
527 * coffread.c (coff_symfile_read): Constify filename variable.
528 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
529 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
530 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
531 * solib.c (reload_shared_libraries_1): Likewise.
532 * symfile.c (reread_symbols): Likewise.
533 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
534 * solib-darwin.c (darwin_bfd_open): Likewise.
535 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
536
537 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
538
539 * psymtab.c (print_partial_symbols): Handle missing domain_enum
540 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
541
542 2019-09-03 Tom Tromey <tromey@adacore.com>
543
544 * ada-valprint.c (ada_val_print_num): Don't recurse for range
545 types.
546 (has_negatives): Unbias a range type bound.
547 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
548 * gdbtypes.c (operator==): Handle new field.
549 (create_range_type): Add "bias" parameter.
550 (create_static_range_type, resolve_dynamic_range): Update.
551 * gdbtypes.h (struct range_bounds) <bias>: New member.
552 (create_range_type): Add bias parameter.
553 * printcmd.c (print_scalar_formatted): Unbias range types.
554 * value.c (unpack_long): Unbias range types.
555 (pack_long): Bias range types.
556
557 2019-09-02 Alan Hayward <alan.hayward@arm.com>
558
559 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
560 probe arguments.
561
562 2019-09-02 Alan Hayward <alan.hayward@arm.com>
563
564 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
565 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
566 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
567 (compile_probe_arg): Likewise.
568 * probe.h (get_argument_count): Likewise.
569 * solib-svr4.c (solib_event_probe_action): Likewise.
570 * stap-probe.c (stap_probe::get_argument_count): Likewise.
571
572 2019-09-02 Alan Hayward <alan.hayward@arm.com>
573
574 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
575 code to here...
576 (svr4_create_solib_event_breakpoints): ...from here.
577
578 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
579
580 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
581 suffix from warning message.
582
583 2019-08-30 Tom Tromey <tom@tromey.com>
584
585 * tui/tui-winsource.h (struct tui_source_window_base)
586 <refresh_all>: Don't declare.
587 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
588 Remove.
589 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
590 tui_show_locator_content.
591 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
592 declare.
593 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
594 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
595 declare.
596
597 2019-08-30 Tom Tromey <tom@tromey.com>
598
599 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
600
601 2019-08-30 Tom Tromey <tom@tromey.com>
602
603 * tui/tui-stack.c (_initialize_tui_stack): Move later.
604 Remove unnecessary forward declarations.
605
606 2019-08-30 Tom Tromey <tom@tromey.com>
607
608 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
609 rerender.
610 (tui_update_locator_fullname, tui_show_frame_info): Don't call
611 tui_show_locator_content.
612
613 2019-08-30 Tom Tromey <tom@tromey.com>
614
615 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
616 (tui_locator_window::rerender): Rewrite using body of previous
617 tui_show_locator_content.
618
619 2019-08-30 Tom Tromey <tom@tromey.com>
620
621 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
622 set_locator_fullname>: New methods.
623 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
624 Rename from tui_set_locator_fullname.
625 (tui_locator_window::set_locator_info): Rename from
626 tui_set_locator_info. Return bool.
627 (tui_update_locator_fullname, tui_show_frame_info): Update.
628
629 2019-08-30 Tom Tromey <tom@tromey.com>
630
631 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
632
633 2019-08-30 Tom Tromey <tom@tromey.com>
634
635 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
636 call touchwin.
637
638 2019-08-30 Tom Tromey <tom@tromey.com>
639
640 * tui/tui-wingeneral.c (box_win): Assume win_info and
641 win_info->handle cannot be NULL.
642
643 2019-08-30 Tom Tromey <tom@tromey.com>
644
645 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
646 refresh_window>: Declare.
647 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
648 resize.
649 (tui_data_item_window::rerender): Rename from
650 tui_display_register.
651 (tui_data_item_window::refresh_window): New method.
652 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
653 no-op.
654
655 2019-08-30 Tom Tromey <tom@tromey.com>
656
657 * tui/tui-regs.h (struct tui_data_window) <regs_content,
658 regs_column_count, current_group>: Move later. Now private.
659 <get_current_group>: New method.
660 * tui/tui-regs.c (tui_reg_command): Update.
661 * tui/tui-layout.c (tui_set_layout): Update.
662
663 2019-08-30 Tom Tromey <tom@tromey.com>
664
665 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
666 (tui_data_window::rerender): Don't call
667 check_and_display_highlight_if_needed.
668 (tui_data_window::refresh_all): Remove call to
669 erase_data_content.
670
671 2019-08-30 Tom Tromey <tom@tromey.com>
672
673 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
674 (tui_data_window::display_registers_from)
675 (tui_data_window::display_reg_element_at_line)
676 (tui_data_window::display_registers_from_line): Remove checks of
677 "empty".
678
679 2019-08-30 Tom Tromey <tom@tromey.com>
680
681 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
682 Don't declare.
683 * tui/tui-regs.c (tui_data_window::show_registers): Call
684 rerender.
685 (tui_data_window::rerender): Rename from display_all_data.
686 (tui_data_window::rerender): Remove old implementation.
687
688 2019-08-30 Tom Tromey <tom@tromey.com>
689
690 * tui/tui-regs.c (tui_data_window::display_all_data): Change
691 text.
692 * tui/tui-data.h (NO_DATA_STRING): Remove define.
693
694 2019-08-29 Bernhard Wodok <barto@gmx.net>
695 Sergio Durigan Junior <sergiodj@redhat.com>
696
697 PR win32/24284
698 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
699
700 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
701
702 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
703 when searching for types.
704
705 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
706
707 * f-lang.c (f_language_defn): Use f_print_typedef.
708 * f-lang.h (f_print_typedef): Declare.
709 * f-typeprint.c (f_print_typedef): Define.
710
711 2019-08-27 Christian Biesinger <cbiesinger@google.com>
712
713 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
714
715 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
716
717 * cli/cli-utils.c (info_print_options_defs): Delete.
718 (make_info_print_options_def_group): Delete.
719 (extract_info_print_options): Delete.
720 (info_print_command_completer): Delete.
721 (info_print_args_help): Add extra parameter, and optionally
722 include text about -n flag.
723 * cli/cli-utils.h (struct info_print_options): Delete.
724 (extract_info_print_options): Delete declaration.
725 (info_print_command_completer): Delete declaration.
726 (info_print_args_help): Add extra parameter, extend header
727 comment.
728 * python/python.c (gdbpy_rbreak): Pass additional parameter to
729 search_symbols.
730 * stack.c (struct info_print_options): New type.
731 (info_print_options_defs): New file scoped variable.
732 (make_info_print_options_def_group): New static function.
733 (info_print_command_completer): New static function.
734 (info_locals_command): Update to use new local functions.
735 (info_args_command): Likewise.
736 (_initialize_stack): Add extra parameter to calls to
737 info_print_args_help.
738 * symtab.c (search_symbols): Add extra parameter, use this to
739 possibly excluse non-debug symbols.
740 (symtab_symbol_info): Add extra parameter, which is passed on to
741 search_symbols.
742 (struct info_print_options): New type.
743 (info_print_options_defs): New file scoped variable.
744 (make_info_print_options_def_group): New static function.
745 (info_print_command_completer): New static function.
746 (info_variables_command): Update to use local functions, and pass
747 extra parameter through to symtab_symbol_info.
748 (info_functions_command): Likewise.
749 (info_types_command): Pass additional argument through to
750 symtab_symbol_info.
751 (rbreak_command): Pass extra argument to search_symbols.
752 (_initialize_symtab): Add extra arguments for calls to
753 info_print_args_help, and update help text for 'info variables',
754 'whereis', and 'info functions' commands.
755 * symtab.h (search_symbols): Add extra argument to declaration.
756 * NEWS: Mention new flags.
757
758 2019-08-26 Christian Biesinger <cbiesinger@google.com>
759
760 * symtab.c (lookup_static_symbol): Call the new function (and move
761 it down to be next to lookup_global_symbol).
762 (struct global_sym_lookup_data): Add block_enum member and rename to...
763 (struct global_or_static_sym_lookup_data): ...this.
764 (lookup_symbol_global_iterator_cb): Pass block_index instead of
765 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
766 (lookup_symbol_global_or_static_iterator_cb): ...this.
767 (lookup_global_or_static_symbol): New function.
768 (lookup_global_symbol): Call new function.
769
770 2019-08-26 Tom de Vries <tdevries@suse.de>
771
772 PR c++/24852
773 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
774 when pc_probe.prob == NULL.
775
776 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
777
778 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
779 variable symbol_linkage to symbol_linkage_.
780
781 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
782
783 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
784 represent whether the symbol is static, dynamic, or we don't
785 know.
786
787 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
788
789 * gdb/rx-tdep.c (rx_register_names): New.
790 (rx_register_name): Delete.
791 (rx_psw_type): Delete.
792 (rx_fpsw_type): Delete.
793 (rx_register_type): Delete.
794 (rx_gdbarch_init): Convert target-descriptions.
795 (_initialize_rx_tdep): Add initialize_tdesc_rx.
796 * gdb/features/Makefile: Add rx.xml.
797 * gdb/features/rx.xml: New.
798 * gdb/features/rx.c: Generated.
799 * gdb/NEWS: Mention target description support.
800
801 2019-08-22 Christian Biesinger <cbiesinger@google.com>
802
803 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
804 *slot_ptr.
805
806 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
807
808 * configure.ac: Don't check for 'dlfcn.h' (moved to
809 gdbsupport/common.m4).
810 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
811 'gdbsupport/'.
812 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
813 * compile/compile-c-support.c: Include
814 'gdbsupport/gdb-dlfcn.h'.
815 * gdbsupport/common.m4: Check for 'dlfcn.h'.
816 * gdb-dlfcn.c: Move to...
817 * gdbsupport/gdb-dlfcn.c: ... here.
818 * gdb-dlfcn.h: Move to...
819 * gdbsupport/gdb-dlfcn.h: ... here.
820
821 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
822
823 * nios2-tdep.c (struct reg_value): Improve comments. Make
824 the offset field signed.
825
826 2019-08-22 Christian Biesinger <cbiesinger@google.com>
827
828 * python/lib/gdb/__init__.py (_execute_file): New function.
829 * python/python.c (python_run_simple_file): Call gdb._execute_file
830 on Windows.
831
832 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
833
834 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
835 all uses as this was never set to anything but a zero value.
836
837 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
838
839 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
840
841 2019-08-21 Christian Biesinger <cbiesinger@google.com>
842
843 * tui/tui-data.h (tui_gen_win_info): Add an =default
844 move constructor, required by some GCC versions.
845
846 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
847
848 * go32-nat.c (go32_sysinfo): Add hygon_p.
849
850 2019-08-20 Tom Tromey <tom@tromey.com>
851
852 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
853 line_from_reg_element_no, first_reg_element_no_inline,
854 display_all_data, delete_data_content_windows,
855 erase_data_content>: Now private.
856
857 2019-08-20 Tom Tromey <tom@tromey.com>
858
859 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
860 (tui_unhighlight_win, tui_highlight_win)
861 (tui_win_info::make_window): Update.
862 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
863
864 2019-08-20 Tom Tromey <tom@tromey.com>
865
866 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
867 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
868 (MAX_PID_WIDTH): Move to tui-stack.c.
869 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
870 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
871 (MAX_PID_WIDTH): Move from tui-data.h.
872
873 2019-08-20 Tom Tromey <tom@tromey.com>
874
875 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
876 * tui/tui-wingeneral.c (box_win): Change type of win_info.
877 (box_win): Update.
878 (tui_gen_win_info::make_window): Rename from tui_make_window.
879 (tui_win_info::make_window): New method.
880 (tui_gen_win_info::make_visible): Update.
881 * tui/tui-source.c (tui_source_window::set_contents): Update.
882 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
883 (tui_data_window::display_registers_from): Update.
884 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
885 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
886 Declare.
887 <can_box>: Remove.
888 <title>: Remove.
889 (struct tui_win_info) <make_window>: Declare.
890 <can_box>: Now virtual.
891 <title>: New member.
892 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
893 * tui/tui-command.c (tui_cmd_window::resize): Update.
894
895 2019-08-20 Tom Tromey <tom@tromey.com>
896
897 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
898 * tui/tui-regs.c (tui_data_window::show_registers): Update.
899 (tui_data_window::check_register_values): Update.
900
901 2019-08-20 Tom Tromey <tom@tromey.com>
902
903 * tui/tui-regs.h (struct tui_data_window): Use
904 DISABLE_COPY_AND_ASSIGN.
905 <regs_content>: Change type, removing unique_ptr.
906 <tui_data_window>: Add move constructor.
907 * tui/tui-regs.c (tui_data_window::show_registers)
908 (tui_data_window::show_register_group)
909 (tui_data_window::display_registers_from)
910 (tui_data_window::display_registers_from)
911 (tui_data_window::first_data_item_displayed)
912 (tui_data_window::delete_data_content_windows)
913 (tui_data_window::rerender, tui_data_window::refresh_window)
914 (tui_data_window::check_register_values): Update.
915
916 2019-08-20 Tom Tromey <tom@tromey.com>
917
918 * tui/tui-regs.h (struct tui_data_window) <show_registers,
919 show_register_group>: Declare.
920 (tui_show_register_group): Don't declare.
921 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
922 tui_show_registers.
923 (tui_data_window::show_register_group): Rename from
924 tui_show_register_group.
925 (tui_data_window::check_register_values, tui_reg_command):
926 Update.
927 * tui/tui-layout.c (tui_set_layout): Update.
928
929 2019-08-20 Tom Tromey <tom@tromey.com>
930
931 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
932 Declare.
933 (tui_check_register_values): Don't declare.
934 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
935 from tui_check_register_values.
936 * tui/tui-hooks.c (tui_register_changed): Update.
937
938 2019-08-20 Tom Tromey <tom@tromey.com>
939
940 * tui/tui-regs.c (tui_reg_layout): Move later.
941 (tui_show_registers): Don't enable TUI mode or change layout.
942
943 2019-08-20 Tom Tromey <tom@tromey.com>
944
945 * tui/tui-regs.h (struct tui_data_item_window)
946 <~tui_data_item_window>: Remove.
947 <content>: Now a unique_xmalloc_ptr.
948 * tui/tui-regs.c (tui_register_format): Return a
949 unique_xmalloc_ptr.
950 (tui_get_register): Update.
951 (~tui_data_item_window): Remove.
952 (tui_data_window::display_registers_from, tui_display_register):
953 Update.
954 * tui/tui-io.h (tui_expand_tabs): Update.
955 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
956 Remove "col" parameter.
957
958 2019-08-20 Tom Tromey <tom@tromey.com>
959
960 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
961 field.
962 * tui/tui-regs.c (~tui_data_item_window): Update.
963
964 2019-08-20 Tom Tromey <tom@tromey.com>
965
966 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
967 earlier.
968
969 2019-08-20 Tom Tromey <tom@tromey.com>
970
971 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
972
973 2019-08-20 Tom Tromey <tom@tromey.com>
974
975 * tui/tui-source.h (struct tui_source_window): Update.
976 * tui/tui-regs.c (tui_show_registers): Update.
977 * tui/tui-disasm.h (struct tui_disasm_window): Update.
978 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
979 (NO_REGS_STRING): Remove defines.
980
981 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
982
983 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
984 unnecessary thread walk if remote doesn't support the packet.
985
986 2019-08-19 Tom Tromey <tromey@adacore.com>
987
988 * python/py-value.c (value_has_field): Fix indentation.
989
990 2019-08-19 Tom Tromey <tromey@adacore.com>
991
992 * printcmd.c (do_one_display, info_display_command): Update.
993 * block.h (contained_in): Return bool. Add allow_nested
994 parameter.
995 * block.c (contained_in): Return bool. Add allow_nested
996 parameter.
997
998 2019-08-19 Tom Tromey <tom@tromey.com>
999
1000 * configure: Rebuild.
1001 * configure.ac: Disallow the combination of -static-libstdc++ and
1002 source highlight.
1003 * source-cache.c (get_language_name): Handle rust.
1004 (source_cache::get_source_lines): Ignore highlighting exceptions.
1005
1006 2019-08-16 Tom Tromey <tom@tromey.com>
1007
1008 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1009 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1010 (struct tui_source_window_base) <make_visible, refresh_window,
1011 resize>: Remove methods.
1012 <execution_info>: Remove field.
1013 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1014 (tui_show_source_line, tui_source_window_base)
1015 (~tui_source_window_base): Update.
1016 (tui_source_window_base::resize)
1017 (tui_source_window_base::make_visible)
1018 (tui_source_window_base::refresh_window): Remove.
1019 (tui_source_window_base::update_exec_info): Update.
1020 * tui/tui-source.c (tui_source_window::set_contents): Update.
1021 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1022
1023 2019-08-16 Tom Tromey <tom@tromey.com>
1024
1025 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1026 deprecated_query_hook.
1027
1028 2019-08-16 Tom Tromey <tom@tromey.com>
1029
1030 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1031 (tui_update_source_windows_with_line): Update.
1032 * tui/tui-source.h (struct tui_source_window)
1033 <show_symtab_source>: Declare.
1034 (tui_show_symtab_source): Don't declare.
1035 * tui/tui-source.c (tui_show_symtab_source): Rename from
1036 tui_show_symtab_source.
1037
1038 2019-08-16 Tom Tromey <tom@tromey.com>
1039
1040 * tui/tui-winsource.h (struct tui_source_window_base)
1041 <set_contents>: Declare.
1042 * tui/tui-winsource.c
1043 (tui_source_window_base::update_source_window_as_is): Update.
1044 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1045 Declare.
1046 (tui_set_source_content): Don't declare.
1047 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1048 tui_set_source_content.
1049 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1050 Declare.
1051 (tui_set_disassem_content): Don't declare.
1052 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1053 tui_set_disassem_content.
1054
1055 2019-08-16 Tom Tromey <tom@tromey.com>
1056
1057 * tui/tui-winsource.h (struct tui_source_window_base)
1058 <update_breakpoint_info>: Declare.
1059 (tui_update_breakpoint_info): Don't declare.
1060 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1061 (tui_update_all_breakpoint_info): Update.
1062 (tui_source_window_base::update_breakpoint_info): Rename from
1063 tui_update_breakpoint_info.
1064 (tui_source_window_base::update_exec_info): Update.
1065
1066 2019-08-16 Tom Tromey <tom@tromey.com>
1067
1068 * tui/tui-winsource.h (struct tui_source_window_base)
1069 <update_source_window>: Declare.
1070 (tui_update_source_window): Don't declare.
1071 * tui/tui-winsource.c
1072 (tui_source_window_base::update_source_window): Rename from
1073 tui_update_source_window.
1074 (tui_source_window_base::rerender): Update.
1075 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1076 * tui/tui-disasm.c (tui_show_disassem)
1077 (tui_show_disassem_and_update_source)
1078 (tui_disasm_window::maybe_update): Update.
1079
1080 2019-08-16 Tom Tromey <tom@tromey.com>
1081
1082 * tui/tui-winsource.h (struct tui_source_window_base)
1083 <update_source_window_as_is>: Declare.
1084 (tui_update_source_window_as_is): Don't declare.
1085 * tui/tui-winsource.c (tui_update_source_window): Update
1086 (tui_source_window_base::update_source_window_as_is): Rename from
1087 tui_update_source_window_as_is.
1088 (tui_source_window_base::refill): Update.
1089 * tui/tui-source.c (tui_show_symtab_source): Update.
1090 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1091 Update.
1092
1093 2019-08-16 Tom Tromey <tom@tromey.com>
1094
1095 * tui/tui-winsource.h (tui_update_source_window)
1096 (tui_update_source_window_as_is): Remove "noerror" parameter.
1097 * tui/tui-winsource.c (tui_update_source_window)
1098 (tui_update_source_window_as_is): Remove "noerror" parameter.
1099 (tui_update_source_windows_with_addr)
1100 (tui_update_source_windows_with_line)
1101 (tui_source_window_base::rerender)
1102 (tui_source_window_base::refill): Update.
1103 * tui/tui-source.h (tui_set_source_content)
1104 (tui_show_symtab_source): Remove "noerror" parameter.
1105 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1106 parameter.
1107 (tui_show_symtab_source): Likewise.
1108 (tui_source_window::maybe_update): Update.
1109 * tui/tui-disasm.c (tui_show_disassem)
1110 (tui_show_disassem_and_update_source)
1111 (tui_disasm_window::do_scroll_vertical)
1112 (tui_disasm_window::maybe_update): Update.
1113
1114 2019-08-16 Tom Tromey <tom@tromey.com>
1115
1116 * tui/tui.c (tui_is_window_visible): Update.
1117 * tui/tui-wingeneral.c (tui_make_window)
1118 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1119 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1120 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1121 (tui_set_win_height_command, parse_scrolling_args): Update.
1122 * tui/tui-source.c (tui_source_window::style_changed): Update.
1123 * tui/tui-regs.c (tui_show_registers)
1124 (tui_data_window::first_data_item_displayed)
1125 (tui_data_window::delete_data_content_windows)
1126 (tui_check_register_values, tui_reg_command): Update.
1127 * tui/tui-disasm.c (tui_show_disassem): Update.
1128 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1129 method.
1130 <is_visible>: Remove field.
1131 * tui/tui-data.c (tui_next_win, tui_prev_win)
1132 (tui_delete_invisible_windows): Update.
1133
1134 2019-08-16 Tom Tromey <tom@tromey.com>
1135
1136 * tui/tui-winsource.h (struct tui_source_window_base)
1137 <m_has_locator>: Remove.
1138 * tui/tui-layout.c (show_source_disasm_command, show_data)
1139 (show_source_or_disasm_and_command): Update.
1140
1141 2019-08-16 Alan Hayward <alan.hayward@arm.com>
1142
1143 * NEWS (Other MI changes): New subsection.
1144 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1145 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1146 * arch-utils.c (default_get_pc_address_flags): New function.
1147 * arch-utils.h (default_get_pc_address_flags): New declaration.
1148 * gdbarch.sh: Add get_pc_address_flags.
1149 * gdbarch.c: Regenerate.
1150 * gdbarch.h: Likewise.
1151 * stack.c (print_pc): New function.
1152 (print_frame_info) (print_frame): Call print_pc.
1153
1154 2019-08-16 Tom de Vries <tdevries@suse.de>
1155
1156 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1157 print_objfile_section_info.
1158
1159 2019-08-15 Tom Tromey <tom@tromey.com>
1160
1161 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1162 calling update_cmdwin_start_line.
1163 * tui/tui-winsource.h (struct tui_source_window_base)
1164 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1165 <rerender>: Declare.
1166 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1167 Call rerender.
1168 (tui_source_window_base::set_new_height): Remove.
1169 (tui_source_window_base::rerender): Rename from
1170 do_make_visible_with_new_height.
1171 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1172 resize method.
1173 (tui_win_info::make_invisible_and_set_new_height)
1174 (tui_win_info::make_visible_with_new_height): Remove.
1175 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1176 Declare.
1177 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1178 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1179 do_make_visible_with_new_height>: Don't declare.
1180 <rerender>: Declare.
1181 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1182 set_new_height.
1183 (tui_data_window::do_make_visible_with_new_height): Remove.
1184 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1185 call tui_show_locator_content.
1186 (tui_gen_win_info::resize): Call rerender.
1187 (show_source_or_disasm_and_command): Don't call
1188 tui_show_locator_content.
1189 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1190 method.
1191 (struct tui_win_info) <rerender>: Declare.
1192 <set_new_height, make_invisible_and_set_new_height,
1193 make_visible_with_new_height>: Don't declare.
1194 * tui/tui-data.c (tui_win_list::rerender): New method.
1195 * tui/tui-command.h (struct tui_cmd_window)
1196 <do_make_visible_with_new_height>: Don't declare.
1197 * tui/tui-command.c
1198 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1199
1200 2019-08-15 Tom Tromey <tromey@adacore.com>
1201
1202 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1203 * ada-lang.c (ada_enum_name): Likewise.
1204
1205 2019-08-15 Christian Biesinger <cbiesinger@google.com>
1206
1207 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1208 leading underscore.
1209 (GdbOutputErrorFile): Likewise.
1210 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1211 accordingly.
1212 (execute_unwinders): Rename to have a leading underscore.
1213 (auto_load_packages): Likewise.
1214 (global scope): Adjust call to auto_load_packages accordingly.
1215 (GdbSetPythonDirectory): Likewise.
1216 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1217 instead of execute_unwinders.
1218
1219 2019-08-15 Tom Tromey <tom@tromey.com>
1220
1221 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1222 (show_data): Don't change window visibility.
1223 (tui_gen_win_info::resize): Remove special case for command
1224 window. Use wresize, when available.
1225 (show_source_or_disasm_and_command): Don't change window
1226 visibility.
1227 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1228 <make_visible>: New method.
1229 * tui/tui-command.c (tui_cmd_window::resize): New method.
1230
1231 2019-08-15 Tom Tromey <tom@tromey.com>
1232
1233 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1234 (struct tui_source_windows): New.
1235 * tui/tui-winsource.c (tui_display_main): Update.
1236 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1237 (new_height_ok, parse_scrolling_args): Update.
1238 * tui/tui-layout.c (show_layout, show_data): Update.
1239 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1240 (tui_add_to_source_windows): Don't declare.
1241 * tui/tui-data.c (source_windows, tui_source_windows)
1242 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1243
1244 2019-08-15 Tom Tromey <tom@tromey.com>
1245
1246 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1247 Rename from reset.
1248 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1249 * tui/tui-layout.c (show_source_disasm_command, show_data):
1250 Update.
1251 (tui_gen_win_info::resize): Rename.
1252 (show_source_or_disasm_and_command): Update.
1253 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1254 reset.
1255
1256 2019-08-15 Tom Tromey <tom@tromey.com>
1257
1258 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1259 * tui/tui-interp.c (tui_interp::init): Don't call
1260 tui_initialize_static_data.
1261 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1262
1263 2019-08-15 Tom Tromey <tom@tromey.com>
1264
1265 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1266 examine tui_win_list.
1267
1268 2019-08-15 Tom Tromey <tom@tromey.com>
1269
1270 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1271 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1272 tui_clear_source_content.
1273 (tui_clear_source_content): Remove.
1274 (tui_source_window_base::do_erase_source_content): Hoist call to
1275 content.clear().
1276 * tui/tui-stack.c (tui_show_frame_info): Don't call
1277 tui_clear_source_content.
1278
1279 2019-08-15 Tom Tromey <tom@tromey.com>
1280
1281 * tui/tui-winsource.h (struct tui_source_window_base)
1282 <do_erase_source_content>: New method.
1283 <erase_source_content>: New method.
1284 (tui_erase_source_content): Don't declare.
1285 * tui/tui-winsource.c (tui_clear_source_content): Update.
1286 (tui_source_window_base::do_erase_source_content): Rename from
1287 tui_erase_source_content.
1288 (tui_source_window_base::show_source_content): Update.
1289 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1290 * tui/tui-source.h (struct tui_source_window)
1291 <erase_source_content>: New method.
1292 * tui/tui-disasm.h (struct tui_disasm_window)
1293 <erase_source_content>: New method.
1294
1295 2019-08-15 Tom Tromey <tom@tromey.com>
1296
1297 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1298 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1299 constructor.
1300 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1301 * tui/tui-source.c (tui_set_source_content): Update.
1302 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1303
1304 2019-08-15 Tom Tromey <tom@tromey.com>
1305
1306 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1307 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1308 tui-source.c.
1309 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1310 Declare.
1311 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1312 method.
1313 (tui_source_window::maybe_update): Update.
1314
1315 2019-08-15 Tom Tromey <tom@tromey.com>
1316
1317 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1318 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1319 tui-disasm.c.
1320 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1321 Declare.
1322 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1323 method.
1324 (tui_disasm_window::maybe_update): Update.
1325
1326 2019-08-15 Tom Tromey <tom@tromey.com>
1327
1328 * tui/tui-winsource.h (struct tui_source_window_base)
1329 <maybe_update>: Declare.
1330 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1331 method.
1332 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1333 Declare.
1334 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1335 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1336 Declare.
1337 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1338
1339 2019-08-15 Tom Tromey <tom@tromey.com>
1340
1341 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1342
1343 2019-08-15 Tom Tromey <tom@tromey.com>
1344
1345 * tui/tui-wingeneral.c: Include tui-stack.h.
1346 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1347 (struct tui_locator_window): Move from tui-data.h.
1348 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1349 (tui_initialize_static_data): Move from tui-data.c.
1350 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1351 (struct tui_locator_window): Move to tui-stack.c.
1352 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1353 (tui_initialize_static_data): Move to tui-stack.c.
1354
1355 2019-08-15 Tom Tromey <tom@tromey.com>
1356
1357 * tui/tui-layout.c (show_source_disasm_command)
1358 (show_source_or_disasm_and_command): Use make_visible method, not
1359 tui_make_window.
1360 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1361 Remove.
1362
1363 2019-08-15 Tom Tromey <tom@tromey.com>
1364
1365 * tui/tui-wingeneral.h (tui_make_window): Update.
1366 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1367 parameter.
1368 (tui_gen_win_info::make_visible): Update.
1369 * tui/tui-regs.c (tui_data_window::display_registers_from):
1370 Update.
1371 * tui/tui-layout.c (show_source_disasm_command)
1372 (show_source_or_disasm_and_command): Update.
1373 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1374 (enum tui_box): Remove.
1375 (struct tui_win_info) <can_box>: New method.
1376 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1377 method.
1378
1379 2019-08-15 Tom de Vries <tdevries@suse.de>
1380
1381 * linux-nat-trad.c: Include gdbarch.h.
1382
1383 2019-08-14 Alan Hayward <alan.hayward@arm.com>
1384
1385 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1386 register sizes.
1387
1388 2019-08-14 Tom Tromey <tromey@adacore.com>
1389
1390 * darwin-nat.c: Include gdbarch.h.
1391 * darwin-nat-info.c: Include gdbarch.h.
1392
1393 2019-08-13 Tom Tromey <tom@tromey.com>
1394
1395 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1396 Remove.
1397 * tui/tui-data.c (tui_initialize_static_data): Update.
1398
1399 2019-08-13 Tom Tromey <tom@tromey.com>
1400
1401 * tui/tui-winsource.h (struct tui_exec_info_window)
1402 <~tui_exec_info_window, maybe_allocate_content, get_content,
1403 m_content>: Remove.
1404 (struct tui_source_window_base) <set_exec_info_content,
1405 show_exec_info_content>: Don't declare.
1406 * tui/tui-winsource.c
1407 (tui_exec_info_window::maybe_allocate_content): Remove.
1408 (tui_source_window_base::update_exec_info): Rename from
1409 set_exec_info_content.
1410 (tui_source_window_base::show_exec_info_content)
1411 (tui_source_window_base::update_exec_info): Remove.
1412
1413 2019-08-13 Tom Tromey <tom@tromey.com>
1414
1415 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1416 declare.
1417 * tui/tui-winsource.c (tui_update_source_window_as_is)
1418 (tui_update_source_windows_with_addr, tui_erase_source_content):
1419 Update.
1420 (tui_clear_exec_info_content): Remove.
1421
1422 2019-08-13 Tom Tromey <tom@tromey.com>
1423
1424 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1425 declare.
1426 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1427 call tui_erase_exec_info_content.
1428 (tui_clear_exec_info_content): Rename from
1429 tui_erase_exec_info_content.
1430 (tui_clear_exec_info_content): Delete.
1431
1432 2019-08-13 Tom Tromey <tom@tromey.com>
1433
1434 * tui/tui-winsource.h (struct tui_source_window_base)
1435 <show_exec_info_content>: Declare.
1436 (tui_show_exec_info_content): Don't declare.
1437 * tui/tui-winsource.c
1438 (tui_source_window_base::show_exec_info_content): Rename from
1439 tui_show_exec_info_content.
1440 (tui_source_window_base::update_exec_info): Update.
1441
1442 2019-08-13 Tom Tromey <tom@tromey.com>
1443
1444 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1445 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1446 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1447 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1448 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1449 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1450 ... here.
1451
1452 2019-08-13 Tom Tromey <tom@tromey.com>
1453
1454 * tui/tui-winsource.h (struct tui_source_window_base)
1455 <update_exec_info>: Declare.
1456 (tui_update_exec_info): Don't declare.
1457 * tui/tui-winsource.c (tui_update_source_window_as_is)
1458 (tui_source_window_base::refresh_all)
1459 (tui_update_all_breakpoint_info): Update.
1460 (tui_source_window_base::update_exec_info): Rename from
1461 tui_update_exec_info.
1462 * tui/tui-stack.c (tui_show_frame_info): Update.
1463
1464 2019-08-13 Tom Tromey <tom@tromey.com>
1465
1466 * tui/tui-winsource.h (struct tui_source_window_base)
1467 <set_exec_info_content>: Declare.
1468 (tui_set_exec_info_content): Don't declare.
1469 * tui/tui-winsource.c
1470 (tui_source_window_base::set_exec_info_content): Rename from
1471 tui_set_exec_info_content.
1472 (tui_update_exec_info): Update.
1473
1474 2019-08-13 Tom Tromey <tom@tromey.com>
1475
1476 * tui/tui-winsource.h (struct tui_source_window_base)
1477 <show_source_content>: Declare.
1478 (tui_show_source_content): Don't declare.
1479 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1480 (tui_source_window_base::show_source_content): Rename from
1481 tui_show_source_content.
1482 (tui_source_window_base::refresh_all): Update.
1483 * tui/tui-layout.c (show_source_disasm_command)
1484 (show_source_or_disasm_and_command): Update.
1485
1486 2019-08-13 Tom Tromey <tom@tromey.com>
1487
1488 * tui/tui-winsource.c (tui_erase_source_content)
1489 (tui_show_source_content, tui_source_window_base::refresh_all):
1490 Update.
1491 * tui/tui-wingeneral.h
1492 (tui_check_and_display_highlight_if_needed): Don't declare.
1493 * tui/tui-wingeneral.c
1494 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1495 check_and_display_highlight_if_needed.
1496 * tui/tui-win.c (tui_rehighlight_all)
1497 (tui_win_info::make_visible_with_new_height): Update.
1498 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1499 (tui_data_window::erase_data_content)
1500 (tui_data_window::display_all_data): Update.
1501 * tui/tui-data.h (struct tui_win_info)
1502 <check_and_display_highlight_if_needed>: Declare.
1503
1504 2019-08-13 Tom Tromey <tom@tromey.com>
1505
1506 * tui/tui-win.c (tui_resize_all): Call
1507 tui_delete_invisible_windows.
1508 * tui/tui-layout.c (show_layout): Call
1509 tui_delete_invisible_windows.
1510 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1511 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1512
1513 2019-08-13 Tom Tromey <tom@tromey.com>
1514
1515 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1516 tui_add_win_to_layout.
1517
1518 2019-08-13 Tom Tromey <tom@tromey.com>
1519
1520 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1521 * tui/tui-layout.c (tui_default_win_height): Now static.
1522
1523 2019-08-13 Tom Tromey <tom@tromey.com>
1524
1525 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1526 single switch.
1527 (show_source_disasm_command, show_source_or_disasm_and_command):
1528 Don't check current layout.
1529
1530 2019-08-13 Tom Tromey <tom@tromey.com>
1531
1532 * tui/tui-wingeneral.c (make_all_visible): Remove.
1533 (tui_make_all_invisible): Simplify.
1534 * tui/tui-layout.c (tui_make_all_invisible): Move from
1535 tui-wingeneral.c; simplify.
1536 (show_layout): Hoist call to tui_make_all_invisible.
1537 (show_data): Don't call tui_make_all_invisible.
1538
1539 2019-08-13 Tom Tromey <tom@tromey.com>
1540
1541 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1542 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1543
1544 2019-08-13 Tom Tromey <tom@tromey.com>
1545
1546 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1547 tui-data.c.
1548 (show_source_disasm_command, show_data)
1549 (show_source_or_disasm_and_command): Don't use
1550 tui_set_current_layout_to.
1551 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1552 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1553 tui-layout.c.
1554 (tui_set_current_layout_to): Remove.
1555
1556 2019-08-13 Tom Tromey <tom@tromey.com>
1557
1558 * tui/tui-layout.c (tui_set_layout): Update.
1559 * tui/tui-data.h (struct tui_layout_def): Remove.
1560 (tui_layout_def): Don't declare.
1561 * tui/tui-data.c (layout_def): Remove.
1562 (tui_layout_def): Remove.
1563
1564 2019-08-13 Tom Tromey <tom@tromey.com>
1565
1566 * tui/tui-winsource.h (struct tui_source_window_base)
1567 <clear_detail>: No longer "override".
1568 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1569 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1570 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1571 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1572 Remove.
1573 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1574
1575 2019-08-13 Tom Tromey <tromey@adacore.com>
1576
1577 * tracepoint.c: Don't include readline.h or history.h.
1578
1579 2019-08-12 Tom Tromey <tom@tromey.com>
1580
1581 * configure: Rebuild.
1582 * configure.ac: Check for readline 7.
1583 * NEWS: Mention readline 7 requirement.
1584 * README: Update.
1585
1586 2019-08-12 Tom Tromey <tom@tromey.com>
1587
1588 * mingw-hdep.c (gdb_select): Remove readline hack.
1589
1590 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1591
1592 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1593 when the function fails.
1594
1595 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1596
1597 * s390-tdep.c (s390_type_align): New function.
1598 (s390_gdbarch_init): Set it as type_align gdbarch method.
1599
1600 2019-08-09 Tom de Vries <tdevries@suse.de>
1601
1602 PR gdb/24591
1603 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1604 pc_low with relocation offset.
1605
1606 2019-08-07 Tom Tromey <tromey@adacore.com>
1607
1608 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1609 (print_frame_args): Update.
1610 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1611 Update.
1612 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1613 * frame.h (struct frame_arg): Add initializers.
1614 <error>: Now a unique_xmalloc_ptr.
1615
1616 2019-08-07 Alan Hayward <alan.hayward@arm.com>
1617
1618 * NEWS: Expand the Pointer Authentication entry.
1619 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1620 (aarch64_frame_unmask_lr): ... to this.
1621 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1622 Call aarch64_frame_unmask_lr.
1623 * frame.c (struct frame_info): Add "masked" variable.
1624 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1625 (fprint_frame): Check for masked pc.
1626 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1627 declarations.
1628 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1629 * stack.c (print_frame): Check for masked pc.
1630
1631 2019-08-06 Tom Tromey <tom@tromey.com>
1632
1633 * stabsread.c (patch_block_stabs, read_one_struct_field)
1634 (read_enum_type): Use obstack_strndup.
1635 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1636 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1637 * dwarf2read.c (guess_full_die_structure_name)
1638 (anonymous_struct_prefix): Use obstack_strndup.
1639 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1640 * c-exp.y (yylex): Use obstack_strndup.
1641 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1642 (write_var_or_type): Use obstack_strndup.
1643
1644 2019-08-06 Tom Tromey <tom@tromey.com>
1645
1646 * symfile.c (reread_symbols): Use obstack_strdup.
1647 * stabsread.c (read_type): Use obstack_strdup.
1648 * gdb_obstack.h (obstack_strdup): New overload.
1649 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1650 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1651 (dwarf2_canonicalize_name): Use obstack_strdup.
1652 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1653 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1654 Use obstack_strdup.
1655
1656 2019-08-06 Tom Tromey <tom@tromey.com>
1657
1658 * gdb_obstack.h (obstack_strdup): Define.
1659 * gdb_obstack.c (obstack_strdup): Don't define.
1660
1661 2019-08-06 Tom Tromey <tom@tromey.com>
1662
1663 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1664 obstack_strdup.
1665 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1666 obstack_strdup.
1667 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1668 * stabsread.c (common_block_start): Use obstack_strdup.
1669 * objfiles.c (set_objfile_main_name, objfile): Use
1670 obstack_strdup.
1671 * namespace.c (add_using_directive): Use obstack_strdup.
1672 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1673 * jit.c (finalize_symtab): Use obstack_strdup.
1674 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1675 (guess_partial_die_structure_name, partial_die_info::fixup)
1676 (dwarf2_name): Use obstack_strdup.
1677 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1678 obstack_strdup.
1679 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1680 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1681 obstack_strdup.
1682 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1683
1684 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1685
1686 * unittests/help-doc-selftests.c: New file.
1687 * Makefile.in: Add the new file.
1688
1689 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1690
1691 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1692 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1693 the full first line, except when FOR_VALUE_PREFIX. In this case,
1694 the trailing '.' is not output, and the first character is uppercased.
1695 (print_help_for_command): Update call to print_doc_line.
1696 (print_doc_of_command): Likewise.
1697 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1698 * cli/cli-option.c (append_indented_doc): Do not append newline.
1699 (build_help_option): Append newline after first appended_indented_doc
1700 only if a second call is done.
1701 (build_help): Append 2 new lines before each option, except the first
1702 one.
1703 * compile/compile.c (_initialize_compile): Add new lines after
1704 %OPTIONS%, when not at the end of the help.
1705 Change help doc or code
1706 producing the help doc to respect the invariants.
1707 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1708 Also removed the new line after 'Options:', as all other commands
1709 do not put an empty line between 'Options:' and the first option.
1710 * printcmd.c (_initialize_printcmd): Likewise.
1711 * stack.c (_initialize_stack): Likewise.
1712 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1713 incorrectly telling COMMAND is optional.
1714 * ada-lang.c (_initialize_ada_language): Change help doc or code
1715 producing the help doc to respect the invariants.
1716 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1717 * breakpoint.c (_initialize_breakpoint): Likewise.
1718 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1719 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1720 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1721 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1722 _initialize_cli_style): Likewise.
1723 * corelow.c (core_target_info): Likewise.
1724 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1725 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1726 * filesystem.c (_initialize_filesystem): Likewise.
1727 * frame.c (_initialize_frame): Likewise.
1728 * gnu-nat.c (add_task_commands): Likewise.
1729 * infcall.c (_initialize_infcall): Likewise.
1730 * infcmd.c (_initialize_infcmd): Likewise.
1731 * interps.c (_initialize_interpreter): Likewise.
1732 * language.c (_initialize_language): Likewise.
1733 * linux-fork.c (_initialize_linux_fork): Likewise.
1734 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1735 * maint.c (_initialize_maint_cmds): Likewise.
1736 * memattr.c (_initialize_mem): Likewise.
1737 * printcmd.c (_initialize_printcmd): Likewise.
1738 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1739 _RegEx): Likewise.
1740 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1741 * record-btrace.c (_initialize_record_btrace): Likewise.
1742 * record-full.c (_initialize_record_full): Likewise.
1743 * record.c (_initialize_record): Likewise.
1744 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1745 * regcache.c (_initialize_regcache): Likewise.
1746 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1747 _initialize_remote): Likewise.
1748 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1749 * serial.c (_initialize_serial): Likewise.
1750 * skip.c (_initialize_step_skip): Likewise.
1751 * source.c (_initialize_source): Likewise.
1752 * stack.c (_initialize_stack): Likewise.
1753 * symfile.c (_initialize_symfile): Likewise.
1754 * symtab.c (_initialize_symtab): Likewise.
1755 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1756 * top.c (init_main): Likewise.
1757 * tracefile-tfile.c (tfile_target_info): Likewise.
1758 * tracepoint.c (_initialize_tracepoint): Likewise.
1759 * tui/tui-win.c (_initialize_tui_win): Likewise.
1760 * utils.c (add_internal_problem_command): Likewise.
1761 * valprint.c (value_print_option_defs): Likewise.
1762
1763 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
1764
1765 PR build/24886
1766 * configure.ac: Drop enable-libmcheck support.
1767 * configure, config.in: Rebuild.
1768 * libmcheck.m4: Remove.
1769 * acinclude.m4: Don't include it.
1770 * Makefile.in: Don't distribute it.
1771 * top.c (print_gdb_configuration): Don't mention it.
1772
1773 2019-08-06 Tom Tromey <tom@tromey.com>
1774
1775 * utils.c (set_output_style): Sometimes pass stream to
1776 emit_style_escape.
1777 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1778 * record-btrace.c (btrace_insn_history): Update.
1779 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1780 method.
1781 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1782 Update initializers.
1783 <m_uiout>: New field.
1784 <m_di>: Move lower.
1785 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1786 Remove "uiout" parameter.
1787 (dump_insns): Update.
1788 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1789 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1790
1791 2019-08-06 Christian Biesinger <cbiesinger@google.com>
1792
1793 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1794 (error_in_psymtab_expansion): Likewise.
1795 (lookup_symbol_via_quick_fns): Likewise.
1796 (basic_lookup_transparent_type_quick): Likewise.
1797 (basic_lookup_transparent_type_1): Likewise.
1798
1799 2019-08-06 Tom Tromey <tromey@adacore.com>
1800
1801 * source.c (last_source_error): Now bool.
1802 (print_source_lines_base): Make "noprint" bool. Only open
1803 source file when last_source_visited changes.
1804
1805 2019-08-06 Tom Tromey <tromey@adacore.com>
1806
1807 * annotate.c (annotate_source_line): Use g_source_cache.
1808 * source-cache.c (source_cache::get_plain_source_lines): Change
1809 parameters. Populate m_offset_cache.
1810 (source_cache::ensure): New method.
1811 (source_cache::get_line_charpos): New method.
1812 (extract_lines): Move lower. Change parameters.
1813 (source_cache::get_source_lines): Move lower.
1814 * source-cache.h (class source_cache): Update comment.
1815 <get_line_charpos>: New method.
1816 <get_source_lines>: Update comment.
1817 <clear>: Clear m_offset_cache.
1818 <get_plain_source_lines>: Change parameters.
1819 <ensure>: New method
1820 <m_offset_cache>: New member.
1821 * source.c (forget_cached_source_info_for_objfile): Update.
1822 (info_source_command): Use g_source_cache.
1823 (find_source_lines, open_source_file_with_line_charpos): Remove.
1824 (print_source_lines_base, search_command_helper): Use g_source_cache.
1825 * source.h (open_source_file_with_line_charpos): Don't declare.
1826 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1827 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1828 Use g_source_cache.
1829
1830 2019-08-06 Tom Tromey <tromey@adacore.com>
1831
1832 * source-cache.c (source_cache::get_plain_source_lines):
1833 Remove "first_line" and "last_line" parameters.
1834 (source_cache::get_source_lines): Cache plain text.
1835 * source-cache.h (class source_cache)
1836 <get_plain_source_lines>: Update.
1837
1838 2019-08-06 Tom Tromey <tromey@adacore.com>
1839
1840 * source-cache.c (extract_lines): No longer a method.
1841 Changed type of parameter. Include final newline.
1842 (selftests::extract_lines_test): New function.
1843 (_initialize_source_cache): Likewise.
1844 * source-cache.h (class source_cache)
1845 <extract_lines>: Don't declare.
1846
1847 2019-08-06 Tom Tromey <tromey@adacore.com>
1848
1849 * breakpoint.c (init_breakpoint_sal): Update.
1850 (breakpoint): Update.
1851 * breakpoint.h (struct breakpoint) <filter>: Now a
1852 unique_xmalloc_ptr.
1853
1854 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1855
1856 * NEWS: Mention dictionary access on blocks.
1857 * python/py-block.c (blpy_getitem): New function.
1858 (block_object_as_mapping): New struct.
1859 (block_object_type): Use new struct for tp_as_mapping field.
1860
1861 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1862
1863 * objfiles.h (objfile): Add a comment describing partial symbols.
1864
1865 2019-08-05 Tom Tromey <tromey@adacore.com>
1866
1867 * compile/compile.c (_initialize_compile): Use _(), not N_().
1868 * thread.c (_initialize_thread): Use _(), not N_().
1869 * stack.c (_initialize_stack): Use _(), not N_().
1870 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1871
1872 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1873
1874 * dwarf2read.c (struct dw2_symtab_iterator):
1875 <want_specific_block>: Remove.
1876 <block_index>: Change type to gdb::optional.
1877 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1878 change type of BLOCK_INDEX parameter to gdb::optional.
1879 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1880 (dw2_lookup_symbol): Don't pass argument for
1881 WANT_SPECIFIC_BLOCK.
1882 (dw2_expand_symtabs_for_function): Don't pass argument for
1883 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1884 (class dw2_debug_names_iterator)
1885 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1886 parameter, change BLOCK_INDEX type to gdb::optional.
1887 <m_want_specific_block>: Remove.
1888 <m_block_index>: Change type to gdb::optional.
1889 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1890 gdb::optional. Re-write in function of gdb::optional.
1891 (dw2_debug_names_lookup_symbol): Don't pass argument for
1892 WANT_SPECIFIC_BLOCK.
1893 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1894 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1895 BLOCK_INDEX.
1896
1897 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1898
1899 * NEWS: Mention changes to "info sources" command.
1900
1901 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1902
1903 * symtab.c (filename_partial_match_opts): New struct type.
1904 (struct output_source_filename_data): New members
1905 regexp, c_regexp, partial_match.
1906 (output_source_filename): Use new members to decide to print file.
1907 (info_sources_option_defs): New variable.
1908 (make_info_sources_options_def_group, print_info_sources_header,
1909 info_sources_command_completer):
1910 New functions.
1911 (info_sources_command): Read new optional arguments.
1912 (_initialize_symtab): Update info sources help.
1913
1914 2019-08-02 Alexandre Oliva <oliva@adacore.com>
1915
1916 * ada-lang.c (exception_support_info_v0): Renamed from...
1917 (default_exception_support_info): ... this. Create new
1918 definition for v1.
1919 (ada_has_this_exception_support): Look up catch_handlers_sym.
1920 (ada_exception_support_info_sniffer): Try v0 after default.
1921
1922 2019-08-01 Tom Tromey <tromey@adacore.com>
1923
1924 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1925 gdbarch.h.
1926
1927 2019-08-01 Christian Biesinger <cbiesinger@google.com>
1928
1929 * s12z-tdep.c: Fix include path for s12z-opc.h.
1930
1931 2019-08-01 Alan Hayward <alan.hayward@arm.com>
1932
1933 * NEWS: Require GNU make 3.82.
1934
1935 2019-07-16 Tom Tromey <tom@tromey.com>
1936
1937 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1938 declare.
1939
1940 2019-07-30 Tom Tromey <tromey@adacore.com>
1941
1942 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1943
1944 2019-07-30 Kevin Buettner <kevinb@redhat.com>
1945
1946 * printcmd.c (print_address_symbolic): Print negative offsets.
1947 (build_address_symbolic): Force signed arithmetic when computing
1948 offset.
1949
1950 2019-07-30 Christian Biesinger <cbiesinger@google.com>
1951
1952 PR/24474: Add a function to lookup static variables.
1953 * NEWS: Mention this new function.
1954 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1955 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1956 * python/python.c (python_GdbMethods): Add new function.
1957
1958 2019-07-29 Christian Biesinger <cbiesinger@google.com>
1959
1960 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1961 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1962 (objfpy_lookup_static_symbol): New function.
1963 (objfile_object_methods): Add new functions.
1964
1965 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1966
1967 * NEWS: Mention 'set|show print frame-info'. Mention new
1968 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1969 backtrace argument. Mention that python frame filtering code
1970 is now consistent with what 'backtrace' command prints.
1971
1972 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1973
1974 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1975 comments.
1976 (print_frame_info_auto, print_frame_info_source_line,
1977 print_frame_info_location, print_frame_info_source_and_location,
1978 print_frame_info_location_and_address, print_frame_info_short_location):
1979 New declarations.
1980 (struct frame_print_options): New member print_frame_info.
1981 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1982 * stack.h (get_user_print_what_frame_info): New declaration.
1983 (frame_show_address): New declaration.
1984 * stack.c (print_frame_arguments_choices): New value 'presence'.
1985 (print_frame_info_auto, print_frame_info_source_line,
1986 print_frame_info_location, print_frame_info_source_and_location,
1987 print_frame_info_location_and_address, print_frame_info_short_location,
1988 print_frame_info_choices, print_frame_info_print_what): New definitions.
1989 (print_frame_args): Only print dots for args if print frame-arguments
1990 is 'presence'.
1991 (frame_print_option_defs): New element for "frame-info".
1992 (get_user_print_what_frame_info): New function.
1993 (frame_show_address): Make non static. Move comment to stack.h.
1994 (print_frame_info_to_print_what): New function.
1995 (print_frame_info): Update comment. Use fp_opts.print_frame_info
1996 to decide what to print.
1997 (backtrace_command_1): Handle the new print_frame_arguments_presence
1998 value.
1999 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2000 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2001 (py_print_frame): In non-mi mode, use LOCATION as default for
2002 print_what, similarly to frame information printed directly by
2003 backtrace command. Handle frame-info user option in non MI mode.
2004
2005 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2006
2007 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2008 Add case for debugging 32-bit target on 64-bit host. Revise
2009 comment.
2010
2011 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2012
2013 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2014 instead of find_function_entry_range_from_pc.
2015
2016 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2017
2018 * stack.c (find_frame_funname): Remove code which preferred
2019 minsym over symtab sym in "certain pathological cases".
2020
2021 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2022 parameter. Change type of "do_demangle" to bool.
2023 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2024 Pass suitable "prefer_sym_over_minsym" flag to
2025 build_address_symbolic(). Don't output "+" for negative offsets.
2026 * printcmd.c (print_address_symbolic): Update invocation of
2027 build_address_symbolic to include a "prefer_sym_over_minsym"
2028 flag.
2029 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2030 Restrict cases in which use of minimal symbol is preferred to that
2031 of a found symbol. Update comments.
2032
2033 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2034 for entry pc when entry pc is out of range for that FDE.
2035
2036 2019-07-26 Brian Callahan <bcallah@openbsd.org>
2037
2038 PR gdb/24839:
2039 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2040 type.
2041
2042 2019-07-25 Christian Biesinger <cbiesinger@google.com>
2043
2044 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2045 this function's Python signature.
2046
2047
2048 2019-07-24 Christian Biesinger <cbiesinger@google.com>
2049
2050 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2051 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2052 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2053 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2054 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2055
2056
2057 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2058
2059 * h8300-tdep.c (h8300_register_name_common): New.
2060 h8300_register_name): Use h8300_register_name_common.
2061 (h8300s_register_name): Likewise.
2062 (h8300sx_register_name): Likewise.
2063 (h8300h_register_nam): New.
2064 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2065
2066
2067 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2068
2069 * arm-tdep.c (arm_skip_cmse_entry): New function.
2070 (arm_is_sgstubs_section): New function.
2071 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2072
2073 2019-07-22 Tom Tromey <tom@tromey.com>
2074
2075 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2076 Don't self-assign.
2077
2078 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2079
2080 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2081 type_print.
2082
2083 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2084
2085 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2086 so that GDB doesn't match any msymbols when searching in the
2087 TYPES_DOMAIN.
2088 (print_symbol_info): Print using typedef_print or type_print based
2089 on the type of the symbol. Add updated FIXME comment moved from...
2090 (_initialize_symtab): ... move and update FIXME comment to above.
2091
2092 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2093
2094 * NEWS: Mention adding -q option to "info types".
2095 * symtab.c (struct info_types_options): New struct.
2096 (info_types_options_defs): New variable.
2097 (make_info_types_options_def_group): New function.
2098 (info_types_command): Use gdb::option framework to parse options.
2099 (info_types_command_completer): New function.
2100 (_initialize_symtab): Extend the help text on "info types" and
2101 register command completer.
2102
2103 2019-07-21 Christian Biesinger <cbiesinger@google.com>
2104
2105 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2106 (lookup_symbol_in_objfile): Change int to block_enum and add a
2107 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2108
2109 2019-07-20 Christian Biesinger <cbiesinger@google.com>
2110
2111 * MAINTAINERS (Write After Approval): Add self.
2112
2113 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2114
2115 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2116 instruction to the dummy code region.
2117
2118 2019-07-19 Tom Tromey <tromey@adacore.com>
2119
2120 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2121 (ARGSUSED, PARAMS, __func__): Remove rules.
2122
2123 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2124
2125 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2126 * features/arm/arm-with-iwmmxt.c: Remove.
2127 * features/arm/arm-with-iwmmxt.xml: Remove.
2128 * features/arm/arm-with-m-fpa-layout.c: Remove.
2129 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2130 * features/arm/arm-with-m-vfp-d16.c: Remove.
2131 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2132 * features/arm/arm-with-m.c: Remove.
2133 * features/arm/arm-with-m.xml: Remove.
2134 * features/arm/arm-with-neon.c: Remove.
2135 * features/arm/arm-with-neon.xml: Remove.
2136 * features/arm/arm-with-vfpv2.c: Remove.
2137 * features/arm/arm-with-vfpv2.xml: Remove.
2138 * features/arm/arm-with-vfpv3.c: Remove.
2139 * features/arm/arm-with-vfpv3.xml: Remove.
2140
2141 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2142
2143 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2144
2145 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2146
2147 * arch/aarch32.c (aarch32_create_target_description): Create
2148 target descriptions using features.
2149 * arch/arm.c (arm_create_target_description)
2150 (arm_create_mprofile_target_description): Likewise.
2151 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2152
2153 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2154
2155 * Makefile.in: Add new files.
2156 * aarch32-tdep.c: New file.
2157 * aarch32-tdep.h: New file.
2158 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2159 Call aarch32_read_description.
2160 * arch/aarch32.c: New file.
2161 * arch/aarch32.h: New file.
2162 * arch/arm.c (arm_create_target_description)
2163 (arm_create_mprofile_target_description): New function.
2164 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2165 (arm_create_target_description)
2166 (arm_create_mprofile_target_description): New declaration.
2167 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2168 read_description functions.
2169 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2170 Likewise.
2171 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2172 * arm-tdep.c (tdesc_arm_list): New variable.
2173 (arm_register_g_packet_guesses): Call create description functions.
2174 (arm_read_description) (arm_read_mprofile_description): New
2175 function.
2176 * arm-tdep.h (arm_read_description)
2177 (arm_read_mprofile_description): Add declaration.
2178 * configure.tgt: Add new files.
2179
2180 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2181
2182 * top.c (new_ui_command): Open specified terminal just once.
2183
2184 2019-07-18 Tom Tromey <tromey@adacore.com>
2185
2186 * symtab.c (main_name): Constify return type.
2187 * symfile.c (set_initial_language): Update.
2188 * symtab.h (main_name): Constify return type.
2189
2190 2019-07-17 Tom Tromey <tom@tromey.com>
2191
2192 * tui/tui-winsource.c (tui_update_source_window)
2193 (tui_update_source_window_as_is)
2194 (tui_update_source_windows_with_line): Remove return.
2195 * tui/tui-disasm.c (tui_show_disassem)
2196 (tui_show_disassem_and_update_source): Remove return.
2197 * tui/tui.c (tui_reset): Remove return.
2198 * tui/tui-wingeneral.c
2199 (tui_check_and_display_highlight_if_needed): Remove return.
2200
2201 2019-07-17 Tom Tromey <tom@tromey.com>
2202
2203 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2204
2205 2019-07-17 Tom Tromey <tom@tromey.com>
2206
2207 * tui/tui-winsource.h (struct tui_exec_info_window)
2208 (struct tui_source_window_base): Move from tui-data.h.
2209 * tui/tui-winsource.c: Move many method definitions from
2210 elsewhere. Remove "structuring" comments.
2211 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2212 (tui_source_window_base::refresh_window): Move to
2213 tui-winsource.c.
2214 * tui/tui-win.c (tui_source_window_base::refresh_all)
2215 (tui_source_window_base::update_tab_width)
2216 (tui_source_window_base::set_new_height)
2217 (tui_source_window_base::do_make_visible_with_new_height): Move to
2218 tui-winsource.c.
2219 * tui/tui-source.h: Update.
2220 * tui/tui-source.c (tui_source_window_base::reset): Move to
2221 tui-winsource.c.
2222 * tui/tui-disasm.h: Update.
2223 * tui/tui-data.h (struct tui_exec_info_window): Move to
2224 tui-winsource.h.
2225 (struct tui_source_window_base): Likewise.
2226 * tui/tui-data.c (tui_source_window_base::clear_detail)
2227 (tui_source_window_base, ~tui_source_window_base): Move to
2228 tui-winsource.c.
2229
2230 2019-07-17 Tom Tromey <tom@tromey.com>
2231
2232 * tui/tui-win.c (tui_resize_all)
2233 (tui_source_window_base::update_tab_width)
2234 (tui_adjust_win_heights): Update.
2235 (tui_win_info::make_invisible_and_set_new_height): Rename from
2236 make_invisible_and_set_new_height.
2237 * tui/tui-data.h (struct tui_win_info)
2238 <make_invisible_and_set_new_height>: New method.
2239
2240 2019-07-17 Tom Tromey <tom@tromey.com>
2241
2242 * tui/tui.c: Update.
2243 * tui/tui-source.h (struct tui_source_window): Move from
2244 tui-data.h.
2245 * tui/tui-layout.c: Update.
2246 * tui/tui-disasm.c: Update.
2247 * tui/tui-data.h (struct tui_source_window): Move to
2248 tui-source.h.
2249
2250 2019-07-17 Tom Tromey <tom@tromey.com>
2251
2252 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2253 tui-data.h.
2254 * tui/tui-data.h (struct tui_disasm_window): Move to
2255 tui-disasm.h.
2256
2257 2019-07-17 Tom Tromey <tom@tromey.com>
2258
2259 * tui/tui-regs.h (struct tui_data_item_window): Move from
2260 tui-data.h.
2261 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2262 * tui/tui-data.h (struct tui_data_item_window): Move to
2263 tui-regs.h.
2264 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2265
2266 2019-07-17 Tom Tromey <tom@tromey.com>
2267
2268 * tui/tui.c: Update.
2269 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2270 (tui_cmd_window::max_height): Move to tui-command.c.
2271 * tui/tui-layout.c: Update.
2272 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2273 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2274 tui-command.c.
2275 * tui/tui-command.h (struct tui_cmd_window): Move from
2276 tui-data.h.
2277 * tui/tui-command.c: Remove "structuring" comments.
2278 (tui_cmd_window::clear_detail)
2279 (tui_cmd_window::do_make_visible_with_new_height)
2280 (tui_cmd_window::max_height): Move from elsewhere.
2281
2282 2019-07-17 Tom Tromey <tom@tromey.com>
2283
2284 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2285 Now static.
2286 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2287 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2288
2289 2019-07-17 Tom Tromey <tom@tromey.com>
2290
2291 * tui/tui.c: Update.
2292 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2293 tui-regs.c.
2294 * tui/tui-windata.h: Remove file.
2295 * tui/tui-windata.c: Remove file.
2296 * tui/tui-win.c (tui_data_window::set_new_height)
2297 (tui_data_window::do_make_visible_with_new_height): Move to
2298 tui-regs.c.
2299 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2300 * tui/tui-regs.c: Remove "structuring" comments.
2301 (tui_data_window::first_data_item_displayed)
2302 (tui_data_window::delete_data_content_windows)
2303 (tui_data_window::erase_data_content)
2304 (tui_data_window::display_all_data)
2305 (tui_data_window::refresh_all)
2306 (tui_data_window::do_scroll_vertical)
2307 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2308 (tui_data_window::do_make_visible_with_new_height)
2309 (tui_data_window::refresh_window): Move from elsewhere.
2310 (_initialize_tui_regs): Move to end of file.
2311 * tui/tui-layout.c: Update.
2312 * tui/tui-hooks.c: Update.
2313 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2314 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2315 tui-regs.c.
2316 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2317
2318 2019-07-17 Tom Tromey <tom@tromey.com>
2319
2320 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2321 seen.
2322
2323 2019-07-17 Tom Tromey <tom@tromey.com>
2324
2325 * tui/tui-win.c (tui_source_window_base::set_new_height)
2326 (tui_source_window_base::do_make_visible_with_new_height): Use
2327 m_has_locator field directly.
2328 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2329 method.
2330 (struct tui_source_window_base) <has_locator>: Likewise.
2331
2332 2019-07-17 Tom Tromey <tom@tromey.com>
2333
2334 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2335 Don't declare.
2336 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2337 Remove.
2338 * tui/tui-win.c (tui_source_window_base::set_new_height)
2339 (tui_source_window_base::set_new_height)
2340 (make_invisible_and_set_new_height)
2341 (tui_source_window_base::do_make_visible_with_new_height)
2342 (tui_source_window_base::do_make_visible_with_new_height):
2343 Update.
2344 * tui/tui-layout.c (show_source_disasm_command, show_data)
2345 (show_source_or_disasm_and_command): Update.
2346 * tui/tui-layout.c (show_layout): Update.
2347
2348 2019-07-17 Tom Tromey <tom@tromey.com>
2349
2350 * tui/tui-layout.c (make_data_window): Remove.
2351 (show_data): Unify creation and re-initialization cases.
2352
2353 2019-07-17 Tom Tromey <tom@tromey.com>
2354
2355 * tui/tui-layout.c (make_source_window, make_disasm_window):
2356 Remove.
2357 (show_data): Unify creation and re-initialization cases.
2358
2359 2019-07-17 Tom Tromey <tom@tromey.com>
2360
2361 * tui/tui-layout.c (make_command_window): Remove.
2362 (show_source_disasm_command, show_source_or_disasm_and_command):
2363 Unify creation and re-initialization cases.
2364
2365 2019-07-17 Tom Tromey <tom@tromey.com>
2366
2367 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2368 creation and re-initialization cases.
2369
2370 2019-07-17 Tom Tromey <tom@tromey.com>
2371
2372 * tui/tui-regs.c (tui_get_register): Return void.
2373
2374 2019-07-17 Tom Tromey <tom@tromey.com>
2375
2376 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2377 Simplify.
2378
2379 2019-07-17 Tom Tromey <tom@tromey.com>
2380
2381 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2382 resetting.
2383
2384 2019-07-17 Tom Tromey <tom@tromey.com>
2385
2386 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2387 * tui/tui-regs.c (tui_reg_layout): New function.
2388 (tui_show_registers, tui_reg_command): Use it.
2389 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2390 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2391 parameters.
2392 (tui_layout_command): Remove.
2393
2394 2019-07-17 Tom Tromey <tom@tromey.com>
2395
2396 * tui/tui-layout.h (tui/tui-layout): Return void.
2397 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2398
2399 2019-07-17 Tom Tromey <tom@tromey.com>
2400
2401 * tui/tui-layout.c (show_source_disasm_command, show_data):
2402 Update.
2403 (reset_locator): Remove.
2404 (show_source_or_disasm_and_command): Update.
2405
2406 2019-07-17 Tom Tromey <tom@tromey.com>
2407
2408 * tui/tui-source.c (tui_source_window_base::reset): Remove
2409 win_type parameter.
2410 * tui/tui-layout.c (make_command_window, make_source_window)
2411 (make_disasm_window, make_data_window)
2412 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2413 (reset_locator, show_source_or_disasm_and_command): Update.
2414 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2415 win_type parameter.
2416 (struct tui_source_window_base) <reset>: Likewise.
2417
2418 2019-07-17 Tom Tromey <tom@tromey.com>
2419
2420 * tui/tui-layout.c (show_source_disasm_command): Use
2421 reset_locator.
2422 (reset_locator): New function.
2423 (init_and_make_win): Remove.
2424 (show_source_or_disasm_and_command): Use reset_locator.
2425
2426 2019-07-17 Tom Tromey <tom@tromey.com>
2427
2428 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2429 condition.
2430 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2431 Remove condition.
2432 * tui/tui-source.c (tui_source_window_base::reset): New method.
2433 * tui/tui-layout.c (make_command_window): Don't call
2434 init_and_make_win.
2435 (make_source_window, make_disasm_window): Don't call
2436 make_source_or_disasm_window.
2437 (make_data_window): Don't call init_and_make_win. Change calling
2438 convention.
2439 (show_source_disasm_command, show_data): Simplify.
2440 (make_source_or_disasm_window): Remove.
2441 (show_source_or_disasm_and_command): Simplify.
2442 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2443 (struct tui_source_window_base) <reset>: Likewise.
2444 <execution_info>: Remove initializer.
2445 * tui/tui-data.c (tui_source_window_base): Initialize
2446 execution_info.
2447
2448 2019-07-17 Tom Tromey <tom@tromey.com>
2449
2450 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2451 variable.
2452
2453 2019-07-17 Tom Tromey <tom@tromey.com>
2454
2455 * tui/tui.c (tui_rl_other_window): Update.
2456 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2457 superclass method first. Always iterate over regs_content.
2458 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2459 method.
2460 * tui/tui-win.c (tui_set_focus_command): Update.
2461
2462 2019-07-17 Tom Tromey <tom@tromey.com>
2463
2464 * tui/tui-win.c (tui_set_focus_command): Rename from
2465 tui_set_focus. Call tui_enable.
2466 (tui_set_focus_command): Remove.
2467
2468 2019-07-17 Tom Tromey <tom@tromey.com>
2469
2470 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2471 refresh_window.
2472 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2473 touchwin.
2474 (tui_data_window::refresh_window): Call refresh_window on data
2475 items. Always call superclass refresh_window.
2476 (tui_win_info::refresh): Remove.
2477 (tui_source_window_base::refresh_window): Update.
2478 (tui_refresh_all): Update.
2479 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2480 refresh_window.
2481 (show_source_or_disasm_and_command): Likewise.
2482 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2483 (struct tui_source_window_base) <refresh>: Likewise.
2484
2485 2019-07-17 Tom Tromey <tom@tromey.com>
2486
2487 * tui/tui-winsource.c (tui_clear_source_content)
2488 (tui_show_source_content): Update.
2489 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2490 whether content is empty.
2491 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2492 Remove.
2493
2494 2019-07-17 Tom Tromey <tom@tromey.com>
2495
2496 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2497 window's contents.
2498 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2499 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2500
2501 2019-07-17 Tom Tromey <tom@tromey.com>
2502
2503 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2504 (struct tui_data_item_window): Update.
2505
2506 2019-07-17 Tom Tromey <tom@tromey.com>
2507
2508 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2509 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2510 defines.
2511
2512 2019-07-17 Tom Tromey <tom@tromey.com>
2513
2514 * tui/tui-winsource.h (tui_erase_source_content)
2515 (tui_clear_source_content): Remove "display_prompt" parameter.
2516 * tui/tui-winsource.c (tui_update_source_window_as_is)
2517 (tui_update_source_windows_with_addr): Update.
2518 (tui_clear_source_content): Remove "display_prompt" parameter.
2519 (tui_erase_source_content): Likewise. Simplify.
2520 (tui_show_source_content): Update.
2521 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2522 * tui/tui-stack.c (tui_show_frame_info): Update.
2523 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2524 Remove defines.
2525
2526 2019-07-17 Tom Tromey <tom@tromey.com>
2527
2528 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2529 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2530 parameter.
2531 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2532 parameter.
2533
2534 2019-07-17 Tom Tromey <tom@tromey.com>
2535
2536 * tui/tui-winsource.c (tui_clear_source_content)
2537 (tui_show_source_content, tui_show_exec_info_content)
2538 (tui_clear_exec_info_content): Update.
2539 * tui/tui-stack.c (tui_show_locator_content): Update.
2540 (tui_show_frame_info): Update.
2541 * tui/tui-source.h (tui_source_window): Don't declare.
2542 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2543 from tui_source_is_displayed.
2544 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2545 Remove field.
2546 (struct tui_source_window_base) <content_in_use>: New field. Now
2547 bool.
2548 (struct tui_source_window) <showing_source_p>: New method.
2549 (TUI_SRC_WIN): Change cast.
2550 * tui/tui-data.c (tui_initialize_static_data): Update.
2551
2552 2019-07-17 Tom Tromey <tom@tromey.com>
2553
2554 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2555 location_matches_p.
2556 * tui/tui-source.c (tui_source_window::location_matches_p): New
2557 method.
2558 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2559 method.
2560 * tui/tui-data.h (struct tui_source_window_base)
2561 <location_matches_p>: New method.
2562 (struct tui_source_window, struct tui_disasm_window)
2563 <location_matches_p>: Likewise.
2564
2565 2019-07-17 Tom Tromey <tom@tromey.com>
2566
2567 * tui/tui-win.c (tui_set_win_height_command): Rename from
2568 tui_set_win_height.
2569 (tui_set_win_height_command): Remove.
2570
2571 2019-07-17 Tom Tromey <tom@tromey.com>
2572
2573 * tui/tui-source.c (tui_source_window): New constructor. Add
2574 observer.
2575 (~tui_source_window): New destructor.
2576 (tui_source_window::style_changed): New method.
2577 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2578 (tui_attach_detach_observers): Update.
2579 * tui/tui-data.h (struct tui_source_window): Make constructor not
2580 inline. Add destructor.
2581 (struct tui_source_window) <style_changed>: New method.
2582 <m_observable>: New member.
2583
2584 2019-07-17 Tom Tromey <tom@tromey.com>
2585
2586 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2587 * tui/tui-win.c (tui_resize_all): Fix typo.
2588
2589 2019-07-17 Tom Tromey <tom@tromey.com>
2590
2591 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2592 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2593 (tui_refresh_all): Remove "list" parameter. Use foreach.
2594 * tui/tui-win.c (window_name_completer): Use foreach.
2595 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2596 (update_tab_width): Likewise.
2597 * tui/tui-layout.c (show_layout): Update.
2598 * tui/tui-data.h (class tui_window_iterator): New.
2599 (struct all_tui_windows): New.
2600 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2601
2602 2019-07-17 Tom Tromey <tom@tromey.com>
2603
2604 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2605 parameter. Don't reference globals.
2606 (tui_reg_command): Update.
2607
2608 2019-07-17 Tom Tromey <tom@tromey.com>
2609
2610 * tui/tui-regs.c (tui_show_registers): Simplify.
2611
2612 2019-07-17 Tom Tromey <tom@tromey.com>
2613
2614 * tui/tui-regs.c (tui_show_registers): Update.
2615 (tui_show_register_group): Add win_info parameter.
2616
2617 2019-07-17 Tom Tromey <tom@tromey.com>
2618
2619 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2620 Rename from tui_display_reg_element_at_line.
2621 (tui_data_window::display_registers_from_line): Update.
2622 * tui/tui-data.h (struct tui_data_window)
2623 <display_reg_element_at_line>: New method.
2624
2625 2019-07-17 Tom Tromey <tom@tromey.com>
2626
2627 * tui/tui-regs.h (tui_display_registers_from)
2628 (tui_display_registers_from_line): Don't declare.
2629 * tui/tui-windata.c (tui_data_window::display_all_data)
2630 (tui_data_window::refresh_all)
2631 (tui_data_window::do_scroll_vertical): Update.
2632 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2633 from tui_display_registers_from.
2634 (tui_display_reg_element_at_line): Update.
2635 (tui_data_window::display_registers_from_line): Rename from
2636 tui_display_registers_from_line.
2637 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2638 display_registers_from_line>: New methods.
2639
2640 2019-07-17 Tom Tromey <tom@tromey.com>
2641
2642 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2643 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2644 from tui_erase_data_content.
2645 (tui_data_window::display_all_data)
2646 (tui_data_window::refresh_all)
2647 (tui_data_window::do_scroll_vertical): Update.
2648 * tui/tui-regs.c (tui_show_registers): Update.
2649 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2650 New method.
2651
2652 2019-07-17 Tom Tromey <tom@tromey.com>
2653
2654 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2655 declare.
2656 * tui/tui-windata.c
2657 (tui_data_window::delete_data_content_windows): Rename from
2658 tui_delete_data_content_windows.
2659 (tui_data_window::display_all_data)
2660 (tui_data_window::do_scroll_vertical): Update.
2661 * tui/tui-data.h (struct tui_data_window)
2662 <delete_data_content_windows>: New method.
2663
2664 2019-07-17 Tom Tromey <tom@tromey.com>
2665
2666 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2667 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2668
2669 2019-07-17 Tom Tromey <tom@tromey.com>
2670
2671 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2672 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2673 from tui_display_all_data.
2674 * tui/tui-win.c
2675 (tui_data_window::do_make_visible_with_new_height): Update.
2676 * tui/tui-regs.c (tui_show_registers): Update.
2677 * tui/tui-layout.c (tui_set_layout): Update.
2678 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2679 method.
2680
2681 2019-07-17 Tom Tromey <tom@tromey.com>
2682
2683 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2684 * tui/tui-windata.c (tui_display_data_from): Remove.
2685 (tui_data_window::refresh_all): Update.
2686
2687 2019-07-17 Tom Tromey <tom@tromey.com>
2688
2689 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2690 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2691 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2692 tui_display_registers_from_line.
2693 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2694 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2695 "force_display" parameter.
2696
2697 2019-07-17 Tom Tromey <tom@tromey.com>
2698
2699 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2700 declare.
2701 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2702 Rename from tui_first_reg_element_no_inline.
2703 (tui_display_reg_element_at_line)
2704 (tui_display_registers_from_line): Update.
2705 * tui/tui-data.h (struct tui_data_window)
2706 <first_reg_element_no_inline>: New method.
2707
2708 2019-07-17 Tom Tromey <tom@tromey.com>
2709
2710 * tui/tui-windata.c (tui_display_data_from)
2711 (tui_data_window::do_scroll_vertical): Update.
2712 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2713 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2714 Rename from tui_line_from_reg_element_no.
2715 (tui_display_registers_from_line): Update.
2716 * tui/tui-data.h (struct tui_data_window)
2717 <line_from_reg_element_no>: New method.
2718
2719 2019-07-17 Tom Tromey <tom@tromey.com>
2720
2721 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2722 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2723 tui_last_regs_line_no.
2724 (tui_display_reg_element_at_line)
2725 (tui_display_registers_from_line): Update.
2726 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2727 method.
2728
2729 2019-07-17 Tom Tromey <tom@tromey.com>
2730
2731 PR tui/24722:
2732 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2733 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2734 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2735 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2736 (tui_update_breakpoint_info): Likewise.
2737 * tui/tui-hooks.c (tui_event_create_breakpoint)
2738 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2739 Update.
2740
2741 2019-07-17 Tom Tromey <tom@tromey.com>
2742
2743 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2744
2745 2019-07-17 Tom Tromey <tom@tromey.com>
2746
2747 * tui/tui-winsource.c (tui_update_source_window_as_is)
2748 (tui_update_source_windows_with_addr): Update.
2749 * tui/tui-source.h (tui_set_source_content)
2750 (tui_show_symtab_source): Add "win_info" parameter.
2751 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2752 parameter.
2753 (tui_show_symtab_source): Likewise.
2754
2755 2019-07-17 Tom Tromey <tom@tromey.com>
2756
2757 * tui/tui-wingeneral.c
2758 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2759
2760 2019-07-17 Tom Tromey <tom@tromey.com>
2761
2762 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2763 (struct tui_cmd_window) <can_scroll>: New method.
2764 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2765 method.
2766
2767 2019-07-17 Tom Tromey <tromey@adacore.com>
2768
2769 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2770 do_field_signed>: Rename. Change type of "value".
2771 * ui-out.c (ui_out::field_signed): Rename from field_int.
2772 Change type of "value".
2773 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2774 type of "value".
2775 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2776 do_field_int. Change type of "value".
2777 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2778 do_field_int. Change type of "value".
2779 * tracepoint.c (trace_status_mi, tfind_1)
2780 (print_one_static_tracepoint_marker): Update.
2781 * thread.c (print_thread_info_1, print_selected_thread_frame):
2782 Update.
2783 * stack.c (print_frame, print_frame_info): Update.
2784 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2785 Update.
2786 * source.c (print_source_lines_base): Update.
2787 * skip.c (info_skip_command): Update.
2788 * record-btrace.c (btrace_ui_out_decode_error)
2789 (btrace_call_history_src_line): Update.
2790 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2791 Update.
2792 * progspace.c (print_program_space): Update.
2793 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2794 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2795 do_field_int. Change type of "value".
2796 * mi/mi-out.c (mi_ui_out::do_table_begin)
2797 (mi_ui_out::do_table_header): Update.
2798 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2799 type of "value".
2800 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2801 (mi_cmd_data_list_changed_registers, output_register)
2802 (mi_cmd_data_read_memory, mi_load_progress)
2803 (mi_cmd_trace_frame_collected): Update.
2804 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2805 Update.
2806 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2807 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2808 (mi_cmd_var_list_children, varobj_update_one): Update.
2809 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2810 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2811 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2812 * inferior.c (print_inferior): Update.
2813 * gdb_bfd.c (print_one_bfd): Update.
2814 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2815 Update.
2816 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2817 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2818 do_field_int. Change type of "value".
2819 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2820 do_field_int. Change type of "value".
2821 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2822 (print_one_breakpoint_location, print_it_catch_fork)
2823 (print_one_catch_fork, print_it_catch_vfork)
2824 (print_one_catch_vfork, print_it_catch_solib)
2825 (print_it_catch_exec, print_it_ranged_breakpoint)
2826 (print_mention_watchpoint, print_mention_masked_watchpoint)
2827 (bkpt_print_it, update_static_tracepoint): Update.
2828 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2829 * break-catch-syscall.c (print_it_catch_syscall): Update.
2830 * ada-tasks.c (print_ada_task_info): Update.
2831 * ada-lang.c (print_it_exception, print_mention_exception):
2832 Update.
2833
2834 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2835
2836 PR breakpoints/24541
2837 * gdbarch.c: Regenerate.
2838 * gdbarch.h: Regenerate.
2839 * gdbarch.sh: Adjust return type and parameter types for
2840 'stap_adjust_register'.
2841 (i386_stap_adjust_register): Adjust signature and return new
2842 register name.
2843 * stap-probe.c (stap_parse_register_operand): Adjust use of
2844 'gdbarch_stap_adjust_register'.
2845
2846 2019-07-17 Tom Tromey <tromey@adacore.com>
2847
2848 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2849 declare VEC.
2850 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2851 std::vector.
2852 (struct s390_process_info): Add initializers.
2853 (s390_add_process): Use new.
2854 (s390_linux_nat_target::low_forget_process): Use delete.
2855 (s390_linux_nat_target::low_new_fork)
2856 (s390_linux_nat_target::stopped_by_watchpoint)
2857 (s390_linux_nat_target::low_prepare_to_resume)
2858 (s390_linux_nat_target::insert_watchpoint)
2859 (s390_linux_nat_target::insert_hw_breakpoint)
2860 (s390_linux_nat_target::remove_watchpoint)
2861 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2862
2863 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2864
2865 * aarch64-fbsd-nat.c: Include regcache.h.
2866 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2867 argument.
2868 (aarch64_fbsd_nat_target::fetch_registers)
2869 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2870 variable.
2871 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2872
2873 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2874
2875 * fbsd-nat.c: Include gdbarch.h.
2876
2877 2019-07-15 Tom Tromey <tromey@adacore.com>
2878
2879 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2880
2881 2019-07-15 Tom Tromey <tromey@adacore.com>
2882
2883 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2884 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2885 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2886 * cli-out.c (cli_ui_out::do_field_int): New method.
2887 * ui-out.c (ui_out::field_unsigned): New method.
2888 * symfile.c (generic_load): Use field_unsigned.
2889 (print_transfer_performance): Likewise.
2890 * record-btrace.c (ui_out_field_uint): Remove.
2891 (btrace_call_history_insn_range, btrace_call_history): Use
2892 field_unsigned.
2893 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2894 field_unsigned.
2895 * ui-out.h (class ui_out) <field_unsigned>: New method.
2896 <do_field_unsigned>: Likewise.
2897
2898 2019-07-15 Tom Tromey <tromey@adacore.com>
2899
2900 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2901 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2902 * target.c (flash_erase_command): Use field_string.
2903 * infrun.c (print_signal_received_reason): Use field_string.
2904 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2905 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2906 field_string.
2907 * ada-tasks.c (print_ada_task_info): Use field_string.
2908
2909 2019-07-15 Tom Tromey <tromey@adacore.com>
2910
2911 * target.c (flash_erase_command): Use field_core_addr.
2912 * symfile.c (generic_load): Use field_core_addr.
2913 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2914 Use field_core_addr.
2915 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2916 field_core_addr.
2917
2918 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2919
2920 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2921 value if its desired type is smaller than a CORE_ADDR and signed.
2922
2923 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2924
2925 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2926 of changes to field names, and use new is_reference field to
2927 decide if a property is a reference or not.
2928 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2929 field.
2930 (struct dwarf2_property_baton): Update header comment, rename
2931 'referenced_type' to 'property_type' and update comments.
2932 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2933 default property type, store in property baton, update to take
2934 accound of renamed field.
2935 (read_func_scope): Update call to attr_to_dynamic_prop.
2936 (read_array_type): Likewise.
2937 (dwarf2_per_cu_addr_sized_int_type): New function.
2938 (read_subrange_index_type): Move type finding code to
2939 dwarf2_per_cu_addr_sized_int_type.
2940 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2941 (dwarf2_per_cu_addr_type): New function.
2942 (set_die_type): Update calls to attr_to_dynamic_prop.
2943
2944 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2945
2946 * dwarf2read.c (read_subrange_index_type): New function.
2947 (read_subrange_type): Move code into new function and call it.
2948 * gdbtypes.c (create_range_type): Add some asserts.
2949
2950 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2951
2952 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2953 update return statements.
2954 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2955 declaration, and update comment to match.
2956 * gdbtypes.c (resolve_dynamic_array): Update call to
2957 dwarf2_evaluate_property to match new return type.
2958
2959 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2960
2961 * valarith.c (value_subscripted_rvalue): Change lowerbound
2962 parameter type from int to LONGEST.
2963 * value.h (value_subscripted_rvalue): Likewise in declaration.
2964
2965 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2966
2967 * cli/cli-utils.c (info_print_command_completer): New function.
2968 * cli/cli-utils.h: Add 'completer.h' include, and forward
2969 declaration for 'struct cmd_list_element'.
2970 (info_print_command_completer): Declare.
2971 * stack.c (_initialize_stack): Add completer for 'info locals' and
2972 'info args'.
2973 * symtab.c (_initialize_symtab): Add completer for 'info
2974 variables' and 'info functions'.
2975 * NEWS: Mention completion for additional info commands.
2976
2977 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2978
2979 * cli/cli-utils.c (extract_info_print_args): Delete.
2980 (extract_arg_maybe_quoted): Delete.
2981 (info_print_options_defs): New variable.
2982 (make_info_print_options_def_group): New function.
2983 (extract_info_print_options): Define new function.
2984 * cli/cli-utils.h (extract_info_print_args): Delete.
2985 (struct info_print_options): New structure.
2986 (extract_info_print_options): Declare new function.
2987 * stack.c (info_locals_command): Update to use new
2988 extract_info_print_options, also add a header comment.
2989 (info_args_command): Likewise.
2990 * symtab.c (info_variables_command): Likewise.
2991 (info_functions_command): Likewise.
2992
2993 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2994
2995 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
2996 to extract string arguments.
2997 * common/common-utils.c (extract_string_maybe_quoted): New function.
2998 * common/common-utils.h (extract_string_maybe_quoted): Declare.
2999
3000 2019-07-11 Tom Tromey <tromey@adacore.com>
3001
3002 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3003 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3004 * top.h (gdbinit): Don't declare.
3005 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3006 into...
3007 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3008 * top.c (gdb_init): Don't call init_cli_cmds.
3009 (gdbinit): Remove.
3010 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3011
3012 2019-07-11 Tom Tromey <tromey@adacore.com>
3013
3014 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3015 after it has been moved.
3016
3017 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3018
3019 * valops.c (value_must_coerce_to_target): Change return type to
3020 bool.
3021 * value.h (value_must_coerce_to_target): Likewise.
3022
3023 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
3024
3025 * breakpoint.c (is_hardware_watchpoint): Remove
3026 forward-declaration.
3027 (is_masked_watchpoint): Change return type to bool.
3028 (is_tracepoint): Likewise.
3029 (is_breakpoint): Likewise.
3030 (is_hardware_watchpoint): Likewise.
3031 (is_watchpoint): Likewise.
3032 (is_no_memory_software_watchpoint): Likewise.
3033 (is_catchpoint): Likewise.
3034 (breakpoint_1): Make FILTER parameter's return type bool.
3035 is_masked_watchpoint): Change return type to bool.
3036 (save_breakpoints): Make FILTER parameter's return type bool.
3037 * breakpoint.h (is_breakpoint): Change return type to bool.
3038 (is_watchpoint): Likewise.
3039 (is_catchpoint): Likewise.
3040 (is_tracepoint): Likewise.
3041
3042 2019-07-10 Tom Tromey <tom@tromey.com>
3043
3044 * defs.h: Don't include gdbarch.h.
3045 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3046 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3047 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3048 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3049 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3050 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3051 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3052 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3053 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3054 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3055 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3056 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3057 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3058 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3059 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3060 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3061 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3062 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3063 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3064 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3065 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3066 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3067 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3068 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3069 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3070 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3071 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3072
3073 2019-07-10 Tom Tromey <tromey@adacore.com>
3074
3075 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3076 * breakpoint.c (init_ada_exception_breakpoint): Register as
3077 bp_catchpoint.
3078 (print_one_breakpoint_location, print_one_breakpoint): Use
3079 is_ada_exception_catchpoint.
3080 * ada-lang.c (class ada_catchpoint_location): Pass
3081 bp_loc_software_breakpoint to bp_location constructor.
3082 (is_ada_exception_catchpoint): New function.
3083
3084 2019-07-10 Tom Tromey <tromey@adacore.com>
3085
3086 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3087 VEC.
3088 (struct arm_exidx_entry): New method operator<.
3089 (struct arm_exidx_data) <section_maps>: Change type.
3090 (arm_exidx_data_free): Remove.
3091 (arm_exidx_data_key): Change type. Move lower.
3092 (arm_exidx_new_objfile): Update.
3093 (arm_compare_exidx_entries): Remove.
3094 (arm_find_exidx_entry, _initialize_arm_tdep)
3095
3096 2019-07-10 Tom Tromey <tromey@adacore.com>
3097
3098 * solib-spu.c (ocl_program_data_key): Change type.
3099 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3100 Update.
3101
3102 2019-07-10 Tom Tromey <tromey@adacore.com>
3103
3104 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3105 (struct solib_aix_inferior_data) <library_list>: Change type.
3106 (solib_aix_inferior_data_handle): Change type.
3107 (get_solib_aix_inferior_data): Update.
3108 (solib_aix_free_library_list): Remove.
3109 (library_list_start_library): Update.
3110 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3111 return type.
3112 (solib_aix_get_library_list)
3113 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3114 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3115
3116 2019-07-10 Tom Tromey <tromey@adacore.com>
3117
3118 * solib-dsbt.c (struct dsbt_info): Add initializers.
3119 (solib_dsbt_pspace_data): Change type.
3120 (dsbt_pspace_data_cleanup): Remove.
3121 (get_dsbt_info, _initialize_dsbt_solib): Update.
3122
3123 2019-07-10 Tom Tromey <tromey@adacore.com>
3124
3125 * spu-tdep.c (spu_overlay_data): Change type.
3126 (spu_get_overlay_table, spu_overlay_new_objfile)
3127 (_initialize_spu_tdep): Update.
3128
3129 2019-07-10 Tom Tromey <tromey@adacore.com>
3130
3131 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3132 destructor.
3133 (dbx_objfile_data_key): Change type and declare later.
3134 (DBX_SYMFILE_INFO): Rewrite.
3135 * dbxread.c (dbx_objfile_data_key): Change type.
3136 (dbx_symfile_init): Update.
3137 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3138 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3139 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3140
3141 2019-07-10 Tom Tromey <tromey@adacore.com>
3142
3143 * jit.c (jit_program_space_key): Change type. Move lower.
3144 (get_jit_program_space_data): Update.
3145 (jit_program_space_data_cleanup): Remove.
3146 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3147 Update.
3148 (struct jit_program_space_data): Add initializers.
3149
3150 2019-07-10 Tom Tromey <tromey@adacore.com>
3151
3152 * solib-darwin.c (struct darwin_info): Add initializers.
3153 (solib_darwin_pspace_data): Change type.
3154 (darwin_pspace_data_cleanup): Remove.
3155 (get_darwin_info, _initialize_darwin_solib): Update.
3156
3157 2019-07-10 Tom Tromey <tromey@adacore.com>
3158
3159 * remote-sim.c (struct sim_inferior_data): Add initializers,
3160 constructor, and destructor.
3161 (sim_inferior_data_key): Change type. Move lower.
3162 (check_for_duplicate_sim_descriptor): Update.
3163 (get_sim_inferior_data): Use new. Update.
3164 (~sim_inferior_data_cleanup): Rename from
3165 sim_inferior_data_cleanup. Simplify.
3166 (gdbsim_close_inferior, simulator_command)
3167 (sim_command_completer, _initialize_remote_sim): Update.
3168 (next_pid, INITIAL_PID): Move earlier.
3169
3170 2019-07-10 Tom Tromey <tromey@adacore.com>
3171
3172 * python/python-internal.h (create_thread_object): Return
3173 gdbpy_ref.
3174 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3175 * python/py-inferior.c (struct threadlist_entry): Add
3176 constructor.
3177 <thread_obj>: Now a gdbpy_ref.
3178 (thread_to_thread_object): Update.
3179 (add_thread_object): Use new.
3180 (delete_thread_object): Use delete.
3181 (infpy_threads): Update.
3182 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3183 GIL.
3184
3185 2019-07-10 Tom Tromey <tromey@adacore.com>
3186
3187 * valops.c (value_cast): Specialize error message for Ada.
3188
3189 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3190
3191 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3192
3193 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3194
3195 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3196 bpstat_should_step): Return bool, adjust comments.
3197 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3198 bpstat_should_step): Likewise.
3199
3200 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3201
3202 * features/Makefile: Use feature target descriptions for Arm.
3203 * features/arm/arm-core.c: Generate new file.
3204 * features/arm/arm-fpa.c: Likewise.
3205 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3206 * features/arm/arm-m-profile.c: Likewise.
3207 * features/arm/arm-vfpv2.c: Likewise.
3208 * features/arm/arm-vfpv3.c: Likewise.
3209 * features/arm/xscale-iwmmxt.c: Likewise.
3210 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3211
3212 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3213
3214 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3215 ptrace earlier.
3216
3217 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3218
3219 * features/aarch64-pauth.c: Regenerate.
3220
3221 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3222
3223 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3224 bool.
3225 (bpstat_what): Use false instead of 0.
3226
3227 2019-07-09 Pedro Alves <palves@redhat.com>
3228
3229 * break-catch-throw.c (is_exception_catchpoint): New.
3230 * breakpoint.c (print_one_breakpoint_location): New parameter
3231 'raw_loc'. Handle it. Use
3232 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3233 looking at the breakpoint's type.
3234 (print_one_breakpoint): If handling "maint info breakpoints", also
3235 print locations of exception catchpoints.
3236 * breakpoint.h (is_exception_catchpoint): Declare.
3237
3238 2019-07-09 Pedro Alves <palves@redhat.com>
3239
3240 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3241 "addr" field.
3242 (allocate_location_exception_catchpoint): New.
3243 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3244 (initialize_throw_catchpoint_ops): Install
3245 allocate_location_exception_catchpoint as allocate_location
3246 method.
3247 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3248 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3249 bp_loc_other.
3250 (breakpoint_address_is_meaningful): Delete.
3251 (bl_address_is_meaningful): New.
3252 (breakpoint_locations_match): Adjust comment.
3253 (bp_location_from_bp_type): New, factored out of...
3254 (bp_location::bp_location(breakpoint *)): ... this.
3255 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3256 factored out of...
3257 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3258 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3259 breakpoint_address_is_meaningful.
3260 (bp_locations_compare): Adjust comment.
3261 (update_global_location_list): Use bl_address_is_meaningful
3262 instead of breakpoint_address_is_meaningful.
3263 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3264 explicit.
3265 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3266 * python/py-breakpoint.c (bppy_get_location): No longer check
3267 whether location is null.
3268
3269 2019-07-09 Pedro Alves <palves@redhat.com>
3270
3271 PR c++/15468
3272 * breakpoint.c (print_one_breakpoint_location): Remove
3273 single-location assert.
3274
3275 2019-07-09 Tom Tromey <tom@tromey.com>
3276
3277 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3278 * configure: Rebuild.
3279 * configure.ac: Change common to gdbsupport.
3280 * gdbsupport: Rename from common.
3281 * acinclude.m4: Change common to gdbsupport.
3282 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3283 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3284 gdbsupport.
3285 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3286 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3287 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3288 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3289 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3290 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3291 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3292 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3293 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3294 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3295 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3296 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3297 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3298 coff-pe-read.c, command.h, compile/compile-c-support.c,
3299 compile/compile-c.h, compile/compile-cplus-symbols.c,
3300 compile/compile-cplus-types.c, compile/compile-cplus.h,
3301 compile/compile-loc2c.c, compile/compile.c, completer.c,
3302 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3303 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3304 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3305 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3306 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3307 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3308 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3309 features/aarch64-core.c, features/aarch64-fpu.c,
3310 features/aarch64-pauth.c, features/aarch64-sve.c,
3311 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3312 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3313 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3314 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3315 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3316 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3317 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3318 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3319 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3320 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3321 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3322 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3323 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3324 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3325 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3326 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3327 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3328 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3329 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3330 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3331 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3332 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3333 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3334 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3335 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3336 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3337 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3338 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3339 minsyms.c, mips-linux-tdep.c, namespace.h,
3340 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3341 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3342 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3343 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3344 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3345 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3346 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3347 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3348 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3349 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3350 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3351 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3352 procfs.c, producer.c, progspace.h, psymtab.h,
3353 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3354 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3355 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3356 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3357 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3358 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3359 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3360 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3361 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3362 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3363 target-memory.c, target.c, target.h, target/waitstatus.c,
3364 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3365 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3366 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3367 unittests/array-view-selftests.c,
3368 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3369 unittests/common-utils-selftests.c,
3370 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3371 unittests/format_pieces-selftests.c,
3372 unittests/function-view-selftests.c,
3373 unittests/lookup_name_info-selftests.c,
3374 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3375 unittests/mkdir-recursive-selftests.c,
3376 unittests/observable-selftests.c,
3377 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3378 unittests/parse-connection-spec-selftests.c,
3379 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3380 unittests/scoped_fd-selftests.c,
3381 unittests/scoped_mmap-selftests.c,
3382 unittests/scoped_restore-selftests.c,
3383 unittests/string_view-selftests.c, unittests/style-selftests.c,
3384 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3385 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3386 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3387 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3388 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3389 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3390
3391 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3392
3393 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3394 bool value.
3395 (decode_digits_ordinary): Set explicit_line field in sal.
3396 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3397 symtab_and_line that was set on an explicit line number in
3398 assembler code. Do always update the recorded symtab and line if
3399 we do skip the prologue.
3400
3401 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3402
3403 * breakpoint.c (set_breakpoint_location_function): Remove
3404 explicit_loc parameter.
3405 (momentary_breakpoint_from_master): Update call to
3406 set_breakpoint_location_function.
3407 (add_location_to_breakpoint): Likewise.
3408
3409 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3410
3411 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3412 required features based on default bfd type when no specific bfd
3413 is present.
3414
3415 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3416
3417 * NEWS: Mention that GDB printf and eval commands can now print
3418 C-style and Ada-style convenience var strings without
3419 calling the inferior.
3420 * printcmd.c (printf_c_string): Locally print GDB internal var
3421 instead of transiting via the inferior.
3422 (printf_wide_c_string): Likewise.
3423
3424 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3425
3426 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3427
3428 2019-07-04 Tom Tromey <tom@tromey.com>
3429
3430 PR tui/24724:
3431 * tui/tui-winsource.c (tui_clear_source_content): Update.
3432 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3433 (tui_update_breakpoint_info): Update.
3434 (tui_set_exec_info_content): Update.
3435 * tui/tui-source.c (tui_set_source_content_nil): Update.
3436 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3437 has_break.
3438 * tui/tui-data.h (enum tui_bp_flag): New.
3439 (tui_bp_flags): New enum flags type.
3440 (struct tui_source_element) <break_mode>: Change type. Rename
3441 from has_break.
3442 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3443 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3444 constants.
3445 * tui/tui-winsource.h: Fix comment.
3446
3447 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3448
3449 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3450 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3451 (store_fpregs_to_thread)
3452 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3453 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3454 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3455 (IWMMXT_REGS_SIZE): Add define.
3456 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3457 (fetch_vfp_regs, store_vfp_regs)
3458 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3459 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3460
3461 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3462
3463 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3464 defines.
3465 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3466 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3467 (ARM_INT_REGISTER_SIZE): ...to this.
3468 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3469 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3470 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3471 (arm_linux_collect_gregset, supply_nwfpe_register)
3472 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3473 defines.
3474 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3475 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3476 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3477 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3478 (arm_return_in_memory, arm_store_return_value)
3479 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3480 (arm_record_ld_st_multiple): Likewise.
3481 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3482 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3483
3484 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3485
3486 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3487 AARCH64_DISPLACED_MODIFIED_INSNS.
3488 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3489 (aarch64_displaced_step_copy_insn): Likewise.
3490 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3491 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3492 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3493 ARM_DISPLACED_MODIFIED_INSNS.
3494 * arm-tdep.c (arm_gdbarch_init): Likewise.
3495 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3496 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3497 (struct arm_displaced_step_closure): Use
3498 ARM_DISPLACED_MODIFIED_INSNS.
3499
3500 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3501
3502 * features/Makefile: Remove unused xml files.
3503 * features/aarch64.xml: Remove.
3504 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3505 * features/i386/amd64-avx-avx512.xml: Remove.
3506 * features/i386/amd64-avx-linux.xml: Remove.
3507 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3508 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3509 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3510 * features/i386/amd64-avx-mpx.xml: Remove.
3511 * features/i386/amd64-avx.xml: Remove.
3512 * features/i386/amd64-linux.xml: Remove.
3513 * features/i386/amd64-mpx-linux.xml: Remove.
3514 * features/i386/amd64-mpx.xml: Remove.
3515 * features/i386/amd64.xml: Remove.
3516 * features/i386/i386-avx-avx512-linux.xml: Remove.
3517 * features/i386/i386-avx-avx512.xml: Remove.
3518 * features/i386/i386-avx-linux.xml: Remove.
3519 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3520 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3521 * features/i386/i386-avx-mpx-linux.xml: Remove.
3522 * features/i386/i386-avx-mpx.xml: Remove.
3523 * features/i386/i386-avx.xml: Remove.
3524 * features/i386/i386-linux.xml: Remove.
3525 * features/i386/i386-mmx-linux.xml: Remove.
3526 * features/i386/i386-mmx.xml: Remove.
3527 * features/i386/i386-mpx-linux.xml: Remove.
3528 * features/i386/i386-mpx.xml: Remove.
3529 * features/i386/i386.xml: Remove.
3530 * features/i386/x32-avx-avx512-linux.xml: Remove.
3531 * features/i386/x32-avx-linux.xml: Remove.
3532 * features/i386/x32-linux.xml: Remove.
3533
3534 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3535
3536 * regformats/aarch64.dat: Remove.
3537 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3538 * regformats/i386/amd64-avx-linux.dat: Remove.
3539 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3540 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3541 * regformats/i386/amd64-linux.dat: Remove.
3542 * regformats/i386/amd64-mpx-linux.dat: Remove.
3543 * regformats/i386/amd64.dat: Remove.
3544 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3545 * regformats/i386/i386-avx-linux.dat: Remove.
3546 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3547 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3548 * regformats/i386/i386-linux.dat: Remove.
3549 * regformats/i386/i386-mmx-linux.dat: Remove.
3550 * regformats/i386/i386-mpx-linux.dat: Remove.
3551 * regformats/i386/i386.dat: Remove.
3552 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3553 * regformats/i386/x32-avx-linux.dat: Remove.
3554 * regformats/i386/x32-linux.dat: Remove.
3555
3556 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3557
3558 * aarch64-tdep.c: Remove xml self tests.
3559 * amd64-linux-tdep.c: Likewise.
3560 * amd64-tdep.c: Likewise.
3561 * i386-linux-tdep.c: Likewise.
3562 * i386-tdep.c: Likewise.
3563
3564 2019-07-03 Pedro Alves <palves@redhat.com>
3565
3566 PR cli/24732
3567 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3568 (pipe_cmd_option_defs): New.
3569 (make_pipe_cmd_options_def_group): New.
3570 (pipe_command): Use gdb::option::process_options.
3571 (pipe_command_completer): New function.
3572 (_initialize_cli_cmds): Install completer for "pipe" command.
3573
3574 2019-07-03 Pedro Alves <palves@redhat.com>
3575
3576 * cli/cli-option.c (union option_value) <string>: New field.
3577 (struct option_def_and_value): Add ctor, move ctor, dtor and
3578 use DISABLE_COPY_AND_ASSIGN.
3579 (option_def_and_value::clear_value): New.
3580 (parse_option, save_option_value_in_ctx, get_val_type_str)
3581 (add_setshow_cmds_for_options): Handle var_string.
3582 * cli-option.h (union option_def::var_address) <string>: New
3583 field.
3584 (struct string_option_def): New.
3585 * maint-test-options.c (struct test_options_opts): Add default
3586 ctor and use DISABLE_COPY_AND_ASSIGN.
3587 <string_opt>: New field.
3588 (test_options_opts::~test_options_opts): New.
3589 (test_options_opts::dump): Also dump "-string".
3590 (test_options_option_defs): Install "string.
3591
3592 2019-07-03 Pedro Alves <palves@redhat.com>
3593
3594 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3595 option_value with a null enumeration.
3596 (complete_options): Save the option values in the context.
3597 (save_option_value_in_ctx): New, factored out from ...
3598 (process_options): ... here.
3599 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3600 of the function.
3601 * maint-test-options.c (test_options_opts::dump): New, factored
3602 out from ...
3603 (maintenance_test_options_command_mode): ... here.
3604 (maintenance_test_options_command_completion_result): Delete.
3605 (maintenance_test_options_command_completion_text): Update
3606 comment.
3607 (maintenance_show_test_options_completion_result): Change
3608 prototype. Just print
3609 maintenance_test_options_command_completion_text.
3610 (save_completion_result): New.
3611 (maintenance_test_options_completer_mode): Pass options context to
3612 complete_options, and then save a dump.
3613 (_initialize_maint_test_options): Use add_cmd to install "maint
3614 show test-options-completion-result".
3615
3616 2019-07-03 Pedro Alves <palves@redhat.com>
3617
3618 * NEWS (New commands): Mention "with" and "maint with".
3619 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3620 (with_command, with_command_completer): New.
3621 (pipe_command): Adjust to new repeat_previous
3622 interface.
3623 (_initialize_cli_cmds): Install the "with" command and its "w"
3624 alias.
3625 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3626 declarations.
3627 * cli/cli-setshow.c (parse_cli_var_uinteger)
3628 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3629 argument strings for all var_types.
3630 (get_setshow_command_value_string): New, factored out from ...
3631 (do_show_command): ... this.
3632 * cli/cli-setshow.h: Include <string>.
3633 (get_setshow_command_value_string): Declare.
3634 * command.h (repeat_previous): Now returns const char *. Adjust
3635 comment.
3636 * maint.c: Include "cli/cli-cmds.h".
3637 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3638 (_initialize_maint_cmds): Register the "maintenance with" command.
3639 * top.c (repeat_previous): Move bits from pipe_command here:
3640 Return the saved command line, if any; error out if there's no
3641 command to relaunch.
3642
3643 2019-07-03 Pedro Alves <palves@redhat.com>
3644
3645 * NEWS (New commands): Mention "maint set/show test-settings"
3646 instead of "maint test-settings".
3647 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3648 (maintenance_test_settings_set_list): Rename to ...
3649 (maintenance_set_test_settings_list): ... this.
3650 (maintenance_test_settings_show_list): Rename to ...
3651 (maintenance_show_test_settings_list): ... this.
3652 (maintenance_test_settings_cmd): Delete.
3653 (maintenance_test_settings_set_cmd): ...
3654 (maintenance_set_test_settings_cmd): ... this.
3655 (maintenance_test_settings_show_cmd): ...
3656 (maintenance_show_test_settings_cmd): ... this.
3657 (maintenance_test_settings_show_value_cmd):
3658 (maintenance_show_test_settings_value_cmd): ... this.
3659 (_initialize_maint_test_settings): No longer install the "maint
3660 test-settings" prefix command. Rename "maint test-settings set"
3661 to "maint set test-settings", and "maint test-settings show" to
3662 "maint show test-settings". Adjust all subcommands.
3663
3664 2019-07-03 Pedro Alves <palves@redhat.com>
3665
3666 * maint-test-settings.c: Fix file's intro comment. Replace all
3667 references to "test-options" with references to "test-settings",
3668 in comments.
3669
3670 2019-07-03 Pedro Alves <palves@redhat.com>
3671
3672 * maint-test-settings.c (maintenance_test_settings_xxx)
3673 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3674 New.
3675 (maintenance_test_settings_enums): Use them.
3676 (maintenance_test_settings_enum): Default to
3677 maintenance_test_settings_xxx.
3678 (_initialize_maint_test_settings): Initialize
3679 MAINTENANCE_TEST_SETTINGS_FILENAME.
3680
3681 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3682
3683 * breakpoint.h (remove_breakpoints_inf): Change return type to
3684 void, move function documentation here.
3685 * breakpoint.c (remove_breakpoints_inf): Change return type to
3686 void, move function documentation to header.
3687
3688 2019-07-02 Pedro Alves <palves@redhat.com>
3689
3690 * NEWS (Completion improvements): Mention "info threads".
3691 * thread.c (struct info_threads_opts, info_threads_option_defs)
3692 (make_info_threads_options_def_group): New.
3693 (info_threads_command): Use gdb::option::process_options.
3694 (info_threads_command_completer): New.
3695 (_initialize_thread): Use gdb::option::build_help to build the
3696 help text for "info threads".
3697
3698 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3699
3700 * defs.h (generic_load): Move from here...
3701 * symfile.h (generic_load): ... to here. Rename name parameter
3702 to args.
3703 * symfile.c (generic_load): Add comment.
3704
3705 2019-07-01 Tom Tromey <tromey@adacore.com>
3706
3707 * dwarf2read.c
3708 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3709 declaration of without_params. Fix formatting.
3710
3711 2019-07-01 Tom Tromey <tromey@adacore.com>
3712
3713 * ada-exp.y (find_primitive_type): Update.
3714 * ada-lang.h (ada_lookup_symbol): Update.
3715 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3716 parameter.
3717 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3718
3719 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3720
3721 PR breakpoints/24541
3722 * gdbarch.c: Regenerate.
3723 * gdbarch.h: Regenerate.
3724 * gdbarch.sh: Add 'stap_adjust_register'.
3725 * i386-tdep.c: Include '<unordered_set>'.
3726 (i386_stap_adjust_register): New function.
3727 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3728 * stap-probe.c (stap_parse_register_operand): Call
3729 'gdbarch_stap_adjust_register'.
3730
3731 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3732
3733 PR python/24742
3734 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3735 * python/python.c (do_start_initialization): Use 'xmalloc'
3736 instead of 'PyMem_Malloc'.
3737
3738 2019-06-28 Tom Tromey <tromey@adacore.com>
3739
3740 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3741 for Ada.
3742
3743 2019-06-27 Tom Tromey <tromey@adacore.com>
3744
3745 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3746 objfile_key.
3747 (arm_find_mapping_symbol, arm_record_special_symbol)
3748 (_initialize_arm_tdep): Update.
3749 (arm_objfile_data_free): Remove.
3750
3751 2019-06-27 Tom Tromey <tromey@adacore.com>
3752
3753 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3754 to cp_print_static_field.
3755
3756 2019-06-26 Tom Tromey <tromey@adacore.com>
3757
3758 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3759 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3760 declare.
3761
3762 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3763
3764 * features/aarch64-core.c (create_feature_aarch64_core):
3765 Regenerate.
3766 * features/aarch64-core.xml: Add cpsr flags.
3767
3768 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3769
3770 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3771 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3772
3773 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3774
3775 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3776 field.
3777 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3778 use.
3779 (arm_record_special_symbol): Don't insert new symbol in sorted
3780 position, push it at the end.
3781
3782 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3783
3784 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3785 (arm_mapping_symbol_s): Remove.
3786 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3787 (arm_mapping_symbol_vec): New typedef.
3788 (struct arm_per_objfile): Add constructor.
3789 <section_maps>: Change type to
3790 std::unique_ptr<arm_mapping_symbol_vec[]>.
3791 (arm_compare_mapping_symbols): Remove.
3792 (arm_find_mapping_symbol): Adjust to section_maps type change.
3793 (arm_objfile_data_free): Call delete on arm_per_objfile.
3794 (arm_record_special_symbol): Adjust to section_maps type change.
3795 Allocate arm_per_objfile with new.
3796
3797 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3798
3799 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3800 with the command prefix.
3801
3802 2019-06-25 Tom Tromey <tom@tromey.com>
3803
3804 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3805 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3806
3807 2019-06-25 Tom Tromey <tom@tromey.com>
3808
3809 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3810 type.
3811 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3812 protected.
3813
3814 2019-06-25 Tom Tromey <tom@tromey.com>
3815
3816 * tui/tui-winsource.c
3817 (tui_source_window_base::set_is_exec_point_at): Add check against
3818 LOA_ADDRESS.
3819
3820 2019-06-25 Tom Tromey <tom@tromey.com>
3821
3822 * tui/tui-source.c (tui_set_source_content): Don't check before
3823 xfree.
3824 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3825
3826 2019-06-25 Tom Tromey <tom@tromey.com>
3827
3828 * tui/tui-winsource.h (tui_update_source_window_as_is)
3829 (tui_alloc_source_buffer, tui_line_is_displayed)
3830 (tui_addr_is_displayed): Change type of win_info.
3831 * tui/tui-winsource.c (tui_update_source_window_as_is)
3832 (tui_clear_source_content, tui_show_source_line)
3833 (tui_show_source_content, tui_source_window_base::refill)
3834 (tui_source_window_base::set_is_exec_point_at)
3835 (tui_source_window_base::set_is_exec_point_at)
3836 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3837 (tui_alloc_source_buffer, tui_line_is_displayed)
3838 (tui_addr_is_displayed): Change type of win_info. Update.
3839 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3840 (tui_source_window_base::do_make_visible_with_new_height):
3841 Update.
3842 * tui/tui-source.c (tui_set_source_content)
3843 (tui_set_source_content_nil)
3844 (tui_source_window::do_scroll_vertical): Update.
3845 * tui/tui-layout.c (show_layout): Update.
3846 * tui/tui-disasm.c (tui_set_disassem_content)
3847 (tui_disasm_window::do_scroll_vertical): Update.
3848 * tui/tui-data.h (tui_win_content): Remove.
3849 (struct tui_gen_win_info) <content, content_size>: Remove.
3850 (struct tui_source_element): Add initializers and destructor.
3851 (union tui_which_element, struct tui_win_element): Remove.
3852 (struct tui_source_window_base) <content>: New field.
3853 (struct tui_data_window): Remove destructor.
3854 (tui_alloc_content, tui_free_win_content)
3855 (tui_free_all_source_wins_content): Don't declare.
3856 * tui/tui-data.c (tui_initialize_static_data): Update.
3857 (init_content_element, tui_alloc_content): Remove.
3858 (~tui_gen_win_info): Update.
3859 (~tui_data_window, tui_free_all_source_wins_content)
3860 (tui_free_win_content, free_content, free_content_elements):
3861 Remove.
3862
3863 2019-06-25 Tom Tromey <tom@tromey.com>
3864
3865 * tui/tui-winsource.h (tui_clear_source_content)
3866 (tui_erase_source_content, tui_show_source_content): Change type
3867 of win_info.
3868 * tui/tui-winsource.c (tui_clear_source_content)
3869 (tui_erase_source_content, tui_show_source_content): Change type
3870 of win_info.
3871 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3872 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3873 win_info.
3874 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3875 win_info.
3876 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3877
3878 2019-06-25 Tom Tromey <tom@tromey.com>
3879
3880 * tui/tui-winsource.c (tui_clear_source_content)
3881 (tui_source_window_base::set_is_exec_point_at): Update.
3882 * tui/tui-source.c (tui_set_source_content_nil): Update.
3883 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3884 a bool.
3885 * tui/tui-data.c (init_content_element): Update.
3886
3887 2019-06-25 Tom Tromey <tom@tromey.com>
3888
3889 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3890 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3891 * tui/tui-layout.c (init_and_make_win): Update.
3892 * tui/tui.h (enum tui_win_type): Update.
3893 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3894 tui_win_is_auxillary.
3895 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3896 tui_win_is_auxillary.
3897
3898 2019-06-25 Tom Tromey <tom@tromey.com>
3899
3900 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3901 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3902 (tui_delete_data_content_windows, tui_display_all_data)
3903 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3904 Update.
3905 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3906 * tui/tui-regs.c (tui_last_regs_line_no)
3907 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3908 (tui_show_registers): Update.
3909 (tui_show_register_group): Return void. Update.
3910 (tui_display_registers_from, tui_display_reg_element_at_line)
3911 (tui_display_registers_from_line, tui_check_register_values):
3912 Update.
3913 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3914 member.
3915 (struct tui_data_window) <regs_content>: Now a std::vector.
3916 <regs_content_count>: Remove.
3917 (tui_add_content_elements, tui_free_data_content): Don't declare.
3918 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3919 (init_content_element): Remove DATA_WIN case. Add assert.
3920 (tui_add_content_elements): Remove.
3921 (tui_data_window): Update.
3922 (tui_free_data_content): Remove.
3923 (free_content_elements): Remove DATA_WIN case.
3924
3925 2019-06-25 Tom Tromey <tom@tromey.com>
3926
3927 * tui/tui-data.c (tui_data_item_window): Update.
3928 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3929 * tui/tui-windata.c (tui_display_all_data)
3930 (tui_display_data_from_line): Update.
3931 (tui_check_data_values): Remove.
3932 * tui/tui-regs.c (tui_show_register_group)
3933 (tui_display_reg_element_at_line): Update.
3934 * tui/tui-hooks.c (tui_register_changed)
3935 (tui_refresh_frame_and_register_information): Call
3936 tui_check_register_values.
3937 * tui/tui-data.h (struct tui_data_window) <data_content,
3938 data_content_count, data_type>: Remove.
3939 (enum tui_data_type): Remove.
3940
3941 * tui/tui-data.c (tui_data_window::clear_detail)
3942 (~tui_data_window): Update.
3943
3944 2019-06-25 Tom Tromey <tom@tromey.com>
3945
3946 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3947 declare.
3948 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3949 Rename from tui_first_data_item_displayed. Update.
3950 (tui_data_window::refresh_all)
3951 (tui_data_window::do_scroll_vertical): Update.
3952 * tui/tui-data.h (struct tui_data_window)
3953 <first_data_item_displayed>: Declare new method.
3954
3955 2019-06-25 Tom Tromey <tom@tromey.com>
3956
3957 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3958 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3959 contents...
3960 (tui_initialize_static_data): ...here.
3961
3962 2019-06-25 Tom Tromey <tom@tromey.com>
3963
3964 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3965 (tui_display_registers_from, tui_check_register_values): Update.
3966 (tui_display_register): Remove win_info parameter; update.
3967 (tui_get_register): Change type of parameters.
3968 * tui/tui-data.h (struct tui_data_element): Remove.
3969 (union tui_which_element) <data>: Remove.
3970 <data_window>: Change type.
3971 (struct tui_data_item_window): New.
3972 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3973 case. Add assert.
3974 (~tui_data_item_window): New destructor.
3975 (free_content_elements): Remove DATA_ITEM_WIN case.
3976
3977 2019-06-25 Tom Tromey <tom@tromey.com>
3978
3979 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3980 Remove.
3981
3982 2019-06-25 Tom Tromey <tom@tromey.com>
3983
3984 * tui/tui-data.h (struct tui_command_element): Remove.
3985 (union tui_which_element) <command>: Remove.
3986 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3987 assert.
3988 (free_content_elements): Remove CMD_WIN case.
3989
3990 2019-06-25 Tom Tromey <tom@tromey.com>
3991
3992 * tui/tui-layout.c (tui_set_layout): Update.
3993 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
3994 * tui/tui-data.c (layout_def): Update.
3995
3996 2019-06-25 Tom Tromey <tom@tromey.com>
3997
3998 * tui/tui-wingeneral.c (tui_refresh_all): Update.
3999 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4000 (tui_source_window_base::set_new_height): Update.
4001 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4002 Update.
4003 (tui_set_locator_fullname, tui_set_locator_info)
4004 (tui_show_frame_info): Update.
4005 * tui/tui-source.c (tui_set_source_content)
4006 (tui_source_is_displayed): Update.
4007 * tui/tui-layout.c (show_source_disasm_command, show_data)
4008 (show_source_or_disasm_and_command): Update.
4009 * tui/tui-disasm.c (tui_set_disassem_content)
4010 (tui_get_begin_asm_address): Update.
4011 * tui/tui-data.h (struct tui_locator_element): Remove.
4012 (union tui_which_element) <locator>: Remove.
4013 (struct tui_locator_window): New.
4014 (tui_locator_win_info_ptr): Change return type.
4015 * tui/tui-data.c (_locator): Change type.
4016 (tui_locator_win_info_ptr): Change return type.
4017 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4018 (tui_alloc_content): Add assert.
4019
4020 2019-06-25 Tom Tromey <tom@tromey.com>
4021
4022 * tui/tui-winsource.c
4023 (tui_exec_info_window::maybe_allocate_content): New method.
4024 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4025 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4026 (make_source_or_disasm_window): Add cast.
4027 * tui/tui-data.h (union tui_which_element) <simple_string>:
4028 Remove.
4029 (struct tui_source_info): New.
4030 (struct tui_source_window_base) <execution_info>: Change type.
4031 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4032 case, and add assert.
4033 (tui_alloc_content): Add assert.
4034
4035 2019-06-25 Tom Tromey <tom@tromey.com>
4036
4037 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4038 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4039 * tui/tui-data.c (tui_alloc_win_info): Remove.
4040
4041 2019-06-25 Tom Tromey <tom@tromey.com>
4042
4043 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4044 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4045 can_highlight.
4046
4047 2019-06-25 Tom Tromey <tom@tromey.com>
4048
4049 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4050 make_visible_with_new_height method.
4051 (tui_win_info::make_visible_with_new_height): New method.
4052 (tui_source_window_base::do_make_visible_with_new_height)
4053 (tui_data_window::do_make_visible_with_new_height)
4054 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4055 (make_visible_with_new_height): Remove.
4056 (tui_resize_all, tui_adjust_win_heights): Use
4057 make_visible_with_new_height method.
4058 * tui/tui-data.h (struct tui_win_info)
4059 <do_make_visible_with_new_height, make_visible_with_new_height>:
4060 New methods.
4061 (struct tui_source_window_base, struct tui_data_window)
4062 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4063 methods.
4064
4065 2019-06-25 Tom Tromey <tom@tromey.com>
4066
4067 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4068 method.
4069 (update_tab_width): Call update_tab_width method.
4070 * tui/tui-data.h (struct tui_win_info)
4071 (struct tui_source_window_base) <update_tab_width>: New methods.
4072
4073 2019-06-25 Tom Tromey <tom@tromey.com>
4074
4075 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4076 parameter.
4077 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4078 parameter.
4079 (tui_gen_win_info::make_visible): Update.
4080 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4081 parameter.
4082 * tui/tui-data.h (enum tui_box): New enum.
4083 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4084
4085 2019-06-25 Tom Tromey <tom@tromey.com>
4086
4087 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4088 init_and_make_win for EXEC_INFO_WIN.
4089 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4090 longer inline.
4091 (struct tui_win_info) <~tui_win_info>: Inline.
4092 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4093 Don't declare.
4094 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4095 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4096 Remove.
4097 (tui_initialize_static_data): Update.
4098 (~tui_gen_win_info): Handle more cleanup here.
4099 (~tui_source_window_base): Delete "execution_info".
4100 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4101
4102 2019-06-25 Tom Tromey <tom@tromey.com>
4103
4104 * tui/tui-layout.c (make_command_window): Don't set
4105 can_highlight.
4106 (show_source_disasm_command): Call the reset method.
4107 (show_data): Don't set can_highlight. Call the reset method.
4108 (tui_gen_win_info::reset): Rename from init_gen_win_info
4109 (init_and_make_win): Simplify. Return tui_gen_win_info.
4110 (show_source_or_disasm_and_command): Call the reset method.
4111 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4112 (struct tui_cmd_window): Set can_highlight.
4113
4114 2019-06-25 Tom Tromey <tom@tromey.com>
4115
4116 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4117 from make_visible.
4118 (tui_make_visible, tui_make_invisible): Rewrite.
4119 (tui_win_info::make_visible): Remove.
4120 (tui_source_window_base::make_visible): Update.
4121 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4122 method. Moved from...
4123 (struct tui_win_info) <make_visible>: ...here.
4124
4125 2019-06-25 Tom Tromey <tom@tromey.com>
4126
4127 * tui/tui-winsource.c
4128 (tui_source_window_base::do_scroll_horizontal): Remove direction
4129 parameter.
4130 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4131 direction parameter.
4132 * tui/tui-win.c (tui_win_info::forward_scroll)
4133 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4134 (tui_win_info::right_scroll): Update.
4135 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4136 direction parameter.
4137 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4138 direction parameter.
4139 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4140 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4141 Remove direction parameter.
4142 (struct tui_source_window_base, struct tui_source_window)
4143 (struct tui_disasm_window, struct tui_data_window)
4144 (struct tui_cmd_window): Update.
4145
4146 2019-06-25 Tom Tromey <tom@tromey.com>
4147
4148 * tui/tui-winsource.h (tui_set_exec_info_content)
4149 (tui_show_exec_info_content, tui_erase_exec_info_content)
4150 (tui_clear_exec_info_content, tui_update_exec_info): Change
4151 argument to tui_source_window_base.
4152 * tui/tui-winsource.c (tui_set_exec_info_content)
4153 (tui_show_exec_info_content, tui_erase_exec_info_content)
4154 (tui_clear_exec_info_content, tui_update_exec_info): Change
4155 argument to tui_source_window_base.
4156
4157 2019-06-25 Tom Tromey <tom@tromey.com>
4158
4159 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4160 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4161
4162 2019-06-25 Tom Tromey <tom@tromey.com>
4163
4164 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4165 check.
4166
4167 2019-06-25 Tom Tromey <tom@tromey.com>
4168
4169 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4170 type to void.
4171 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4172 type to void.
4173 * tui/tui-source.c (tui_set_source_content): Update.
4174 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4175
4176 2019-06-25 Tom Tromey <tom@tromey.com>
4177
4178 * tui/tui-win.c (window_name_completer, tui_set_focus)
4179 (tui_all_windows_info): Use name method.
4180 * tui/tui-data.h (struct tui_gen_win_info)
4181 (struct tui_source_window, struct tui_disasm_window)
4182 (struct tui_data_window, struct tui_cmd_window) <name>: New
4183 method.
4184 (tui_win_name): Don't declare.
4185 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4186 (tui_win_name): Remove.
4187
4188 2019-06-25 Tom Tromey <tom@tromey.com>
4189
4190 * tui/tui-winsource.h (tui_update_source_window)
4191 (tui_update_source_window_as_is): Change parameter type.
4192 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4193 to be a tui_source_window_base.
4194 (tui_update_source_window_as_is): Likewise.
4195 * tui/tui-win.c (make_visible_with_new_height): Update.
4196
4197 2019-06-25 Tom Tromey <tom@tromey.com>
4198
4199 * tui/tui-winsource.c (tui_erase_source_content)
4200 (tui_show_source_content, tui_show_exec_info_content)
4201 (tui_erase_exec_info_content): Use refresh_window method.
4202 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4203 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4204 from tui_refresh_win.
4205 (tui_data_window::refresh_window): New method.
4206 (tui_win_info::refresh, tui_source_window_base::refresh)
4207 (tui_refresh_all): Use refresh_window method.
4208 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4209 method.
4210 * tui/tui-regs.c (tui_display_register): Call refresh_window
4211 method.
4212 * tui/tui-layout.c (show_source_disasm_command)
4213 (show_source_or_disasm_and_command): Call refresh_window method.
4214 * tui/tui-data.h (struct tui_gen_win_info)
4215 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4216 New method.
4217
4218 2019-06-25 Tom Tromey <tom@tromey.com>
4219
4220 * tui/tui.c (tui_rl_other_window, tui_enable)
4221 (tui_is_window_visible, tui_get_command_dimension): Update.
4222 * tui/tui-winsource.c (tui_update_source_window_as_is)
4223 (tui_clear_source_content, tui_erase_source_content)
4224 (tui_show_source_line, tui_source_window_base::refill)
4225 (tui_source_window_base::do_scroll_horizontal)
4226 (tui_source_window_base::set_is_exec_point_at)
4227 (tui_update_breakpoint_info, tui_set_exec_info_content)
4228 (tui_alloc_source_buffer, tui_line_is_displayed)
4229 (tui_addr_is_displayed): Update.
4230 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4231 (tui_check_and_display_highlight_if_needed)
4232 (tui_win_info::make_visible, tui_win_info::refresh)
4233 (tui_refresh_all): Update.
4234 * tui/tui-windata.c (tui_first_data_item_displayed)
4235 (tui_delete_data_content_windows, tui_erase_data_content)
4236 (tui_display_all_data, tui_data_window::refresh_all)
4237 (tui_check_data_values): Update.
4238 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4239 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4240 (tui_win_info::backward_scroll, tui_refresh_all_win)
4241 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4242 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4243 (tui_source_window_base::set_new_height)
4244 (tui_data_window::set_new_height)
4245 (make_invisible_and_set_new_height)
4246 (make_visible_with_new_height, new_height_ok)
4247 (parse_scrolling_args): Update.
4248 * tui/tui-stack.c (tui_show_frame_info): Update.
4249 * tui/tui-source.c (tui_set_source_content)
4250 (tui_set_source_content_nil, tui_source_is_displayed)
4251 (tui_source_window::do_scroll_vertical): Update.
4252 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4253 (tui_display_registers_from, tui_display_reg_element_at_line)
4254 (tui_check_register_values, tui_reg_command): Update.
4255 * tui/tui-layout.c (tui_default_win_height)
4256 (show_source_disasm_command, show_data, init_and_make_win)
4257 (show_source_or_disasm_and_command): Update.
4258 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4259 (tui_redisplay_readline, tui_mld_flush)
4260 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4261 (tui_getc): Update.
4262 * tui/tui-disasm.c (tui_set_disassem_content)
4263 (tui_disasm_window::do_scroll_vertical): Update.
4264 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4265 Now virtual.
4266 (struct tui_win_info): Derive from tui_gen_win_info.
4267 <~tui_win_info>: Mark as override.
4268 <generic>: Remove member.
4269 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4270 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4271 (~tui_data_window, ~tui_win_info)
4272 (tui_free_all_source_wins_content): Update.
4273 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4274
4275 2019-06-25 Tom Tromey <tom@tromey.com>
4276
4277 * tui/tui-layout.c (init_and_make_win): Use new.
4278 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4279 destructor, initializers.
4280 (tui_alloc_generic_win_info): Don't declare.
4281 * tui/tui-data.c (_locator): Add argument to constructor.
4282 (source_win, disasm_win): New globals.
4283 (exec_info): Remove.
4284 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4285 Update.
4286 (tui_alloc_generic_win_info): Remove.
4287 (init_content_element): Use new.
4288 (tui_win_info::tui_win_info): Update.
4289 (free_content_elements) <case DATA_WIN>: Use delete.
4290
4291 2019-06-25 Tom Tromey <tom@tromey.com>
4292
4293 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4294 * tui/tui-windata.c (tui_first_data_item_displayed)
4295 (tui_delete_data_content_windows): Update.
4296 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4297 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4298 (tui_display_registers_from, tui_check_register_values): Update.
4299 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4300 pointer.
4301 * tui/tui-data.c (init_content_element): Update. Allocate the new
4302 window.
4303 (tui_free_data_content): Update.
4304 (free_content_elements) <case DATA_WIN>: Free the window.
4305
4306 2019-06-25 Tom Tromey <tom@tromey.com>
4307
4308 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4309 Update.
4310 * tui/tui-layout.c (make_command_window)
4311 (show_source_disasm_command, show_data, init_and_make_win)
4312 (show_source_or_disasm_and_command): Update.
4313 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4314 method.
4315 <can_highight, is_highlighted>: Now bool.
4316 (tui_set_win_highlight): Don't declare.
4317 * tui/tui-data.c (tui_set_win_highlight): Remove.
4318
4319 2019-06-25 Tom Tromey <tom@tromey.com>
4320
4321 * tui/tui-wingeneral.c (make_visible): Remove check of window
4322 type.
4323
4324 2019-06-25 Tom Tromey <tom@tromey.com>
4325
4326 * tui/tui-win.c (tui_win_info::max_height)
4327 (tui_cmd_window::max_height): New methods.
4328 (new_height_ok): Call max_height.
4329 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4330 <max_height>: New method.
4331
4332 2019-06-25 Tom Tromey <tom@tromey.com>
4333
4334 * tui/tui-win.c (tui_source_window_base::set_new_height)
4335 (tui_data_window::set_new_height): New methods.
4336 (make_invisible_and_set_new_height): Call set_new_height method.
4337 * tui/tui-data.h (struct tui_win_info)
4338 (struct tui_source_window_base, struct tui_data_window)
4339 <set_new_height>: New method.
4340
4341 2019-06-25 Tom Tromey <tom@tromey.com>
4342
4343 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4344 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4345 tui_refresh_data_win.
4346 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4347 method.
4348 (tui_refresh_all_win): Call the refresh_all method.
4349 (tui_set_focus): Likewise.
4350 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4351 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4352 Likewise.
4353
4354 2019-06-25 Tom Tromey <tom@tromey.com>
4355
4356 * tui/tui-winsource.h (tui_refill_source_window)
4357 (tui_set_is_exec_point_at): Don't declare.
4358 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4359 (tui_source_window_base::refill): Rename from
4360 tui_refill_source_window.
4361 (tui_source_window_base::do_scroll_horizontal): Update.
4362 (tui_source_window_base::set_is_exec_point_at): Rename from
4363 tui_set_is_exec_point_at.
4364 (tui_update_all_breakpoint_info): Update.
4365 * tui/tui-stack.c (tui_show_frame_info): Update.
4366 * tui/tui-layout.c (show_data): Add cast.
4367 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4368 * tui/tui-data.h (struct tui_source_window_base) <refill,
4369 set_is_exec_point_at>: New methods.
4370 (tui_source_windows, tui_add_to_source_windows): Update types.
4371 (tui_add_to_source_windows): Remove redundant declaration.
4372 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4373 (tui_source_windows): Change return type.
4374 (tui_clear_source_windows_detail): Update.
4375 (tui_add_to_source_windows): Change type of parameter.
4376 (tui_free_all_source_wins_content): Update.
4377
4378 2019-06-25 Tom Tromey <tom@tromey.com>
4379
4380 * tui/tui-wingeneral.c (tui_win_info::refresh)
4381 (tui_source_window_base::refresh): New methods.
4382 (tui_refresh_all): Call the refresh method.
4383 * tui/tui-data.h (struct tui_win_info)
4384 (struct tui_source_window_base) <refresh>: New method.
4385
4386 2019-06-25 Tom Tromey <tom@tromey.com>
4387
4388 * tui/tui.h (tui_is_window_visible): Return bool.
4389 * tui/tui.c (tui_is_window_visible): Return bool.
4390 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4391 (tui_make_visible, tui_make_invisible)
4392 (tui_win_info::make_visible)
4393 (tui_source_window_base::make_visible, make_all_visible)
4394 (tui_make_all_visible, tui_make_all_invisible): Update.
4395 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4396 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4397 bool.
4398 (struct tui_win_info, struct tui_source_window_base)
4399 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4400 * tui/tui-data.c (tui_init_generic_part): Update.
4401
4402 2019-06-25 Tom Tromey <tom@tromey.com>
4403
4404 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4405 (tui_source_window_base::make_visible): New methods.
4406 (make_all_visible): Make method call.
4407 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4408 (struct tui_source_window_base, struct tui_cmd_window): Override
4409 make_visible.
4410 (tui_win_is_source_type): Don't declare.
4411 * tui/tui-data.c (tui_win_is_source_type): Remove.
4412
4413 2019-06-25 Tom Tromey <tom@tromey.com>
4414
4415 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4416 NULL check.
4417
4418 2019-06-25 Tom Tromey <tom@tromey.com>
4419
4420 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4421 Inline constructor. Add initializers for members.
4422 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4423 constructors; now inline in class.
4424
4425 2019-06-25 Tom Tromey <tom@tromey.com>
4426
4427 * tui/tui-regs.c (tui_show_registers): Update.
4428 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4429 bool.
4430 * tui/tui-data.c (tui_data_window::clear_detail)
4431 (tui_data_window): Update.
4432
4433 2019-06-25 Tom Tromey <tom@tromey.com>
4434
4435 * tui/tui-windata.c (tui_display_all_data)
4436 (tui_display_data_from_line, tui_display_data_from)
4437 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4438 Update.
4439 * tui/tui-regs.c (tui_last_regs_line_no)
4440 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4441 (tui_show_registers, tui_show_register_group)
4442 (tui_display_registers_from, tui_display_reg_element_at_line)
4443 (tui_display_registers_from_line, tui_check_register_values)
4444 (tui_reg_next, tui_reg_prev): Update.
4445 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4446 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4447 tui_data_window.
4448 (struct tui_win_info) <detail>: Remove. Add new fields from
4449 tui_data_info.
4450 (TUI_DATA_WIN): Add cast.
4451 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4452 (~tui_data_window): Simplify.
4453
4454 2019-06-25 Tom Tromey <tom@tromey.com>
4455
4456 * tui/tui-layout.c (show_source_disasm_command)
4457 (show_source_or_disasm_and_command): Update.
4458 * tui/tui-io.c (update_cmdwin_start_line)
4459 (tui_redisplay_readline): Update.
4460 * tui/tui-data.h (struct tui_command_info): Remove.
4461 (struct tui_win_info) <detail>: Remove command_info member.
4462 (struct tui_data_window) <start_line>: New member, from
4463 tui_command_info.
4464 (TUI_CMD_WIN): Add casts.
4465
4466 2019-06-25 Tom Tromey <tom@tromey.com>
4467
4468 * tui/tui-winsource.c (tui_update_source_window)
4469 (tui_refill_source_window)
4470 (tui_source_window_base::do_scroll_horizontal)
4471 (tui_update_breakpoint_info, tui_set_exec_info_content)
4472 (tui_show_exec_info_content, tui_erase_exec_info_content)
4473 (tui_clear_exec_info_content): Update.
4474 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4475 Update.
4476 * tui/tui-win.c (make_invisible_and_set_new_height)
4477 (make_visible_with_new_height): Update.
4478 * tui/tui-source.c (tui_set_source_content)
4479 (tui_show_symtab_source): Update.
4480 * tui/tui-layout.c (extract_display_start_addr)
4481 (show_source_disasm_command, show_data)
4482 (make_source_or_disasm_window)
4483 (show_source_or_disasm_and_command): Update.
4484 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4485 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4486 "gdbarch".
4487 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4488 to tui_source_window_base.
4489 (struct tui_win_info) <detail>: Remove source_info member.
4490 (struct tui_source_window_base) <has_locator>: Inline.
4491 Move contents from tui_source_info; rename has_locator member to
4492 m_has_locator.
4493 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4494 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4495 header file.
4496 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4497 Simplify.
4498 (tui_free_all_source_wins_content): Cast to
4499 tui_source_window_base.
4500
4501 2019-06-25 Tom Tromey <tom@tromey.com>
4502
4503 * tui/tui-win.c (make_invisible_and_set_new_height)
4504 (make_visible_with_new_height): Call has_locator method.
4505 * tui/tui-layout.c (show_source_disasm_command, show_data)
4506 (show_source_or_disasm_and_command): Update for bool change.
4507 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4508 (tui_win_info) <has_locator>: New method.
4509 (struct tui_source_window_base) <has_locator>: New method.
4510 (tui_win_has_locator): Don't declare.
4511 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4512 from tui_win_has_locator.
4513 (tui_source_window_base): Use false, not FALSE.
4514
4515 2019-06-25 Tom Tromey <tom@tromey.com>
4516
4517 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4518 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4519 clear_detail method directly.
4520 (tui_clear_win_detail): Remove.
4521
4522 2019-06-25 Tom Tromey <tom@tromey.com>
4523
4524 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4525 "this", not TUI_DISASM_WIN.
4526
4527 2019-06-25 Tom Tromey <tom@tromey.com>
4528
4529 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4530 declare.
4531 * tui/tui-winsource.c
4532 (tui_source_window_base::do_scroll_horizontal): Rename from
4533 tui_horizontal_source_scroll.
4534 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4535 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4536 from tui_vertical_data_scroll.
4537 * tui/tui-win.h (tui_scroll): Don't declare.
4538 * tui/tui-win.c (tui_win_info::forward_scroll)
4539 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4540 (tui_win_info::right_scroll): Rename and update.
4541 (tui_scroll_forward_command, tui_scroll_backward_command)
4542 (tui_scroll_left_command, tui_scroll_right_command): Update.
4543 (tui_scroll): Remove.
4544 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4545 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4546 from tui_vertical_source_scroll.
4547 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4548 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4549 from tui_vertical_disassem_scroll.
4550 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4551 do_scroll_horizontal>: New methods.
4552 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4553 Likewise.
4554 (struct tui_source_window_base): Add do_scroll_horizontal.
4555 (struct tui_source_window, struct tui_disasm_window): Add
4556 do_scroll_vertical.
4557 (struct tui_data_window, struct tui_cmd_window): Add
4558 do_scroll_horizontal and do_scroll_vertical.
4559 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4560
4561 2019-06-25 Tom Tromey <tom@tromey.com>
4562
4563 * tui/tui-data.h (struct tui_source_window_base): New struct.
4564 (struct tui_source_window): Derive from tui_source_window_base.
4565 (struct tui_disasm_window): New struct.
4566 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4567 from tui_source_window::clear_detail.
4568 (tui_source_window_base): Rename from tui_source_window.
4569 (~tui_source_window_base): Rename from ~tui_source_window.
4570 (tui_alloc_win_info): Create a tui_disasm_window.
4571
4572 2019-06-25 Tom Tromey <tom@tromey.com>
4573
4574 * tui/tui-data.h (struct tui_source_window)
4575 (struct tui_data_window): Declare destructors.
4576 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4577 destructors.
4578 (tui_win_info): Simplify.
4579
4580 2019-06-25 Tom Tromey <tom@tromey.com>
4581
4582 * tui/tui-winsource.c (tui_display_main)
4583 (tui_update_source_windows_with_addr)
4584 (tui_update_all_breakpoint_info): Update.
4585 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4586 (new_height_ok, parse_scrolling_args): Update.
4587 * tui/tui-stack.c (tui_show_frame_info): Update.
4588 * tui/tui-data.h (struct tui_list): Remove.
4589 (tui_source_windows): Return a reference to a std::vector.
4590 * tui/tui-data.c (source_windows): Now a std::vector.
4591 (tui_source_windows): Change return type.
4592 (tui_clear_source_windows): Rewrite.
4593 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4594 (tui_free_all_source_wins_content): Rewrite.
4595
4596 2019-06-25 Tom Tromey <tom@tromey.com>
4597
4598 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4599 (struct tui_data_window, struct tui_cmd_window): Declare
4600 clear_detail method.
4601 * tui/tui-data.c (tui_source_window::clear_detail)
4602 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4603 methods.
4604 (tui_clear_win_detail): Simplify.
4605
4606 2019-06-25 Tom Tromey <tom@tromey.com>
4607
4608 * tui/tui-layout.c (make_source_window, make_disasm_window)
4609 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4610 Return the new window.
4611 (show_source_disasm_command, show_data)
4612 (show_source_or_disasm_and_command): Update.
4613
4614 2019-06-25 Tom Tromey <tom@tromey.com>
4615
4616 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4617 parameter. Return the new window.
4618 (show_source_disasm_command): Update and remove NULL check.
4619 (show_source_or_disasm_and_command): Update.
4620
4621 2019-06-25 Tom Tromey <tom@tromey.com>
4622
4623 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4624
4625 2019-06-25 Tom Tromey <tom@tromey.com>
4626
4627 * tui/tui-data.h (struct tui_win_info): Make constructor
4628 protected. Make destructor virtual. Add initializers.
4629 (tui_source_window, tui_data_window, tui_cmd_window): New
4630 classes.
4631 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4632 constructor. Add "type" parameter.
4633 (tui_source_window, tui_data_window, tui_cmd_window): New
4634 constructors.
4635 (tui_alloc_win_info): Instantiate the appropriate subclass.
4636
4637 2019-06-25 Tom Tromey <tom@tromey.com>
4638
4639 * tui/tui-win.c (tui_resize_all): Use delete.
4640 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4641 destructor.
4642 (tui_free_window): Don't declare.
4643 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4644 Update.
4645
4646 2019-06-25 Tom Tromey <tom@tromey.com>
4647
4648 * tui/tui-data.h (struct tui_win_info): Add constructor.
4649 * tui/tui-data.c (tui_alloc_win_info): Use new.
4650 (tui_free_window): Use delete.
4651
4652 2019-06-22 Tom Tromey <tom@tromey.com>
4653
4654 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4655 declare.
4656 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4657
4658 2019-06-22 Tom Tromey <tom@tromey.com>
4659
4660 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4661 declare.
4662 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4663
4664 2019-06-22 Tom de Vries <tdevries@suse.de>
4665
4666 * dwarf2read.c (create_addrmap_from_aranges)
4667 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4668 instead of '%zu'.
4669
4670 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
4671
4672 * dwarf2read.h (dwarf2_section_info_def): Remove.
4673 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4674 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4675 std::vector<dwarf2_section_info>.
4676 (struct dwo_file) <~dwo_file>: Remove.
4677 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4678 types field.
4679 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4680 (dwarf2_read_debug_names): Likewise.
4681 (create_debug_types_hash_table): Change parameter type to
4682 array_view, adjust code accordingly.
4683 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4684 (partial_die_info::fixup): Likewise.
4685 (determine_prefix): Likewise.
4686 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4687
4688 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4689
4690 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4691 gdb_bfd_ref_ptr.
4692 <~dwo_file>: Remove call to gdb_bfd_unref.
4693 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4694 gdb_bfd_ref_ptr::get.
4695
4696 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4697
4698 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4699 type to htab_up.
4700 * dwarf2read.c (struct dwo_file): Initialize fields.
4701 <~dwo_file>: New.
4702 (free_dwo_file): Remove, move content to ~dwo_file.
4703 (struct dwo_file_deleter): Remove.
4704 (dwo_file_up>: Remove custom deleter.
4705 (free_dwo_files): Remove.
4706 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4707 dwo_files.
4708 (process_skeletonless_type_units): Call unique_ptr::get.
4709 (allocate_dwo_file_hash_table): Add deleter to created hash
4710 table. Change return type to htab_up.
4711 (lookup_dwo_file_slot): Don't memset dwo_file, call
4712 unique_ptr::get.
4713 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4714 (create_dwo_unit_in_dwp_v2): Likewise.
4715 (open_and_init_dwo_file): Likewise.
4716 (free_dwo_file_from_slot): Remove.
4717
4718 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4719
4720 * dwarf2read.h (struct dwarf2_section_info) <readin,
4721 is_virtual>: Change type to bool.
4722 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4723 true instead of 1.
4724
4725 2019-06-19 Tom Tromey <tom@tromey.com>
4726
4727 * tui/tui-data.h (tui_init_content_element): Don't declare.
4728
4729 2019-06-19 Tom Tromey <tom@tromey.com>
4730
4731 * tui/tui-data.h (tui_init_win_info): Don't declare.
4732
4733 2019-06-19 Tom de Vries <tdevries@suse.de>
4734
4735 * dwarf2read.h (abstract_to_concrete): Change type to
4736 std::unordered_map<sect_offset, std::vector<sect_offset>,
4737 gdb::hash_enum<sect_offset>>.
4738
4739 2019-06-19 Tom Tromey <tromey@adacore.com>
4740
4741 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4742 EVAL_AVOID_SIDE_EFFECTS specially.
4743
4744 2019-06-19 Tom Tromey <tromey@adacore.com>
4745
4746 * source-cache.c (highlighter): New global.
4747 (source_cache::get_source_lines): Create a highlighter on demand.
4748
4749 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4750
4751 * defs.h (deprecated_interactive_hook): Delete declaration.
4752 * interps.c (clear_interpreter_hooks): Remove use of
4753 deprecated_interactive_hook.
4754 * top.c (deprecated_interactive_hook): Delete definition.
4755 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4756
4757 2019-06-18 Tom de Vries <tdevries@suse.de>
4758
4759 PR gdb/24515
4760 * dwarf2read.h (abstract_to_concrete): Change type from
4761 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4762 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4763 * dwarf2read.c (read_variable): Update.
4764 (dwarf2_fetch_die_loc_sect_off): Update.
4765
4766 2019-06-17 Tom de Vries <tdevries@suse.de>
4767
4768 PR gdb/24617
4769 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4770 accessing parent[parent_len - 1].
4771
4772 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4773
4774 PR gdb/24364
4775 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4776 call dtrace_process_dof with NULL dof.
4777
4778 2019-06-16 Tom de Vries <tdevries@suse.de>
4779
4780 PR gdb/24445
4781 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4782
4783 2019-06-16 Tom Tromey <tom@tromey.com>
4784
4785 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4786 (make_all_visible): Use address of member.
4787
4788 2019-06-16 Tom Tromey <tom@tromey.com>
4789
4790 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4791 (tui_free_window, free_content, free_content_elements): Remove
4792 unnecessary cast.
4793 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4794 cast.
4795 * tui/tui-regs.c (tui_show_register_group)
4796 (tui_display_registers_from, tui_display_reg_element_at_line):
4797 Remove unnecessary cast.
4798
4799 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4800
4801 * linux-nat.c (normal_mask): Delete.
4802 (_initialize_linux_nat): Don't initialise normal_mask.
4803
4804 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4805
4806 PR gdb/24445
4807 * dwarf-index-write.h (write_psymtabs_to_index): Add
4808 dwz_basename parameter.
4809 * dwarf-index-write.c (write_gdbindex): Move file writing to
4810 write_gdbindex_1. Change return type void.
4811 (assert_file_size): Move up, remove filename parameter.
4812 (write_gdbindex_1): New function.
4813 (write_debug_names): Change return type to void, call
4814 assert_file_size.
4815 (struct index_wip_file): New struct.
4816 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4817 file logic to index_wip_file. Write index for dwz file if
4818 needed.
4819 (save_gdb_index_command): Pass basename of dwz file, if present.
4820 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4821 build-id of dwz file, if present.
4822 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4823 (dwarf2_get_dwz_file): Likewise.
4824 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4825 (dwarf2_get_dwz_file): Likewise.
4826
4827 2019-06-16 Tom Tromey <tom@tromey.com>
4828
4829 * coffread.c (process_coff_symbol): Use xstrdup.
4830 * value.c (create_internalvar): Use xstrdup.
4831
4832 2019-06-16 Tom Tromey <tom@tromey.com>
4833
4834 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4835 * breakpoint.c (stopin_command, stopat_command)
4836 (until_break_command, decode_location_default): Remove unnecessary
4837 cast.
4838 * utils.c (subset_compare): Remove unnecessary cast.
4839 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4840 cast.
4841 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4842 cast.
4843 * infcmd.c (path_command): Remove unnecessary cast.
4844 * coffread.c (decode_type): Remove unnecessary cast.
4845 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4846 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4847 * tui/tui-stack.c (tui_show_locator_content)
4848 (tui_show_frame_info): Remove unnecessary cast.
4849 * tui/tui-win.c (tui_scroll_forward_command)
4850 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4851 (parse_scrolling_args): Remove unnecessary cast.
4852 * tui/tui-data.c (init_win_info, tui_del_window)
4853 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4854 (free_content_elements): Remove unnecessary cast.
4855 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4856 unnecessary cast.
4857 * tui/tui-source.c (tui_set_source_content)
4858 (tui_vertical_source_scroll): Remove unnecessary cast.
4859 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4860 cast.
4861 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4862 * tui/tui-regs.c (tui_display_registers_from)
4863 (tui_display_register): Remove unnecessary cast.
4864 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4865 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4866 (make_visible): Remove unnecessary cast.
4867 * tui/tui-winsource.c (tui_erase_source_content)
4868 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4869 unnecessary cast.
4870 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4871 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4872 * stabsread.c (read_type, read_array_type, read_range_type):
4873 Remove unnecessary cast.
4874 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4875 (parse_symbol, parse_type, upgrade_type, parse_external)
4876 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4877 unnecessary cast.
4878 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4879
4880 2019-06-16 Tom Tromey <tom@tromey.com>
4881
4882 * tui/tui-data.c (tui_alloc_generic_win_info)
4883 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4884 checks.
4885
4886 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4887 Andrew Burgess <andrew.burgess@embecosm.com>
4888
4889 * f-typeprint.c (f_print_type): Don't return early for not
4890 associated or not allocated types.
4891 (f_type_print_varspec_suffix): Add print_rank parameter and print
4892 ranks of array types in case they dangling.
4893 (f_type_print_base): Add print_rank parameter.
4894
4895 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4896
4897 * NEWS: Mention new MI commands.
4898 * break-catch-throw.c (enum exception_event_kind): Move to
4899 breakpoint.h.
4900 (print_mention_exception_catchpoint): Output text as a single
4901 message.
4902 (catch_exception_command_1): Rename to...
4903 (catch_exception_event): ...this, make non-static, update header
4904 command, and change some parameter types.
4905 (catch_catch_command): Update for changes to
4906 catch_exception_command_1.
4907 (catch_throw_command): Likewise.
4908 (catch_rethrow_command): Likewise.
4909 * breakpoint.c (enum exception_event_kind): Delete.
4910 * breakpoint.h (enum exception_event_kind): Moved here from
4911 break-catch-throw.c.
4912 (catch_exception_event): Declare.
4913 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4914 (mi_cmd_catch_throw): New function.
4915 (mi_cmd_catch_rethrow): New function.
4916 (mi_cmd_catch_catch): New function.
4917 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4918 'catch-catch' entries.
4919 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4920 (mi_cmd_catch_rethrow): Declare.
4921 (mi_cmd_catch_catch): Declare.
4922
4923 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4924
4925 * annotate.c (annotate_source_line): Change return type to void,
4926 update implementation to match.
4927 * annotate.h (annotate_source_line): Change return type to void,
4928 update header comment.
4929 * stack.c (print_frame_info): Don't change what frame information
4930 is printed based on whether annotations are on or not.
4931
4932 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4933
4934 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4935 (annotate_source): Make static.
4936 (annotate_source_line): Moved from source.c and renamed from
4937 identify_source_line. Update the return type.
4938 * annotate.h (annotate_source): Delete declaration.
4939 (annotate_source_line): Declaration moved from source.h, and
4940 renamed from identify_source_line. Return type updated.
4941 * source.c (identify_source_line): Moved to annotate.c and renamed
4942 to annotate_source_line.
4943 (info_line_command): Remove check of annotation_level.
4944 * source.h (identify_source_line): Move declaration to annotate.h
4945 and rename to annotate_source_line.
4946 * stack.c: Add 'annotate.h' include.
4947 (print_frame_info): Remove check of annotation_level before
4948 calling annotate_source_line.
4949
4950 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4951
4952 * source-cache.c (source_cache::get_plain_source_lines): Use
4953 open_source_file_with_line_charpos instead of just
4954 open_source_file, remove call to find_source_lines.
4955 (source_cache::get_source_lines): Likewise.
4956 * source.c (find_source_lines): Make static.
4957 (get_filename_and_charpos): Renamed into...
4958 (open_source_file_with_line_charpos): ..this along with changes to
4959 return a scoped_fd, and some other minor clean ups.
4960 (identify_source_line): Use open_source_file_with_line_charpos.
4961 (search_command_helper): Use open_source_file_with_line_charpos
4962 instead of just open_source_file, remove call to
4963 find_source_lines.
4964 * source.h (open_source_file_with_line_charpos): Declare new
4965 function.
4966 (find_source_lines): Delete declaration.
4967
4968 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4969
4970 * source.c (get_filename_and_charpos): Remove fullname
4971 parameter.
4972 (identify_source_line): Update call to get_filename_and_charpos.
4973
4974 2019-06-14 Tom Tromey <tromey@adacore.com>
4975
4976 PR gdb/24502:
4977 * ui-style.h (skip_ansi_escape): Update comment.
4978 * ui-file.h (class no_terminal_escape_file): New class.
4979 * ui-file.c (no_terminal_escape_file::write)
4980 (no_terminal_escape_file::puts): New methods.
4981 * cli/cli-logging.c (handle_redirections): Use
4982 no_terminal_escape_file.
4983
4984 2019-06-14 Tom Tromey <tromey@adacore.com>
4985
4986 * NEWS: Move convenience variable news above Python news.
4987
4988 2019-06-14 Tom Tromey <tom@tromey.com>
4989
4990 * gnulib: Move directory to top-level.
4991 * configure.ac: Don't configure gnulib.
4992 * configure: Rebuild.
4993 * common/common-defs.h: Use new path to gnulib.
4994 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
4995 (GNULIB_H): Remove.
4996 (INCGNU): Look in new gnulib location.
4997 (HFILES_NO_SRCDIR): Remove gnulib files.
4998 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
4999 (generated_files): Remove GNULIB_H.
5000 ($(LIBGNU), all-lib): Remove targets.
5001 (distclean): Don't mention GNULIB_BUILDDIR.
5002 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5003
5004 2019-06-14 Tom Tromey <tromey@adacore.com>
5005
5006 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5007 Warn if symbol file does not provide any symbols.
5008
5009 2019-06-14 Tom Tromey <tromey@adacore.com>
5010
5011 * source.c (find_and_open_source): Respect basenames_may_differ.
5012
5013 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5014
5015 * annotate.c (annotate_breakpoints_invalid): Make use of
5016 scoped_restore_terminal_state.
5017 (annotate_frames_invalid): Likewise.
5018
5019 2019-06-14 Tom Tromey <tromey@adacore.com>
5020
5021 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5022 allow assignment to an internalvar.
5023
5024 2019-06-14 Tom Tromey <tromey@adacore.com>
5025
5026 * ada-lex.l: Allow "_" in attribute names.
5027
5028 2019-06-14 Tom Tromey <tromey@adacore.com>
5029
5030 PR gdb/24653:
5031 * regcache.c (registers_changed): Don't call alloca.
5032 * top.c (execute_command): Don't call alloca.
5033
5034 2019-06-13 Pedro Alves <palves@redhat.com>
5035
5036 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5037 'expression'. When parsing an expression, error out if there's
5038 junk after "unlimited".
5039 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5040 (do_set_command): Adjust calls to is_unlimited_literal.
5041
5042 2019-06-13 Pedro Alves <palves@redhat.com>
5043
5044 * compile/compile.c (make_compile_options_def_group): Add braces
5045 around array_view initializer.
5046 * thread.c (make_thread_apply_all_options_def_group)
5047 (make_thread_apply_all_options_def_group): Likewise.
5048
5049 2019-06-13 Pedro Alves <palves@redhat.com>
5050
5051 * NEWS (New commands): Mention "maint test-options
5052 require-delimiter", "maint test-options unknown-is-error", "maint
5053 test-options unknown-is-operand" and "maint show
5054 test-options-completion-result".
5055 (New command options, command completion): New section.
5056 (Completion improvements): New section.
5057 Mention that you can abbreviate "unlimited".
5058
5059 2019-06-13 Pedro Alves <palves@redhat.com>
5060
5061 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5062 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5063 * unittests/cli-utils-selftests.c (test_parse_flags)
5064 (test_parse_flags_qcs): Delete.
5065 (test_cli_utils): Don't call deleted functions.
5066
5067 2019-06-13 Pedro Alves <palves@redhat.com>
5068
5069 * thread.c: Include "cli/cli-option.h".
5070 (tp_array_compar_ascending): Global.
5071 (tp_array_compar): Delete function.
5072 (tp_array_compar_ascending, tp_array_compar_descending): New
5073 functions.
5074 (ascending_option_def, qcs_flag_option_def)
5075 (thr_qcs_flags_option_defs)
5076 (make_thread_apply_all_options_def_group)
5077 (make_thread_apply_options_def_group): New.
5078 (thread_apply_all_command): Use gdb::option::process_options.
5079 (thread_apply_command_completer)
5080 (thread_apply_all_command_completer): New.
5081 (thread_apply_command): Use gdb::option::process_options.
5082 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5083 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5084 to generate help text of "thread apply". Adjust "taas"'s help.
5085 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5086 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5087
5088 2019-06-13 Pedro Alves <palves@redhat.com>
5089
5090 * thread.c (thread_apply_command): Check for invalid TID with
5091 isdigit instead of !isalpha.
5092
5093 2019-06-13 Pedro Alves <palves@redhat.com>
5094
5095 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5096 (validate_flags_qcs): New.
5097 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5098 (validate_flags_qcs): Declare.
5099 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5100 (make_frame_apply_options_def_group): New.
5101 (frame_apply_command_count): Process options with
5102 gdb::option::process_options.
5103 (frame_apply_completer): New.
5104 (frame_apply_level_completer, frame_apply_all_completer)
5105 (frame_apply_completer): New.
5106 (_initialize_stack): Update help of "frame apply", "frame apply
5107 level", "frame apply all" and "faas" to mention supported options
5108 and install command completers.
5109 * stack.h (frame_apply_all_completer): Declare.
5110 * thread.c: Include "stack.h".
5111 (tfaas_command): Add "--".
5112 (_initialize_thread): Update help "tfaas" to mention supported
5113 options and install command completer.
5114
5115 2019-06-13 Pedro Alves <palves@redhat.com>
5116
5117 * completer.c (complete_nested_command_line): New.
5118 (gdb_completion_word_break_characters_throw): Add assertion.
5119 * completer.h (complete_nested_command_line): Declare.
5120
5121 2019-06-13 Pedro Alves <palves@redhat.com>
5122
5123 * stack.c (parse_backtrace_qualifiers): New.
5124 (backtrace_command): Use it.
5125 (backtrace_command_completer): Complete on qualifiers.
5126
5127 2019-06-13 Pedro Alves <palves@redhat.com>
5128
5129 * frame.c: Include "cli/cli-option.h.
5130 (user_set_backtrace_options): New.
5131 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5132 Delete.
5133 (get_prev_frame): Adjust.
5134 (boolean_option_def, uinteger_option_def)
5135 (set_backtrace_option_defs): New.
5136 (_initialize_frame): Adjust and use
5137 gdb::option::add_setshow_cmds_for_options to install "set
5138 backtrace past-main" and "set backtrace past-entry".
5139 * frame.h: Include "cli/cli-option.h".
5140 (struct frame_print_options): Forward declare.
5141 (print_frame_arguments_all, print_frame_arguments_scalars)
5142 (print_frame_arguments_none): Declare.
5143 (print_entry_values): Delete declaration.
5144 (struct frame_print_options, user_frame_print_options): New.
5145 (struct set_backtrace_options): New.
5146 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5147 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5148 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5149 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5150 (list_args_or_locals): Add frame_print_options parameter.
5151 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5152 * python/py-framefilter.c (enumerate_args): Pass down
5153 USER_FRAME_PRINT_OPTIONS.
5154 * stack.c: Include "cli/cli-option.h".
5155 (print_frame_arguments_all, print_frame_arguments_scalars)
5156 (print_frame_arguments_none): Declare.
5157 (print_raw_frame_arguments, print_entry_values): Delete.
5158 (user_frame_print_options): New.
5159 (boolean_option_def, enum_option_def, frame_print_option_defs):
5160 New.
5161 (struct backtrace_cmd_options): New.
5162 (bt_flag_option_def): New.
5163 (backtrace_command_option_defs): New.
5164 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5165 (print_frame_arg, read_frame_arg, print_frame_args)
5166 (print_frame_info, print_frame): Add frame_print_options parameter
5167 and use it.
5168 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5169 (backtrace_command_1): Add frame_print_options and
5170 backtrace_cmd_options parameters and use them.
5171 (make_backtrace_options_def_group): New.
5172 (backtrace_command): Process command options with
5173 gdb::option::process_options.
5174 (backtrace_command_completer): New.
5175 (_initialize_stack): Extend "backtrace"'s help to mention
5176 supported options. Install completer for "backtrace".
5177 Install some settings commands with add_setshow_cmds_for_options.
5178
5179 2019-06-13 Pedro Alves <palves@redhat.com>
5180
5181 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5182 and that "set/show print raw frame-arguments" are now deprecated.
5183
5184 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5185 command.
5186 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5187 * stack.c (_initialize_stack): Install "set/show print
5188 raw-frame-arguments", and deprecate "set/show print raw
5189 frame-arguments".
5190 * valprint.c (_initialize_valprint): Deprecate "set/show print
5191 raw".
5192
5193 2019-06-13 Pedro Alves <palves@redhat.com>
5194
5195 * compile/compile.c (struct compile_options): New.
5196 (compile_flag_option_def, compile_command_option_defs)
5197 (make_compile_options_def_group): New.
5198 (compile_file_command): Handle options with
5199 gdb::option::process_options.
5200 (compile_file_command_completer): New function.
5201 (compile_code_command): Handle options with
5202 gdb::option::process_options.
5203 (compile_code_command_completer): New function.
5204 (_initialize_compiler): Install completers for "compile code" and
5205 "compile file". Mention available options in "compile code" and
5206 "compile code"'s help.
5207 * completer.c (advance_to_completion_word): New, factored out from
5208 ...
5209 (advance_to_expression_complete_word_point): ... this.
5210 (advance_to_filename_complete_word_point): New.
5211 * completer.h (advance_to_filename_complete_word_point): New
5212 declaration.
5213
5214 2019-06-13 Pedro Alves <palves@redhat.com>
5215
5216 * compile/compile.c: Include "cli/cli-option.h".
5217 (compile_print_value): Scope data pointer is now a
5218 value_print_options pointer; adjust.
5219 (compile_print_command): Process options. Scope data pointer is
5220 now a value_print_options pointer; adjust.
5221 (_initialize_compile): Update "compile print"'s help to include
5222 supported options. Install a completer for "compile print".
5223 * cp-valprint.c (show_vtblprint, show_objectprint)
5224 (show_static_field_print): Delete.
5225 (_initialize_cp_valprint): Don't install "set print
5226 static-members", "set print vtbl", "set print object" here.
5227 * printcmd.c: Include "cli/cli-option.h" and
5228 "common/gdb_optional.h".
5229 (print_command_parse_format): Rework to fill in a
5230 value_print_options instead of a format_data.
5231 (print_value): Change parameter type from format_data pointer to
5232 value_print_options reference. Adjust.
5233 (print_command_1): Process options. Adjust to pass down a
5234 value_print_options.
5235 (print_command_completer): New.
5236 (_initialize_printcmd): Install print_command_completer as
5237 handle_brkchars completer for the "print" command. Update
5238 "print"'s help to include supported options.
5239 * valprint.c: Include "cli/cli-option.h".
5240 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5241 here from cp-valprint.c.
5242 (boolean_option_def, uinteger_option_def)
5243 (value_print_option_defs, make_value_print_options_def_group):
5244 New. Use gdb::option::add_setshow_cmds_for_options to install
5245 "set print elements", "set print null-stop", "set print repeats",
5246 "set print pretty", "set print union", "set print array", "set
5247 print address", "set print symbol", "set print array-indexes".
5248 * valprint.h: Include <string> and "cli/cli-option.h".
5249 (make_value_print_options_def_group): Declare.
5250 (print_value): Change parameter type from format_data pointer to
5251 value_print_options reference.
5252 (print_command_completer): Declare.
5253
5254 2019-06-13 Pedro Alves <palves@redhat.com>
5255
5256 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5257 (COMMON_SFILES): Add maint-test-settings.c.
5258 * cli/cli-decode.c (boolean_enums): New global, factored out from
5259 ...
5260 (add_setshow_boolean_cmd): ... here.
5261 * cli/cli-decode.h (boolean_enums): Declare.
5262 * cli/cli-option.c: New file.
5263 * cli/cli-option.h: New file.
5264 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5265 factored out from ...
5266 (parse_cli_boolean_value(const char *)): ... this.
5267 (is_unlimited_literal): Change parameter type to pointer to
5268 pointer. Adjust and advance ARG pointer.
5269 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5270 (parse_cli_var_enum): New, factored out from ...
5271 (do_set_command): ... this. Adjust.
5272 * cli/cli-setshow.h (parse_cli_boolean_value)
5273 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5274 (parse_cli_var_enum): Declare.
5275 * cli/cli-utils.c: Include "cli/cli-option.h".
5276 (get_ulongest): New.
5277 * cli/cli-utils.h (get_ulongest): Declare.
5278 (check_for_argument): New overloads.
5279 * maint-test-options.c: New file.
5280
5281 2019-06-13 Pedro Alves <palves@redhat.com>
5282
5283 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5284 parse a range if "-" is at the end of the string.
5285
5286 2019-06-13 Pedro Alves <palves@redhat.com>
5287
5288 * cli/cli-setshow.c (parse_auto_binary_operation)
5289 (parse_cli_boolean_value): Don't allow "o".
5290
5291 2019-06-13 Pedro Alves <palves@redhat.com>
5292
5293 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5294 * NEWS: Mention maint test-settings KIND.
5295 * maint-test-settings.c: New file.
5296
5297 2019-06-13 Pedro Alves <palves@redhat.com>
5298
5299 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5300 completer.
5301 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5302 "set" completers.
5303
5304 2019-06-13 Pedro Alves <palves@redhat.com>
5305
5306 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5307 after item.
5308
5309 2019-06-13 Pedro Alves <palves@redhat.com>
5310
5311 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5312
5313 2019-06-13 Pedro Alves <palves@redhat.com>
5314
5315 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5316 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5317 call.
5318 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5319 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5320 calls.
5321 (check_for_argument): Skip spaces after argument.
5322
5323 2019-06-13 Pedro Alves <palves@redhat.com>
5324
5325 * thread.c (thread_apply_command): Adjust TID parsing.
5326 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5327 detected before end of string.
5328 (tid_is_in_list): Error out if LIST is invalid.
5329
5330 2019-06-13 Pedro Alves <palves@redhat.com>
5331
5332 * completer.c (complete_line_internal_1): Rewind completion word
5333 point.
5334 (completion_tracker::advance_custom_word_point_by): Change
5335 parameter type to int.
5336 * completer.h (completion_tracker::advance_custom_word_point_by):
5337 Likewise.
5338
5339 2019-06-13 Pedro Alves <palves@redhat.com>
5340
5341 * completer.c (advance_to_completion_word): Handle delimiters.
5342
5343 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5344
5345 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5346
5347 2019-06-11 Tom Tromey <tom@tromey.com>
5348
5349 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5350 (xmalloc_failed): Move to alloc.c.
5351 * alloc.c: New file.
5352 * Makefile.in (COMMON_SFILES): Add alloc.c.
5353
5354 2019-06-11 Tom Tromey <tom@tromey.com>
5355
5356 * nat/linux-waitpid.c: Don't include server.h.
5357 (linux_debug): Remove.
5358 (my_waitpid): Update.
5359
5360 2019-06-11 Tom Tromey <tromey@adacore.com>
5361
5362 * infcall.c (_initialize_infcall): Remove trailing newline from
5363 help.
5364 * user-regs.c (_initialize_user_regs): Remove trailing newline
5365 from help.
5366 * typeprint.c (_initialize_typeprint): Remove trailing newline
5367 from help.
5368 * reverse.c (_initialize_reverse): Remove trailing newlines from
5369 help.
5370 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5371 from help.
5372 * language.c (add_set_language_command): Remove trailing newline
5373 from help.
5374 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5375 help.
5376 * disasm.c (_initialize_disasm): Remove trailing newline from
5377 help.
5378 * top.c (init_main): Remove trailing newline from help.
5379 * interps.c (_initialize_interpreter): Remove trailing newline
5380 from help.
5381 * btrace.c (_initialize_btrace): Remove trailing newlines from
5382 help.
5383 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5384 from help.
5385 * python/python.c (_initialize_python): Remove trailing newline
5386 from help.
5387 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5388 help.
5389 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5390 from help. Reformat some text.
5391 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5392 from help.
5393 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5394 newline from help.
5395
5396 2019-06-11 Tom Tromey <tromey@adacore.com>
5397
5398 * darwin-nat.c (darwin_decode_exception_message)
5399 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5400
5401 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5402
5403 * valops.c (value_slice): Check for not allocated or not
5404 associated values.
5405
5406 2019-06-10 Tom de Vries <tdevries@suse.de>
5407
5408 PR gdb/24618
5409 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5410 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5411 invalid.
5412
5413 2019-06-10 Tom de Vries <tdevries@suse.de>
5414
5415 PR gdb/24611
5416 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5417 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5418
5419 2019-06-10 Tom de Vries <tdevries@suse.de>
5420
5421 PR symtab/24545
5422 * symtab.c (struct demangled_name_entry): Add language field.
5423 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5424 static minimal symbol". Set and use language field.
5425
5426 2019-06-10 Tom Tromey <tromey@adacore.com>
5427
5428 * ada-lang.c (_initialize_ada_language): Update help text.
5429
5430 2019-06-10 Tom Tromey <tromey@adacore.com>
5431
5432 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5433 with a newline.
5434 * guile/guile.c (handle_boot_error): Don't end warning with a
5435 newline.
5436 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5437 warning with a newline.
5438 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5439 newline.
5440 (s12z_frame_cache): Likewise.
5441 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5442 a newline.
5443 * solib-svr4.c (disable_probes_interface): Don't end warning with
5444 a newline.
5445 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5446 newline.
5447 * python/python.c (do_finish_initialization): Don't end warning
5448 with a newline.
5449
5450 2019-06-10 Tom Tromey <tom@tromey.com>
5451
5452 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5453 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5454 gdbpy_enter.
5455
5456 2019-06-10 Tom Tromey <tromey@adacore.com>
5457
5458 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5459 data.
5460 (elf_new_init): Don't call stabsread_new_init.
5461 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5462 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5463 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5464
5465 2019-06-10 Tom de Vries <tdevries@suse.de>
5466
5467 PR symtab/16264
5468 PR symtab/24517
5469 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5470
5471 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5472
5473 * source.c (find_and_open_source): Also rewrite relative file
5474 names.
5475
5476 2019-04-26 Amos Bird <amosbird@gmail.com>
5477
5478 * annotate.c (annotate_thread_exited): Add "thread-exited"
5479 annotation.
5480
5481 2019-06-06 Tom Tromey <tromey@adacore.com>
5482
5483 * maint.h (class scoped_command_stats): Use
5484 DISABLE_COPY_AND_ASSIGN.
5485 <print_time>: New method.
5486 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5487 print_time.
5488 (scoped_command_stats::print_time): New method.
5489
5490 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5491
5492 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5493 instructions of lengths 6 or 8 bytes.
5494
5495 2019-06-04 Pedro Alves <palves@redhat.com>
5496
5497 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5498
5499 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5500 * breakpoint.c (condition_completer): Likewise.
5501 * cli/cli-dump.c (scan_expression): Likewise.
5502 * common/filestuff.c (mkdir_recursive): Likewise.
5503 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5504 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5505 (gdb_abspath): Likewise.
5506 * compile/compile-cplus-types.c
5507 (compile_cplus_instance::decl_name): Likewise.
5508 * completer.c (complete_explicit_location):
5509 (signal_completer, reg_or_group_completer_1): Likewise.
5510 * cp-support.c (cp_remove_params_if_any): Likewise.
5511 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5512 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5513 * infcmd.c (strip_bg_char): Likewise.
5514 * linespec.c (copy_token_string): Likewise.
5515 * mi/mi-main.c (output_cores): Likewise.
5516 * psymtab.c (psymtab_search_name):
5517 * symfile.c (test_set_ext_lang_command): Likewise.
5518 * target.c (target_fileio_read_stralloc): Likewise.
5519 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5520 * value.c (complete_internalvar): Likewise.
5521
5522 2019-06-04 Christian Biesinger <cbiesinger@google.com>
5523
5524 Add objfile property to gdb.Type.
5525 * NEWS: Mention Python API addition.
5526 * python/py-type.c (typy_get_objfile): New method.
5527
5528 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5529
5530 * NEWS: Mention the new set|show style [title|highlight].
5531 Mention changes to "show style", "help" and "apropos".
5532
5533 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5534
5535 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5536 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5537 instead of print_help_for_command.
5538 (print_doc_of_command): New function.
5539 (help_list): Add 'apropos -v word' suggestion.
5540 (print_help_for_command): Style the command name using title style.
5541 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5542 (_initialize_cli_cmds): Describe -v in apropos_command help.
5543
5544 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5545
5546 * cli/cli-style.h (cli_style_option): Add name in constructor,
5547 add m_name class member, add constructor with intensity,
5548 add name class function.
5549 (cli_style_option::add_setshow_commands): Remove name argument.
5550 (highlight_style, title_style): New styles.
5551 * cli/cli-style.c (do_show): New function that shows a style
5552 characteristic styling the style name with itself.
5553 (set_style_name): New function.
5554 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5555 Update all callers according to the changes in cli/cli-style.h.
5556 * utils.h (fputs_highlighted): New function.
5557 * utils.c (fputs_highlighted): Likewise.
5558
5559 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5560
5561 * NEWS: Mention new pipe command and new convenience variables.
5562
5563 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5564
5565 * cli/cli-cmds.c (pipe_command): New function.
5566 (_initialize_cli_cmds): Call add_com for pipe_command.
5567 Define | as an alias for pipe.
5568 (exit_status_set_internal_vars): New function.
5569 (shell_escape): Call exit_status_set_internal_vars.
5570 cli/cli-decode.c (find_command_name_length): Recognize | as
5571 a single character command.
5572
5573 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5574
5575 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5576 top.c (execute_command_to_ui_file): New function, mostly a copy
5577 of execute_command_to_string.
5578 (execute_command_to_string): Implement by calling
5579 execute_command_to_ui_file.
5580
5581 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5582
5583 * top.h (saved_command_line): Remove declaration.
5584 * top.c (previous_saved_command_line, previous_repeat_arguments):
5585 New variables.
5586 (saved_command_line): Make static, define together with other
5587 'repeat variables'.
5588 (dont_repeat): Clear repeat_arguments.
5589 (repeat_previous, get_saved_command_line, save_command_line):
5590 New functions.
5591 (gdb_init): Initialize saved_command_line
5592 and previous_saved_command_line.
5593 * main.c (captured_main_1): Remove saved_command_line initialization.
5594 * event-top.c (handle_line_of_input): Update to use
5595 the new 'repeat' related functions instead of direct access to
5596 saved_command_line.
5597 * command.h (repeat_previous, get_saved_command_line,
5598 save_command_line): New declarations.
5599 (dont_repeat): Add comment.
5600
5601 2019-05-30 Tom Tromey <tromey@adacore.com>
5602
5603 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5604 Fix comment.
5605 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5606
5607 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5608
5609 PR cli/24587
5610 * completer.c (complete): Initialize variable word.
5611
5612 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5613
5614 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5615 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5616 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5617 'body' is NULL to the outter 'if', protecting the '!is_define'
5618 situation as well.
5619
5620 2019-05-29 Tom Tromey <tromey@adacore.com>
5621
5622 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5623 (dwarf_unknown): New function.
5624 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5625 (dwarf_type_encoding_name): Use dwarf_unknown.
5626
5627 2019-05-29 Tom Tromey <tromey@adacore.com>
5628
5629 PR c++/20020:
5630 * cp-valprint.c (cp_print_value_fields): Call
5631 cp_print_static_field inside "try".
5632
5633 2019-05-29 Tom Tromey <tromey@adacore.com>
5634
5635 * inflow.c (struct terminal_info): Add default operator=.
5636 * configure: Rebuild.
5637 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5638 -Wdeprecated-copy-dtor, -Wredundant-move.
5639
5640 2019-05-29 Tom Tromey <tromey@adacore.com>
5641
5642 * NEWS: Add entry.
5643 * infcmd.c (print_return_value_1): Handle finish_print
5644 option.
5645 (show_print_finish): New function.
5646 (_initialize_infcmd): Add "set/show print finish" commands.
5647 * valprint.c (user_print_options): Initialize new member.
5648 * valprint.h (struct value_print_options) <finish_print>: New
5649 member.
5650
5651 2019-05-28 Tom Tromey <tromey@adacore.com>
5652
5653 * ada-lang.c (ada_remove_Xbn_suffix)
5654 (find_old_style_renaming_symbol)
5655 (parse_old_style_renaming): Remove.
5656 (ada_find_renaming_symbol): Don't call
5657 find_old_style_renaming_symbol.
5658 (ada_is_renaming_symbol): Rename from
5659 ada_find_renaming_symbol. Remove "block" parameter. Return
5660 bool. Now static.
5661 (ada_read_var_value): Update and simplify.
5662 * ada-exp.y (write_var_or_type): Remove old code.
5663
5664 2019-05-28 Alan Hayward <alan.hayward@arm.com>
5665
5666 * event-top.c: Remove include comment.
5667 * inflow.c (class scoped_ignore_sigttou): Move from here...
5668 * inflow.h (class scoped_ignore_sigttou): ...to here.
5669 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5670 * top.c: Remove include comment.
5671
5672 2019-05-27 Tom Tromey <tom@tromey.com>
5673
5674 * NEWS: Fix typo.
5675
5676 2019-05-22 Tom Tromey <tromey@adacore.com>
5677
5678 * target.c (target_follow_exec): Constify parameter.
5679 * target-delegates.c: Rebuild.
5680 * remote.c (remote_target::follow_exec): Constify parameter.
5681 * infrun.c (follow_exec): Constify parameter.
5682 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5683 (target_follow_exec): Likewise.
5684
5685 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5686
5687 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5688 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5689
5690 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5691
5692 * NEWS: Add debugredirect and testsuite sections.
5693
5694 2019-05-22 Simon Cook <simon.cook@embecosm.com>
5695
5696 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5697 target descriptions using exclusively floating point register name
5698 aliases.
5699
5700 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5701
5702 PR gdb/18644:
5703 * f-lang.c (build_fortran_types): Handle the case where
5704 gdbarch_floatformat_for_type returns a nullptr.
5705
5706 2019-05-21 Tom de Vries <tdevries@suse.de>
5707
5708 PR cli/24587
5709 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5710
5711 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5712
5713 PR gdb/18644:
5714 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5715 16-byte floats.
5716 * i386-tdep.c (i386_floatformat_for_type): Use
5717 floatformats_ia64_quad for the 16-byte floating point component
5718 within a fortran 32-byte complex number.
5719
5720 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5721
5722 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5723 delete default constructor.
5724 (find_partial_die): Update to return const struct.
5725 (partial_die_parent_scope): Move variable declaration into scope
5726 of its use and change its type to auto.
5727 (guess_partial_die_structure_name): Likewise.
5728 (partial_die_info::fixup): Likewise.
5729
5730 2019-05-17 Tom Tromey <tromey@adacore.com>
5731
5732 * source.c (find_and_open_source): Remove cast.
5733
5734 2019-05-17 Tom Tromey <tromey@adacore.com>
5735
5736 * annotate.c (annotate_source): Make "filename" const.
5737 * annotate.h (annotate_source): Use const.
5738
5739 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5740
5741 * disasm.c (set_disassembler_options): Send errors to stderr.
5742
5743 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5744
5745 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5746 (cli_interp_base::set_logging): Check debug_redirect.
5747 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5748 * cli/cli-logging.c (debug_redirect): Add static variable.
5749 (pop_output_files): Add default param.
5750 (handle_redirections): Print debug setting.
5751 (show_logging_command): Likewise.
5752 (_initialize_cli_logging): Add debugredirect command.
5753 * interps.c (current_interp_set_logging): Add debug_redirect
5754 parameter.
5755 * interps.h (set_logging): Add debug_redirect parameter.
5756 (current_interp_set_logging): Likewise.
5757 * mi/mi-common.h: Likewise.
5758 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5759
5760 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5761 Tom Tromey <tromey@adacore.com>
5762
5763 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5764 directly.
5765 * cli/cli-interp.h (make_logging_output): Remove declaration.
5766 * cli/cli-logging.c (make_logging_output): Remove function.
5767 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5768 directly.
5769 * ui-file.c (tee_file::tee_file): Remove bools.
5770 (tee_file::~tee_file): Remove deletes.
5771 * ui-file.h (tee_file): Remove bools.
5772
5773 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5774
5775 * mi/mi-cmds.h (mi_cmd_complete): New function.
5776 * mi/mi-main.c (mi_cmd_complete): Likewise.
5777 * mi/mi-cmds.c: Define new MI command -complete.
5778 * NEWS: Mention new -complete command.
5779
5780 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5781
5782 * completer.h (complete): New function.
5783 * completer.c (complete): Likewise.
5784 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5785 function defined in completer.h.
5786
5787 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5788
5789 * MAINTAINERS (Write After Approval): Add myself.
5790
5791 2019-05-17 Tom de Vries <tdevries@suse.de>
5792
5793 PR gdb/24094
5794 * dwarf2read.c (struct cu_partial_die_info): New struct.
5795 (find_partial_die): Return cu_partial_die_info.
5796 (partial_die_parent_scope, guess_partial_die_structure_name)
5797 (partial_die_info::fixup): Handle new return type of find_partial_die.
5798
5799 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5800
5801 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5802 "std::string", simplifying the algorithm.
5803
5804 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5805
5806 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5807 (stap_static_probe_ops::get_probes): Likewise.
5808
5809 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5810
5811 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5812 '-')" and "else if".
5813 (stap_parse_single_operand): Join checks for
5814 "gdbarch_stap_parse_special_token_p" and
5815 "gdbarch_stap_parse_special_token" in the same "if" statement.
5816 Invert check when verifying for operation on register
5817 displacement.
5818
5819 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5820
5821 * stap-probe.c (stap_get_opcode): Update comment.
5822 (stap_get_expected_argument_type): Likewise.
5823 (handle_stap_probe): Likewise.
5824
5825 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5826
5827 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5828 return type to 'bool'. Adjust comment. Use 'bool' when
5829 appropriate.
5830 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5831 * stap-probe.c (stap_parse_argument_1): Likewise.
5832 (stap_is_operator): Likewise.
5833 (stap_is_generic_prefix): Likewise.
5834 (stap_is_register_prefix): Likewise.
5835 (stap_is_register_indirection_prefix): Likewise.
5836 (stap_is_integer_prefix): Likewise.
5837 (stap_generic_check_suffix): Likewise.
5838 (stap_check_integer_suffix): Likewise.
5839 (stap_check_register_suffix): Likewise.
5840 (stap_check_register_indirection_suffix): Likewise.
5841 (stap_parse_register_operand): Likewise.
5842 (stap_parse_single_operand): Likewise.
5843 (stap_parse_argument_1): Likewise.
5844 (stap_probe::get_argument_count): Likewise.
5845 (stap_is_operator): Likewise.
5846
5847 2019-05-16 Tom Tromey <tromey@adacore.com>
5848
5849 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5850 keyword to foreach.
5851
5852 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
5853
5854 * linux-thread-db.c (try_thread_db_load_1): Change return type
5855 to bool.
5856 (try_thread_db_load): Likewise.
5857 (try_thread_db_load_from_pdir_1): Likewise.
5858 (try_thread_db_load_from_pdir): Likewise.
5859 (try_thread_db_load_from_sdir): Likewise.
5860 (try_thread_db_load_from_dir): Likewise.
5861 (thread_db_load_search): Likewise.
5862 (has_libpthread): Likewise.
5863 (thread_db_load): Likewise.
5864
5865 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5866
5867 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5868 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5869 NULL, and complain/return if that's the case.
5870
5871 2019-05-15 John Darrington <john@darrington.wattle.id.au>
5872
5873 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5874 (advance, posn, abstract_read_memory): New functions.
5875 [struct mem_read_abstraction]: New struct.
5876 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5877
5878 2019-05-14 Tom Tromey <tromey@adacore.com>
5879
5880 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5881 value is not lval_memory.
5882
5883 2019-05-14 Tom Tromey <tromey@adacore.com>
5884
5885 * solib.c (info_sharedlibrary_command): Style the file name.
5886
5887 2019-05-14 Alan Hayward <alan.hayward@arm.com>
5888
5889 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5890 (aarch64_vnv_type): Likewise.
5891 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5892 * common/tdesc.c: Likewise.
5893 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5894 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5895 * features/aarch64-fpu.xml: Add ieee half view.
5896 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5897 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5898 * gdbtypes.h (struct builtin_type): Likewise.
5899 (struct objfile_type): Likewise.
5900
5901 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
5902
5903 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5904 typo.
5905 * location.h (string_to_event_location): Likewise.
5906
5907 2019-05-11 Joel Brobecker <brobecker@adacore.com>
5908
5909 GDB 8.3 released.
5910
5911 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5912
5913 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5914 New variable declaration.
5915 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5916 New variable.
5917 (print_one_breakpoint): Use ui_out::test_flags and new global
5918 variable to compute use_fixed_output.
5919 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5920 Remove.
5921 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5922 (mi_multi_location_breakpoint_output_fixed): Remove.
5923 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5924 new variable.
5925 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5926 fix_multi_location_breakpoint_output flag if version >= 3.
5927 * ui-out.h (enum ui_out_flag)
5928 <fix_multi_location_breakpoint_output>: New enumerator.
5929
5930 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5931
5932 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5933
5934 2019-05-10 Tom Tromey <tromey@adacore.com>
5935
5936 * ada-lang.c (catch_ada_completer): New function.
5937 (_initialize_ada_language): Use it.
5938
5939 2019-05-10 Tom Tromey <tromey@adacore.com>
5940
5941 * thread.c (print_thread_info): Make "requested_threads" const.
5942 * gdbthread.h (print_thread_info): Make "requested_threads"
5943 const.
5944 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5945 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5946
5947 2019-05-08 Tom Tromey <tom@tromey.com>
5948
5949 * gdbtypes.c (objfile_type_data): Change type.
5950 (objfile_type, _initialize_gdbtypes): Update.
5951
5952 2019-05-08 Tom Tromey <tom@tromey.com>
5953
5954 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5955 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5956 (_initialize_dwarf2_frame): Update.
5957
5958 2019-05-08 Tom Tromey <tom@tromey.com>
5959
5960 * objc-lang.c (objc_objfile_data): Change type.
5961 (find_methods): Update.
5962 (_initialize_objc_lang): Remove.
5963
5964 2019-05-08 Tom Tromey <tom@tromey.com>
5965
5966 * stabsread.c (rs6000_builtin_type_data): Change type.
5967 (rs6000_builtin_type, _initialize_stabsread): Update.
5968
5969 2019-05-08 Tom Tromey <tom@tromey.com>
5970
5971 * mips-tdep.c (mips_pdr_data): Remove.
5972 (_initialize_mips_tdep): Update.
5973
5974 2019-05-08 Tom Tromey <tom@tromey.com>
5975
5976 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5977 (hppa_init_objfile_priv_data, read_unwind_info)
5978 (find_unwind_entry, _initialize_hppa_tdep): Update.
5979
5980 2019-05-08 Tom Tromey <tom@tromey.com>
5981
5982 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5983 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5984 on obstack.
5985 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5986
5987 2019-05-08 Tom Tromey <tom@tromey.com>
5988
5989 * mdebugread.c (basic_type_data): Change type.
5990 (basic_type, _initialize_mdebugread): Update.
5991
5992 2019-05-08 Tom Tromey <tom@tromey.com>
5993
5994 * common/gdb_unique_ptr.h (struct noop_deleter): New.
5995
5996 2019-05-08 Tom Tromey <tom@tromey.com>
5997
5998 * nto-tdep.c (nto_inferior_data_reg): Change type.
5999 (nto_inferior_data): Update.
6000 (nto_inferior_data_cleanup, nto_new_inferior_data)
6001 (_initialize_nto_tdep): Remove.
6002 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6003
6004 2019-05-08 Tom Tromey <tom@tromey.com>
6005
6006 * ada-lang.c (struct ada_inferior_data): Add initializers.
6007 (ada_inferior_data): Change type.
6008 (ada_inferior_data_cleanup): Remove.
6009 (get_ada_inferior_data, ada_inferior_exit)
6010 (struct ada_pspace_data): Add initializers, destructor.
6011 (ada_pspace_data_handle): Change type.
6012 (get_ada_pspace_data): Update.
6013 (ada_pspace_data_cleanup): Remove.
6014
6015 2019-05-08 Tom Tromey <tom@tromey.com>
6016
6017 * coffread.c (struct coff_symfile_info): Add initializers.
6018 (coff_objfile_data_key): Move lower. Change type.
6019 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6020 Update.
6021 (coff_free_info): Remove.
6022
6023 2019-05-08 Tom Tromey <tom@tromey.com>
6024
6025 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6026 (fbsd_pspace_data_handle): Move lower. Change type.
6027 (get_fbsd_pspace_data): Update.
6028 (fbsd_pspace_data_cleanup): Remove.
6029 (_initialize_fbsd_tdep): Update.
6030
6031 2019-05-08 Tom Tromey <tom@tromey.com>
6032
6033 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6034 (get_ada_tasks_pspace_data): Update.
6035 (ada_tasks_pspace_data_cleanup): Remove.
6036 (_initialize_tasks): Update.
6037 (ada_tasks_inferior_data_handle): Change type.
6038 (get_ada_tasks_inferior_data): Update.
6039 (ada_tasks_inferior_data_cleanup): Remove.
6040 (struct ada_tasks_pspace_data): Add initializers.
6041
6042 2019-05-08 Tom Tromey <tom@tromey.com>
6043
6044 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6045 * symfile-debug.c (debug_sym_get_probes): Change type.
6046 * stap-probe.c (handle_stap_probe):
6047 (stap_static_probe_ops::get_probes): Change type.
6048 * probe.h (class static_probe_ops) <get_probes>: Change type.
6049 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6050 (parse_probes_in_pspace): Update.
6051 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6052 Update.
6053 (any_static_probe_ops::get_probes): Change type.
6054 * elfread.c (elfread_data): New typedef.
6055 (probe_key): Change type.
6056 (elf_get_probes): Likewise. Update.
6057 (probe_key_free): Remove.
6058 (_initialize_elfread): Update.
6059 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6060 Change type.
6061 (dtrace_process_dof_probe, dtrace_process_dof)
6062 (dtrace_static_probe_ops::get_probe): Change type.
6063
6064 2019-05-08 Tom Tromey <tom@tromey.com>
6065
6066 * xcoffread.c (struct xcoff_symfile_info): Rename from
6067 coff_symfile_info. Add initializers.
6068 (xcoff_objfile_data_key): Move lower. Change type.
6069 (XCOFF_DATA): Rewrite.
6070 (xcoff_free_info): Remove.
6071 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6072 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6073 (xcoff_initial_scan): Update.
6074
6075 2019-05-08 Tom Tromey <tom@tromey.com>
6076
6077 * solib-svr4.c (struct svr4_info): Add initializers and
6078 destructor.
6079 <probes_table>: Now an htab_up.
6080 (solib_svr4_pspace_data): Change type.
6081 (free_probes_table): Simplify.
6082 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6083 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6084 (probes_table_remove_objfile_probes, register_solib_event_probe)
6085 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6086 (_initialize_svr4_solib): Update.
6087
6088 2019-05-08 Tom Tromey <tom@tromey.com>
6089
6090 * remote.c (remote_pspace_data): Change type.
6091 (remote_pspace_data_cleanup): Remove.
6092 (get_remote_exec_file, set_pspace_remote_exec_file)
6093 (_initialize_remote): Update.
6094
6095 2019-05-08 Tom Tromey <tom@tromey.com>
6096
6097 * breakpoint.c (breakpoint_objfile_key): Change type.
6098 (get_breakpoint_objfile_data): Update.
6099 (free_breakpoint_objfile_data): Remove.
6100 (_initialize_breakpoint): Update.
6101
6102 2019-05-08 Tom Tromey <tom@tromey.com>
6103
6104 * linux-tdep.c (struct linux_info): Add initializers.
6105 (linux_inferior_data): Move. Change type.
6106 (invalidate_linux_cache_inf): Update.
6107 (linux_inferior_data_cleanup): Remove.
6108 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6109
6110 2019-05-08 Tom Tromey <tom@tromey.com>
6111
6112 * auxv.c (auxv_inferior_data): Move. Change type.
6113 (auxv_inferior_data_cleanup): Remove.
6114 (invalidate_auxv_cache_inf): Rewrite.
6115 (get_auxv_inferior_data, _initialize_auxv): Update.
6116
6117 2019-05-08 Tom Tromey <tom@tromey.com>
6118
6119 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6120 (symfile_debug_objfile_data_key): Change type.
6121 (symfile_debug_installed, debug_qf_has_symbols)
6122 (debug_qf_find_last_source_symtab)
6123 (debug_qf_forget_cached_source_info)
6124 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6125 (debug_qf_print_stats, debug_qf_dump)
6126 (debug_qf_expand_symtabs_for_function)
6127 (debug_qf_expand_all_symtabs)
6128 (debug_qf_expand_symtabs_with_fullname)
6129 (debug_qf_map_matching_symbols)
6130 (debug_qf_expand_symtabs_matching)
6131 (debug_qf_find_pc_sect_compunit_symtab)
6132 (debug_qf_map_symbol_filenames)
6133 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6134 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6135 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6136 (debug_sym_read_linetable, debug_sym_relocate): Update.
6137 (symfile_debug_free_objfile): Remove.
6138 (install_symfile_debug_logging, _initialize_symfile_debug):
6139 Update.
6140
6141 2019-05-08 Tom Tromey <tom@tromey.com>
6142
6143 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6144 allocate_on_obstack.
6145 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6146 (get_dwarf2_per_objfile): Update.
6147 (set_dwarf2_per_objfile): Remove.
6148 (dwarf2_has_info, dwarf2_get_section_info): Update.
6149 (dwarf2_free_objfile): Remove.
6150 (_initialize_dwarf2_read): Update.
6151
6152 2019-05-08 Tom Tromey <tom@tromey.com>
6153
6154 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6155 initializers.
6156 <unsupported_script_warning_printed,
6157 script_not_found_warning_printed>: Now bool.
6158 (auto_load_pspace_data): Change type.
6159 (~auto_load_pspace_info): Rename from
6160 auto_load_pspace_data_cleanup.
6161 (get_auto_load_pspace_data, init_loaded_scripts_info)
6162 (clear_section_scripts, maybe_print_unsupported_script_warning)
6163 (maybe_print_script_not_found_warning, _initialize_auto_load):
6164 Update.
6165
6166 2019-05-08 Tom Tromey <tom@tromey.com>
6167
6168 * objfiles.c (objfile_pspace_info): Add destructor and
6169 initializers.
6170 (objfiles_pspace_data): Change type.
6171 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6172 (get_objfile_pspace_data): Update.
6173 (objfiles_bfd_data): Change type.
6174 (get_objfile_bfd_data): Update.
6175 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6176
6177 2019-05-08 Tom Tromey <tom@tromey.com>
6178
6179 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6180 Change type.
6181 (get_catch_syscall_inferior_data): Update.
6182 (catch_syscall_inferior_data_cleanup): Remove.
6183 (_initialize_break_catch_syscall): Update.
6184
6185 2019-05-08 Tom Tromey <tom@tromey.com>
6186
6187 * inflow.c (struct terminal_info): Add destructor and
6188 initializers.
6189 (inflow_inferior_data): Change type.
6190 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6191 (get_inflow_inferior_data, inflow_inferior_exit)
6192 (swap_terminal_info, _initialize_inflow): Update.
6193
6194 2019-05-08 Tom Tromey <tom@tromey.com>
6195
6196 * target-dcache.c (target_dcache_cleanup): Remove.
6197 (target_dcache_aspace_key): Change type.
6198 (target_dcache_init_p, target_dcache_invalidate)
6199 (target_dcache_get, target_dcache_get_or_init)
6200 (_initialize_target_dcache): Update.
6201 * dcache.h (struct dcache_deleter): New.
6202
6203 2019-05-08 Tom Tromey <tom@tromey.com>
6204
6205 * symtab.c (struct symbol_cache): Add destructor and
6206 initializers.
6207 (symbol_cache_key): Move. Change type.
6208 (make_symbol_cache, free_symbol_cache): Remove.
6209 (get_symbol_cache): Update.
6210 (symbol_cache_cleanup): Remove.
6211 (ALL_PSPACES, symbol_cache_flush)
6212 (maintenance_print_symbol_cache)
6213 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6214 Update.
6215
6216 2019-05-08 Tom Tromey <tom@tromey.com>
6217
6218 * symtab.c (struct main_info): Add destructor and initializers.
6219 (main_progspace_key): Move. Change type.
6220 (get_main_info): Update.
6221 (main_info_cleanup): Remove.
6222 (_initialize_symtab): Update.
6223
6224 2019-05-08 Tom Tromey <tom@tromey.com>
6225
6226 * registry.h (DECLARE_REGISTRY): Define the _key class.
6227
6228 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6229
6230 * NEWS: Merge two 'New commands' sections.
6231
6232 2019-05-08 Joel Brobecker <brobecker@adacore.com>
6233
6234 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6235 parameter and use Ada language definition instead.
6236 (ada_val_print_ptr): Remove unused language parameter.
6237 (ada_val_print_num): Remove language parameter and use Ada language
6238 definition instead.
6239 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6240 parameter.
6241 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6242 parameter and use Ada language definition instead.
6243 (ada_val_print_1): Update all ada_val_print_xxx calls.
6244 Remove language parameter.
6245 (ada_val_print): Update ada_val_print_1 call.
6246
6247 2019-05-08 Tom Tromey <tromey@adacore.com>
6248
6249 * remote.c (remote_hw_watchpoint_limit)
6250 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6251 Now static.
6252
6253 2019-05-08 Tom Tromey <tromey@adacore.com>
6254
6255 * maint.c (_initialize_maint_cmds): Move initialization code to
6256 remote.c.
6257 (watchdog, show_watchdog): Move to remote.c.
6258 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6259 "watchdog" static.
6260 (_initialize_remote): Move initialization code from maint.c.
6261 * defs.h (watchdog): Don't declare.
6262
6263 2019-05-08 Tom Tromey <tromey@adacore.com>
6264
6265 * tui/tui-interp.c: Include main.h.
6266 * interps.c: Include main.h.
6267 * main.h (interpreter_p): Declare.
6268 * defs.h (interpreter_p): Don't declare.
6269
6270 2019-05-08 Tom Tromey <tromey@adacore.com>
6271
6272 * dwarf2loc.c: Include dwarf2read.h.
6273 * defs.h (read_unsigned_leb128): Don't declare.
6274 * dwarf2read.h (read_unsigned_leb128): Declare.
6275
6276 2019-05-08 Tom Tromey <tromey@adacore.com>
6277
6278 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6279 method.
6280
6281 2019-05-08 Tom Tromey <tromey@adacore.com>
6282
6283 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6284 when no wrap column is set.
6285
6286 2019-05-08 Tom Tromey <tromey@adacore.com>
6287
6288 * c-lang.c (c_get_string): Handle non-C-style arrays.
6289
6290 2019-05-08 Tom Tromey <tromey@adacore.com>
6291
6292 * typeprint.c (print_offset_data::update): Print the bit offset,
6293 not the number of bits remaining.
6294
6295 2019-05-08 Tom Tromey <tromey@adacore.com>
6296
6297 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6298 padding at end of comment.
6299
6300 2019-05-08 Tom Tromey <tromey@adacore.com>
6301
6302 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6303 Compare main types.
6304
6305 2019-05-06 Tom Tromey <tom@tromey.com>
6306
6307 * common/scoped_mmap.c: Include common-defs.h.
6308 * common/scoped_mmap.h: Don't include config.h.
6309
6310 2019-05-04 Tom Tromey <tom@tromey.com>
6311
6312 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6313 (struct aarch64_call_info): Add initializers.
6314 <si>: Now a std::vector.
6315 (pass_on_stack, aarch64_push_dummy_call): Update.
6316
6317 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
6318 Tom Tromey <tom@tromey.com>
6319
6320 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6321 (ppc_threads): Now a std::vector. Now static.
6322 (hwdebug_find_thread_points_by_tid)
6323 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6324 Update.
6325
6326 2019-05-04 Tom Tromey <tom@tromey.com>
6327
6328 * arc-tdep.c (arc_tdesc_init): Return bool.
6329
6330 2019-05-04 Tom Tromey <tom@tromey.com>
6331
6332 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6333 Use gdb_assert_not_reached.
6334
6335 2019-05-04 Tom Tromey <tom@tromey.com>
6336
6337 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6338 "false".
6339
6340 2019-05-04 Tom Tromey <tom@tromey.com>
6341
6342 * arc-tdep.c (arc_tdesc_init): Use bool.
6343
6344 2019-05-04 Tom Tromey <tom@tromey.com>
6345
6346 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6347
6348 2019-05-04 Tom Tromey <tom@tromey.com>
6349
6350 * cli/cli-cmds.c (valid_command_p): Return bool.
6351
6352 2019-05-04 Tom Tromey <tom@tromey.com>
6353
6354 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6355 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6356
6357 2019-05-04 Raul Tambre <raul@tambre.ee>
6358
6359 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6360 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6361 operator for comparison.
6362
6363 2019-05-04 Tom Tromey <tom@tromey.com>
6364
6365 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6366 (lookup_partial_symbol, print_partial_symbols)
6367 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6368 (psymbol_compare): Update.
6369 (add_psymbol_to_bcache): Clear the entire psymbol.
6370 (maintenance_check_psymtabs): Update.
6371 * psympriv.h (struct partial_symbol): Don't derive from
6372 general_symbol_info.
6373 <obj_section, unrelocated_address, address,
6374 set_unrelocated_address>: Update.
6375 <ginfo>: New member.
6376 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6377 (debug_names::write_psymbols): Update.
6378
6379 2019-05-04 Tom de Vries <tdevries@suse.de>
6380
6381 * contrib/cc-with-tweaks.sh: Support -n arg.
6382
6383 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6384
6385 * corelow.c (core_target::detach): Ensure frame cache and
6386 register caches are cleared.
6387 inferior.c (exit_inferior_1): Likewise.
6388
6389 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6390 Tom Tromey <tom@tromey.com>
6391
6392 * dictionary.c (collate_pending_symbols_by_language): Remove
6393 "struct" from foreach.
6394 * symtab.c (lookup_global_symbol_from_objfile)
6395 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6396 foreach.
6397 * ser-tcp.c (net_open): Remove "struct" from foreach.
6398 * objfiles.c (objfile_relocate, objfile_rebase)
6399 (objfile_has_symbols): Remove "struct" from foreach.
6400 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6401 from foreach.
6402 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6403 foreach.
6404 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6405 "struct" from foreach.
6406 * ada-lang.c (create_excep_cond_exprs)
6407 (ada_exception_catchpoint_cond_string): Remove "struct" from
6408 foreach.
6409
6410 2019-05-03 Tom Tromey <tromey@adacore.com>
6411
6412 * ada-exp.y (convert_char_literal): Check suffix of each
6413 enumerator.
6414
6415 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6416
6417 PR ada/21406:
6418 * ada-exp.y (yywrap): Don't define.
6419 * ada-lex.l (%option): Add noyywrap
6420 (yywrap): Remove.
6421
6422 2019-05-03 Eli Zaretskii <eliz@gnu.org>
6423
6424 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6425 _WIN32_WINNT to the XP level, unless already defined to a higher
6426 level.
6427
6428 * unittests/parse-connection-spec-selftests.c:
6429 * ser-tcp.c:
6430 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6431 override.
6432
6433 * symfile.c (find_separate_debug_file): Remove colon from the
6434 drive spec of DOS/Windows file names of the target, so that the
6435 file name produced from DEBUGDIR and the target's directory will
6436 be valid on DOS/Windows systems.
6437
6438 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6439
6440 * rust-lang.c (val_print_struct): Handle printing structures
6441 containing strings.
6442
6443 2019-05-02 Tom Tromey <tromey@adacore.com>
6444
6445 * valarith.c (_initialize_valarith): Remove.
6446
6447 2019-05-01 Tom Tromey <tromey@adacore.com>
6448
6449 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6450 bitfields.
6451
6452 2019-05-01 Tom Tromey <tromey@adacore.com>
6453
6454 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6455 for big-endian copies.
6456
6457 2019-04-30 Ali Tamur <tamur@google.com>
6458 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6459 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6460 (read_3_bytes): New function.
6461
6462 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6463
6464 * windows-nat.c (main_thread_id): Delete.
6465 (handle_output_debug_string): Replace main_thread_id by
6466 current_event.dwThreadId.
6467 (fake_create_process): Likewise.
6468 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6469 Do not set main_thread_id.
6470 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6471 current_event.dwThreadId.
6472 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6473
6474 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6475
6476 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6477 Use current_event.dwThreadId instead of main_thread_id.
6478
6479 2019-04-30 Tom Tromey <tromey@adacore.com>
6480
6481 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6482 (create_excep_cond_exprs): Iterate over program spaces.
6483 (ada_exception_catchpoint_cond_string): Examine all minimal
6484 symbols for exception types.
6485
6486 2019-04-30 Tom Tromey <tromey@adacore.com>
6487
6488 PR c++/24470:
6489 * dwarf2read.c (process_structure_scope): Handle case where type
6490 has template parameters but no symbol was created.
6491
6492 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6493 Chris January <chris.january@arm.com>
6494
6495 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6496 qualifier.
6497 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6498
6499 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6500
6501 * f-typeprint.c (f_print_type): Update rules for printing
6502 whitespace.
6503 (f_type_print_varspec_suffix): Likewise.
6504
6505 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6506 Chris January <chris.january@arm.com>
6507
6508 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6509 function arguments.
6510
6511 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6512
6513 * f-lang.c (build_fortran_types): Change name of void type to
6514 lower case.
6515 * f-typeprint.c (f_type_print_base): Print the name of the void
6516 type, rather than a fixed string.
6517 * f-valprint.c (f_decorations): Use lower case void string.
6518
6519 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6520 Chris January <chris.january@arm.com>
6521
6522 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6523 types for Fortran.
6524
6525 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6526 Chris January <chris.january@arm.com>
6527 David Lecomber <david.lecomber@arm.com>
6528
6529 * f-exp.y (BINOP_INTRINSIC): New token.
6530 (exp): New parser rule handling BINOP_INTRINSIC.
6531 (f77_keywords): Add new builtin procedures.
6532 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6533 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6534 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6535 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6536 (print_unop_subexp_f): New function.
6537 (print_binop_subexp_f): New function.
6538 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6539 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6540 (dump_subexp_body_f): Likewise.
6541 (operator_check_f): Likewise.
6542 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6543 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6544
6545 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6546
6547 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6548 UNOP_KIND.
6549 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6550 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6551 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6552 (operator_length_f): New fuction.
6553 (print_subexp_f): New function.
6554 (op_name_f): New function.
6555 (dump_subexp_body_f): New function.
6556 (operator_check_f): New function.
6557 (exp_descriptor_f): Replace standard expression handling functions
6558 with new functions.
6559 * gdb/fortran-operator.def: New file.
6560 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6561 * gdb/std-operator.def: Remove UNOP_KIND.
6562
6563 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6564
6565 * std-operator.def: Remove unbalanced, stray double quote
6566 character.
6567
6568 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6569 Chris January <chris.january@arm.com>
6570 Daniel Everett <daniel.everett@arm.com>
6571 Nick Forrington <nick.forrington@arm.com>
6572 Richard Bunt <richard.bunt@arm.com>
6573
6574 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6575 of depth when printing anonymous structs or unions.
6576 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6577 Don't print either the top-level value, or the children if the
6578 max-depth is exceeded.
6579 (ppscm_print_children): When printing the key of a map, allow one
6580 extra level of depth.
6581 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6582 print either the top-level value, or the children if the max-depth
6583 is exceeded.
6584 (print_children): When printing the key of a map, allow one extra
6585 level of depth.
6586 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6587 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6588 (user_print_options): Initialise max_depth field.
6589 (val_print_scalar_or_string_type_p): New function.
6590 (val_print): Check to see if the max depth has been reached.
6591 (val_print_check_max_depth): Define new function.
6592 (show_print_max_depth): New function.
6593 (_initialize_valprint): Add 'print max-depth' option.
6594 * valprint.h (struct value_print_options) <max_depth>: New field.
6595 (val_print_check_max_depth): Declare new function.
6596 * NEWS: Document new feature.
6597
6598 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6599
6600 * ada-lang.c (ada_language_defn): Initialise new field.
6601 * c-lang.c (c_is_string_type_p): New function.
6602 (c_language_defn): Initialise new field.
6603 (cplus_language_defn): Initialise new field.
6604 (asm_language_defn): Initialise new field.
6605 (minimal_language_defn): Initialise new field.
6606 * c-lang.h (c_is_string_type_p): Declare new function.
6607 * d-lang.c (d_language_defn): Initialise new field.
6608 * f-lang.c (f_is_string_type_p): New function.
6609 (f_language_defn): Initialise new field.
6610 * go-lang.c (go_is_string_type_p): New function.
6611 (go_language_defn): Initialise new field.
6612 * language.c (default_is_string_type_p): New function.
6613 (unknown_language_defn): Initialise new field.
6614 (auto_language_defn): Initialise new field.
6615 * language.h (struct language_defn) <la_is_string_type_p>: New
6616 member variable.
6617 (default_is_string_type_p): Declare new function.
6618 * m2-lang.c (m2_language_defn): Initialise new field.
6619 * objc-lang.c (objc_language_defn): Initialise new field.
6620 * opencl-lang.c (opencl_language_defn): Initialise new field.
6621 * p-lang.c (pascal_is_string_type_p): New function.
6622 (pascal_language_defn): Initialise new field.
6623 * rust-lang.c (rust_is_string_type_p): New function.
6624 (rust_language_defn): Initialise new field.
6625
6626 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6627
6628 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6629 New field.
6630 * ada-lang.c (ada_language_defn): Initialise new field.
6631 * c-lang.c (c_language_defn): Likewise.
6632 (cplus_language_defn): Likewise.
6633 (asm_language_defn): Likewise.
6634 (minimal_language_defn): Likewise.
6635 * d-lang.c (d_language_defn): Likewise.
6636 * f-lang.c (f_language_defn): Likewise.
6637 * go-lang.c (go_language_defn): Likewise.
6638 * language.c (unknown_language_defn): Likewise.
6639 (auto_language_defn): Likewise.
6640 * m2-lang.c (m2_language_defn): Likewise.
6641 * objc-lang.c (objc_language_defn): Likewise.
6642 * opencl-lang.c (opencl_language_defn): Likewise.
6643 * p-lang.c (pascal_language_defn): Likewise.
6644 * rust-lang.c (rust_language_defn): Likewise.
6645
6646 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6647
6648 * ada-lang.c (ada_is_character_type): Change return type to bool.
6649 (ada_is_string_type): Likewise.
6650 * ada-lang.h (ada_is_character_type): Update declaration
6651 (ada_is_string_type): Likewise.
6652
6653 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6654
6655 Support style in 'frame|thread apply'
6656
6657 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6658 * record.c (record_start, record_stop): Update callers of
6659 execute_command_to_string with false.
6660 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6661 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6662 methods.
6663 (class string_file): New constructor with term_out parameter.
6664 Override methods term_out and can_emit_style_escape. New member
6665 term_out.
6666 (class stdio_file): Override can_emit_style_escape.
6667 (class tee_file): Override term_out and can_emit_style_escape.
6668 * utils.h (can_emit_style_escape): Remove.
6669 * utils.c (can_emit_style_escape): Likewise.
6670 Update all callers of can_emit_style_escape (SOMESTREAM) to
6671 SOMESTREAM->can_emit_style_escape.
6672 * source-cache.c (source_cache::get_source_lines): Likewise.
6673 * stack.c (frame_apply_command_count): Call execute_command_to_string
6674 passing the term_out characteristic of the current gdb_stdout.
6675 * thread.c (thr_try_catch_cmd): Likewise.
6676 * top.c (execute_command_to_string): pass term_out parameter
6677 to construct the string_file for the command output.
6678 * ui-file.c (term_cli_styling): New function (most code moved
6679 from utils.c can_emit_style_escape).
6680 (string_file::string_file, string_file::can_emit_style_escape,
6681 stdio_file::can_emit_style_escape, tee_file::term_out,
6682 tee_file::can_emit_style_escape): New functions.
6683
6684 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6685
6686 * NEWS: Mention the new set|show may-call-functions.
6687 * infcall.c (may_call_functions_p): New variable.
6688 (show_may_call_functions_p): New function.
6689 (call_function_by_hand_dummy): Throws an error if not
6690 may-call-functions.
6691 (_initialize_infcall): Call add_setshow_boolean_cmd for
6692 may-call-functions.
6693
6694 2019-04-25 Keith Seitz <keiths@redhat.com>
6695
6696 PR c++/24367
6697 * cp-support.c (inspect_type): Don't attempt substitutions
6698 of symbol with the same name.
6699
6700 2019-04-25 Tom Tromey <tromey@adacore.com>
6701
6702 PR gdb/24475:
6703 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6704 static.
6705
6706 2019-04-25 Tom Tromey <tromey@adacore.com>
6707
6708 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6709 rvalue reference.
6710 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6711 (gdb_xml_parser::parse): Use std::move.
6712 * python/python-internal.h (gdbpy_convert_exception): Take a const
6713 reference.
6714 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6715 std::move.
6716 * python/py-utils.c (gdbpy_convert_exception): Take a const
6717 reference.
6718 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6719 Use std::move.
6720 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6721 Use std::move.
6722 * mi/mi-main.c (mi_print_exception): Take a const reference.
6723 * main.c (handle_command_errors): Take a const reference.
6724 * linespec.c (parse_linespec): Use std::move.
6725 * infcall.c (run_inferior_call): Use std::move.
6726 (call_function_by_hand_dummy): Use std::move.
6727 * exec.c (try_open_exec_file): Use std::move.
6728 * exceptions.h (exception_print, exception_fprintf)
6729 (exception_print_same): Update.
6730 * exceptions.c (print_exception, exception_print)
6731 (exception_fprintf, exception_print_same): Change parameters to
6732 const reference.
6733 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6734 * common/new-op.c: Use std::move.
6735 * common/common-exceptions.h (struct gdb_exception): Add move
6736 constructor.
6737 (struct gdb_exception_error, struct gdb_exception_quit, struct
6738 gdb_quit_bad_alloc): Change constructor to move constructor.
6739 (throw_exception): Change parameter to rvalue reference.
6740 * common/common-exceptions.c (throw_exception): Take rvalue
6741 reference.
6742 * cli/cli-interp.c (safe_execute_command): Use std::move.
6743 * breakpoint.c (insert_bp_location, location_to_sals): Use
6744 std::move.
6745
6746 2019-04-25 Tom Tromey <tromey@adacore.com>
6747
6748 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6749 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6750 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6751 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6752 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6753 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6754 guile/scm-value.c: Use unpack.
6755 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6756 gdbscm_gdb_exception.
6757 (gdbscm_throw_gdb_exception): Likewise.
6758 (struct gdbscm_gdb_exception): New.
6759 (unpack): New function.
6760 (gdbscm_wrap): Use unpack.
6761
6762 2019-04-25 Tom Tromey <tromey@adacore.com>
6763
6764 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6765 (gdb_rl_callback_handler): Use std::move.
6766 * common/common-exceptions.h (struct gdb_exception): Add move
6767 assignment operator.
6768 (throw_exception_sjlj): Change "exception" to const reference.
6769 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6770 (throw_exception_sjlj): Change "exception" to const reference.
6771
6772 2019-04-25 Tom Tromey <tromey@adacore.com>
6773
6774 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6775 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6776 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6777 Update.
6778 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6779 Update.
6780 * mi/mi-interp.c (mi_interp::exec): Update.
6781 * linespec.c (parse_linespec): Update.
6782 * infcall.c (run_inferior_call): Update.
6783 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6784 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6785 (gdbscm_lookup_global_symbol): Update.
6786 * guile/scm-param.c (gdbscm_parameter_value): Update.
6787 * guile/scm-frame.c (gdbscm_frame_read_register)
6788 (gdbscm_frame_read_var): Update.
6789 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6790 * exec.c (try_open_exec_file): Update.
6791 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6792 (gdb_rl_callback_handler): Update.
6793 * common/common-exceptions.h (exception_none): Don't declare.
6794 * common/common-exceptions.c (exception_none): Don't define.
6795 (struct catcher) <exception>: Update.
6796 * cli/cli-interp.c (safe_execute_command): Update.
6797 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6798
6799 2019-04-25 Ali Tamur <tamur@google.com>
6800
6801 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6802 (read_attribute_value): Likewise.
6803 (dwarf2_read_addr_index): Update comment.
6804 (read_str_index): Add DW_FORM_strx.
6805 (dwarf2_string_attr): Likewise.
6806 (dwarf2_const_value_attr): Likewise.
6807 (dump_die_shallow): Likewise.
6808 (dwarf2_fetch_constant_bytes): Likewise.
6809 (skip_form_bytes): Likewise.
6810 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6811
6812 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6813
6814 PR corefiles/11608
6815 PR corefiles/18187
6816 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6817 OFFSET. Verify if current mapping contains an ELF header.
6818 (linux_find_memory_regions_full): Adjust call to
6819 dump_mapping_p.
6820
6821 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6822 Kang Li <kanglictf@gmail.com>
6823
6824 PR gdb/21600
6825
6826 * dwarf2-frame.c (read_initial_length): Be consistent about using
6827 unsigned representation of length.
6828 (decode_frame_entry_1): Likewise. Check for wraparound of
6829 end pointer as well as buffer overflow.
6830
6831 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6832
6833 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6834 "vq".
6835
6836 2019-04-24 Tom Tromey <tromey@adacore.com>
6837
6838 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6839
6840 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6841
6842 * s12z-tdep.c (s12z_unwind_pc): Delete.
6843 (s12z_unwind_sp): Delete.
6844 (s12z_gdbarch_init): Don't register deleted functions with
6845 gdbarch.
6846
6847 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6848
6849 * rl78-tdep.c (rl78_unwind_sp): Delete.
6850 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6851
6852 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6853
6854 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6855 (xstormy16_unwind_pc): Delete.
6856 (xstormy16_dummy_id): Delete.
6857 (xstormy16_gdbarch_init): Don't register deleted functions with
6858 gdbarch.
6859
6860 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6861
6862 * vax-tdep.c (vax_unwind_pc): Delete.
6863 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6864
6865 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6866
6867 * v850-tdep.c (v850_unwind_sp): Delete.
6868 (v850_unwind_pc): Delete.
6869 (v850_dummy_id): Delete.
6870 (v850_gdbarch_init): Don't register deleted functions with
6871 gdbarch.
6872
6873 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6874
6875 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6876 (tilegx_unwind_pc): Delete.
6877 (tilegx_unwind_dummy_id): Delete.
6878 (tilegx_gdbarch_init): Don't register deleted functions with
6879 gdbarch.
6880
6881 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6882
6883 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6884 (tic6x_dummy_id): Delete.
6885 (tic6x_gdbarch_init): Don't register deleted functions with
6886 gdbarch.
6887
6888 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6889
6890 * sparc-tdep.c (sparc_unwind_pc): Delete.
6891 (sparc32_gdbarch_init): Don't register deleted function with
6892 gdbarch.
6893
6894 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6895
6896 * sh-tdep.c (sh_unwind_sp): Delete.
6897 (sh_unwind_pc): Delete.
6898 (sh_dummy_id): Delete.
6899 (sh_gdbarch_init): Don't register deleted functions with
6900 gdbarch.
6901
6902 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6903
6904 * score-tdep.c (score_unwind_sp): Delete.
6905 (score_unwind_pc): Delete.
6906 (score_dummy_id): Delete.
6907 (score_gdbarch_init): Don't register deleted functions with
6908 gdbarch.
6909
6910 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6911
6912 * rx-tdep.c (rx_unwind_pc): Delete.
6913 (rx_unwind_sp): Delete.
6914 (rx_dummy_id): Delete.
6915 (rx_gdbarch_init): Don't register deleted functions with
6916 gdbarch. Update comment.
6917
6918 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6919
6920 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6921 (rs6000_dummy_id): Delete.
6922 (rs6000_gdbarch_init): Don't register deleted functions with
6923 gdbarch.
6924
6925 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6926
6927 * or1k-tdep.c (or1k_dummy_id): Delete.
6928 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6929
6930 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6931
6932 * nios2-tdep.c (nios2_dummy_id): Delete.
6933 (nios2_unwind_sp): Delete.
6934 (nios2_gdbarch_init): Don't register deleted functions with
6935 gdbarch.
6936
6937 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6938
6939 * nds32-tdep.c (nds32_dummy_id): Delete.
6940 (nds32_unwind_pc): Delete.
6941 (nds32_unwind_sp): Delete.
6942 (nds32_gdbarch_init): Don't register deleted functions with
6943 gdbarch.
6944
6945 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6946
6947 * msp430-tdep.c (msp430_unwind_pc): Delete.
6948 (msp430_unwind_sp): Delete.
6949 (msp430_dummy_id): Delete.
6950 (msp430_gdbarch_init): Don't register deleted functions with
6951 gdbarch.
6952
6953 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6954
6955 * moxie-tdep.c (moxie_unwind_sp): Delete.
6956 (moxie_unwind_pc): Delete.
6957 (moxie_dummy_id): Delete.
6958 (moxie_gdbarch_init): Don't register deleted functions with
6959 gdbarch.
6960
6961 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6962
6963 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6964 (mn10300_unwind_pc): Delete.
6965 (mn10300_unwind_sp): Delete.
6966 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6967 mn10300_unwind_sp.
6968 (mn10300_frame_unwind_init): Don't register deleted functions with
6969 gdbarch.
6970
6971 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6972
6973 * mep-tdep.c (mep_unwind_pc): Delete.
6974 (mep_unwind_sp): Delete.
6975 (mep_dummy_id): Delete.
6976 (mep_gdbarch_init): Don't register deleted functions with
6977 gdbarch.
6978
6979 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6980
6981 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6982 (m68hc11_unwind_sp): Delete.
6983 (m68hc11_gdbarch_init): Don't register deleted functions with
6984 gdbarch.
6985
6986 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6987
6988 * m32r-tdep.c (m32r_unwind_sp): Delete.
6989 (m32r_unwind_pc): Delete.
6990 (m32r_dummy_id): Delete.
6991 (m32r_gdbarch_init): Don't register deleted functions with
6992 gdbarch.
6993
6994 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6995
6996 * m32c-tdep.c (m32c_unwind_pc): Delete.
6997 (m32c_unwind_sp): Delete.
6998 (m32c_dummy_id): Delete.
6999 (m32c_gdbarch_init): Don't register deleted functions with
7000 gdbarch.
7001
7002 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7003
7004 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7005 (lm32_unwind_pc): Delete.
7006 (lm32_dummy_id): Delete.
7007 (lm32_gdbarch_init): Don't register deleted functions with
7008 gdbarch.
7009
7010 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7011
7012 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7013 (iq2000_unwind_pc): Delete.
7014 (iq2000_dummy_id): Delete.
7015 (iq2000_gdbarch_init): Don't register deleted functions with
7016 gdbarch.
7017
7018 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7019
7020 * nds32-tdep.c (nds32_type_align): Delete.
7021 (nds32_push_dummy_call): Use type_align instead.
7022
7023 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7024
7025 * arm-tdep.c (arm_type_align): Only handle vector override case.
7026 (arm_push_dummy_call): Use type_align.
7027 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7028
7029 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7030
7031 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7032 case.
7033 (pass_on_stack): Use type_align.
7034 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7035 function.
7036
7037 2019-04-23 Tom Tromey <tromey@adacore.com>
7038
7039 * dwarf2read.c (line_header::file_name_at): Remove unused
7040 overload.
7041
7042 2019-04-23 Tom de Vries <tdevries@suse.de>
7043
7044 PR gdb/24438
7045 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7046 invocation.
7047
7048
7049 2019-03-27 Ali Tamur <tamur@google.com>
7050
7051 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7052 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7053 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7054 (dwarf_expr_context::get_addr_index): Likewise
7055 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7056 (symbol_needs_eval_context::get_addr_index): Likewise
7057 (disassemble_dwarf_expression): Add DW_OP_addrx
7058 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7059 (read_cutu_die_from_dwo): Update comment
7060 (skip_one_die): Add DW_FORM_addrx
7061 (read_attribute_value): Likewise
7062 (var_decode_location): Add DW_OP_addrx
7063 (dwarf2_const_value_attr): Add DW_FORM_addrx
7064 (dump_die_shallow): Likewise
7065 (dwarf2_fetch_constant_bytes): Likewise
7066 (decode_locdesc): Add DW_OP_addrx
7067 (skip_form_bytes): Add DW_FORM_addrx
7068
7069 2019-04-22 Ali Tamur <tamur@google.com>
7070
7071 * MAINTAINERS (Write After Approval): Add self.
7072
7073 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
7074
7075 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7076 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7077 (open_symbol_file_object): Likewise.
7078 (svr4_default_sos): Add info parameter.
7079 (svr4_read_so_list): Likewise.
7080 (svr4_current_sos_direct): Adjust functions calls to pass down
7081 info.
7082 (svr4_current_sos_1): Add info parameter.
7083 (svr4_current_sos): Call get_svr4_info, pass info down to
7084 svr4_current_sos_1.
7085 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7086 get_svr4_info.
7087 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7088 get_svr4_info.
7089 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7090 to get_svr4_info.
7091 (probes_table_remove_objfile_probes): Likewise.
7092 (register_solib_event_probe): Add info parameter.
7093 (solist_update_incremental): Pass info parameter down to
7094 svr4_read_so_list.
7095 (disable_probes_interface): Add info parameter.
7096 (svr4_handle_solib_event): Pass current_program_space to
7097 get_svr4_info. Adjust disable_probes_interface cleanup.
7098 (svr4_create_probe_breakpoints): Add info parameter, pass it
7099 down to register_solib_event_probe.
7100 (svr4_create_solib_event_breakpoints): Add info parameter,
7101 pass it down to svr4_create_probe_breakpoints.
7102 (enable_break): Pass info down to
7103 svr4_create_solib_event_breakpoints.
7104 (svr4_solib_create_inferior_hook): Pass current_program_space to
7105 get_svr4_info.
7106 (svr4_clear_solib): Likewise.
7107
7108 2019-04-22 Pedro Alves <palves@redhat.com>
7109
7110 * solib-svr4.c (svr4_free_objfile_observer): New.
7111 (probe_and_action::objfile): New field.
7112 (probes_table_htab_remove_objfile_probes)
7113 (probes_table_remove_objfile_probes): New functions.
7114 (register_solib_event_probe): Add 'objfile' parameter. Store it
7115 in the new probe_and_action. Don't store the probe in 'lookup'.
7116 (svr4_create_probe_breakpoints): Pass objfile to
7117 register_solib_event_probe.
7118 (_initialize_svr4_solib): Register a free_objfile observer.
7119
7120 2019-04-19 Tom Tromey <tom@tromey.com>
7121
7122 * common/queue.h: Remove.
7123
7124 2019-04-19 Tom Tromey <tom@tromey.com>
7125
7126 * event-loop.c: Don't include "common/queue.h".
7127
7128 2019-04-19 Tom Tromey <tom@tromey.com>
7129
7130 * remote.c (remote_target): Use delete.
7131 * remote-notif.h: Include <list>, not "common/queue.h".
7132 (notif_client_p): Remove typedef.
7133 (remote_notif_state): Add constructor, destructor, initializer.
7134 <notif_queue>: Now a std::list.
7135 (remote_notif_state_xfree): Don't declare.
7136 * remote-notif.c (remote_notif_process, handle_notification)
7137 (remote_notif_state_allocate): Update.
7138 (~remote_notif_state): Rename from remote_notif_state_xfree.
7139
7140 2019-04-19 Tom Tromey <tom@tromey.com>
7141
7142 * symfile.c (reread_symbols): Update.
7143 * objfiles.c (objfile_register_static_link)
7144 (objfile_lookup_static_link): Update
7145 (~objfile) Don't delete static_links.
7146 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7147
7148 2019-04-19 Tom Tromey <tom@tromey.com>
7149
7150 * type-stack.h (struct type_stack) <insert>: Constify string.
7151 * type-stack.c (type_stack::insert): Constify string.
7152 * gdbtypes.h (lookup_template_type): Update.
7153 (address_space_name_to_int): Update.
7154 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7155 const.
7156 (lookup_template_type): Make name const.
7157 * c-exp.y: Update rules.
7158 (lex_one_token, classify_name, classify_inner_name)
7159 (c_print_token): Update.
7160 * p-exp.y: Update rules.
7161 (yylex): Update.
7162 * f-exp.y: Update rules.
7163 (yylex): Update.
7164 * d-exp.y: Update rules.
7165 (lex_one_token, classify_name, classify_inner_name): Update.
7166 * parse.c (write_dollar_variable, copy_name): Return std::string.
7167 * parser-defs.h (copy_name): Change return type.
7168 * m2-exp.y: Update rules.
7169 (yylex): Update.
7170 * go-exp.y (lex_one_token): Update.
7171 Update rules.
7172 (classify_unsafe_function, classify_packaged_name)
7173 (classify_name, yylex): Update.
7174
7175 2019-04-19 Sergei Trofimovich <siarheit@google.com>
7176
7177 * configure.ac: add --enable-source-highlight switch.
7178 * configure: Regenerate.
7179 * top.c (print_gdb_version): plumb --enable-source-highlight
7180 status to "show configuration".
7181
7182 2019-04-19 Tom Tromey <tromey@adacore.com>
7183
7184 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7185 Check ADA_TYPE_P.
7186 (empty_record, ada_template_to_fixed_record_type_1)
7187 (template_to_static_fixed_type)
7188 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7189 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7190 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7191 macros.
7192
7193 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7194
7195 PR symtab/24423:
7196 * source.c (print_source_lines_base): Advance "iter" when a
7197 control character is seen.
7198
7199 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7200
7201 * inferior.h (struct infcall_suspend_state_deleter):
7202 Catch exception in destructor to avoid crash.
7203
7204 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7205
7206 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7207 close to the add_com "shell".
7208
7209 2019-04-18 Tom Tromey <tromey@adacore.com>
7210
7211 * process-stratum-target.h (class process_stratum_target)
7212 <stratum>: Add "final".
7213
7214 2019-04-17 Tom Tromey <tromey@adacore.com>
7215
7216 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7217 against nullptr before use.
7218
7219 2019-04-17 Alan Hayward <alan.hayward@arm.com>
7220
7221 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7222
7223 2019-04-17 Jim Wilson <jimw@sifive.com>
7224 Andrew Burgess <andrew.burgess@embecosm.com>
7225
7226 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7227 code read might fail, assume 4-byte breakpoint in that case.
7228
7229 2019-04-15 Leszek Swirski <leszeks@google.com>
7230
7231 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7232 rather than a hand-rolled POD check when checking for forced MEMORY
7233 classification.
7234
7235 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7236
7237 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7238 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7239 function.
7240 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7241 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7242 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7243 declaration.
7244
7245 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7246
7247 * aarch64-linux-nat.c
7248 (aarch64_linux_nat_target::thread_architecture): Add override.
7249 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7250 each VQ.
7251
7252 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7253
7254 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7255
7256 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7257
7258 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7259 target types of size 96-bits, add some additional comments, and
7260 check that the builtin type we found was the correct size.
7261
7262 2019-04-12 Eli Zaretskii <eliz@gnu.org>
7263
7264 * utils.c (prompt_for_continue): Don't restore the styling at the
7265 end, as applied_style has the wrong value. This fixes styling in
7266 long lists of file names that are interrupted by the "Continue?"
7267 prompt.
7268
7269 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7270
7271 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7272 * c-lang.c (c_language_defn): Likewise.
7273 (cplus_language_defn): Likewise.
7274 (asm_language_defn): Likewise.
7275 (minimal_language_defn): Likewise.
7276 * d-lang.c (d_language_defn): Likewise.
7277 * f-lang.c (f_language_defn): Likewise.
7278 * go-lang.c (go_language_defn): Likewise.
7279 * language.c (unknown_language_defn): Likewise.
7280 (auto_language_defn): Likewise.
7281 * language.h (struct language_defn): Remove la_magic field.
7282 (LANG_MAGIC): Delete.
7283 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7284 * objc-lang.c (objc_language_defn): Likewise.
7285 * opencl-lang.c (opencl_language_defn): Likewise.
7286 * p-lang.c (pascal_language_defn): Likewise.
7287 * rust-lang.c (rust_language_defn): Likewise.
7288
7289 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7290
7291 * riscv-tdep.c (riscv_type_align): New function.
7292 (riscv_type_alignment): Delete.
7293 (riscv_arg_location): Use 'type_align'.
7294 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7295
7296 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7297
7298 * gdbtypes.c (type_align): A struct with no non-static fields also
7299 has alignment of 1.
7300
7301 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7302
7303 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7304 component to 0.
7305 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7306 member.
7307 (riscv_struct_info::analyse): New implementation using new
7308 analyse_inner member function.
7309 (riscv_struct_info::field_offset): New member function.
7310 (riscv_struct_info::m_offsets): New member variable.
7311 (riscv_struct_info::analyse_inner): New private member function,
7312 takes the old implementation of riscv_struct_info::analyse but
7313 extended to track field offsets.
7314 (riscv_call_arg_struct): Update the struct folding special cases
7315 to handle cases where empty C++ structs, which are non-zero
7316 length, are found.
7317 (riscv_arg_location): Initialise the length of each location, a
7318 non-zero length now indicates the location is in use.
7319 (riscv_push_dummy_call): Allow for the first location having a
7320 non-zero offset when setting up arguments.
7321 (riscv_return_value): Likewise, but for return values.
7322
7323 2019-04-11 Tom Tromey <tromey@adacore.com>
7324
7325 * utils.c (internal_vproblem): Make "msg" const.
7326
7327 2019-04-11 Alan Hayward <alan.hayward@arm.com>
7328
7329 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7330 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7331 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7332 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7333
7334 2019-04-10 Kevin Buettner <kevinb@redhat.com>
7335
7336 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7337 function.
7338 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7339 of amd64_collect_native_gregset.
7340 (amd64_linux_nat_target::store_registers): Likewise.
7341
7342 2019-04-10 Tom Tromey <tom@tromey.com>
7343
7344 * symtab.c (lookup_global_symbol_from_objfile)
7345 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7346 * objfiles.h (class separate_debug_iterator): New.
7347 (class separate_debug_range): New.
7348 (struct objfile) <separate_debug_objfiles>: New method.
7349 (objfile_separate_debug_iterate): Don't declare.
7350 * objfiles.c (separate_debug_iterator::operator++): Rename from
7351 objfile_separate_debug_iterate.
7352 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7353 iterator.
7354 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7355 iterator.
7356
7357 2019-04-10 Tom Tromey <tom@tromey.com>
7358
7359 * symfile.c (reread_symbols): Remove old comment.
7360 * objfiles.c (free_all_objfiles): Fix a typo.
7361
7362 2019-04-10 Tom Tromey <tom@tromey.com>
7363
7364 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7365 * minsyms.c (lookup_minimal_symbol): Use foreach.
7366 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7367 (lookup_minimal_symbol_solib_trampoline): Likewise.
7368 * symfile.c (reread_symbols): Use foreach.
7369
7370 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
7371 Tom Tromey <tromey@adacore.com>
7372
7373 PR rust/24414:
7374 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7375 (rust_lex_int_test): Change "value" to be LONGEST.
7376 (rust_lex_tests): Add test for long integer literal.
7377
7378 2019-04-09 Tom Tromey <tromey@adacore.com>
7379
7380 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7381 to bool.
7382 (extended_remote_target::attach): Update.
7383 (remote_target::remote_notice_new_inferior): Update.
7384 (remote_target::add_current_inferior_and_thread): Update.
7385 * inferior.c (exit_inferior_1): Use "false".
7386 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7387
7388 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
7389
7390 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
7391 the "start" command.
7392
7393 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7394
7395 * python/py-inferior.c (infpy_thread_from_thread_handle):
7396 Adjust comments to reflect renaming of thread_from_thread_handle
7397 to thread_from_handle. Adjust keywords. Fix type error message.
7398 (inferior_object_methods): Add thread_from_handle. Retain
7399 thread_from_thread_handle, but mark it as deprecated.
7400
7401 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7402
7403 * gdbthread.h (find_thread_by_handle): Revise declaration.
7404 * thread.c (find_thread_by_handle): Likewise. Adjust
7405 implementation too.
7406 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7407 support for buffer objects as handles.
7408
7409 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7410
7411 * python/py-infthread.c (thpy_thread_handle): New function.
7412 (thread_object_methods): Register thpy_thread_handle.
7413
7414 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7415
7416 * gdbthread.h (thread_to_thread_handle): Declare.
7417 * thread.c (gdbtypes.h): Include.
7418 (thread_to_thread_handle): New function.
7419
7420 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7421 (target_thread_info_to_thread_handle): Declare.
7422 * target.c (target_thread_info_to_thread_handle): New function.
7423 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7424 * target-delegates.c: Regenerate.
7425
7426 * linux-thread-db.c (class thread_db_target): Add method
7427 thread_info_to_thread_handle.
7428 (thread_db_target::thread_info_to_thread_handle): Define.
7429 * remote.c (class remote_target): Add new method
7430 thread_info_to_thread_handle.
7431 (remote_target::thread_info_to_thread_handle): Define.
7432
7433 2019-04-08 Pedro Alves <palves@redhat.com>
7434
7435 * common/common-exceptions.c (throw_exception): Don't create
7436 named object to throw; throw directly.
7437 (throw_it): Likewise. Don't initialize gdb_exception::message
7438 here, with new; pass FMT and AP to the ctor instead.
7439 * common/common-exceptions.h: Include <string>.
7440 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7441 const char *, va_list)): New ctor. Use std::make_shared.
7442 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7443 errors)): Delete.
7444 (gdb_exception_error::gdb_exception_error(enum errors, const char
7445 *, va_list)): New.
7446 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7447 Add assertion.
7448 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7449 errors)): Delete.
7450 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7451 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7452 Add assertion.
7453
7454 2019-04-08 Tom Tromey <tom@tromey.com>
7455
7456 * valops.c (value_rtti_indirect_type): Replace throw_exception
7457 with throw.
7458 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7459 with throw.
7460 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7461 throw.
7462 * target.c (target_translate_tls_address): Replace throw_exception
7463 with throw.
7464 * stack.c (frame_apply_command_count): Replace throw_exception
7465 with throw.
7466 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7467 throw.
7468 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7469 with throw.
7470 * rs6000-tdep.c (rs6000_frame_cache)
7471 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7472 * remote.c: Replace throw_exception with throw.
7473 * record-full.c (record_full_message, record_full_wait_1)
7474 (record_full_restore): Replace throw_exception with throw.
7475 * record-btrace.c:
7476 (get_thread_current_frame_id, record_btrace_start_replaying)
7477 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7478 (cmd_record_btrace_start): Replace throw_exception with throw.
7479 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7480 throw.
7481 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7482 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7483 * linespec.c:
7484 (find_linespec_symbols): Replace throw_exception with throw.
7485 * infrun.c (displaced_step_prepare, resume): Replace
7486 throw_exception with throw.
7487 * infcmd.c (post_create_inferior): Replace throw_exception with
7488 throw.
7489 * inf-loop.c (inferior_event_handler): Replace throw_exception
7490 with throw.
7491 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7492 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7493 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7494 (get_prev_frame_always, get_frame_pc_if_available)
7495 (get_frame_address_in_block_if_available, get_frame_language):
7496 Replace throw_exception with throw.
7497 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7498 throw_exception with throw.
7499 * eval.c (fetch_subexp_value, evaluate_var_value)
7500 (evaluate_funcall, evaluate_subexp_standard): Replace
7501 throw_exception with throw.
7502 * dwarf2loc.c (call_site_find_chain)
7503 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7504 Replace throw_exception with throw.
7505 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7506 with throw.
7507 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7508 throw.
7509 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7510 * completer.c (complete_line_internal): Replace throw_exception
7511 with throw.
7512 * compile/compile-object-run.c (compile_object_run): Replace
7513 throw_exception with throw.
7514 * cli/cli-script.c (process_next_line): Replace throw_exception
7515 with throw.
7516 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7517 (btrace_enable, btrace_maint_update_pt_packets): Replace
7518 throw_exception with throw.
7519 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7520 throw_exception with throw.
7521 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7522 throw_exception with throw.
7523 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7524 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7525 * aarch64-tdep.c (aarch64_make_prologue_cache)
7526 (aarch64_make_stub_cache): Replace throw_exception with throw.
7527
7528 2019-04-08 Tom Tromey <tom@tromey.com>
7529
7530 * common/common-exceptions.c (throw_exception): Rename from
7531 throw_exception_cxx. Remove old copy. Make argument const.
7532 (throw_it): Create and throw exception objects directly.
7533 * common/common-exceptions.h (throw_exception): Make argument
7534 const.
7535 (struct gdb_exception_error): Add constructor.
7536 (struct gdb_exception_quit): Add constructor.
7537
7538 2019-04-08 Tom Tromey <tom@tromey.com>
7539
7540 * common/common-exceptions.h (exception_rethrow): Don't declare.
7541 (TRY_SJLJ): Update comment.
7542 (TRY, CATCH, END_CATCH): Remove.
7543 * common/common-exceptions.c (exception_rethrow): Remove.
7544
7545 2019-04-08 Tom Tromey <tom@tromey.com>
7546
7547 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7548 Remove.
7549 (gdb_exception_error): Rename from
7550 gdb_exception_RETURN_MASK_ERROR.
7551 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7552 (gdb_quit_bad_alloc): Update.
7553 * aarch64-tdep.c: Update.
7554 * ada-lang.c: Update.
7555 * ada-typeprint.c: Update.
7556 * ada-valprint.c: Update.
7557 * amd64-tdep.c: Update.
7558 * arch-utils.c: Update.
7559 * break-catch-throw.c: Update.
7560 * breakpoint.c: Update.
7561 * btrace.c: Update.
7562 * c-varobj.c: Update.
7563 * cli/cli-cmds.c: Update.
7564 * cli/cli-interp.c: Update.
7565 * cli/cli-script.c: Update.
7566 * common/common-exceptions.c: Update.
7567 * common/new-op.c: Update.
7568 * common/selftest.c: Update.
7569 * compile/compile-c-symbols.c: Update.
7570 * compile/compile-cplus-symbols.c: Update.
7571 * compile/compile-object-load.c: Update.
7572 * compile/compile-object-run.c: Update.
7573 * completer.c: Update.
7574 * corelow.c: Update.
7575 * cp-abi.c: Update.
7576 * cp-support.c: Update.
7577 * cp-valprint.c: Update.
7578 * darwin-nat.c: Update.
7579 * disasm-selftests.c: Update.
7580 * dtrace-probe.c: Update.
7581 * dwarf-index-cache.c: Update.
7582 * dwarf-index-write.c: Update.
7583 * dwarf2-frame-tailcall.c: Update.
7584 * dwarf2-frame.c: Update.
7585 * dwarf2loc.c: Update.
7586 * dwarf2read.c: Update.
7587 * eval.c: Update.
7588 * event-loop.c: Update.
7589 * event-top.c: Update.
7590 * exec.c: Update.
7591 * f-valprint.c: Update.
7592 * fbsd-tdep.c: Update.
7593 * frame-unwind.c: Update.
7594 * frame.c: Update.
7595 * gdbtypes.c: Update.
7596 * gnu-v3-abi.c: Update.
7597 * guile/guile-internal.h: Update.
7598 * guile/scm-block.c: Update.
7599 * guile/scm-breakpoint.c: Update.
7600 * guile/scm-cmd.c: Update.
7601 * guile/scm-disasm.c: Update.
7602 * guile/scm-frame.c: Update.
7603 * guile/scm-lazy-string.c: Update.
7604 * guile/scm-math.c: Update.
7605 * guile/scm-param.c: Update.
7606 * guile/scm-ports.c: Update.
7607 * guile/scm-pretty-print.c: Update.
7608 * guile/scm-symbol.c: Update.
7609 * guile/scm-symtab.c: Update.
7610 * guile/scm-type.c: Update.
7611 * guile/scm-value.c: Update.
7612 * i386-linux-tdep.c: Update.
7613 * i386-tdep.c: Update.
7614 * inf-loop.c: Update.
7615 * infcall.c: Update.
7616 * infcmd.c: Update.
7617 * infrun.c: Update.
7618 * jit.c: Update.
7619 * language.c: Update.
7620 * linespec.c: Update.
7621 * linux-fork.c: Update.
7622 * linux-nat.c: Update.
7623 * linux-tdep.c: Update.
7624 * linux-thread-db.c: Update.
7625 * main.c: Update.
7626 * mi/mi-cmd-break.c: Update.
7627 * mi/mi-cmd-stack.c: Update.
7628 * mi/mi-interp.c: Update.
7629 * mi/mi-main.c: Update.
7630 * objc-lang.c: Update.
7631 * p-valprint.c: Update.
7632 * parse.c: Update.
7633 * ppc-linux-tdep.c: Update.
7634 * printcmd.c: Update.
7635 * python/py-arch.c: Update.
7636 * python/py-breakpoint.c: Update.
7637 * python/py-cmd.c: Update.
7638 * python/py-finishbreakpoint.c: Update.
7639 * python/py-frame.c: Update.
7640 * python/py-framefilter.c: Update.
7641 * python/py-gdb-readline.c: Update.
7642 * python/py-inferior.c: Update.
7643 * python/py-infthread.c: Update.
7644 * python/py-lazy-string.c: Update.
7645 * python/py-linetable.c: Update.
7646 * python/py-objfile.c: Update.
7647 * python/py-param.c: Update.
7648 * python/py-prettyprint.c: Update.
7649 * python/py-progspace.c: Update.
7650 * python/py-record-btrace.c: Update.
7651 * python/py-record.c: Update.
7652 * python/py-symbol.c: Update.
7653 * python/py-type.c: Update.
7654 * python/py-unwind.c: Update.
7655 * python/py-utils.c: Update.
7656 * python/py-value.c: Update.
7657 * python/python.c: Update.
7658 * record-btrace.c: Update.
7659 * record-full.c: Update.
7660 * remote-fileio.c: Update.
7661 * remote.c: Update.
7662 * riscv-tdep.c: Update.
7663 * rs6000-aix-tdep.c: Update.
7664 * rs6000-tdep.c: Update.
7665 * rust-exp.y: Update.
7666 * rust-lang.c: Update.
7667 * s390-tdep.c: Update.
7668 * selftest-arch.c: Update.
7669 * solib-dsbt.c: Update.
7670 * solib-frv.c: Update.
7671 * solib-spu.c: Update.
7672 * solib-svr4.c: Update.
7673 * solib.c: Update.
7674 * sparc64-linux-tdep.c: Update.
7675 * stack.c: Update.
7676 * symfile-mem.c: Update.
7677 * symmisc.c: Update.
7678 * target.c: Update.
7679 * thread.c: Update.
7680 * top.c: Update.
7681 * tracefile-tfile.c: Update.
7682 * tui/tui.c: Update.
7683 * typeprint.c: Update.
7684 * unittests/cli-utils-selftests.c: Update.
7685 * unittests/parse-connection-spec-selftests.c: Update.
7686 * valops.c: Update.
7687 * valprint.c: Update.
7688 * value.c: Update.
7689 * varobj.c: Update.
7690 * windows-nat.c: Update.
7691 * x86-linux-nat.c: Update.
7692 * xml-support.c: Update.
7693
7694 2019-04-08 Tom Tromey <tom@tromey.com>
7695
7696 * xml-support.c: Use C++ exception handling.
7697 * x86-linux-nat.c: Use C++ exception handling.
7698 * windows-nat.c: Use C++ exception handling.
7699 * varobj.c: Use C++ exception handling.
7700 * value.c: Use C++ exception handling.
7701 * valprint.c: Use C++ exception handling.
7702 * valops.c: Use C++ exception handling.
7703 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7704 handling.
7705 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7706 * typeprint.c: Use C++ exception handling.
7707 * tui/tui.c: Use C++ exception handling.
7708 * tracefile-tfile.c: Use C++ exception handling.
7709 * top.c: Use C++ exception handling.
7710 * thread.c: Use C++ exception handling.
7711 * target.c: Use C++ exception handling.
7712 * symmisc.c: Use C++ exception handling.
7713 * symfile-mem.c: Use C++ exception handling.
7714 * stack.c: Use C++ exception handling.
7715 * sparc64-linux-tdep.c: Use C++ exception handling.
7716 * solib.c: Use C++ exception handling.
7717 * solib-svr4.c: Use C++ exception handling.
7718 * solib-spu.c: Use C++ exception handling.
7719 * solib-frv.c: Use C++ exception handling.
7720 * solib-dsbt.c: Use C++ exception handling.
7721 * selftest-arch.c: Use C++ exception handling.
7722 * s390-tdep.c: Use C++ exception handling.
7723 * rust-lang.c: Use C++ exception handling.
7724 * rust-exp.y: Use C++ exception handling.
7725 * rs6000-tdep.c: Use C++ exception handling.
7726 * rs6000-aix-tdep.c: Use C++ exception handling.
7727 * riscv-tdep.c: Use C++ exception handling.
7728 * remote.c: Use C++ exception handling.
7729 * remote-fileio.c: Use C++ exception handling.
7730 * record-full.c: Use C++ exception handling.
7731 * record-btrace.c: Use C++ exception handling.
7732 * python/python.c: Use C++ exception handling.
7733 * python/py-value.c: Use C++ exception handling.
7734 * python/py-utils.c: Use C++ exception handling.
7735 * python/py-unwind.c: Use C++ exception handling.
7736 * python/py-type.c: Use C++ exception handling.
7737 * python/py-symbol.c: Use C++ exception handling.
7738 * python/py-record.c: Use C++ exception handling.
7739 * python/py-record-btrace.c: Use C++ exception handling.
7740 * python/py-progspace.c: Use C++ exception handling.
7741 * python/py-prettyprint.c: Use C++ exception handling.
7742 * python/py-param.c: Use C++ exception handling.
7743 * python/py-objfile.c: Use C++ exception handling.
7744 * python/py-linetable.c: Use C++ exception handling.
7745 * python/py-lazy-string.c: Use C++ exception handling.
7746 * python/py-infthread.c: Use C++ exception handling.
7747 * python/py-inferior.c: Use C++ exception handling.
7748 * python/py-gdb-readline.c: Use C++ exception handling.
7749 * python/py-framefilter.c: Use C++ exception handling.
7750 * python/py-frame.c: Use C++ exception handling.
7751 * python/py-finishbreakpoint.c: Use C++ exception handling.
7752 * python/py-cmd.c: Use C++ exception handling.
7753 * python/py-breakpoint.c: Use C++ exception handling.
7754 * python/py-arch.c: Use C++ exception handling.
7755 * printcmd.c: Use C++ exception handling.
7756 * ppc-linux-tdep.c: Use C++ exception handling.
7757 * parse.c: Use C++ exception handling.
7758 * p-valprint.c: Use C++ exception handling.
7759 * objc-lang.c: Use C++ exception handling.
7760 * mi/mi-main.c: Use C++ exception handling.
7761 * mi/mi-interp.c: Use C++ exception handling.
7762 * mi/mi-cmd-stack.c: Use C++ exception handling.
7763 * mi/mi-cmd-break.c: Use C++ exception handling.
7764 * main.c: Use C++ exception handling.
7765 * linux-thread-db.c: Use C++ exception handling.
7766 * linux-tdep.c: Use C++ exception handling.
7767 * linux-nat.c: Use C++ exception handling.
7768 * linux-fork.c: Use C++ exception handling.
7769 * linespec.c: Use C++ exception handling.
7770 * language.c: Use C++ exception handling.
7771 * jit.c: Use C++ exception handling.
7772 * infrun.c: Use C++ exception handling.
7773 * infcmd.c: Use C++ exception handling.
7774 * infcall.c: Use C++ exception handling.
7775 * inf-loop.c: Use C++ exception handling.
7776 * i386-tdep.c: Use C++ exception handling.
7777 * i386-linux-tdep.c: Use C++ exception handling.
7778 * guile/scm-value.c: Use C++ exception handling.
7779 * guile/scm-type.c: Use C++ exception handling.
7780 * guile/scm-symtab.c: Use C++ exception handling.
7781 * guile/scm-symbol.c: Use C++ exception handling.
7782 * guile/scm-pretty-print.c: Use C++ exception handling.
7783 * guile/scm-ports.c: Use C++ exception handling.
7784 * guile/scm-param.c: Use C++ exception handling.
7785 * guile/scm-math.c: Use C++ exception handling.
7786 * guile/scm-lazy-string.c: Use C++ exception handling.
7787 * guile/scm-frame.c: Use C++ exception handling.
7788 * guile/scm-disasm.c: Use C++ exception handling.
7789 * guile/scm-cmd.c: Use C++ exception handling.
7790 * guile/scm-breakpoint.c: Use C++ exception handling.
7791 * guile/scm-block.c: Use C++ exception handling.
7792 * guile/guile-internal.h: Use C++ exception handling.
7793 * gnu-v3-abi.c: Use C++ exception handling.
7794 * gdbtypes.c: Use C++ exception handling.
7795 * frame.c: Use C++ exception handling.
7796 * frame-unwind.c: Use C++ exception handling.
7797 * fbsd-tdep.c: Use C++ exception handling.
7798 * f-valprint.c: Use C++ exception handling.
7799 * exec.c: Use C++ exception handling.
7800 * event-top.c: Use C++ exception handling.
7801 * event-loop.c: Use C++ exception handling.
7802 * eval.c: Use C++ exception handling.
7803 * dwarf2read.c: Use C++ exception handling.
7804 * dwarf2loc.c: Use C++ exception handling.
7805 * dwarf2-frame.c: Use C++ exception handling.
7806 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7807 * dwarf-index-write.c: Use C++ exception handling.
7808 * dwarf-index-cache.c: Use C++ exception handling.
7809 * dtrace-probe.c: Use C++ exception handling.
7810 * disasm-selftests.c: Use C++ exception handling.
7811 * darwin-nat.c: Use C++ exception handling.
7812 * cp-valprint.c: Use C++ exception handling.
7813 * cp-support.c: Use C++ exception handling.
7814 * cp-abi.c: Use C++ exception handling.
7815 * corelow.c: Use C++ exception handling.
7816 * completer.c: Use C++ exception handling.
7817 * compile/compile-object-run.c: Use C++ exception handling.
7818 * compile/compile-object-load.c: Use C++ exception handling.
7819 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7820 * compile/compile-c-symbols.c: Use C++ exception handling.
7821 * common/selftest.c: Use C++ exception handling.
7822 * common/new-op.c: Use C++ exception handling.
7823 * cli/cli-script.c: Use C++ exception handling.
7824 * cli/cli-interp.c: Use C++ exception handling.
7825 * cli/cli-cmds.c: Use C++ exception handling.
7826 * c-varobj.c: Use C++ exception handling.
7827 * btrace.c: Use C++ exception handling.
7828 * breakpoint.c: Use C++ exception handling.
7829 * break-catch-throw.c: Use C++ exception handling.
7830 * arch-utils.c: Use C++ exception handling.
7831 * amd64-tdep.c: Use C++ exception handling.
7832 * ada-valprint.c: Use C++ exception handling.
7833 * ada-typeprint.c: Use C++ exception handling.
7834 * ada-lang.c: Use C++ exception handling.
7835 * aarch64-tdep.c: Use C++ exception handling.
7836
7837 2019-04-08 Tom Tromey <tom@tromey.com>
7838
7839 * xml-support.c (gdb_xml_parser::parse): Update.
7840 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7841 * value.c (show_convenience): Update.
7842 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7843 (test_parse_flags_qcs): Update.
7844 * thread.c (thr_try_catch_cmd): Update.
7845 * target.c (target_translate_tls_address): Update.
7846 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7847 (info_frame_command_core, frame_apply_command_count): Update.
7848 * rust-exp.y (rust_lex_exception_test): Update.
7849 * riscv-tdep.c (riscv_print_one_register_info): Update.
7850 * remote.c (remote_target::enable_btrace): Update.
7851 * record-btrace.c (record_btrace_enable_warn): Update.
7852 * python/py-utils.c (gdbpy_convert_exception): Update.
7853 * printcmd.c (do_one_display, print_variable_and_value): Update.
7854 * mi/mi-main.c (mi_print_exception): Update.
7855 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7856 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7857 * linux-nat.c (linux_nat_target::attach): Update.
7858 * linux-fork.c (class scoped_switch_fork_info): Update.
7859 * infrun.c (displaced_step_prepare): Update.
7860 * infcall.c (call_function_by_hand_dummy): Update.
7861 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7862 * gnu-v3-abi.c (print_one_vtable): Update.
7863 * frame.c (get_prev_frame_always): Update.
7864 * f-valprint.c (info_common_command_for_block): Update.
7865 * exec.c (try_open_exec_file): Update.
7866 * exceptions.c (print_exception, exception_print)
7867 (exception_fprintf, exception_print_same): Update.
7868 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7869 * dwarf-index-cache.c (index_cache::store)
7870 (index_cache::lookup_gdb_index): Update.
7871 * darwin-nat.c (maybe_cache_shell): Update.
7872 * cp-valprint.c (cp_print_value_fields): Update.
7873 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7874 (gcc_cplus_symbol_address): Update.
7875 * compile/compile-c-symbols.c (gcc_convert_symbol)
7876 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7877 * common/selftest.c: Update.
7878 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7879 a std::string.
7880 (exception_try_scope_entry, exception_try_scope_exit): Don't
7881 declare.
7882 (struct exception_try_scope): Remove.
7883 (TRY): Don't use exception_try_scope.
7884 (struct gdb_exception): Add constructor, operator=.
7885 <what>: New method.
7886 (struct gdb_exception_RETURN_MASK_ALL)
7887 (struct gdb_exception_RETURN_MASK_ERROR)
7888 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7889 (struct gdb_quit_bad_alloc): Update.
7890 * common/common-exceptions.c (exception_none): Change
7891 initializer.
7892 (struct catcher) <state, exception>: Initialize inline.
7893 <prev>: Remove member.
7894 (current_catcher): Remove.
7895 (catchers): New global.
7896 (exceptions_state_mc_init): Simplify.
7897 (catcher_pop): Remove.
7898 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7899 (try_scope_depth, exception_try_scope_entry)
7900 (exception_try_scope_exit): Remove.
7901 (throw_exception_sjlj): Update.
7902 (exception_messages, exception_messages_size): Remove.
7903 (throw_it): Simplify.
7904 (gdb_exception_sliced_copy): Remove.
7905 (throw_exception_cxx): Update.
7906 * cli/cli-script.c (script_from_file): Update.
7907 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7908 Update.
7909 * ada-valprint.c (ada_val_print): Update.
7910 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7911 (create_excep_cond_exprs): Update.
7912
7913 2019-04-08 Tom Tromey <tom@tromey.com>
7914
7915 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7916 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7917 (TRY, CATCH, END_CATCH): Remove some definitions.
7918 * common/common-exceptions.c: Don't use GDB_XCPT.
7919 (catcher_list_size): Remove.
7920 (throw_exception, throw_it): Simplify.
7921
7922 2019-04-05 Tom Tromey <tom@tromey.com>
7923
7924 Revert the header-sorting patch.
7925 * ft32-tdep.c: Revert.
7926 * frv-tdep.c: Revert.
7927 * frv-linux-tdep.c: Revert.
7928 * frame.c: Revert.
7929 * frame-unwind.c: Revert.
7930 * frame-base.c: Revert.
7931 * fork-child.c: Revert.
7932 * findvar.c: Revert.
7933 * findcmd.c: Revert.
7934 * filesystem.c: Revert.
7935 * filename-seen-cache.h: Revert.
7936 * filename-seen-cache.c: Revert.
7937 * fbsd-tdep.c: Revert.
7938 * fbsd-nat.h: Revert.
7939 * fbsd-nat.c: Revert.
7940 * f-valprint.c: Revert.
7941 * f-typeprint.c: Revert.
7942 * f-lang.c: Revert.
7943 * extension.h: Revert.
7944 * extension.c: Revert.
7945 * extension-priv.h: Revert.
7946 * expprint.c: Revert.
7947 * exec.h: Revert.
7948 * exec.c: Revert.
7949 * exceptions.c: Revert.
7950 * event-top.c: Revert.
7951 * event-loop.c: Revert.
7952 * eval.c: Revert.
7953 * elfread.c: Revert.
7954 * dwarf2read.h: Revert.
7955 * dwarf2read.c: Revert.
7956 * dwarf2loc.c: Revert.
7957 * dwarf2expr.h: Revert.
7958 * dwarf2expr.c: Revert.
7959 * dwarf2-frame.c: Revert.
7960 * dwarf2-frame-tailcall.c: Revert.
7961 * dwarf-index-write.h: Revert.
7962 * dwarf-index-write.c: Revert.
7963 * dwarf-index-common.c: Revert.
7964 * dwarf-index-cache.h: Revert.
7965 * dwarf-index-cache.c: Revert.
7966 * dummy-frame.c: Revert.
7967 * dtrace-probe.c: Revert.
7968 * disasm.h: Revert.
7969 * disasm.c: Revert.
7970 * disasm-selftests.c: Revert.
7971 * dictionary.c: Revert.
7972 * dicos-tdep.c: Revert.
7973 * demangle.c: Revert.
7974 * dcache.h: Revert.
7975 * dcache.c: Revert.
7976 * darwin-nat.h: Revert.
7977 * darwin-nat.c: Revert.
7978 * darwin-nat-info.c: Revert.
7979 * d-valprint.c: Revert.
7980 * d-namespace.c: Revert.
7981 * d-lang.c: Revert.
7982 * ctf.c: Revert.
7983 * csky-tdep.c: Revert.
7984 * csky-linux-tdep.c: Revert.
7985 * cris-tdep.c: Revert.
7986 * cris-linux-tdep.c: Revert.
7987 * cp-valprint.c: Revert.
7988 * cp-support.c: Revert.
7989 * cp-namespace.c: Revert.
7990 * cp-abi.c: Revert.
7991 * corelow.c: Revert.
7992 * corefile.c: Revert.
7993 * continuations.c: Revert.
7994 * completer.h: Revert.
7995 * completer.c: Revert.
7996 * complaints.c: Revert.
7997 * coffread.c: Revert.
7998 * coff-pe-read.c: Revert.
7999 * cli-out.h: Revert.
8000 * cli-out.c: Revert.
8001 * charset.c: Revert.
8002 * c-varobj.c: Revert.
8003 * c-valprint.c: Revert.
8004 * c-typeprint.c: Revert.
8005 * c-lang.c: Revert.
8006 * buildsym.c: Revert.
8007 * buildsym-legacy.c: Revert.
8008 * build-id.h: Revert.
8009 * build-id.c: Revert.
8010 * btrace.c: Revert.
8011 * bsd-uthread.c: Revert.
8012 * breakpoint.h: Revert.
8013 * breakpoint.c: Revert.
8014 * break-catch-throw.c: Revert.
8015 * break-catch-syscall.c: Revert.
8016 * break-catch-sig.c: Revert.
8017 * blockframe.c: Revert.
8018 * block.c: Revert.
8019 * bfin-tdep.c: Revert.
8020 * bfin-linux-tdep.c: Revert.
8021 * bfd-target.c: Revert.
8022 * bcache.c: Revert.
8023 * ax-general.c: Revert.
8024 * ax-gdb.h: Revert.
8025 * ax-gdb.c: Revert.
8026 * avr-tdep.c: Revert.
8027 * auxv.c: Revert.
8028 * auto-load.c: Revert.
8029 * arm-wince-tdep.c: Revert.
8030 * arm-tdep.c: Revert.
8031 * arm-symbian-tdep.c: Revert.
8032 * arm-pikeos-tdep.c: Revert.
8033 * arm-obsd-tdep.c: Revert.
8034 * arm-nbsd-tdep.c: Revert.
8035 * arm-nbsd-nat.c: Revert.
8036 * arm-linux-tdep.c: Revert.
8037 * arm-linux-nat.c: Revert.
8038 * arm-fbsd-tdep.c: Revert.
8039 * arm-fbsd-nat.c: Revert.
8040 * arm-bsd-tdep.c: Revert.
8041 * arch-utils.c: Revert.
8042 * arc-tdep.c: Revert.
8043 * arc-newlib-tdep.c: Revert.
8044 * annotate.h: Revert.
8045 * annotate.c: Revert.
8046 * amd64-windows-tdep.c: Revert.
8047 * amd64-windows-nat.c: Revert.
8048 * amd64-tdep.c: Revert.
8049 * amd64-sol2-tdep.c: Revert.
8050 * amd64-obsd-tdep.c: Revert.
8051 * amd64-obsd-nat.c: Revert.
8052 * amd64-nbsd-tdep.c: Revert.
8053 * amd64-nbsd-nat.c: Revert.
8054 * amd64-nat.c: Revert.
8055 * amd64-linux-tdep.c: Revert.
8056 * amd64-linux-nat.c: Revert.
8057 * amd64-fbsd-tdep.c: Revert.
8058 * amd64-fbsd-nat.c: Revert.
8059 * amd64-dicos-tdep.c: Revert.
8060 * amd64-darwin-tdep.c: Revert.
8061 * amd64-bsd-nat.c: Revert.
8062 * alpha-tdep.c: Revert.
8063 * alpha-obsd-tdep.c: Revert.
8064 * alpha-nbsd-tdep.c: Revert.
8065 * alpha-mdebug-tdep.c: Revert.
8066 * alpha-linux-tdep.c: Revert.
8067 * alpha-linux-nat.c: Revert.
8068 * alpha-bsd-tdep.c: Revert.
8069 * alpha-bsd-nat.c: Revert.
8070 * aix-thread.c: Revert.
8071 * agent.c: Revert.
8072 * addrmap.c: Revert.
8073 * ada-varobj.c: Revert.
8074 * ada-valprint.c: Revert.
8075 * ada-typeprint.c: Revert.
8076 * ada-tasks.c: Revert.
8077 * ada-lang.c: Revert.
8078 * aarch64-tdep.c: Revert.
8079 * aarch64-ravenscar-thread.c: Revert.
8080 * aarch64-newlib-tdep.c: Revert.
8081 * aarch64-linux-tdep.c: Revert.
8082 * aarch64-linux-nat.c: Revert.
8083 * aarch64-fbsd-tdep.c: Revert.
8084 * aarch64-fbsd-nat.c: Revert.
8085 * aarch32-linux-nat.c: Revert.
8086
8087 2019-04-05 Tom Tromey <tom@tromey.com>
8088
8089 * ft32-tdep.c: Sort headers.
8090 * frv-tdep.c: Sort headers.
8091 * frv-linux-tdep.c: Sort headers.
8092 * frame.c: Sort headers.
8093 * frame-unwind.c: Sort headers.
8094 * frame-base.c: Sort headers.
8095 * fork-child.c: Sort headers.
8096 * findvar.c: Sort headers.
8097 * findcmd.c: Sort headers.
8098 * filesystem.c: Sort headers.
8099 * filename-seen-cache.h: Sort headers.
8100 * filename-seen-cache.c: Sort headers.
8101 * fbsd-tdep.c: Sort headers.
8102 * fbsd-nat.h: Sort headers.
8103 * fbsd-nat.c: Sort headers.
8104 * f-valprint.c: Sort headers.
8105 * f-typeprint.c: Sort headers.
8106 * f-lang.c: Sort headers.
8107 * extension.h: Sort headers.
8108 * extension.c: Sort headers.
8109 * extension-priv.h: Sort headers.
8110 * expprint.c: Sort headers.
8111 * exec.h: Sort headers.
8112 * exec.c: Sort headers.
8113 * exceptions.c: Sort headers.
8114 * event-top.c: Sort headers.
8115 * event-loop.c: Sort headers.
8116 * eval.c: Sort headers.
8117 * elfread.c: Sort headers.
8118 * dwarf2read.h: Sort headers.
8119 * dwarf2read.c: Sort headers.
8120 * dwarf2loc.c: Sort headers.
8121 * dwarf2expr.h: Sort headers.
8122 * dwarf2expr.c: Sort headers.
8123 * dwarf2-frame.c: Sort headers.
8124 * dwarf2-frame-tailcall.c: Sort headers.
8125 * dwarf-index-write.h: Sort headers.
8126 * dwarf-index-write.c: Sort headers.
8127 * dwarf-index-common.c: Sort headers.
8128 * dwarf-index-cache.h: Sort headers.
8129 * dwarf-index-cache.c: Sort headers.
8130 * dummy-frame.c: Sort headers.
8131 * dtrace-probe.c: Sort headers.
8132 * disasm.h: Sort headers.
8133 * disasm.c: Sort headers.
8134 * disasm-selftests.c: Sort headers.
8135 * dictionary.c: Sort headers.
8136 * dicos-tdep.c: Sort headers.
8137 * demangle.c: Sort headers.
8138 * dcache.h: Sort headers.
8139 * dcache.c: Sort headers.
8140 * darwin-nat.h: Sort headers.
8141 * darwin-nat.c: Sort headers.
8142 * darwin-nat-info.c: Sort headers.
8143 * d-valprint.c: Sort headers.
8144 * d-namespace.c: Sort headers.
8145 * d-lang.c: Sort headers.
8146 * ctf.c: Sort headers.
8147 * csky-tdep.c: Sort headers.
8148 * csky-linux-tdep.c: Sort headers.
8149 * cris-tdep.c: Sort headers.
8150 * cris-linux-tdep.c: Sort headers.
8151 * cp-valprint.c: Sort headers.
8152 * cp-support.c: Sort headers.
8153 * cp-namespace.c: Sort headers.
8154 * cp-abi.c: Sort headers.
8155 * corelow.c: Sort headers.
8156 * corefile.c: Sort headers.
8157 * continuations.c: Sort headers.
8158 * completer.h: Sort headers.
8159 * completer.c: Sort headers.
8160 * complaints.c: Sort headers.
8161 * coffread.c: Sort headers.
8162 * coff-pe-read.c: Sort headers.
8163 * cli-out.h: Sort headers.
8164 * cli-out.c: Sort headers.
8165 * charset.c: Sort headers.
8166 * c-varobj.c: Sort headers.
8167 * c-valprint.c: Sort headers.
8168 * c-typeprint.c: Sort headers.
8169 * c-lang.c: Sort headers.
8170 * buildsym.c: Sort headers.
8171 * buildsym-legacy.c: Sort headers.
8172 * build-id.h: Sort headers.
8173 * build-id.c: Sort headers.
8174 * btrace.c: Sort headers.
8175 * bsd-uthread.c: Sort headers.
8176 * breakpoint.h: Sort headers.
8177 * breakpoint.c: Sort headers.
8178 * break-catch-throw.c: Sort headers.
8179 * break-catch-syscall.c: Sort headers.
8180 * break-catch-sig.c: Sort headers.
8181 * blockframe.c: Sort headers.
8182 * block.c: Sort headers.
8183 * bfin-tdep.c: Sort headers.
8184 * bfin-linux-tdep.c: Sort headers.
8185 * bfd-target.c: Sort headers.
8186 * bcache.c: Sort headers.
8187 * ax-general.c: Sort headers.
8188 * ax-gdb.h: Sort headers.
8189 * ax-gdb.c: Sort headers.
8190 * avr-tdep.c: Sort headers.
8191 * auxv.c: Sort headers.
8192 * auto-load.c: Sort headers.
8193 * arm-wince-tdep.c: Sort headers.
8194 * arm-tdep.c: Sort headers.
8195 * arm-symbian-tdep.c: Sort headers.
8196 * arm-pikeos-tdep.c: Sort headers.
8197 * arm-obsd-tdep.c: Sort headers.
8198 * arm-nbsd-tdep.c: Sort headers.
8199 * arm-nbsd-nat.c: Sort headers.
8200 * arm-linux-tdep.c: Sort headers.
8201 * arm-linux-nat.c: Sort headers.
8202 * arm-fbsd-tdep.c: Sort headers.
8203 * arm-fbsd-nat.c: Sort headers.
8204 * arm-bsd-tdep.c: Sort headers.
8205 * arch-utils.c: Sort headers.
8206 * arc-tdep.c: Sort headers.
8207 * arc-newlib-tdep.c: Sort headers.
8208 * annotate.h: Sort headers.
8209 * annotate.c: Sort headers.
8210 * amd64-windows-tdep.c: Sort headers.
8211 * amd64-windows-nat.c: Sort headers.
8212 * amd64-tdep.c: Sort headers.
8213 * amd64-sol2-tdep.c: Sort headers.
8214 * amd64-obsd-tdep.c: Sort headers.
8215 * amd64-obsd-nat.c: Sort headers.
8216 * amd64-nbsd-tdep.c: Sort headers.
8217 * amd64-nbsd-nat.c: Sort headers.
8218 * amd64-nat.c: Sort headers.
8219 * amd64-linux-tdep.c: Sort headers.
8220 * amd64-linux-nat.c: Sort headers.
8221 * amd64-fbsd-tdep.c: Sort headers.
8222 * amd64-fbsd-nat.c: Sort headers.
8223 * amd64-dicos-tdep.c: Sort headers.
8224 * amd64-darwin-tdep.c: Sort headers.
8225 * amd64-bsd-nat.c: Sort headers.
8226 * alpha-tdep.c: Sort headers.
8227 * alpha-obsd-tdep.c: Sort headers.
8228 * alpha-nbsd-tdep.c: Sort headers.
8229 * alpha-mdebug-tdep.c: Sort headers.
8230 * alpha-linux-tdep.c: Sort headers.
8231 * alpha-linux-nat.c: Sort headers.
8232 * alpha-bsd-tdep.c: Sort headers.
8233 * alpha-bsd-nat.c: Sort headers.
8234 * aix-thread.c: Sort headers.
8235 * agent.c: Sort headers.
8236 * addrmap.c: Sort headers.
8237 * ada-varobj.c: Sort headers.
8238 * ada-valprint.c: Sort headers.
8239 * ada-typeprint.c: Sort headers.
8240 * ada-tasks.c: Sort headers.
8241 * ada-lang.c: Sort headers.
8242 * aarch64-tdep.c: Sort headers.
8243 * aarch64-ravenscar-thread.c: Sort headers.
8244 * aarch64-newlib-tdep.c: Sort headers.
8245 * aarch64-linux-tdep.c: Sort headers.
8246 * aarch64-linux-nat.c: Sort headers.
8247 * aarch64-fbsd-tdep.c: Sort headers.
8248 * aarch64-fbsd-nat.c: Sort headers.
8249 * aarch32-linux-nat.c: Sort headers.
8250
8251 2019-04-04 Tom Tromey <tom@tromey.com>
8252
8253 * varobj.c (varobj_create): Update.
8254 * rust-exp.y (struct rust_parser) <update_innermost_block,
8255 lookup_symbol>: New methods.
8256 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8257 Rename.
8258 (rust_parser::rust_lookup_type)
8259 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8260 * printcmd.c (display_command, do_one_display): Update.
8261 * parser-defs.h (struct parser_state) <parser_state>: Add
8262 "tracker" parameter.
8263 (block_tracker): New member.
8264 (class innermost_block_tracker) <innermost_block_tracker>: Add
8265 "types" parameter.
8266 <reset>: Remove method.
8267 (innermost_block): Don't declare.
8268 (null_post_parser): Update.
8269 * parse.c (innermost_block): Remove global.
8270 (write_dollar_variable): Update.
8271 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8272 Remove "tracker_types" parameter.
8273 (parse_expression): Add "tracker" parameter.
8274 (parse_expression_for_completion): Update.
8275 (null_post_parser): Add "tracker" parameter.
8276 * p-exp.y: Update rules.
8277 * m2-exp.y: Update rules.
8278 * language.h (struct language_defn) <la_post_parser>: Add
8279 "tracker" parameter.
8280 * go-exp.y: Update rules.
8281 * f-exp.y: Update rules.
8282 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8283 parameter.
8284 * d-exp.y: Update rules.
8285 * c-exp.y: Update rules.
8286 * breakpoint.c (set_breakpoint_condition): Create an
8287 innermost_block_tracker.
8288 (watch_command_1): Likewise.
8289 * ada-lang.c (resolve): Add "tracker" parameter.
8290 (resolve_subexp): Likewise.
8291 * ada-exp.y (write_var_from_sym): Update.
8292
8293 2019-04-04 Tom Tromey <tom@tromey.com>
8294
8295 * type-stack.h: New file.
8296 * type-stack.c: New file.
8297 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8298 type-stack.h.
8299 (insert_into_type_stack, insert_type, push_type, push_type_int)
8300 (insert_type_address_space, pop_type, pop_type_int)
8301 (pop_typelist, pop_type_stack, append_type_stack)
8302 (push_type_stack, get_type_stack, push_typelist)
8303 (follow_type_instance_flags, follow_types): Don't declare.
8304 * parse.c (type_stack): Remove global.
8305 (parse_exp_in_context): Update.
8306 (insert_into_type_stack, insert_type, push_type, push_type_int)
8307 (insert_type_address_space, pop_type, pop_type_int)
8308 (pop_typelist, pop_type_stack, append_type_stack)
8309 (push_type_stack, get_type_stack, push_typelist)
8310 (follow_type_instance_flags, follow_types): Remove (moved to
8311 type-stack.c).
8312 * f-exp.y (type_stack): New global.
8313 Update rules.
8314 (push_kind_type, f_parse): Update.
8315 * d-exp.y (type_stack): New global.
8316 Update rules.
8317 (d_parse): Update.
8318 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8319 Update rules.
8320 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8321 (HFILES_NO_SRCDIR): Add type-stack.h.
8322
8323 2019-04-04 Tom Tromey <tom@tromey.com>
8324
8325 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8326 (rust_parser::convert_ast_to_expression, rust_parse)
8327 (rust_lex_test_completion, rust_lex_tests): Update.
8328 * parser-defs.h (struct expr_completion_state): New.
8329 (struct parser_state) <parser_state>: Add completion parameter.
8330 <mark_struct_expression, mark_completion_tag>: New methods.
8331 <parse_completion, m_completion_state>: New members.
8332 (prefixify_expression, null_post_parser): Update.
8333 (mark_struct_expression, mark_completion_tag): Don't declare.
8334 * parse.c (parse_completion, expout_last_struct)
8335 (expout_tag_completion_type, expout_completion_name): Remove
8336 globals.
8337 (parser_state::mark_struct_expression)
8338 (parser_state::mark_completion_tag): Now methods.
8339 (prefixify_expression): Add last_struct parameter.
8340 (prefixify_subexp): Likewise.
8341 (parse_exp_1): Update.
8342 (parse_exp_in_context): Add cstate parameter. Update.
8343 (parse_expression_for_completion): Create an
8344 expr_completion_state.
8345 (null_post_parser): Add "completion" parameter.
8346 * p-exp.y: Update rules.
8347 (yylex): Update.
8348 * language.h (struct language_defn) <la_post_parser>: Add
8349 "completing" parameter.
8350 * go-exp.y: Update rules.
8351 (lex_one_token): Update.
8352 * expression.h (parse_completion): Don't declare.
8353 * d-exp.y: Update rules.
8354 (lex_one_token): Update rules.
8355 * c-exp.y: Update rules.
8356 (lex_one_token): Update.
8357 * ada-lang.c (resolve): Add "parse_completion" parameter.
8358 (resolve_subexp): Likewise.
8359 (ada_resolve_function): Likewise.
8360
8361 2019-04-04 Tom Tromey <tom@tromey.com>
8362
8363 * parser-defs.h (struct parser_state) <start_arglist,
8364 end_arglist>: New methods.
8365 <arglist_len, m_funcall_chain>: New members.
8366 (arglist_len, start_arglist, end_arglist): Don't declare.
8367 * parse.c (arglist_len, funcall_chain): Remove global.
8368 (start_arglist, end_arglist): Remove functions.
8369 (parse_exp_in_context): Update.
8370 * p-exp.y: Update rules.
8371 * m2-exp.y: Update rules.
8372 * go-exp.y: Update rules.
8373 * f-exp.y: Update rules.
8374 * d-exp.y: Update rules.
8375 * c-exp.y: Update rules.
8376
8377 2019-04-04 Tom Tromey <tom@tromey.com>
8378
8379 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8380 lex_operator, push_back>: New methods.
8381 Update all rules.
8382 (rust_parser::lex_hex, lex_escape): Rename and update.
8383 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8384 (rust_parser::lex_operator): Rename and update.
8385 (rust_parser::lex_number, rustyylex, rustyyerror)
8386 (rust_lex_test_init, rust_lex_test_sequence)
8387 (rust_lex_test_push_back, rust_lex_tests): Update.
8388 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8389 parameter.
8390 <lexptr, prev_lexptr>: New members.
8391 (lexptr, prev_lexptr): Don't declare.
8392 * parse.c (lexptr, prev_lexptr): Remove globals.
8393 (parse_exp_in_context): Update.
8394 * p-exp.y (yylex, yyerror): Update.
8395 * m2-exp.y (parse_number, yylex, yyerror): Update.
8396 * go-exp.y (lex_one_token, yyerror): Update.
8397 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8398 * d-exp.y (lex_one_token, yyerror): Update.
8399 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8400 (lex_one_token, yyerror): Update.
8401 * ada-lex.l (YY_INPUT): Update.
8402 (rewind_to_char): Update.
8403 * ada-exp.y (yyerror): Update.
8404
8405 2019-04-04 Tom Tromey <tom@tromey.com>
8406
8407 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8408 * parser-defs.h (struct parser_state) <parser_state>: Add new
8409 parameter.
8410 <comma_terminates>: New member.
8411 (comma_terminates): Don't declare global.
8412 * parse.c (comma_terminates): Remove global.
8413 (parse_exp_in_context): Update.
8414 * p-exp.y (yylex): Update.
8415 * m2-exp.y (yylex): Update.
8416 * go-exp.y (lex_one_token): Update.
8417 * f-exp.y (yylex): Update.
8418 * d-exp.y (lex_one_token): Update.
8419 * c-exp.y (lex_one_token): Update.
8420 * ada-lex.l: Update.
8421
8422 2019-04-04 Tom Tromey <tom@tromey.com>
8423
8424 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8425 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8426 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8427 * parser-defs.h (paren_depth): Don't declare.
8428 * parse.c (paren_depth): Remove global.
8429 (parse_exp_in_context): Update.
8430 * p-exp.y (paren_depth): New global.
8431 (pascal_parse): Initialize it.
8432 * m2-exp.y (paren_depth): New global.
8433 (m2_parse): Initialize it.
8434 * go-exp.y (paren_depth): New global.
8435 (go_parse): Initialize it.
8436 * f-exp.y (paren_depth): New global.
8437 (f_parse): Initialize it.
8438 * d-exp.y (paren_depth): New global.
8439 (d_parse): Initialize it.
8440 * c-exp.y (paren_depth): New global.
8441 (c_parse): Initialize it.
8442 * ada-lex.l (paren_depth): New global.
8443 (lexer_init): Initialize it.
8444
8445 2019-04-04 Tom Tromey <tom@tromey.com>
8446
8447 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8448 (rust_parser::convert_ast_to_type)
8449 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8450 * parser-defs.h (struct parser_state) <parser_state>: Add
8451 parameters. Initialize new members.
8452 <expression_context_block, expression_context_pc>: New members.
8453 * parse.c (expression_context_block, expression_context_pc):
8454 Remove globals.
8455 (parse_exp_in_context): Update.
8456 * p-exp.y: Update all rules.
8457 (yylex): Update.
8458 * m2-exp.y: Update all rules.
8459 (yylex): Update.
8460 * go-exp.y (yylex): Update.
8461 * f-exp.y (yylex): Update.
8462 * d-exp.y: Update all rules.
8463 (yylex): Update.
8464 * c-exp.y: Update all rules.
8465 (lex_one_token, classify_name, yylex, c_parse): Update.
8466 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8467
8468 2019-04-04 Tom Tromey <tom@tromey.com>
8469
8470 * gdbarch.h, gdbarch.c: Rebuild.
8471 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8472 * stap-probe.h:
8473 (struct stap_parse_info): Replace "parser_state" with
8474 "expr_builder".
8475 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8476 (parser_state): New class.
8477 * parse.c (expr_builder): Rename.
8478 (expr_builder::release): Rename.
8479 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8480 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8481 (write_exp_elt_longcst, write_exp_elt_floatcst)
8482 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8483 (write_exp_string_vector, write_exp_bitstring)
8484 (write_exp_msymbol, mark_struct_expression)
8485 (write_dollar_variable)
8486 (insert_type_address_space, increase_expout_size): Replace
8487 "parser_state" with "expr_builder".
8488 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8489 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8490 "parser_state" with "expr_builder".
8491
8492 2019-04-04 Tom Tromey <tom@tromey.com>
8493
8494 * rust-exp.y: Replace "parse_language" with method call.
8495 * p-exp.y:
8496 (yylex): Replace "parse_language" with method call.
8497 * m2-exp.y:
8498 (yylex): Replace "parse_language" with method call.
8499 * go-exp.y (classify_name): Replace "parse_language" with method
8500 call.
8501 * f-exp.y (yylex): Replace "parse_language" with method call.
8502 * d-exp.y (lex_one_token): Replace "parse_language" with method
8503 call.
8504 * c-exp.y:
8505 (lex_one_token, classify_name, yylex): Replace "parse_language"
8506 with method call.
8507 * ada-exp.y (find_primitive_type, type_char)
8508 (type_system_address): Replace "parse_language" with method call.
8509
8510 2019-04-04 Tom Tromey <tom@tromey.com>
8511
8512 * rust-exp.y: Replace "parse_gdbarch" with method call.
8513 * parse.c (write_dollar_variable, insert_type_address_space):
8514 Replace "parse_gdbarch" with method call.
8515 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8516 call.
8517 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8518 call.
8519 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8520 "parse_gdbarch" with method call.
8521 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8522 with method call.
8523 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8524 "parse_gdbarch" with method call.
8525 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8526 "parse_gdbarch" with method call.
8527 * c-exp.y (parse_type, parse_number, classify_name): Replace
8528 "parse_gdbarch" with method call.
8529 * ada-lex.l: Replace "parse_gdbarch" with method call.
8530 * ada-exp.y (parse_type, find_primitive_type, type_char)
8531 (type_system_address): Replace "parse_gdbarch" with method call.
8532
8533 2019-04-04 Tom Tromey <tom@tromey.com>
8534
8535 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8536 * stap-probe.c (stap_parse_argument): Update.
8537 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8538 initial_size parameter.
8539 * rust-exp.y (rust_lex_tests): Update.
8540 * parse.c (parser_state): Update.
8541 (parse_exp_in_context): Update.
8542 * parser-defs.h (struct parser_state) <parser_state>: Remove
8543 "initial_size" parameter.
8544
8545 2019-04-04 Tom Tromey <tom@tromey.com>
8546
8547 * parser-defs.h (increase_expout_size): Don't declare.
8548 * parse.c (increase_expout_size): Now static.
8549
8550 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8551
8552 * gnu-nat.c (gnu_nat_target::wait): Fix
8553 target_waitstatus_to_string call.
8554
8555 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8556
8557 * eval.c (evaluate_subexp_standard): Handle internal functions
8558 during Fortran function call handling.
8559
8560 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8561
8562 * NEWS: Mention new internal functions.
8563 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8564 (read_base_type): Use dwarf2_init_complex_target_type.
8565 * value.c (creal_internal_fn): New function.
8566 (cimag_internal_fn): New function.
8567 (_initialize_values): Register new internal functions.
8568
8569 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8570
8571 * infrun.c (stop_all_threads): If debug_infrun, always
8572 trace the wait status after wait_one, using
8573 target_waitstatus_to_string and target_pid_to_str.
8574 (handle_inferior_event): Replace various trace of
8575 wait status kind by a single trace.
8576 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8577 wait status kind image by target_waitstatus_to_string.
8578 * target/waitstatus.c (target_waitstatus_to_string): Fix
8579 obsolete comment.
8580
8581 2019-04-01 Tom Tromey <tromey@adacore.com>
8582
8583 PR symtab/23331:
8584 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8585
8586 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8587 Pedro Alves <palves@redhat.com>
8588
8589 * top.c (quit_force): Call 'finalize_values'.
8590 * value.c (finalize_values): New function.
8591 * value.h (finalize_values): Declare.
8592
8593 2019-03-30 Eli Zaretskii <eliz@gnu.org>
8594
8595 * NEWS: Announce $_gdb_major and $_gdb_minor.
8596
8597 * top.c (init_gdb_version_vars): New function.
8598 (gdb_init): Call init_gdb_version_vars.
8599
8600 2019-03-29 Tom Tromey <tromey@adacore.com>
8601
8602 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8603 help text. Remove dead code.
8604
8605 2019-03-29 Keith Seitz <keiths@redhat.com>
8606
8607 From Siddhesh Poyarekar:
8608 * f-lang.h (f77_get_upperbound): Return LONGEST.
8609 (f77_get_lowerbound): Likewise.
8610 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8611 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8612 print them.
8613 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8614 plongest to format print it.
8615 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8616 (f77_get_upperbound): Likewise.
8617 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8618 LOWER_BOUND to LONGEST.
8619 (f77_create_arrayprint_offset_tbl): Likewise.
8620
8621 2019-03-29 Keith Seitz <keiths@redhat.com>
8622
8623 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8624 %s/pulongest for TYPE_LENGTH instead of %d in format
8625 strings.
8626 * ada-typerint.c (ada_print_type): Likewise.
8627 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8628 * compile/compile-c-support.c (generate_register_struct): Likewise.
8629 * gdbtypes.c (recursive_dump_type): Likewise.
8630 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8631 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8632 instead of %d in format strings.
8633 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8634 to std::min to ULONGEST.
8635 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8636 instead of %d in format strings.
8637 * tracepoint.c (info_scope_command): Likewise.
8638 * typeprint.c (print_offset_data::update)
8639 (print_offset_data::finish): Likewise.
8640 * xtensa-tdep.c (xtensa_store_return_value)
8641 (xtensa_push_dummy_call): Likewise.
8642
8643 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8644
8645 * windows-nat.c (display_selector): Fixed format specifications
8646 for 64-bit Cygwin.
8647
8648 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8649
8650 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8651
8652 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8653
8654 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8655 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8656 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8657 (nios2_linux_init_abi): Install it.
8658
8659 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8660
8661 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8662
8663 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8664
8665 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8666
8667 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8668 Tom Tromey <tromey@adacore.com>
8669
8670 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8671
8672 2019-03-26 Joel Brobecker <brobecker@adacore.com>
8673
8674 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8675 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8676 method to compute the bounds of range types. Also print "[evaluated]"
8677 if the bounds' values come from a dynamic evaluation.
8678
8679 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8680
8681 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8682 whitespace when pretty printing is on.
8683
8684 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8685
8686 * ppc-linux-nat.c: Add include.
8687
8688 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8689
8690 * NEWS: Mention AArch64 Pointer Authentication.
8691
8692 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8693
8694 * arm-linux-nat.c: Add include.
8695
8696 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8697
8698 * source-cache.c (source_cache::get_source_lines): Re-read
8699 fullname after calling open_source_file.
8700
8701 2019-03-25 John Baldwin <jhb@FreeBSD.org>
8702
8703 * NEWS: Mention TLS support for FreeBSD.
8704
8705 2019-03-25 Tom Tromey <tromey@adacore.com>
8706
8707 * minsyms.c (BUNCH_SIZE): Update comment.
8708 (~minimal_symbol_reader): Remove old comment.
8709 (compact_minimal_symbols): Update comment.
8710 (minimal_symbol_reader::install): Remove old comment. Update
8711 other comments.
8712
8713 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8714
8715 * s390-linux-nat.c: Add include.
8716
8717 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8718
8719 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8720 Call linux_get_hwcap.
8721 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8722 Likewise.
8723 (aarch64_linux_get_hwcap): Remove function.
8724 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8725 declaration.
8726 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8727 linux_get_hwcap.
8728 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8729 * linux-tdep.c (linux_get_hwcap): Add function.
8730 (linux_get_hwcap2): Likewise.
8731 * linux-tdep.h (linux_get_hwcap): Add declaration.
8732 (linux_get_hwcap2): Likewise.
8733 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8734 (ppc_linux_get_hwcap2): Likewise.
8735 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8736 linux_get_hwcap.
8737 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8738 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8739 (ppc_linux_nat_target::read_description): Likewise.
8740 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8741 * s390-linux-nat.c: Likewise.
8742 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8743
8744 2019-03-24 Tom Tromey <tom@tromey.com>
8745
8746 * ada-lang.c (standard_lookup): Simplify initialization.
8747 (ada_lookup_symbol_nonlocal): Simplify return.
8748 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8749 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8750 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8751 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8752 initialization.
8753 * solib.c (solib_global_lookup): Simplify.
8754 * symtab.c (null_block_symbol): Remove.
8755 (symbol_cache_lookup): Simplify returns.
8756 (lookup_language_this): Simplify returns.
8757 (lookup_symbol_aux): Simplify return.
8758 (lookup_local_symbol): Simplify returns.
8759 (lookup_global_symbol_from_objfile): Simplify return.
8760 (lookup_symbol_in_objfile_symtabs)
8761 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8762 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8763 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8764 * cp-namespace.c (cp_lookup_bare_symbol)
8765 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8766 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8767 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8768 (cp_lookup_symbol_via_imports): Simplify initialization.
8769 (find_symbol_in_baseclass): Likewise.
8770 * symtab.h (null_block_symbol): Remove.
8771 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8772 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8773 (d_lookup_symbol_module): Likewise.
8774 (find_symbol_in_baseclass): Simplify initialization.
8775
8776 2019-03-24 Tom Tromey <tom@tromey.com>
8777
8778 * expression.h: Don't include symtab.h.
8779 (struct block): Forward declare.
8780
8781 2019-03-24 Tom Tromey <tom@tromey.com>
8782
8783 * c-exp.y (typebase): Remove casts.
8784 * gdbtypes.c (lookup_unsigned_typename, )
8785 (lookup_signed_typename): Remove cast.
8786 * eval.c (parse_to_comma_and_eval): Remove cast.
8787 * parse.c (write_dollar_variable): Remove cast.
8788 * block.h (struct block) <superblock>: Now const.
8789 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8790 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8791 (map_block): Make "block" const.
8792 * symfile.h (struct quick_symbol_functions)
8793 <map_matching_symbols>: Constify block argument to "callback".
8794 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8795 const.
8796 (find_pc_sect_compunit_symtab): Make "b" const.
8797 (find_symbol_at_address): Likewise.
8798 (search_symbols): Likewise.
8799 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8800 (dw2_debug_names_lookup_symbol): Likewise.
8801 (dw2_map_matching_symbols): Update.
8802 * p-valprint.c (pascal_val_print): Remove "block".
8803 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8804 (aux_add_nonlocal_symbols): Make "block" const.
8805 (resolve_subexp): Remove cast.
8806 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8807 const.
8808 (iterate_over_file_blocks): Likewise.
8809 * f-exp.y (%union) <bval>: Remove.
8810 * coffread.c (patch_opaque_types): Make "b" const.
8811 * spu-tdep.c (spu_catch_start): Make "block" const.
8812 * c-valprint.c (print_unpacked_pointer): Remove "block".
8813 * symmisc.c (dump_symtab_1): Make "b" const.
8814 (block_depth): Make "block" const.
8815 * d-exp.y (%union) <bval>: Remove.
8816 * cp-support.h (cp_lookup_rtti_type): Update.
8817 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8818 * psymtab.c (psym_lookup_symbol): Make "block" const.
8819 (maintenance_check_psymtabs): Make "b" const.
8820 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8821 (enumerate_locals, enumerate_args): Update.
8822 * python/py-symtab.c (stpy_global_block): Make "block" const.
8823 (stpy_static_block): Likewise.
8824 * inline-frame.c (block_starting_point_at): Make "new_block"
8825 const.
8826 * block.c (find_block_in_blockvector): Make return type const.
8827 (blockvector_for_pc_sect): Make "b" const.
8828 (find_block_in_blockvector): Make "b" const.
8829
8830 2019-03-23 Tom Tromey <tom@tromey.com>
8831
8832 * varobj.c (varobj_create): Update.
8833 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8834 * printcmd.c (display_command, do_one_display): Don't reset
8835 innermost_block.
8836 * parser-defs.h (enum innermost_block_tracker_type): Move to
8837 expression.h.
8838 (innermost_block): Update comment.
8839 * parse.c (parse_exp_1): Add tracker_types parameter.
8840 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8841 tracker_types parameter. Reset innermost_block.
8842 (parse_exp_in_context): Remove.
8843 (parse_expression_for_completion): Update.
8844 * objfiles.c (~objfile): Don't reset expression_context_block or
8845 innermost_block.
8846 * expression.h (enum innermost_block_tracker_type): Move from
8847 parser-defs.h.
8848 (parse_exp_1): Add tracker_types parameter.
8849 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8850 reset innermost_block.
8851
8852 2019-03-23 Tom Tromey <tom@tromey.com>
8853
8854 * objfiles.h: Include bcache.h.
8855
8856 2019-03-23 Tom Tromey <tom@tromey.com>
8857
8858 * linespec.c (get_current_search_block): Use
8859 scoped_restore_current_language.
8860 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8861
8862 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8863 Jiong Wang <jiong.wang@arm.com>
8864
8865 * aarch64-linux-tdep.c
8866 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8867 section.
8868 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8869
8870 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8871 Jiong Wang <jiong.wang@arm.com>
8872
8873 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8874 instructions.
8875 (aarch64_analyze_prologue_test): Add PACIASP test.
8876 (aarch64_prologue_prev_register): Unmask PC value.
8877
8878 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8879 Jiong Wang <jiong.wang@arm.com>
8880
8881 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8882 (aarch64_dwarf2_prev_register): Unmask PC value.
8883 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8884 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8885 DW_CFA_AARCH64_negate_ra_state.
8886 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8887
8888 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8889 Jiong Wang <jiong.wang@arm.com>
8890
8891 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8892 registers.
8893 (aarch64_pseudo_register_name): Likewise.
8894 (aarch64_pseudo_register_type): Likewise.
8895 (aarch64_pseudo_register_reggroup_p): Likewise.
8896 (aarch64_gdbarch_init): Add pauth registers.
8897 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8898 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8899 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8900 (struct gdbarch_tdep): Add regnum for ra_state.
8901
8902 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8903 Jiong Wang <jiong.wang@arm.com>
8904
8905 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8906
8907 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8908 Jiong Wang <jiong.wang@arm.com>
8909
8910 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8911 function.
8912 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8913 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8914 (aarch64_gdbarch_init): Add puth registers.
8915 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8916 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8917 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8918
8919 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8920 Jiong Wang <jiong.wang@arm.com>
8921
8922 * aarch64-linux-nat.c
8923 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8924 * aarch64-linux-tdep.c
8925 (aarch64_linux_core_read_description): Likewise.
8926 (aarch64_linux_get_hwcap): New function.
8927 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8928 (aarch64_linux_get_hwcap): New declaration.
8929
8930 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8931 Jiong Wang <jiong.wang@arm.com>
8932
8933 * aarch64-linux-nat.c
8934 (aarch64_linux_nat_target::read_description): Add pauth param.
8935 * aarch64-linux-tdep.c
8936 (aarch64_linux_core_read_description): Likewise.
8937 * aarch64-tdep.c (struct target_desc): Add in pauth.
8938 (aarch64_read_description): Add pauth param.
8939 (aarch64_gdbarch_init): Likewise.
8940 * aarch64-tdep.h (aarch64_read_description): Likewise.
8941 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8942 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8943 * features/Makefile: Add new files.
8944 * features/aarch64-pauth.c: New file.
8945 * features/aarch64-pauth.xml: New file.
8946
8947 2019-03-20 Tom Tromey <tromey@adacore.com>
8948
8949 * infrun.c (handle_inferior_event): Rename from
8950 handle_inferior_event_1. Create a scoped_value_mark.
8951 (handle_inferior_event): Remove.
8952
8953 2019-03-19 Tom Tromey <tromey@adacore.com>
8954
8955 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8956 * infrun.h (print_stop_event): Add "displays" parameter.
8957 * infrun.c (print_stop_event): Add "displays" parameter.
8958
8959 2019-03-19 Pedro Alves <palves@redhat.com>
8960
8961 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8962 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8963 to -1. Fix TABs vs spaces.
8964 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8965 * tui/tui-out.h (tui_ui_out) Add intro comments.
8966 <m_line, m_start_of_line>: In-class initialize, and add describing
8967 comment.
8968
8969 2019-03-18 Alan Hayward <alan.hayward@arm.com>
8970
8971 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8972 variable names.
8973 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8974
8975 2019-03-18 Pedro Alves <palves@redhat.com>
8976 Eli Zaretskii <eliz@gnu.org>
8977
8978 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8979 m_line and m_start_of_line.
8980
8981 2019-03-18 Eli Zaretskii <eliz@gnu.org>
8982
8983 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8984 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8985 it returns a newline. This fixes a regression in TU mode, whereby
8986 the next line is output on the same screen line as the user input.
8987
8988 2019-03-18 Tom Tromey <tromey@adacore.com>
8989
8990 * minsyms.c (minimal_symbol_reader::install): Remove call to
8991 obstack_blank.
8992
8993 2019-03-18 Pedro Alves <palves@redhat.com>
8994
8995 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
8996 New globals.
8997 (apply_style): New, factored out from ...
8998 (apply_ansi_escape): ... this. Handle reverse video mode.
8999 (tui_set_reverse_mode): New function.
9000 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9001 * tui/tui-winsource.c (tui_show_source_line): Use
9002 tui_set_reverse_mode instead of setting A_STANDOUT.
9003 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9004 New setter methods.
9005
9006 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
9007
9008 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9009 Handle tabs.
9010
9011 2019-03-18 Tom Tromey <tromey@adacore.com>
9012
9013 * ada-lang.c (empty_array): Add "high" parameter.
9014 (ada_evaluate_subexp): Update.
9015
9016 2019-03-17 Sergei Trofimovich <siarheit@google.com>
9017
9018 * unittests/string_view-selftests.c: Define
9019 _initialize_string_view_selftests unconditionally.
9020
9021 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9022
9023 PR gdb/24350
9024 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9025
9026 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9027
9028 PR gdb/24351
9029 * windows-nat.c (display_selector): Fix format specifiers.
9030
9031 2019-03-17 Eli Zaretskii <eliz@gnu.org>
9032
9033 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9034 tui_refill_source_window instead of tui_refresh_win, to update the
9035 current execution line. This fixes redisplay of the current line
9036 when stepping through the code with "next" or "step".
9037
9038 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9039
9040 * source-cache.c (source_cache::get_source_lines): Call
9041 find_source_lines to initialize s->nlines. This fixes vertical
9042 scrolling of TUI source window when the DOWN arrow is pressed.
9043
9044 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9045
9046 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9047 linux-thread-db.c (_initialize_thread_db): Likewise.
9048
9049 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9050
9051 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9052 wclrtoeol in tui_show_source_line". This reverts changes made in
9053 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9054
9055 2019-03-15 Tom Tromey <tom@tromey.com>
9056
9057 * symtab.h (struct minimal_symbol): Derive from
9058 general_symbol_info.
9059 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9060 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9061 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9062 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9063 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9064 (MSYMBOL_SEARCH_NAME): Update.
9065 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9066 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9067 * minsyms.c (minimal_symbol_reader::record_full): Update.
9068
9069 2019-03-15 Tom Tromey <tom@tromey.com>
9070
9071 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9072
9073 2019-03-15 Tom Tromey <tom@tromey.com>
9074
9075 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9076 unique_xmalloc_ptr.
9077 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9078 Update.
9079 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9080 (build_minimal_symbol_hash_tables)
9081 (minimal_symbol_reader::install): Update.
9082
9083 2019-03-15 Tom Tromey <tom@tromey.com>
9084
9085 * symtab.c (create_demangled_names_hash): Update.
9086 (symbol_set_names): Update.
9087 * objfiles.h (struct objfile_per_bfd_storage)
9088 <demangled_names_hash>: Now an htab_up.
9089 * objfiles.c (objfile_per_bfd_storage): Simplify.
9090
9091 2019-03-15 Tom Tromey <tom@tromey.com>
9092
9093 * objfiles.h (struct objfile_per_bfd_storage): Declare
9094 destructor.
9095 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9096 New.
9097 (get_objfile_bfd_data): Use new. Don't initialize
9098 language_of_main.
9099 (free_objfile_per_bfd_storage): Remove.
9100 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9101
9102 2019-03-15 Tom Tromey <tom@tromey.com>
9103
9104 * symfile.c (reread_symbols): Update.
9105 * objfiles.c (objfile::objfile): Update.
9106 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9107 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9108 comment.
9109 (minimal_symbol_reader::install): Update.
9110 (terminate_minimal_symbol_table): Remove.
9111 * jit.c (jit_object_close_impl): Update.
9112
9113 2019-03-15 Tom Tromey <tom@tromey.com>
9114
9115 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9116 initializations.
9117
9118 2019-03-15 Tom Tromey <tom@tromey.com>
9119
9120 * objfiles.h (struct objfile_per_bfd_storage)
9121 <demangled_hash_languages>: Now a bitset.
9122 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9123 (lookup_minimal_symbol): Update.
9124
9125 2019-03-15 Tom Tromey <tom@tromey.com>
9126
9127 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9128 Don't return the symbol.
9129 * coffread.c (record_minimal_symbol): Use record_full.
9130
9131 2019-03-14 Eli Zaretskii <eliz@gnu.org>
9132
9133 The MS-Windows port of ncurses fails to switch to a color pair if
9134 one or both of the colors are the implicit default colors. This
9135 change records the default colors when TUI is initialized, and
9136 then specifies them explicitly when a color pair uses the default
9137 colors. This allows color styling in TUI mode on MS-Windows.
9138
9139 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9140 ncurses_norm_attr.
9141 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9142 colors in ncurses_norm_attr.
9143 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9144 "none", replace it with the default color recorded in
9145 ncurses_norm_attr.
9146
9147 2019-03-14 Tom Tromey <tromey@adacore.com>
9148
9149 * source-cache.h (class source_cache) <get_source_lines>: Return
9150 std::string.
9151 * source-cache.c (source_cache::extract_lines): Handle case where
9152 first_pos==npos. Return std::string.
9153 (source_cache::get_source_lines): Update.
9154
9155 2019-03-14 Tom Tromey <tromey@adacore.com>
9156
9157 * NEWS: Add item for "style sources" commands.
9158 * source-cache.c (source_cache::get_source_lines): Check
9159 source_styling.
9160 * cli/cli-style.c (source_styling): New global.
9161 (_initialize_cli_style): Add "style sources" commands.
9162 (show_style_sources): New function.
9163 * cli/cli-style.h (source_styling): Declare.
9164
9165 2019-03-14 Pedro Alves <palves@redhat.com>
9166 Tom Tromey <tromey@adacore.com>
9167
9168 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9169 * tui/tui-winsource.c (tui_refill_source_window): New function,
9170 from...
9171 (tui_horizontal_source_scroll): ... here. Move some logic.
9172 * cli/cli-style.c (set_style_enabled): Notify new observable.
9173 * tui/tui-hooks.c (tui_redisplay_source): New function.
9174 (tui_attach_detach_observers): Attach or detach
9175 tui_redisplay_source.
9176 * observable.h (source_styling_changed): New observable.
9177 * observable.c: Define source_styling_changed observable.
9178
9179 2019-03-13 Tom Tromey <tromey@adacore.com>
9180
9181 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9182 (i386_gnu_nat_target::store_registers): Update.
9183 * target-debug.h (target_debug_print_std_string): New macro.
9184 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9185 * windows-tdep.c (display_one_tib): Update.
9186 * tui/tui-stack.c (tui_make_status_line): Update.
9187 * top.c (print_inferior_quit_action): Update.
9188 * thread.c (thr_try_catch_cmd): Update.
9189 (add_thread_with_info): Update.
9190 (thread_target_id_str): Update.
9191 (thr_try_catch_cmd): Update.
9192 (thread_command): Update.
9193 (thread_find_command): Update.
9194 * record-btrace.c (record_btrace_target::info_record)
9195 (record_btrace_resume_thread, record_btrace_target::resume)
9196 (record_btrace_cancel_resume, record_btrace_step_thread)
9197 (record_btrace_target::wait, record_btrace_target::wait)
9198 (record_btrace_target::wait, record_btrace_target::stop): Update.
9199 * progspace.c (print_program_space): Update.
9200 * process-stratum-target.c
9201 (process_stratum_target::thread_address_space): Update.
9202 * linux-fork.c (linux_fork_mourn_inferior)
9203 (detach_checkpoint_command, info_checkpoints_command)
9204 (linux_fork_context): Update.
9205 (linux_fork_detach): Update.
9206 (class scoped_switch_fork_info): Update.
9207 (delete_checkpoint_command): Update.
9208 * infrun.c (follow_fork_inferior): Update.
9209 (follow_fork_inferior): Update.
9210 (proceed_after_vfork_done): Update.
9211 (handle_vfork_child_exec_or_exit): Update.
9212 (follow_exec): Update.
9213 (displaced_step_prepare_throw): Update.
9214 (displaced_step_restore): Update.
9215 (start_step_over): Update.
9216 (resume_1): Update.
9217 (clear_proceed_status_thread): Update.
9218 (proceed): Update.
9219 (print_target_wait_results): Update.
9220 (do_target_wait): Update.
9221 (context_switch): Update.
9222 (stop_all_threads): Update.
9223 (restart_threads): Update.
9224 (finish_step_over): Update.
9225 (handle_signal_stop): Update.
9226 (switch_back_to_stepped_thread): Update.
9227 (keep_going_pass_signal): Update.
9228 (print_exited_reason): Update.
9229 (normal_stop): Update.
9230 * inferior.c (inferior_pid_to_str): Change return type.
9231 (print_selected_inferior): Update.
9232 (add_inferior): Update.
9233 (detach_inferior): Update.
9234 * dummy-frame.c (fprint_dummy_frames): Update.
9235 * dcache.c (dcache_info_1): Update.
9236 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9237 (btrace_fetch, btrace_clear): Update.
9238 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9239 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9240 type.
9241 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9242 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9243 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9244 * gdbarch.c, gdbarch.h: Rebuild.
9245 * gdbarch.sh (core_pid_to_str): Change return type.
9246 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9247 return type.
9248 (windows_nat_target::pid_to_str): Change return type.
9249 (windows_delete_thread): Update.
9250 (windows_nat_target::attach): Update.
9251 (windows_nat_target::files_info): Update.
9252 * target-delegates.c: Rebuild.
9253 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9254 return type.
9255 (sol_thread_target::pid_to_str): Change return type.
9256 * remote.c (class remote_target) <pid_to_str>: Change return
9257 type.
9258 (remote_target::pid_to_str): Change return type.
9259 (extended_remote_target::attach, remote_target::remote_stop_ns)
9260 (remote_target::remote_notif_remove_queued_reply)
9261 (remote_target::push_stop_reply, remote_target::disable_btrace):
9262 Update.
9263 (extended_remote_target::attach): Update.
9264 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9265 type.
9266 (gdbsim_target::pid_to_str): Change return type.
9267 * ravenscar-thread.c (struct ravenscar_thread_target)
9268 <pid_to_str>: Change return type.
9269 (ravenscar_thread_target::pid_to_str): Change return type.
9270 * procfs.c (class procfs_target) <pid_to_str>: Change return
9271 type.
9272 (procfs_target::pid_to_str): Change return type.
9273 (procfs_target::attach): Update.
9274 (procfs_target::detach): Update.
9275 (procfs_target::fetch_registers): Update.
9276 (procfs_target::store_registers): Update.
9277 (procfs_target::wait): Update.
9278 (procfs_target::files_info): Update.
9279 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9280 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9281 return type.
9282 (nto_procfs_target::pid_to_str): Change return type.
9283 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9284 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9285 return type.
9286 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9287 (exit_lwp): Update.
9288 (attach_proc_task_lwp_callback, get_detach_signal)
9289 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9290 (linux_nat_target::resume, wait_lwp, stop_callback)
9291 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9292 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9293 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9294 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9295 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9296 type.
9297 (inf_ptrace_target::attach): Update.
9298 (inf_ptrace_target::files_info): Update.
9299 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9300 type.
9301 (go32_nat_target::pid_to_str): Change return type.
9302 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9303 (gnu_nat_target::wait): Update.
9304 (gnu_nat_target::wait): Update.
9305 (gnu_nat_target::resume): Update.
9306 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9307 (fbsd_nat_target::wait): Update.
9308 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9309 type.
9310 (darwin_nat_target::attach): Update.
9311 * corelow.c (class core_target) <pid_to_str>: Change return type.
9312 (core_target::pid_to_str): Change return type.
9313 * target.c (normal_pid_to_str): Change return type.
9314 (default_pid_to_str): Likewise.
9315 (target_pid_to_str): Change return type.
9316 (target_translate_tls_address): Update.
9317 (target_announce_detach): Update.
9318 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9319 return type.
9320 (bsd_uthread_target::pid_to_str): Change return type.
9321 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9322 type.
9323 (bsd_kvm_target::pid_to_str): Change return type.
9324 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9325 return type.
9326 (aix_thread_target::pid_to_str): Change return type.
9327 * target.h (struct target_ops) <pid_to_str>: Change return type.
9328 (target_pid_to_str, normal_pid_to_str): Likewise.
9329 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9330 type.
9331 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9332 type.
9333 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9334 return type.
9335 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9336 type.
9337 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9338 type.
9339 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9340 return type.
9341
9342 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9343
9344 * NEWS: Mention that the new default MI version is 3. Mention
9345 changes to the output of commands and events that deal with
9346 multi-location breakpoints.
9347 * breakpoint.c: Include "mi/mi-out.h".
9348 (print_one_breakpoint): Change output syntax if using MI version
9349 >= 3.
9350 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9351 New.
9352 (mi_multi_location_breakpoint_output_fixed): New.
9353 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9354 (mi_cmd_fix_multi_location_breakpoint_output): New.
9355 (mi_multi_location_breakpoint_output_fixed): New.
9356 * mi/mi-cmds.c (mi_cmds): Register command
9357 -fix-multi-location-breakpoint-output.
9358 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9359 interpreter "mi".
9360
9361 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9362
9363 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9364 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9365 instantiate mi_ui_out based on interpreter name.
9366 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9367 * mi/mi-main.c (mi_load_progress): Likewise.
9368
9369 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9370
9371 * NEWS: Combine separate "New targets" sections for 8.3.
9372
9373 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9374
9375 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9376 (ppcfbsd_init_abi): Install gdbarch
9377 "fetch_tls_load_module_address" and "get_thread_local_address"
9378 methods.
9379
9380 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9381
9382 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9383 (riscv_fbsd_init_abi): Install gdbarch
9384 "fetch_tls_load_module_address" and "get_thread_local_address"
9385 methods.
9386
9387 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9388
9389 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9390 (i386fbsd_init_abi): Install gdbarch
9391 "fetch_tls_load_module_address" and "get_thread_local_address"
9392 methods.
9393
9394 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9395
9396 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9397 (amd64fbsd_init_abi): Install gdbarch
9398 "fetch_tls_load_module_address" and "get_thread_local_address"
9399 methods.
9400
9401 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9402
9403 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9404 (struct fbsd_pspace_data): New type.
9405 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9406 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9407 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9408 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9409 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9410
9411 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9412
9413 * gdbtypes.c (lookup_struct_elt): New function.
9414 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9415 * gdbtypes.h (struct struct_elt): New type.
9416 (lookup_struct_elt): New prototype.
9417
9418 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9419
9420 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9421 remove disabled code block.
9422
9423 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9424
9425 * gdbarch.sh (get_thread_local_address): New method.
9426 * gdbarch.h, gdbarch.c: Regenerate.
9427 * target.c (target_translate_tls_address): Use
9428 gdbarch_get_thread_local_address if present instead of
9429 target::get_thread_local_address.
9430
9431 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9432
9433 * target.h (target::get_thread_local_address): Update comment.
9434
9435 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9436
9437 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9438 objfile->separate_debug_objfile_backlink if not NULL.
9439
9440 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9441
9442 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9443 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9444 (amd64bsd_store_inferior_registers): Likewise.
9445 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9446 Enable segment base registers.
9447 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9448 PT_GETFSBASE and PT_GETGSBASE.
9449 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9450 PT_SETGSBASE.
9451 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9452 segment base registers.
9453 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9454
9455 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9456
9457 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9458 Update calls to i386_target_description to add 'segments'
9459 parameter.
9460 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9461 add segment base registers.
9462 * arch/i386.c (i386_create_target_description): Add 'segments'
9463 parameter to enable segment base registers.
9464 * arch/i386.h (i386_create_target_description): Likewise.
9465 * features/i386/32bit-segments.xml: New file.
9466 * features/i386/32bit-segments.c: Generate.
9467 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9468 call to i386_target_description to add 'segments' parameter.
9469 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9470 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9471 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9472 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9473 if feature is present.
9474 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9475 Add 'segments' parameter to call to i386_target_description.
9476 (i386_target_description): Add 'segments' parameter to enable
9477 segment base registers.
9478 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9479 to call to i386_target_description.
9480 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9481 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9482 Define I386_NUM_REGS.
9483 (i386_target_description): Add 'segments' parameter to enable
9484 segment base registers.
9485
9486 2019-03-12 Eli Zaretskii <eliz@gnu.org>
9487
9488 PR/24325
9489 * source-cache.c: #undef open and close, to avoid unresolved
9490 externals during linking.
9491
9492 2019-03-12 Tom Tromey <tromey@adacore.com>
9493
9494 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9495 const. Add initializers.
9496 (_initialize_remote): Don't initialize ptid globals.
9497
9498 2019-03-12 Pedro Alves <palves@redhat.com>
9499
9500 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9501
9502 2019-03-12 Pedro Alves <palves@redhat.com>
9503
9504 * cp-name-parser.y (main): Remove unused 'len' variable.
9505
9506 2019-03-12 Tom Tromey <tromey@adacore.com>
9507
9508 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9509 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9510
9511 2019-03-12 Tom Tromey <tromey@adacore.com>
9512
9513 * linux-nat.c (iterate_over_lwps): Update.
9514 (stop_callback): Remove parameter.
9515 (stop_wait_callback, detach_callback, resume_set_callback)
9516 (select_singlestep_lwp_callback, set_ignore_sigint)
9517 (status_callback, resumed_callback, resume_clear_callback)
9518 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9519 data parameter.
9520 (linux_nat_target::detach, linux_nat_target::resume)
9521 (linux_stop_and_wait_all_lwps, select_event_lwp)
9522 (linux_nat_filter_event, linux_nat_wait_1)
9523 (linux_nat_target::kill, linux_nat_target::stop)
9524 (linux_nat_target::stop): Update.
9525 (linux_nat_resume_callback): Change type.
9526 (resume_stopped_resumed_lwps, count_events_callback)
9527 (select_event_lwp_callback): Likewise.
9528 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9529 * arm-linux-nat.c (struct update_registers_data): Remove.
9530 (update_registers_callback): Change type.
9531 (arm_linux_insert_hw_breakpoint1): Update.
9532 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9533 parameter.
9534 (x86_linux_dr_set_addr): Update.
9535 (x86_linux_dr_set_control): Update.
9536 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9537 (iterate_over_lwps): Use gdb::function_view.
9538 * nat/aarch64-linux-hw-point.c (struct
9539 aarch64_dr_update_callback_param): Remove.
9540 (debug_reg_change_callback): Change type.
9541 (aarch64_notify_debug_reg_change): Update.
9542 * s390-linux-nat.c (s390_refresh_per_info): Update.
9543
9544 2019-03-11 Tom Tromey <tromey@adacore.com>
9545
9546 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9547 redundant assignment to "this_cu".
9548
9549 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9550
9551 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9552
9553 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9554
9555 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9556 from...
9557 (rank_one_type): ... this.
9558
9559 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9560
9561 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9562 from...
9563 (rank_one_type): ... this.
9564
9565 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9566
9567 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9568 from...
9569 (rank_one_type): ... this.
9570
9571 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9572
9573 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9574 from...
9575 (rank_one_type): ... this.
9576
9577 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9578
9579 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9580 from...
9581 (rank_one_type): ... this.
9582
9583 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9584
9585 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9586 from...
9587 (rank_one_type): ... this.
9588
9589 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9590
9591 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9592 from...
9593 (rank_one_type): ... this.
9594
9595 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9596
9597 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9598 from...
9599 (rank_one_type): ... this.
9600
9601 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9602
9603 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9604 from...
9605 (rank_one_type): ... this.
9606
9607 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9608
9609 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9610 from...
9611 (rank_one_type): ... this.
9612
9613 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9614
9615 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9616 from...
9617 (rank_one_type): ... this.
9618
9619 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9620
9621 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9622 from...
9623 (rank_one_type): ... this.
9624
9625 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9626
9627 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9628 inferior-events' shows the example events.
9629
9630 2019-03-08 Eli Zaretskii <eliz@gnu.org>
9631
9632 Support styling on native MS-Windows console
9633
9634 PR/24315
9635 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9636 on MS-Windows if $TERM is not defined.
9637
9638 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9639
9640 * posix-hdep.c (gdb_console_fputs):
9641 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9642 functions.
9643 * ui-file.h (gdb_console_fputs): Add prototype.
9644
9645 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9646 back to fputs only if the former returns zero.
9647
9648 2019-03-07 Tom Tromey <tom@tromey.com>
9649
9650 * symmisc.c (print_symbol_bcache_statistics): Update.
9651 (print_objfile_statistics): Update.
9652 * symfile.c (allocate_symtab): Update.
9653 * stabsread.c: Don't include bcache.h.
9654 * psymtab.h (struct psymbol_bcache): Don't declare.
9655 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9656 (psymbol_bcache_init, psymbol_bcache_free)
9657 (psymbol_bcache_get_bcache): Don't declare.
9658 * psymtab.c (struct psymbol_bcache): Remove.
9659 (psymtab_storage::psymtab_storage): Update.
9660 (psymtab_storage::~psymtab_storage): Update.
9661 (psymbol_bcache_init, psymbol_bcache_free)
9662 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9663 (add_psymbol_to_bcache): Update.
9664 (allocate_psymtab): Update.
9665 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9666 macro_cache>: No longer pointers.
9667 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9668 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9669 * macrotab.c (macro_bcache): Update.
9670 * macroexp.c: Don't include bcache.h.
9671 * gdbtypes.c (check_types_worklist): Update.
9672 (types_deeply_equal): Remove TRY/CATCH. Update.
9673 * elfread.c (elf_symtab_read): Update.
9674 * dwarf2read.c: Don't include bcache.h.
9675 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9676 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9677 (print_bcache_statistics, bcache_memory_used): Don't declare.
9678 (struct bcache): Move from bcache.c. Add constructor, destructor,
9679 methods. Rename all data members.
9680 * bcache.c (struct bcache): Move to bcache.h.
9681 (bcache::expand_hash_table): Rename from expand_hash_table.
9682 (bcache): Remove.
9683 (bcache::insert): Rename from bcache_full.
9684 (bcache::compare): Rename from bcache_compare.
9685 (bcache_xmalloc): Remove.
9686 (bcache::~bcache): Rename from bcache_xfree.
9687 (bcache::print_statistics): Rename from print_bcache_statistics.
9688 (bcache::memory_used): Rename from bcache_memory_used.
9689
9690 2019-03-07 Pedro Alves <palves@redhat.com>
9691
9692 * infrun.c (normal_stop): Also check for
9693 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9694
9695 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9696
9697 * f-lang.c (value_from_host_double): Moved to...
9698 * value.c (value_from_host_double): ...here.
9699 * value.h (value_from_host_double): Declare.
9700 * guile/scm-math.c (vlscm_convert_typed_number): Use
9701 value_from_host_double.
9702 (vlscm_convert_number): Likewise.
9703 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9704 * python/py-value.c (convert_value_from_python): Likewise.
9705
9706 2019-03-06 Tom Tromey <tom@tromey.com>
9707
9708 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9709
9710 2019-03-06 Tom Tromey <tom@tromey.com>
9711
9712 * utils.h (free_current_contents): Don't declare.
9713 * utils.c (free_current_contents): Remove.
9714
9715 2019-03-06 Tom Tromey <tom@tromey.com>
9716
9717 * top.c (quit_force): Update.
9718 * main.c (captured_command_loop): Update.
9719 * common/new-op.c (operator new): Update.
9720 * common/common-exceptions.c (struct catcher)
9721 <save_cleanup_chain>: Remove member.
9722 (exceptions_state_mc_init): Update.
9723 (exception_try_scope_entry): Return nullptr.
9724 (exception_try_scope_exit, exception_rethrow)
9725 (throw_exception_sjlj, throw_exception_cxx): Update.
9726 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9727 (all_cleanups, do_cleanups, discard_cleanups)
9728 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9729 (restore_cleanups, restore_final_cleanups): Don't declare.
9730 (do_final_cleanups): Remove parameter.
9731 * common/cleanups.c (cleanup_chain, make_cleanup)
9732 (make_cleanup_dtor, all_cleanups, do_cleanups)
9733 (discard_my_cleanups, discard_cleanups)
9734 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9735 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9736 (null_cleanup): Remove.
9737 (do_final_cleanups): Remove parameter.
9738
9739 2019-03-06 Tom Tromey <tom@tromey.com>
9740
9741 * remote.c (remote_target::remote_parse_stop_reply): Use
9742 unique_xmalloc_ptr.
9743
9744 2019-03-06 Tom Tromey <tom@tromey.com>
9745
9746 * stabsread.c (struct stabs_field_info): Rename from field_info.
9747 <list, fnlist>: Add initializers.
9748 <obstack>: New member.
9749 (read_member_functions, read_struct_fields, read_baseclasses):
9750 Allocate on obstack. Don't use cleanups.
9751 (read_one_struct_field, read_member_functions, read_struct_fields)
9752 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9753 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9754 (read_struct_type): Update.
9755
9756 2019-03-06 Tom Tromey <tom@tromey.com>
9757
9758 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9759 * common/filestuff.h (make_cleanup_close): Don't declare.
9760 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9761 Remove.
9762
9763 2019-03-06 Tom Tromey <tom@tromey.com>
9764
9765 * solib-aix.c: Use make_scope_exit.
9766
9767 2019-03-06 Tom Tromey <tom@tromey.com>
9768
9769 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9770 Use make_scope_exit.
9771
9772 2019-03-06 Tom Tromey <tom@tromey.com>
9773
9774 * solib-svr4.c (disable_probes_interface): Remove parameter.
9775 (svr4_handle_solib_event): Use make_scope_exit.
9776
9777 2019-03-06 Tom Tromey <tom@tromey.com>
9778
9779 * remote.c (struct stop_reply_deleter): Remove.
9780 (stop_reply_up): Update.
9781 (struct stop_reply): Derive from notif_event. Don't typedef.
9782 <regcache>: Now a std::vector.
9783 (stop_reply_xfree): Remove.
9784 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9785 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9786 (remote_target::discard_pending_stop_replies): Use delete.
9787 (remote_target::remote_parse_stop_reply): Update.
9788 (remote_target::process_stop_reply): Update.
9789 * remote-notif.h (struct notif_event): Add virtual destructor.
9790 Remove "dtr" member.
9791 (struct notif_client) <alloc_event>: Return a unique_ptr.
9792 (notif_event_xfree): Don't declare.
9793 (notif_event_up): New typedef.
9794 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9795 (notif_event_xfree, do_notif_event_xfree): Remove.
9796 (remote_notif_state_xfree): Update.
9797
9798 2019-03-06 Tom Tromey <tom@tromey.com>
9799
9800 * infrun.c (displaced_step_clear_cleanup): Now a
9801 forward_scope_exit type.
9802 (displaced_step_prepare_throw): Update.
9803 (displaced_step_fixup): Update.
9804
9805 2019-03-06 Tom Tromey <tom@tromey.com>
9806
9807 * inferior.h (class inferior): Update comment.
9808 * gdbthread.h (class thread_info): Update comment.
9809
9810 2019-03-06 Joel Brobecker <brobecker@adacore.com>
9811 Tom Tromey <tom@tromey.com>
9812
9813 * stabsread.h (struct stab_section_list): Remove.
9814 (coffstab_build_psymtabs): Update.
9815 * dbxread.c (symbuf_sections): Now a std::vector.
9816 (sect_idx): New global.
9817 (fill_symbuf): Update.
9818 (coffstab_build_psymtabs): Change type of stabsects parameter.
9819 Update.
9820 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9821 std::vector.
9822 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9823 (coff_locate_sections): Update.
9824 (coff_symfile_read): Remove cleanups. Update.
9825 (init_stringtab): Add storage parameter.
9826 (free_stringtab, free_stringtab_cleanup): Remove.
9827 (init_lineno): Add storage parameter.
9828 (free_linetab, free_linetab_cleanup): Remove.
9829
9830 2019-03-06 Pedro Alves <palves@redhat.com>
9831
9832 * linux-fork.c (fork_info::clobber_regs): Delete.
9833 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9834 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9835 comment. Adjust.
9836 (scoped_switch_fork_info::scoped_switch_fork_info)
9837 (checkpoint_command, linux_fork_context): Adjust
9838 fork_save_infrun_state calls.
9839
9840 2019-03-06 Pedro Alves <palves@redhat.com>
9841
9842 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9843 (inf_has_multiple_threads): Return 'bool' and rewrite using
9844 inferior_info::threads().
9845
9846 2019-03-06 Pedro Alves <palves@redhat.com>
9847
9848 * linux-fork.c: Include <list>.
9849 (fork_list): Now a std::list instance.
9850 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9851 (forks_exist_p, find_last_fork): Adjust.
9852 (new_fork): Delete.
9853 (one_fork_p): New.
9854 (add_fork): Adjust.
9855 (free_fork): Delete, folded into fork_info::~fork_info().
9856 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9857 Adjust.
9858 (init_fork_list): Delete.
9859 (linux_fork_killall, linux_fork_mourn_inferior)
9860 (linux_fork_detach, info_checkpoints_command): Adjust.
9861 (_initialize_linux_fork): No longer call init_fork_list.
9862
9863 2019-03-06 Pedro Alves <palves@redhat.com>
9864
9865 * linux-fork.c (new_fork): New, split out of ...
9866 (add_fork): ... this. Return void. Move "first fork" special
9867 case from here, to ...
9868 (checkpoint_command): ... here.
9869 * linux-linux.h (add_fork): Return void.
9870
9871 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9872
9873 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9874
9875 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9876 Chris January <chris.january@arm.com>
9877 David Lecomber <david.lecomber@arm.com>
9878
9879 * f-exp.y: New token, UNOP_INTRINSIC.
9880 (exp): New pattern using UNOP_INTRINSIC token.
9881 (f77_keywords): Add 'abs' keyword.
9882 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9883 (value_from_host_double): New function.
9884 (evaluate_subexp_f): Support UNOP_ABS.
9885
9886 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9887
9888 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9889 types.
9890
9891 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9892
9893 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9894 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9895 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9896
9897 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9898
9899 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9900
9901 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9902 Chris January <chris.january@arm.com>
9903
9904 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9905 * f-exp.y: Define 'KIND' token.
9906 (exp): New pattern for KIND expressions.
9907 (ptype): Handle types with a kind extension.
9908 (direct_abs_decl): Extend to spot kind extensions.
9909 (f77_keywords): Add 'kind' to the list.
9910 (push_kind_type): New function.
9911 (convert_to_kind_type): New function.
9912 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9913 * parse.c (operator_length_standard): Likewise.
9914 * parser-defs.h (enum type_pieces): Add tp_kind.
9915 * std-operator.def: Add UNOP_KIND.
9916
9917 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9918
9919 * f-exp.y (f_parse): Set yydebug.
9920
9921 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9922
9923 * f-lang.c (evaluate_subexp_f): New function.
9924 (exp_descriptor_f): New global.
9925 (f_language_defn): Use exp_descriptor_f instead of
9926 exp_descriptor_standard.
9927
9928 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9929
9930 * f-exp.y (struct token): Add comments.
9931 (dot_ops): Remove uppercase versions and the end marker.
9932 (f77_keywords): Likewise.
9933 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9934 entries in the dot_ops array are case insensitive, and use
9935 strncasecmp to compare strings. Also some whitespace cleanup in
9936 this area. Similar for the f77_keywords array, except entries in
9937 this list might be case sensitive.
9938
9939 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9940
9941 * f-exp.y (struct f77_boolean_val): Add comments.
9942 (boolean_values): Remove uppercase versions, and end marker.
9943 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9944 and use strncasecmp to achieve case insensitivity. Additionally,
9945 perform whitespace cleanup around this code.
9946
9947 2019-03-06 Tom Tromey <tromey@adacore.com>
9948
9949 * remote-sim.c (gdbsim_target_open): Use result of
9950 gdb_argv::release.
9951
9952 2019-03-06 Richard Bunt <richard.bunt@arm.com>
9953 Dirk Schubert <dirk.schubert@arm.com>
9954 Chris January <chris.january@arm.com>
9955
9956 * eval.c (evaluate_subexp_standard): Call Fortran argument
9957 wrapping logic.
9958 * f-lang.c (struct value): A value which can be passed into a
9959 Fortran function call.
9960 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9961 where appropriate.
9962 (struct type): Value ready for a Fortran function call.
9963 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9964 is needed.
9965 * f-lang.h (fortran_argument_convert): Declaration.
9966 (fortran_preserve_arg_pointer): Declaration.
9967 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9968
9969 2019-03-05 Tom Tromey <tromey@adacore.com>
9970
9971 * python/py-prettyprint.c (print_string_repr): Remove #if.
9972 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9973
9974 2019-03-05 Tom Tromey <tromey@adacore.com>
9975
9976 * target.c (the_dummy_target): Move later. Change type to
9977 "dummy_target".
9978 (initialize_targets): Don't initialize the_dummy_target.
9979
9980 2019-03-05 Tom Tromey <tromey@adacore.com>
9981
9982 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9983 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9984
9985 2019-03-05 Tom Tromey <tromey@adacore.com>
9986
9987 * windows-nat.c (windows_nat_target::attach)
9988 (windows_nat_target::detach): Don't call gdb_flush.
9989 * valprint.c (generic_val_print, val_print, val_print_string):
9990 Don't call gdb_flush.
9991 * utils.c (defaulted_query): Don't call gdb_flush.
9992 * typeprint.c (print_type_scalar): Don't call gdb_flush.
9993 * target.c (target_announce_detach): Don't call gdb_flush.
9994 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
9995 * remote.c (extended_remote_target::attach): Don't call
9996 gdb_flush.
9997 * procfs.c (procfs_target::detach): Don't call gdb_flush.
9998 * printcmd.c (do_examine): Don't call gdb_flush.
9999 (info_display_command): Don't call gdb_flush.
10000 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10001 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10002 * memattr.c (info_mem_command): Don't call gdb_flush.
10003 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10004 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10005 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10006 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10007 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10008 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10009 (gnu_nat_target::detach): Don't call gdb_flush.
10010 * f-valprint.c (f_val_print): Don't call gdb_flush.
10011 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10012 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10013 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10014 gdb_flush.
10015 * c-valprint.c (c_val_print): Don't call gdb_flush.
10016 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10017
10018 2019-03-05 Tom Tromey <tromey@adacore.com>
10019
10020 * varobj.c (update_dynamic_varobj_children): Update.
10021 (install_default_visualizer): Use reset, not release.
10022 * value.c (set_internalvar): Update.
10023 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10024 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10025 ATTRIBUTE_UNUSED_RESULT.
10026
10027 2019-03-05 Tom Tromey <tromey@adacore.com>
10028
10029 * remote.c (class scoped_remote_fd) <release>: Add
10030 ATTRIBUTE_UNUSED_RESULT.
10031
10032 2019-03-05 Tom Tromey <tromey@adacore.com>
10033
10034 * macroexp.c (struct macro_buffer) <release>: Add
10035 ATTRIBUTE_UNUSED_RESULT.
10036
10037 2019-03-05 Tom Tromey <tromey@adacore.com>
10038
10039 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10040 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10041 ATTRIBUTE_UNUSED_RESULT.
10042
10043 2019-03-05 Tom Tromey <tromey@adacore.com>
10044
10045 * common/scoped_fd.h (class scoped_fd) <release>: Add
10046 ATTRIBUTE_UNUSED_RESULT.
10047
10048 2019-03-05 Tom Tromey <tromey@adacore.com>
10049
10050 * parser-defs.h (struct parser_state) <release>: Add
10051 ATTRIBUTE_UNUSED_RESULT.
10052
10053 2019-03-05 Tom Tromey <tromey@adacore.com>
10054
10055 * utils.h (class gdb_argv) <release>: Add
10056 ATTRIBUTE_UNUSED_RESULT.
10057 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10058
10059 2019-03-02 Eli Zaretskii <eliz@gnu.org>
10060
10061 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10062 for-loop range, to avoid compiler warnings.
10063
10064 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10065 avoid compiler warnings about unused variables.
10066
10067 * NEWS: Mention end of support for native debugging on MS-Windows
10068 before XP.
10069
10070 PR gdb/24292
10071 * common/netstuff.c:
10072 * gdbserver/gdbreplay.c
10073 * gdbserver/remote-utils.c:
10074 * ser-tcp.c:
10075 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10076 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10077 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10078 'getaddrinfo' and 'freeaddrinfo' were not available before
10079 Windows XP, and mingw.org's MinGW headers by default define
10080 _WIN32_WINNT to 0x500.
10081
10082 2019-03-01 Gary Benson <gbenson@redhat.com>
10083
10084 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10085
10086 2019-02-28 Brian Vandenberg <phantall@gmail.com>
10087 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10088
10089 PR gdb/8527
10090 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10091 set_sigint_trap, clear_sigint_trap.
10092
10093 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10094
10095 * target.c (target_detach): Clear the regcache and the
10096 frame cache.
10097
10098 2019-02-27 Pedro Alves <palves@redhat.com>
10099
10100 * utils.c (set_screen_size): When we cap the height/width sizes,
10101 tweak the corresponding command variable to show "unlimited":
10102
10103 2019-02-27 Saagar Jha <saagar@saagarjha.com>
10104 Pedro Alves <palves@redhat.com>
10105
10106 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10107 before calling rl_set_screen_size.
10108
10109 2019-02-27 Tom Tromey <tromey@adacore.com>
10110
10111 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10112 define.
10113 * python/py-value.c: Remove Python 2.4 workaround.
10114 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10115 workaround.
10116 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10117 Python 2.4 workaround.
10118 * python/python-internal.h: Remove Python 2.4 comment.
10119 (Py_ssize_t): Don't define.
10120 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10121 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10122 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10123 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10124 * python/python.c (do_start_initialization): Remove Python 2.4
10125 workaround.
10126 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10127 (print_children): Remove Python 2.4 workaround.
10128 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10129 workaround.
10130 (CHARBUFFERPROC_NAME): Remove.
10131 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10132 Python 2.4 workaround.
10133
10134 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10135
10136 * NEWS: Note minimum Python version.
10137
10138 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10139
10140 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10141 code from these functions. Remove corresponding ifdefs. Use
10142 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10143 Remove gotos and target of gotos.
10144 (infpy_search_memory): Likewise.
10145
10146 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10147
10148 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10149 (hppa_gdbarch_init): Don't register deleted functions with
10150 gdbarch.
10151
10152 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10153
10154 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10155 (h8300_unwind_sp): Delete.
10156 (h8300_dummy_id): Delete.
10157 (h8300_gdbarch_init): Don't register deleted functions with
10158 gdbarch.
10159
10160 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10161
10162 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10163 (ft32_unwind_pc): Delete.
10164 (ft32_unwind_sp): Delete.
10165 (ft32_gdbarch_init): Don't register deleted functions with
10166 gdbarch.
10167
10168 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10169
10170 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10171 (frv_unwind_pc): Delete.
10172 (frv_unwind_sp): Delete.
10173 (frv_gdbarch_init): Don't register deleted functions with
10174 gdbarch.
10175
10176 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10177
10178 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10179 (riscv_unwind_pc): Delete.
10180 (riscv_unwind_sp): Delete.
10181 (riscv_gdbarch_init): Don't register deleted functions with
10182 gdbarch.
10183
10184 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10185
10186 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10187 (csky_unwind_pc): Delete.
10188 (csky_unwind_sp): Delete.
10189 (csky_gdbarch_init): Don't register deleted functions with
10190 gdbarch.
10191
10192 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10193
10194 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10195 (cris_unwind_pc): Delete.
10196 (cris_unwind_sp): Delete.
10197 (cris_gdbarch_init): Don't register deleted functions with
10198 gdbarch.
10199
10200 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10201
10202 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10203 (bfin_unwind_pc): Delete.
10204 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10205
10206 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10207
10208 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10209 (arm_unwind_pc): Delete.
10210 (arm_unwind_sp): Delete.
10211 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10212
10213 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10214
10215 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10216 (arc_unwind_pc): Delete.
10217 (arc_unwind_sp): Delete.
10218 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10219
10220 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10221
10222 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10223 (alpha_unwind_pc): Delete.
10224 (alpha_gdbarch_init): Don't register deleted functions with
10225 gdbarch.
10226
10227 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10228
10229 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10230 (aarch64_unwind_pc): Delete.
10231 (aarch64_unwind_sp): Delete.
10232 (aarch64_gdbarch_init): Don't register deleted functions with
10233 gdbarch.
10234
10235 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10236
10237 * gdbtypes.c (type_align): Don't consider static members when
10238 computing structure alignment.
10239
10240 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10241
10242 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10243 return 0 for other types.
10244 * arch-utils.c (default_type_align): Always return 0.
10245 * gdbarch.h: Regenerate.
10246 * gdbarch.sh (type_align): Extend comment.
10247 * gdbtypes.c (type_align): Add additional comments, always call
10248 gdbarch_type_align before applying the default rules.
10249 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10250 generic code will then apply a suitable default.
10251 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10252 types, return 0 for other types.
10253
10254 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10255
10256 * NEWS: Create a new section for the next release branch.
10257 Rename the section of the current branch, now that it has
10258 been cut.
10259
10260 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10261
10262 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10263 * version.in: Bump version to 8.3.50.DATE-git.
10264
10265 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
10266
10267 * aix-thread.c (ptid_cmp): Remove unused variable.
10268 (get_signaled_thread): Likewise.
10269 (store_regs_user_thread): Likewise.
10270 (store_regs_kernel_thread): Likewise.
10271 (fetch_regs_kernel_thread): Remove shadowed variable.
10272
10273 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10274
10275 * features/riscv/32bit-cpu.xml: Add register numbers.
10276 * features/riscv/32bit-fpu.c: Regenerate.
10277 * features/riscv/32bit-fpu.xml: Add register numbers.
10278 * features/riscv/64bit-cpu.xml: Add register numbers.
10279 * features/riscv/64bit-fpu.c: Regenerate.
10280 * features/riscv/64bit-fpu.xml: Add register numbers.
10281
10282 2019-02-26 Kevin Buettner <kevinb@redhat.com>
10283
10284 * NEWS: Mention two argument form of gdb.Value constructor.
10285 * python/py-value.c (convert_buffer_and_type_to_value): New
10286 function.
10287 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10288 Add support for handling an optional second argument. Call
10289 convert_buffer_and_type_to_value as appropriate.
10290 * python/python-internal.h (Py_buffer_deleter): New struct.
10291 (Py_buffer_up): New typedef.
10292
10293 2019-02-25 John Baldwin <jhb@FreeBSD.org>
10294
10295 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10296 instead of releasing ownership.
10297
10298 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
10299
10300 * dwarf2read.c (open_and_init_dwp_file): Call
10301 elf_numsections instead of bfd_count_sections to initialize
10302 dwp_file->num_sections.
10303
10304 2019-02-25 Tom Tromey <tromey@adacore.com>
10305
10306 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10307
10308 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10309
10310 * gcore.in: Add '--readnever' option when invoking GDB.
10311
10312 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10313
10314 * MAINTAINERS: Update my email address.
10315
10316 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10317
10318 * build-id.c (build_id_to_debug_bfd_1): New function.
10319 (build_id_to_debug_bfd): Look for separate debug file in
10320 sysroot.
10321
10322 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10323
10324 * gdbarch.sh: Update the copyright year range that is placed into
10325 generated files.
10326
10327 2019-02-22 Keith Seitz <keiths@redhat.com>
10328
10329 PR symtab/23853
10330 * linespec.c (create_sals_line_offset): Search for the default
10331 symtab's filename instead of its fullname.
10332
10333 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10334
10335 * NEWS: Update style defaults.
10336
10337 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10338
10339 * main.c (captured_main_1): Disable styling in batch mode.
10340
10341 2019-02-20 Tom Tromey <tom@tromey.com>
10342
10343 * symtab.c (symtab_symbol_info): Fix typos.
10344
10345 2019-02-20 Tom Tromey <tromey@adacore.com>
10346
10347 * findcmd.c (_initialize_mem_search): Use upper case for
10348 metasyntactic variables.
10349
10350 2019-02-20 Alan Hayward <alan.hayward@arm.com>
10351
10352 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10353 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10354
10355 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10356
10357 * top.h (source_file_name): Change to std::string.
10358 * top.c (source_file_name): Likewise.
10359 (command_line_input): Adjust.
10360 * cli/cli-script.c (script_from_file): Adjust.
10361
10362 2019-02-19 Tom Tromey <tromey@adacore.com>
10363
10364 * ravenscar-thread.c
10365 (ravenscar_thread_target::update_thread_list): Don't call
10366 ada_build_task_list.
10367 * ada-lang.h (ada_build_task_list): Don't declare.
10368 * ada-tasks.c (struct ada_tasks_inferior_data)
10369 <task_list_valid_p>: Now bool.
10370 (read_known_tasks, ada_task_list_changed)
10371 (ada_tasks_invalidate_inferior_data): Update.
10372 (read_known_tasks_array): Return bool.
10373 (read_known_tasks_list): Likewise.
10374 (read_known_tasks): Return void.
10375 (ada_build_task_list): Now static.
10376
10377 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10378
10379 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10380 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10381
10382 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10383
10384 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10385 variant for ada_tasks_pspace_data_handle and
10386 ada_tasks_inferior_data_handle.
10387 (ada_tasks_pspace_data_cleanup): New function.
10388 (ada_tasks_inferior_data_cleanup): New function.
10389
10390 2019-02-17 Tom Tromey <tom@tromey.com>
10391
10392 * macrotab.h (macro_source_fullname): Return a std::string.
10393 * macrotab.c (macro_include, check_for_redefinition)
10394 (macro_undef, macro_lookup_definition, foreach_macro)
10395 (foreach_macro_in_scope): Update.
10396 (macro_source_fullname): Return a std::string.
10397 * macrocmd.c (show_pp_source_pos): Update.
10398
10399 2019-02-17 Tom Tromey <tom@tromey.com>
10400
10401 * macrocmd.c (show_pp_source_pos): Style the file names.
10402
10403 2019-02-17 Tom Tromey <tom@tromey.com>
10404
10405 PR tui/24197:
10406 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10407
10408 2019-02-17 Tom Tromey <tom@tromey.com>
10409
10410 * ada-lang.c (user_select_syms): Use filtered printing.
10411 * utils.c (wrap_style): New global.
10412 (desired_style): Remove.
10413 (emit_style_escape): Add stream parameter.
10414 (set_output_style, reset_terminal_style, prompt_for_continue):
10415 Update.
10416 (flush_wrap_buffer): Only flush gdb_stdout.
10417 (wrap_here): Set wrap_style.
10418 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10419 treat escape sequences as a character. Change when wrap buffer is
10420 flushed.
10421 (fputs_styled): Do not set the output style when the default is
10422 requested.
10423 * ui-style.h (struct ui_file_style) <is_default>: New method.
10424 * source.c (print_source_lines_base): Emit escape sequences in one
10425 piece.
10426
10427 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10428
10429 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10430 integers and enumeration types.
10431
10432 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10433
10434 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10435 instead of lookup_symbol_in_language
10436 (do_exact_match): New function.
10437 (ada_get_symbol_name_matcher): Return do_exact_match when
10438 doing a verbatim match.
10439
10440 2019-02-15 Tom Tromey <tromey@adacore.com>
10441
10442 * ravenscar-thread.c (ravenscar_thread_target::resume)
10443 (ravenscar_thread_target::wait): Special case wildcard requests.
10444
10445 2019-02-15 Tom Tromey <tromey@adacore.com>
10446
10447 * ravenscar-thread.c (base_ptid): Remove.
10448 (struct ravenscar_thread_target) <close>: New method.
10449 <m_base_ptid>: New member.
10450 <update_inferior_ptid, active_task, task_is_currently_active,
10451 runtime_initialized>: Declare methods.
10452 <ravenscar_thread_target>: Add constructor.
10453 (ravenscar_thread_target::task_is_currently_active)
10454 (ravenscar_thread_target::update_inferior_ptid)
10455 (ravenscar_runtime_initialized): Rename. Now methods.
10456 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10457 (ravenscar_thread_target::update_thread_list): Update.
10458 (ravenscar_thread_target::active_task): Now method.
10459 (ravenscar_thread_target::store_registers)
10460 (ravenscar_thread_target::prepare_to_store)
10461 (ravenscar_thread_target::prepare_to_store)
10462 (ravenscar_thread_target::mourn_inferior): Update.
10463 (ravenscar_inferior_created): Use "new" to create target.
10464 (ravenscar_thread_target::get_ada_task_ptid): Update.
10465 (_initialize_ravenscar): Don't initialize base_ptid.
10466 (ravenscar_ops): Remove global.
10467
10468 2019-02-15 Tom Tromey <tromey@adacore.com>
10469
10470 * target.h (push_target): Declare new overload.
10471 * target.c (push_target): New overload, taking an rvalue reference.
10472 * remote.c (remote_target::open_1): Use push_target overload.
10473 * corelow.c (core_target_open): Use push_target overload.
10474
10475 2019-02-15 Tom Tromey <tromey@adacore.com>
10476
10477 * ravenscar-thread.c (is_ravenscar_task)
10478 (ravenscar_task_is_currently_active): Return bool.
10479 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10480 (_initialize_ravenscar): Remove "(void)".
10481 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10482 Return bool.
10483
10484 2019-02-15 Tom Tromey <tromey@adacore.com>
10485
10486 * ravenscar-thread.c (ravenscar_runtime_initializer)
10487 (has_ravenscar_runtime, get_running_thread_id)
10488 (ravenscar_thread_target::resume): Fix indentation.
10489
10490 2019-02-15 Tom Tromey <tromey@adacore.com>
10491
10492 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10493 from ravenscar_arch_ops.
10494 (sparc_ravenscar_ops::fetch_registers)
10495 (sparc_ravenscar_ops::store_registers): Now methods.
10496 (sparc_ravenscar_prepare_to_store): Remove.
10497 (sparc_ravenscar_ops): Redefine.
10498 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10499 methods and destructor. Remove members.
10500 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10501 (ravenscar_thread_target::store_registers)
10502 (ravenscar_thread_target::prepare_to_store): Update.
10503 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10504 Remove.
10505 (struct ppc_ravenscar_powerpc_ops): Derive from
10506 ravenscar_arch_ops.
10507 (ppc_ravenscar_powerpc_ops::fetch_registers)
10508 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10509 (ppc_ravenscar_powerpc_ops): Redefine.
10510 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10511 (ppc_ravenscar_e500_ops::fetch_registers)
10512 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10513 (ppc_ravenscar_e500_ops): Redefine.
10514 * aarch64-ravenscar-thread.c
10515 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10516 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10517 (aarch64_ravenscar_fetch_registers)
10518 (aarch64_ravenscar_store_registers): Now methods.
10519 (aarch64_ravenscar_ops): Redefine.
10520
10521 2019-02-15 Tom Tromey <tromey@adacore.com>
10522
10523 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10524 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10525 (ravenscar_thread_target::stopped_by_watchpoint)
10526 (ravenscar_thread_target::stopped_data_address)
10527 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10528
10529 2019-02-15 Tom Tromey <tromey@adacore.com>
10530
10531 * ravenscar-thread.c: Fix some typos.
10532
10533 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10534 Tom Tromey <tromey@adacore.com>
10535
10536 * ada-lang.c (ada_exception_sal): Change addr_string to a
10537 std::string.
10538 (create_ada_exception_catchpoint): Update.
10539
10540 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10541 Tom Tromey <tromey@adacore.com>
10542
10543 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10544 (bp_location_ops): Remove.
10545 (base_breakpoint_allocate_location): Update.
10546 (free_bp_location): Update.
10547 * ada-lang.c (class ada_catchpoint_location)
10548 <ada_catchpoint_location>: Remove ops parameter.
10549 (ada_catchpoint_location_dtor): Remove.
10550 (ada_catchpoint_location_ops): Remove.
10551 (allocate_location_exception): Update.
10552 * breakpoint.h (struct bp_location_ops): Remove.
10553 (class bp_location) <bp_location>: Remove bp_location_ops
10554 parameter.
10555 <~bp_location>: Add destructor.
10556 <ops>: Remove.
10557
10558 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10559 Pedro Alves <palves@redhat.com>
10560
10561 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10562 'PATH_MAX'.
10563
10564 2019-02-14 David Michael <fedora.dm0@gmail.com>
10565 Samuel Thibault <samuel.thibault@gnu.org>
10566 Thomas Schwinge <thomas@codesourcery.com>
10567
10568 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10569 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10570
10571 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10572
10573 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10574 (check_empty): Use "const char *".
10575
10576 * gnu-nat.c (gnu_nat_target::detach): Instead of
10577 'detach_inferior (pid)' call
10578 'detach_inferior (find_inferior_pid (pid))'.
10579
10580 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10581 'nat/fork-inferior.o'.
10582 * gnu-nat.c: #include "nat/fork-inferior.h".
10583
10584 * gnu-nat.c (gnu_nat_target::detach): Instead of
10585 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10586 * gnu-nat.h: #include "inf-child.h".
10587 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10588 'i386_gnu_nat_target::fetch_registers'.
10589 (gnu_store_registers): Rename/move to
10590 'i386_gnu_nat_target::store_registers'.
10591
10592 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10593 * gnu-nat.h (mach_thread_info): New function.
10594 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10595
10596 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10597
10598 2019-02-14 Frederic Konrad <konrad@adacore.com>
10599
10600 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10601
10602 2019-02-14 Joel Brobecker <brobecker@adacore.com>
10603
10604 * windows-nat.c (windows_add_thread): Add new parameter
10605 "main_thread_p" with default value set to false. Update
10606 function documentation as well as all callers.
10607 (windows_delete_thread): Likewise.
10608 (fake_create_process): Update call to windows_add_thread.
10609 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10610 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10611 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10612 call to windows_delete_thread.
10613
10614 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10615
10616 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10617
10618 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10619
10620 * symfile.c (find_separate_debug_file): Use canonical path of
10621 sysroot with child_path instead of gdb_sysroot if it is valid.
10622
10623 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10624
10625 * symfile.c (find_separate_debug_file): Use child_path to
10626 determine if an object file is under a sysroot.
10627
10628 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10629
10630 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10631 unittests/child-path-selftests.c.
10632 * common/pathstuff.c (child_path): New function.
10633 * common/pathstuff.h (child_path): New prototype.
10634 * unittests/child-path-selftests.c: New file.
10635
10636 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10637
10638 * symfile.c (find_separate_debug_file): Look for separate debug
10639 files in debug directories under the sysroot.
10640
10641 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10642
10643 * symtab.h (struct minimal_symbol data_p): New const method.
10644 (struct minimal_symbol text_p): Likewise.
10645 * symtab.c (output_source_filename): Use file name style
10646 to print file name.
10647 (print_symbol_info): Likewise.
10648 (print_msymbol_info): Use address style to print addresses.
10649 Use function name style to print executable text symbols.
10650 (expand_symtab_containing_pc): Use data_p.
10651 (find_pc_sect_compunit_symtab): Likewise.
10652
10653 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10654
10655 * breakpoint.c (describe_other_breakpoints): Use address style
10656 to print addresses.
10657 (say_where): Likewise.
10658
10659 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10660
10661 * ada-typeprint.c (print_func_type): Print function name
10662 style to print function name.
10663 * c-typeprint.c (c_print_type_1): Likewise.
10664
10665 2019-02-11 Alan Hayward <alan.hayward@arm.com>
10666
10667 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10668 for execve.
10669
10670 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10671
10672 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10673 type_stack.
10674
10675 2019-02-10 Joel Brobecker <brobecker@adacore.com>
10676
10677 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10678 TYPE_CODE_REF types.
10679
10680 2019-02-08 Jim Wilson <jimw@sifive.com>
10681
10682 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10683 (riscv_linux_fregset): New.
10684 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10685
10686 2019-02-07 Tom Tromey <tom@tromey.com>
10687
10688 * thread.c (thread_cancel_execution_command): Update.
10689 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10690 methods.
10691 (struct thread_fsm_ops): Remove.
10692 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10693 (thread_fsm_should_stop, thread_fsm_return_value)
10694 (thread_fsm_set_finished, thread_fsm_finished_p)
10695 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10696 Don't declare.
10697 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10698 * infrun.c (clear_proceed_status_thread)
10699 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10700 (print_stop_event): Update.
10701 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10702 Add constructor.
10703 (step_command_fsm_ops): Remove.
10704 (new_step_command_fsm): Remove.
10705 (step_1): Update.
10706 (step_command_fsm::should_stop): Rename from
10707 step_command_fsm_should_stop.
10708 (step_command_fsm::clean_up): Rename from
10709 step_command_fsm_clean_up.
10710 (step_command_fsm::do_async_reply_reason): Rename from
10711 step_command_fsm_async_reply_reason.
10712 (struct until_next_fsm): Inherit from thread_fsm. Add
10713 constructor.
10714 (until_next_fsm_ops): Remove.
10715 (new_until_next_fsm): Remove.
10716 (until_next_fsm::should_stop): Rename from
10717 until_next_fsm_should_stop.
10718 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10719 (until_next_fsm::do_async_reply_reason): Rename from
10720 until_next_fsm_async_reply_reason.
10721 (struct finish_command_fsm): Inherit from thread_fsm. Add
10722 constructor. Change type of breakpoint.
10723 (finish_command_fsm_ops): Remove.
10724 (new_finish_command_fsm): Remove.
10725 (finish_command_fsm::should_stop): Rename from
10726 finish_command_fsm_should_stop.
10727 (finish_command_fsm::clean_up): Rename from
10728 finish_command_fsm_clean_up.
10729 (finish_command_fsm::return_value): Rename from
10730 finish_command_fsm_return_value.
10731 (finish_command_fsm::do_async_reply_reason): Rename from
10732 finish_command_fsm_async_reply_reason.
10733 (finish_command): Update.
10734 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10735 Add constructor.
10736 (call_thread_fsm_ops): Remove.
10737 (call_thread_fsm::call_thread_fsm): Rename from
10738 new_call_thread_fsm.
10739 (call_thread_fsm::should_stop): Rename from
10740 call_thread_fsm_should_stop.
10741 (call_thread_fsm::should_notify_stop): Rename from
10742 call_thread_fsm_should_notify_stop.
10743 (run_inferior_call, call_function_by_hand_dummy): Update.
10744 * cli/cli-interp.c (should_print_stop_to_console): Update.
10745 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10746 Add constructor. Change type of location_breakpoint,
10747 caller_breakpoint.
10748 (until_break_fsm_ops): Remove.
10749 (new_until_break_fsm): Remove.
10750 (until_break_fsm::should_stop): Rename from
10751 until_break_fsm_should_stop.
10752 (until_break_fsm::clean_up): Rename from
10753 until_break_fsm_clean_up.
10754 (until_break_fsm::do_async_reply_reason): Rename from
10755 until_break_fsm_async_reply_reason.
10756 (until_break_command): Update.
10757 * thread-fsm.c: Remove.
10758 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10759
10760 2019-02-07 Tom Tromey <tom@tromey.com>
10761
10762 * yy-remap.h: Add include guard.
10763 * xtensa-tdep.h: Add include guard.
10764 * xcoffread.h: Rename include guard.
10765 * varobj-iter.h: Add include guard.
10766 * tui/tui.h: Rename include guard.
10767 * tui/tui-winsource.h: Rename include guard.
10768 * tui/tui-wingeneral.h: Rename include guard.
10769 * tui/tui-windata.h: Rename include guard.
10770 * tui/tui-win.h: Rename include guard.
10771 * tui/tui-stack.h: Rename include guard.
10772 * tui/tui-source.h: Rename include guard.
10773 * tui/tui-regs.h: Rename include guard.
10774 * tui/tui-out.h: Rename include guard.
10775 * tui/tui-layout.h: Rename include guard.
10776 * tui/tui-io.h: Rename include guard.
10777 * tui/tui-hooks.h: Rename include guard.
10778 * tui/tui-file.h: Rename include guard.
10779 * tui/tui-disasm.h: Rename include guard.
10780 * tui/tui-data.h: Rename include guard.
10781 * tui/tui-command.h: Rename include guard.
10782 * tic6x-tdep.h: Add include guard.
10783 * target/waitstatus.h: Rename include guard.
10784 * target/wait.h: Rename include guard.
10785 * target/target.h: Rename include guard.
10786 * target/resume.h: Rename include guard.
10787 * target-float.h: Rename include guard.
10788 * stabsread.h: Add include guard.
10789 * rs6000-tdep.h: Add include guard.
10790 * riscv-fbsd-tdep.h: Add include guard.
10791 * regformats/regdef.h: Rename include guard.
10792 * record.h: Rename include guard.
10793 * python/python.h: Rename include guard.
10794 * python/python-internal.h: Rename include guard.
10795 * python/py-stopevent.h: Rename include guard.
10796 * python/py-ref.h: Rename include guard.
10797 * python/py-record.h: Rename include guard.
10798 * python/py-record-full.h: Rename include guard.
10799 * python/py-record-btrace.h: Rename include guard.
10800 * python/py-instruction.h: Rename include guard.
10801 * python/py-events.h: Rename include guard.
10802 * python/py-event.h: Rename include guard.
10803 * procfs.h: Add include guard.
10804 * proc-utils.h: Add include guard.
10805 * p-lang.h: Add include guard.
10806 * or1k-tdep.h: Rename include guard.
10807 * observable.h: Rename include guard.
10808 * nto-tdep.h: Rename include guard.
10809 * nat/x86-linux.h: Rename include guard.
10810 * nat/x86-linux-dregs.h: Rename include guard.
10811 * nat/x86-gcc-cpuid.h: Add include guard.
10812 * nat/x86-dregs.h: Rename include guard.
10813 * nat/x86-cpuid.h: Rename include guard.
10814 * nat/ppc-linux.h: Rename include guard.
10815 * nat/mips-linux-watch.h: Rename include guard.
10816 * nat/linux-waitpid.h: Rename include guard.
10817 * nat/linux-ptrace.h: Rename include guard.
10818 * nat/linux-procfs.h: Rename include guard.
10819 * nat/linux-osdata.h: Rename include guard.
10820 * nat/linux-nat.h: Rename include guard.
10821 * nat/linux-namespaces.h: Rename include guard.
10822 * nat/linux-btrace.h: Rename include guard.
10823 * nat/glibc_thread_db.h: Rename include guard.
10824 * nat/gdb_thread_db.h: Rename include guard.
10825 * nat/gdb_ptrace.h: Rename include guard.
10826 * nat/fork-inferior.h: Rename include guard.
10827 * nat/amd64-linux-siginfo.h: Rename include guard.
10828 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10829 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10830 * nat/aarch64-linux.h: Rename include guard.
10831 * nat/aarch64-linux-hw-point.h: Rename include guard.
10832 * mn10300-tdep.h: Add include guard.
10833 * mips-linux-tdep.h: Add include guard.
10834 * mi/mi-parse.h: Rename include guard.
10835 * mi/mi-out.h: Rename include guard.
10836 * mi/mi-main.h: Rename include guard.
10837 * mi/mi-interp.h: Rename include guard.
10838 * mi/mi-getopt.h: Rename include guard.
10839 * mi/mi-console.h: Rename include guard.
10840 * mi/mi-common.h: Rename include guard.
10841 * mi/mi-cmds.h: Rename include guard.
10842 * mi/mi-cmd-break.h: Rename include guard.
10843 * m2-lang.h: Add include guard.
10844 * location.h: Rename include guard.
10845 * linux-record.h: Rename include guard.
10846 * linux-nat.h: Add include guard.
10847 * linux-fork.h: Add include guard.
10848 * i386-darwin-tdep.h: Rename include guard.
10849 * hppa-linux-offsets.h: Add include guard.
10850 * guile/guile.h: Rename include guard.
10851 * guile/guile-internal.h: Rename include guard.
10852 * gnu-nat.h: Rename include guard.
10853 * gdb-stabs.h: Rename include guard.
10854 * frv-tdep.h: Add include guard.
10855 * f-lang.h: Add include guard.
10856 * event-loop.h: Add include guard.
10857 * darwin-nat.h: Rename include guard.
10858 * cp-abi.h: Rename include guard.
10859 * config/sparc/nm-sol2.h: Rename include guard.
10860 * config/nm-nto.h: Rename include guard.
10861 * config/nm-linux.h: Add include guard.
10862 * config/i386/nm-i386gnu.h: Rename include guard.
10863 * config/djgpp/nl_types.h: Rename include guard.
10864 * config/djgpp/langinfo.h: Rename include guard.
10865 * compile/gcc-cp-plugin.h: Add include guard.
10866 * compile/gcc-c-plugin.h: Add include guard.
10867 * compile/compile.h: Rename include guard.
10868 * compile/compile-object-run.h: Rename include guard.
10869 * compile/compile-object-load.h: Rename include guard.
10870 * compile/compile-internal.h: Rename include guard.
10871 * compile/compile-cplus.h: Rename include guard.
10872 * compile/compile-c.h: Rename include guard.
10873 * common/xml-utils.h: Rename include guard.
10874 * common/x86-xstate.h: Rename include guard.
10875 * common/version.h: Rename include guard.
10876 * common/vec.h: Rename include guard.
10877 * common/tdesc.h: Rename include guard.
10878 * common/selftest.h: Rename include guard.
10879 * common/scoped_restore.h: Rename include guard.
10880 * common/scoped_mmap.h: Rename include guard.
10881 * common/scoped_fd.h: Rename include guard.
10882 * common/safe-iterator.h: Rename include guard.
10883 * common/run-time-clock.h: Rename include guard.
10884 * common/refcounted-object.h: Rename include guard.
10885 * common/queue.h: Rename include guard.
10886 * common/ptid.h: Rename include guard.
10887 * common/print-utils.h: Rename include guard.
10888 * common/preprocessor.h: Rename include guard.
10889 * common/pathstuff.h: Rename include guard.
10890 * common/observable.h: Rename include guard.
10891 * common/netstuff.h: Rename include guard.
10892 * common/job-control.h: Rename include guard.
10893 * common/host-defs.h: Rename include guard.
10894 * common/gdb_wait.h: Rename include guard.
10895 * common/gdb_vecs.h: Rename include guard.
10896 * common/gdb_unlinker.h: Rename include guard.
10897 * common/gdb_unique_ptr.h: Rename include guard.
10898 * common/gdb_tilde_expand.h: Rename include guard.
10899 * common/gdb_sys_time.h: Rename include guard.
10900 * common/gdb_string_view.h: Rename include guard.
10901 * common/gdb_splay_tree.h: Rename include guard.
10902 * common/gdb_setjmp.h: Rename include guard.
10903 * common/gdb_ref_ptr.h: Rename include guard.
10904 * common/gdb_optional.h: Rename include guard.
10905 * common/gdb_locale.h: Rename include guard.
10906 * common/gdb_assert.h: Rename include guard.
10907 * common/filtered-iterator.h: Rename include guard.
10908 * common/filestuff.h: Rename include guard.
10909 * common/fileio.h: Rename include guard.
10910 * common/environ.h: Rename include guard.
10911 * common/common-utils.h: Rename include guard.
10912 * common/common-types.h: Rename include guard.
10913 * common/common-regcache.h: Rename include guard.
10914 * common/common-inferior.h: Rename include guard.
10915 * common/common-gdbthread.h: Rename include guard.
10916 * common/common-exceptions.h: Rename include guard.
10917 * common/common-defs.h: Rename include guard.
10918 * common/common-debug.h: Rename include guard.
10919 * common/cleanups.h: Rename include guard.
10920 * common/buffer.h: Rename include guard.
10921 * common/btrace-common.h: Rename include guard.
10922 * common/break-common.h: Rename include guard.
10923 * cli/cli-utils.h: Rename include guard.
10924 * cli/cli-style.h: Rename include guard.
10925 * cli/cli-setshow.h: Rename include guard.
10926 * cli/cli-script.h: Rename include guard.
10927 * cli/cli-interp.h: Rename include guard.
10928 * cli/cli-decode.h: Rename include guard.
10929 * cli/cli-cmds.h: Rename include guard.
10930 * charset-list.h: Add include guard.
10931 * buildsym-legacy.h: Rename include guard.
10932 * bfin-tdep.h: Add include guard.
10933 * ax.h: Rename include guard.
10934 * arm-linux-tdep.h: Add include guard.
10935 * arm-fbsd-tdep.h: Add include guard.
10936 * arch/xtensa.h: Rename include guard.
10937 * arch/tic6x.h: Add include guard.
10938 * arch/i386.h: Add include guard.
10939 * arch/arm.h: Rename include guard.
10940 * arch/arm-linux.h: Rename include guard.
10941 * arch/arm-get-next-pcs.h: Rename include guard.
10942 * arch/amd64.h: Add include guard.
10943 * arch/aarch64-insn.h: Rename include guard.
10944 * arch-utils.h: Rename include guard.
10945 * annotate.h: Add include guard.
10946 * amd64-darwin-tdep.h: Rename include guard.
10947 * aarch64-linux-tdep.h: Add include guard.
10948 * aarch64-fbsd-tdep.h: Add include guard.
10949 * aarch32-linux-nat.h: Add include guard.
10950
10951 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10952
10953 * macrotab.c (macro_define_internal): New function that
10954 factorizes macro_define_object_internal and macro_define_function
10955 code.
10956 (macro_define_object_internal): Use macro_define_internal.
10957 (macro_define_function): Likewise.
10958
10959 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10960
10961 * macrocmd.c (extract_identifier): Return
10962 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10963 callers.
10964
10965 2019-02-06 John Baldwin <jhb@FreeBSD.org>
10966
10967 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10968
10969 2019-02-05 Tom Tromey <tom@tromey.com>
10970
10971 * target.c (target_stack::unpush): Move assertion earlier.
10972
10973 2019-01-30 Tom Tromey <tom@tromey.com>
10974
10975 PR python/23615:
10976 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10977 (gdbpy_parse_and_eval): Likewise.
10978 * python/python-internal.h (gdbpy_allow_threads): New class.
10979
10980 2019-01-28 John Baldwin <jhb@FreeBSD.org>
10981
10982 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10983 (aarch64_fbsd_fpregmap): Move earlier.
10984 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10985 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10986 instead of individual calls to trad_frame_set_reg_addr.
10987 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
10988 earlier.
10989 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
10990 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10991 instead of individual calls to trad_frame_set_reg_addr.
10992
10993 2019-01-28 Alan Hayward <alan.hayward@arm.com>
10994
10995 * CONTRIBUTE: Replace contribution list with wiki link.
10996
10997 2019-01-25 Tom Tromey <tom@tromey.com>
10998
10999 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11000
11001 2019-01-25 Tom Tromey <tom@tromey.com>
11002
11003 * xtensa-linux-nat.c: Fix common/ includes.
11004 * xml-support.h: Fix common/ includes.
11005 * xml-support.c: Fix common/ includes.
11006 * x86-linux-nat.c: Fix common/ includes.
11007 * windows-nat.c: Fix common/ includes.
11008 * varobj.h: Fix common/ includes.
11009 * varobj.c: Fix common/ includes.
11010 * value.c: Fix common/ includes.
11011 * valops.c: Fix common/ includes.
11012 * utils.c: Fix common/ includes.
11013 * unittests/xml-utils-selftests.c: Fix common/ includes.
11014 * unittests/utils-selftests.c: Fix common/ includes.
11015 * unittests/unpack-selftests.c: Fix common/ includes.
11016 * unittests/tracepoint-selftests.c: Fix common/ includes.
11017 * unittests/style-selftests.c: Fix common/ includes.
11018 * unittests/string_view-selftests.c: Fix common/ includes.
11019 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11020 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11021 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11022 * unittests/rsp-low-selftests.c: Fix common/ includes.
11023 * unittests/parse-connection-spec-selftests.c: Fix common/
11024 includes.
11025 * unittests/optional-selftests.c: Fix common/ includes.
11026 * unittests/offset-type-selftests.c: Fix common/ includes.
11027 * unittests/observable-selftests.c: Fix common/ includes.
11028 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11029 * unittests/memrange-selftests.c: Fix common/ includes.
11030 * unittests/memory-map-selftests.c: Fix common/ includes.
11031 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11032 * unittests/function-view-selftests.c: Fix common/ includes.
11033 * unittests/environ-selftests.c: Fix common/ includes.
11034 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11035 * unittests/common-utils-selftests.c: Fix common/ includes.
11036 * unittests/cli-utils-selftests.c: Fix common/ includes.
11037 * unittests/array-view-selftests.c: Fix common/ includes.
11038 * ui-file.c: Fix common/ includes.
11039 * tui/tui-io.c: Fix common/ includes.
11040 * tracepoint.h: Fix common/ includes.
11041 * tracepoint.c: Fix common/ includes.
11042 * tracefile-tfile.c: Fix common/ includes.
11043 * top.h: Fix common/ includes.
11044 * top.c: Fix common/ includes.
11045 * thread.c: Fix common/ includes.
11046 * target/waitstatus.h: Fix common/ includes.
11047 * target/waitstatus.c: Fix common/ includes.
11048 * target.h: Fix common/ includes.
11049 * target.c: Fix common/ includes.
11050 * target-memory.c: Fix common/ includes.
11051 * target-descriptions.c: Fix common/ includes.
11052 * symtab.h: Fix common/ includes.
11053 * symfile.c: Fix common/ includes.
11054 * stap-probe.c: Fix common/ includes.
11055 * spu-linux-nat.c: Fix common/ includes.
11056 * sparc-nat.c: Fix common/ includes.
11057 * source.c: Fix common/ includes.
11058 * solib.c: Fix common/ includes.
11059 * solib-target.c: Fix common/ includes.
11060 * ser-unix.c: Fix common/ includes.
11061 * ser-tcp.c: Fix common/ includes.
11062 * ser-pipe.c: Fix common/ includes.
11063 * ser-base.c: Fix common/ includes.
11064 * selftest-arch.c: Fix common/ includes.
11065 * s12z-tdep.c: Fix common/ includes.
11066 * rust-exp.y: Fix common/ includes.
11067 * rs6000-aix-tdep.c: Fix common/ includes.
11068 * riscv-tdep.c: Fix common/ includes.
11069 * remote.c: Fix common/ includes.
11070 * remote-notif.h: Fix common/ includes.
11071 * remote-fileio.h: Fix common/ includes.
11072 * remote-fileio.c: Fix common/ includes.
11073 * regcache.h: Fix common/ includes.
11074 * regcache.c: Fix common/ includes.
11075 * record-btrace.c: Fix common/ includes.
11076 * python/python.c: Fix common/ includes.
11077 * python/py-type.c: Fix common/ includes.
11078 * python/py-inferior.c: Fix common/ includes.
11079 * progspace.h: Fix common/ includes.
11080 * producer.c: Fix common/ includes.
11081 * procfs.c: Fix common/ includes.
11082 * proc-api.c: Fix common/ includes.
11083 * printcmd.c: Fix common/ includes.
11084 * ppc-linux-nat.c: Fix common/ includes.
11085 * parser-defs.h: Fix common/ includes.
11086 * osdata.c: Fix common/ includes.
11087 * obsd-nat.c: Fix common/ includes.
11088 * nat/x86-linux.c: Fix common/ includes.
11089 * nat/x86-linux-dregs.c: Fix common/ includes.
11090 * nat/x86-dregs.h: Fix common/ includes.
11091 * nat/x86-dregs.c: Fix common/ includes.
11092 * nat/ppc-linux.c: Fix common/ includes.
11093 * nat/mips-linux-watch.h: Fix common/ includes.
11094 * nat/mips-linux-watch.c: Fix common/ includes.
11095 * nat/linux-waitpid.c: Fix common/ includes.
11096 * nat/linux-ptrace.h: Fix common/ includes.
11097 * nat/linux-ptrace.c: Fix common/ includes.
11098 * nat/linux-procfs.c: Fix common/ includes.
11099 * nat/linux-personality.c: Fix common/ includes.
11100 * nat/linux-osdata.c: Fix common/ includes.
11101 * nat/linux-namespaces.c: Fix common/ includes.
11102 * nat/linux-btrace.h: Fix common/ includes.
11103 * nat/linux-btrace.c: Fix common/ includes.
11104 * nat/fork-inferior.c: Fix common/ includes.
11105 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11106 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11107 * nat/aarch64-linux.c: Fix common/ includes.
11108 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11109 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11110 * namespace.h: Fix common/ includes.
11111 * mips-linux-tdep.c: Fix common/ includes.
11112 * minsyms.c: Fix common/ includes.
11113 * mi/mi-parse.h: Fix common/ includes.
11114 * mi/mi-main.c: Fix common/ includes.
11115 * mi/mi-cmd-env.c: Fix common/ includes.
11116 * memrange.h: Fix common/ includes.
11117 * memattr.c: Fix common/ includes.
11118 * maint.h: Fix common/ includes.
11119 * maint.c: Fix common/ includes.
11120 * main.c: Fix common/ includes.
11121 * machoread.c: Fix common/ includes.
11122 * location.c: Fix common/ includes.
11123 * linux-thread-db.c: Fix common/ includes.
11124 * linux-nat.c: Fix common/ includes.
11125 * linux-fork.c: Fix common/ includes.
11126 * inline-frame.c: Fix common/ includes.
11127 * infrun.c: Fix common/ includes.
11128 * inflow.c: Fix common/ includes.
11129 * inferior.h: Fix common/ includes.
11130 * inferior.c: Fix common/ includes.
11131 * infcmd.c: Fix common/ includes.
11132 * inf-ptrace.c: Fix common/ includes.
11133 * inf-child.c: Fix common/ includes.
11134 * ia64-linux-nat.c: Fix common/ includes.
11135 * i387-tdep.c: Fix common/ includes.
11136 * i386-tdep.c: Fix common/ includes.
11137 * i386-linux-tdep.c: Fix common/ includes.
11138 * i386-linux-nat.c: Fix common/ includes.
11139 * i386-go32-tdep.c: Fix common/ includes.
11140 * i386-fbsd-tdep.c: Fix common/ includes.
11141 * i386-fbsd-nat.c: Fix common/ includes.
11142 * guile/scm-type.c: Fix common/ includes.
11143 * guile/guile.c: Fix common/ includes.
11144 * go32-nat.c: Fix common/ includes.
11145 * gnu-nat.c: Fix common/ includes.
11146 * gdbthread.h: Fix common/ includes.
11147 * gdbarch-selftests.c: Fix common/ includes.
11148 * gdb_usleep.c: Fix common/ includes.
11149 * gdb_select.h: Fix common/ includes.
11150 * gdb_bfd.c: Fix common/ includes.
11151 * gcore.c: Fix common/ includes.
11152 * fork-child.c: Fix common/ includes.
11153 * findvar.c: Fix common/ includes.
11154 * fbsd-nat.c: Fix common/ includes.
11155 * event-top.c: Fix common/ includes.
11156 * event-loop.c: Fix common/ includes.
11157 * dwarf2read.c: Fix common/ includes.
11158 * dwarf2loc.c: Fix common/ includes.
11159 * dwarf2-frame.c: Fix common/ includes.
11160 * dwarf-index-cache.c: Fix common/ includes.
11161 * dtrace-probe.c: Fix common/ includes.
11162 * disasm-selftests.c: Fix common/ includes.
11163 * defs.h: Fix common/ includes.
11164 * csky-tdep.c: Fix common/ includes.
11165 * cp-valprint.c: Fix common/ includes.
11166 * cp-support.h: Fix common/ includes.
11167 * cp-support.c: Fix common/ includes.
11168 * corelow.c: Fix common/ includes.
11169 * completer.h: Fix common/ includes.
11170 * completer.c: Fix common/ includes.
11171 * compile/compile.c: Fix common/ includes.
11172 * compile/compile-loc2c.c: Fix common/ includes.
11173 * compile/compile-cplus-types.c: Fix common/ includes.
11174 * compile/compile-cplus-symbols.c: Fix common/ includes.
11175 * command.h: Fix common/ includes.
11176 * cli/cli-dump.c: Fix common/ includes.
11177 * cli/cli-cmds.c: Fix common/ includes.
11178 * charset.c: Fix common/ includes.
11179 * build-id.c: Fix common/ includes.
11180 * btrace.h: Fix common/ includes.
11181 * btrace.c: Fix common/ includes.
11182 * breakpoint.h: Fix common/ includes.
11183 * breakpoint.c: Fix common/ includes.
11184 * ax.h:
11185 (enum agent_op): Fix common/ includes.
11186 * ax-general.c (struct aop_map): Fix common/ includes.
11187 * ax-gdb.c: Fix common/ includes.
11188 * auxv.c: Fix common/ includes.
11189 * auto-load.c: Fix common/ includes.
11190 * arm-tdep.c: Fix common/ includes.
11191 * arch/riscv.c: Fix common/ includes.
11192 * arch/ppc-linux-common.c: Fix common/ includes.
11193 * arch/i386.c: Fix common/ includes.
11194 * arch/arm.c: Fix common/ includes.
11195 * arch/arm-linux.c: Fix common/ includes.
11196 * arch/arm-get-next-pcs.c: Fix common/ includes.
11197 * arch/amd64.c: Fix common/ includes.
11198 * arch/aarch64.c: Fix common/ includes.
11199 * arch/aarch64-insn.c: Fix common/ includes.
11200 * arch-utils.c: Fix common/ includes.
11201 * amd64-windows-tdep.c: Fix common/ includes.
11202 * amd64-tdep.c: Fix common/ includes.
11203 * amd64-sol2-tdep.c: Fix common/ includes.
11204 * amd64-obsd-tdep.c: Fix common/ includes.
11205 * amd64-nbsd-tdep.c: Fix common/ includes.
11206 * amd64-linux-tdep.c: Fix common/ includes.
11207 * amd64-linux-nat.c: Fix common/ includes.
11208 * amd64-fbsd-tdep.c: Fix common/ includes.
11209 * amd64-fbsd-nat.c: Fix common/ includes.
11210 * amd64-dicos-tdep.c: Fix common/ includes.
11211 * amd64-darwin-tdep.c: Fix common/ includes.
11212 * agent.c: Fix common/ includes.
11213 * ada-lang.h: Fix common/ includes.
11214 * ada-lang.c: Fix common/ includes.
11215 * aarch64-tdep.c: Fix common/ includes.
11216
11217 2019-01-25 Tom Tromey <tom@tromey.com>
11218
11219 * common/create-version.sh: Use common/version.h.
11220
11221 2019-01-24 Pedro Alves <palves@redhat.com>
11222
11223 * infrun.c (signal_stop, signal_print, signal_program)
11224 (signal_catch, signal_pass): Now arrays instead of pointers.
11225 (update_signals_program_target, do_target_resume)
11226 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11227 * linux-nat.c (linux_nat_target::pass_signals)
11228 (linux_nat_target::create_inferior, linux_nat_target::attach):
11229 Adjust.
11230 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11231 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11232 * procfs.c (procfs_target::pass_signals): Adjust.
11233 * record-full.c (record_full_target::resume): Adjust.
11234 * remote.c (remote_target::pass_signals)
11235 (remote_target::program_signals): Adjust.
11236 * target-debug.h (target_debug_print_signals): Now takes a
11237 gdb::array_view as parameter. Adjust.
11238 * target.h (target_ops) <pass_signals, program_signals>: Replace
11239 pointer and length parameters with gdb::array_view.
11240 (target_pass_signals, target_program_signals): Likewise.
11241 * target-delegates.c: Regenerate.
11242
11243 2019-01-24 Pedro Alves <palves@redhat.com>
11244
11245 * common/forward-scope-exit.h
11246 (forward_scope_exit::forward_scope_exit): Pass arguments to
11247 m_bind_function directly, instead of creating a std::bind and
11248 copying that.
11249
11250 2019-01-24 Alan Hayward <alan.hayward@arm.com>
11251
11252 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11253 for static members.
11254 (pass_in_v_vfp_candidate): Likewise.
11255
11256 2019-01-23 Tom Tromey <tom@tromey.com>
11257 Pedro Alves <palves@redhat.com>
11258
11259 * regcache.c (class regcache_invalidator): Remove.
11260 (regcache::raw_write): Use make_scope_exit.
11261
11262 2019-01-23 Tom Tromey <tom@tromey.com>
11263
11264 * ui-out.h (class ui_out_emit_type): Update comment.
11265
11266 2019-01-23 Tom Tromey <tom@tromey.com>
11267
11268 * infrun.c (fetch_inferior_event): Update comment.
11269
11270 2019-01-23 Tom Tromey <tom@tromey.com>
11271 Pedro Alves <palves@redhat.com>
11272
11273 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11274 parameter.
11275 (fetch_inferior_event): Use SCOPE_EXIT.
11276
11277
11278 2019-01-23 Tom Tromey <tom@tromey.com>
11279 Pedro Alves <palves@redhat.com>
11280
11281 * infrun.c (disable_thread_events): Delete.
11282 (stop_all_threads): Use SCOPE_EXIT.
11283
11284 2019-01-23 Tom Tromey <tom@tromey.com>
11285 Pedro Alves <palves@redhat.com>
11286
11287 * symfile.c: Include forward-scope-exit.h.
11288 (clear_symtab_users_cleanup): Replace forward declaration with
11289 a FORWARD_SCOPE_EXIT.
11290 (syms_from_objfile_1): Use the forward_scope_exit and
11291 gdb::optional instead of cleanup_function.
11292 (reread_symbols): Use the forward_scope_exit instead of
11293 cleanup_function.
11294 (clear_symtab_users_cleanup): Remove function.
11295
11296 2019-01-23 Tom Tromey <tom@tromey.com>
11297 Pedro Alves <palves@redhat.com>
11298
11299 * linux-nat.c: Include scope-exit.h.
11300 (cleanup_target_stop): Remove.
11301 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11302 SCOPE_EXIT.
11303
11304 2019-01-23 Tom Tromey <tom@tromey.com>
11305 Pedro Alves <palves@redhat.com>
11306
11307 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11308 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11309
11310 2019-01-23 Tom Tromey <tom@tromey.com>
11311 Andrew Burgess <andrew.burgess@embecosm.com>
11312 Pedro Alves <palves@redhat.com>
11313
11314 * infrun.c (fetch_inferior_event): Use scope_exit.
11315 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11316 * top.c (execute_command): Use scope_exit.
11317 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11318 * utils.c (do_bpstat_clear_actions_cleanup)
11319 (make_bpstat_clear_actions_cleanup): Remove.
11320
11321 2019-01-23 Tom Tromey <tom@tromey.com>
11322 Pedro Alves <palves@redhat.com>
11323
11324 * infrun.c: Include "common/scope-exit.h"
11325 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11326 (wait_for_inferior): Use SCOPE_EXIT.
11327 (fetch_inferior_event): Use scope_exit.
11328
11329 2019-01-23 Tom Tromey <tom@tromey.com>
11330 Pedro Alves <palves@redhat.com>
11331
11332 * breakpoint.c (create_breakpoint): Remove cleanup.
11333
11334 2019-01-23 Tom Tromey <tom@tromey.com>
11335 Andrew Burgess <andrew.burgess@embecosm.com>
11336 Pedro Alves <palves@redhat.com>
11337
11338 2019-01-23 Pedro Alves <palves@redhat.com>
11339
11340 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11341
11342 2019-01-23 Pedro Alves <palves@redhat.com>
11343 Andrew Burgess <andrew.burgess@embecosm.com>
11344
11345 * gdbthread.h: Include "common/forward-scope-exit.h".
11346 (scoped_finish_thread_state): Redefine custom class in terms of
11347 forward_scope_exit.
11348
11349 2019-01-23 Pedro Alves <palves@redhat.com>
11350 Andrew Burgess <andrew.burgess@embecosm.com>
11351
11352 * common/forward-scope-exit.h: New file.
11353
11354 2019-01-23 Pedro Alves <palves@redhat.com>
11355 Andrew Burgess <andrew.burgess@embecosm.com>
11356 Tom Tromey <tom@tromey.com>
11357
11358 * common/scope-exit.h: New file.
11359
11360 2019-01-23 Pedro Alves <palves@redhat.com>
11361
11362 * common/preprocessor.h (ESC): Rename to ...
11363 (ESC_PARENS): ... this.
11364 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11365 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11366
11367 2019-01-23 Tom Tromey <tom@tromey.com>
11368
11369 * language.h (class scoped_switch_to_sym_language_if_auto):
11370 Initialize m_lang in both cases.
11371
11372 2019-01-23 Alan Hayward <alan.hayward@arm.com>
11373
11374 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11375 with XCNEW.
11376
11377 2019-01-22 Tom Tromey <tom@tromey.com>
11378
11379 * corelow.c: Do not include sys/file.h.
11380
11381 2019-01-22 Tom Tromey <tom@tromey.com>
11382
11383 * tui/tui-wingeneral.h: Include gdb_curses.h.
11384
11385 2019-01-22 Tom Tromey <tom@tromey.com>
11386
11387 * source-cache.h (class source_cache) <get_source_lines,
11388 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11389
11390 2019-01-22 Tom Tromey <tom@tromey.com>
11391
11392 * remote-fileio.h (struct remote_target): Declare.
11393
11394 2019-01-22 Tom Tromey <tom@tromey.com>
11395
11396 * python/py-arch.c: Do not include py-ref.h.
11397 * python/py-bpevent.c: Do not include py-ref.h.
11398 * python/py-cmd.c: Do not include py-ref.h.
11399 * python/py-continueevent.c: Do not include py-ref.h.
11400 * python/py-event.h: Do not include py-ref.h.
11401 * python/py-evtregistry.c: Do not include py-ref.h.
11402 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11403 * python/py-frame.c: Do not include py-ref.h.
11404 * python/py-framefilter.c: Do not include py-ref.h.
11405 * python/py-function.c: Do not include py-ref.h.
11406 * python/py-infevents.c: Do not include py-ref.h.
11407 * python/py-linetable.c: Do not include py-ref.h.
11408 * python/py-objfile.c: Do not include py-ref.h.
11409 * python/py-param.c: Do not include py-ref.h.
11410 * python/py-prettyprint.c: Do not include py-ref.h.
11411 * python/py-progspace.c: Do not include py-ref.h.
11412 * python/py-symbol.c: Do not include py-ref.h.
11413 * python/py-symtab.c: Do not include py-ref.h.
11414 * python/py-type.c: Do not include py-ref.h.
11415 * python/py-unwind.c: Do not include py-ref.h.
11416 * python/py-utils.c: Do not include py-ref.h.
11417 * python/py-value.c: Do not include py-ref.h.
11418 * python/py-varobj.c: Do not include py-ref.h.
11419 * python/py-xmethods.c: Do not include py-ref.h.
11420 * python/python.c: Do not include py-ref.h.
11421 * varobj.c: Do not include py-ref.h.
11422
11423 2019-01-22 Tom Tromey <tom@tromey.com>
11424
11425 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11426 keyword for bcache.
11427
11428 2019-01-22 Tom Tromey <tom@tromey.com>
11429
11430 * compile/compile-cplus-types.c: Remove a comment by #include.
11431
11432 2019-01-22 Tom Tromey <tom@tromey.com>
11433
11434 * compile/gcc-c-plugin.h: Include compile-internal.h.
11435
11436 2019-01-22 Tom Tromey <tom@tromey.com>
11437
11438 * stabsread.c (EXTERN): Do not define.
11439 (symnum, next_symbol_text_func, processing_gcc_compilation)
11440 (within_function, global_sym_chain, global_stabs)
11441 (previous_stab_code, this_object_header_files)
11442 (n_this_object_header_files)
11443 (n_allocated_this_object_header_files): Define.
11444 * stabsread.h (EXTERN): Never define. Use "extern".
11445
11446 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11447
11448 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11449 history_value.
11450
11451 2019-01-21 Tom Tromey <tom@tromey.com>
11452
11453 * ui-out.c: Fix includes.
11454 * tui/tui-source.c: Fix includes.
11455 * target.c: Fix includes.
11456 * remote.c: Fix includes.
11457 * regcache.c: Fix includes.
11458 * python/py-block.c: Fix includes.
11459 * printcmd.c: Fix includes.
11460 * or1k-tdep.c: Fix includes.
11461 * mi/mi-main.c: Fix includes.
11462 * m32r-tdep.c: Fix includes.
11463 * csky-tdep.c: Fix includes.
11464 * compile/compile-cplus-types.c: Fix includes.
11465 * cli/cli-interp.c: Fix includes.
11466
11467 2019-01-21 Alan Hayward <alan.hayward@arm.com>
11468
11469 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11470 for padding.
11471
11472 2019-01-16 Tom Tromey <tom@tromey.com>
11473
11474 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11475 earlier.
11476 (struct objfile) <msymbols_range>: Move from top level.
11477 <msymbols>: New method.
11478 (class objfile_msymbols): Remove.
11479 * symtab.c (default_collect_symbol_completion_matches_break_on):
11480 Update.
11481 * symmisc.c (dump_msymbols): Update.
11482 * stabsread.c (scan_file_globals): Update.
11483 * objc-lang.c (info_selectors_command, info_classes_command)
11484 (find_methods): Update.
11485 * minsyms.c (find_solib_trampoline_target): Update.
11486 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11487 * coffread.c (coff_symfile_read): Update.
11488 * ada-lang.c (ada_lookup_simple_minsym)
11489 (ada_collect_symbol_completion_matches): Update.
11490
11491 2019-01-16 Tom Tromey <tom@tromey.com>
11492
11493 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11494 type. Remove no-argument constructor.
11495 <iterator::operator++>: Simplify.
11496 <begin>: Update.
11497 <end>: Use minimal_symbol_count.
11498
11499 2019-01-16 Tom Tromey <tom@tromey.com>
11500
11501 * objfiles.h (struct objfile) <psymtabs>: New method.
11502 (class objfile_psymtabs): Remove.
11503 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11504 typedef.
11505 <range>: New method.
11506 (require_partial_symbols): Change return type.
11507 * psymtab.c (require_partial_symbols)
11508 (psym_expand_symtabs_matching): Update.
11509 * mdebugread.c (parse_partial_symbols): Update.
11510 * dbxread.c (dbx_end_psymtab): Update.
11511
11512 2019-01-15 Tom Tromey <tom@tromey.com>
11513
11514 * symtab.c (lookup_objfile_from_block)
11515 (lookup_symbol_in_objfile_symtabs)
11516 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11517 (find_line_symtab, info_sources_command)
11518 (default_collect_symbol_completion_matches_break_on)
11519 (make_source_files_completion_list): Update.
11520 * symmisc.c (print_objfile_statistics, dump_objfile)
11521 (maintenance_print_symbols, maintenance_info_symtabs)
11522 (maintenance_check_symtabs, maintenance_info_line_tables):
11523 Update.
11524 * source.c (select_source_symtab)
11525 (forget_cached_source_info_for_objfile): Update.
11526 * objfiles.h (class objfile_compunits): Remove.
11527 (struct objfile) <compunits_range>: New typedef.
11528 (compunits): New method.
11529 * objfiles.c (objfile_relocate1): Update.
11530 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11531 * maint.c (count_symtabs_and_blocks): Update.
11532 * linespec.c (iterate_over_all_matching_symtabs): Update.
11533 * cp-support.c (add_symbol_overload_list_qualified): Update.
11534 * coffread.c (coff_symtab_read): Update.
11535 * ada-lang.c (add_nonlocal_symbols)
11536 (ada_collect_symbol_completion_matches)
11537 (ada_add_global_exceptions): Update.
11538
11539 2019-01-15 Tom Tromey <tom@tromey.com>
11540
11541 * progspace.h (program_space) <objfiles_safe_range>: New
11542 typedef.
11543 <objfiles_safe>: New method.
11544 * objfiles.h (class all_objfiles_safe): Remove.
11545 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11546 * jit.c (jit_inferior_exit_hook): Update.
11547
11548 2019-01-17 Tom Tromey <tom@tromey.com>
11549
11550 * progspace.h (program_space) <objfiles_range>: New typedef.
11551 <objfiles>: New method.
11552 <objfiles_head>: Rename from objfiles.
11553 (object_files): Update.
11554 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11555 * guile/scm-pretty-print.c
11556 (ppscm_find_pretty_printer_from_objfiles): Update.
11557 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11558 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11559 Update.
11560 * python/py-progspace.c (pspy_get_objfiles): Update.
11561 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11562 Update.
11563 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11564 (objfpy_lookup_objfile_by_build_id): Update.
11565 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11566 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11567 Update.
11568 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11569 (expand_symtab_containing_pc, lookup_objfile_from_block)
11570 (lookup_static_symbol, basic_lookup_transparent_type)
11571 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11572 (find_line_symtab, info_sources_command)
11573 (default_collect_symbol_completion_matches_break_on)
11574 (make_source_files_completion_list, find_main_name): Update.
11575 * symmisc.c (print_symbol_bcache_statistics)
11576 (print_objfile_statistics, maintenance_print_symbols)
11577 (maintenance_print_msymbols, maintenance_print_objfiles)
11578 (maintenance_info_symtabs, maintenance_check_symtabs)
11579 (maintenance_expand_symtabs, maintenance_info_line_tables):
11580 Update.
11581 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11582 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11583 (map_overlay_command, unmap_overlay_command)
11584 (simple_overlay_update, expand_symtabs_matching)
11585 (map_symbol_filenames): Update.
11586 * symfile-debug.c (set_debug_symfile): Update.
11587 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11588 Update.
11589 * source.c (select_source_symtab, forget_cached_source_info):
11590 Update.
11591 * solib.c (solib_read_symbols): Update.
11592 * solib-spu.c (append_ocl_sos): Update.
11593 * psymtab.c (maintenance_print_psymbols)
11594 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11595 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11596 * printcmd.c (info_symbol_command): Update.
11597 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11598 Update.
11599 * objfiles.h (class all_objfiles): Remove.
11600 * objfiles.c (have_partial_symbols, have_full_symbols)
11601 (have_minimal_symbols, qsort_cmp, update_section_map)
11602 (shared_objfile_contains_address_p)
11603 (default_iterate_over_objfiles_in_search_order): Update.
11604 * objc-lang.c (info_selectors_command, info_classes_command)
11605 (find_methods): Update.
11606 * minsyms.c (find_solib_trampoline_target): Update.
11607 * maint.c (maintenance_info_sections)
11608 (maintenance_translate_address, count_symtabs_and_blocks):
11609 Update.
11610 * main.c (captured_main_1): Update.
11611 * linux-thread-db.c (try_thread_db_load_from_pdir)
11612 (has_libpthread): Update.
11613 * linespec.c (iterate_over_all_matching_symtabs)
11614 (search_minsyms_for_name): Update.
11615 * jit.c (jit_find_objf_with_entry_addr): Update.
11616 * hppa-tdep.c (find_unwind_entry)
11617 (hppa_lookup_stub_minimal_symbol): Update.
11618 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11619 Update.
11620 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11621 (elf_gnu_ifunc_resolve_by_got): Update.
11622 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11623 * dwarf-index-write.c (save_gdb_index_command): Update.
11624 * cp-support.c (add_symbol_overload_list_qualified): Update.
11625 * breakpoint.c (create_overlay_event_breakpoint)
11626 (create_longjmp_master_breakpoint)
11627 (create_std_terminate_master_breakpoint)
11628 (create_exception_master_breakpoint): Update.
11629 * blockframe.c (find_pc_partial_function): Update.
11630 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11631 (ada_collect_symbol_completion_matches)
11632 (ada_add_global_exceptions): Update.
11633
11634 2019-01-17 Tom Tromey <tom@tromey.com>
11635
11636 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11637 declare VEC.
11638 (solib_target_parse_libraries): Change return type.
11639 (library_list_start_segment, library_list_start_section)
11640 (library_list_end_library, library_list_start_library); Update.
11641 (solib_target_free_library_list): Remove.
11642 (solib_target_parse_libraries): Remove cleanup. Change return
11643 type.
11644 (solib_target_current_sos): Update.
11645
11646 2019-01-17 Tom Tromey <tromey@bapiya>
11647
11648 * valprint.c: Replace "the the" with "the".
11649 * symtab.c: Replace "the the" with "the".
11650 * solib.c: Replace "the the" with "the".
11651 * solib-dsbt.c: Replace "the the" with "the".
11652 * linespec.c: Replace "the the" with "the".
11653 * dwarf2loc.h: Replace "the the" with "the".
11654 * amd64-windows-tdep.c: Replace "the the" with "the".
11655 * aarch64-tdep.c: Replace "the the" with "the".
11656
11657 2019-01-16 Keith Seitz <keiths@redhat.com>
11658
11659 PR gdb/23773
11660 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11661 <builder>: Rename to ..
11662 <m_builder>: ... this and make private.
11663 (dwarf2_cu::get_builder): New method. Change all users of
11664 `builder' to use this method.
11665 (dwarf2_start_symtab): Move to ...
11666 (dwarf2_cu::start_symtab): ... here. Update all callers
11667 (setup_type_unit_groups): Move to ...
11668 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11669 callers.
11670 (dwarf2_cu::reset_builder): New method.
11671 (process_full_compunit, process_full_type_unit): Use
11672 dwarf2_cu::reset_builder.
11673 (follow_die_offset): Record the ancestor CU if it is different
11674 from the followed DIE's CU.
11675 (follow_die_sig_1): Likewise.
11676
11677 2019-01-15 Tom Tromey <tom@tromey.com>
11678
11679 * remote.c (class remote_state) <buf>: Now a char_vector.
11680 <buf_size>: Remove.
11681 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11682 parameter.
11683 (remote_target::getpkt_or_notif_sane_1)
11684 (remote_target::getpkt_sane)
11685 (remote_target::getpkt_or_notif_sane): Likewise.
11686 (class remote_target) <putpkt>: New overload.
11687 (remote_target::read_frame): Change type of "buf_p". Remove
11688 sizeof_p parameter.
11689 (packet_ok): New overload.
11690 (packet_check_result): New overload.
11691 Update all uses.
11692
11693 2019-01-14 Tom Tromey <tom@tromey.com>
11694
11695 * remote-notif.c (handle_notification, remote_notif_ack)
11696 (remote_notif_parse): Make "buf" const.
11697 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11698 const.
11699 (remote_notif_parse, remote_notif_ack, handle_notification):
11700 Likewise.
11701 * remote.c (remote_notif_stop_parse): Make "buf" const.
11702 (remote_target::remote_parse_stop_reply): Make "buf" const.
11703 (remote_notif_stop_ack): Make "buf" const.
11704
11705 2019-01-14 Tom Tromey <tom@tromey.com>
11706
11707 * remote.c (remote_console_output): Make parameter const.
11708
11709 2019-01-14 Tom Tromey <tom@tromey.com>
11710
11711 * target-debug.h (target_debug_print_signals): Constify.
11712 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11713 * procfs.c (procfs_target::pass_signals): Update.
11714 * linux-nat.c (linux_nat_target::pass_signals): Update.
11715 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11716 * target-delegates.c: Rebuild.
11717 * remote.c (remote_target::program_signals): Update.
11718 (remote_target::pass_signals): Update.
11719 * target.c (target_pass_signals): Constify argument.
11720 (target_program_signals): Likewise.
11721 * target.h (struct target_ops) <pass_signals, program_signals>:
11722 Constify argument.
11723 (target_pass_signals, target_program_signals): Constify argument.
11724
11725 2019-01-14 Tom Tromey <tom@tromey.com>
11726
11727 PR tui/28819:
11728 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11729
11730 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11731
11732 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11733 field.
11734 * rs6000-tdep.c: Include reggroups.h.
11735 (IS_V_ALIAS_PSEUDOREG): Define.
11736 (rs6000_register_name): Return names for the "vX" aliases.
11737 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11738 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11739 aliases. Call default_register_reggroup_p for all other
11740 pseudo-registers.
11741 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11742 New functions.
11743 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11744 Handle "vX" aliases.
11745 (v_alias_pseudo_register_collect): New function.
11746 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11747 (rs6000_gdbarch_init): Initialize "vX" aliases as
11748 pseudo-registers. Restore registration of
11749 rs6000_pseudo_register_reggroup_p with
11750 set_tdesc_pseudo_register_reggroup_p.
11751
11752 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11753
11754 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11755 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11756 set_gdbarch_num_pseudo_regs.
11757
11758 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11759
11760 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11761 Remove arg prefixname, add do_set and do_show.
11762 Add member functions set_list and show_list.
11763 * cli/cli-style.c (class cli_style_option): Update accordingly.
11764 (style_set_list): Move to file scope.
11765 (style_show_list): Likewise.
11766 (set_style): Call help_list.
11767 (show_style): Call cmd_show_list.
11768 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11769 Update to use the new macro.
11770
11771 2019-10-12 Joel Brobecker <brobecker@adacore.com>
11772
11773 * ada-lang.c (_initialize_ada_language): Expand the help text
11774 for the "catch exception" command.
11775
11776 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11777
11778 * symtab.c (matching_obj_sections): Initialize obj,
11779 declare it closer to its usage.
11780
11781 2019-01-10 Tom Tromey <tom@tromey.com>
11782
11783 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11784 (basic_inf_threads_range): Remove.
11785 (inf_threads_range, inf_non_exited_threads_range)
11786 (safe_inf_threads_range): Use next_adapter.
11787
11788 2019-01-10 Keith Seitz <keiths@redhat.com>
11789
11790 PR gdb/23712
11791 PR symtab/23010
11792 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11793 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11794
11795 2019-01-10 Keith Seitz <keiths@redhat.com>
11796
11797 PR gdb/23712
11798 PR symtab/23010
11799 * dictionary.c (pending_to_vector): Remove.
11800 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11801 Remove _1 suffix, replacing functions of the same name. Update
11802 all callers.
11803 (dict_create_hashed, dict_create_hashed_expandable)
11804 (dict_create_linear, dict_create_linear_expandable, dict_free)
11805 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11806 Make functions static.
11807
11808 2019-01-10 Keith Seitz <keiths@redhat.com>
11809
11810 PR gdb/23712
11811 PR symtab/23010
11812 * dictionary.h (struct dictionary): Replace declaration with
11813 multidictionary.
11814 (dict_create_hashed, dict_create_hashed_expandable)
11815 (dict_create_linear, dict_create_linear_expandable)
11816 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11817 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11818 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11819 taking multidictionary argument.
11820 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11821 * block.h (struct block) <dict>: Change to multidictionary
11822 and rename `multidict'.
11823 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11824 symmisc.c: Update all dictionary references to multidictionary.
11825
11826 2019-01-10 Keith Seitz <keiths@redhat.com>
11827
11828 PR gdb/23712
11829 PR symtab/23010
11830 * dictionary.c: Include unordered_map.
11831 (pending_to_vector): New function.
11832 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11833 Rewrite the non-"_1" functions to take vector instead
11834 of linked list.
11835 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11836 "new" _1 versions of the same name.
11837 (multidictionary): Define.
11838 (std::hash<enum language): New definition.
11839 (collate_pending_symbols_by_language, mdict_create_hashed)
11840 (mdict_create_hashed_expandable, mdict_create_linear)
11841 (mdict_create_linear_expandable, mdict_free)
11842 (find_language_dictionary, create_new_language_dictionary)
11843 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11844 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11845 (mdict_size, mdict_empty): New functions.
11846 * dictionary.h (mdict_iterator): Define.
11847
11848 2019-01-10 Pedro Alves <palves@redhat.com>
11849
11850 * breakpoint.c (read_uploaded_action)
11851 (create_tracepoint_from_upload): Adjust to use
11852 gdb::unique_xmalloc_ptr.
11853 * ctf.c (ctf_write_uploaded_tp):
11854 (SET_ARRAY_FIELD): Use emplace_back.
11855 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11856 * tracefile-tfile.c (tfile_write_uploaded_tp):
11857 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11858 gdb::unique_xmalloc_ptr.
11859 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11860 at_string, cond_string, cmd_strings>: Replace char pointers
11861 with gdb::unique_xmalloc_ptr.
11862
11863 2019-01-10 Pedro Alves <palves@redhat.com>
11864
11865 * solib-target.c (library_list_start_library): Don't xstrdup name.
11866
11867 2019-01-10 Pedro Alves <palves@redhat.com>
11868
11869 * mdebugread.c (parse_partial_symbols): Use
11870 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11871
11872 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11873
11874 * linux-fork.c (scoped_switch_fork_info)
11875 <~scoped_switch_fork_info>: Fix incorrect variable name.
11876
11877 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11878
11879 * linux-fork.c (scoped_switch_fork_info)
11880 <scoped_switch_fork_info>: Make explicit.
11881 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11882
11883 2019-01-10 Tom Tromey <tom@tromey.com>
11884
11885 * objfiles.h (objfile::reset_psymtabs): Update.
11886 * objfiles.c (objfile::objfile): Update.
11887 * psymtab.h (psymtab_storage::obstack): Update.
11888 (psymtab_storage::m_obstack): Use gdb::optional.
11889 (class psymtab_storage): Update comment. Remove objfile
11890 parameter.
11891 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11892
11893 2019-01-10 Tom Tromey <tom@tromey.com>
11894
11895 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11896 <free_psymtabs>: Now private.
11897 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11898 (allocate_psymtab): Use new method.
11899
11900 2019-01-10 Tom Tromey <tom@tromey.com>
11901
11902 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11903 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11904 * mdebugread.c (parse_partial_symbols): Use
11905 allocate_dependencies.
11906 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11907 allocate_dependencies.
11908 (process_psymtab_comp_unit_reader)
11909 (build_type_psymtab_dependencies): Likewise.
11910 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11911
11912 2019-01-10 Tom Tromey <tom@tromey.com>
11913
11914 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11915 PSYMBOL_SET_LANGUAGE.
11916 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11917
11918 2019-01-10 Tom Tromey <tom@tromey.com>
11919
11920 * psymtab.h (psymtab_storage::obstack): New method.
11921 <m_obstack>: Rename from obstack; now private.
11922 * psymtab.c (psymtab_storage): Update.
11923 * dwarf2read.c (create_addrmap_from_index)
11924 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11925 Update.
11926
11927 2019-01-10 Tom Tromey <tom@tromey.com>
11928
11929 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11930 * objfiles.h (objfile::reset_psymtabs): New method.
11931
11932 2019-01-10 Tom Tromey <tom@tromey.com>
11933
11934 * symmisc.c (print_symbol_bcache_statistics): Update.
11935 (print_objfile_statistics): Update.
11936 * symfile.c (reread_symbols): Update.
11937 * psymtab.h (class psymtab_storage): New.
11938 * psymtab.c (psymtab_storage): New constructor.
11939 (~psymtab_storage): New destructor.
11940 (require_partial_symbols): Update.
11941 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11942 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11943 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11944 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11945 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11946 (start_psymtab_common, end_psymtab_common)
11947 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11948 (allocate_psymtab): Update.
11949 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11950 Update.
11951 (dump_psymtab_addrmap, maintenance_print_psymbols)
11952 (maintenance_check_psymtabs): Update.
11953 (class objfile_psymtabs): Move to objfiles.h.
11954 * psympriv.h (discard_psymtab): Now inline.
11955 (psymtab_discarder::psymtab_discarder): Update.
11956 (psymtab_discarder::~psymtab_discarder): Update.
11957 (ALL_OBJFILE_PSYMTABS): Rewrite.
11958 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11959 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11960 Remove fields.
11961 <partial_symtabs>: New field.
11962 (class objfile_psymtabs): Move from psymtab.h. Update.
11963 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11964 psymbol_cache.
11965 (objfile::~objfile): Don't destroy psymbol_cache.
11966 * mdebugread.c (parse_partial_symbols): Update.
11967 * dwarf2read.c (create_addrmap_from_index)
11968 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11969 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11970 (add_partial_subprogram, dwarf2_ranges_read): Update.
11971 * dwarf-index-write.c (write_address_map)
11972 (write_one_signatured_type, recursively_write_psymbols)
11973 (class debug_names, class debug_names, write_psymtabs_to_index):
11974 Update.
11975
11976 2019-01-10 Tom Tromey <tom@tromey.com>
11977
11978 * symtab.h (SYMBOL_SET_NAMES): Update.
11979 (symbol_set_names): Update.
11980 (MSYMBOL_SET_NAMES): Update.
11981 * symtab.c (symbol_set_names): Change argument to be an
11982 objfile_per_bfd_storage.
11983 * psymtab.c (add_psymbol_to_bcache): Update.
11984 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11985
11986 2019-01-10 Tom Tromey <tom@tromey.com>
11987
11988 * symtab.c (create_demangled_names_hash): Change argument to be an
11989 objfile_per_bfd_storage.
11990 (symbol_set_names): Update.
11991
11992 2019-01-10 Tom Tromey <tom@tromey.com>
11993
11994 * xcoffread.c (xcoff_initial_scan): Unconditionally call
11995 init_psymbol_list.
11996 * psymtab.c (init_psymbol_list): Do nothing if already called.
11997 * psympriv.h (init_psymbol_list): Add comment.
11998 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
11999 init_psymbol_list.
12000 * dbxread.c (dbx_symfile_read): Unconditionally call
12001 init_psymbol_list.
12002
12003 2019-01-10 Tom Tromey <tom@tromey.com>
12004
12005 * xcoffread.c (scan_xcoff_symtab): Update.
12006 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12007 "where".
12008 * mdebugread.c (parse_partial_symbols)
12009 (handle_psymbol_enumerators): Update.
12010 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12011 * dbxread.c (read_dbx_symtab): Update.
12012 * psympriv.h (psymbol_placement): New enum.
12013 (add_psymbol_to_list): Update.
12014
12015 2019-01-10 Tom Tromey <tom@tromey.com>
12016
12017 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12018 static_psymbols parameters.
12019 (scan_xcoff_symtab): Update.
12020 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12021 static_psymbols parameters.
12022 * psympriv.h (start_psymtab_common): Update.
12023 * mdebugread.c (parse_partial_symbols): Update.
12024 * dwarf2read.c (create_partial_symtab): Update.
12025 * dbxread.c (read_dbx_symtab): Update.
12026 (start_psymtab): Remove global_psymbols and static_psymbols
12027 parameters.
12028
12029 2019-01-10 Tom Tromey <tom@tromey.com>
12030
12031 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12032 * psymtab.c (allocate_psymtab): Add comment.
12033 * psympriv.h (allocate_psymtab): Add comment.
12034 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12035 initializations.
12036 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12037
12038 2019-01-10 Tom Tromey <tom@tromey.com>
12039
12040 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12041 Don't declare.
12042 * mipsread.c: Include mdebugread.h.
12043 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12044 Declare.
12045 * elfread.c: Include mdebugread.h.
12046
12047 2019-01-09 Tom Tromey <tom@tromey.com>
12048
12049 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12050 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12051 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12052 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12053 (psym_lookup_symbol, psym_find_last_source_symtab)
12054 (psym_forget_cached_source_info, psym_print_stats)
12055 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12056 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12057 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12058 (psym_find_compunit_symtab_by_address)
12059 (maintenance_print_psymbols, maintenance_info_psymtabs)
12060 (maintenance_check_psymtabs): Use ranged for.
12061 * psymtab.h (class objfile_psymtabs): New.
12062 (require_partial_symbols): Return objfile_psymtabs.
12063 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12064
12065 2019-01-09 Tom Tromey <tom@tromey.com>
12066
12067 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12068 (find_pc_mapped_section, list_overlays_command)
12069 (map_overlay_command, unmap_overlay_command)
12070 (simple_overlay_update): Use all_objfiles.
12071 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12072 * printcmd.c (info_symbol_command): Use all_objfiles.
12073 * objfiles.h (ALL_OBJSECTIONS): Remove.
12074 * maint.c (maintenance_translate_address): Use all_objfiles.
12075 * gcore.c (gcore_create_callback): Use all_objfiles.
12076 (objfile_find_memory_regions): Likewise.
12077
12078 2019-01-09 Tom Tromey <tom@tromey.com>
12079
12080 * symtab.c (find_line_symtab, info_sources_command)
12081 (make_source_files_completion_list): Use objfile_compunits.
12082 * source.c (select_source_symtab): Use objfile_compunits.
12083 * objfiles.h (struct objfile): Update comment.
12084 (ALL_OBJFILES): Remove.
12085 (ALL_FILETABS): Remove.
12086 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12087 objfile_compunits.
12088
12089 2019-01-09 Tom Tromey <tom@tromey.com>
12090
12091 * symmisc.c (print_objfile_statistics, dump_objfile)
12092 (maintenance_print_symbols): Use compunit_filetabs.
12093 * source.c (forget_cached_source_info_for_objfile): Use
12094 compunit_filetabs.
12095 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12096 (ALL_FILETABS): Use compunit_filetabs.
12097 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12098 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12099
12100 2019-01-09 Tom Tromey <tom@tromey.com>
12101
12102 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12103 (compunit_filetabs): New.
12104 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12105 compunit_filetabs.
12106 (info_sources_command, make_source_files_completion_list): Remove
12107 declaration.
12108 * symmisc.c (print_objfile_statistics, dump_objfile)
12109 (maintenance_print_symbols): Remove declaration.
12110 (maintenance_info_symtabs): Use compunit_filetabs.
12111 (maintenance_info_line_tables): Likewise.
12112 * source.c (select_source_symtab): Change local variable name.
12113 (forget_cached_source_info_for_objfile): Remove declaration.
12114 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12115 * objfiles.c (objfile_relocate1): Remove declaration.
12116 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12117 declaration.
12118 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12119 * coffread.c (coff_symtab_read): Remove declaration.
12120 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12121 compunit_filetabs.
12122
12123 2019-01-09 Tom Tromey <tom@tromey.com>
12124
12125 * symtab.c (lookup_objfile_from_block)
12126 (find_pc_sect_compunit_symtab, search_symbols)
12127 (default_collect_symbol_completion_matches_break_on): Use
12128 objfile_compunits.
12129 * objfiles.h (ALL_COMPUNITS): Remove.
12130 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12131 * cp-support.c (add_symbol_overload_list_qualified): Use
12132 objfile_compunits.
12133 * ada-lang.c (ada_collect_symbol_completion_matches)
12134 (ada_add_global_exceptions): Use objfile_compunits.
12135
12136 2019-01-09 Tom Tromey <tom@tromey.com>
12137
12138 * source.c (select_source_symtab)
12139 (forget_cached_source_info_for_objfile): Remove declaration.
12140 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12141 declaration.
12142 * maint.c (count_symtabs_and_blocks): Remove declaration.
12143 * cp-support.c (add_symbol_overload_list_qualified): Remove
12144 declaration.
12145 * coffread.c (coff_symtab_read): Remove declaration.
12146 * symtab.c (lookup_symbol_in_objfile_symtabs)
12147 (basic_lookup_transparent_type_1): Use objfile_compunits.
12148 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12149 (info_sources_command, search_symbols)
12150 (default_collect_symbol_completion_matches_break_on)
12151 (make_source_files_completion_list): Remove declaration.
12152 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12153 (ada_collect_symbol_completion_matches)
12154 (ada_add_global_exceptions): Remove declaration.
12155 * linespec.c (iterate_over_all_matching_symtabs): Use
12156 objfile_compunits.
12157 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12158 (class objfile_compunits): New.
12159 (ALL_COMPUNITS): Use objfile_compunits.
12160 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12161 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12162 objfile_compunits.
12163 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12164
12165 2019-01-09 Tom Tromey <tom@tromey.com>
12166
12167 * symtab.c (search_symbols)
12168 (default_collect_symbol_completion_matches_break_on): Use
12169 objfile_msymbols.
12170 * ada-lang.c (ada_lookup_simple_minsym)
12171 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12172 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12173 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12174 objfile_msymbols.
12175 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12176 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12177 * objc-lang.c (find_methods): Use objfile_msymbols.
12178 (info_selectors_command, info_classes_command): Likewise.
12179 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12180 * objfiles.h (class objfile_msymbols): New.
12181 (ALL_OBJFILE_MSYMBOLS): Remove.
12182 (ALL_MSYMBOLS): Remove.
12183
12184 2019-01-09 Tom Tromey <tom@tromey.com>
12185
12186 * common/next-iterator.h (next_adapter): Add Iterator template
12187 parameter.
12188 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12189 (class all_objfiles_safe): New.
12190 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12191 * objfiles.c (put_objfile_before): Update comment.
12192 (add_separate_debug_objfile): Likewise.
12193 (free_all_objfiles): Use all_objfiles_safe.
12194 (objfile_purge_solibs): Likewise.
12195
12196 2019-01-09 Tom Tromey <tom@tromey.com>
12197
12198 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12199 (expand_symtab_containing_pc, lookup_static_symbol)
12200 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12201 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12202 all_objfiles.
12203 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12204 * breakpoint.c (create_overlay_event_breakpoint)
12205 (create_longjmp_master_breakpoint)
12206 (create_std_terminate_master_breakpoint)
12207 (create_exception_master_breakpoint): Use all_objfiles.
12208 * linux-thread-db.c (try_thread_db_load_from_pdir)
12209 (has_libpthread): Use all_objfiles.
12210 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12211 * linespec.c (iterate_over_all_matching_symtabs)
12212 (search_minsyms_for_name): Use all_objfiles.
12213 * maint.c (maintenance_info_sections): Use all_objfiles.
12214 * main.c (captured_main_1): Use all_objfiles.
12215 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12216 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12217 * guile/scm-pretty-print.c
12218 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12219 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12220 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12221 (maintenance_print_msymbols): Use all_objfiles.
12222 * source.c (select_source_symtab): Use all_objfiles.
12223 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12224 * symfile.c (remove_symbol_file_command)
12225 (expand_symtabs_matching, map_symbol_filenames): Use
12226 all_objfiles.
12227 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12228 all_objfiles.
12229 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12230 * objc-lang.c (find_methods): Use all_objfiles.
12231 * objfiles.c (have_partial_symbols, have_full_symbols)
12232 (have_minimal_symbols, qsort_cmp)
12233 (default_iterate_over_objfiles_in_search_order): Use
12234 all_objfiles.
12235 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12236 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12237 (maintenance_check_psymtabs): Use all_objfiles.
12238 (ALL_PSYMTABS): Remove.
12239 * compile/compile-object-run.c (do_module_cleanup): Use
12240 all_objfiles.
12241 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12242 * cp-support.c (add_symbol_overload_list_qualified): Use
12243 all_objfiles.
12244 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12245 Use all_objfiles.
12246 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12247 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12248 all_objfiles.
12249 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12250 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12251 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12252 Uses all_objfiles.
12253 * solib.c (solib_read_symbols): Use all_objfiles
12254
12255 2019-01-09 Tom Tromey <tom@tromey.com>
12256
12257 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12258 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12259 all_objfiles.
12260 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12261 * symmisc.c (print_symbol_bcache_statistics)
12262 (print_objfile_statistics, maintenance_print_objfiles)
12263 (maintenance_info_symtabs, maintenance_check_symtabs)
12264 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12265 all_objfiles.
12266 * source.c (forget_cached_source_info): Use all_objfiles.
12267 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12268 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12269 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12270 * objfiles.c (update_section_map): Use all_objfiles.
12271 (shared_objfile_contains_address_p): Likewise.
12272 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12273 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12274
12275 2019-01-09 Tom Tromey <tom@tromey.com>
12276
12277 * common/next-iterator.h: New file.
12278 * objfiles.h (class all_objfiles): New.
12279 (struct objfile_iterator): New.
12280
12281 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12282
12283 * NEWS: Move the description of the changed "frame", "select-frame",
12284 and "info frame" commands to the Changed commands section.
12285
12286 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12287
12288 * gdbtypes.c (check_stub_method_group): Remove handling of old
12289 mangling schemes.
12290 * linespec.c (find_methods): Likewise.
12291 * stabsread.c (read_member_functions): Likewise.
12292 * valops.c (search_struct_method): Likewise.
12293 (value_struct_elt_for_reference): Likewise.
12294 * NEWS: Mention this change.
12295
12296 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12297
12298 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12299 print_source_lines.
12300 * source.c (print_source_lines_base): Update line number check.
12301 (print_source_lines): New function.
12302 (source_lines_range::source_lines_range): New function.
12303 * source.h (class source_lines_range): New class.
12304 (print_source_lines): New declaration.
12305
12306 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12307
12308 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12309
12310 2019-01-08 Tom Tromey <tom@tromey.com>
12311 Simon Marchi <simon.marchi@ericsson.com>
12312
12313 PR gdb/24060
12314 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12315 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12316 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12317 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12318 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12319 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12320
12321 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12322
12323 * source.c (select_source_symtab): Move header comment to
12324 declaration in source.h.
12325 (forget_cached_source_info_for_objfile): Likewise.
12326 (forget_cached_source_info): Likewise.
12327 (identify_source_line): Likewise.
12328 * source.h (identify_source_line): Move declaration from symtab.h
12329 and add comment from source.c
12330 (print_source_lines): Likewise.
12331 (forget_cached_source_info_for_objfile): Likewise.
12332 (forget_cached_source_info): Likewise.
12333 (select_source_symtab): Likewise.
12334 (enum print_source_lines_flag): Move definition from symtab.h.
12335 * symtab.h (identify_source_line): Move declaration to source.h.
12336 (print_source_lines): Likewise.
12337 (forget_cached_source_info_for_objfile): Likewise.
12338 (forget_cached_source_info): Likewise.
12339 (select_source_symtab): Likewise.
12340 (enum print_source_lines_flag): Move definition to source.h.
12341 * tui/tui-hooks.c: Add 'source.h' include.
12342
12343 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12344
12345 * source.c (print_source_lines_base): Handle requests to print
12346 reverse line number sequences, and guard against empty lines
12347 string.
12348
12349 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12350
12351 * source.c (print_source_lines_base): Fix skip of '\r' if next
12352 character is '\n'.
12353
12354 2019-01-06 Tom Tromey <tom@tromey.com>
12355
12356 * c-exp.y (struct c_parse_state) <macro_original_text,
12357 expansion_obstack>: New member.
12358 (macro_original_text, expansion_obstack): Remove globals.
12359 (scan_macro_expansion, scanning_macro_expansion)
12360 (finished_macro_expansion): Update.
12361 (scan_macro_cleanup): Remove.
12362 (yylex, c_parse): Update.
12363
12364 2019-01-06 Tom Tromey <tom@tromey.com>
12365
12366 * c-exp.y (struct c_parse_state) <strings>: New member.
12367 (operator_stoken): Update.
12368
12369 2019-01-06 Tom Tromey <tom@tromey.com>
12370
12371 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12372 (union type_stack_elt) <typelist_val>: Now a pointer to
12373 std::vector.
12374 (type_stack_cleanup): Don't declare.
12375 (push_typelist): Update.
12376 * parse.c (pop_typelist): Return a std::vector.
12377 (push_typelist): Take a std::vector.
12378 (follow_types): Update. Do not free args.
12379 (type_stack_cleanup): Remove.
12380 * c-exp.y (struct c_parse_state): New.
12381 (cpstate): New global.
12382 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12383 (nonempty_typelist): Update.
12384 (func_mod): Create a new vector.
12385 (c_parse): Create a c_parse_state.
12386 (check_parameter_typelist): Do not delete params.
12387 (function_method): Update. Do not delete type_list.
12388
12389 2019-01-06 Tom Tromey <tom@tromey.com>
12390
12391 PR gdb/28155:
12392 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12393 check_typedef.
12394 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12395 (print_return_value): Likewise.
12396
12397 2019-01-05 Tom Tromey <tom@tromey.com>
12398
12399 * contrib/cleanup_check.py: Remove.
12400 * contrib/gcc-with-excheck: Remove.
12401 * contrib/exsummary.py: Remove.
12402 * contrib/excheck.py: Remove.
12403
12404 2019-01-05 Joel Brobecker <brobecker@adacore.com>
12405
12406 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12407 NULL. Initialize tpprev to NULL instead of assigning it
12408 to NULL on the next statement.
12409 * windows-nat.c (windows_delete_thread): Remove check for
12410 main_thread_id before printing thread exit notifications.
12411 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12412 Remove thread ID check against main_thread_id.
12413 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12414 windows_delete_thread.
12415 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12416
12417 2019-01-04 Tom Tromey <tom@tromey.com>
12418
12419 * compile/compile.c (_initialize_compile): Use upper case for
12420 metasyntactic variables.
12421 * symmisc.c (_initialize_symmisc): Use upper case for
12422 metasyntactic variables.
12423 * psymtab.c (_initialize_psymtab): Use upper case for
12424 metasyntactic variables.
12425 * demangle.c (demangle_command): Use upper case for metasyntactic
12426 variables.
12427 (_initialize_demangler): Likewise.
12428 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12429 variables.
12430
12431 2019-01-03 Tom Tromey <tom@tromey.com>
12432
12433 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12434
12435 2019-01-03 Tom Tromey <tom@tromey.com>
12436
12437 * python/py-symtab.c (salpy_str): Update.
12438 (struct salpy_sal_object) <symtab>: Now a PyObject.
12439 (salpy_dealloc): Update.
12440 (del_objfile_sal): Use gdbpy_ref.
12441
12442 2019-01-03 Tom Tromey <tom@tromey.com>
12443
12444 * python/py-type.c (convert_field): Use new_reference. Return
12445 gdbpy_ref.
12446 (make_fielditem): Return gdbpy_ref.
12447 (typy_fields): Update.
12448 (typy_getitem): Update.
12449 (field_name): Return gdbpy_ref. Use new_reference.
12450 (typy_iterator_iternext): Update.
12451
12452 2019-01-03 Tom Tromey <tom@tromey.com>
12453
12454 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12455
12456 2019-01-03 Tom Tromey <tom@tromey.com>
12457
12458 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12459 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12460 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12461 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12462 (pspy_set_type_printers): Likewise.
12463 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12464 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12465 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12466 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12467 (objfpy_set_type_printers): Likewise.
12468
12469 2019-01-03 Tom Tromey <tom@tromey.com>
12470
12471 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12472 (gdbpy_print_stack): Use gdbpy_err_fetch.
12473 * python/python-internal.h (class gdbpy_err_fetch): New class.
12474 (class gdbpy_enter) <m_error_type, m_error_value,
12475 m_error_traceback>: Remove.
12476 <m_error>: New member.
12477 (gdbpy_exception_to_string): Don't declare.
12478 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12479 * python/py-value.c (convert_value_from_python): Use
12480 gdbpy_err_fetch.
12481 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12482 gdbpy_exception_to_string.
12483 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12484 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12485 gdbpy_err_fetch.
12486
12487 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12488
12489 * linux-nat.c (delete_lwp_cleanup): Delete.
12490 (struct lwp_deleter): New struct.
12491 (lwp_info_up): New typedef.
12492 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12493 lwp_info_up.
12494
12495 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12496
12497 * linux-fork.c (class scoped_switch_fork_info): New class.
12498 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12499
12500 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12501
12502 * valops.c (find_overload_match): Remove use of null_cleanup, and
12503 calls to do_cleanups.
12504
12505 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12506
12507 * compile/compile-cplus-types.c
12508 (compile_cplus_instance::decl_name): Handle changes to
12509 cp_func_name.
12510 * cp-support.c (cp_func_name): Update header comment, update
12511 return type.
12512 * cp-support.h (cp_func_name): Update return type in declaration.
12513 * valops.c (find_overload_match): Move temp_func local to top
12514 level of function and change its type. Use temp_func to hold and
12515 delete temporary string obtained from cp_func_name.
12516
12517 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12518
12519 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12520 gdb::char_vector, remove cleanup, and update uses of `msg`.
12521
12522 2019-01-03 Jim Wilson <jimw@sifive.com>
12523
12524 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12525
12526 2019-01-02 Tom Tromey <tom@tromey.com>
12527
12528 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12529 (tdesc_parse_xml): Remove cleanups.
12530 * target-descriptions.h (make_cleanup_free_target_description):
12531 Don't declare.
12532 (target_desc_deleter): New struct.
12533 (target_desc_up): New typedef.
12534 * target-descriptions.c (target_desc_deleter::operator()): Rename
12535 from free_target_description.
12536 (make_cleanup_free_target_description): Remove.
12537
12538 2019-01-02 Tom Tromey <tom@tromey.com>
12539
12540 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12541 constructor, destructor.
12542 (linespec_parser): Remove typedef.
12543 (~linespec_parser): Rename from linespec_parser_delete.
12544 (linespec_lex_to_end, linespec_complete_label)
12545 (linespec_complete): Update.
12546 (decode_line_full): Remove cleanups.
12547 (decode_line_1): Update.
12548
12549 2019-01-02 Tom Tromey <tom@tromey.com>
12550
12551 * python/python-internal.h (inferior_to_inferior_object): Change
12552 return type.
12553 * python/py-exitedevent.c (create_exited_event_object): Update.
12554 * python/py-inferior.c (inferior_to_inferior_object): Return
12555 gdbpy_ref.
12556 (python_new_inferior, python_inferior_deleted)
12557 (thread_to_thread_object, delete_thread_object)
12558 (build_inferior_list, gdbpy_selected_inferior): Update.
12559 * python/py-infthread.c (create_thread_object): Update. Also fail
12560 if inferior_to_inferior_object fails.
12561
12562 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12563
12564 * inferior.h (class inferior) <displaced_step_state>: New field.
12565 * infrun.h (struct displaced_step_state): Move here from
12566 infrun.c. Initialize fields, add constructor.
12567 <inf>: Remove field.
12568 <reset>: New method.
12569 * infrun.c (struct displaced_step_inferior_state): Move to
12570 infrun.h.
12571 (displaced_step_inferior_states): Remove.
12572 (get_displaced_stepping_state): Adust.
12573 (displaced_step_in_progress_any_inferior): Adjust.
12574 (displaced_step_in_progress_thread): Adjust.
12575 (displaced_step_in_progress): Adjust.
12576 (add_displaced_stepping_state): Remove.
12577 (get_displaced_step_closure_by_addr): Adjust.
12578 (remove_displaced_stepping_state): Remove.
12579 (infrun_inferior_exit): Call displaced_step_state.reset.
12580 (use_displaced_stepping): Don't check for NULL.
12581 (displaced_step_prepare_throw): Call
12582 get_displaced_stepping_state.
12583 (displaced_step_fixup): Don't check for NULL.
12584 (prepare_for_detach): Don't check for NULL.
12585
12586 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12587
12588 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12589 in case of call that did not complete.
12590
12591 2019-01-02 Andrey Utkin <autkin@undo.io>
12592
12593 * symfile.c (find_separate_debug_file): Fix search of debug files for
12594 remote debuggee.
12595
12596 2019-01-02 Tom Tromey <tom@tromey.com>
12597
12598 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12599 indentation.
12600 * python/py-frame.c (frapy_older): Remove cast.
12601 (frapy_newer): Likewise.
12602 * python/py-breakpoint.c (local_setattro): Remove cast.
12603 * python/py-arch.c (archpy_name): Remove local variable.
12604 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12605
12606 2019-01-02 Joel Brobecker <brobecker@adacore.com>
12607
12608 * unittests/basic_string_view/element_access/char/empty.cc:
12609 Fix year range in copyright header.
12610
12611 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12612
12613 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12614 Delete.
12615 <operator==>: Update with for removed field.
12616 <hash>: Likewise.
12617 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12618 <isa_features>: ...this.
12619 <abi_features>: New field.
12620 (riscv_isa_flen): Update comment.
12621 (riscv_abi_xlen): New declaration.
12622 (riscv_abi_flen): New declaration.
12623 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12624 isa_features.
12625 (riscv_abi_xlen): New function.
12626 (riscv_isa_flen): Update to get answer from isa_features.
12627 (riscv_abi_flen): New function.
12628 (riscv_has_fp_abi): Update to get answer from abi_features.
12629 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12630 xlen and flen.
12631 (riscv_call_info) <xlen, flen>: Update comment.
12632 (riscv_call_arg_struct): Remove invalid assertions
12633 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12634 is removed.
12635 (riscv_gdbarch_init): Gather isa features and abi features
12636 separately, ensure both match on the gdbarch when reusing an old
12637 gdbarch. Relax an error check to allow 32-bit abi float to run on
12638 a target with 64-bit float hardware.
12639
12640 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12641
12642 * source.c (search_command_helper): Stop reverse search
12643 when line 1 has been searched.
12644
12645 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12646
12647 * record-full.c (record_full_base_target::close): Rewrite
12648 record_full_core_buf_list free logic.
12649
12650 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12651
12652 * break-catch-syscall.c (print_one_catch_syscall): xfree
12653 the last text.
12654
12655 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12656
12657 * top.c (print_gdb_version): Update Copyright year in version
12658 message.
12659
12660 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12661
12662 Update copyright year range in all GDB files.
12663
12664 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
12665
12666 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
12667
12668 For older changes see ChangeLog-2018.
12669 \f
12670 Local Variables:
12671 mode: change-log
12672 left-margin: 8
12673 fill-column: 74
12674 version-control: never
12675 coding: utf-8
12676 End:
12677