bedc073d9c8c92a53e1ea512a0995ec72de22996
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-09-20 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4 declare.
5 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
6 tui_clear_source_windows_detail.
7 * tui/tui-winsource.h (struct tui_source_window_base)
8 <clear_detail>: Don't declare.
9 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
10 Remove.
11 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
12
13 2019-09-20 Tom Tromey <tromey@adacore.com>
14
15 PR ada/24919:
16 * block.c (contained_in): Fix final return value.
17
18 2019-09-20 Alan Modra <amodra@gmail.com>
19
20 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
21 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
22 (read_indirect_string_from_dwz): Use bfd accessor.
23 * dwarf2read.h (struct dwz_file <filename>): Likewise.
24 * machoread.c (macho_symfile_read_all_oso): Likewise.
25 * solib.c (solib_bfd_open): Likewise.
26
27 2019-09-19 Christian Biesinger <cbiesinger@google.com>
28
29 * eval.c: Move declaration of overload_resolution to...
30 * value.h: ...here.
31
32 2019-09-19 Christian Biesinger <cbiesinger@google.com>
33
34 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
35 * arm-linux-tdep.c: Likewise.
36 * arm-nbsd-nat.c: Likewise.
37 * arm-tdep.h: Declare arm_apcs_32.
38 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
39
40 2019-09-19 Christian Biesinger <cbiesinger@google.com>
41
42 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
43 * dwarf2read.h: Declare dwarf_always_disassemble.
44
45 2019-09-19 Tom de Vries <tdevries@suse.de>
46
47 PR gdb/25009
48 * source-cache.c (source_cache::ensure): Catch exception thrown during
49 construction of the highlighter.
50
51 2019-09-18 Alan Modra <amodra@gmail.com>
52
53 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
54 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
55 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
56 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
57 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
58 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
59 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
60 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
61 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
62 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
63 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
64 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
65 * solib-spu.c, * solib-svr4.c, * solib-target.c,
66 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
67 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
68 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
69 * mi/mi-interp.c: Update throughout for bfd section macro and
70 function changes.
71 * gcore (gcore_create_callback): Use bfd_set_section_lma.
72 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
73
74 2019-09-18 Tom Tromey <tom@tromey.com>
75
76 * NEWS: Add entry.
77 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
78 call rl_initialize.
79 (tui_enable): Do not call rl_initialize.
80
81 2019-09-18 Christian Groessler <chris@groessler.org>
82
83 * alpha-linux-nat.c: Include gdbarch.h.
84
85 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
86
87 * ui-file.c: Include cli/cli-style.h.
88 (term_cli_styling): Remove cli_styling declaration.
89
90 2019-09-18 Alan Modra <amodra@gmail.com>
91
92 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
93 to bfd_asymbol_section.
94
95 2019-09-18 Alan Modra <amodra@gmail.com>
96
97 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
98 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
99 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
100
101 2019-09-18 Alan Modra <amodra@gmail.com>
102
103 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
104 * spu-linux-nat.c (spu_bfd_open): Likewise.
105
106 2019-09-18 Christian Biesinger <cbiesinger@google.com>
107
108 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
109 to bool to match definition in dwarf2read.c.
110
111 2019-09-17 Christian Biesinger <cbiesinger@google.com>
112
113 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
114 (print_signatures): Likewise.
115 (trust_pad_over_xvs): Likewise.
116 * arch/aarch64-insn.c (aarch64_debug): Likewise.
117 * arch/aarch64-insn.h (aarch64_debug): Likewise.
118 * arm-linux-nat.c (arm_apcs_32): Likewise.
119 * arm-linux-tdep.c (arm_apcs_32): Likewise.
120 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
121 * arm-tdep.c (arm_debug): Likewise.
122 (arm_apcs_32): Likewise.
123 * auto-load.c (debug_auto_load): Likewise.
124 (auto_load_gdb_scripts): Likewise.
125 (global_auto_load): Likewise.
126 (auto_load_local_gdbinit): Likewise.
127 (auto_load_local_gdbinit_loaded): Likewise.
128 * auto-load.h (global_auto_load): Likewise.
129 (auto_load_local_gdbinit): Likewise.
130 (auto_load_local_gdbinit_loaded): Likewise.
131 * breakpoint.c (disconnected_dprintf): Likewise.
132 (breakpoint_proceeded): Likewise.
133 (automatic_hardware_breakpoints): Likewise.
134 (always_inserted_mode): Likewise.
135 (target_exact_watchpoints): Likewise.
136 (_initialize_breakpoint): Update.
137 * breakpoint.h (target_exact_watchpoints): Change to bool.
138 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
139 * cli/cli-cmds.c (trace_commands): Likewise.
140 * cli/cli-cmds.h (trace_commands): Likewise.
141 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
142 to bool*.
143 * cli/cli-logging.c (logging_overwrite): Change to bool.
144 (logging_redirect): Likewise.
145 (debug_redirect): Likewise.
146 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
147 (struct boolean_option_def) <get_var_address_cb_>: Change return type
148 to bool.
149 <boolean_option_def>: Update.
150 (struct flag_option_def): Change default type of Context to bool
151 from int.
152 <flag_option_def>: Change return type of var_address_cb_ to bool*.
153 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
154 (get_setshow_command_value_string): Likewise.
155 * cli/cli-style.c (cli_styling): Change to bool.
156 (source_styling): Likewise.
157 * cli/cli-style.h (source_styling): Likewise.
158 (cli_styling): Likewise.
159 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
160 to bool.
161 * command.h (var_types): Update comment.
162 (add_setshow_boolean_cmd): Change int* var argument to bool*.
163 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
164 bool.
165 (debug_compile_cplus_scopes): Likewise.
166 * compile/compile-internal.h (compile_debug): Likewise.
167 * compile/compile.c (compile_debug): Likewise.
168 (struct compile_options) <raw>: Likewise.
169 * cp-support.c (catch_demangler_crashes): Likewise.
170 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
171 (usr_cmd_cris_dwarf2_cfi): Likewise.
172 * csky-tdep.c (csky_debug): Likewise.
173 * darwin-nat.c (enable_mach_exceptions): Likewise.
174 * dcache.c (dcache_enabled_p): Likewise.
175 * defs.h (info_verbose): Likewise.
176 * demangle.c (demangle): Likewise.
177 (asm_demangle): Likewise.
178 * dwarf-index-cache.c (debug_index_cache): Likewise.
179 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
180 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
181 * dwarf2read.c (check_physname): Likewise.
182 (use_deprecated_index_sections): Likewise.
183 (dwarf_always_disassemble): Likewise.
184 * eval.c (overload_resolution): Likewise.
185 * event-top.c (set_editing_cmd_var): Likewise.
186 (exec_done_display_p): Likewise.
187 * event-top.h (set_editing_cmd_var): Likewise.
188 (exec_done_display_p): Likewise.
189 * exec.c (write_files): Likewise.
190 * fbsd-nat.c (debug_fbsd_lwp): Likewise
191 (debug_fbsd_nat): Likewise.
192 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
193 Likewise.
194 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
195 <backtrace_past_entry> Likewise.
196 * gdb-demangle.h (demangle): Likewise.
197 (asm_demangle): Likewise.
198 * gdb_bfd.c (bfd_sharing): Likewise.
199 * gdbcore.h (write_files): Likewise.
200 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
201 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
202 * gdbthread.h (print_thread_events): Likewise.
203 * gdbtypes.c (opaque_type_resolution): Likewise.
204 (strict_type_checking): Likewise.
205 * gnu-nat.c (gnu_debug_flag): Likewise.
206 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
207 * guile/scm-param.c (pascm_variable): Add boolval.
208 (add_setshow_generic): Update.
209 (pascm_param_value): Update.
210 (pascm_set_param_value_x): Update.
211 * hppa-tdep.c (hppa_debug): Change to bool..
212 * infcall.c (may_call_functions_p): Likewise.
213 (coerce_float_to_double_p): Likewise.
214 (unwind_on_signal_p): Likewise.
215 (unwind_on_terminating_exception_p): Likewise.
216 * infcmd.c (startup_with_shell): Likewise.
217 * inferior.c (print_inferior_events): Likewise.
218 * inferior.h (startup_with_shell): Likewise.
219 (print_inferior_events): Likewise.
220 * infrun.c (step_stop_if_no_debug): Likewise.
221 (detach_fork): Likewise.
222 (debug_displaced): Likewise.
223 (disable_randomization): Likewise.
224 (non_stop): Likewise.
225 (non_stop_1): Likewise.
226 (observer_mode): Likewise.
227 (observer_mode_1): Likewise.
228 (set_observer_mode): Update.
229 (sched_multi): Change to bool.
230 * infrun.h (debug_displaced): Likewise.
231 (sched_multi): Likewise.
232 (step_stop_if_no_debug): Likewise.
233 (non_stop): Likewise.
234 (disable_randomization): Likewise.
235 * linux-tdep.c (use_coredump_filter): Likewise.
236 (dump_excluded_mappings): Likewise.
237 * linux-thread-db.c (auto_load_thread_db): Likewise.
238 (check_thread_db_on_load): Likewise.
239 * main.c (captured_main_1): Update.
240 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
241 xx2_opt, boolean_opt>: Change to bool.
242 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
243 * maint.c (maintenance_profile_p): Likewise.
244 (per_command_time): Likewise.
245 (per_command_space): Likewise.
246 (per_command_symtab): Likewise.
247 * memattr.c (inaccessible_by_default): Likewise.
248 * mi/mi-main.c (mi_async): Likewise.
249 (mi_async_1): Likewise.
250 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
251 * nat/fork-inferior.h (startup_with_shell): Likewise.
252 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
253 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
254 * nios2-tdep.c (nios2_debug): Likewise.
255 * or1k-tdep.c (or1k_debug): Likewise.
256 * parse.c (parser_debug): Likewise.
257 * parser-defs.h (parser_debug): Likewise.
258 * printcmd.c (print_symbol_filename): Likewise.
259 * proc-api.c (procfs_trace): Likewise.
260 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
261 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
262 (set_parameter_value): Update.
263 (add_setshow_generic): Update.
264 * python/py-value.c (copy_py_bool_obj): Change argument from int*
265 to bool*.
266 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
267 int*.
268 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
269 * record-btrace.c (record_btrace_target::store_registers): Update.
270 * record-full.c (record_full_memory_query): Change to bool.
271 (record_full_stop_at_limit): Likewise.
272 * record-full.h (record_full_memory_query): Likewise.
273 * remote-notif.c (notif_debug): Likewise.
274 * remote-notif.h (notif_debug): Likewise.
275 * remote.c (use_range_stepping): Likewise.
276 (interrupt_on_connect): Likewise.
277 (remote_break): Likewise.
278 * ser-tcp.c (tcp_auto_retry): Likewise.
279 * ser-unix.c (serial_hwflow): Likewise.
280 * skip.c (debug_skip): Likewise.
281 * solib-aix.c (solib_aix_debug): Likewise.
282 * spu-tdep.c (spu_stop_on_load_p): Likewise.
283 (spu_auto_flush_cache_p): Likewise.
284 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
285 Likewise.
286 (struct info_print_options) <quiet>: Likewise.
287 * symfile-debug.c (debug_symfile): Likewise.
288 * symfile.c (auto_solib_add): Likewise.
289 (separate_debug_file_debug): Likewise.
290 * symfile.h (auto_solib_add): Likewise.
291 (separate_debug_file_debug): Likewise.
292 * symtab.c (basenames_may_differ): Likewise.
293 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
294 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
295 (struct info_types_options) <quiet>: Likewise.
296 * symtab.h (demangle): Likewise.
297 (basenames_may_differ): Likewise.
298 * target-dcache.c (stack_cache_enabled_1): Likewise.
299 (code_cache_enabled_1): Likewise.
300 * target.c (trust_readonly): Likewise.
301 (may_write_registers): Likewise.
302 (may_write_memory): Likewise.
303 (may_insert_breakpoints): Likewise.
304 (may_insert_tracepoints): Likewise.
305 (may_insert_fast_tracepoints): Likewise.
306 (may_stop): Likewise.
307 (auto_connect_native_target): Likewise.
308 (target_stop_and_wait): Update.
309 (target_async_permitted): Change to bool.
310 (target_async_permitted_1): Likewise.
311 (may_write_registers_1): Likewise.
312 (may_write_memory_1): Likewise.
313 (may_insert_breakpoints_1): Likewise.
314 (may_insert_tracepoints_1): Likewise.
315 (may_insert_fast_tracepoints_1): Likewise.
316 (may_stop_1): Likewise.
317 * target.h (target_async_permitted): Likewise.
318 (may_write_registers): Likewise.
319 (may_write_memory): Likewise.
320 (may_insert_breakpoints): Likewise.
321 (may_insert_tracepoints): Likewise.
322 (may_insert_fast_tracepoints): Likewise.
323 (may_stop): Likewise.
324 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
325 (make_thread_apply_all_options_def_group): Change argument from int*
326 to bool*.
327 (thread_apply_all_command): Update.
328 (print_thread_events): Change to bool.
329 * top.c (confirm): Likewise.
330 (command_editing_p): Likewise.
331 (history_expansion_p): Likewise.
332 (write_history_p): Likewise.
333 (info_verbose): Likewise.
334 * top.h (confirm): Likewise.
335 (history_expansion_p): Likewise.
336 * tracepoint.c (disconnected_tracing): Likewise.
337 (circular_trace_buffer): Likewise.
338 * typeprint.c (print_methods): Likewise.
339 (print_typedefs): Likewise.
340 * utils.c (debug_timestamp): Likewise.
341 (sevenbit_strings): Likewise.
342 (pagination_enabled): Likewise.
343 * utils.h (sevenbit_strings): Likewise.
344 (pagination_enabled): Likewise.
345 * valops.c (overload_resolution): Likewise.
346 * valprint.h (struct value_print_options) <prettyformat_arrays,
347 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
348 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
349 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
350 Likewise.
351 * windows-nat.c (new_console): Likewise.
352 (cygwin_exceptions): Likewise.
353 (new_group): Likewise.
354 (debug_exec): Likewise.
355 (debug_events): Likewise.
356 (debug_memory): Likewise.
357 (debug_exceptions): Likewise.
358 (useshell): Likewise.
359 * windows-tdep.c (maint_display_all_tib): Likewise.
360 * xml-support.c (debug_xml): Likewise.
361
362 2019-09-17 Mike Gulick <mgulick@mathworks.com>
363
364 * source.c (prepare_path_for_appending): New function.
365 (openp): Make use of new function.
366 (find_and_open_source): Search for the compilation directory and
367 source file as a relative path beneath the directory search path.
368
369 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
370
371 * source-cache.c (source_cache::get_line_charpos): Catch
372 exceptions and return false, this matches the behaviour documented
373 in the header file.
374
375 2019-09-17 Joel Brobecker <brobecker@adacore.com>
376
377 * ada-tasks.c (info_task): Remove quoting of the task's name.
378
379 2019-09-16 Christian Biesinger <cbiesinger@google.com>
380
381 * symfile.c (auto_solib_add): Replace comment with a reference
382 to the header file.
383
384 2019-09-14 Christian Biesinger <cbiesinger@google.com>
385
386 * NEWS: Mention that gdb can now be compiled with Python 3
387 on Windows.
388
389 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
390
391 * maint.c (maint_print_section_data::maint_print_section_data):
392 Force use of 'float log10 (float)' by casting the argument to
393 float.
394
395 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
396
397 * maint.c: Add 'cmath' include.
398 (struct maint_print_section_data): New structure.
399 (print_section_index): New function.
400 (print_bfd_section_info): Add header comment, small whitespace
401 cleanup, and update to call new print_section_index function.
402 (print_objfile_section_info): Likewise.
403 (maint_obj_section_from_bfd_section): New function.
404 (print_bfd_section_info_maybe_relocated): New function.
405 (maintenance_info_sections): Add header comment, always use
406 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
407
408 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
409
410 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
411 inner scope, add check that the objfile has psymtabs before
412 checking psymtabs_addrmap.
413 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
414
415 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
416
417 * NEWS: Announce that Ada task names are now shown at more places,
418 and between quotes (except in info task output).
419 * gdb/ada-tasks.c (task_to_str): New function.
420 (display_current_task_id): Call task_to_str.
421 (task_command_1): Likewise.
422 (print_ada_task_info): In non-mi mode, Properly align headers and data
423 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
424
425 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
426
427 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
428 prstatus.pr_lwp.pr_info instead of making it up.
429
430 2019-09-11 Christian Biesinger <cbiesinger@google.com>
431
432 * auto-load.c (auto_load_expand_dir_vars): Update.
433 * defs.h (gdb_datadir): Change to std::string.
434 (python_libdir): Likewise.
435 (relocate_gdb_directory): Change return type to std::string.
436 * guile/guile.c (gdbscm_data_directory): Update.
437 (initialize_scheme_side): Update.
438 * jit.c (jit_reader_dir): Change to std::string.
439 (jit_reader_load_command): Update.
440 * main.c (gdb_datadir): Change to std::string.
441 (python_libdir): Likewise.
442 (set_gdb_data_directory): Update.
443 (relocate_path): Change to return std::string.
444 (relocate_gdb_directory): Change to return std::string.
445 (relocate_gdbinit_path_maybe_in_datadir): Update.
446 (captured_main_1): Update.
447 * python/python.c (do_start_initialization): Update.
448 * top.c (show_gdb_datadir): Update.
449 * xml-syscall.c (xml_init_syscalls_info): Update.
450 (init_syscalls_info): Update.
451
452 2019-09-11 Christian Biesinger <cbiesinger@google.com>
453
454 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
455 out of get_init_files.
456 (get_init_files): Update.
457
458 2019-09-11 Christian Biesinger <cbiesinger@google.com>
459
460 * main.c (get_init_files): Change to use std::string.
461 (captured_main_1): Update.
462 (print_gdb_help): Update.
463
464 2019-09-11 Ali Tamur <tamur@google.com>
465
466 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
467 implementation.
468
469 2019-09-11 Christian Biesinger <cbiesinger@google.com>
470
471 * dbxread.c (read_dbx_symtab): Update.
472 * dwarf2read.c (load_partial_dies): Update.
473 * mdebugread.c (parse_partial_symbols): Update.
474 (handle_psymbol_enumerators): Update.
475 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
476 * psymtab.c (add_psymbol_to_bcache): Likewise.
477 (add_psymbol_to_list): Likewise.
478 * symtab.c (symbol_set_names): Likewise.
479 * symtab.h (symbol_set_names): Likewise.
480 * xcoffread.c (scan_xcoff_symtab): Update.
481
482 2019-09-11 Tom Tromey <tom@tromey.com>
483
484 * symfile-mem.c (symbol_file_add_from_memory): Use
485 bfd_set_filename.
486 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
487 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
488
489 2019-09-10 Tom Tromey <tromey@adacore.com>
490
491 * dwarf-index-write.c (write_psymbols): Extend error message.
492 (debug_names::insert): Add Ada code.
493 (debug_names::write_psymbols): Remove Ada check.
494 (debug_names) <m_string_obstack>: New member.
495 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
496 (gdb_index_symbol_name_matcher::matches): Remove.
497 (mapped_index_base::find_name_components_bounds): Add "lang"
498 parameter.
499 (mapped_index_base::build_name_components): Also split names
500 according to Ada syntax.
501 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
502 type of "match_callback".
503 (check_match, check_find_bounds_finds)
504 (dw2_expand_symtabs_matching): Update.
505 (dw2_debug_names_iterator): Add new constructor.
506 (dw2_debug_names_map_matching_symbols): New function.
507 (dw2_debug_names_expand_symtabs_matching): Update.
508 (dwarf2_debug_names_functions): Use
509 dw2_debug_names_map_matching_symbols.
510
511 2019-09-10 Tom Tromey <tromey@adacore.com>
512
513 * dwarf2read.c (dw2_get_file_names_reader): Add the
514 CU's file name to the results.
515
516 2019-09-10 Tom Tromey <tromey@adacore.com>
517
518 * ada-lang.c (add_nonlocal_symbols): Combine calls to
519 map_matching_symbols. Update.
520 * dwarf2read.c (dw2_map_matching_symbols): Update.
521 * psymtab.c (match_partial_symbol): Change type; update.
522 (psym_map_matching_symbols): Likewise.
523 * symfile-debug.c (debug_qf_map_matching_symbols): Change
524 type; update.
525 * symfile.h (struct quick_symbol_functions)
526 <map_matching_symbols>: Change "name" to be a lookup_name_info.
527 Remove "match".
528
529 2019-09-10 Tom Tromey <tromey@adacore.com>
530
531 * psymtab.c (map_block): Remove.
532 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
533 * symtab.c (iterate_over_symbols_terminated): New function.
534 * symtab.c (iterate_over_symbols_terminated): Declare.
535
536 2019-09-10 Tom Tromey <tromey@adacore.com>
537
538 * ada-lang.c (ada_iterate_over_symbols): Return bool.
539 * language.h (struct language_defn) <la_iterate_over_symbols>:
540 Return bool.
541 * symtab.c (iterate_over_symbols): Return bool.
542 * symtab.h (iterate_over_symbols): Return bool.
543
544 2019-09-10 Tom Tromey <tromey@adacore.com>
545
546 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
547 (add_nonlocal_symbols): Update.
548 * dwarf2read.c (dw2_map_matching_symbols): Change type.
549 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
550 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
551 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
552 Change type of "callback". Remove "data".
553
554
555 2019-09-09 Ali Tamur <tamur@google.com>
556
557 * dwarf2read.c (comp_unit_head): Update comment.
558 (dwarf2_dwo_name): New function declaration.
559 (dwarf_unit_type_name): New function declaration.
560 (read_comp_unit_head): Add support for new compilation units,
561 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
562 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
563 (currently named as "signature") in their header. Also clarify error
564 messages.
565 (lookup_dwo_id): New function. Returns the dwo id of the given
566 compile unit.
567 (lookup_dwo_unit): Use the new lookup_dwo_id function.
568 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
569 functions.
570 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
571 (dwarf2_dwo_name): Get the dwo name if present.
572 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
573 purposes.
574
575 2019-09-09 Tom Tromey <tom@tromey.com>
576
577 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
578
579 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
580
581 * python/python.c (do_start_initialization): Make progname_copy static,
582 to avoid a leak report.
583
584 2019-09-08 Tom Tromey <tom@tromey.com>
585
586 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
587
588 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
589
590 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
591 Change type to gdb::optional<block_enum>.
592 (dw2_symtab_iter_init): Change block_index parameter type
593 to gdb::optional<block_enum>.
594 (dw2_lookup_symbol): Change block_index parameter
595 type to block_enum.c
596 (dw2_debug_names_lookup_symbol): Likewise.
597 * psymtab.c (psym_lookup_symbol): Likewise.
598 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
599 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
600 Likewise.
601
602 2019-09-06 Christian Biesinger <cbiesinger@google.com>
603
604 * defs.h (relocate_gdb_directory): Change int to bool in
605 signature and rename flag to relocatable.
606 * main.c (relocate_path): Likewise.
607 (relocate_gdb_directory): Likewise.
608
609 2019-09-06 Alan Modra <amodra@gmail.com>
610
611 * coffread.c (coff_symfile_read): Constify filename variable.
612 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
613 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
614 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
615 * solib.c (reload_shared_libraries_1): Likewise.
616 * symfile.c (reread_symbols): Likewise.
617 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
618 * solib-darwin.c (darwin_bfd_open): Likewise.
619 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
620
621 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
622
623 * psymtab.c (print_partial_symbols): Handle missing domain_enum
624 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
625
626 2019-09-03 Tom Tromey <tromey@adacore.com>
627
628 * ada-valprint.c (ada_val_print_num): Don't recurse for range
629 types.
630 (has_negatives): Unbias a range type bound.
631 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
632 * gdbtypes.c (operator==): Handle new field.
633 (create_range_type): Add "bias" parameter.
634 (create_static_range_type, resolve_dynamic_range): Update.
635 * gdbtypes.h (struct range_bounds) <bias>: New member.
636 (create_range_type): Add bias parameter.
637 * printcmd.c (print_scalar_formatted): Unbias range types.
638 * value.c (unpack_long): Unbias range types.
639 (pack_long): Bias range types.
640
641 2019-09-02 Alan Hayward <alan.hayward@arm.com>
642
643 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
644 probe arguments.
645
646 2019-09-02 Alan Hayward <alan.hayward@arm.com>
647
648 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
649 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
650 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
651 (compile_probe_arg): Likewise.
652 * probe.h (get_argument_count): Likewise.
653 * solib-svr4.c (solib_event_probe_action): Likewise.
654 * stap-probe.c (stap_probe::get_argument_count): Likewise.
655
656 2019-09-02 Alan Hayward <alan.hayward@arm.com>
657
658 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
659 code to here...
660 (svr4_create_solib_event_breakpoints): ...from here.
661
662 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
663
664 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
665 suffix from warning message.
666
667 2019-08-30 Tom Tromey <tom@tromey.com>
668
669 * tui/tui-winsource.h (struct tui_source_window_base)
670 <refresh_all>: Don't declare.
671 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
672 Remove.
673 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
674 tui_show_locator_content.
675 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
676 declare.
677 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
678 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
679 declare.
680
681 2019-08-30 Tom Tromey <tom@tromey.com>
682
683 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
684
685 2019-08-30 Tom Tromey <tom@tromey.com>
686
687 * tui/tui-stack.c (_initialize_tui_stack): Move later.
688 Remove unnecessary forward declarations.
689
690 2019-08-30 Tom Tromey <tom@tromey.com>
691
692 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
693 rerender.
694 (tui_update_locator_fullname, tui_show_frame_info): Don't call
695 tui_show_locator_content.
696
697 2019-08-30 Tom Tromey <tom@tromey.com>
698
699 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
700 (tui_locator_window::rerender): Rewrite using body of previous
701 tui_show_locator_content.
702
703 2019-08-30 Tom Tromey <tom@tromey.com>
704
705 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
706 set_locator_fullname>: New methods.
707 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
708 Rename from tui_set_locator_fullname.
709 (tui_locator_window::set_locator_info): Rename from
710 tui_set_locator_info. Return bool.
711 (tui_update_locator_fullname, tui_show_frame_info): Update.
712
713 2019-08-30 Tom Tromey <tom@tromey.com>
714
715 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
716
717 2019-08-30 Tom Tromey <tom@tromey.com>
718
719 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
720 call touchwin.
721
722 2019-08-30 Tom Tromey <tom@tromey.com>
723
724 * tui/tui-wingeneral.c (box_win): Assume win_info and
725 win_info->handle cannot be NULL.
726
727 2019-08-30 Tom Tromey <tom@tromey.com>
728
729 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
730 refresh_window>: Declare.
731 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
732 resize.
733 (tui_data_item_window::rerender): Rename from
734 tui_display_register.
735 (tui_data_item_window::refresh_window): New method.
736 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
737 no-op.
738
739 2019-08-30 Tom Tromey <tom@tromey.com>
740
741 * tui/tui-regs.h (struct tui_data_window) <regs_content,
742 regs_column_count, current_group>: Move later. Now private.
743 <get_current_group>: New method.
744 * tui/tui-regs.c (tui_reg_command): Update.
745 * tui/tui-layout.c (tui_set_layout): Update.
746
747 2019-08-30 Tom Tromey <tom@tromey.com>
748
749 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
750 (tui_data_window::rerender): Don't call
751 check_and_display_highlight_if_needed.
752 (tui_data_window::refresh_all): Remove call to
753 erase_data_content.
754
755 2019-08-30 Tom Tromey <tom@tromey.com>
756
757 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
758 (tui_data_window::display_registers_from)
759 (tui_data_window::display_reg_element_at_line)
760 (tui_data_window::display_registers_from_line): Remove checks of
761 "empty".
762
763 2019-08-30 Tom Tromey <tom@tromey.com>
764
765 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
766 Don't declare.
767 * tui/tui-regs.c (tui_data_window::show_registers): Call
768 rerender.
769 (tui_data_window::rerender): Rename from display_all_data.
770 (tui_data_window::rerender): Remove old implementation.
771
772 2019-08-30 Tom Tromey <tom@tromey.com>
773
774 * tui/tui-regs.c (tui_data_window::display_all_data): Change
775 text.
776 * tui/tui-data.h (NO_DATA_STRING): Remove define.
777
778 2019-08-29 Bernhard Wodok <barto@gmx.net>
779 Sergio Durigan Junior <sergiodj@redhat.com>
780
781 PR win32/24284
782 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
783
784 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
785
786 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
787 when searching for types.
788
789 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
790
791 * f-lang.c (f_language_defn): Use f_print_typedef.
792 * f-lang.h (f_print_typedef): Declare.
793 * f-typeprint.c (f_print_typedef): Define.
794
795 2019-08-27 Christian Biesinger <cbiesinger@google.com>
796
797 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
798
799 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
800
801 * cli/cli-utils.c (info_print_options_defs): Delete.
802 (make_info_print_options_def_group): Delete.
803 (extract_info_print_options): Delete.
804 (info_print_command_completer): Delete.
805 (info_print_args_help): Add extra parameter, and optionally
806 include text about -n flag.
807 * cli/cli-utils.h (struct info_print_options): Delete.
808 (extract_info_print_options): Delete declaration.
809 (info_print_command_completer): Delete declaration.
810 (info_print_args_help): Add extra parameter, extend header
811 comment.
812 * python/python.c (gdbpy_rbreak): Pass additional parameter to
813 search_symbols.
814 * stack.c (struct info_print_options): New type.
815 (info_print_options_defs): New file scoped variable.
816 (make_info_print_options_def_group): New static function.
817 (info_print_command_completer): New static function.
818 (info_locals_command): Update to use new local functions.
819 (info_args_command): Likewise.
820 (_initialize_stack): Add extra parameter to calls to
821 info_print_args_help.
822 * symtab.c (search_symbols): Add extra parameter, use this to
823 possibly excluse non-debug symbols.
824 (symtab_symbol_info): Add extra parameter, which is passed on to
825 search_symbols.
826 (struct info_print_options): New type.
827 (info_print_options_defs): New file scoped variable.
828 (make_info_print_options_def_group): New static function.
829 (info_print_command_completer): New static function.
830 (info_variables_command): Update to use local functions, and pass
831 extra parameter through to symtab_symbol_info.
832 (info_functions_command): Likewise.
833 (info_types_command): Pass additional argument through to
834 symtab_symbol_info.
835 (rbreak_command): Pass extra argument to search_symbols.
836 (_initialize_symtab): Add extra arguments for calls to
837 info_print_args_help, and update help text for 'info variables',
838 'whereis', and 'info functions' commands.
839 * symtab.h (search_symbols): Add extra argument to declaration.
840 * NEWS: Mention new flags.
841
842 2019-08-26 Christian Biesinger <cbiesinger@google.com>
843
844 * symtab.c (lookup_static_symbol): Call the new function (and move
845 it down to be next to lookup_global_symbol).
846 (struct global_sym_lookup_data): Add block_enum member and rename to...
847 (struct global_or_static_sym_lookup_data): ...this.
848 (lookup_symbol_global_iterator_cb): Pass block_index instead of
849 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
850 (lookup_symbol_global_or_static_iterator_cb): ...this.
851 (lookup_global_or_static_symbol): New function.
852 (lookup_global_symbol): Call new function.
853
854 2019-08-26 Tom de Vries <tdevries@suse.de>
855
856 PR c++/24852
857 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
858 when pc_probe.prob == NULL.
859
860 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
861
862 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
863 variable symbol_linkage to symbol_linkage_.
864
865 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
866
867 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
868 represent whether the symbol is static, dynamic, or we don't
869 know.
870
871 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
872
873 * gdb/rx-tdep.c (rx_register_names): New.
874 (rx_register_name): Delete.
875 (rx_psw_type): Delete.
876 (rx_fpsw_type): Delete.
877 (rx_register_type): Delete.
878 (rx_gdbarch_init): Convert target-descriptions.
879 (_initialize_rx_tdep): Add initialize_tdesc_rx.
880 * gdb/features/Makefile: Add rx.xml.
881 * gdb/features/rx.xml: New.
882 * gdb/features/rx.c: Generated.
883 * gdb/NEWS: Mention target description support.
884
885 2019-08-22 Christian Biesinger <cbiesinger@google.com>
886
887 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
888 *slot_ptr.
889
890 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
891
892 * configure.ac: Don't check for 'dlfcn.h' (moved to
893 gdbsupport/common.m4).
894 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
895 'gdbsupport/'.
896 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
897 * compile/compile-c-support.c: Include
898 'gdbsupport/gdb-dlfcn.h'.
899 * gdbsupport/common.m4: Check for 'dlfcn.h'.
900 * gdb-dlfcn.c: Move to...
901 * gdbsupport/gdb-dlfcn.c: ... here.
902 * gdb-dlfcn.h: Move to...
903 * gdbsupport/gdb-dlfcn.h: ... here.
904
905 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
906
907 * nios2-tdep.c (struct reg_value): Improve comments. Make
908 the offset field signed.
909
910 2019-08-22 Christian Biesinger <cbiesinger@google.com>
911
912 * python/lib/gdb/__init__.py (_execute_file): New function.
913 * python/python.c (python_run_simple_file): Call gdb._execute_file
914 on Windows.
915
916 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
917
918 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
919 all uses as this was never set to anything but a zero value.
920
921 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
922
923 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
924
925 2019-08-21 Christian Biesinger <cbiesinger@google.com>
926
927 * tui/tui-data.h (tui_gen_win_info): Add an =default
928 move constructor, required by some GCC versions.
929
930 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
931
932 * go32-nat.c (go32_sysinfo): Add hygon_p.
933
934 2019-08-20 Tom Tromey <tom@tromey.com>
935
936 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
937 line_from_reg_element_no, first_reg_element_no_inline,
938 display_all_data, delete_data_content_windows,
939 erase_data_content>: Now private.
940
941 2019-08-20 Tom Tromey <tom@tromey.com>
942
943 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
944 (tui_unhighlight_win, tui_highlight_win)
945 (tui_win_info::make_window): Update.
946 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
947
948 2019-08-20 Tom Tromey <tom@tromey.com>
949
950 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
951 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
952 (MAX_PID_WIDTH): Move to tui-stack.c.
953 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
954 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
955 (MAX_PID_WIDTH): Move from tui-data.h.
956
957 2019-08-20 Tom Tromey <tom@tromey.com>
958
959 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
960 * tui/tui-wingeneral.c (box_win): Change type of win_info.
961 (box_win): Update.
962 (tui_gen_win_info::make_window): Rename from tui_make_window.
963 (tui_win_info::make_window): New method.
964 (tui_gen_win_info::make_visible): Update.
965 * tui/tui-source.c (tui_source_window::set_contents): Update.
966 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
967 (tui_data_window::display_registers_from): Update.
968 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
969 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
970 Declare.
971 <can_box>: Remove.
972 <title>: Remove.
973 (struct tui_win_info) <make_window>: Declare.
974 <can_box>: Now virtual.
975 <title>: New member.
976 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
977 * tui/tui-command.c (tui_cmd_window::resize): Update.
978
979 2019-08-20 Tom Tromey <tom@tromey.com>
980
981 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
982 * tui/tui-regs.c (tui_data_window::show_registers): Update.
983 (tui_data_window::check_register_values): Update.
984
985 2019-08-20 Tom Tromey <tom@tromey.com>
986
987 * tui/tui-regs.h (struct tui_data_window): Use
988 DISABLE_COPY_AND_ASSIGN.
989 <regs_content>: Change type, removing unique_ptr.
990 <tui_data_window>: Add move constructor.
991 * tui/tui-regs.c (tui_data_window::show_registers)
992 (tui_data_window::show_register_group)
993 (tui_data_window::display_registers_from)
994 (tui_data_window::display_registers_from)
995 (tui_data_window::first_data_item_displayed)
996 (tui_data_window::delete_data_content_windows)
997 (tui_data_window::rerender, tui_data_window::refresh_window)
998 (tui_data_window::check_register_values): Update.
999
1000 2019-08-20 Tom Tromey <tom@tromey.com>
1001
1002 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1003 show_register_group>: Declare.
1004 (tui_show_register_group): Don't declare.
1005 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1006 tui_show_registers.
1007 (tui_data_window::show_register_group): Rename from
1008 tui_show_register_group.
1009 (tui_data_window::check_register_values, tui_reg_command):
1010 Update.
1011 * tui/tui-layout.c (tui_set_layout): Update.
1012
1013 2019-08-20 Tom Tromey <tom@tromey.com>
1014
1015 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1016 Declare.
1017 (tui_check_register_values): Don't declare.
1018 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1019 from tui_check_register_values.
1020 * tui/tui-hooks.c (tui_register_changed): Update.
1021
1022 2019-08-20 Tom Tromey <tom@tromey.com>
1023
1024 * tui/tui-regs.c (tui_reg_layout): Move later.
1025 (tui_show_registers): Don't enable TUI mode or change layout.
1026
1027 2019-08-20 Tom Tromey <tom@tromey.com>
1028
1029 * tui/tui-regs.h (struct tui_data_item_window)
1030 <~tui_data_item_window>: Remove.
1031 <content>: Now a unique_xmalloc_ptr.
1032 * tui/tui-regs.c (tui_register_format): Return a
1033 unique_xmalloc_ptr.
1034 (tui_get_register): Update.
1035 (~tui_data_item_window): Remove.
1036 (tui_data_window::display_registers_from, tui_display_register):
1037 Update.
1038 * tui/tui-io.h (tui_expand_tabs): Update.
1039 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1040 Remove "col" parameter.
1041
1042 2019-08-20 Tom Tromey <tom@tromey.com>
1043
1044 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1045 field.
1046 * tui/tui-regs.c (~tui_data_item_window): Update.
1047
1048 2019-08-20 Tom Tromey <tom@tromey.com>
1049
1050 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1051 earlier.
1052
1053 2019-08-20 Tom Tromey <tom@tromey.com>
1054
1055 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1056
1057 2019-08-20 Tom Tromey <tom@tromey.com>
1058
1059 * tui/tui-source.h (struct tui_source_window): Update.
1060 * tui/tui-regs.c (tui_show_registers): Update.
1061 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1062 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1063 (NO_REGS_STRING): Remove defines.
1064
1065 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
1066
1067 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1068 unnecessary thread walk if remote doesn't support the packet.
1069
1070 2019-08-19 Tom Tromey <tromey@adacore.com>
1071
1072 * python/py-value.c (value_has_field): Fix indentation.
1073
1074 2019-08-19 Tom Tromey <tromey@adacore.com>
1075
1076 * printcmd.c (do_one_display, info_display_command): Update.
1077 * block.h (contained_in): Return bool. Add allow_nested
1078 parameter.
1079 * block.c (contained_in): Return bool. Add allow_nested
1080 parameter.
1081
1082 2019-08-19 Tom Tromey <tom@tromey.com>
1083
1084 * configure: Rebuild.
1085 * configure.ac: Disallow the combination of -static-libstdc++ and
1086 source highlight.
1087 * source-cache.c (get_language_name): Handle rust.
1088 (source_cache::get_source_lines): Ignore highlighting exceptions.
1089
1090 2019-08-16 Tom Tromey <tom@tromey.com>
1091
1092 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1093 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1094 (struct tui_source_window_base) <make_visible, refresh_window,
1095 resize>: Remove methods.
1096 <execution_info>: Remove field.
1097 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1098 (tui_show_source_line, tui_source_window_base)
1099 (~tui_source_window_base): Update.
1100 (tui_source_window_base::resize)
1101 (tui_source_window_base::make_visible)
1102 (tui_source_window_base::refresh_window): Remove.
1103 (tui_source_window_base::update_exec_info): Update.
1104 * tui/tui-source.c (tui_source_window::set_contents): Update.
1105 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1106
1107 2019-08-16 Tom Tromey <tom@tromey.com>
1108
1109 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1110 deprecated_query_hook.
1111
1112 2019-08-16 Tom Tromey <tom@tromey.com>
1113
1114 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1115 (tui_update_source_windows_with_line): Update.
1116 * tui/tui-source.h (struct tui_source_window)
1117 <show_symtab_source>: Declare.
1118 (tui_show_symtab_source): Don't declare.
1119 * tui/tui-source.c (tui_show_symtab_source): Rename from
1120 tui_show_symtab_source.
1121
1122 2019-08-16 Tom Tromey <tom@tromey.com>
1123
1124 * tui/tui-winsource.h (struct tui_source_window_base)
1125 <set_contents>: Declare.
1126 * tui/tui-winsource.c
1127 (tui_source_window_base::update_source_window_as_is): Update.
1128 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1129 Declare.
1130 (tui_set_source_content): Don't declare.
1131 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1132 tui_set_source_content.
1133 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1134 Declare.
1135 (tui_set_disassem_content): Don't declare.
1136 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1137 tui_set_disassem_content.
1138
1139 2019-08-16 Tom Tromey <tom@tromey.com>
1140
1141 * tui/tui-winsource.h (struct tui_source_window_base)
1142 <update_breakpoint_info>: Declare.
1143 (tui_update_breakpoint_info): Don't declare.
1144 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1145 (tui_update_all_breakpoint_info): Update.
1146 (tui_source_window_base::update_breakpoint_info): Rename from
1147 tui_update_breakpoint_info.
1148 (tui_source_window_base::update_exec_info): Update.
1149
1150 2019-08-16 Tom Tromey <tom@tromey.com>
1151
1152 * tui/tui-winsource.h (struct tui_source_window_base)
1153 <update_source_window>: Declare.
1154 (tui_update_source_window): Don't declare.
1155 * tui/tui-winsource.c
1156 (tui_source_window_base::update_source_window): Rename from
1157 tui_update_source_window.
1158 (tui_source_window_base::rerender): Update.
1159 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1160 * tui/tui-disasm.c (tui_show_disassem)
1161 (tui_show_disassem_and_update_source)
1162 (tui_disasm_window::maybe_update): Update.
1163
1164 2019-08-16 Tom Tromey <tom@tromey.com>
1165
1166 * tui/tui-winsource.h (struct tui_source_window_base)
1167 <update_source_window_as_is>: Declare.
1168 (tui_update_source_window_as_is): Don't declare.
1169 * tui/tui-winsource.c (tui_update_source_window): Update
1170 (tui_source_window_base::update_source_window_as_is): Rename from
1171 tui_update_source_window_as_is.
1172 (tui_source_window_base::refill): Update.
1173 * tui/tui-source.c (tui_show_symtab_source): Update.
1174 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1175 Update.
1176
1177 2019-08-16 Tom Tromey <tom@tromey.com>
1178
1179 * tui/tui-winsource.h (tui_update_source_window)
1180 (tui_update_source_window_as_is): Remove "noerror" parameter.
1181 * tui/tui-winsource.c (tui_update_source_window)
1182 (tui_update_source_window_as_is): Remove "noerror" parameter.
1183 (tui_update_source_windows_with_addr)
1184 (tui_update_source_windows_with_line)
1185 (tui_source_window_base::rerender)
1186 (tui_source_window_base::refill): Update.
1187 * tui/tui-source.h (tui_set_source_content)
1188 (tui_show_symtab_source): Remove "noerror" parameter.
1189 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1190 parameter.
1191 (tui_show_symtab_source): Likewise.
1192 (tui_source_window::maybe_update): Update.
1193 * tui/tui-disasm.c (tui_show_disassem)
1194 (tui_show_disassem_and_update_source)
1195 (tui_disasm_window::do_scroll_vertical)
1196 (tui_disasm_window::maybe_update): Update.
1197
1198 2019-08-16 Tom Tromey <tom@tromey.com>
1199
1200 * tui/tui.c (tui_is_window_visible): Update.
1201 * tui/tui-wingeneral.c (tui_make_window)
1202 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1203 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1204 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1205 (tui_set_win_height_command, parse_scrolling_args): Update.
1206 * tui/tui-source.c (tui_source_window::style_changed): Update.
1207 * tui/tui-regs.c (tui_show_registers)
1208 (tui_data_window::first_data_item_displayed)
1209 (tui_data_window::delete_data_content_windows)
1210 (tui_check_register_values, tui_reg_command): Update.
1211 * tui/tui-disasm.c (tui_show_disassem): Update.
1212 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1213 method.
1214 <is_visible>: Remove field.
1215 * tui/tui-data.c (tui_next_win, tui_prev_win)
1216 (tui_delete_invisible_windows): Update.
1217
1218 2019-08-16 Tom Tromey <tom@tromey.com>
1219
1220 * tui/tui-winsource.h (struct tui_source_window_base)
1221 <m_has_locator>: Remove.
1222 * tui/tui-layout.c (show_source_disasm_command, show_data)
1223 (show_source_or_disasm_and_command): Update.
1224
1225 2019-08-16 Alan Hayward <alan.hayward@arm.com>
1226
1227 * NEWS (Other MI changes): New subsection.
1228 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1229 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1230 * arch-utils.c (default_get_pc_address_flags): New function.
1231 * arch-utils.h (default_get_pc_address_flags): New declaration.
1232 * gdbarch.sh: Add get_pc_address_flags.
1233 * gdbarch.c: Regenerate.
1234 * gdbarch.h: Likewise.
1235 * stack.c (print_pc): New function.
1236 (print_frame_info) (print_frame): Call print_pc.
1237
1238 2019-08-16 Tom de Vries <tdevries@suse.de>
1239
1240 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1241 print_objfile_section_info.
1242
1243 2019-08-15 Tom Tromey <tom@tromey.com>
1244
1245 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1246 calling update_cmdwin_start_line.
1247 * tui/tui-winsource.h (struct tui_source_window_base)
1248 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1249 <rerender>: Declare.
1250 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1251 Call rerender.
1252 (tui_source_window_base::set_new_height): Remove.
1253 (tui_source_window_base::rerender): Rename from
1254 do_make_visible_with_new_height.
1255 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1256 resize method.
1257 (tui_win_info::make_invisible_and_set_new_height)
1258 (tui_win_info::make_visible_with_new_height): Remove.
1259 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1260 Declare.
1261 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1262 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1263 do_make_visible_with_new_height>: Don't declare.
1264 <rerender>: Declare.
1265 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1266 set_new_height.
1267 (tui_data_window::do_make_visible_with_new_height): Remove.
1268 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1269 call tui_show_locator_content.
1270 (tui_gen_win_info::resize): Call rerender.
1271 (show_source_or_disasm_and_command): Don't call
1272 tui_show_locator_content.
1273 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1274 method.
1275 (struct tui_win_info) <rerender>: Declare.
1276 <set_new_height, make_invisible_and_set_new_height,
1277 make_visible_with_new_height>: Don't declare.
1278 * tui/tui-data.c (tui_win_list::rerender): New method.
1279 * tui/tui-command.h (struct tui_cmd_window)
1280 <do_make_visible_with_new_height>: Don't declare.
1281 * tui/tui-command.c
1282 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1283
1284 2019-08-15 Tom Tromey <tromey@adacore.com>
1285
1286 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1287 * ada-lang.c (ada_enum_name): Likewise.
1288
1289 2019-08-15 Christian Biesinger <cbiesinger@google.com>
1290
1291 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1292 leading underscore.
1293 (GdbOutputErrorFile): Likewise.
1294 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1295 accordingly.
1296 (execute_unwinders): Rename to have a leading underscore.
1297 (auto_load_packages): Likewise.
1298 (global scope): Adjust call to auto_load_packages accordingly.
1299 (GdbSetPythonDirectory): Likewise.
1300 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1301 instead of execute_unwinders.
1302
1303 2019-08-15 Tom Tromey <tom@tromey.com>
1304
1305 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1306 (show_data): Don't change window visibility.
1307 (tui_gen_win_info::resize): Remove special case for command
1308 window. Use wresize, when available.
1309 (show_source_or_disasm_and_command): Don't change window
1310 visibility.
1311 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1312 <make_visible>: New method.
1313 * tui/tui-command.c (tui_cmd_window::resize): New method.
1314
1315 2019-08-15 Tom Tromey <tom@tromey.com>
1316
1317 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1318 (struct tui_source_windows): New.
1319 * tui/tui-winsource.c (tui_display_main): Update.
1320 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1321 (new_height_ok, parse_scrolling_args): Update.
1322 * tui/tui-layout.c (show_layout, show_data): Update.
1323 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1324 (tui_add_to_source_windows): Don't declare.
1325 * tui/tui-data.c (source_windows, tui_source_windows)
1326 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1327
1328 2019-08-15 Tom Tromey <tom@tromey.com>
1329
1330 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1331 Rename from reset.
1332 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1333 * tui/tui-layout.c (show_source_disasm_command, show_data):
1334 Update.
1335 (tui_gen_win_info::resize): Rename.
1336 (show_source_or_disasm_and_command): Update.
1337 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1338 reset.
1339
1340 2019-08-15 Tom Tromey <tom@tromey.com>
1341
1342 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1343 * tui/tui-interp.c (tui_interp::init): Don't call
1344 tui_initialize_static_data.
1345 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1346
1347 2019-08-15 Tom Tromey <tom@tromey.com>
1348
1349 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1350 examine tui_win_list.
1351
1352 2019-08-15 Tom Tromey <tom@tromey.com>
1353
1354 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1355 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1356 tui_clear_source_content.
1357 (tui_clear_source_content): Remove.
1358 (tui_source_window_base::do_erase_source_content): Hoist call to
1359 content.clear().
1360 * tui/tui-stack.c (tui_show_frame_info): Don't call
1361 tui_clear_source_content.
1362
1363 2019-08-15 Tom Tromey <tom@tromey.com>
1364
1365 * tui/tui-winsource.h (struct tui_source_window_base)
1366 <do_erase_source_content>: New method.
1367 <erase_source_content>: New method.
1368 (tui_erase_source_content): Don't declare.
1369 * tui/tui-winsource.c (tui_clear_source_content): Update.
1370 (tui_source_window_base::do_erase_source_content): Rename from
1371 tui_erase_source_content.
1372 (tui_source_window_base::show_source_content): Update.
1373 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1374 * tui/tui-source.h (struct tui_source_window)
1375 <erase_source_content>: New method.
1376 * tui/tui-disasm.h (struct tui_disasm_window)
1377 <erase_source_content>: New method.
1378
1379 2019-08-15 Tom Tromey <tom@tromey.com>
1380
1381 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1382 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1383 constructor.
1384 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1385 * tui/tui-source.c (tui_set_source_content): Update.
1386 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1387
1388 2019-08-15 Tom Tromey <tom@tromey.com>
1389
1390 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1391 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1392 tui-source.c.
1393 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1394 Declare.
1395 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1396 method.
1397 (tui_source_window::maybe_update): Update.
1398
1399 2019-08-15 Tom Tromey <tom@tromey.com>
1400
1401 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1402 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1403 tui-disasm.c.
1404 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1405 Declare.
1406 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1407 method.
1408 (tui_disasm_window::maybe_update): Update.
1409
1410 2019-08-15 Tom Tromey <tom@tromey.com>
1411
1412 * tui/tui-winsource.h (struct tui_source_window_base)
1413 <maybe_update>: Declare.
1414 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1415 method.
1416 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1417 Declare.
1418 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1419 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1420 Declare.
1421 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1422
1423 2019-08-15 Tom Tromey <tom@tromey.com>
1424
1425 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1426
1427 2019-08-15 Tom Tromey <tom@tromey.com>
1428
1429 * tui/tui-wingeneral.c: Include tui-stack.h.
1430 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1431 (struct tui_locator_window): Move from tui-data.h.
1432 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1433 (tui_initialize_static_data): Move from tui-data.c.
1434 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1435 (struct tui_locator_window): Move to tui-stack.c.
1436 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1437 (tui_initialize_static_data): Move to tui-stack.c.
1438
1439 2019-08-15 Tom Tromey <tom@tromey.com>
1440
1441 * tui/tui-layout.c (show_source_disasm_command)
1442 (show_source_or_disasm_and_command): Use make_visible method, not
1443 tui_make_window.
1444 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1445 Remove.
1446
1447 2019-08-15 Tom Tromey <tom@tromey.com>
1448
1449 * tui/tui-wingeneral.h (tui_make_window): Update.
1450 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1451 parameter.
1452 (tui_gen_win_info::make_visible): Update.
1453 * tui/tui-regs.c (tui_data_window::display_registers_from):
1454 Update.
1455 * tui/tui-layout.c (show_source_disasm_command)
1456 (show_source_or_disasm_and_command): Update.
1457 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1458 (enum tui_box): Remove.
1459 (struct tui_win_info) <can_box>: New method.
1460 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1461 method.
1462
1463 2019-08-15 Tom de Vries <tdevries@suse.de>
1464
1465 * linux-nat-trad.c: Include gdbarch.h.
1466
1467 2019-08-14 Alan Hayward <alan.hayward@arm.com>
1468
1469 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1470 register sizes.
1471
1472 2019-08-14 Tom Tromey <tromey@adacore.com>
1473
1474 * darwin-nat.c: Include gdbarch.h.
1475 * darwin-nat-info.c: Include gdbarch.h.
1476
1477 2019-08-13 Tom Tromey <tom@tromey.com>
1478
1479 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1480 Remove.
1481 * tui/tui-data.c (tui_initialize_static_data): Update.
1482
1483 2019-08-13 Tom Tromey <tom@tromey.com>
1484
1485 * tui/tui-winsource.h (struct tui_exec_info_window)
1486 <~tui_exec_info_window, maybe_allocate_content, get_content,
1487 m_content>: Remove.
1488 (struct tui_source_window_base) <set_exec_info_content,
1489 show_exec_info_content>: Don't declare.
1490 * tui/tui-winsource.c
1491 (tui_exec_info_window::maybe_allocate_content): Remove.
1492 (tui_source_window_base::update_exec_info): Rename from
1493 set_exec_info_content.
1494 (tui_source_window_base::show_exec_info_content)
1495 (tui_source_window_base::update_exec_info): Remove.
1496
1497 2019-08-13 Tom Tromey <tom@tromey.com>
1498
1499 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1500 declare.
1501 * tui/tui-winsource.c (tui_update_source_window_as_is)
1502 (tui_update_source_windows_with_addr, tui_erase_source_content):
1503 Update.
1504 (tui_clear_exec_info_content): Remove.
1505
1506 2019-08-13 Tom Tromey <tom@tromey.com>
1507
1508 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1509 declare.
1510 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1511 call tui_erase_exec_info_content.
1512 (tui_clear_exec_info_content): Rename from
1513 tui_erase_exec_info_content.
1514 (tui_clear_exec_info_content): Delete.
1515
1516 2019-08-13 Tom Tromey <tom@tromey.com>
1517
1518 * tui/tui-winsource.h (struct tui_source_window_base)
1519 <show_exec_info_content>: Declare.
1520 (tui_show_exec_info_content): Don't declare.
1521 * tui/tui-winsource.c
1522 (tui_source_window_base::show_exec_info_content): Rename from
1523 tui_show_exec_info_content.
1524 (tui_source_window_base::update_exec_info): Update.
1525
1526 2019-08-13 Tom Tromey <tom@tromey.com>
1527
1528 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1529 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1530 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1531 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1532 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1533 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1534 ... here.
1535
1536 2019-08-13 Tom Tromey <tom@tromey.com>
1537
1538 * tui/tui-winsource.h (struct tui_source_window_base)
1539 <update_exec_info>: Declare.
1540 (tui_update_exec_info): Don't declare.
1541 * tui/tui-winsource.c (tui_update_source_window_as_is)
1542 (tui_source_window_base::refresh_all)
1543 (tui_update_all_breakpoint_info): Update.
1544 (tui_source_window_base::update_exec_info): Rename from
1545 tui_update_exec_info.
1546 * tui/tui-stack.c (tui_show_frame_info): Update.
1547
1548 2019-08-13 Tom Tromey <tom@tromey.com>
1549
1550 * tui/tui-winsource.h (struct tui_source_window_base)
1551 <set_exec_info_content>: Declare.
1552 (tui_set_exec_info_content): Don't declare.
1553 * tui/tui-winsource.c
1554 (tui_source_window_base::set_exec_info_content): Rename from
1555 tui_set_exec_info_content.
1556 (tui_update_exec_info): Update.
1557
1558 2019-08-13 Tom Tromey <tom@tromey.com>
1559
1560 * tui/tui-winsource.h (struct tui_source_window_base)
1561 <show_source_content>: Declare.
1562 (tui_show_source_content): Don't declare.
1563 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1564 (tui_source_window_base::show_source_content): Rename from
1565 tui_show_source_content.
1566 (tui_source_window_base::refresh_all): Update.
1567 * tui/tui-layout.c (show_source_disasm_command)
1568 (show_source_or_disasm_and_command): Update.
1569
1570 2019-08-13 Tom Tromey <tom@tromey.com>
1571
1572 * tui/tui-winsource.c (tui_erase_source_content)
1573 (tui_show_source_content, tui_source_window_base::refresh_all):
1574 Update.
1575 * tui/tui-wingeneral.h
1576 (tui_check_and_display_highlight_if_needed): Don't declare.
1577 * tui/tui-wingeneral.c
1578 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1579 check_and_display_highlight_if_needed.
1580 * tui/tui-win.c (tui_rehighlight_all)
1581 (tui_win_info::make_visible_with_new_height): Update.
1582 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1583 (tui_data_window::erase_data_content)
1584 (tui_data_window::display_all_data): Update.
1585 * tui/tui-data.h (struct tui_win_info)
1586 <check_and_display_highlight_if_needed>: Declare.
1587
1588 2019-08-13 Tom Tromey <tom@tromey.com>
1589
1590 * tui/tui-win.c (tui_resize_all): Call
1591 tui_delete_invisible_windows.
1592 * tui/tui-layout.c (show_layout): Call
1593 tui_delete_invisible_windows.
1594 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1595 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1596
1597 2019-08-13 Tom Tromey <tom@tromey.com>
1598
1599 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1600 tui_add_win_to_layout.
1601
1602 2019-08-13 Tom Tromey <tom@tromey.com>
1603
1604 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1605 * tui/tui-layout.c (tui_default_win_height): Now static.
1606
1607 2019-08-13 Tom Tromey <tom@tromey.com>
1608
1609 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1610 single switch.
1611 (show_source_disasm_command, show_source_or_disasm_and_command):
1612 Don't check current layout.
1613
1614 2019-08-13 Tom Tromey <tom@tromey.com>
1615
1616 * tui/tui-wingeneral.c (make_all_visible): Remove.
1617 (tui_make_all_invisible): Simplify.
1618 * tui/tui-layout.c (tui_make_all_invisible): Move from
1619 tui-wingeneral.c; simplify.
1620 (show_layout): Hoist call to tui_make_all_invisible.
1621 (show_data): Don't call tui_make_all_invisible.
1622
1623 2019-08-13 Tom Tromey <tom@tromey.com>
1624
1625 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1626 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1627
1628 2019-08-13 Tom Tromey <tom@tromey.com>
1629
1630 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1631 tui-data.c.
1632 (show_source_disasm_command, show_data)
1633 (show_source_or_disasm_and_command): Don't use
1634 tui_set_current_layout_to.
1635 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1636 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1637 tui-layout.c.
1638 (tui_set_current_layout_to): Remove.
1639
1640 2019-08-13 Tom Tromey <tom@tromey.com>
1641
1642 * tui/tui-layout.c (tui_set_layout): Update.
1643 * tui/tui-data.h (struct tui_layout_def): Remove.
1644 (tui_layout_def): Don't declare.
1645 * tui/tui-data.c (layout_def): Remove.
1646 (tui_layout_def): Remove.
1647
1648 2019-08-13 Tom Tromey <tom@tromey.com>
1649
1650 * tui/tui-winsource.h (struct tui_source_window_base)
1651 <clear_detail>: No longer "override".
1652 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1653 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1654 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1655 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1656 Remove.
1657 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1658
1659 2019-08-13 Tom Tromey <tromey@adacore.com>
1660
1661 * tracepoint.c: Don't include readline.h or history.h.
1662
1663 2019-08-12 Tom Tromey <tom@tromey.com>
1664
1665 * configure: Rebuild.
1666 * configure.ac: Check for readline 7.
1667 * NEWS: Mention readline 7 requirement.
1668 * README: Update.
1669
1670 2019-08-12 Tom Tromey <tom@tromey.com>
1671
1672 * mingw-hdep.c (gdb_select): Remove readline hack.
1673
1674 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1675
1676 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1677 when the function fails.
1678
1679 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1680
1681 * s390-tdep.c (s390_type_align): New function.
1682 (s390_gdbarch_init): Set it as type_align gdbarch method.
1683
1684 2019-08-09 Tom de Vries <tdevries@suse.de>
1685
1686 PR gdb/24591
1687 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1688 pc_low with relocation offset.
1689
1690 2019-08-07 Tom Tromey <tromey@adacore.com>
1691
1692 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1693 (print_frame_args): Update.
1694 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1695 Update.
1696 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1697 * frame.h (struct frame_arg): Add initializers.
1698 <error>: Now a unique_xmalloc_ptr.
1699
1700 2019-08-07 Alan Hayward <alan.hayward@arm.com>
1701
1702 * NEWS: Expand the Pointer Authentication entry.
1703 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1704 (aarch64_frame_unmask_lr): ... to this.
1705 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1706 Call aarch64_frame_unmask_lr.
1707 * frame.c (struct frame_info): Add "masked" variable.
1708 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1709 (fprint_frame): Check for masked pc.
1710 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1711 declarations.
1712 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1713 * stack.c (print_frame): Check for masked pc.
1714
1715 2019-08-06 Tom Tromey <tom@tromey.com>
1716
1717 * stabsread.c (patch_block_stabs, read_one_struct_field)
1718 (read_enum_type): Use obstack_strndup.
1719 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1720 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1721 * dwarf2read.c (guess_full_die_structure_name)
1722 (anonymous_struct_prefix): Use obstack_strndup.
1723 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1724 * c-exp.y (yylex): Use obstack_strndup.
1725 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1726 (write_var_or_type): Use obstack_strndup.
1727
1728 2019-08-06 Tom Tromey <tom@tromey.com>
1729
1730 * symfile.c (reread_symbols): Use obstack_strdup.
1731 * stabsread.c (read_type): Use obstack_strdup.
1732 * gdb_obstack.h (obstack_strdup): New overload.
1733 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1734 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1735 (dwarf2_canonicalize_name): Use obstack_strdup.
1736 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1737 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1738 Use obstack_strdup.
1739
1740 2019-08-06 Tom Tromey <tom@tromey.com>
1741
1742 * gdb_obstack.h (obstack_strdup): Define.
1743 * gdb_obstack.c (obstack_strdup): Don't define.
1744
1745 2019-08-06 Tom Tromey <tom@tromey.com>
1746
1747 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1748 obstack_strdup.
1749 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1750 obstack_strdup.
1751 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1752 * stabsread.c (common_block_start): Use obstack_strdup.
1753 * objfiles.c (set_objfile_main_name, objfile): Use
1754 obstack_strdup.
1755 * namespace.c (add_using_directive): Use obstack_strdup.
1756 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1757 * jit.c (finalize_symtab): Use obstack_strdup.
1758 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1759 (guess_partial_die_structure_name, partial_die_info::fixup)
1760 (dwarf2_name): Use obstack_strdup.
1761 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1762 obstack_strdup.
1763 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1764 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1765 obstack_strdup.
1766 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1767
1768 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1769
1770 * unittests/help-doc-selftests.c: New file.
1771 * Makefile.in: Add the new file.
1772
1773 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1774
1775 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1776 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1777 the full first line, except when FOR_VALUE_PREFIX. In this case,
1778 the trailing '.' is not output, and the first character is uppercased.
1779 (print_help_for_command): Update call to print_doc_line.
1780 (print_doc_of_command): Likewise.
1781 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1782 * cli/cli-option.c (append_indented_doc): Do not append newline.
1783 (build_help_option): Append newline after first appended_indented_doc
1784 only if a second call is done.
1785 (build_help): Append 2 new lines before each option, except the first
1786 one.
1787 * compile/compile.c (_initialize_compile): Add new lines after
1788 %OPTIONS%, when not at the end of the help.
1789 Change help doc or code
1790 producing the help doc to respect the invariants.
1791 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1792 Also removed the new line after 'Options:', as all other commands
1793 do not put an empty line between 'Options:' and the first option.
1794 * printcmd.c (_initialize_printcmd): Likewise.
1795 * stack.c (_initialize_stack): Likewise.
1796 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1797 incorrectly telling COMMAND is optional.
1798 * ada-lang.c (_initialize_ada_language): Change help doc or code
1799 producing the help doc to respect the invariants.
1800 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1801 * breakpoint.c (_initialize_breakpoint): Likewise.
1802 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1803 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1804 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1805 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1806 _initialize_cli_style): Likewise.
1807 * corelow.c (core_target_info): Likewise.
1808 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1809 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1810 * filesystem.c (_initialize_filesystem): Likewise.
1811 * frame.c (_initialize_frame): Likewise.
1812 * gnu-nat.c (add_task_commands): Likewise.
1813 * infcall.c (_initialize_infcall): Likewise.
1814 * infcmd.c (_initialize_infcmd): Likewise.
1815 * interps.c (_initialize_interpreter): Likewise.
1816 * language.c (_initialize_language): Likewise.
1817 * linux-fork.c (_initialize_linux_fork): Likewise.
1818 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1819 * maint.c (_initialize_maint_cmds): Likewise.
1820 * memattr.c (_initialize_mem): Likewise.
1821 * printcmd.c (_initialize_printcmd): Likewise.
1822 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1823 _RegEx): Likewise.
1824 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1825 * record-btrace.c (_initialize_record_btrace): Likewise.
1826 * record-full.c (_initialize_record_full): Likewise.
1827 * record.c (_initialize_record): Likewise.
1828 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1829 * regcache.c (_initialize_regcache): Likewise.
1830 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1831 _initialize_remote): Likewise.
1832 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1833 * serial.c (_initialize_serial): Likewise.
1834 * skip.c (_initialize_step_skip): Likewise.
1835 * source.c (_initialize_source): Likewise.
1836 * stack.c (_initialize_stack): Likewise.
1837 * symfile.c (_initialize_symfile): Likewise.
1838 * symtab.c (_initialize_symtab): Likewise.
1839 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1840 * top.c (init_main): Likewise.
1841 * tracefile-tfile.c (tfile_target_info): Likewise.
1842 * tracepoint.c (_initialize_tracepoint): Likewise.
1843 * tui/tui-win.c (_initialize_tui_win): Likewise.
1844 * utils.c (add_internal_problem_command): Likewise.
1845 * valprint.c (value_print_option_defs): Likewise.
1846
1847 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
1848
1849 PR build/24886
1850 * configure.ac: Drop enable-libmcheck support.
1851 * configure, config.in: Rebuild.
1852 * libmcheck.m4: Remove.
1853 * acinclude.m4: Don't include it.
1854 * Makefile.in: Don't distribute it.
1855 * top.c (print_gdb_configuration): Don't mention it.
1856
1857 2019-08-06 Tom Tromey <tom@tromey.com>
1858
1859 * utils.c (set_output_style): Sometimes pass stream to
1860 emit_style_escape.
1861 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1862 * record-btrace.c (btrace_insn_history): Update.
1863 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1864 method.
1865 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1866 Update initializers.
1867 <m_uiout>: New field.
1868 <m_di>: Move lower.
1869 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1870 Remove "uiout" parameter.
1871 (dump_insns): Update.
1872 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1873 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1874
1875 2019-08-06 Christian Biesinger <cbiesinger@google.com>
1876
1877 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1878 (error_in_psymtab_expansion): Likewise.
1879 (lookup_symbol_via_quick_fns): Likewise.
1880 (basic_lookup_transparent_type_quick): Likewise.
1881 (basic_lookup_transparent_type_1): Likewise.
1882
1883 2019-08-06 Tom Tromey <tromey@adacore.com>
1884
1885 * source.c (last_source_error): Now bool.
1886 (print_source_lines_base): Make "noprint" bool. Only open
1887 source file when last_source_visited changes.
1888
1889 2019-08-06 Tom Tromey <tromey@adacore.com>
1890
1891 * annotate.c (annotate_source_line): Use g_source_cache.
1892 * source-cache.c (source_cache::get_plain_source_lines): Change
1893 parameters. Populate m_offset_cache.
1894 (source_cache::ensure): New method.
1895 (source_cache::get_line_charpos): New method.
1896 (extract_lines): Move lower. Change parameters.
1897 (source_cache::get_source_lines): Move lower.
1898 * source-cache.h (class source_cache): Update comment.
1899 <get_line_charpos>: New method.
1900 <get_source_lines>: Update comment.
1901 <clear>: Clear m_offset_cache.
1902 <get_plain_source_lines>: Change parameters.
1903 <ensure>: New method
1904 <m_offset_cache>: New member.
1905 * source.c (forget_cached_source_info_for_objfile): Update.
1906 (info_source_command): Use g_source_cache.
1907 (find_source_lines, open_source_file_with_line_charpos): Remove.
1908 (print_source_lines_base, search_command_helper): Use g_source_cache.
1909 * source.h (open_source_file_with_line_charpos): Don't declare.
1910 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1911 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1912 Use g_source_cache.
1913
1914 2019-08-06 Tom Tromey <tromey@adacore.com>
1915
1916 * source-cache.c (source_cache::get_plain_source_lines):
1917 Remove "first_line" and "last_line" parameters.
1918 (source_cache::get_source_lines): Cache plain text.
1919 * source-cache.h (class source_cache)
1920 <get_plain_source_lines>: Update.
1921
1922 2019-08-06 Tom Tromey <tromey@adacore.com>
1923
1924 * source-cache.c (extract_lines): No longer a method.
1925 Changed type of parameter. Include final newline.
1926 (selftests::extract_lines_test): New function.
1927 (_initialize_source_cache): Likewise.
1928 * source-cache.h (class source_cache)
1929 <extract_lines>: Don't declare.
1930
1931 2019-08-06 Tom Tromey <tromey@adacore.com>
1932
1933 * breakpoint.c (init_breakpoint_sal): Update.
1934 (breakpoint): Update.
1935 * breakpoint.h (struct breakpoint) <filter>: Now a
1936 unique_xmalloc_ptr.
1937
1938 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1939
1940 * NEWS: Mention dictionary access on blocks.
1941 * python/py-block.c (blpy_getitem): New function.
1942 (block_object_as_mapping): New struct.
1943 (block_object_type): Use new struct for tp_as_mapping field.
1944
1945 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1946
1947 * objfiles.h (objfile): Add a comment describing partial symbols.
1948
1949 2019-08-05 Tom Tromey <tromey@adacore.com>
1950
1951 * compile/compile.c (_initialize_compile): Use _(), not N_().
1952 * thread.c (_initialize_thread): Use _(), not N_().
1953 * stack.c (_initialize_stack): Use _(), not N_().
1954 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1955
1956 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1957
1958 * dwarf2read.c (struct dw2_symtab_iterator):
1959 <want_specific_block>: Remove.
1960 <block_index>: Change type to gdb::optional.
1961 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1962 change type of BLOCK_INDEX parameter to gdb::optional.
1963 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1964 (dw2_lookup_symbol): Don't pass argument for
1965 WANT_SPECIFIC_BLOCK.
1966 (dw2_expand_symtabs_for_function): Don't pass argument for
1967 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1968 (class dw2_debug_names_iterator)
1969 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1970 parameter, change BLOCK_INDEX type to gdb::optional.
1971 <m_want_specific_block>: Remove.
1972 <m_block_index>: Change type to gdb::optional.
1973 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1974 gdb::optional. Re-write in function of gdb::optional.
1975 (dw2_debug_names_lookup_symbol): Don't pass argument for
1976 WANT_SPECIFIC_BLOCK.
1977 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1978 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1979 BLOCK_INDEX.
1980
1981 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1982
1983 * NEWS: Mention changes to "info sources" command.
1984
1985 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1986
1987 * symtab.c (filename_partial_match_opts): New struct type.
1988 (struct output_source_filename_data): New members
1989 regexp, c_regexp, partial_match.
1990 (output_source_filename): Use new members to decide to print file.
1991 (info_sources_option_defs): New variable.
1992 (make_info_sources_options_def_group, print_info_sources_header,
1993 info_sources_command_completer):
1994 New functions.
1995 (info_sources_command): Read new optional arguments.
1996 (_initialize_symtab): Update info sources help.
1997
1998 2019-08-02 Alexandre Oliva <oliva@adacore.com>
1999
2000 * ada-lang.c (exception_support_info_v0): Renamed from...
2001 (default_exception_support_info): ... this. Create new
2002 definition for v1.
2003 (ada_has_this_exception_support): Look up catch_handlers_sym.
2004 (ada_exception_support_info_sniffer): Try v0 after default.
2005
2006 2019-08-01 Tom Tromey <tromey@adacore.com>
2007
2008 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2009 gdbarch.h.
2010
2011 2019-08-01 Christian Biesinger <cbiesinger@google.com>
2012
2013 * s12z-tdep.c: Fix include path for s12z-opc.h.
2014
2015 2019-08-01 Alan Hayward <alan.hayward@arm.com>
2016
2017 * NEWS: Require GNU make 3.82.
2018
2019 2019-07-16 Tom Tromey <tom@tromey.com>
2020
2021 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2022 declare.
2023
2024 2019-07-30 Tom Tromey <tromey@adacore.com>
2025
2026 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2027
2028 2019-07-30 Kevin Buettner <kevinb@redhat.com>
2029
2030 * printcmd.c (print_address_symbolic): Print negative offsets.
2031 (build_address_symbolic): Force signed arithmetic when computing
2032 offset.
2033
2034 2019-07-30 Christian Biesinger <cbiesinger@google.com>
2035
2036 PR/24474: Add a function to lookup static variables.
2037 * NEWS: Mention this new function.
2038 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2039 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2040 * python/python.c (python_GdbMethods): Add new function.
2041
2042 2019-07-29 Christian Biesinger <cbiesinger@google.com>
2043
2044 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2045 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2046 (objfpy_lookup_static_symbol): New function.
2047 (objfile_object_methods): Add new functions.
2048
2049 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2050
2051 * NEWS: Mention 'set|show print frame-info'. Mention new
2052 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2053 backtrace argument. Mention that python frame filtering code
2054 is now consistent with what 'backtrace' command prints.
2055
2056 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2057
2058 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2059 comments.
2060 (print_frame_info_auto, print_frame_info_source_line,
2061 print_frame_info_location, print_frame_info_source_and_location,
2062 print_frame_info_location_and_address, print_frame_info_short_location):
2063 New declarations.
2064 (struct frame_print_options): New member print_frame_info.
2065 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2066 * stack.h (get_user_print_what_frame_info): New declaration.
2067 (frame_show_address): New declaration.
2068 * stack.c (print_frame_arguments_choices): New value 'presence'.
2069 (print_frame_info_auto, print_frame_info_source_line,
2070 print_frame_info_location, print_frame_info_source_and_location,
2071 print_frame_info_location_and_address, print_frame_info_short_location,
2072 print_frame_info_choices, print_frame_info_print_what): New definitions.
2073 (print_frame_args): Only print dots for args if print frame-arguments
2074 is 'presence'.
2075 (frame_print_option_defs): New element for "frame-info".
2076 (get_user_print_what_frame_info): New function.
2077 (frame_show_address): Make non static. Move comment to stack.h.
2078 (print_frame_info_to_print_what): New function.
2079 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2080 to decide what to print.
2081 (backtrace_command_1): Handle the new print_frame_arguments_presence
2082 value.
2083 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2084 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2085 (py_print_frame): In non-mi mode, use LOCATION as default for
2086 print_what, similarly to frame information printed directly by
2087 backtrace command. Handle frame-info user option in non MI mode.
2088
2089 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2090
2091 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2092 Add case for debugging 32-bit target on 64-bit host. Revise
2093 comment.
2094
2095 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2096
2097 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2098 instead of find_function_entry_range_from_pc.
2099
2100 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2101
2102 * stack.c (find_frame_funname): Remove code which preferred
2103 minsym over symtab sym in "certain pathological cases".
2104
2105 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2106 parameter. Change type of "do_demangle" to bool.
2107 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2108 Pass suitable "prefer_sym_over_minsym" flag to
2109 build_address_symbolic(). Don't output "+" for negative offsets.
2110 * printcmd.c (print_address_symbolic): Update invocation of
2111 build_address_symbolic to include a "prefer_sym_over_minsym"
2112 flag.
2113 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2114 Restrict cases in which use of minimal symbol is preferred to that
2115 of a found symbol. Update comments.
2116
2117 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2118 for entry pc when entry pc is out of range for that FDE.
2119
2120 2019-07-26 Brian Callahan <bcallah@openbsd.org>
2121
2122 PR gdb/24839:
2123 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2124 type.
2125
2126 2019-07-25 Christian Biesinger <cbiesinger@google.com>
2127
2128 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2129 this function's Python signature.
2130
2131
2132 2019-07-24 Christian Biesinger <cbiesinger@google.com>
2133
2134 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2135 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2136 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2137 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2138 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2139
2140
2141 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2142
2143 * h8300-tdep.c (h8300_register_name_common): New.
2144 h8300_register_name): Use h8300_register_name_common.
2145 (h8300s_register_name): Likewise.
2146 (h8300sx_register_name): Likewise.
2147 (h8300h_register_nam): New.
2148 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2149
2150
2151 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2152
2153 * arm-tdep.c (arm_skip_cmse_entry): New function.
2154 (arm_is_sgstubs_section): New function.
2155 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2156
2157 2019-07-22 Tom Tromey <tom@tromey.com>
2158
2159 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2160 Don't self-assign.
2161
2162 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2163
2164 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2165 type_print.
2166
2167 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2168
2169 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2170 so that GDB doesn't match any msymbols when searching in the
2171 TYPES_DOMAIN.
2172 (print_symbol_info): Print using typedef_print or type_print based
2173 on the type of the symbol. Add updated FIXME comment moved from...
2174 (_initialize_symtab): ... move and update FIXME comment to above.
2175
2176 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2177
2178 * NEWS: Mention adding -q option to "info types".
2179 * symtab.c (struct info_types_options): New struct.
2180 (info_types_options_defs): New variable.
2181 (make_info_types_options_def_group): New function.
2182 (info_types_command): Use gdb::option framework to parse options.
2183 (info_types_command_completer): New function.
2184 (_initialize_symtab): Extend the help text on "info types" and
2185 register command completer.
2186
2187 2019-07-21 Christian Biesinger <cbiesinger@google.com>
2188
2189 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2190 (lookup_symbol_in_objfile): Change int to block_enum and add a
2191 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2192
2193 2019-07-20 Christian Biesinger <cbiesinger@google.com>
2194
2195 * MAINTAINERS (Write After Approval): Add self.
2196
2197 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2198
2199 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2200 instruction to the dummy code region.
2201
2202 2019-07-19 Tom Tromey <tromey@adacore.com>
2203
2204 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2205 (ARGSUSED, PARAMS, __func__): Remove rules.
2206
2207 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2208
2209 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2210 * features/arm/arm-with-iwmmxt.c: Remove.
2211 * features/arm/arm-with-iwmmxt.xml: Remove.
2212 * features/arm/arm-with-m-fpa-layout.c: Remove.
2213 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2214 * features/arm/arm-with-m-vfp-d16.c: Remove.
2215 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2216 * features/arm/arm-with-m.c: Remove.
2217 * features/arm/arm-with-m.xml: Remove.
2218 * features/arm/arm-with-neon.c: Remove.
2219 * features/arm/arm-with-neon.xml: Remove.
2220 * features/arm/arm-with-vfpv2.c: Remove.
2221 * features/arm/arm-with-vfpv2.xml: Remove.
2222 * features/arm/arm-with-vfpv3.c: Remove.
2223 * features/arm/arm-with-vfpv3.xml: Remove.
2224
2225 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2226
2227 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2228
2229 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2230
2231 * arch/aarch32.c (aarch32_create_target_description): Create
2232 target descriptions using features.
2233 * arch/arm.c (arm_create_target_description)
2234 (arm_create_mprofile_target_description): Likewise.
2235 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2236
2237 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2238
2239 * Makefile.in: Add new files.
2240 * aarch32-tdep.c: New file.
2241 * aarch32-tdep.h: New file.
2242 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2243 Call aarch32_read_description.
2244 * arch/aarch32.c: New file.
2245 * arch/aarch32.h: New file.
2246 * arch/arm.c (arm_create_target_description)
2247 (arm_create_mprofile_target_description): New function.
2248 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2249 (arm_create_target_description)
2250 (arm_create_mprofile_target_description): New declaration.
2251 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2252 read_description functions.
2253 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2254 Likewise.
2255 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2256 * arm-tdep.c (tdesc_arm_list): New variable.
2257 (arm_register_g_packet_guesses): Call create description functions.
2258 (arm_read_description) (arm_read_mprofile_description): New
2259 function.
2260 * arm-tdep.h (arm_read_description)
2261 (arm_read_mprofile_description): Add declaration.
2262 * configure.tgt: Add new files.
2263
2264 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2265
2266 * top.c (new_ui_command): Open specified terminal just once.
2267
2268 2019-07-18 Tom Tromey <tromey@adacore.com>
2269
2270 * symtab.c (main_name): Constify return type.
2271 * symfile.c (set_initial_language): Update.
2272 * symtab.h (main_name): Constify return type.
2273
2274 2019-07-17 Tom Tromey <tom@tromey.com>
2275
2276 * tui/tui-winsource.c (tui_update_source_window)
2277 (tui_update_source_window_as_is)
2278 (tui_update_source_windows_with_line): Remove return.
2279 * tui/tui-disasm.c (tui_show_disassem)
2280 (tui_show_disassem_and_update_source): Remove return.
2281 * tui/tui.c (tui_reset): Remove return.
2282 * tui/tui-wingeneral.c
2283 (tui_check_and_display_highlight_if_needed): Remove return.
2284
2285 2019-07-17 Tom Tromey <tom@tromey.com>
2286
2287 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2288
2289 2019-07-17 Tom Tromey <tom@tromey.com>
2290
2291 * tui/tui-winsource.h (struct tui_exec_info_window)
2292 (struct tui_source_window_base): Move from tui-data.h.
2293 * tui/tui-winsource.c: Move many method definitions from
2294 elsewhere. Remove "structuring" comments.
2295 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2296 (tui_source_window_base::refresh_window): Move to
2297 tui-winsource.c.
2298 * tui/tui-win.c (tui_source_window_base::refresh_all)
2299 (tui_source_window_base::update_tab_width)
2300 (tui_source_window_base::set_new_height)
2301 (tui_source_window_base::do_make_visible_with_new_height): Move to
2302 tui-winsource.c.
2303 * tui/tui-source.h: Update.
2304 * tui/tui-source.c (tui_source_window_base::reset): Move to
2305 tui-winsource.c.
2306 * tui/tui-disasm.h: Update.
2307 * tui/tui-data.h (struct tui_exec_info_window): Move to
2308 tui-winsource.h.
2309 (struct tui_source_window_base): Likewise.
2310 * tui/tui-data.c (tui_source_window_base::clear_detail)
2311 (tui_source_window_base, ~tui_source_window_base): Move to
2312 tui-winsource.c.
2313
2314 2019-07-17 Tom Tromey <tom@tromey.com>
2315
2316 * tui/tui-win.c (tui_resize_all)
2317 (tui_source_window_base::update_tab_width)
2318 (tui_adjust_win_heights): Update.
2319 (tui_win_info::make_invisible_and_set_new_height): Rename from
2320 make_invisible_and_set_new_height.
2321 * tui/tui-data.h (struct tui_win_info)
2322 <make_invisible_and_set_new_height>: New method.
2323
2324 2019-07-17 Tom Tromey <tom@tromey.com>
2325
2326 * tui/tui.c: Update.
2327 * tui/tui-source.h (struct tui_source_window): Move from
2328 tui-data.h.
2329 * tui/tui-layout.c: Update.
2330 * tui/tui-disasm.c: Update.
2331 * tui/tui-data.h (struct tui_source_window): Move to
2332 tui-source.h.
2333
2334 2019-07-17 Tom Tromey <tom@tromey.com>
2335
2336 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2337 tui-data.h.
2338 * tui/tui-data.h (struct tui_disasm_window): Move to
2339 tui-disasm.h.
2340
2341 2019-07-17 Tom Tromey <tom@tromey.com>
2342
2343 * tui/tui-regs.h (struct tui_data_item_window): Move from
2344 tui-data.h.
2345 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2346 * tui/tui-data.h (struct tui_data_item_window): Move to
2347 tui-regs.h.
2348 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2349
2350 2019-07-17 Tom Tromey <tom@tromey.com>
2351
2352 * tui/tui.c: Update.
2353 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2354 (tui_cmd_window::max_height): Move to tui-command.c.
2355 * tui/tui-layout.c: Update.
2356 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2357 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2358 tui-command.c.
2359 * tui/tui-command.h (struct tui_cmd_window): Move from
2360 tui-data.h.
2361 * tui/tui-command.c: Remove "structuring" comments.
2362 (tui_cmd_window::clear_detail)
2363 (tui_cmd_window::do_make_visible_with_new_height)
2364 (tui_cmd_window::max_height): Move from elsewhere.
2365
2366 2019-07-17 Tom Tromey <tom@tromey.com>
2367
2368 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2369 Now static.
2370 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2371 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2372
2373 2019-07-17 Tom Tromey <tom@tromey.com>
2374
2375 * tui/tui.c: Update.
2376 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2377 tui-regs.c.
2378 * tui/tui-windata.h: Remove file.
2379 * tui/tui-windata.c: Remove file.
2380 * tui/tui-win.c (tui_data_window::set_new_height)
2381 (tui_data_window::do_make_visible_with_new_height): Move to
2382 tui-regs.c.
2383 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2384 * tui/tui-regs.c: Remove "structuring" comments.
2385 (tui_data_window::first_data_item_displayed)
2386 (tui_data_window::delete_data_content_windows)
2387 (tui_data_window::erase_data_content)
2388 (tui_data_window::display_all_data)
2389 (tui_data_window::refresh_all)
2390 (tui_data_window::do_scroll_vertical)
2391 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2392 (tui_data_window::do_make_visible_with_new_height)
2393 (tui_data_window::refresh_window): Move from elsewhere.
2394 (_initialize_tui_regs): Move to end of file.
2395 * tui/tui-layout.c: Update.
2396 * tui/tui-hooks.c: Update.
2397 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2398 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2399 tui-regs.c.
2400 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2401
2402 2019-07-17 Tom Tromey <tom@tromey.com>
2403
2404 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2405 seen.
2406
2407 2019-07-17 Tom Tromey <tom@tromey.com>
2408
2409 * tui/tui-win.c (tui_source_window_base::set_new_height)
2410 (tui_source_window_base::do_make_visible_with_new_height): Use
2411 m_has_locator field directly.
2412 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2413 method.
2414 (struct tui_source_window_base) <has_locator>: Likewise.
2415
2416 2019-07-17 Tom Tromey <tom@tromey.com>
2417
2418 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2419 Don't declare.
2420 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2421 Remove.
2422 * tui/tui-win.c (tui_source_window_base::set_new_height)
2423 (tui_source_window_base::set_new_height)
2424 (make_invisible_and_set_new_height)
2425 (tui_source_window_base::do_make_visible_with_new_height)
2426 (tui_source_window_base::do_make_visible_with_new_height):
2427 Update.
2428 * tui/tui-layout.c (show_source_disasm_command, show_data)
2429 (show_source_or_disasm_and_command): Update.
2430 * tui/tui-layout.c (show_layout): Update.
2431
2432 2019-07-17 Tom Tromey <tom@tromey.com>
2433
2434 * tui/tui-layout.c (make_data_window): Remove.
2435 (show_data): Unify creation and re-initialization cases.
2436
2437 2019-07-17 Tom Tromey <tom@tromey.com>
2438
2439 * tui/tui-layout.c (make_source_window, make_disasm_window):
2440 Remove.
2441 (show_data): Unify creation and re-initialization cases.
2442
2443 2019-07-17 Tom Tromey <tom@tromey.com>
2444
2445 * tui/tui-layout.c (make_command_window): Remove.
2446 (show_source_disasm_command, show_source_or_disasm_and_command):
2447 Unify creation and re-initialization cases.
2448
2449 2019-07-17 Tom Tromey <tom@tromey.com>
2450
2451 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2452 creation and re-initialization cases.
2453
2454 2019-07-17 Tom Tromey <tom@tromey.com>
2455
2456 * tui/tui-regs.c (tui_get_register): Return void.
2457
2458 2019-07-17 Tom Tromey <tom@tromey.com>
2459
2460 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2461 Simplify.
2462
2463 2019-07-17 Tom Tromey <tom@tromey.com>
2464
2465 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2466 resetting.
2467
2468 2019-07-17 Tom Tromey <tom@tromey.com>
2469
2470 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2471 * tui/tui-regs.c (tui_reg_layout): New function.
2472 (tui_show_registers, tui_reg_command): Use it.
2473 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2474 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2475 parameters.
2476 (tui_layout_command): Remove.
2477
2478 2019-07-17 Tom Tromey <tom@tromey.com>
2479
2480 * tui/tui-layout.h (tui/tui-layout): Return void.
2481 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2482
2483 2019-07-17 Tom Tromey <tom@tromey.com>
2484
2485 * tui/tui-layout.c (show_source_disasm_command, show_data):
2486 Update.
2487 (reset_locator): Remove.
2488 (show_source_or_disasm_and_command): Update.
2489
2490 2019-07-17 Tom Tromey <tom@tromey.com>
2491
2492 * tui/tui-source.c (tui_source_window_base::reset): Remove
2493 win_type parameter.
2494 * tui/tui-layout.c (make_command_window, make_source_window)
2495 (make_disasm_window, make_data_window)
2496 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2497 (reset_locator, show_source_or_disasm_and_command): Update.
2498 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2499 win_type parameter.
2500 (struct tui_source_window_base) <reset>: Likewise.
2501
2502 2019-07-17 Tom Tromey <tom@tromey.com>
2503
2504 * tui/tui-layout.c (show_source_disasm_command): Use
2505 reset_locator.
2506 (reset_locator): New function.
2507 (init_and_make_win): Remove.
2508 (show_source_or_disasm_and_command): Use reset_locator.
2509
2510 2019-07-17 Tom Tromey <tom@tromey.com>
2511
2512 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2513 condition.
2514 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2515 Remove condition.
2516 * tui/tui-source.c (tui_source_window_base::reset): New method.
2517 * tui/tui-layout.c (make_command_window): Don't call
2518 init_and_make_win.
2519 (make_source_window, make_disasm_window): Don't call
2520 make_source_or_disasm_window.
2521 (make_data_window): Don't call init_and_make_win. Change calling
2522 convention.
2523 (show_source_disasm_command, show_data): Simplify.
2524 (make_source_or_disasm_window): Remove.
2525 (show_source_or_disasm_and_command): Simplify.
2526 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2527 (struct tui_source_window_base) <reset>: Likewise.
2528 <execution_info>: Remove initializer.
2529 * tui/tui-data.c (tui_source_window_base): Initialize
2530 execution_info.
2531
2532 2019-07-17 Tom Tromey <tom@tromey.com>
2533
2534 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2535 variable.
2536
2537 2019-07-17 Tom Tromey <tom@tromey.com>
2538
2539 * tui/tui.c (tui_rl_other_window): Update.
2540 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2541 superclass method first. Always iterate over regs_content.
2542 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2543 method.
2544 * tui/tui-win.c (tui_set_focus_command): Update.
2545
2546 2019-07-17 Tom Tromey <tom@tromey.com>
2547
2548 * tui/tui-win.c (tui_set_focus_command): Rename from
2549 tui_set_focus. Call tui_enable.
2550 (tui_set_focus_command): Remove.
2551
2552 2019-07-17 Tom Tromey <tom@tromey.com>
2553
2554 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2555 refresh_window.
2556 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2557 touchwin.
2558 (tui_data_window::refresh_window): Call refresh_window on data
2559 items. Always call superclass refresh_window.
2560 (tui_win_info::refresh): Remove.
2561 (tui_source_window_base::refresh_window): Update.
2562 (tui_refresh_all): Update.
2563 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2564 refresh_window.
2565 (show_source_or_disasm_and_command): Likewise.
2566 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2567 (struct tui_source_window_base) <refresh>: Likewise.
2568
2569 2019-07-17 Tom Tromey <tom@tromey.com>
2570
2571 * tui/tui-winsource.c (tui_clear_source_content)
2572 (tui_show_source_content): Update.
2573 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2574 whether content is empty.
2575 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2576 Remove.
2577
2578 2019-07-17 Tom Tromey <tom@tromey.com>
2579
2580 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2581 window's contents.
2582 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2583 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2584
2585 2019-07-17 Tom Tromey <tom@tromey.com>
2586
2587 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2588 (struct tui_data_item_window): Update.
2589
2590 2019-07-17 Tom Tromey <tom@tromey.com>
2591
2592 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2593 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2594 defines.
2595
2596 2019-07-17 Tom Tromey <tom@tromey.com>
2597
2598 * tui/tui-winsource.h (tui_erase_source_content)
2599 (tui_clear_source_content): Remove "display_prompt" parameter.
2600 * tui/tui-winsource.c (tui_update_source_window_as_is)
2601 (tui_update_source_windows_with_addr): Update.
2602 (tui_clear_source_content): Remove "display_prompt" parameter.
2603 (tui_erase_source_content): Likewise. Simplify.
2604 (tui_show_source_content): Update.
2605 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2606 * tui/tui-stack.c (tui_show_frame_info): Update.
2607 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2608 Remove defines.
2609
2610 2019-07-17 Tom Tromey <tom@tromey.com>
2611
2612 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2613 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2614 parameter.
2615 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2616 parameter.
2617
2618 2019-07-17 Tom Tromey <tom@tromey.com>
2619
2620 * tui/tui-winsource.c (tui_clear_source_content)
2621 (tui_show_source_content, tui_show_exec_info_content)
2622 (tui_clear_exec_info_content): Update.
2623 * tui/tui-stack.c (tui_show_locator_content): Update.
2624 (tui_show_frame_info): Update.
2625 * tui/tui-source.h (tui_source_window): Don't declare.
2626 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2627 from tui_source_is_displayed.
2628 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2629 Remove field.
2630 (struct tui_source_window_base) <content_in_use>: New field. Now
2631 bool.
2632 (struct tui_source_window) <showing_source_p>: New method.
2633 (TUI_SRC_WIN): Change cast.
2634 * tui/tui-data.c (tui_initialize_static_data): Update.
2635
2636 2019-07-17 Tom Tromey <tom@tromey.com>
2637
2638 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2639 location_matches_p.
2640 * tui/tui-source.c (tui_source_window::location_matches_p): New
2641 method.
2642 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2643 method.
2644 * tui/tui-data.h (struct tui_source_window_base)
2645 <location_matches_p>: New method.
2646 (struct tui_source_window, struct tui_disasm_window)
2647 <location_matches_p>: Likewise.
2648
2649 2019-07-17 Tom Tromey <tom@tromey.com>
2650
2651 * tui/tui-win.c (tui_set_win_height_command): Rename from
2652 tui_set_win_height.
2653 (tui_set_win_height_command): Remove.
2654
2655 2019-07-17 Tom Tromey <tom@tromey.com>
2656
2657 * tui/tui-source.c (tui_source_window): New constructor. Add
2658 observer.
2659 (~tui_source_window): New destructor.
2660 (tui_source_window::style_changed): New method.
2661 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2662 (tui_attach_detach_observers): Update.
2663 * tui/tui-data.h (struct tui_source_window): Make constructor not
2664 inline. Add destructor.
2665 (struct tui_source_window) <style_changed>: New method.
2666 <m_observable>: New member.
2667
2668 2019-07-17 Tom Tromey <tom@tromey.com>
2669
2670 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2671 * tui/tui-win.c (tui_resize_all): Fix typo.
2672
2673 2019-07-17 Tom Tromey <tom@tromey.com>
2674
2675 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2676 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2677 (tui_refresh_all): Remove "list" parameter. Use foreach.
2678 * tui/tui-win.c (window_name_completer): Use foreach.
2679 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2680 (update_tab_width): Likewise.
2681 * tui/tui-layout.c (show_layout): Update.
2682 * tui/tui-data.h (class tui_window_iterator): New.
2683 (struct all_tui_windows): New.
2684 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2685
2686 2019-07-17 Tom Tromey <tom@tromey.com>
2687
2688 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2689 parameter. Don't reference globals.
2690 (tui_reg_command): Update.
2691
2692 2019-07-17 Tom Tromey <tom@tromey.com>
2693
2694 * tui/tui-regs.c (tui_show_registers): Simplify.
2695
2696 2019-07-17 Tom Tromey <tom@tromey.com>
2697
2698 * tui/tui-regs.c (tui_show_registers): Update.
2699 (tui_show_register_group): Add win_info parameter.
2700
2701 2019-07-17 Tom Tromey <tom@tromey.com>
2702
2703 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2704 Rename from tui_display_reg_element_at_line.
2705 (tui_data_window::display_registers_from_line): Update.
2706 * tui/tui-data.h (struct tui_data_window)
2707 <display_reg_element_at_line>: New method.
2708
2709 2019-07-17 Tom Tromey <tom@tromey.com>
2710
2711 * tui/tui-regs.h (tui_display_registers_from)
2712 (tui_display_registers_from_line): Don't declare.
2713 * tui/tui-windata.c (tui_data_window::display_all_data)
2714 (tui_data_window::refresh_all)
2715 (tui_data_window::do_scroll_vertical): Update.
2716 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2717 from tui_display_registers_from.
2718 (tui_display_reg_element_at_line): Update.
2719 (tui_data_window::display_registers_from_line): Rename from
2720 tui_display_registers_from_line.
2721 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2722 display_registers_from_line>: New methods.
2723
2724 2019-07-17 Tom Tromey <tom@tromey.com>
2725
2726 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2727 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2728 from tui_erase_data_content.
2729 (tui_data_window::display_all_data)
2730 (tui_data_window::refresh_all)
2731 (tui_data_window::do_scroll_vertical): Update.
2732 * tui/tui-regs.c (tui_show_registers): Update.
2733 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2734 New method.
2735
2736 2019-07-17 Tom Tromey <tom@tromey.com>
2737
2738 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2739 declare.
2740 * tui/tui-windata.c
2741 (tui_data_window::delete_data_content_windows): Rename from
2742 tui_delete_data_content_windows.
2743 (tui_data_window::display_all_data)
2744 (tui_data_window::do_scroll_vertical): Update.
2745 * tui/tui-data.h (struct tui_data_window)
2746 <delete_data_content_windows>: New method.
2747
2748 2019-07-17 Tom Tromey <tom@tromey.com>
2749
2750 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2751 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2752
2753 2019-07-17 Tom Tromey <tom@tromey.com>
2754
2755 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2756 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2757 from tui_display_all_data.
2758 * tui/tui-win.c
2759 (tui_data_window::do_make_visible_with_new_height): Update.
2760 * tui/tui-regs.c (tui_show_registers): Update.
2761 * tui/tui-layout.c (tui_set_layout): Update.
2762 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2763 method.
2764
2765 2019-07-17 Tom Tromey <tom@tromey.com>
2766
2767 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2768 * tui/tui-windata.c (tui_display_data_from): Remove.
2769 (tui_data_window::refresh_all): Update.
2770
2771 2019-07-17 Tom Tromey <tom@tromey.com>
2772
2773 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2774 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2775 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2776 tui_display_registers_from_line.
2777 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2778 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2779 "force_display" parameter.
2780
2781 2019-07-17 Tom Tromey <tom@tromey.com>
2782
2783 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2784 declare.
2785 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2786 Rename from tui_first_reg_element_no_inline.
2787 (tui_display_reg_element_at_line)
2788 (tui_display_registers_from_line): Update.
2789 * tui/tui-data.h (struct tui_data_window)
2790 <first_reg_element_no_inline>: New method.
2791
2792 2019-07-17 Tom Tromey <tom@tromey.com>
2793
2794 * tui/tui-windata.c (tui_display_data_from)
2795 (tui_data_window::do_scroll_vertical): Update.
2796 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2797 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2798 Rename from tui_line_from_reg_element_no.
2799 (tui_display_registers_from_line): Update.
2800 * tui/tui-data.h (struct tui_data_window)
2801 <line_from_reg_element_no>: New method.
2802
2803 2019-07-17 Tom Tromey <tom@tromey.com>
2804
2805 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2806 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2807 tui_last_regs_line_no.
2808 (tui_display_reg_element_at_line)
2809 (tui_display_registers_from_line): Update.
2810 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2811 method.
2812
2813 2019-07-17 Tom Tromey <tom@tromey.com>
2814
2815 PR tui/24722:
2816 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2817 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2818 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2819 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2820 (tui_update_breakpoint_info): Likewise.
2821 * tui/tui-hooks.c (tui_event_create_breakpoint)
2822 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2823 Update.
2824
2825 2019-07-17 Tom Tromey <tom@tromey.com>
2826
2827 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2828
2829 2019-07-17 Tom Tromey <tom@tromey.com>
2830
2831 * tui/tui-winsource.c (tui_update_source_window_as_is)
2832 (tui_update_source_windows_with_addr): Update.
2833 * tui/tui-source.h (tui_set_source_content)
2834 (tui_show_symtab_source): Add "win_info" parameter.
2835 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2836 parameter.
2837 (tui_show_symtab_source): Likewise.
2838
2839 2019-07-17 Tom Tromey <tom@tromey.com>
2840
2841 * tui/tui-wingeneral.c
2842 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2843
2844 2019-07-17 Tom Tromey <tom@tromey.com>
2845
2846 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2847 (struct tui_cmd_window) <can_scroll>: New method.
2848 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2849 method.
2850
2851 2019-07-17 Tom Tromey <tromey@adacore.com>
2852
2853 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2854 do_field_signed>: Rename. Change type of "value".
2855 * ui-out.c (ui_out::field_signed): Rename from field_int.
2856 Change type of "value".
2857 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2858 type of "value".
2859 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2860 do_field_int. Change type of "value".
2861 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2862 do_field_int. Change type of "value".
2863 * tracepoint.c (trace_status_mi, tfind_1)
2864 (print_one_static_tracepoint_marker): Update.
2865 * thread.c (print_thread_info_1, print_selected_thread_frame):
2866 Update.
2867 * stack.c (print_frame, print_frame_info): Update.
2868 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2869 Update.
2870 * source.c (print_source_lines_base): Update.
2871 * skip.c (info_skip_command): Update.
2872 * record-btrace.c (btrace_ui_out_decode_error)
2873 (btrace_call_history_src_line): Update.
2874 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2875 Update.
2876 * progspace.c (print_program_space): Update.
2877 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2878 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2879 do_field_int. Change type of "value".
2880 * mi/mi-out.c (mi_ui_out::do_table_begin)
2881 (mi_ui_out::do_table_header): Update.
2882 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2883 type of "value".
2884 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2885 (mi_cmd_data_list_changed_registers, output_register)
2886 (mi_cmd_data_read_memory, mi_load_progress)
2887 (mi_cmd_trace_frame_collected): Update.
2888 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2889 Update.
2890 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2891 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2892 (mi_cmd_var_list_children, varobj_update_one): Update.
2893 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2894 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2895 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2896 * inferior.c (print_inferior): Update.
2897 * gdb_bfd.c (print_one_bfd): Update.
2898 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2899 Update.
2900 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2901 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2902 do_field_int. Change type of "value".
2903 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2904 do_field_int. Change type of "value".
2905 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2906 (print_one_breakpoint_location, print_it_catch_fork)
2907 (print_one_catch_fork, print_it_catch_vfork)
2908 (print_one_catch_vfork, print_it_catch_solib)
2909 (print_it_catch_exec, print_it_ranged_breakpoint)
2910 (print_mention_watchpoint, print_mention_masked_watchpoint)
2911 (bkpt_print_it, update_static_tracepoint): Update.
2912 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2913 * break-catch-syscall.c (print_it_catch_syscall): Update.
2914 * ada-tasks.c (print_ada_task_info): Update.
2915 * ada-lang.c (print_it_exception, print_mention_exception):
2916 Update.
2917
2918 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2919
2920 PR breakpoints/24541
2921 * gdbarch.c: Regenerate.
2922 * gdbarch.h: Regenerate.
2923 * gdbarch.sh: Adjust return type and parameter types for
2924 'stap_adjust_register'.
2925 (i386_stap_adjust_register): Adjust signature and return new
2926 register name.
2927 * stap-probe.c (stap_parse_register_operand): Adjust use of
2928 'gdbarch_stap_adjust_register'.
2929
2930 2019-07-17 Tom Tromey <tromey@adacore.com>
2931
2932 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2933 declare VEC.
2934 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2935 std::vector.
2936 (struct s390_process_info): Add initializers.
2937 (s390_add_process): Use new.
2938 (s390_linux_nat_target::low_forget_process): Use delete.
2939 (s390_linux_nat_target::low_new_fork)
2940 (s390_linux_nat_target::stopped_by_watchpoint)
2941 (s390_linux_nat_target::low_prepare_to_resume)
2942 (s390_linux_nat_target::insert_watchpoint)
2943 (s390_linux_nat_target::insert_hw_breakpoint)
2944 (s390_linux_nat_target::remove_watchpoint)
2945 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2946
2947 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2948
2949 * aarch64-fbsd-nat.c: Include regcache.h.
2950 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2951 argument.
2952 (aarch64_fbsd_nat_target::fetch_registers)
2953 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2954 variable.
2955 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2956
2957 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2958
2959 * fbsd-nat.c: Include gdbarch.h.
2960
2961 2019-07-15 Tom Tromey <tromey@adacore.com>
2962
2963 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2964
2965 2019-07-15 Tom Tromey <tromey@adacore.com>
2966
2967 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2968 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2969 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2970 * cli-out.c (cli_ui_out::do_field_int): New method.
2971 * ui-out.c (ui_out::field_unsigned): New method.
2972 * symfile.c (generic_load): Use field_unsigned.
2973 (print_transfer_performance): Likewise.
2974 * record-btrace.c (ui_out_field_uint): Remove.
2975 (btrace_call_history_insn_range, btrace_call_history): Use
2976 field_unsigned.
2977 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2978 field_unsigned.
2979 * ui-out.h (class ui_out) <field_unsigned>: New method.
2980 <do_field_unsigned>: Likewise.
2981
2982 2019-07-15 Tom Tromey <tromey@adacore.com>
2983
2984 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2985 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2986 * target.c (flash_erase_command): Use field_string.
2987 * infrun.c (print_signal_received_reason): Use field_string.
2988 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2989 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2990 field_string.
2991 * ada-tasks.c (print_ada_task_info): Use field_string.
2992
2993 2019-07-15 Tom Tromey <tromey@adacore.com>
2994
2995 * target.c (flash_erase_command): Use field_core_addr.
2996 * symfile.c (generic_load): Use field_core_addr.
2997 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2998 Use field_core_addr.
2999 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3000 field_core_addr.
3001
3002 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3003
3004 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3005 value if its desired type is smaller than a CORE_ADDR and signed.
3006
3007 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3008
3009 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3010 of changes to field names, and use new is_reference field to
3011 decide if a property is a reference or not.
3012 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3013 field.
3014 (struct dwarf2_property_baton): Update header comment, rename
3015 'referenced_type' to 'property_type' and update comments.
3016 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3017 default property type, store in property baton, update to take
3018 accound of renamed field.
3019 (read_func_scope): Update call to attr_to_dynamic_prop.
3020 (read_array_type): Likewise.
3021 (dwarf2_per_cu_addr_sized_int_type): New function.
3022 (read_subrange_index_type): Move type finding code to
3023 dwarf2_per_cu_addr_sized_int_type.
3024 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3025 (dwarf2_per_cu_addr_type): New function.
3026 (set_die_type): Update calls to attr_to_dynamic_prop.
3027
3028 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3029
3030 * dwarf2read.c (read_subrange_index_type): New function.
3031 (read_subrange_type): Move code into new function and call it.
3032 * gdbtypes.c (create_range_type): Add some asserts.
3033
3034 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3035
3036 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3037 update return statements.
3038 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3039 declaration, and update comment to match.
3040 * gdbtypes.c (resolve_dynamic_array): Update call to
3041 dwarf2_evaluate_property to match new return type.
3042
3043 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3044
3045 * valarith.c (value_subscripted_rvalue): Change lowerbound
3046 parameter type from int to LONGEST.
3047 * value.h (value_subscripted_rvalue): Likewise in declaration.
3048
3049 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3050
3051 * cli/cli-utils.c (info_print_command_completer): New function.
3052 * cli/cli-utils.h: Add 'completer.h' include, and forward
3053 declaration for 'struct cmd_list_element'.
3054 (info_print_command_completer): Declare.
3055 * stack.c (_initialize_stack): Add completer for 'info locals' and
3056 'info args'.
3057 * symtab.c (_initialize_symtab): Add completer for 'info
3058 variables' and 'info functions'.
3059 * NEWS: Mention completion for additional info commands.
3060
3061 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3062
3063 * cli/cli-utils.c (extract_info_print_args): Delete.
3064 (extract_arg_maybe_quoted): Delete.
3065 (info_print_options_defs): New variable.
3066 (make_info_print_options_def_group): New function.
3067 (extract_info_print_options): Define new function.
3068 * cli/cli-utils.h (extract_info_print_args): Delete.
3069 (struct info_print_options): New structure.
3070 (extract_info_print_options): Declare new function.
3071 * stack.c (info_locals_command): Update to use new
3072 extract_info_print_options, also add a header comment.
3073 (info_args_command): Likewise.
3074 * symtab.c (info_variables_command): Likewise.
3075 (info_functions_command): Likewise.
3076
3077 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3078
3079 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3080 to extract string arguments.
3081 * common/common-utils.c (extract_string_maybe_quoted): New function.
3082 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3083
3084 2019-07-11 Tom Tromey <tromey@adacore.com>
3085
3086 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3087 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3088 * top.h (gdbinit): Don't declare.
3089 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3090 into...
3091 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3092 * top.c (gdb_init): Don't call init_cli_cmds.
3093 (gdbinit): Remove.
3094 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3095
3096 2019-07-11 Tom Tromey <tromey@adacore.com>
3097
3098 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3099 after it has been moved.
3100
3101 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3102
3103 * valops.c (value_must_coerce_to_target): Change return type to
3104 bool.
3105 * value.h (value_must_coerce_to_target): Likewise.
3106
3107 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
3108
3109 * breakpoint.c (is_hardware_watchpoint): Remove
3110 forward-declaration.
3111 (is_masked_watchpoint): Change return type to bool.
3112 (is_tracepoint): Likewise.
3113 (is_breakpoint): Likewise.
3114 (is_hardware_watchpoint): Likewise.
3115 (is_watchpoint): Likewise.
3116 (is_no_memory_software_watchpoint): Likewise.
3117 (is_catchpoint): Likewise.
3118 (breakpoint_1): Make FILTER parameter's return type bool.
3119 is_masked_watchpoint): Change return type to bool.
3120 (save_breakpoints): Make FILTER parameter's return type bool.
3121 * breakpoint.h (is_breakpoint): Change return type to bool.
3122 (is_watchpoint): Likewise.
3123 (is_catchpoint): Likewise.
3124 (is_tracepoint): Likewise.
3125
3126 2019-07-10 Tom Tromey <tom@tromey.com>
3127
3128 * defs.h: Don't include gdbarch.h.
3129 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3130 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3131 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3132 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3133 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3134 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3135 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3136 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3137 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3138 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3139 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3140 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3141 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3142 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3143 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3144 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3145 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3146 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3147 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3148 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3149 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3150 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3151 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3152 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3153 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3154 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3155 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3156
3157 2019-07-10 Tom Tromey <tromey@adacore.com>
3158
3159 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3160 * breakpoint.c (init_ada_exception_breakpoint): Register as
3161 bp_catchpoint.
3162 (print_one_breakpoint_location, print_one_breakpoint): Use
3163 is_ada_exception_catchpoint.
3164 * ada-lang.c (class ada_catchpoint_location): Pass
3165 bp_loc_software_breakpoint to bp_location constructor.
3166 (is_ada_exception_catchpoint): New function.
3167
3168 2019-07-10 Tom Tromey <tromey@adacore.com>
3169
3170 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3171 VEC.
3172 (struct arm_exidx_entry): New method operator<.
3173 (struct arm_exidx_data) <section_maps>: Change type.
3174 (arm_exidx_data_free): Remove.
3175 (arm_exidx_data_key): Change type. Move lower.
3176 (arm_exidx_new_objfile): Update.
3177 (arm_compare_exidx_entries): Remove.
3178 (arm_find_exidx_entry, _initialize_arm_tdep)
3179
3180 2019-07-10 Tom Tromey <tromey@adacore.com>
3181
3182 * solib-spu.c (ocl_program_data_key): Change type.
3183 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3184 Update.
3185
3186 2019-07-10 Tom Tromey <tromey@adacore.com>
3187
3188 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3189 (struct solib_aix_inferior_data) <library_list>: Change type.
3190 (solib_aix_inferior_data_handle): Change type.
3191 (get_solib_aix_inferior_data): Update.
3192 (solib_aix_free_library_list): Remove.
3193 (library_list_start_library): Update.
3194 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3195 return type.
3196 (solib_aix_get_library_list)
3197 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3198 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3199
3200 2019-07-10 Tom Tromey <tromey@adacore.com>
3201
3202 * solib-dsbt.c (struct dsbt_info): Add initializers.
3203 (solib_dsbt_pspace_data): Change type.
3204 (dsbt_pspace_data_cleanup): Remove.
3205 (get_dsbt_info, _initialize_dsbt_solib): Update.
3206
3207 2019-07-10 Tom Tromey <tromey@adacore.com>
3208
3209 * spu-tdep.c (spu_overlay_data): Change type.
3210 (spu_get_overlay_table, spu_overlay_new_objfile)
3211 (_initialize_spu_tdep): Update.
3212
3213 2019-07-10 Tom Tromey <tromey@adacore.com>
3214
3215 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3216 destructor.
3217 (dbx_objfile_data_key): Change type and declare later.
3218 (DBX_SYMFILE_INFO): Rewrite.
3219 * dbxread.c (dbx_objfile_data_key): Change type.
3220 (dbx_symfile_init): Update.
3221 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3222 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3223 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3224
3225 2019-07-10 Tom Tromey <tromey@adacore.com>
3226
3227 * jit.c (jit_program_space_key): Change type. Move lower.
3228 (get_jit_program_space_data): Update.
3229 (jit_program_space_data_cleanup): Remove.
3230 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3231 Update.
3232 (struct jit_program_space_data): Add initializers.
3233
3234 2019-07-10 Tom Tromey <tromey@adacore.com>
3235
3236 * solib-darwin.c (struct darwin_info): Add initializers.
3237 (solib_darwin_pspace_data): Change type.
3238 (darwin_pspace_data_cleanup): Remove.
3239 (get_darwin_info, _initialize_darwin_solib): Update.
3240
3241 2019-07-10 Tom Tromey <tromey@adacore.com>
3242
3243 * remote-sim.c (struct sim_inferior_data): Add initializers,
3244 constructor, and destructor.
3245 (sim_inferior_data_key): Change type. Move lower.
3246 (check_for_duplicate_sim_descriptor): Update.
3247 (get_sim_inferior_data): Use new. Update.
3248 (~sim_inferior_data_cleanup): Rename from
3249 sim_inferior_data_cleanup. Simplify.
3250 (gdbsim_close_inferior, simulator_command)
3251 (sim_command_completer, _initialize_remote_sim): Update.
3252 (next_pid, INITIAL_PID): Move earlier.
3253
3254 2019-07-10 Tom Tromey <tromey@adacore.com>
3255
3256 * python/python-internal.h (create_thread_object): Return
3257 gdbpy_ref.
3258 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3259 * python/py-inferior.c (struct threadlist_entry): Add
3260 constructor.
3261 <thread_obj>: Now a gdbpy_ref.
3262 (thread_to_thread_object): Update.
3263 (add_thread_object): Use new.
3264 (delete_thread_object): Use delete.
3265 (infpy_threads): Update.
3266 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3267 GIL.
3268
3269 2019-07-10 Tom Tromey <tromey@adacore.com>
3270
3271 * valops.c (value_cast): Specialize error message for Ada.
3272
3273 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3274
3275 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3276
3277 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3278
3279 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3280 bpstat_should_step): Return bool, adjust comments.
3281 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3282 bpstat_should_step): Likewise.
3283
3284 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3285
3286 * features/Makefile: Use feature target descriptions for Arm.
3287 * features/arm/arm-core.c: Generate new file.
3288 * features/arm/arm-fpa.c: Likewise.
3289 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3290 * features/arm/arm-m-profile.c: Likewise.
3291 * features/arm/arm-vfpv2.c: Likewise.
3292 * features/arm/arm-vfpv3.c: Likewise.
3293 * features/arm/xscale-iwmmxt.c: Likewise.
3294 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3295
3296 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3297
3298 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3299 ptrace earlier.
3300
3301 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3302
3303 * features/aarch64-pauth.c: Regenerate.
3304
3305 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3306
3307 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3308 bool.
3309 (bpstat_what): Use false instead of 0.
3310
3311 2019-07-09 Pedro Alves <palves@redhat.com>
3312
3313 * break-catch-throw.c (is_exception_catchpoint): New.
3314 * breakpoint.c (print_one_breakpoint_location): New parameter
3315 'raw_loc'. Handle it. Use
3316 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3317 looking at the breakpoint's type.
3318 (print_one_breakpoint): If handling "maint info breakpoints", also
3319 print locations of exception catchpoints.
3320 * breakpoint.h (is_exception_catchpoint): Declare.
3321
3322 2019-07-09 Pedro Alves <palves@redhat.com>
3323
3324 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3325 "addr" field.
3326 (allocate_location_exception_catchpoint): New.
3327 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3328 (initialize_throw_catchpoint_ops): Install
3329 allocate_location_exception_catchpoint as allocate_location
3330 method.
3331 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3332 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3333 bp_loc_other.
3334 (breakpoint_address_is_meaningful): Delete.
3335 (bl_address_is_meaningful): New.
3336 (breakpoint_locations_match): Adjust comment.
3337 (bp_location_from_bp_type): New, factored out of...
3338 (bp_location::bp_location(breakpoint *)): ... this.
3339 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3340 factored out of...
3341 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3342 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3343 breakpoint_address_is_meaningful.
3344 (bp_locations_compare): Adjust comment.
3345 (update_global_location_list): Use bl_address_is_meaningful
3346 instead of breakpoint_address_is_meaningful.
3347 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3348 explicit.
3349 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3350 * python/py-breakpoint.c (bppy_get_location): No longer check
3351 whether location is null.
3352
3353 2019-07-09 Pedro Alves <palves@redhat.com>
3354
3355 PR c++/15468
3356 * breakpoint.c (print_one_breakpoint_location): Remove
3357 single-location assert.
3358
3359 2019-07-09 Tom Tromey <tom@tromey.com>
3360
3361 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3362 * configure: Rebuild.
3363 * configure.ac: Change common to gdbsupport.
3364 * gdbsupport: Rename from common.
3365 * acinclude.m4: Change common to gdbsupport.
3366 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3367 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3368 gdbsupport.
3369 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3370 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3371 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3372 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3373 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3374 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3375 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3376 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3377 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3378 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3379 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3380 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3381 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3382 coff-pe-read.c, command.h, compile/compile-c-support.c,
3383 compile/compile-c.h, compile/compile-cplus-symbols.c,
3384 compile/compile-cplus-types.c, compile/compile-cplus.h,
3385 compile/compile-loc2c.c, compile/compile.c, completer.c,
3386 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3387 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3388 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3389 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3390 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3391 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3392 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3393 features/aarch64-core.c, features/aarch64-fpu.c,
3394 features/aarch64-pauth.c, features/aarch64-sve.c,
3395 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3396 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3397 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3398 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3399 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3400 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3401 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3402 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3403 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3404 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3405 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3406 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3407 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3408 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3409 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3410 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3411 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3412 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3413 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3414 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3415 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3416 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3417 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3418 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3419 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3420 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3421 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3422 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3423 minsyms.c, mips-linux-tdep.c, namespace.h,
3424 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3425 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3426 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3427 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3428 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3429 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3430 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3431 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3432 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3433 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3434 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3435 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3436 procfs.c, producer.c, progspace.h, psymtab.h,
3437 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3438 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3439 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3440 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3441 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3442 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3443 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3444 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3445 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3446 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3447 target-memory.c, target.c, target.h, target/waitstatus.c,
3448 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3449 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3450 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3451 unittests/array-view-selftests.c,
3452 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3453 unittests/common-utils-selftests.c,
3454 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3455 unittests/format_pieces-selftests.c,
3456 unittests/function-view-selftests.c,
3457 unittests/lookup_name_info-selftests.c,
3458 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3459 unittests/mkdir-recursive-selftests.c,
3460 unittests/observable-selftests.c,
3461 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3462 unittests/parse-connection-spec-selftests.c,
3463 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3464 unittests/scoped_fd-selftests.c,
3465 unittests/scoped_mmap-selftests.c,
3466 unittests/scoped_restore-selftests.c,
3467 unittests/string_view-selftests.c, unittests/style-selftests.c,
3468 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3469 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3470 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3471 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3472 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3473 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3474
3475 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3476
3477 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3478 bool value.
3479 (decode_digits_ordinary): Set explicit_line field in sal.
3480 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3481 symtab_and_line that was set on an explicit line number in
3482 assembler code. Do always update the recorded symtab and line if
3483 we do skip the prologue.
3484
3485 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3486
3487 * breakpoint.c (set_breakpoint_location_function): Remove
3488 explicit_loc parameter.
3489 (momentary_breakpoint_from_master): Update call to
3490 set_breakpoint_location_function.
3491 (add_location_to_breakpoint): Likewise.
3492
3493 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3494
3495 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3496 required features based on default bfd type when no specific bfd
3497 is present.
3498
3499 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3500
3501 * NEWS: Mention that GDB printf and eval commands can now print
3502 C-style and Ada-style convenience var strings without
3503 calling the inferior.
3504 * printcmd.c (printf_c_string): Locally print GDB internal var
3505 instead of transiting via the inferior.
3506 (printf_wide_c_string): Likewise.
3507
3508 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3509
3510 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3511
3512 2019-07-04 Tom Tromey <tom@tromey.com>
3513
3514 PR tui/24724:
3515 * tui/tui-winsource.c (tui_clear_source_content): Update.
3516 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3517 (tui_update_breakpoint_info): Update.
3518 (tui_set_exec_info_content): Update.
3519 * tui/tui-source.c (tui_set_source_content_nil): Update.
3520 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3521 has_break.
3522 * tui/tui-data.h (enum tui_bp_flag): New.
3523 (tui_bp_flags): New enum flags type.
3524 (struct tui_source_element) <break_mode>: Change type. Rename
3525 from has_break.
3526 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3527 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3528 constants.
3529 * tui/tui-winsource.h: Fix comment.
3530
3531 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3532
3533 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3534 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3535 (store_fpregs_to_thread)
3536 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3537 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3538 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3539 (IWMMXT_REGS_SIZE): Add define.
3540 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3541 (fetch_vfp_regs, store_vfp_regs)
3542 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3543 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3544
3545 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3546
3547 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3548 defines.
3549 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3550 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3551 (ARM_INT_REGISTER_SIZE): ...to this.
3552 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3553 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3554 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3555 (arm_linux_collect_gregset, supply_nwfpe_register)
3556 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3557 defines.
3558 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3559 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3560 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3561 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3562 (arm_return_in_memory, arm_store_return_value)
3563 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3564 (arm_record_ld_st_multiple): Likewise.
3565 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3566 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3567
3568 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3569
3570 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3571 AARCH64_DISPLACED_MODIFIED_INSNS.
3572 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3573 (aarch64_displaced_step_copy_insn): Likewise.
3574 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3575 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3576 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3577 ARM_DISPLACED_MODIFIED_INSNS.
3578 * arm-tdep.c (arm_gdbarch_init): Likewise.
3579 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3580 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3581 (struct arm_displaced_step_closure): Use
3582 ARM_DISPLACED_MODIFIED_INSNS.
3583
3584 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3585
3586 * features/Makefile: Remove unused xml files.
3587 * features/aarch64.xml: Remove.
3588 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3589 * features/i386/amd64-avx-avx512.xml: Remove.
3590 * features/i386/amd64-avx-linux.xml: Remove.
3591 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3592 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3593 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3594 * features/i386/amd64-avx-mpx.xml: Remove.
3595 * features/i386/amd64-avx.xml: Remove.
3596 * features/i386/amd64-linux.xml: Remove.
3597 * features/i386/amd64-mpx-linux.xml: Remove.
3598 * features/i386/amd64-mpx.xml: Remove.
3599 * features/i386/amd64.xml: Remove.
3600 * features/i386/i386-avx-avx512-linux.xml: Remove.
3601 * features/i386/i386-avx-avx512.xml: Remove.
3602 * features/i386/i386-avx-linux.xml: Remove.
3603 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3604 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3605 * features/i386/i386-avx-mpx-linux.xml: Remove.
3606 * features/i386/i386-avx-mpx.xml: Remove.
3607 * features/i386/i386-avx.xml: Remove.
3608 * features/i386/i386-linux.xml: Remove.
3609 * features/i386/i386-mmx-linux.xml: Remove.
3610 * features/i386/i386-mmx.xml: Remove.
3611 * features/i386/i386-mpx-linux.xml: Remove.
3612 * features/i386/i386-mpx.xml: Remove.
3613 * features/i386/i386.xml: Remove.
3614 * features/i386/x32-avx-avx512-linux.xml: Remove.
3615 * features/i386/x32-avx-linux.xml: Remove.
3616 * features/i386/x32-linux.xml: Remove.
3617
3618 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3619
3620 * regformats/aarch64.dat: Remove.
3621 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3622 * regformats/i386/amd64-avx-linux.dat: Remove.
3623 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3624 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3625 * regformats/i386/amd64-linux.dat: Remove.
3626 * regformats/i386/amd64-mpx-linux.dat: Remove.
3627 * regformats/i386/amd64.dat: Remove.
3628 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3629 * regformats/i386/i386-avx-linux.dat: Remove.
3630 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3631 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3632 * regformats/i386/i386-linux.dat: Remove.
3633 * regformats/i386/i386-mmx-linux.dat: Remove.
3634 * regformats/i386/i386-mpx-linux.dat: Remove.
3635 * regformats/i386/i386.dat: Remove.
3636 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3637 * regformats/i386/x32-avx-linux.dat: Remove.
3638 * regformats/i386/x32-linux.dat: Remove.
3639
3640 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3641
3642 * aarch64-tdep.c: Remove xml self tests.
3643 * amd64-linux-tdep.c: Likewise.
3644 * amd64-tdep.c: Likewise.
3645 * i386-linux-tdep.c: Likewise.
3646 * i386-tdep.c: Likewise.
3647
3648 2019-07-03 Pedro Alves <palves@redhat.com>
3649
3650 PR cli/24732
3651 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3652 (pipe_cmd_option_defs): New.
3653 (make_pipe_cmd_options_def_group): New.
3654 (pipe_command): Use gdb::option::process_options.
3655 (pipe_command_completer): New function.
3656 (_initialize_cli_cmds): Install completer for "pipe" command.
3657
3658 2019-07-03 Pedro Alves <palves@redhat.com>
3659
3660 * cli/cli-option.c (union option_value) <string>: New field.
3661 (struct option_def_and_value): Add ctor, move ctor, dtor and
3662 use DISABLE_COPY_AND_ASSIGN.
3663 (option_def_and_value::clear_value): New.
3664 (parse_option, save_option_value_in_ctx, get_val_type_str)
3665 (add_setshow_cmds_for_options): Handle var_string.
3666 * cli-option.h (union option_def::var_address) <string>: New
3667 field.
3668 (struct string_option_def): New.
3669 * maint-test-options.c (struct test_options_opts): Add default
3670 ctor and use DISABLE_COPY_AND_ASSIGN.
3671 <string_opt>: New field.
3672 (test_options_opts::~test_options_opts): New.
3673 (test_options_opts::dump): Also dump "-string".
3674 (test_options_option_defs): Install "string.
3675
3676 2019-07-03 Pedro Alves <palves@redhat.com>
3677
3678 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3679 option_value with a null enumeration.
3680 (complete_options): Save the option values in the context.
3681 (save_option_value_in_ctx): New, factored out from ...
3682 (process_options): ... here.
3683 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3684 of the function.
3685 * maint-test-options.c (test_options_opts::dump): New, factored
3686 out from ...
3687 (maintenance_test_options_command_mode): ... here.
3688 (maintenance_test_options_command_completion_result): Delete.
3689 (maintenance_test_options_command_completion_text): Update
3690 comment.
3691 (maintenance_show_test_options_completion_result): Change
3692 prototype. Just print
3693 maintenance_test_options_command_completion_text.
3694 (save_completion_result): New.
3695 (maintenance_test_options_completer_mode): Pass options context to
3696 complete_options, and then save a dump.
3697 (_initialize_maint_test_options): Use add_cmd to install "maint
3698 show test-options-completion-result".
3699
3700 2019-07-03 Pedro Alves <palves@redhat.com>
3701
3702 * NEWS (New commands): Mention "with" and "maint with".
3703 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3704 (with_command, with_command_completer): New.
3705 (pipe_command): Adjust to new repeat_previous
3706 interface.
3707 (_initialize_cli_cmds): Install the "with" command and its "w"
3708 alias.
3709 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3710 declarations.
3711 * cli/cli-setshow.c (parse_cli_var_uinteger)
3712 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3713 argument strings for all var_types.
3714 (get_setshow_command_value_string): New, factored out from ...
3715 (do_show_command): ... this.
3716 * cli/cli-setshow.h: Include <string>.
3717 (get_setshow_command_value_string): Declare.
3718 * command.h (repeat_previous): Now returns const char *. Adjust
3719 comment.
3720 * maint.c: Include "cli/cli-cmds.h".
3721 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3722 (_initialize_maint_cmds): Register the "maintenance with" command.
3723 * top.c (repeat_previous): Move bits from pipe_command here:
3724 Return the saved command line, if any; error out if there's no
3725 command to relaunch.
3726
3727 2019-07-03 Pedro Alves <palves@redhat.com>
3728
3729 * NEWS (New commands): Mention "maint set/show test-settings"
3730 instead of "maint test-settings".
3731 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3732 (maintenance_test_settings_set_list): Rename to ...
3733 (maintenance_set_test_settings_list): ... this.
3734 (maintenance_test_settings_show_list): Rename to ...
3735 (maintenance_show_test_settings_list): ... this.
3736 (maintenance_test_settings_cmd): Delete.
3737 (maintenance_test_settings_set_cmd): ...
3738 (maintenance_set_test_settings_cmd): ... this.
3739 (maintenance_test_settings_show_cmd): ...
3740 (maintenance_show_test_settings_cmd): ... this.
3741 (maintenance_test_settings_show_value_cmd):
3742 (maintenance_show_test_settings_value_cmd): ... this.
3743 (_initialize_maint_test_settings): No longer install the "maint
3744 test-settings" prefix command. Rename "maint test-settings set"
3745 to "maint set test-settings", and "maint test-settings show" to
3746 "maint show test-settings". Adjust all subcommands.
3747
3748 2019-07-03 Pedro Alves <palves@redhat.com>
3749
3750 * maint-test-settings.c: Fix file's intro comment. Replace all
3751 references to "test-options" with references to "test-settings",
3752 in comments.
3753
3754 2019-07-03 Pedro Alves <palves@redhat.com>
3755
3756 * maint-test-settings.c (maintenance_test_settings_xxx)
3757 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3758 New.
3759 (maintenance_test_settings_enums): Use them.
3760 (maintenance_test_settings_enum): Default to
3761 maintenance_test_settings_xxx.
3762 (_initialize_maint_test_settings): Initialize
3763 MAINTENANCE_TEST_SETTINGS_FILENAME.
3764
3765 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3766
3767 * breakpoint.h (remove_breakpoints_inf): Change return type to
3768 void, move function documentation here.
3769 * breakpoint.c (remove_breakpoints_inf): Change return type to
3770 void, move function documentation to header.
3771
3772 2019-07-02 Pedro Alves <palves@redhat.com>
3773
3774 * NEWS (Completion improvements): Mention "info threads".
3775 * thread.c (struct info_threads_opts, info_threads_option_defs)
3776 (make_info_threads_options_def_group): New.
3777 (info_threads_command): Use gdb::option::process_options.
3778 (info_threads_command_completer): New.
3779 (_initialize_thread): Use gdb::option::build_help to build the
3780 help text for "info threads".
3781
3782 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3783
3784 * defs.h (generic_load): Move from here...
3785 * symfile.h (generic_load): ... to here. Rename name parameter
3786 to args.
3787 * symfile.c (generic_load): Add comment.
3788
3789 2019-07-01 Tom Tromey <tromey@adacore.com>
3790
3791 * dwarf2read.c
3792 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3793 declaration of without_params. Fix formatting.
3794
3795 2019-07-01 Tom Tromey <tromey@adacore.com>
3796
3797 * ada-exp.y (find_primitive_type): Update.
3798 * ada-lang.h (ada_lookup_symbol): Update.
3799 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3800 parameter.
3801 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3802
3803 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3804
3805 PR breakpoints/24541
3806 * gdbarch.c: Regenerate.
3807 * gdbarch.h: Regenerate.
3808 * gdbarch.sh: Add 'stap_adjust_register'.
3809 * i386-tdep.c: Include '<unordered_set>'.
3810 (i386_stap_adjust_register): New function.
3811 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3812 * stap-probe.c (stap_parse_register_operand): Call
3813 'gdbarch_stap_adjust_register'.
3814
3815 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3816
3817 PR python/24742
3818 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3819 * python/python.c (do_start_initialization): Use 'xmalloc'
3820 instead of 'PyMem_Malloc'.
3821
3822 2019-06-28 Tom Tromey <tromey@adacore.com>
3823
3824 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3825 for Ada.
3826
3827 2019-06-27 Tom Tromey <tromey@adacore.com>
3828
3829 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3830 objfile_key.
3831 (arm_find_mapping_symbol, arm_record_special_symbol)
3832 (_initialize_arm_tdep): Update.
3833 (arm_objfile_data_free): Remove.
3834
3835 2019-06-27 Tom Tromey <tromey@adacore.com>
3836
3837 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3838 to cp_print_static_field.
3839
3840 2019-06-26 Tom Tromey <tromey@adacore.com>
3841
3842 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3843 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3844 declare.
3845
3846 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3847
3848 * features/aarch64-core.c (create_feature_aarch64_core):
3849 Regenerate.
3850 * features/aarch64-core.xml: Add cpsr flags.
3851
3852 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3853
3854 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3855 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3856
3857 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3858
3859 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3860 field.
3861 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3862 use.
3863 (arm_record_special_symbol): Don't insert new symbol in sorted
3864 position, push it at the end.
3865
3866 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3867
3868 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3869 (arm_mapping_symbol_s): Remove.
3870 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3871 (arm_mapping_symbol_vec): New typedef.
3872 (struct arm_per_objfile): Add constructor.
3873 <section_maps>: Change type to
3874 std::unique_ptr<arm_mapping_symbol_vec[]>.
3875 (arm_compare_mapping_symbols): Remove.
3876 (arm_find_mapping_symbol): Adjust to section_maps type change.
3877 (arm_objfile_data_free): Call delete on arm_per_objfile.
3878 (arm_record_special_symbol): Adjust to section_maps type change.
3879 Allocate arm_per_objfile with new.
3880
3881 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3882
3883 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3884 with the command prefix.
3885
3886 2019-06-25 Tom Tromey <tom@tromey.com>
3887
3888 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3889 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3890
3891 2019-06-25 Tom Tromey <tom@tromey.com>
3892
3893 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3894 type.
3895 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3896 protected.
3897
3898 2019-06-25 Tom Tromey <tom@tromey.com>
3899
3900 * tui/tui-winsource.c
3901 (tui_source_window_base::set_is_exec_point_at): Add check against
3902 LOA_ADDRESS.
3903
3904 2019-06-25 Tom Tromey <tom@tromey.com>
3905
3906 * tui/tui-source.c (tui_set_source_content): Don't check before
3907 xfree.
3908 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3909
3910 2019-06-25 Tom Tromey <tom@tromey.com>
3911
3912 * tui/tui-winsource.h (tui_update_source_window_as_is)
3913 (tui_alloc_source_buffer, tui_line_is_displayed)
3914 (tui_addr_is_displayed): Change type of win_info.
3915 * tui/tui-winsource.c (tui_update_source_window_as_is)
3916 (tui_clear_source_content, tui_show_source_line)
3917 (tui_show_source_content, tui_source_window_base::refill)
3918 (tui_source_window_base::set_is_exec_point_at)
3919 (tui_source_window_base::set_is_exec_point_at)
3920 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3921 (tui_alloc_source_buffer, tui_line_is_displayed)
3922 (tui_addr_is_displayed): Change type of win_info. Update.
3923 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3924 (tui_source_window_base::do_make_visible_with_new_height):
3925 Update.
3926 * tui/tui-source.c (tui_set_source_content)
3927 (tui_set_source_content_nil)
3928 (tui_source_window::do_scroll_vertical): Update.
3929 * tui/tui-layout.c (show_layout): Update.
3930 * tui/tui-disasm.c (tui_set_disassem_content)
3931 (tui_disasm_window::do_scroll_vertical): Update.
3932 * tui/tui-data.h (tui_win_content): Remove.
3933 (struct tui_gen_win_info) <content, content_size>: Remove.
3934 (struct tui_source_element): Add initializers and destructor.
3935 (union tui_which_element, struct tui_win_element): Remove.
3936 (struct tui_source_window_base) <content>: New field.
3937 (struct tui_data_window): Remove destructor.
3938 (tui_alloc_content, tui_free_win_content)
3939 (tui_free_all_source_wins_content): Don't declare.
3940 * tui/tui-data.c (tui_initialize_static_data): Update.
3941 (init_content_element, tui_alloc_content): Remove.
3942 (~tui_gen_win_info): Update.
3943 (~tui_data_window, tui_free_all_source_wins_content)
3944 (tui_free_win_content, free_content, free_content_elements):
3945 Remove.
3946
3947 2019-06-25 Tom Tromey <tom@tromey.com>
3948
3949 * tui/tui-winsource.h (tui_clear_source_content)
3950 (tui_erase_source_content, tui_show_source_content): Change type
3951 of win_info.
3952 * tui/tui-winsource.c (tui_clear_source_content)
3953 (tui_erase_source_content, tui_show_source_content): Change type
3954 of win_info.
3955 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3956 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3957 win_info.
3958 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3959 win_info.
3960 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3961
3962 2019-06-25 Tom Tromey <tom@tromey.com>
3963
3964 * tui/tui-winsource.c (tui_clear_source_content)
3965 (tui_source_window_base::set_is_exec_point_at): Update.
3966 * tui/tui-source.c (tui_set_source_content_nil): Update.
3967 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3968 a bool.
3969 * tui/tui-data.c (init_content_element): Update.
3970
3971 2019-06-25 Tom Tromey <tom@tromey.com>
3972
3973 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3974 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3975 * tui/tui-layout.c (init_and_make_win): Update.
3976 * tui/tui.h (enum tui_win_type): Update.
3977 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3978 tui_win_is_auxillary.
3979 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3980 tui_win_is_auxillary.
3981
3982 2019-06-25 Tom Tromey <tom@tromey.com>
3983
3984 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3985 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3986 (tui_delete_data_content_windows, tui_display_all_data)
3987 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3988 Update.
3989 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3990 * tui/tui-regs.c (tui_last_regs_line_no)
3991 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3992 (tui_show_registers): Update.
3993 (tui_show_register_group): Return void. Update.
3994 (tui_display_registers_from, tui_display_reg_element_at_line)
3995 (tui_display_registers_from_line, tui_check_register_values):
3996 Update.
3997 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3998 member.
3999 (struct tui_data_window) <regs_content>: Now a std::vector.
4000 <regs_content_count>: Remove.
4001 (tui_add_content_elements, tui_free_data_content): Don't declare.
4002 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4003 (init_content_element): Remove DATA_WIN case. Add assert.
4004 (tui_add_content_elements): Remove.
4005 (tui_data_window): Update.
4006 (tui_free_data_content): Remove.
4007 (free_content_elements): Remove DATA_WIN case.
4008
4009 2019-06-25 Tom Tromey <tom@tromey.com>
4010
4011 * tui/tui-data.c (tui_data_item_window): Update.
4012 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4013 * tui/tui-windata.c (tui_display_all_data)
4014 (tui_display_data_from_line): Update.
4015 (tui_check_data_values): Remove.
4016 * tui/tui-regs.c (tui_show_register_group)
4017 (tui_display_reg_element_at_line): Update.
4018 * tui/tui-hooks.c (tui_register_changed)
4019 (tui_refresh_frame_and_register_information): Call
4020 tui_check_register_values.
4021 * tui/tui-data.h (struct tui_data_window) <data_content,
4022 data_content_count, data_type>: Remove.
4023 (enum tui_data_type): Remove.
4024
4025 * tui/tui-data.c (tui_data_window::clear_detail)
4026 (~tui_data_window): Update.
4027
4028 2019-06-25 Tom Tromey <tom@tromey.com>
4029
4030 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4031 declare.
4032 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4033 Rename from tui_first_data_item_displayed. Update.
4034 (tui_data_window::refresh_all)
4035 (tui_data_window::do_scroll_vertical): Update.
4036 * tui/tui-data.h (struct tui_data_window)
4037 <first_data_item_displayed>: Declare new method.
4038
4039 2019-06-25 Tom Tromey <tom@tromey.com>
4040
4041 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4042 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4043 contents...
4044 (tui_initialize_static_data): ...here.
4045
4046 2019-06-25 Tom Tromey <tom@tromey.com>
4047
4048 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4049 (tui_display_registers_from, tui_check_register_values): Update.
4050 (tui_display_register): Remove win_info parameter; update.
4051 (tui_get_register): Change type of parameters.
4052 * tui/tui-data.h (struct tui_data_element): Remove.
4053 (union tui_which_element) <data>: Remove.
4054 <data_window>: Change type.
4055 (struct tui_data_item_window): New.
4056 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4057 case. Add assert.
4058 (~tui_data_item_window): New destructor.
4059 (free_content_elements): Remove DATA_ITEM_WIN case.
4060
4061 2019-06-25 Tom Tromey <tom@tromey.com>
4062
4063 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4064 Remove.
4065
4066 2019-06-25 Tom Tromey <tom@tromey.com>
4067
4068 * tui/tui-data.h (struct tui_command_element): Remove.
4069 (union tui_which_element) <command>: Remove.
4070 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4071 assert.
4072 (free_content_elements): Remove CMD_WIN case.
4073
4074 2019-06-25 Tom Tromey <tom@tromey.com>
4075
4076 * tui/tui-layout.c (tui_set_layout): Update.
4077 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4078 * tui/tui-data.c (layout_def): Update.
4079
4080 2019-06-25 Tom Tromey <tom@tromey.com>
4081
4082 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4083 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4084 (tui_source_window_base::set_new_height): Update.
4085 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4086 Update.
4087 (tui_set_locator_fullname, tui_set_locator_info)
4088 (tui_show_frame_info): Update.
4089 * tui/tui-source.c (tui_set_source_content)
4090 (tui_source_is_displayed): Update.
4091 * tui/tui-layout.c (show_source_disasm_command, show_data)
4092 (show_source_or_disasm_and_command): Update.
4093 * tui/tui-disasm.c (tui_set_disassem_content)
4094 (tui_get_begin_asm_address): Update.
4095 * tui/tui-data.h (struct tui_locator_element): Remove.
4096 (union tui_which_element) <locator>: Remove.
4097 (struct tui_locator_window): New.
4098 (tui_locator_win_info_ptr): Change return type.
4099 * tui/tui-data.c (_locator): Change type.
4100 (tui_locator_win_info_ptr): Change return type.
4101 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4102 (tui_alloc_content): Add assert.
4103
4104 2019-06-25 Tom Tromey <tom@tromey.com>
4105
4106 * tui/tui-winsource.c
4107 (tui_exec_info_window::maybe_allocate_content): New method.
4108 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4109 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4110 (make_source_or_disasm_window): Add cast.
4111 * tui/tui-data.h (union tui_which_element) <simple_string>:
4112 Remove.
4113 (struct tui_source_info): New.
4114 (struct tui_source_window_base) <execution_info>: Change type.
4115 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4116 case, and add assert.
4117 (tui_alloc_content): Add assert.
4118
4119 2019-06-25 Tom Tromey <tom@tromey.com>
4120
4121 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4122 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4123 * tui/tui-data.c (tui_alloc_win_info): Remove.
4124
4125 2019-06-25 Tom Tromey <tom@tromey.com>
4126
4127 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4128 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4129 can_highlight.
4130
4131 2019-06-25 Tom Tromey <tom@tromey.com>
4132
4133 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4134 make_visible_with_new_height method.
4135 (tui_win_info::make_visible_with_new_height): New method.
4136 (tui_source_window_base::do_make_visible_with_new_height)
4137 (tui_data_window::do_make_visible_with_new_height)
4138 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4139 (make_visible_with_new_height): Remove.
4140 (tui_resize_all, tui_adjust_win_heights): Use
4141 make_visible_with_new_height method.
4142 * tui/tui-data.h (struct tui_win_info)
4143 <do_make_visible_with_new_height, make_visible_with_new_height>:
4144 New methods.
4145 (struct tui_source_window_base, struct tui_data_window)
4146 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4147 methods.
4148
4149 2019-06-25 Tom Tromey <tom@tromey.com>
4150
4151 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4152 method.
4153 (update_tab_width): Call update_tab_width method.
4154 * tui/tui-data.h (struct tui_win_info)
4155 (struct tui_source_window_base) <update_tab_width>: New methods.
4156
4157 2019-06-25 Tom Tromey <tom@tromey.com>
4158
4159 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4160 parameter.
4161 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4162 parameter.
4163 (tui_gen_win_info::make_visible): Update.
4164 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4165 parameter.
4166 * tui/tui-data.h (enum tui_box): New enum.
4167 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4168
4169 2019-06-25 Tom Tromey <tom@tromey.com>
4170
4171 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4172 init_and_make_win for EXEC_INFO_WIN.
4173 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4174 longer inline.
4175 (struct tui_win_info) <~tui_win_info>: Inline.
4176 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4177 Don't declare.
4178 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4179 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4180 Remove.
4181 (tui_initialize_static_data): Update.
4182 (~tui_gen_win_info): Handle more cleanup here.
4183 (~tui_source_window_base): Delete "execution_info".
4184 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4185
4186 2019-06-25 Tom Tromey <tom@tromey.com>
4187
4188 * tui/tui-layout.c (make_command_window): Don't set
4189 can_highlight.
4190 (show_source_disasm_command): Call the reset method.
4191 (show_data): Don't set can_highlight. Call the reset method.
4192 (tui_gen_win_info::reset): Rename from init_gen_win_info
4193 (init_and_make_win): Simplify. Return tui_gen_win_info.
4194 (show_source_or_disasm_and_command): Call the reset method.
4195 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4196 (struct tui_cmd_window): Set can_highlight.
4197
4198 2019-06-25 Tom Tromey <tom@tromey.com>
4199
4200 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4201 from make_visible.
4202 (tui_make_visible, tui_make_invisible): Rewrite.
4203 (tui_win_info::make_visible): Remove.
4204 (tui_source_window_base::make_visible): Update.
4205 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4206 method. Moved from...
4207 (struct tui_win_info) <make_visible>: ...here.
4208
4209 2019-06-25 Tom Tromey <tom@tromey.com>
4210
4211 * tui/tui-winsource.c
4212 (tui_source_window_base::do_scroll_horizontal): Remove direction
4213 parameter.
4214 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4215 direction parameter.
4216 * tui/tui-win.c (tui_win_info::forward_scroll)
4217 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4218 (tui_win_info::right_scroll): Update.
4219 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4220 direction parameter.
4221 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4222 direction parameter.
4223 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4224 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4225 Remove direction parameter.
4226 (struct tui_source_window_base, struct tui_source_window)
4227 (struct tui_disasm_window, struct tui_data_window)
4228 (struct tui_cmd_window): Update.
4229
4230 2019-06-25 Tom Tromey <tom@tromey.com>
4231
4232 * tui/tui-winsource.h (tui_set_exec_info_content)
4233 (tui_show_exec_info_content, tui_erase_exec_info_content)
4234 (tui_clear_exec_info_content, tui_update_exec_info): Change
4235 argument to tui_source_window_base.
4236 * tui/tui-winsource.c (tui_set_exec_info_content)
4237 (tui_show_exec_info_content, tui_erase_exec_info_content)
4238 (tui_clear_exec_info_content, tui_update_exec_info): Change
4239 argument to tui_source_window_base.
4240
4241 2019-06-25 Tom Tromey <tom@tromey.com>
4242
4243 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4244 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4245
4246 2019-06-25 Tom Tromey <tom@tromey.com>
4247
4248 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4249 check.
4250
4251 2019-06-25 Tom Tromey <tom@tromey.com>
4252
4253 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4254 type to void.
4255 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4256 type to void.
4257 * tui/tui-source.c (tui_set_source_content): Update.
4258 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4259
4260 2019-06-25 Tom Tromey <tom@tromey.com>
4261
4262 * tui/tui-win.c (window_name_completer, tui_set_focus)
4263 (tui_all_windows_info): Use name method.
4264 * tui/tui-data.h (struct tui_gen_win_info)
4265 (struct tui_source_window, struct tui_disasm_window)
4266 (struct tui_data_window, struct tui_cmd_window) <name>: New
4267 method.
4268 (tui_win_name): Don't declare.
4269 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4270 (tui_win_name): Remove.
4271
4272 2019-06-25 Tom Tromey <tom@tromey.com>
4273
4274 * tui/tui-winsource.h (tui_update_source_window)
4275 (tui_update_source_window_as_is): Change parameter type.
4276 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4277 to be a tui_source_window_base.
4278 (tui_update_source_window_as_is): Likewise.
4279 * tui/tui-win.c (make_visible_with_new_height): Update.
4280
4281 2019-06-25 Tom Tromey <tom@tromey.com>
4282
4283 * tui/tui-winsource.c (tui_erase_source_content)
4284 (tui_show_source_content, tui_show_exec_info_content)
4285 (tui_erase_exec_info_content): Use refresh_window method.
4286 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4287 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4288 from tui_refresh_win.
4289 (tui_data_window::refresh_window): New method.
4290 (tui_win_info::refresh, tui_source_window_base::refresh)
4291 (tui_refresh_all): Use refresh_window method.
4292 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4293 method.
4294 * tui/tui-regs.c (tui_display_register): Call refresh_window
4295 method.
4296 * tui/tui-layout.c (show_source_disasm_command)
4297 (show_source_or_disasm_and_command): Call refresh_window method.
4298 * tui/tui-data.h (struct tui_gen_win_info)
4299 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4300 New method.
4301
4302 2019-06-25 Tom Tromey <tom@tromey.com>
4303
4304 * tui/tui.c (tui_rl_other_window, tui_enable)
4305 (tui_is_window_visible, tui_get_command_dimension): Update.
4306 * tui/tui-winsource.c (tui_update_source_window_as_is)
4307 (tui_clear_source_content, tui_erase_source_content)
4308 (tui_show_source_line, tui_source_window_base::refill)
4309 (tui_source_window_base::do_scroll_horizontal)
4310 (tui_source_window_base::set_is_exec_point_at)
4311 (tui_update_breakpoint_info, tui_set_exec_info_content)
4312 (tui_alloc_source_buffer, tui_line_is_displayed)
4313 (tui_addr_is_displayed): Update.
4314 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4315 (tui_check_and_display_highlight_if_needed)
4316 (tui_win_info::make_visible, tui_win_info::refresh)
4317 (tui_refresh_all): Update.
4318 * tui/tui-windata.c (tui_first_data_item_displayed)
4319 (tui_delete_data_content_windows, tui_erase_data_content)
4320 (tui_display_all_data, tui_data_window::refresh_all)
4321 (tui_check_data_values): Update.
4322 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4323 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4324 (tui_win_info::backward_scroll, tui_refresh_all_win)
4325 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4326 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4327 (tui_source_window_base::set_new_height)
4328 (tui_data_window::set_new_height)
4329 (make_invisible_and_set_new_height)
4330 (make_visible_with_new_height, new_height_ok)
4331 (parse_scrolling_args): Update.
4332 * tui/tui-stack.c (tui_show_frame_info): Update.
4333 * tui/tui-source.c (tui_set_source_content)
4334 (tui_set_source_content_nil, tui_source_is_displayed)
4335 (tui_source_window::do_scroll_vertical): Update.
4336 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4337 (tui_display_registers_from, tui_display_reg_element_at_line)
4338 (tui_check_register_values, tui_reg_command): Update.
4339 * tui/tui-layout.c (tui_default_win_height)
4340 (show_source_disasm_command, show_data, init_and_make_win)
4341 (show_source_or_disasm_and_command): Update.
4342 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4343 (tui_redisplay_readline, tui_mld_flush)
4344 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4345 (tui_getc): Update.
4346 * tui/tui-disasm.c (tui_set_disassem_content)
4347 (tui_disasm_window::do_scroll_vertical): Update.
4348 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4349 Now virtual.
4350 (struct tui_win_info): Derive from tui_gen_win_info.
4351 <~tui_win_info>: Mark as override.
4352 <generic>: Remove member.
4353 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4354 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4355 (~tui_data_window, ~tui_win_info)
4356 (tui_free_all_source_wins_content): Update.
4357 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4358
4359 2019-06-25 Tom Tromey <tom@tromey.com>
4360
4361 * tui/tui-layout.c (init_and_make_win): Use new.
4362 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4363 destructor, initializers.
4364 (tui_alloc_generic_win_info): Don't declare.
4365 * tui/tui-data.c (_locator): Add argument to constructor.
4366 (source_win, disasm_win): New globals.
4367 (exec_info): Remove.
4368 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4369 Update.
4370 (tui_alloc_generic_win_info): Remove.
4371 (init_content_element): Use new.
4372 (tui_win_info::tui_win_info): Update.
4373 (free_content_elements) <case DATA_WIN>: Use delete.
4374
4375 2019-06-25 Tom Tromey <tom@tromey.com>
4376
4377 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4378 * tui/tui-windata.c (tui_first_data_item_displayed)
4379 (tui_delete_data_content_windows): Update.
4380 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4381 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4382 (tui_display_registers_from, tui_check_register_values): Update.
4383 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4384 pointer.
4385 * tui/tui-data.c (init_content_element): Update. Allocate the new
4386 window.
4387 (tui_free_data_content): Update.
4388 (free_content_elements) <case DATA_WIN>: Free the window.
4389
4390 2019-06-25 Tom Tromey <tom@tromey.com>
4391
4392 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4393 Update.
4394 * tui/tui-layout.c (make_command_window)
4395 (show_source_disasm_command, show_data, init_and_make_win)
4396 (show_source_or_disasm_and_command): Update.
4397 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4398 method.
4399 <can_highight, is_highlighted>: Now bool.
4400 (tui_set_win_highlight): Don't declare.
4401 * tui/tui-data.c (tui_set_win_highlight): Remove.
4402
4403 2019-06-25 Tom Tromey <tom@tromey.com>
4404
4405 * tui/tui-wingeneral.c (make_visible): Remove check of window
4406 type.
4407
4408 2019-06-25 Tom Tromey <tom@tromey.com>
4409
4410 * tui/tui-win.c (tui_win_info::max_height)
4411 (tui_cmd_window::max_height): New methods.
4412 (new_height_ok): Call max_height.
4413 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4414 <max_height>: New method.
4415
4416 2019-06-25 Tom Tromey <tom@tromey.com>
4417
4418 * tui/tui-win.c (tui_source_window_base::set_new_height)
4419 (tui_data_window::set_new_height): New methods.
4420 (make_invisible_and_set_new_height): Call set_new_height method.
4421 * tui/tui-data.h (struct tui_win_info)
4422 (struct tui_source_window_base, struct tui_data_window)
4423 <set_new_height>: New method.
4424
4425 2019-06-25 Tom Tromey <tom@tromey.com>
4426
4427 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4428 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4429 tui_refresh_data_win.
4430 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4431 method.
4432 (tui_refresh_all_win): Call the refresh_all method.
4433 (tui_set_focus): Likewise.
4434 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4435 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4436 Likewise.
4437
4438 2019-06-25 Tom Tromey <tom@tromey.com>
4439
4440 * tui/tui-winsource.h (tui_refill_source_window)
4441 (tui_set_is_exec_point_at): Don't declare.
4442 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4443 (tui_source_window_base::refill): Rename from
4444 tui_refill_source_window.
4445 (tui_source_window_base::do_scroll_horizontal): Update.
4446 (tui_source_window_base::set_is_exec_point_at): Rename from
4447 tui_set_is_exec_point_at.
4448 (tui_update_all_breakpoint_info): Update.
4449 * tui/tui-stack.c (tui_show_frame_info): Update.
4450 * tui/tui-layout.c (show_data): Add cast.
4451 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4452 * tui/tui-data.h (struct tui_source_window_base) <refill,
4453 set_is_exec_point_at>: New methods.
4454 (tui_source_windows, tui_add_to_source_windows): Update types.
4455 (tui_add_to_source_windows): Remove redundant declaration.
4456 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4457 (tui_source_windows): Change return type.
4458 (tui_clear_source_windows_detail): Update.
4459 (tui_add_to_source_windows): Change type of parameter.
4460 (tui_free_all_source_wins_content): Update.
4461
4462 2019-06-25 Tom Tromey <tom@tromey.com>
4463
4464 * tui/tui-wingeneral.c (tui_win_info::refresh)
4465 (tui_source_window_base::refresh): New methods.
4466 (tui_refresh_all): Call the refresh method.
4467 * tui/tui-data.h (struct tui_win_info)
4468 (struct tui_source_window_base) <refresh>: New method.
4469
4470 2019-06-25 Tom Tromey <tom@tromey.com>
4471
4472 * tui/tui.h (tui_is_window_visible): Return bool.
4473 * tui/tui.c (tui_is_window_visible): Return bool.
4474 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4475 (tui_make_visible, tui_make_invisible)
4476 (tui_win_info::make_visible)
4477 (tui_source_window_base::make_visible, make_all_visible)
4478 (tui_make_all_visible, tui_make_all_invisible): Update.
4479 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4480 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4481 bool.
4482 (struct tui_win_info, struct tui_source_window_base)
4483 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4484 * tui/tui-data.c (tui_init_generic_part): Update.
4485
4486 2019-06-25 Tom Tromey <tom@tromey.com>
4487
4488 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4489 (tui_source_window_base::make_visible): New methods.
4490 (make_all_visible): Make method call.
4491 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4492 (struct tui_source_window_base, struct tui_cmd_window): Override
4493 make_visible.
4494 (tui_win_is_source_type): Don't declare.
4495 * tui/tui-data.c (tui_win_is_source_type): Remove.
4496
4497 2019-06-25 Tom Tromey <tom@tromey.com>
4498
4499 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4500 NULL check.
4501
4502 2019-06-25 Tom Tromey <tom@tromey.com>
4503
4504 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4505 Inline constructor. Add initializers for members.
4506 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4507 constructors; now inline in class.
4508
4509 2019-06-25 Tom Tromey <tom@tromey.com>
4510
4511 * tui/tui-regs.c (tui_show_registers): Update.
4512 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4513 bool.
4514 * tui/tui-data.c (tui_data_window::clear_detail)
4515 (tui_data_window): Update.
4516
4517 2019-06-25 Tom Tromey <tom@tromey.com>
4518
4519 * tui/tui-windata.c (tui_display_all_data)
4520 (tui_display_data_from_line, tui_display_data_from)
4521 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4522 Update.
4523 * tui/tui-regs.c (tui_last_regs_line_no)
4524 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4525 (tui_show_registers, tui_show_register_group)
4526 (tui_display_registers_from, tui_display_reg_element_at_line)
4527 (tui_display_registers_from_line, tui_check_register_values)
4528 (tui_reg_next, tui_reg_prev): Update.
4529 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4530 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4531 tui_data_window.
4532 (struct tui_win_info) <detail>: Remove. Add new fields from
4533 tui_data_info.
4534 (TUI_DATA_WIN): Add cast.
4535 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4536 (~tui_data_window): Simplify.
4537
4538 2019-06-25 Tom Tromey <tom@tromey.com>
4539
4540 * tui/tui-layout.c (show_source_disasm_command)
4541 (show_source_or_disasm_and_command): Update.
4542 * tui/tui-io.c (update_cmdwin_start_line)
4543 (tui_redisplay_readline): Update.
4544 * tui/tui-data.h (struct tui_command_info): Remove.
4545 (struct tui_win_info) <detail>: Remove command_info member.
4546 (struct tui_data_window) <start_line>: New member, from
4547 tui_command_info.
4548 (TUI_CMD_WIN): Add casts.
4549
4550 2019-06-25 Tom Tromey <tom@tromey.com>
4551
4552 * tui/tui-winsource.c (tui_update_source_window)
4553 (tui_refill_source_window)
4554 (tui_source_window_base::do_scroll_horizontal)
4555 (tui_update_breakpoint_info, tui_set_exec_info_content)
4556 (tui_show_exec_info_content, tui_erase_exec_info_content)
4557 (tui_clear_exec_info_content): Update.
4558 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4559 Update.
4560 * tui/tui-win.c (make_invisible_and_set_new_height)
4561 (make_visible_with_new_height): Update.
4562 * tui/tui-source.c (tui_set_source_content)
4563 (tui_show_symtab_source): Update.
4564 * tui/tui-layout.c (extract_display_start_addr)
4565 (show_source_disasm_command, show_data)
4566 (make_source_or_disasm_window)
4567 (show_source_or_disasm_and_command): Update.
4568 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4569 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4570 "gdbarch".
4571 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4572 to tui_source_window_base.
4573 (struct tui_win_info) <detail>: Remove source_info member.
4574 (struct tui_source_window_base) <has_locator>: Inline.
4575 Move contents from tui_source_info; rename has_locator member to
4576 m_has_locator.
4577 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4578 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4579 header file.
4580 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4581 Simplify.
4582 (tui_free_all_source_wins_content): Cast to
4583 tui_source_window_base.
4584
4585 2019-06-25 Tom Tromey <tom@tromey.com>
4586
4587 * tui/tui-win.c (make_invisible_and_set_new_height)
4588 (make_visible_with_new_height): Call has_locator method.
4589 * tui/tui-layout.c (show_source_disasm_command, show_data)
4590 (show_source_or_disasm_and_command): Update for bool change.
4591 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4592 (tui_win_info) <has_locator>: New method.
4593 (struct tui_source_window_base) <has_locator>: New method.
4594 (tui_win_has_locator): Don't declare.
4595 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4596 from tui_win_has_locator.
4597 (tui_source_window_base): Use false, not FALSE.
4598
4599 2019-06-25 Tom Tromey <tom@tromey.com>
4600
4601 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4602 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4603 clear_detail method directly.
4604 (tui_clear_win_detail): Remove.
4605
4606 2019-06-25 Tom Tromey <tom@tromey.com>
4607
4608 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4609 "this", not TUI_DISASM_WIN.
4610
4611 2019-06-25 Tom Tromey <tom@tromey.com>
4612
4613 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4614 declare.
4615 * tui/tui-winsource.c
4616 (tui_source_window_base::do_scroll_horizontal): Rename from
4617 tui_horizontal_source_scroll.
4618 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4619 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4620 from tui_vertical_data_scroll.
4621 * tui/tui-win.h (tui_scroll): Don't declare.
4622 * tui/tui-win.c (tui_win_info::forward_scroll)
4623 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4624 (tui_win_info::right_scroll): Rename and update.
4625 (tui_scroll_forward_command, tui_scroll_backward_command)
4626 (tui_scroll_left_command, tui_scroll_right_command): Update.
4627 (tui_scroll): Remove.
4628 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4629 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4630 from tui_vertical_source_scroll.
4631 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4632 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4633 from tui_vertical_disassem_scroll.
4634 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4635 do_scroll_horizontal>: New methods.
4636 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4637 Likewise.
4638 (struct tui_source_window_base): Add do_scroll_horizontal.
4639 (struct tui_source_window, struct tui_disasm_window): Add
4640 do_scroll_vertical.
4641 (struct tui_data_window, struct tui_cmd_window): Add
4642 do_scroll_horizontal and do_scroll_vertical.
4643 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4644
4645 2019-06-25 Tom Tromey <tom@tromey.com>
4646
4647 * tui/tui-data.h (struct tui_source_window_base): New struct.
4648 (struct tui_source_window): Derive from tui_source_window_base.
4649 (struct tui_disasm_window): New struct.
4650 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4651 from tui_source_window::clear_detail.
4652 (tui_source_window_base): Rename from tui_source_window.
4653 (~tui_source_window_base): Rename from ~tui_source_window.
4654 (tui_alloc_win_info): Create a tui_disasm_window.
4655
4656 2019-06-25 Tom Tromey <tom@tromey.com>
4657
4658 * tui/tui-data.h (struct tui_source_window)
4659 (struct tui_data_window): Declare destructors.
4660 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4661 destructors.
4662 (tui_win_info): Simplify.
4663
4664 2019-06-25 Tom Tromey <tom@tromey.com>
4665
4666 * tui/tui-winsource.c (tui_display_main)
4667 (tui_update_source_windows_with_addr)
4668 (tui_update_all_breakpoint_info): Update.
4669 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4670 (new_height_ok, parse_scrolling_args): Update.
4671 * tui/tui-stack.c (tui_show_frame_info): Update.
4672 * tui/tui-data.h (struct tui_list): Remove.
4673 (tui_source_windows): Return a reference to a std::vector.
4674 * tui/tui-data.c (source_windows): Now a std::vector.
4675 (tui_source_windows): Change return type.
4676 (tui_clear_source_windows): Rewrite.
4677 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4678 (tui_free_all_source_wins_content): Rewrite.
4679
4680 2019-06-25 Tom Tromey <tom@tromey.com>
4681
4682 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4683 (struct tui_data_window, struct tui_cmd_window): Declare
4684 clear_detail method.
4685 * tui/tui-data.c (tui_source_window::clear_detail)
4686 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4687 methods.
4688 (tui_clear_win_detail): Simplify.
4689
4690 2019-06-25 Tom Tromey <tom@tromey.com>
4691
4692 * tui/tui-layout.c (make_source_window, make_disasm_window)
4693 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4694 Return the new window.
4695 (show_source_disasm_command, show_data)
4696 (show_source_or_disasm_and_command): Update.
4697
4698 2019-06-25 Tom Tromey <tom@tromey.com>
4699
4700 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4701 parameter. Return the new window.
4702 (show_source_disasm_command): Update and remove NULL check.
4703 (show_source_or_disasm_and_command): Update.
4704
4705 2019-06-25 Tom Tromey <tom@tromey.com>
4706
4707 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4708
4709 2019-06-25 Tom Tromey <tom@tromey.com>
4710
4711 * tui/tui-data.h (struct tui_win_info): Make constructor
4712 protected. Make destructor virtual. Add initializers.
4713 (tui_source_window, tui_data_window, tui_cmd_window): New
4714 classes.
4715 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4716 constructor. Add "type" parameter.
4717 (tui_source_window, tui_data_window, tui_cmd_window): New
4718 constructors.
4719 (tui_alloc_win_info): Instantiate the appropriate subclass.
4720
4721 2019-06-25 Tom Tromey <tom@tromey.com>
4722
4723 * tui/tui-win.c (tui_resize_all): Use delete.
4724 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4725 destructor.
4726 (tui_free_window): Don't declare.
4727 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4728 Update.
4729
4730 2019-06-25 Tom Tromey <tom@tromey.com>
4731
4732 * tui/tui-data.h (struct tui_win_info): Add constructor.
4733 * tui/tui-data.c (tui_alloc_win_info): Use new.
4734 (tui_free_window): Use delete.
4735
4736 2019-06-22 Tom Tromey <tom@tromey.com>
4737
4738 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4739 declare.
4740 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4741
4742 2019-06-22 Tom Tromey <tom@tromey.com>
4743
4744 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4745 declare.
4746 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4747
4748 2019-06-22 Tom de Vries <tdevries@suse.de>
4749
4750 * dwarf2read.c (create_addrmap_from_aranges)
4751 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4752 instead of '%zu'.
4753
4754 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
4755
4756 * dwarf2read.h (dwarf2_section_info_def): Remove.
4757 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4758 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4759 std::vector<dwarf2_section_info>.
4760 (struct dwo_file) <~dwo_file>: Remove.
4761 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4762 types field.
4763 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4764 (dwarf2_read_debug_names): Likewise.
4765 (create_debug_types_hash_table): Change parameter type to
4766 array_view, adjust code accordingly.
4767 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4768 (partial_die_info::fixup): Likewise.
4769 (determine_prefix): Likewise.
4770 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4771
4772 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4773
4774 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4775 gdb_bfd_ref_ptr.
4776 <~dwo_file>: Remove call to gdb_bfd_unref.
4777 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4778 gdb_bfd_ref_ptr::get.
4779
4780 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4781
4782 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4783 type to htab_up.
4784 * dwarf2read.c (struct dwo_file): Initialize fields.
4785 <~dwo_file>: New.
4786 (free_dwo_file): Remove, move content to ~dwo_file.
4787 (struct dwo_file_deleter): Remove.
4788 (dwo_file_up>: Remove custom deleter.
4789 (free_dwo_files): Remove.
4790 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4791 dwo_files.
4792 (process_skeletonless_type_units): Call unique_ptr::get.
4793 (allocate_dwo_file_hash_table): Add deleter to created hash
4794 table. Change return type to htab_up.
4795 (lookup_dwo_file_slot): Don't memset dwo_file, call
4796 unique_ptr::get.
4797 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4798 (create_dwo_unit_in_dwp_v2): Likewise.
4799 (open_and_init_dwo_file): Likewise.
4800 (free_dwo_file_from_slot): Remove.
4801
4802 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4803
4804 * dwarf2read.h (struct dwarf2_section_info) <readin,
4805 is_virtual>: Change type to bool.
4806 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4807 true instead of 1.
4808
4809 2019-06-19 Tom Tromey <tom@tromey.com>
4810
4811 * tui/tui-data.h (tui_init_content_element): Don't declare.
4812
4813 2019-06-19 Tom Tromey <tom@tromey.com>
4814
4815 * tui/tui-data.h (tui_init_win_info): Don't declare.
4816
4817 2019-06-19 Tom de Vries <tdevries@suse.de>
4818
4819 * dwarf2read.h (abstract_to_concrete): Change type to
4820 std::unordered_map<sect_offset, std::vector<sect_offset>,
4821 gdb::hash_enum<sect_offset>>.
4822
4823 2019-06-19 Tom Tromey <tromey@adacore.com>
4824
4825 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4826 EVAL_AVOID_SIDE_EFFECTS specially.
4827
4828 2019-06-19 Tom Tromey <tromey@adacore.com>
4829
4830 * source-cache.c (highlighter): New global.
4831 (source_cache::get_source_lines): Create a highlighter on demand.
4832
4833 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4834
4835 * defs.h (deprecated_interactive_hook): Delete declaration.
4836 * interps.c (clear_interpreter_hooks): Remove use of
4837 deprecated_interactive_hook.
4838 * top.c (deprecated_interactive_hook): Delete definition.
4839 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4840
4841 2019-06-18 Tom de Vries <tdevries@suse.de>
4842
4843 PR gdb/24515
4844 * dwarf2read.h (abstract_to_concrete): Change type from
4845 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4846 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4847 * dwarf2read.c (read_variable): Update.
4848 (dwarf2_fetch_die_loc_sect_off): Update.
4849
4850 2019-06-17 Tom de Vries <tdevries@suse.de>
4851
4852 PR gdb/24617
4853 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4854 accessing parent[parent_len - 1].
4855
4856 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4857
4858 PR gdb/24364
4859 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4860 call dtrace_process_dof with NULL dof.
4861
4862 2019-06-16 Tom de Vries <tdevries@suse.de>
4863
4864 PR gdb/24445
4865 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4866
4867 2019-06-16 Tom Tromey <tom@tromey.com>
4868
4869 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4870 (make_all_visible): Use address of member.
4871
4872 2019-06-16 Tom Tromey <tom@tromey.com>
4873
4874 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4875 (tui_free_window, free_content, free_content_elements): Remove
4876 unnecessary cast.
4877 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4878 cast.
4879 * tui/tui-regs.c (tui_show_register_group)
4880 (tui_display_registers_from, tui_display_reg_element_at_line):
4881 Remove unnecessary cast.
4882
4883 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4884
4885 * linux-nat.c (normal_mask): Delete.
4886 (_initialize_linux_nat): Don't initialise normal_mask.
4887
4888 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4889
4890 PR gdb/24445
4891 * dwarf-index-write.h (write_psymtabs_to_index): Add
4892 dwz_basename parameter.
4893 * dwarf-index-write.c (write_gdbindex): Move file writing to
4894 write_gdbindex_1. Change return type void.
4895 (assert_file_size): Move up, remove filename parameter.
4896 (write_gdbindex_1): New function.
4897 (write_debug_names): Change return type to void, call
4898 assert_file_size.
4899 (struct index_wip_file): New struct.
4900 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4901 file logic to index_wip_file. Write index for dwz file if
4902 needed.
4903 (save_gdb_index_command): Pass basename of dwz file, if present.
4904 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4905 build-id of dwz file, if present.
4906 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4907 (dwarf2_get_dwz_file): Likewise.
4908 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4909 (dwarf2_get_dwz_file): Likewise.
4910
4911 2019-06-16 Tom Tromey <tom@tromey.com>
4912
4913 * coffread.c (process_coff_symbol): Use xstrdup.
4914 * value.c (create_internalvar): Use xstrdup.
4915
4916 2019-06-16 Tom Tromey <tom@tromey.com>
4917
4918 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4919 * breakpoint.c (stopin_command, stopat_command)
4920 (until_break_command, decode_location_default): Remove unnecessary
4921 cast.
4922 * utils.c (subset_compare): Remove unnecessary cast.
4923 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4924 cast.
4925 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4926 cast.
4927 * infcmd.c (path_command): Remove unnecessary cast.
4928 * coffread.c (decode_type): Remove unnecessary cast.
4929 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4930 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4931 * tui/tui-stack.c (tui_show_locator_content)
4932 (tui_show_frame_info): Remove unnecessary cast.
4933 * tui/tui-win.c (tui_scroll_forward_command)
4934 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4935 (parse_scrolling_args): Remove unnecessary cast.
4936 * tui/tui-data.c (init_win_info, tui_del_window)
4937 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4938 (free_content_elements): Remove unnecessary cast.
4939 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4940 unnecessary cast.
4941 * tui/tui-source.c (tui_set_source_content)
4942 (tui_vertical_source_scroll): Remove unnecessary cast.
4943 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4944 cast.
4945 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4946 * tui/tui-regs.c (tui_display_registers_from)
4947 (tui_display_register): Remove unnecessary cast.
4948 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4949 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4950 (make_visible): Remove unnecessary cast.
4951 * tui/tui-winsource.c (tui_erase_source_content)
4952 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4953 unnecessary cast.
4954 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4955 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4956 * stabsread.c (read_type, read_array_type, read_range_type):
4957 Remove unnecessary cast.
4958 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4959 (parse_symbol, parse_type, upgrade_type, parse_external)
4960 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4961 unnecessary cast.
4962 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4963
4964 2019-06-16 Tom Tromey <tom@tromey.com>
4965
4966 * tui/tui-data.c (tui_alloc_generic_win_info)
4967 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4968 checks.
4969
4970 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4971 Andrew Burgess <andrew.burgess@embecosm.com>
4972
4973 * f-typeprint.c (f_print_type): Don't return early for not
4974 associated or not allocated types.
4975 (f_type_print_varspec_suffix): Add print_rank parameter and print
4976 ranks of array types in case they dangling.
4977 (f_type_print_base): Add print_rank parameter.
4978
4979 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4980
4981 * NEWS: Mention new MI commands.
4982 * break-catch-throw.c (enum exception_event_kind): Move to
4983 breakpoint.h.
4984 (print_mention_exception_catchpoint): Output text as a single
4985 message.
4986 (catch_exception_command_1): Rename to...
4987 (catch_exception_event): ...this, make non-static, update header
4988 command, and change some parameter types.
4989 (catch_catch_command): Update for changes to
4990 catch_exception_command_1.
4991 (catch_throw_command): Likewise.
4992 (catch_rethrow_command): Likewise.
4993 * breakpoint.c (enum exception_event_kind): Delete.
4994 * breakpoint.h (enum exception_event_kind): Moved here from
4995 break-catch-throw.c.
4996 (catch_exception_event): Declare.
4997 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4998 (mi_cmd_catch_throw): New function.
4999 (mi_cmd_catch_rethrow): New function.
5000 (mi_cmd_catch_catch): New function.
5001 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5002 'catch-catch' entries.
5003 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5004 (mi_cmd_catch_rethrow): Declare.
5005 (mi_cmd_catch_catch): Declare.
5006
5007 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5008
5009 * annotate.c (annotate_source_line): Change return type to void,
5010 update implementation to match.
5011 * annotate.h (annotate_source_line): Change return type to void,
5012 update header comment.
5013 * stack.c (print_frame_info): Don't change what frame information
5014 is printed based on whether annotations are on or not.
5015
5016 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5017
5018 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5019 (annotate_source): Make static.
5020 (annotate_source_line): Moved from source.c and renamed from
5021 identify_source_line. Update the return type.
5022 * annotate.h (annotate_source): Delete declaration.
5023 (annotate_source_line): Declaration moved from source.h, and
5024 renamed from identify_source_line. Return type updated.
5025 * source.c (identify_source_line): Moved to annotate.c and renamed
5026 to annotate_source_line.
5027 (info_line_command): Remove check of annotation_level.
5028 * source.h (identify_source_line): Move declaration to annotate.h
5029 and rename to annotate_source_line.
5030 * stack.c: Add 'annotate.h' include.
5031 (print_frame_info): Remove check of annotation_level before
5032 calling annotate_source_line.
5033
5034 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5035
5036 * source-cache.c (source_cache::get_plain_source_lines): Use
5037 open_source_file_with_line_charpos instead of just
5038 open_source_file, remove call to find_source_lines.
5039 (source_cache::get_source_lines): Likewise.
5040 * source.c (find_source_lines): Make static.
5041 (get_filename_and_charpos): Renamed into...
5042 (open_source_file_with_line_charpos): ..this along with changes to
5043 return a scoped_fd, and some other minor clean ups.
5044 (identify_source_line): Use open_source_file_with_line_charpos.
5045 (search_command_helper): Use open_source_file_with_line_charpos
5046 instead of just open_source_file, remove call to
5047 find_source_lines.
5048 * source.h (open_source_file_with_line_charpos): Declare new
5049 function.
5050 (find_source_lines): Delete declaration.
5051
5052 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5053
5054 * source.c (get_filename_and_charpos): Remove fullname
5055 parameter.
5056 (identify_source_line): Update call to get_filename_and_charpos.
5057
5058 2019-06-14 Tom Tromey <tromey@adacore.com>
5059
5060 PR gdb/24502:
5061 * ui-style.h (skip_ansi_escape): Update comment.
5062 * ui-file.h (class no_terminal_escape_file): New class.
5063 * ui-file.c (no_terminal_escape_file::write)
5064 (no_terminal_escape_file::puts): New methods.
5065 * cli/cli-logging.c (handle_redirections): Use
5066 no_terminal_escape_file.
5067
5068 2019-06-14 Tom Tromey <tromey@adacore.com>
5069
5070 * NEWS: Move convenience variable news above Python news.
5071
5072 2019-06-14 Tom Tromey <tom@tromey.com>
5073
5074 * gnulib: Move directory to top-level.
5075 * configure.ac: Don't configure gnulib.
5076 * configure: Rebuild.
5077 * common/common-defs.h: Use new path to gnulib.
5078 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5079 (GNULIB_H): Remove.
5080 (INCGNU): Look in new gnulib location.
5081 (HFILES_NO_SRCDIR): Remove gnulib files.
5082 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5083 (generated_files): Remove GNULIB_H.
5084 ($(LIBGNU), all-lib): Remove targets.
5085 (distclean): Don't mention GNULIB_BUILDDIR.
5086 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5087
5088 2019-06-14 Tom Tromey <tromey@adacore.com>
5089
5090 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5091 Warn if symbol file does not provide any symbols.
5092
5093 2019-06-14 Tom Tromey <tromey@adacore.com>
5094
5095 * source.c (find_and_open_source): Respect basenames_may_differ.
5096
5097 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5098
5099 * annotate.c (annotate_breakpoints_invalid): Make use of
5100 scoped_restore_terminal_state.
5101 (annotate_frames_invalid): Likewise.
5102
5103 2019-06-14 Tom Tromey <tromey@adacore.com>
5104
5105 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5106 allow assignment to an internalvar.
5107
5108 2019-06-14 Tom Tromey <tromey@adacore.com>
5109
5110 * ada-lex.l: Allow "_" in attribute names.
5111
5112 2019-06-14 Tom Tromey <tromey@adacore.com>
5113
5114 PR gdb/24653:
5115 * regcache.c (registers_changed): Don't call alloca.
5116 * top.c (execute_command): Don't call alloca.
5117
5118 2019-06-13 Pedro Alves <palves@redhat.com>
5119
5120 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5121 'expression'. When parsing an expression, error out if there's
5122 junk after "unlimited".
5123 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5124 (do_set_command): Adjust calls to is_unlimited_literal.
5125
5126 2019-06-13 Pedro Alves <palves@redhat.com>
5127
5128 * compile/compile.c (make_compile_options_def_group): Add braces
5129 around array_view initializer.
5130 * thread.c (make_thread_apply_all_options_def_group)
5131 (make_thread_apply_all_options_def_group): Likewise.
5132
5133 2019-06-13 Pedro Alves <palves@redhat.com>
5134
5135 * NEWS (New commands): Mention "maint test-options
5136 require-delimiter", "maint test-options unknown-is-error", "maint
5137 test-options unknown-is-operand" and "maint show
5138 test-options-completion-result".
5139 (New command options, command completion): New section.
5140 (Completion improvements): New section.
5141 Mention that you can abbreviate "unlimited".
5142
5143 2019-06-13 Pedro Alves <palves@redhat.com>
5144
5145 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5146 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5147 * unittests/cli-utils-selftests.c (test_parse_flags)
5148 (test_parse_flags_qcs): Delete.
5149 (test_cli_utils): Don't call deleted functions.
5150
5151 2019-06-13 Pedro Alves <palves@redhat.com>
5152
5153 * thread.c: Include "cli/cli-option.h".
5154 (tp_array_compar_ascending): Global.
5155 (tp_array_compar): Delete function.
5156 (tp_array_compar_ascending, tp_array_compar_descending): New
5157 functions.
5158 (ascending_option_def, qcs_flag_option_def)
5159 (thr_qcs_flags_option_defs)
5160 (make_thread_apply_all_options_def_group)
5161 (make_thread_apply_options_def_group): New.
5162 (thread_apply_all_command): Use gdb::option::process_options.
5163 (thread_apply_command_completer)
5164 (thread_apply_all_command_completer): New.
5165 (thread_apply_command): Use gdb::option::process_options.
5166 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5167 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5168 to generate help text of "thread apply". Adjust "taas"'s help.
5169 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5170 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5171
5172 2019-06-13 Pedro Alves <palves@redhat.com>
5173
5174 * thread.c (thread_apply_command): Check for invalid TID with
5175 isdigit instead of !isalpha.
5176
5177 2019-06-13 Pedro Alves <palves@redhat.com>
5178
5179 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5180 (validate_flags_qcs): New.
5181 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5182 (validate_flags_qcs): Declare.
5183 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5184 (make_frame_apply_options_def_group): New.
5185 (frame_apply_command_count): Process options with
5186 gdb::option::process_options.
5187 (frame_apply_completer): New.
5188 (frame_apply_level_completer, frame_apply_all_completer)
5189 (frame_apply_completer): New.
5190 (_initialize_stack): Update help of "frame apply", "frame apply
5191 level", "frame apply all" and "faas" to mention supported options
5192 and install command completers.
5193 * stack.h (frame_apply_all_completer): Declare.
5194 * thread.c: Include "stack.h".
5195 (tfaas_command): Add "--".
5196 (_initialize_thread): Update help "tfaas" to mention supported
5197 options and install command completer.
5198
5199 2019-06-13 Pedro Alves <palves@redhat.com>
5200
5201 * completer.c (complete_nested_command_line): New.
5202 (gdb_completion_word_break_characters_throw): Add assertion.
5203 * completer.h (complete_nested_command_line): Declare.
5204
5205 2019-06-13 Pedro Alves <palves@redhat.com>
5206
5207 * stack.c (parse_backtrace_qualifiers): New.
5208 (backtrace_command): Use it.
5209 (backtrace_command_completer): Complete on qualifiers.
5210
5211 2019-06-13 Pedro Alves <palves@redhat.com>
5212
5213 * frame.c: Include "cli/cli-option.h.
5214 (user_set_backtrace_options): New.
5215 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5216 Delete.
5217 (get_prev_frame): Adjust.
5218 (boolean_option_def, uinteger_option_def)
5219 (set_backtrace_option_defs): New.
5220 (_initialize_frame): Adjust and use
5221 gdb::option::add_setshow_cmds_for_options to install "set
5222 backtrace past-main" and "set backtrace past-entry".
5223 * frame.h: Include "cli/cli-option.h".
5224 (struct frame_print_options): Forward declare.
5225 (print_frame_arguments_all, print_frame_arguments_scalars)
5226 (print_frame_arguments_none): Declare.
5227 (print_entry_values): Delete declaration.
5228 (struct frame_print_options, user_frame_print_options): New.
5229 (struct set_backtrace_options): New.
5230 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5231 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5232 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5233 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5234 (list_args_or_locals): Add frame_print_options parameter.
5235 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5236 * python/py-framefilter.c (enumerate_args): Pass down
5237 USER_FRAME_PRINT_OPTIONS.
5238 * stack.c: Include "cli/cli-option.h".
5239 (print_frame_arguments_all, print_frame_arguments_scalars)
5240 (print_frame_arguments_none): Declare.
5241 (print_raw_frame_arguments, print_entry_values): Delete.
5242 (user_frame_print_options): New.
5243 (boolean_option_def, enum_option_def, frame_print_option_defs):
5244 New.
5245 (struct backtrace_cmd_options): New.
5246 (bt_flag_option_def): New.
5247 (backtrace_command_option_defs): New.
5248 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5249 (print_frame_arg, read_frame_arg, print_frame_args)
5250 (print_frame_info, print_frame): Add frame_print_options parameter
5251 and use it.
5252 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5253 (backtrace_command_1): Add frame_print_options and
5254 backtrace_cmd_options parameters and use them.
5255 (make_backtrace_options_def_group): New.
5256 (backtrace_command): Process command options with
5257 gdb::option::process_options.
5258 (backtrace_command_completer): New.
5259 (_initialize_stack): Extend "backtrace"'s help to mention
5260 supported options. Install completer for "backtrace".
5261 Install some settings commands with add_setshow_cmds_for_options.
5262
5263 2019-06-13 Pedro Alves <palves@redhat.com>
5264
5265 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5266 and that "set/show print raw frame-arguments" are now deprecated.
5267
5268 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5269 command.
5270 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5271 * stack.c (_initialize_stack): Install "set/show print
5272 raw-frame-arguments", and deprecate "set/show print raw
5273 frame-arguments".
5274 * valprint.c (_initialize_valprint): Deprecate "set/show print
5275 raw".
5276
5277 2019-06-13 Pedro Alves <palves@redhat.com>
5278
5279 * compile/compile.c (struct compile_options): New.
5280 (compile_flag_option_def, compile_command_option_defs)
5281 (make_compile_options_def_group): New.
5282 (compile_file_command): Handle options with
5283 gdb::option::process_options.
5284 (compile_file_command_completer): New function.
5285 (compile_code_command): Handle options with
5286 gdb::option::process_options.
5287 (compile_code_command_completer): New function.
5288 (_initialize_compiler): Install completers for "compile code" and
5289 "compile file". Mention available options in "compile code" and
5290 "compile code"'s help.
5291 * completer.c (advance_to_completion_word): New, factored out from
5292 ...
5293 (advance_to_expression_complete_word_point): ... this.
5294 (advance_to_filename_complete_word_point): New.
5295 * completer.h (advance_to_filename_complete_word_point): New
5296 declaration.
5297
5298 2019-06-13 Pedro Alves <palves@redhat.com>
5299
5300 * compile/compile.c: Include "cli/cli-option.h".
5301 (compile_print_value): Scope data pointer is now a
5302 value_print_options pointer; adjust.
5303 (compile_print_command): Process options. Scope data pointer is
5304 now a value_print_options pointer; adjust.
5305 (_initialize_compile): Update "compile print"'s help to include
5306 supported options. Install a completer for "compile print".
5307 * cp-valprint.c (show_vtblprint, show_objectprint)
5308 (show_static_field_print): Delete.
5309 (_initialize_cp_valprint): Don't install "set print
5310 static-members", "set print vtbl", "set print object" here.
5311 * printcmd.c: Include "cli/cli-option.h" and
5312 "common/gdb_optional.h".
5313 (print_command_parse_format): Rework to fill in a
5314 value_print_options instead of a format_data.
5315 (print_value): Change parameter type from format_data pointer to
5316 value_print_options reference. Adjust.
5317 (print_command_1): Process options. Adjust to pass down a
5318 value_print_options.
5319 (print_command_completer): New.
5320 (_initialize_printcmd): Install print_command_completer as
5321 handle_brkchars completer for the "print" command. Update
5322 "print"'s help to include supported options.
5323 * valprint.c: Include "cli/cli-option.h".
5324 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5325 here from cp-valprint.c.
5326 (boolean_option_def, uinteger_option_def)
5327 (value_print_option_defs, make_value_print_options_def_group):
5328 New. Use gdb::option::add_setshow_cmds_for_options to install
5329 "set print elements", "set print null-stop", "set print repeats",
5330 "set print pretty", "set print union", "set print array", "set
5331 print address", "set print symbol", "set print array-indexes".
5332 * valprint.h: Include <string> and "cli/cli-option.h".
5333 (make_value_print_options_def_group): Declare.
5334 (print_value): Change parameter type from format_data pointer to
5335 value_print_options reference.
5336 (print_command_completer): Declare.
5337
5338 2019-06-13 Pedro Alves <palves@redhat.com>
5339
5340 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5341 (COMMON_SFILES): Add maint-test-settings.c.
5342 * cli/cli-decode.c (boolean_enums): New global, factored out from
5343 ...
5344 (add_setshow_boolean_cmd): ... here.
5345 * cli/cli-decode.h (boolean_enums): Declare.
5346 * cli/cli-option.c: New file.
5347 * cli/cli-option.h: New file.
5348 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5349 factored out from ...
5350 (parse_cli_boolean_value(const char *)): ... this.
5351 (is_unlimited_literal): Change parameter type to pointer to
5352 pointer. Adjust and advance ARG pointer.
5353 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5354 (parse_cli_var_enum): New, factored out from ...
5355 (do_set_command): ... this. Adjust.
5356 * cli/cli-setshow.h (parse_cli_boolean_value)
5357 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5358 (parse_cli_var_enum): Declare.
5359 * cli/cli-utils.c: Include "cli/cli-option.h".
5360 (get_ulongest): New.
5361 * cli/cli-utils.h (get_ulongest): Declare.
5362 (check_for_argument): New overloads.
5363 * maint-test-options.c: New file.
5364
5365 2019-06-13 Pedro Alves <palves@redhat.com>
5366
5367 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5368 parse a range if "-" is at the end of the string.
5369
5370 2019-06-13 Pedro Alves <palves@redhat.com>
5371
5372 * cli/cli-setshow.c (parse_auto_binary_operation)
5373 (parse_cli_boolean_value): Don't allow "o".
5374
5375 2019-06-13 Pedro Alves <palves@redhat.com>
5376
5377 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5378 * NEWS: Mention maint test-settings KIND.
5379 * maint-test-settings.c: New file.
5380
5381 2019-06-13 Pedro Alves <palves@redhat.com>
5382
5383 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5384 completer.
5385 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5386 "set" completers.
5387
5388 2019-06-13 Pedro Alves <palves@redhat.com>
5389
5390 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5391 after item.
5392
5393 2019-06-13 Pedro Alves <palves@redhat.com>
5394
5395 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5396
5397 2019-06-13 Pedro Alves <palves@redhat.com>
5398
5399 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5400 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5401 call.
5402 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5403 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5404 calls.
5405 (check_for_argument): Skip spaces after argument.
5406
5407 2019-06-13 Pedro Alves <palves@redhat.com>
5408
5409 * thread.c (thread_apply_command): Adjust TID parsing.
5410 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5411 detected before end of string.
5412 (tid_is_in_list): Error out if LIST is invalid.
5413
5414 2019-06-13 Pedro Alves <palves@redhat.com>
5415
5416 * completer.c (complete_line_internal_1): Rewind completion word
5417 point.
5418 (completion_tracker::advance_custom_word_point_by): Change
5419 parameter type to int.
5420 * completer.h (completion_tracker::advance_custom_word_point_by):
5421 Likewise.
5422
5423 2019-06-13 Pedro Alves <palves@redhat.com>
5424
5425 * completer.c (advance_to_completion_word): Handle delimiters.
5426
5427 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5428
5429 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5430
5431 2019-06-11 Tom Tromey <tom@tromey.com>
5432
5433 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5434 (xmalloc_failed): Move to alloc.c.
5435 * alloc.c: New file.
5436 * Makefile.in (COMMON_SFILES): Add alloc.c.
5437
5438 2019-06-11 Tom Tromey <tom@tromey.com>
5439
5440 * nat/linux-waitpid.c: Don't include server.h.
5441 (linux_debug): Remove.
5442 (my_waitpid): Update.
5443
5444 2019-06-11 Tom Tromey <tromey@adacore.com>
5445
5446 * infcall.c (_initialize_infcall): Remove trailing newline from
5447 help.
5448 * user-regs.c (_initialize_user_regs): Remove trailing newline
5449 from help.
5450 * typeprint.c (_initialize_typeprint): Remove trailing newline
5451 from help.
5452 * reverse.c (_initialize_reverse): Remove trailing newlines from
5453 help.
5454 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5455 from help.
5456 * language.c (add_set_language_command): Remove trailing newline
5457 from help.
5458 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5459 help.
5460 * disasm.c (_initialize_disasm): Remove trailing newline from
5461 help.
5462 * top.c (init_main): Remove trailing newline from help.
5463 * interps.c (_initialize_interpreter): Remove trailing newline
5464 from help.
5465 * btrace.c (_initialize_btrace): Remove trailing newlines from
5466 help.
5467 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5468 from help.
5469 * python/python.c (_initialize_python): Remove trailing newline
5470 from help.
5471 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5472 help.
5473 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5474 from help. Reformat some text.
5475 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5476 from help.
5477 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5478 newline from help.
5479
5480 2019-06-11 Tom Tromey <tromey@adacore.com>
5481
5482 * darwin-nat.c (darwin_decode_exception_message)
5483 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5484
5485 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5486
5487 * valops.c (value_slice): Check for not allocated or not
5488 associated values.
5489
5490 2019-06-10 Tom de Vries <tdevries@suse.de>
5491
5492 PR gdb/24618
5493 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5494 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5495 invalid.
5496
5497 2019-06-10 Tom de Vries <tdevries@suse.de>
5498
5499 PR gdb/24611
5500 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5501 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5502
5503 2019-06-10 Tom de Vries <tdevries@suse.de>
5504
5505 PR symtab/24545
5506 * symtab.c (struct demangled_name_entry): Add language field.
5507 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5508 static minimal symbol". Set and use language field.
5509
5510 2019-06-10 Tom Tromey <tromey@adacore.com>
5511
5512 * ada-lang.c (_initialize_ada_language): Update help text.
5513
5514 2019-06-10 Tom Tromey <tromey@adacore.com>
5515
5516 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5517 with a newline.
5518 * guile/guile.c (handle_boot_error): Don't end warning with a
5519 newline.
5520 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5521 warning with a newline.
5522 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5523 newline.
5524 (s12z_frame_cache): Likewise.
5525 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5526 a newline.
5527 * solib-svr4.c (disable_probes_interface): Don't end warning with
5528 a newline.
5529 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5530 newline.
5531 * python/python.c (do_finish_initialization): Don't end warning
5532 with a newline.
5533
5534 2019-06-10 Tom Tromey <tom@tromey.com>
5535
5536 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5537 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5538 gdbpy_enter.
5539
5540 2019-06-10 Tom Tromey <tromey@adacore.com>
5541
5542 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5543 data.
5544 (elf_new_init): Don't call stabsread_new_init.
5545 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5546 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5547 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5548
5549 2019-06-10 Tom de Vries <tdevries@suse.de>
5550
5551 PR symtab/16264
5552 PR symtab/24517
5553 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5554
5555 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5556
5557 * source.c (find_and_open_source): Also rewrite relative file
5558 names.
5559
5560 2019-04-26 Amos Bird <amosbird@gmail.com>
5561
5562 * annotate.c (annotate_thread_exited): Add "thread-exited"
5563 annotation.
5564
5565 2019-06-06 Tom Tromey <tromey@adacore.com>
5566
5567 * maint.h (class scoped_command_stats): Use
5568 DISABLE_COPY_AND_ASSIGN.
5569 <print_time>: New method.
5570 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5571 print_time.
5572 (scoped_command_stats::print_time): New method.
5573
5574 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5575
5576 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5577 instructions of lengths 6 or 8 bytes.
5578
5579 2019-06-04 Pedro Alves <palves@redhat.com>
5580
5581 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5582
5583 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5584 * breakpoint.c (condition_completer): Likewise.
5585 * cli/cli-dump.c (scan_expression): Likewise.
5586 * common/filestuff.c (mkdir_recursive): Likewise.
5587 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5588 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5589 (gdb_abspath): Likewise.
5590 * compile/compile-cplus-types.c
5591 (compile_cplus_instance::decl_name): Likewise.
5592 * completer.c (complete_explicit_location):
5593 (signal_completer, reg_or_group_completer_1): Likewise.
5594 * cp-support.c (cp_remove_params_if_any): Likewise.
5595 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5596 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5597 * infcmd.c (strip_bg_char): Likewise.
5598 * linespec.c (copy_token_string): Likewise.
5599 * mi/mi-main.c (output_cores): Likewise.
5600 * psymtab.c (psymtab_search_name):
5601 * symfile.c (test_set_ext_lang_command): Likewise.
5602 * target.c (target_fileio_read_stralloc): Likewise.
5603 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5604 * value.c (complete_internalvar): Likewise.
5605
5606 2019-06-04 Christian Biesinger <cbiesinger@google.com>
5607
5608 Add objfile property to gdb.Type.
5609 * NEWS: Mention Python API addition.
5610 * python/py-type.c (typy_get_objfile): New method.
5611
5612 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5613
5614 * NEWS: Mention the new set|show style [title|highlight].
5615 Mention changes to "show style", "help" and "apropos".
5616
5617 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5618
5619 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5620 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5621 instead of print_help_for_command.
5622 (print_doc_of_command): New function.
5623 (help_list): Add 'apropos -v word' suggestion.
5624 (print_help_for_command): Style the command name using title style.
5625 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5626 (_initialize_cli_cmds): Describe -v in apropos_command help.
5627
5628 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5629
5630 * cli/cli-style.h (cli_style_option): Add name in constructor,
5631 add m_name class member, add constructor with intensity,
5632 add name class function.
5633 (cli_style_option::add_setshow_commands): Remove name argument.
5634 (highlight_style, title_style): New styles.
5635 * cli/cli-style.c (do_show): New function that shows a style
5636 characteristic styling the style name with itself.
5637 (set_style_name): New function.
5638 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5639 Update all callers according to the changes in cli/cli-style.h.
5640 * utils.h (fputs_highlighted): New function.
5641 * utils.c (fputs_highlighted): Likewise.
5642
5643 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5644
5645 * NEWS: Mention new pipe command and new convenience variables.
5646
5647 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5648
5649 * cli/cli-cmds.c (pipe_command): New function.
5650 (_initialize_cli_cmds): Call add_com for pipe_command.
5651 Define | as an alias for pipe.
5652 (exit_status_set_internal_vars): New function.
5653 (shell_escape): Call exit_status_set_internal_vars.
5654 cli/cli-decode.c (find_command_name_length): Recognize | as
5655 a single character command.
5656
5657 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5658
5659 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5660 top.c (execute_command_to_ui_file): New function, mostly a copy
5661 of execute_command_to_string.
5662 (execute_command_to_string): Implement by calling
5663 execute_command_to_ui_file.
5664
5665 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5666
5667 * top.h (saved_command_line): Remove declaration.
5668 * top.c (previous_saved_command_line, previous_repeat_arguments):
5669 New variables.
5670 (saved_command_line): Make static, define together with other
5671 'repeat variables'.
5672 (dont_repeat): Clear repeat_arguments.
5673 (repeat_previous, get_saved_command_line, save_command_line):
5674 New functions.
5675 (gdb_init): Initialize saved_command_line
5676 and previous_saved_command_line.
5677 * main.c (captured_main_1): Remove saved_command_line initialization.
5678 * event-top.c (handle_line_of_input): Update to use
5679 the new 'repeat' related functions instead of direct access to
5680 saved_command_line.
5681 * command.h (repeat_previous, get_saved_command_line,
5682 save_command_line): New declarations.
5683 (dont_repeat): Add comment.
5684
5685 2019-05-30 Tom Tromey <tromey@adacore.com>
5686
5687 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5688 Fix comment.
5689 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5690
5691 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5692
5693 PR cli/24587
5694 * completer.c (complete): Initialize variable word.
5695
5696 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5697
5698 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5699 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5700 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5701 'body' is NULL to the outter 'if', protecting the '!is_define'
5702 situation as well.
5703
5704 2019-05-29 Tom Tromey <tromey@adacore.com>
5705
5706 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5707 (dwarf_unknown): New function.
5708 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5709 (dwarf_type_encoding_name): Use dwarf_unknown.
5710
5711 2019-05-29 Tom Tromey <tromey@adacore.com>
5712
5713 PR c++/20020:
5714 * cp-valprint.c (cp_print_value_fields): Call
5715 cp_print_static_field inside "try".
5716
5717 2019-05-29 Tom Tromey <tromey@adacore.com>
5718
5719 * inflow.c (struct terminal_info): Add default operator=.
5720 * configure: Rebuild.
5721 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5722 -Wdeprecated-copy-dtor, -Wredundant-move.
5723
5724 2019-05-29 Tom Tromey <tromey@adacore.com>
5725
5726 * NEWS: Add entry.
5727 * infcmd.c (print_return_value_1): Handle finish_print
5728 option.
5729 (show_print_finish): New function.
5730 (_initialize_infcmd): Add "set/show print finish" commands.
5731 * valprint.c (user_print_options): Initialize new member.
5732 * valprint.h (struct value_print_options) <finish_print>: New
5733 member.
5734
5735 2019-05-28 Tom Tromey <tromey@adacore.com>
5736
5737 * ada-lang.c (ada_remove_Xbn_suffix)
5738 (find_old_style_renaming_symbol)
5739 (parse_old_style_renaming): Remove.
5740 (ada_find_renaming_symbol): Don't call
5741 find_old_style_renaming_symbol.
5742 (ada_is_renaming_symbol): Rename from
5743 ada_find_renaming_symbol. Remove "block" parameter. Return
5744 bool. Now static.
5745 (ada_read_var_value): Update and simplify.
5746 * ada-exp.y (write_var_or_type): Remove old code.
5747
5748 2019-05-28 Alan Hayward <alan.hayward@arm.com>
5749
5750 * event-top.c: Remove include comment.
5751 * inflow.c (class scoped_ignore_sigttou): Move from here...
5752 * inflow.h (class scoped_ignore_sigttou): ...to here.
5753 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5754 * top.c: Remove include comment.
5755
5756 2019-05-27 Tom Tromey <tom@tromey.com>
5757
5758 * NEWS: Fix typo.
5759
5760 2019-05-22 Tom Tromey <tromey@adacore.com>
5761
5762 * target.c (target_follow_exec): Constify parameter.
5763 * target-delegates.c: Rebuild.
5764 * remote.c (remote_target::follow_exec): Constify parameter.
5765 * infrun.c (follow_exec): Constify parameter.
5766 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5767 (target_follow_exec): Likewise.
5768
5769 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5770
5771 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5772 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5773
5774 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5775
5776 * NEWS: Add debugredirect and testsuite sections.
5777
5778 2019-05-22 Simon Cook <simon.cook@embecosm.com>
5779
5780 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5781 target descriptions using exclusively floating point register name
5782 aliases.
5783
5784 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5785
5786 PR gdb/18644:
5787 * f-lang.c (build_fortran_types): Handle the case where
5788 gdbarch_floatformat_for_type returns a nullptr.
5789
5790 2019-05-21 Tom de Vries <tdevries@suse.de>
5791
5792 PR cli/24587
5793 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5794
5795 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5796
5797 PR gdb/18644:
5798 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5799 16-byte floats.
5800 * i386-tdep.c (i386_floatformat_for_type): Use
5801 floatformats_ia64_quad for the 16-byte floating point component
5802 within a fortran 32-byte complex number.
5803
5804 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5805
5806 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5807 delete default constructor.
5808 (find_partial_die): Update to return const struct.
5809 (partial_die_parent_scope): Move variable declaration into scope
5810 of its use and change its type to auto.
5811 (guess_partial_die_structure_name): Likewise.
5812 (partial_die_info::fixup): Likewise.
5813
5814 2019-05-17 Tom Tromey <tromey@adacore.com>
5815
5816 * source.c (find_and_open_source): Remove cast.
5817
5818 2019-05-17 Tom Tromey <tromey@adacore.com>
5819
5820 * annotate.c (annotate_source): Make "filename" const.
5821 * annotate.h (annotate_source): Use const.
5822
5823 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5824
5825 * disasm.c (set_disassembler_options): Send errors to stderr.
5826
5827 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5828
5829 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5830 (cli_interp_base::set_logging): Check debug_redirect.
5831 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5832 * cli/cli-logging.c (debug_redirect): Add static variable.
5833 (pop_output_files): Add default param.
5834 (handle_redirections): Print debug setting.
5835 (show_logging_command): Likewise.
5836 (_initialize_cli_logging): Add debugredirect command.
5837 * interps.c (current_interp_set_logging): Add debug_redirect
5838 parameter.
5839 * interps.h (set_logging): Add debug_redirect parameter.
5840 (current_interp_set_logging): Likewise.
5841 * mi/mi-common.h: Likewise.
5842 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5843
5844 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5845 Tom Tromey <tromey@adacore.com>
5846
5847 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5848 directly.
5849 * cli/cli-interp.h (make_logging_output): Remove declaration.
5850 * cli/cli-logging.c (make_logging_output): Remove function.
5851 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5852 directly.
5853 * ui-file.c (tee_file::tee_file): Remove bools.
5854 (tee_file::~tee_file): Remove deletes.
5855 * ui-file.h (tee_file): Remove bools.
5856
5857 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5858
5859 * mi/mi-cmds.h (mi_cmd_complete): New function.
5860 * mi/mi-main.c (mi_cmd_complete): Likewise.
5861 * mi/mi-cmds.c: Define new MI command -complete.
5862 * NEWS: Mention new -complete command.
5863
5864 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5865
5866 * completer.h (complete): New function.
5867 * completer.c (complete): Likewise.
5868 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5869 function defined in completer.h.
5870
5871 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5872
5873 * MAINTAINERS (Write After Approval): Add myself.
5874
5875 2019-05-17 Tom de Vries <tdevries@suse.de>
5876
5877 PR gdb/24094
5878 * dwarf2read.c (struct cu_partial_die_info): New struct.
5879 (find_partial_die): Return cu_partial_die_info.
5880 (partial_die_parent_scope, guess_partial_die_structure_name)
5881 (partial_die_info::fixup): Handle new return type of find_partial_die.
5882
5883 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5884
5885 PR breakpoints/24541
5886 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5887 "std::string", simplifying the algorithm.
5888
5889 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5890
5891 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5892 (stap_static_probe_ops::get_probes): Likewise.
5893
5894 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5895
5896 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5897 '-')" and "else if".
5898 (stap_parse_single_operand): Join checks for
5899 "gdbarch_stap_parse_special_token_p" and
5900 "gdbarch_stap_parse_special_token" in the same "if" statement.
5901 Invert check when verifying for operation on register
5902 displacement.
5903
5904 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5905
5906 * stap-probe.c (stap_get_opcode): Update comment.
5907 (stap_get_expected_argument_type): Likewise.
5908 (handle_stap_probe): Likewise.
5909
5910 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5911
5912 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5913 return type to 'bool'. Adjust comment. Use 'bool' when
5914 appropriate.
5915 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5916 * stap-probe.c (stap_parse_argument_1): Likewise.
5917 (stap_is_operator): Likewise.
5918 (stap_is_generic_prefix): Likewise.
5919 (stap_is_register_prefix): Likewise.
5920 (stap_is_register_indirection_prefix): Likewise.
5921 (stap_is_integer_prefix): Likewise.
5922 (stap_generic_check_suffix): Likewise.
5923 (stap_check_integer_suffix): Likewise.
5924 (stap_check_register_suffix): Likewise.
5925 (stap_check_register_indirection_suffix): Likewise.
5926 (stap_parse_register_operand): Likewise.
5927 (stap_parse_single_operand): Likewise.
5928 (stap_parse_argument_1): Likewise.
5929 (stap_probe::get_argument_count): Likewise.
5930 (stap_is_operator): Likewise.
5931
5932 2019-05-16 Tom Tromey <tromey@adacore.com>
5933
5934 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5935 keyword to foreach.
5936
5937 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
5938
5939 * linux-thread-db.c (try_thread_db_load_1): Change return type
5940 to bool.
5941 (try_thread_db_load): Likewise.
5942 (try_thread_db_load_from_pdir_1): Likewise.
5943 (try_thread_db_load_from_pdir): Likewise.
5944 (try_thread_db_load_from_sdir): Likewise.
5945 (try_thread_db_load_from_dir): Likewise.
5946 (thread_db_load_search): Likewise.
5947 (has_libpthread): Likewise.
5948 (thread_db_load): Likewise.
5949
5950 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5951
5952 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5953 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5954 NULL, and complain/return if that's the case.
5955
5956 2019-05-15 John Darrington <john@darrington.wattle.id.au>
5957
5958 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5959 (advance, posn, abstract_read_memory): New functions.
5960 [struct mem_read_abstraction]: New struct.
5961 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5962
5963 2019-05-14 Tom Tromey <tromey@adacore.com>
5964
5965 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5966 value is not lval_memory.
5967
5968 2019-05-14 Tom Tromey <tromey@adacore.com>
5969
5970 * solib.c (info_sharedlibrary_command): Style the file name.
5971
5972 2019-05-14 Alan Hayward <alan.hayward@arm.com>
5973
5974 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5975 (aarch64_vnv_type): Likewise.
5976 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5977 * common/tdesc.c: Likewise.
5978 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5979 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5980 * features/aarch64-fpu.xml: Add ieee half view.
5981 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5982 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5983 * gdbtypes.h (struct builtin_type): Likewise.
5984 (struct objfile_type): Likewise.
5985
5986 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
5987
5988 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5989 typo.
5990 * location.h (string_to_event_location): Likewise.
5991
5992 2019-05-11 Joel Brobecker <brobecker@adacore.com>
5993
5994 GDB 8.3 released.
5995
5996 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5997
5998 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5999 New variable declaration.
6000 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6001 New variable.
6002 (print_one_breakpoint): Use ui_out::test_flags and new global
6003 variable to compute use_fixed_output.
6004 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6005 Remove.
6006 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6007 (mi_multi_location_breakpoint_output_fixed): Remove.
6008 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6009 new variable.
6010 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6011 fix_multi_location_breakpoint_output flag if version >= 3.
6012 * ui-out.h (enum ui_out_flag)
6013 <fix_multi_location_breakpoint_output>: New enumerator.
6014
6015 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6016
6017 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6018
6019 2019-05-10 Tom Tromey <tromey@adacore.com>
6020
6021 * ada-lang.c (catch_ada_completer): New function.
6022 (_initialize_ada_language): Use it.
6023
6024 2019-05-10 Tom Tromey <tromey@adacore.com>
6025
6026 * thread.c (print_thread_info): Make "requested_threads" const.
6027 * gdbthread.h (print_thread_info): Make "requested_threads"
6028 const.
6029 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6030 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6031
6032 2019-05-08 Tom Tromey <tom@tromey.com>
6033
6034 * gdbtypes.c (objfile_type_data): Change type.
6035 (objfile_type, _initialize_gdbtypes): Update.
6036
6037 2019-05-08 Tom Tromey <tom@tromey.com>
6038
6039 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6040 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6041 (_initialize_dwarf2_frame): Update.
6042
6043 2019-05-08 Tom Tromey <tom@tromey.com>
6044
6045 * objc-lang.c (objc_objfile_data): Change type.
6046 (find_methods): Update.
6047 (_initialize_objc_lang): Remove.
6048
6049 2019-05-08 Tom Tromey <tom@tromey.com>
6050
6051 * stabsread.c (rs6000_builtin_type_data): Change type.
6052 (rs6000_builtin_type, _initialize_stabsread): Update.
6053
6054 2019-05-08 Tom Tromey <tom@tromey.com>
6055
6056 * mips-tdep.c (mips_pdr_data): Remove.
6057 (_initialize_mips_tdep): Update.
6058
6059 2019-05-08 Tom Tromey <tom@tromey.com>
6060
6061 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6062 (hppa_init_objfile_priv_data, read_unwind_info)
6063 (find_unwind_entry, _initialize_hppa_tdep): Update.
6064
6065 2019-05-08 Tom Tromey <tom@tromey.com>
6066
6067 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6068 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6069 on obstack.
6070 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6071
6072 2019-05-08 Tom Tromey <tom@tromey.com>
6073
6074 * mdebugread.c (basic_type_data): Change type.
6075 (basic_type, _initialize_mdebugread): Update.
6076
6077 2019-05-08 Tom Tromey <tom@tromey.com>
6078
6079 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6080
6081 2019-05-08 Tom Tromey <tom@tromey.com>
6082
6083 * nto-tdep.c (nto_inferior_data_reg): Change type.
6084 (nto_inferior_data): Update.
6085 (nto_inferior_data_cleanup, nto_new_inferior_data)
6086 (_initialize_nto_tdep): Remove.
6087 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6088
6089 2019-05-08 Tom Tromey <tom@tromey.com>
6090
6091 * ada-lang.c (struct ada_inferior_data): Add initializers.
6092 (ada_inferior_data): Change type.
6093 (ada_inferior_data_cleanup): Remove.
6094 (get_ada_inferior_data, ada_inferior_exit)
6095 (struct ada_pspace_data): Add initializers, destructor.
6096 (ada_pspace_data_handle): Change type.
6097 (get_ada_pspace_data): Update.
6098 (ada_pspace_data_cleanup): Remove.
6099
6100 2019-05-08 Tom Tromey <tom@tromey.com>
6101
6102 * coffread.c (struct coff_symfile_info): Add initializers.
6103 (coff_objfile_data_key): Move lower. Change type.
6104 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6105 Update.
6106 (coff_free_info): Remove.
6107
6108 2019-05-08 Tom Tromey <tom@tromey.com>
6109
6110 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6111 (fbsd_pspace_data_handle): Move lower. Change type.
6112 (get_fbsd_pspace_data): Update.
6113 (fbsd_pspace_data_cleanup): Remove.
6114 (_initialize_fbsd_tdep): Update.
6115
6116 2019-05-08 Tom Tromey <tom@tromey.com>
6117
6118 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6119 (get_ada_tasks_pspace_data): Update.
6120 (ada_tasks_pspace_data_cleanup): Remove.
6121 (_initialize_tasks): Update.
6122 (ada_tasks_inferior_data_handle): Change type.
6123 (get_ada_tasks_inferior_data): Update.
6124 (ada_tasks_inferior_data_cleanup): Remove.
6125 (struct ada_tasks_pspace_data): Add initializers.
6126
6127 2019-05-08 Tom Tromey <tom@tromey.com>
6128
6129 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6130 * symfile-debug.c (debug_sym_get_probes): Change type.
6131 * stap-probe.c (handle_stap_probe):
6132 (stap_static_probe_ops::get_probes): Change type.
6133 * probe.h (class static_probe_ops) <get_probes>: Change type.
6134 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6135 (parse_probes_in_pspace): Update.
6136 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6137 Update.
6138 (any_static_probe_ops::get_probes): Change type.
6139 * elfread.c (elfread_data): New typedef.
6140 (probe_key): Change type.
6141 (elf_get_probes): Likewise. Update.
6142 (probe_key_free): Remove.
6143 (_initialize_elfread): Update.
6144 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6145 Change type.
6146 (dtrace_process_dof_probe, dtrace_process_dof)
6147 (dtrace_static_probe_ops::get_probe): Change type.
6148
6149 2019-05-08 Tom Tromey <tom@tromey.com>
6150
6151 * xcoffread.c (struct xcoff_symfile_info): Rename from
6152 coff_symfile_info. Add initializers.
6153 (xcoff_objfile_data_key): Move lower. Change type.
6154 (XCOFF_DATA): Rewrite.
6155 (xcoff_free_info): Remove.
6156 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6157 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6158 (xcoff_initial_scan): Update.
6159
6160 2019-05-08 Tom Tromey <tom@tromey.com>
6161
6162 * solib-svr4.c (struct svr4_info): Add initializers and
6163 destructor.
6164 <probes_table>: Now an htab_up.
6165 (solib_svr4_pspace_data): Change type.
6166 (free_probes_table): Simplify.
6167 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6168 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6169 (probes_table_remove_objfile_probes, register_solib_event_probe)
6170 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6171 (_initialize_svr4_solib): Update.
6172
6173 2019-05-08 Tom Tromey <tom@tromey.com>
6174
6175 * remote.c (remote_pspace_data): Change type.
6176 (remote_pspace_data_cleanup): Remove.
6177 (get_remote_exec_file, set_pspace_remote_exec_file)
6178 (_initialize_remote): Update.
6179
6180 2019-05-08 Tom Tromey <tom@tromey.com>
6181
6182 * breakpoint.c (breakpoint_objfile_key): Change type.
6183 (get_breakpoint_objfile_data): Update.
6184 (free_breakpoint_objfile_data): Remove.
6185 (_initialize_breakpoint): Update.
6186
6187 2019-05-08 Tom Tromey <tom@tromey.com>
6188
6189 * linux-tdep.c (struct linux_info): Add initializers.
6190 (linux_inferior_data): Move. Change type.
6191 (invalidate_linux_cache_inf): Update.
6192 (linux_inferior_data_cleanup): Remove.
6193 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6194
6195 2019-05-08 Tom Tromey <tom@tromey.com>
6196
6197 * auxv.c (auxv_inferior_data): Move. Change type.
6198 (auxv_inferior_data_cleanup): Remove.
6199 (invalidate_auxv_cache_inf): Rewrite.
6200 (get_auxv_inferior_data, _initialize_auxv): Update.
6201
6202 2019-05-08 Tom Tromey <tom@tromey.com>
6203
6204 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6205 (symfile_debug_objfile_data_key): Change type.
6206 (symfile_debug_installed, debug_qf_has_symbols)
6207 (debug_qf_find_last_source_symtab)
6208 (debug_qf_forget_cached_source_info)
6209 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6210 (debug_qf_print_stats, debug_qf_dump)
6211 (debug_qf_expand_symtabs_for_function)
6212 (debug_qf_expand_all_symtabs)
6213 (debug_qf_expand_symtabs_with_fullname)
6214 (debug_qf_map_matching_symbols)
6215 (debug_qf_expand_symtabs_matching)
6216 (debug_qf_find_pc_sect_compunit_symtab)
6217 (debug_qf_map_symbol_filenames)
6218 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6219 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6220 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6221 (debug_sym_read_linetable, debug_sym_relocate): Update.
6222 (symfile_debug_free_objfile): Remove.
6223 (install_symfile_debug_logging, _initialize_symfile_debug):
6224 Update.
6225
6226 2019-05-08 Tom Tromey <tom@tromey.com>
6227
6228 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6229 allocate_on_obstack.
6230 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6231 (get_dwarf2_per_objfile): Update.
6232 (set_dwarf2_per_objfile): Remove.
6233 (dwarf2_has_info, dwarf2_get_section_info): Update.
6234 (dwarf2_free_objfile): Remove.
6235 (_initialize_dwarf2_read): Update.
6236
6237 2019-05-08 Tom Tromey <tom@tromey.com>
6238
6239 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6240 initializers.
6241 <unsupported_script_warning_printed,
6242 script_not_found_warning_printed>: Now bool.
6243 (auto_load_pspace_data): Change type.
6244 (~auto_load_pspace_info): Rename from
6245 auto_load_pspace_data_cleanup.
6246 (get_auto_load_pspace_data, init_loaded_scripts_info)
6247 (clear_section_scripts, maybe_print_unsupported_script_warning)
6248 (maybe_print_script_not_found_warning, _initialize_auto_load):
6249 Update.
6250
6251 2019-05-08 Tom Tromey <tom@tromey.com>
6252
6253 * objfiles.c (objfile_pspace_info): Add destructor and
6254 initializers.
6255 (objfiles_pspace_data): Change type.
6256 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6257 (get_objfile_pspace_data): Update.
6258 (objfiles_bfd_data): Change type.
6259 (get_objfile_bfd_data): Update.
6260 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6261
6262 2019-05-08 Tom Tromey <tom@tromey.com>
6263
6264 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6265 Change type.
6266 (get_catch_syscall_inferior_data): Update.
6267 (catch_syscall_inferior_data_cleanup): Remove.
6268 (_initialize_break_catch_syscall): Update.
6269
6270 2019-05-08 Tom Tromey <tom@tromey.com>
6271
6272 * inflow.c (struct terminal_info): Add destructor and
6273 initializers.
6274 (inflow_inferior_data): Change type.
6275 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6276 (get_inflow_inferior_data, inflow_inferior_exit)
6277 (swap_terminal_info, _initialize_inflow): Update.
6278
6279 2019-05-08 Tom Tromey <tom@tromey.com>
6280
6281 * target-dcache.c (target_dcache_cleanup): Remove.
6282 (target_dcache_aspace_key): Change type.
6283 (target_dcache_init_p, target_dcache_invalidate)
6284 (target_dcache_get, target_dcache_get_or_init)
6285 (_initialize_target_dcache): Update.
6286 * dcache.h (struct dcache_deleter): New.
6287
6288 2019-05-08 Tom Tromey <tom@tromey.com>
6289
6290 * symtab.c (struct symbol_cache): Add destructor and
6291 initializers.
6292 (symbol_cache_key): Move. Change type.
6293 (make_symbol_cache, free_symbol_cache): Remove.
6294 (get_symbol_cache): Update.
6295 (symbol_cache_cleanup): Remove.
6296 (ALL_PSPACES, symbol_cache_flush)
6297 (maintenance_print_symbol_cache)
6298 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6299 Update.
6300
6301 2019-05-08 Tom Tromey <tom@tromey.com>
6302
6303 * symtab.c (struct main_info): Add destructor and initializers.
6304 (main_progspace_key): Move. Change type.
6305 (get_main_info): Update.
6306 (main_info_cleanup): Remove.
6307 (_initialize_symtab): Update.
6308
6309 2019-05-08 Tom Tromey <tom@tromey.com>
6310
6311 * registry.h (DECLARE_REGISTRY): Define the _key class.
6312
6313 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6314
6315 * NEWS: Merge two 'New commands' sections.
6316
6317 2019-05-08 Joel Brobecker <brobecker@adacore.com>
6318
6319 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6320 parameter and use Ada language definition instead.
6321 (ada_val_print_ptr): Remove unused language parameter.
6322 (ada_val_print_num): Remove language parameter and use Ada language
6323 definition instead.
6324 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6325 parameter.
6326 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6327 parameter and use Ada language definition instead.
6328 (ada_val_print_1): Update all ada_val_print_xxx calls.
6329 Remove language parameter.
6330 (ada_val_print): Update ada_val_print_1 call.
6331
6332 2019-05-08 Tom Tromey <tromey@adacore.com>
6333
6334 * remote.c (remote_hw_watchpoint_limit)
6335 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6336 Now static.
6337
6338 2019-05-08 Tom Tromey <tromey@adacore.com>
6339
6340 * maint.c (_initialize_maint_cmds): Move initialization code to
6341 remote.c.
6342 (watchdog, show_watchdog): Move to remote.c.
6343 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6344 "watchdog" static.
6345 (_initialize_remote): Move initialization code from maint.c.
6346 * defs.h (watchdog): Don't declare.
6347
6348 2019-05-08 Tom Tromey <tromey@adacore.com>
6349
6350 * tui/tui-interp.c: Include main.h.
6351 * interps.c: Include main.h.
6352 * main.h (interpreter_p): Declare.
6353 * defs.h (interpreter_p): Don't declare.
6354
6355 2019-05-08 Tom Tromey <tromey@adacore.com>
6356
6357 * dwarf2loc.c: Include dwarf2read.h.
6358 * defs.h (read_unsigned_leb128): Don't declare.
6359 * dwarf2read.h (read_unsigned_leb128): Declare.
6360
6361 2019-05-08 Tom Tromey <tromey@adacore.com>
6362
6363 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6364 method.
6365
6366 2019-05-08 Tom Tromey <tromey@adacore.com>
6367
6368 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6369 when no wrap column is set.
6370
6371 2019-05-08 Tom Tromey <tromey@adacore.com>
6372
6373 * c-lang.c (c_get_string): Handle non-C-style arrays.
6374
6375 2019-05-08 Tom Tromey <tromey@adacore.com>
6376
6377 * typeprint.c (print_offset_data::update): Print the bit offset,
6378 not the number of bits remaining.
6379
6380 2019-05-08 Tom Tromey <tromey@adacore.com>
6381
6382 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6383 padding at end of comment.
6384
6385 2019-05-08 Tom Tromey <tromey@adacore.com>
6386
6387 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6388 Compare main types.
6389
6390 2019-05-06 Tom Tromey <tom@tromey.com>
6391
6392 * common/scoped_mmap.c: Include common-defs.h.
6393 * common/scoped_mmap.h: Don't include config.h.
6394
6395 2019-05-04 Tom Tromey <tom@tromey.com>
6396
6397 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6398 (struct aarch64_call_info): Add initializers.
6399 <si>: Now a std::vector.
6400 (pass_on_stack, aarch64_push_dummy_call): Update.
6401
6402 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
6403 Tom Tromey <tom@tromey.com>
6404
6405 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6406 (ppc_threads): Now a std::vector. Now static.
6407 (hwdebug_find_thread_points_by_tid)
6408 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6409 Update.
6410
6411 2019-05-04 Tom Tromey <tom@tromey.com>
6412
6413 * arc-tdep.c (arc_tdesc_init): Return bool.
6414
6415 2019-05-04 Tom Tromey <tom@tromey.com>
6416
6417 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6418 Use gdb_assert_not_reached.
6419
6420 2019-05-04 Tom Tromey <tom@tromey.com>
6421
6422 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6423 "false".
6424
6425 2019-05-04 Tom Tromey <tom@tromey.com>
6426
6427 * arc-tdep.c (arc_tdesc_init): Use bool.
6428
6429 2019-05-04 Tom Tromey <tom@tromey.com>
6430
6431 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6432
6433 2019-05-04 Tom Tromey <tom@tromey.com>
6434
6435 * cli/cli-cmds.c (valid_command_p): Return bool.
6436
6437 2019-05-04 Tom Tromey <tom@tromey.com>
6438
6439 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6440 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6441
6442 2019-05-04 Raul Tambre <raul@tambre.ee>
6443
6444 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6445 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6446 operator for comparison.
6447
6448 2019-05-04 Tom Tromey <tom@tromey.com>
6449
6450 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6451 (lookup_partial_symbol, print_partial_symbols)
6452 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6453 (psymbol_compare): Update.
6454 (add_psymbol_to_bcache): Clear the entire psymbol.
6455 (maintenance_check_psymtabs): Update.
6456 * psympriv.h (struct partial_symbol): Don't derive from
6457 general_symbol_info.
6458 <obj_section, unrelocated_address, address,
6459 set_unrelocated_address>: Update.
6460 <ginfo>: New member.
6461 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6462 (debug_names::write_psymbols): Update.
6463
6464 2019-05-04 Tom de Vries <tdevries@suse.de>
6465
6466 * contrib/cc-with-tweaks.sh: Support -n arg.
6467
6468 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6469
6470 * corelow.c (core_target::detach): Ensure frame cache and
6471 register caches are cleared.
6472 inferior.c (exit_inferior_1): Likewise.
6473
6474 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6475 Tom Tromey <tom@tromey.com>
6476
6477 * dictionary.c (collate_pending_symbols_by_language): Remove
6478 "struct" from foreach.
6479 * symtab.c (lookup_global_symbol_from_objfile)
6480 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6481 foreach.
6482 * ser-tcp.c (net_open): Remove "struct" from foreach.
6483 * objfiles.c (objfile_relocate, objfile_rebase)
6484 (objfile_has_symbols): Remove "struct" from foreach.
6485 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6486 from foreach.
6487 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6488 foreach.
6489 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6490 "struct" from foreach.
6491 * ada-lang.c (create_excep_cond_exprs)
6492 (ada_exception_catchpoint_cond_string): Remove "struct" from
6493 foreach.
6494
6495 2019-05-03 Tom Tromey <tromey@adacore.com>
6496
6497 * ada-exp.y (convert_char_literal): Check suffix of each
6498 enumerator.
6499
6500 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6501
6502 PR ada/21406:
6503 * ada-exp.y (yywrap): Don't define.
6504 * ada-lex.l (%option): Add noyywrap
6505 (yywrap): Remove.
6506
6507 2019-05-03 Eli Zaretskii <eliz@gnu.org>
6508
6509 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6510 _WIN32_WINNT to the XP level, unless already defined to a higher
6511 level.
6512
6513 * unittests/parse-connection-spec-selftests.c:
6514 * ser-tcp.c:
6515 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6516 override.
6517
6518 * symfile.c (find_separate_debug_file): Remove colon from the
6519 drive spec of DOS/Windows file names of the target, so that the
6520 file name produced from DEBUGDIR and the target's directory will
6521 be valid on DOS/Windows systems.
6522
6523 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6524
6525 * rust-lang.c (val_print_struct): Handle printing structures
6526 containing strings.
6527
6528 2019-05-02 Tom Tromey <tromey@adacore.com>
6529
6530 * valarith.c (_initialize_valarith): Remove.
6531
6532 2019-05-01 Tom Tromey <tromey@adacore.com>
6533
6534 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6535 bitfields.
6536
6537 2019-05-01 Tom Tromey <tromey@adacore.com>
6538
6539 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6540 for big-endian copies.
6541
6542 2019-04-30 Ali Tamur <tamur@google.com>
6543 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6544 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6545 (read_3_bytes): New function.
6546
6547 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6548
6549 * windows-nat.c (main_thread_id): Delete.
6550 (handle_output_debug_string): Replace main_thread_id by
6551 current_event.dwThreadId.
6552 (fake_create_process): Likewise.
6553 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6554 Do not set main_thread_id.
6555 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6556 current_event.dwThreadId.
6557 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6558
6559 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6560
6561 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6562 Use current_event.dwThreadId instead of main_thread_id.
6563
6564 2019-04-30 Tom Tromey <tromey@adacore.com>
6565
6566 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6567 (create_excep_cond_exprs): Iterate over program spaces.
6568 (ada_exception_catchpoint_cond_string): Examine all minimal
6569 symbols for exception types.
6570
6571 2019-04-30 Tom Tromey <tromey@adacore.com>
6572
6573 PR c++/24470:
6574 * dwarf2read.c (process_structure_scope): Handle case where type
6575 has template parameters but no symbol was created.
6576
6577 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6578 Chris January <chris.january@arm.com>
6579
6580 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6581 qualifier.
6582 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6583
6584 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6585
6586 * f-typeprint.c (f_print_type): Update rules for printing
6587 whitespace.
6588 (f_type_print_varspec_suffix): Likewise.
6589
6590 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6591 Chris January <chris.january@arm.com>
6592
6593 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6594 function arguments.
6595
6596 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6597
6598 * f-lang.c (build_fortran_types): Change name of void type to
6599 lower case.
6600 * f-typeprint.c (f_type_print_base): Print the name of the void
6601 type, rather than a fixed string.
6602 * f-valprint.c (f_decorations): Use lower case void string.
6603
6604 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6605 Chris January <chris.january@arm.com>
6606
6607 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6608 types for Fortran.
6609
6610 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6611 Chris January <chris.january@arm.com>
6612 David Lecomber <david.lecomber@arm.com>
6613
6614 * f-exp.y (BINOP_INTRINSIC): New token.
6615 (exp): New parser rule handling BINOP_INTRINSIC.
6616 (f77_keywords): Add new builtin procedures.
6617 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6618 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6619 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6620 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6621 (print_unop_subexp_f): New function.
6622 (print_binop_subexp_f): New function.
6623 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6624 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6625 (dump_subexp_body_f): Likewise.
6626 (operator_check_f): Likewise.
6627 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6628 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6629
6630 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6631
6632 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6633 UNOP_KIND.
6634 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6635 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6636 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6637 (operator_length_f): New fuction.
6638 (print_subexp_f): New function.
6639 (op_name_f): New function.
6640 (dump_subexp_body_f): New function.
6641 (operator_check_f): New function.
6642 (exp_descriptor_f): Replace standard expression handling functions
6643 with new functions.
6644 * gdb/fortran-operator.def: New file.
6645 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6646 * gdb/std-operator.def: Remove UNOP_KIND.
6647
6648 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6649
6650 * std-operator.def: Remove unbalanced, stray double quote
6651 character.
6652
6653 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6654 Chris January <chris.january@arm.com>
6655 Daniel Everett <daniel.everett@arm.com>
6656 Nick Forrington <nick.forrington@arm.com>
6657 Richard Bunt <richard.bunt@arm.com>
6658
6659 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6660 of depth when printing anonymous structs or unions.
6661 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6662 Don't print either the top-level value, or the children if the
6663 max-depth is exceeded.
6664 (ppscm_print_children): When printing the key of a map, allow one
6665 extra level of depth.
6666 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6667 print either the top-level value, or the children if the max-depth
6668 is exceeded.
6669 (print_children): When printing the key of a map, allow one extra
6670 level of depth.
6671 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6672 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6673 (user_print_options): Initialise max_depth field.
6674 (val_print_scalar_or_string_type_p): New function.
6675 (val_print): Check to see if the max depth has been reached.
6676 (val_print_check_max_depth): Define new function.
6677 (show_print_max_depth): New function.
6678 (_initialize_valprint): Add 'print max-depth' option.
6679 * valprint.h (struct value_print_options) <max_depth>: New field.
6680 (val_print_check_max_depth): Declare new function.
6681 * NEWS: Document new feature.
6682
6683 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6684
6685 * ada-lang.c (ada_language_defn): Initialise new field.
6686 * c-lang.c (c_is_string_type_p): New function.
6687 (c_language_defn): Initialise new field.
6688 (cplus_language_defn): Initialise new field.
6689 (asm_language_defn): Initialise new field.
6690 (minimal_language_defn): Initialise new field.
6691 * c-lang.h (c_is_string_type_p): Declare new function.
6692 * d-lang.c (d_language_defn): Initialise new field.
6693 * f-lang.c (f_is_string_type_p): New function.
6694 (f_language_defn): Initialise new field.
6695 * go-lang.c (go_is_string_type_p): New function.
6696 (go_language_defn): Initialise new field.
6697 * language.c (default_is_string_type_p): New function.
6698 (unknown_language_defn): Initialise new field.
6699 (auto_language_defn): Initialise new field.
6700 * language.h (struct language_defn) <la_is_string_type_p>: New
6701 member variable.
6702 (default_is_string_type_p): Declare new function.
6703 * m2-lang.c (m2_language_defn): Initialise new field.
6704 * objc-lang.c (objc_language_defn): Initialise new field.
6705 * opencl-lang.c (opencl_language_defn): Initialise new field.
6706 * p-lang.c (pascal_is_string_type_p): New function.
6707 (pascal_language_defn): Initialise new field.
6708 * rust-lang.c (rust_is_string_type_p): New function.
6709 (rust_language_defn): Initialise new field.
6710
6711 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6712
6713 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6714 New field.
6715 * ada-lang.c (ada_language_defn): Initialise new field.
6716 * c-lang.c (c_language_defn): Likewise.
6717 (cplus_language_defn): Likewise.
6718 (asm_language_defn): Likewise.
6719 (minimal_language_defn): Likewise.
6720 * d-lang.c (d_language_defn): Likewise.
6721 * f-lang.c (f_language_defn): Likewise.
6722 * go-lang.c (go_language_defn): Likewise.
6723 * language.c (unknown_language_defn): Likewise.
6724 (auto_language_defn): Likewise.
6725 * m2-lang.c (m2_language_defn): Likewise.
6726 * objc-lang.c (objc_language_defn): Likewise.
6727 * opencl-lang.c (opencl_language_defn): Likewise.
6728 * p-lang.c (pascal_language_defn): Likewise.
6729 * rust-lang.c (rust_language_defn): Likewise.
6730
6731 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6732
6733 * ada-lang.c (ada_is_character_type): Change return type to bool.
6734 (ada_is_string_type): Likewise.
6735 * ada-lang.h (ada_is_character_type): Update declaration
6736 (ada_is_string_type): Likewise.
6737
6738 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6739
6740 Support style in 'frame|thread apply'
6741
6742 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6743 * record.c (record_start, record_stop): Update callers of
6744 execute_command_to_string with false.
6745 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6746 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6747 methods.
6748 (class string_file): New constructor with term_out parameter.
6749 Override methods term_out and can_emit_style_escape. New member
6750 term_out.
6751 (class stdio_file): Override can_emit_style_escape.
6752 (class tee_file): Override term_out and can_emit_style_escape.
6753 * utils.h (can_emit_style_escape): Remove.
6754 * utils.c (can_emit_style_escape): Likewise.
6755 Update all callers of can_emit_style_escape (SOMESTREAM) to
6756 SOMESTREAM->can_emit_style_escape.
6757 * source-cache.c (source_cache::get_source_lines): Likewise.
6758 * stack.c (frame_apply_command_count): Call execute_command_to_string
6759 passing the term_out characteristic of the current gdb_stdout.
6760 * thread.c (thr_try_catch_cmd): Likewise.
6761 * top.c (execute_command_to_string): pass term_out parameter
6762 to construct the string_file for the command output.
6763 * ui-file.c (term_cli_styling): New function (most code moved
6764 from utils.c can_emit_style_escape).
6765 (string_file::string_file, string_file::can_emit_style_escape,
6766 stdio_file::can_emit_style_escape, tee_file::term_out,
6767 tee_file::can_emit_style_escape): New functions.
6768
6769 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6770
6771 * NEWS: Mention the new set|show may-call-functions.
6772 * infcall.c (may_call_functions_p): New variable.
6773 (show_may_call_functions_p): New function.
6774 (call_function_by_hand_dummy): Throws an error if not
6775 may-call-functions.
6776 (_initialize_infcall): Call add_setshow_boolean_cmd for
6777 may-call-functions.
6778
6779 2019-04-25 Keith Seitz <keiths@redhat.com>
6780
6781 PR c++/24367
6782 * cp-support.c (inspect_type): Don't attempt substitutions
6783 of symbol with the same name.
6784
6785 2019-04-25 Tom Tromey <tromey@adacore.com>
6786
6787 PR gdb/24475:
6788 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6789 static.
6790
6791 2019-04-25 Tom Tromey <tromey@adacore.com>
6792
6793 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6794 rvalue reference.
6795 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6796 (gdb_xml_parser::parse): Use std::move.
6797 * python/python-internal.h (gdbpy_convert_exception): Take a const
6798 reference.
6799 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6800 std::move.
6801 * python/py-utils.c (gdbpy_convert_exception): Take a const
6802 reference.
6803 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6804 Use std::move.
6805 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6806 Use std::move.
6807 * mi/mi-main.c (mi_print_exception): Take a const reference.
6808 * main.c (handle_command_errors): Take a const reference.
6809 * linespec.c (parse_linespec): Use std::move.
6810 * infcall.c (run_inferior_call): Use std::move.
6811 (call_function_by_hand_dummy): Use std::move.
6812 * exec.c (try_open_exec_file): Use std::move.
6813 * exceptions.h (exception_print, exception_fprintf)
6814 (exception_print_same): Update.
6815 * exceptions.c (print_exception, exception_print)
6816 (exception_fprintf, exception_print_same): Change parameters to
6817 const reference.
6818 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6819 * common/new-op.c: Use std::move.
6820 * common/common-exceptions.h (struct gdb_exception): Add move
6821 constructor.
6822 (struct gdb_exception_error, struct gdb_exception_quit, struct
6823 gdb_quit_bad_alloc): Change constructor to move constructor.
6824 (throw_exception): Change parameter to rvalue reference.
6825 * common/common-exceptions.c (throw_exception): Take rvalue
6826 reference.
6827 * cli/cli-interp.c (safe_execute_command): Use std::move.
6828 * breakpoint.c (insert_bp_location, location_to_sals): Use
6829 std::move.
6830
6831 2019-04-25 Tom Tromey <tromey@adacore.com>
6832
6833 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6834 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6835 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6836 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6837 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6838 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6839 guile/scm-value.c: Use unpack.
6840 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6841 gdbscm_gdb_exception.
6842 (gdbscm_throw_gdb_exception): Likewise.
6843 (struct gdbscm_gdb_exception): New.
6844 (unpack): New function.
6845 (gdbscm_wrap): Use unpack.
6846
6847 2019-04-25 Tom Tromey <tromey@adacore.com>
6848
6849 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6850 (gdb_rl_callback_handler): Use std::move.
6851 * common/common-exceptions.h (struct gdb_exception): Add move
6852 assignment operator.
6853 (throw_exception_sjlj): Change "exception" to const reference.
6854 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6855 (throw_exception_sjlj): Change "exception" to const reference.
6856
6857 2019-04-25 Tom Tromey <tromey@adacore.com>
6858
6859 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6860 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6861 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6862 Update.
6863 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6864 Update.
6865 * mi/mi-interp.c (mi_interp::exec): Update.
6866 * linespec.c (parse_linespec): Update.
6867 * infcall.c (run_inferior_call): Update.
6868 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6869 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6870 (gdbscm_lookup_global_symbol): Update.
6871 * guile/scm-param.c (gdbscm_parameter_value): Update.
6872 * guile/scm-frame.c (gdbscm_frame_read_register)
6873 (gdbscm_frame_read_var): Update.
6874 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6875 * exec.c (try_open_exec_file): Update.
6876 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6877 (gdb_rl_callback_handler): Update.
6878 * common/common-exceptions.h (exception_none): Don't declare.
6879 * common/common-exceptions.c (exception_none): Don't define.
6880 (struct catcher) <exception>: Update.
6881 * cli/cli-interp.c (safe_execute_command): Update.
6882 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6883
6884 2019-04-25 Ali Tamur <tamur@google.com>
6885
6886 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6887 (read_attribute_value): Likewise.
6888 (dwarf2_read_addr_index): Update comment.
6889 (read_str_index): Add DW_FORM_strx.
6890 (dwarf2_string_attr): Likewise.
6891 (dwarf2_const_value_attr): Likewise.
6892 (dump_die_shallow): Likewise.
6893 (dwarf2_fetch_constant_bytes): Likewise.
6894 (skip_form_bytes): Likewise.
6895 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6896
6897 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6898
6899 PR corefiles/11608
6900 PR corefiles/18187
6901 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6902 OFFSET. Verify if current mapping contains an ELF header.
6903 (linux_find_memory_regions_full): Adjust call to
6904 dump_mapping_p.
6905
6906 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6907 Kang Li <kanglictf@gmail.com>
6908
6909 PR gdb/21600
6910
6911 * dwarf2-frame.c (read_initial_length): Be consistent about using
6912 unsigned representation of length.
6913 (decode_frame_entry_1): Likewise. Check for wraparound of
6914 end pointer as well as buffer overflow.
6915
6916 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6917
6918 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6919 "vq".
6920
6921 2019-04-24 Tom Tromey <tromey@adacore.com>
6922
6923 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6924
6925 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6926
6927 * s12z-tdep.c (s12z_unwind_pc): Delete.
6928 (s12z_unwind_sp): Delete.
6929 (s12z_gdbarch_init): Don't register deleted functions with
6930 gdbarch.
6931
6932 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6933
6934 * rl78-tdep.c (rl78_unwind_sp): Delete.
6935 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6936
6937 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6938
6939 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6940 (xstormy16_unwind_pc): Delete.
6941 (xstormy16_dummy_id): Delete.
6942 (xstormy16_gdbarch_init): Don't register deleted functions with
6943 gdbarch.
6944
6945 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6946
6947 * vax-tdep.c (vax_unwind_pc): Delete.
6948 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6949
6950 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6951
6952 * v850-tdep.c (v850_unwind_sp): Delete.
6953 (v850_unwind_pc): Delete.
6954 (v850_dummy_id): Delete.
6955 (v850_gdbarch_init): Don't register deleted functions with
6956 gdbarch.
6957
6958 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6959
6960 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6961 (tilegx_unwind_pc): Delete.
6962 (tilegx_unwind_dummy_id): Delete.
6963 (tilegx_gdbarch_init): Don't register deleted functions with
6964 gdbarch.
6965
6966 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6967
6968 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6969 (tic6x_dummy_id): Delete.
6970 (tic6x_gdbarch_init): Don't register deleted functions with
6971 gdbarch.
6972
6973 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6974
6975 * sparc-tdep.c (sparc_unwind_pc): Delete.
6976 (sparc32_gdbarch_init): Don't register deleted function with
6977 gdbarch.
6978
6979 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6980
6981 * sh-tdep.c (sh_unwind_sp): Delete.
6982 (sh_unwind_pc): Delete.
6983 (sh_dummy_id): Delete.
6984 (sh_gdbarch_init): Don't register deleted functions with
6985 gdbarch.
6986
6987 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6988
6989 * score-tdep.c (score_unwind_sp): Delete.
6990 (score_unwind_pc): Delete.
6991 (score_dummy_id): Delete.
6992 (score_gdbarch_init): Don't register deleted functions with
6993 gdbarch.
6994
6995 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6996
6997 * rx-tdep.c (rx_unwind_pc): Delete.
6998 (rx_unwind_sp): Delete.
6999 (rx_dummy_id): Delete.
7000 (rx_gdbarch_init): Don't register deleted functions with
7001 gdbarch. Update comment.
7002
7003 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7004
7005 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7006 (rs6000_dummy_id): Delete.
7007 (rs6000_gdbarch_init): Don't register deleted functions with
7008 gdbarch.
7009
7010 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7011
7012 * or1k-tdep.c (or1k_dummy_id): Delete.
7013 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7014
7015 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7016
7017 * nios2-tdep.c (nios2_dummy_id): Delete.
7018 (nios2_unwind_sp): Delete.
7019 (nios2_gdbarch_init): Don't register deleted functions with
7020 gdbarch.
7021
7022 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7023
7024 * nds32-tdep.c (nds32_dummy_id): Delete.
7025 (nds32_unwind_pc): Delete.
7026 (nds32_unwind_sp): Delete.
7027 (nds32_gdbarch_init): Don't register deleted functions with
7028 gdbarch.
7029
7030 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7031
7032 * msp430-tdep.c (msp430_unwind_pc): Delete.
7033 (msp430_unwind_sp): Delete.
7034 (msp430_dummy_id): Delete.
7035 (msp430_gdbarch_init): Don't register deleted functions with
7036 gdbarch.
7037
7038 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7039
7040 * moxie-tdep.c (moxie_unwind_sp): Delete.
7041 (moxie_unwind_pc): Delete.
7042 (moxie_dummy_id): Delete.
7043 (moxie_gdbarch_init): Don't register deleted functions with
7044 gdbarch.
7045
7046 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7047
7048 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7049 (mn10300_unwind_pc): Delete.
7050 (mn10300_unwind_sp): Delete.
7051 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7052 mn10300_unwind_sp.
7053 (mn10300_frame_unwind_init): Don't register deleted functions with
7054 gdbarch.
7055
7056 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7057
7058 * mep-tdep.c (mep_unwind_pc): Delete.
7059 (mep_unwind_sp): Delete.
7060 (mep_dummy_id): Delete.
7061 (mep_gdbarch_init): Don't register deleted functions with
7062 gdbarch.
7063
7064 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7065
7066 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7067 (m68hc11_unwind_sp): Delete.
7068 (m68hc11_gdbarch_init): Don't register deleted functions with
7069 gdbarch.
7070
7071 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7072
7073 * m32r-tdep.c (m32r_unwind_sp): Delete.
7074 (m32r_unwind_pc): Delete.
7075 (m32r_dummy_id): Delete.
7076 (m32r_gdbarch_init): Don't register deleted functions with
7077 gdbarch.
7078
7079 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7080
7081 * m32c-tdep.c (m32c_unwind_pc): Delete.
7082 (m32c_unwind_sp): Delete.
7083 (m32c_dummy_id): Delete.
7084 (m32c_gdbarch_init): Don't register deleted functions with
7085 gdbarch.
7086
7087 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7088
7089 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7090 (lm32_unwind_pc): Delete.
7091 (lm32_dummy_id): Delete.
7092 (lm32_gdbarch_init): Don't register deleted functions with
7093 gdbarch.
7094
7095 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7096
7097 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7098 (iq2000_unwind_pc): Delete.
7099 (iq2000_dummy_id): Delete.
7100 (iq2000_gdbarch_init): Don't register deleted functions with
7101 gdbarch.
7102
7103 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7104
7105 * nds32-tdep.c (nds32_type_align): Delete.
7106 (nds32_push_dummy_call): Use type_align instead.
7107
7108 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7109
7110 * arm-tdep.c (arm_type_align): Only handle vector override case.
7111 (arm_push_dummy_call): Use type_align.
7112 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7113
7114 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7115
7116 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7117 case.
7118 (pass_on_stack): Use type_align.
7119 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7120 function.
7121
7122 2019-04-23 Tom Tromey <tromey@adacore.com>
7123
7124 * dwarf2read.c (line_header::file_name_at): Remove unused
7125 overload.
7126
7127 2019-04-23 Tom de Vries <tdevries@suse.de>
7128
7129 PR gdb/24438
7130 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7131 invocation.
7132
7133
7134 2019-03-27 Ali Tamur <tamur@google.com>
7135
7136 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7137 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7138 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7139 (dwarf_expr_context::get_addr_index): Likewise
7140 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7141 (symbol_needs_eval_context::get_addr_index): Likewise
7142 (disassemble_dwarf_expression): Add DW_OP_addrx
7143 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7144 (read_cutu_die_from_dwo): Update comment
7145 (skip_one_die): Add DW_FORM_addrx
7146 (read_attribute_value): Likewise
7147 (var_decode_location): Add DW_OP_addrx
7148 (dwarf2_const_value_attr): Add DW_FORM_addrx
7149 (dump_die_shallow): Likewise
7150 (dwarf2_fetch_constant_bytes): Likewise
7151 (decode_locdesc): Add DW_OP_addrx
7152 (skip_form_bytes): Add DW_FORM_addrx
7153
7154 2019-04-22 Ali Tamur <tamur@google.com>
7155
7156 * MAINTAINERS (Write After Approval): Add self.
7157
7158 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
7159
7160 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7161 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7162 (open_symbol_file_object): Likewise.
7163 (svr4_default_sos): Add info parameter.
7164 (svr4_read_so_list): Likewise.
7165 (svr4_current_sos_direct): Adjust functions calls to pass down
7166 info.
7167 (svr4_current_sos_1): Add info parameter.
7168 (svr4_current_sos): Call get_svr4_info, pass info down to
7169 svr4_current_sos_1.
7170 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7171 get_svr4_info.
7172 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7173 get_svr4_info.
7174 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7175 to get_svr4_info.
7176 (probes_table_remove_objfile_probes): Likewise.
7177 (register_solib_event_probe): Add info parameter.
7178 (solist_update_incremental): Pass info parameter down to
7179 svr4_read_so_list.
7180 (disable_probes_interface): Add info parameter.
7181 (svr4_handle_solib_event): Pass current_program_space to
7182 get_svr4_info. Adjust disable_probes_interface cleanup.
7183 (svr4_create_probe_breakpoints): Add info parameter, pass it
7184 down to register_solib_event_probe.
7185 (svr4_create_solib_event_breakpoints): Add info parameter,
7186 pass it down to svr4_create_probe_breakpoints.
7187 (enable_break): Pass info down to
7188 svr4_create_solib_event_breakpoints.
7189 (svr4_solib_create_inferior_hook): Pass current_program_space to
7190 get_svr4_info.
7191 (svr4_clear_solib): Likewise.
7192
7193 2019-04-22 Pedro Alves <palves@redhat.com>
7194
7195 * solib-svr4.c (svr4_free_objfile_observer): New.
7196 (probe_and_action::objfile): New field.
7197 (probes_table_htab_remove_objfile_probes)
7198 (probes_table_remove_objfile_probes): New functions.
7199 (register_solib_event_probe): Add 'objfile' parameter. Store it
7200 in the new probe_and_action. Don't store the probe in 'lookup'.
7201 (svr4_create_probe_breakpoints): Pass objfile to
7202 register_solib_event_probe.
7203 (_initialize_svr4_solib): Register a free_objfile observer.
7204
7205 2019-04-19 Tom Tromey <tom@tromey.com>
7206
7207 * common/queue.h: Remove.
7208
7209 2019-04-19 Tom Tromey <tom@tromey.com>
7210
7211 * event-loop.c: Don't include "common/queue.h".
7212
7213 2019-04-19 Tom Tromey <tom@tromey.com>
7214
7215 * remote.c (remote_target): Use delete.
7216 * remote-notif.h: Include <list>, not "common/queue.h".
7217 (notif_client_p): Remove typedef.
7218 (remote_notif_state): Add constructor, destructor, initializer.
7219 <notif_queue>: Now a std::list.
7220 (remote_notif_state_xfree): Don't declare.
7221 * remote-notif.c (remote_notif_process, handle_notification)
7222 (remote_notif_state_allocate): Update.
7223 (~remote_notif_state): Rename from remote_notif_state_xfree.
7224
7225 2019-04-19 Tom Tromey <tom@tromey.com>
7226
7227 * symfile.c (reread_symbols): Update.
7228 * objfiles.c (objfile_register_static_link)
7229 (objfile_lookup_static_link): Update
7230 (~objfile) Don't delete static_links.
7231 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7232
7233 2019-04-19 Tom Tromey <tom@tromey.com>
7234
7235 * type-stack.h (struct type_stack) <insert>: Constify string.
7236 * type-stack.c (type_stack::insert): Constify string.
7237 * gdbtypes.h (lookup_template_type): Update.
7238 (address_space_name_to_int): Update.
7239 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7240 const.
7241 (lookup_template_type): Make name const.
7242 * c-exp.y: Update rules.
7243 (lex_one_token, classify_name, classify_inner_name)
7244 (c_print_token): Update.
7245 * p-exp.y: Update rules.
7246 (yylex): Update.
7247 * f-exp.y: Update rules.
7248 (yylex): Update.
7249 * d-exp.y: Update rules.
7250 (lex_one_token, classify_name, classify_inner_name): Update.
7251 * parse.c (write_dollar_variable, copy_name): Return std::string.
7252 * parser-defs.h (copy_name): Change return type.
7253 * m2-exp.y: Update rules.
7254 (yylex): Update.
7255 * go-exp.y (lex_one_token): Update.
7256 Update rules.
7257 (classify_unsafe_function, classify_packaged_name)
7258 (classify_name, yylex): Update.
7259
7260 2019-04-19 Sergei Trofimovich <siarheit@google.com>
7261
7262 * configure.ac: add --enable-source-highlight switch.
7263 * configure: Regenerate.
7264 * top.c (print_gdb_version): plumb --enable-source-highlight
7265 status to "show configuration".
7266
7267 2019-04-19 Tom Tromey <tromey@adacore.com>
7268
7269 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7270 Check ADA_TYPE_P.
7271 (empty_record, ada_template_to_fixed_record_type_1)
7272 (template_to_static_fixed_type)
7273 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7274 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7275 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7276 macros.
7277
7278 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7279
7280 PR symtab/24423:
7281 * source.c (print_source_lines_base): Advance "iter" when a
7282 control character is seen.
7283
7284 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7285
7286 * inferior.h (struct infcall_suspend_state_deleter):
7287 Catch exception in destructor to avoid crash.
7288
7289 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7290
7291 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7292 close to the add_com "shell".
7293
7294 2019-04-18 Tom Tromey <tromey@adacore.com>
7295
7296 * process-stratum-target.h (class process_stratum_target)
7297 <stratum>: Add "final".
7298
7299 2019-04-17 Tom Tromey <tromey@adacore.com>
7300
7301 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7302 against nullptr before use.
7303
7304 2019-04-17 Alan Hayward <alan.hayward@arm.com>
7305
7306 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7307
7308 2019-04-17 Jim Wilson <jimw@sifive.com>
7309 Andrew Burgess <andrew.burgess@embecosm.com>
7310
7311 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7312 code read might fail, assume 4-byte breakpoint in that case.
7313
7314 2019-04-15 Leszek Swirski <leszeks@google.com>
7315
7316 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7317 rather than a hand-rolled POD check when checking for forced MEMORY
7318 classification.
7319
7320 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7321
7322 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7323 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7324 function.
7325 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7326 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7327 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7328 declaration.
7329
7330 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7331
7332 * aarch64-linux-nat.c
7333 (aarch64_linux_nat_target::thread_architecture): Add override.
7334 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7335 each VQ.
7336
7337 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7338
7339 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7340
7341 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7342
7343 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7344 target types of size 96-bits, add some additional comments, and
7345 check that the builtin type we found was the correct size.
7346
7347 2019-04-12 Eli Zaretskii <eliz@gnu.org>
7348
7349 * utils.c (prompt_for_continue): Don't restore the styling at the
7350 end, as applied_style has the wrong value. This fixes styling in
7351 long lists of file names that are interrupted by the "Continue?"
7352 prompt.
7353
7354 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7355
7356 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7357 * c-lang.c (c_language_defn): Likewise.
7358 (cplus_language_defn): Likewise.
7359 (asm_language_defn): Likewise.
7360 (minimal_language_defn): Likewise.
7361 * d-lang.c (d_language_defn): Likewise.
7362 * f-lang.c (f_language_defn): Likewise.
7363 * go-lang.c (go_language_defn): Likewise.
7364 * language.c (unknown_language_defn): Likewise.
7365 (auto_language_defn): Likewise.
7366 * language.h (struct language_defn): Remove la_magic field.
7367 (LANG_MAGIC): Delete.
7368 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7369 * objc-lang.c (objc_language_defn): Likewise.
7370 * opencl-lang.c (opencl_language_defn): Likewise.
7371 * p-lang.c (pascal_language_defn): Likewise.
7372 * rust-lang.c (rust_language_defn): Likewise.
7373
7374 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7375
7376 * riscv-tdep.c (riscv_type_align): New function.
7377 (riscv_type_alignment): Delete.
7378 (riscv_arg_location): Use 'type_align'.
7379 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7380
7381 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7382
7383 * gdbtypes.c (type_align): A struct with no non-static fields also
7384 has alignment of 1.
7385
7386 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7387
7388 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7389 component to 0.
7390 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7391 member.
7392 (riscv_struct_info::analyse): New implementation using new
7393 analyse_inner member function.
7394 (riscv_struct_info::field_offset): New member function.
7395 (riscv_struct_info::m_offsets): New member variable.
7396 (riscv_struct_info::analyse_inner): New private member function,
7397 takes the old implementation of riscv_struct_info::analyse but
7398 extended to track field offsets.
7399 (riscv_call_arg_struct): Update the struct folding special cases
7400 to handle cases where empty C++ structs, which are non-zero
7401 length, are found.
7402 (riscv_arg_location): Initialise the length of each location, a
7403 non-zero length now indicates the location is in use.
7404 (riscv_push_dummy_call): Allow for the first location having a
7405 non-zero offset when setting up arguments.
7406 (riscv_return_value): Likewise, but for return values.
7407
7408 2019-04-11 Tom Tromey <tromey@adacore.com>
7409
7410 * utils.c (internal_vproblem): Make "msg" const.
7411
7412 2019-04-11 Alan Hayward <alan.hayward@arm.com>
7413
7414 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7415 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7416 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7417 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7418
7419 2019-04-10 Kevin Buettner <kevinb@redhat.com>
7420
7421 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7422 function.
7423 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7424 of amd64_collect_native_gregset.
7425 (amd64_linux_nat_target::store_registers): Likewise.
7426
7427 2019-04-10 Tom Tromey <tom@tromey.com>
7428
7429 * symtab.c (lookup_global_symbol_from_objfile)
7430 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7431 * objfiles.h (class separate_debug_iterator): New.
7432 (class separate_debug_range): New.
7433 (struct objfile) <separate_debug_objfiles>: New method.
7434 (objfile_separate_debug_iterate): Don't declare.
7435 * objfiles.c (separate_debug_iterator::operator++): Rename from
7436 objfile_separate_debug_iterate.
7437 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7438 iterator.
7439 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7440 iterator.
7441
7442 2019-04-10 Tom Tromey <tom@tromey.com>
7443
7444 * symfile.c (reread_symbols): Remove old comment.
7445 * objfiles.c (free_all_objfiles): Fix a typo.
7446
7447 2019-04-10 Tom Tromey <tom@tromey.com>
7448
7449 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7450 * minsyms.c (lookup_minimal_symbol): Use foreach.
7451 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7452 (lookup_minimal_symbol_solib_trampoline): Likewise.
7453 * symfile.c (reread_symbols): Use foreach.
7454
7455 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
7456 Tom Tromey <tromey@adacore.com>
7457
7458 PR rust/24414:
7459 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7460 (rust_lex_int_test): Change "value" to be LONGEST.
7461 (rust_lex_tests): Add test for long integer literal.
7462
7463 2019-04-09 Tom Tromey <tromey@adacore.com>
7464
7465 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7466 to bool.
7467 (extended_remote_target::attach): Update.
7468 (remote_target::remote_notice_new_inferior): Update.
7469 (remote_target::add_current_inferior_and_thread): Update.
7470 * inferior.c (exit_inferior_1): Use "false".
7471 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7472
7473 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
7474
7475 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
7476 the "start" command.
7477
7478 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7479
7480 * python/py-inferior.c (infpy_thread_from_thread_handle):
7481 Adjust comments to reflect renaming of thread_from_thread_handle
7482 to thread_from_handle. Adjust keywords. Fix type error message.
7483 (inferior_object_methods): Add thread_from_handle. Retain
7484 thread_from_thread_handle, but mark it as deprecated.
7485
7486 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7487
7488 * gdbthread.h (find_thread_by_handle): Revise declaration.
7489 * thread.c (find_thread_by_handle): Likewise. Adjust
7490 implementation too.
7491 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7492 support for buffer objects as handles.
7493
7494 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7495
7496 * python/py-infthread.c (thpy_thread_handle): New function.
7497 (thread_object_methods): Register thpy_thread_handle.
7498
7499 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7500
7501 * gdbthread.h (thread_to_thread_handle): Declare.
7502 * thread.c (gdbtypes.h): Include.
7503 (thread_to_thread_handle): New function.
7504
7505 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7506 (target_thread_info_to_thread_handle): Declare.
7507 * target.c (target_thread_info_to_thread_handle): New function.
7508 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7509 * target-delegates.c: Regenerate.
7510
7511 * linux-thread-db.c (class thread_db_target): Add method
7512 thread_info_to_thread_handle.
7513 (thread_db_target::thread_info_to_thread_handle): Define.
7514 * remote.c (class remote_target): Add new method
7515 thread_info_to_thread_handle.
7516 (remote_target::thread_info_to_thread_handle): Define.
7517
7518 2019-04-08 Pedro Alves <palves@redhat.com>
7519
7520 * common/common-exceptions.c (throw_exception): Don't create
7521 named object to throw; throw directly.
7522 (throw_it): Likewise. Don't initialize gdb_exception::message
7523 here, with new; pass FMT and AP to the ctor instead.
7524 * common/common-exceptions.h: Include <string>.
7525 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7526 const char *, va_list)): New ctor. Use std::make_shared.
7527 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7528 errors)): Delete.
7529 (gdb_exception_error::gdb_exception_error(enum errors, const char
7530 *, va_list)): New.
7531 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7532 Add assertion.
7533 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7534 errors)): Delete.
7535 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7536 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7537 Add assertion.
7538
7539 2019-04-08 Tom Tromey <tom@tromey.com>
7540
7541 * valops.c (value_rtti_indirect_type): Replace throw_exception
7542 with throw.
7543 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7544 with throw.
7545 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7546 throw.
7547 * target.c (target_translate_tls_address): Replace throw_exception
7548 with throw.
7549 * stack.c (frame_apply_command_count): Replace throw_exception
7550 with throw.
7551 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7552 throw.
7553 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7554 with throw.
7555 * rs6000-tdep.c (rs6000_frame_cache)
7556 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7557 * remote.c: Replace throw_exception with throw.
7558 * record-full.c (record_full_message, record_full_wait_1)
7559 (record_full_restore): Replace throw_exception with throw.
7560 * record-btrace.c:
7561 (get_thread_current_frame_id, record_btrace_start_replaying)
7562 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7563 (cmd_record_btrace_start): Replace throw_exception with throw.
7564 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7565 throw.
7566 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7567 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7568 * linespec.c:
7569 (find_linespec_symbols): Replace throw_exception with throw.
7570 * infrun.c (displaced_step_prepare, resume): Replace
7571 throw_exception with throw.
7572 * infcmd.c (post_create_inferior): Replace throw_exception with
7573 throw.
7574 * inf-loop.c (inferior_event_handler): Replace throw_exception
7575 with throw.
7576 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7577 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7578 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7579 (get_prev_frame_always, get_frame_pc_if_available)
7580 (get_frame_address_in_block_if_available, get_frame_language):
7581 Replace throw_exception with throw.
7582 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7583 throw_exception with throw.
7584 * eval.c (fetch_subexp_value, evaluate_var_value)
7585 (evaluate_funcall, evaluate_subexp_standard): Replace
7586 throw_exception with throw.
7587 * dwarf2loc.c (call_site_find_chain)
7588 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7589 Replace throw_exception with throw.
7590 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7591 with throw.
7592 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7593 throw.
7594 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7595 * completer.c (complete_line_internal): Replace throw_exception
7596 with throw.
7597 * compile/compile-object-run.c (compile_object_run): Replace
7598 throw_exception with throw.
7599 * cli/cli-script.c (process_next_line): Replace throw_exception
7600 with throw.
7601 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7602 (btrace_enable, btrace_maint_update_pt_packets): Replace
7603 throw_exception with throw.
7604 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7605 throw_exception with throw.
7606 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7607 throw_exception with throw.
7608 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7609 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7610 * aarch64-tdep.c (aarch64_make_prologue_cache)
7611 (aarch64_make_stub_cache): Replace throw_exception with throw.
7612
7613 2019-04-08 Tom Tromey <tom@tromey.com>
7614
7615 * common/common-exceptions.c (throw_exception): Rename from
7616 throw_exception_cxx. Remove old copy. Make argument const.
7617 (throw_it): Create and throw exception objects directly.
7618 * common/common-exceptions.h (throw_exception): Make argument
7619 const.
7620 (struct gdb_exception_error): Add constructor.
7621 (struct gdb_exception_quit): Add constructor.
7622
7623 2019-04-08 Tom Tromey <tom@tromey.com>
7624
7625 * common/common-exceptions.h (exception_rethrow): Don't declare.
7626 (TRY_SJLJ): Update comment.
7627 (TRY, CATCH, END_CATCH): Remove.
7628 * common/common-exceptions.c (exception_rethrow): Remove.
7629
7630 2019-04-08 Tom Tromey <tom@tromey.com>
7631
7632 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7633 Remove.
7634 (gdb_exception_error): Rename from
7635 gdb_exception_RETURN_MASK_ERROR.
7636 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7637 (gdb_quit_bad_alloc): Update.
7638 * aarch64-tdep.c: Update.
7639 * ada-lang.c: Update.
7640 * ada-typeprint.c: Update.
7641 * ada-valprint.c: Update.
7642 * amd64-tdep.c: Update.
7643 * arch-utils.c: Update.
7644 * break-catch-throw.c: Update.
7645 * breakpoint.c: Update.
7646 * btrace.c: Update.
7647 * c-varobj.c: Update.
7648 * cli/cli-cmds.c: Update.
7649 * cli/cli-interp.c: Update.
7650 * cli/cli-script.c: Update.
7651 * common/common-exceptions.c: Update.
7652 * common/new-op.c: Update.
7653 * common/selftest.c: Update.
7654 * compile/compile-c-symbols.c: Update.
7655 * compile/compile-cplus-symbols.c: Update.
7656 * compile/compile-object-load.c: Update.
7657 * compile/compile-object-run.c: Update.
7658 * completer.c: Update.
7659 * corelow.c: Update.
7660 * cp-abi.c: Update.
7661 * cp-support.c: Update.
7662 * cp-valprint.c: Update.
7663 * darwin-nat.c: Update.
7664 * disasm-selftests.c: Update.
7665 * dtrace-probe.c: Update.
7666 * dwarf-index-cache.c: Update.
7667 * dwarf-index-write.c: Update.
7668 * dwarf2-frame-tailcall.c: Update.
7669 * dwarf2-frame.c: Update.
7670 * dwarf2loc.c: Update.
7671 * dwarf2read.c: Update.
7672 * eval.c: Update.
7673 * event-loop.c: Update.
7674 * event-top.c: Update.
7675 * exec.c: Update.
7676 * f-valprint.c: Update.
7677 * fbsd-tdep.c: Update.
7678 * frame-unwind.c: Update.
7679 * frame.c: Update.
7680 * gdbtypes.c: Update.
7681 * gnu-v3-abi.c: Update.
7682 * guile/guile-internal.h: Update.
7683 * guile/scm-block.c: Update.
7684 * guile/scm-breakpoint.c: Update.
7685 * guile/scm-cmd.c: Update.
7686 * guile/scm-disasm.c: Update.
7687 * guile/scm-frame.c: Update.
7688 * guile/scm-lazy-string.c: Update.
7689 * guile/scm-math.c: Update.
7690 * guile/scm-param.c: Update.
7691 * guile/scm-ports.c: Update.
7692 * guile/scm-pretty-print.c: Update.
7693 * guile/scm-symbol.c: Update.
7694 * guile/scm-symtab.c: Update.
7695 * guile/scm-type.c: Update.
7696 * guile/scm-value.c: Update.
7697 * i386-linux-tdep.c: Update.
7698 * i386-tdep.c: Update.
7699 * inf-loop.c: Update.
7700 * infcall.c: Update.
7701 * infcmd.c: Update.
7702 * infrun.c: Update.
7703 * jit.c: Update.
7704 * language.c: Update.
7705 * linespec.c: Update.
7706 * linux-fork.c: Update.
7707 * linux-nat.c: Update.
7708 * linux-tdep.c: Update.
7709 * linux-thread-db.c: Update.
7710 * main.c: Update.
7711 * mi/mi-cmd-break.c: Update.
7712 * mi/mi-cmd-stack.c: Update.
7713 * mi/mi-interp.c: Update.
7714 * mi/mi-main.c: Update.
7715 * objc-lang.c: Update.
7716 * p-valprint.c: Update.
7717 * parse.c: Update.
7718 * ppc-linux-tdep.c: Update.
7719 * printcmd.c: Update.
7720 * python/py-arch.c: Update.
7721 * python/py-breakpoint.c: Update.
7722 * python/py-cmd.c: Update.
7723 * python/py-finishbreakpoint.c: Update.
7724 * python/py-frame.c: Update.
7725 * python/py-framefilter.c: Update.
7726 * python/py-gdb-readline.c: Update.
7727 * python/py-inferior.c: Update.
7728 * python/py-infthread.c: Update.
7729 * python/py-lazy-string.c: Update.
7730 * python/py-linetable.c: Update.
7731 * python/py-objfile.c: Update.
7732 * python/py-param.c: Update.
7733 * python/py-prettyprint.c: Update.
7734 * python/py-progspace.c: Update.
7735 * python/py-record-btrace.c: Update.
7736 * python/py-record.c: Update.
7737 * python/py-symbol.c: Update.
7738 * python/py-type.c: Update.
7739 * python/py-unwind.c: Update.
7740 * python/py-utils.c: Update.
7741 * python/py-value.c: Update.
7742 * python/python.c: Update.
7743 * record-btrace.c: Update.
7744 * record-full.c: Update.
7745 * remote-fileio.c: Update.
7746 * remote.c: Update.
7747 * riscv-tdep.c: Update.
7748 * rs6000-aix-tdep.c: Update.
7749 * rs6000-tdep.c: Update.
7750 * rust-exp.y: Update.
7751 * rust-lang.c: Update.
7752 * s390-tdep.c: Update.
7753 * selftest-arch.c: Update.
7754 * solib-dsbt.c: Update.
7755 * solib-frv.c: Update.
7756 * solib-spu.c: Update.
7757 * solib-svr4.c: Update.
7758 * solib.c: Update.
7759 * sparc64-linux-tdep.c: Update.
7760 * stack.c: Update.
7761 * symfile-mem.c: Update.
7762 * symmisc.c: Update.
7763 * target.c: Update.
7764 * thread.c: Update.
7765 * top.c: Update.
7766 * tracefile-tfile.c: Update.
7767 * tui/tui.c: Update.
7768 * typeprint.c: Update.
7769 * unittests/cli-utils-selftests.c: Update.
7770 * unittests/parse-connection-spec-selftests.c: Update.
7771 * valops.c: Update.
7772 * valprint.c: Update.
7773 * value.c: Update.
7774 * varobj.c: Update.
7775 * windows-nat.c: Update.
7776 * x86-linux-nat.c: Update.
7777 * xml-support.c: Update.
7778
7779 2019-04-08 Tom Tromey <tom@tromey.com>
7780
7781 * xml-support.c: Use C++ exception handling.
7782 * x86-linux-nat.c: Use C++ exception handling.
7783 * windows-nat.c: Use C++ exception handling.
7784 * varobj.c: Use C++ exception handling.
7785 * value.c: Use C++ exception handling.
7786 * valprint.c: Use C++ exception handling.
7787 * valops.c: Use C++ exception handling.
7788 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7789 handling.
7790 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7791 * typeprint.c: Use C++ exception handling.
7792 * tui/tui.c: Use C++ exception handling.
7793 * tracefile-tfile.c: Use C++ exception handling.
7794 * top.c: Use C++ exception handling.
7795 * thread.c: Use C++ exception handling.
7796 * target.c: Use C++ exception handling.
7797 * symmisc.c: Use C++ exception handling.
7798 * symfile-mem.c: Use C++ exception handling.
7799 * stack.c: Use C++ exception handling.
7800 * sparc64-linux-tdep.c: Use C++ exception handling.
7801 * solib.c: Use C++ exception handling.
7802 * solib-svr4.c: Use C++ exception handling.
7803 * solib-spu.c: Use C++ exception handling.
7804 * solib-frv.c: Use C++ exception handling.
7805 * solib-dsbt.c: Use C++ exception handling.
7806 * selftest-arch.c: Use C++ exception handling.
7807 * s390-tdep.c: Use C++ exception handling.
7808 * rust-lang.c: Use C++ exception handling.
7809 * rust-exp.y: Use C++ exception handling.
7810 * rs6000-tdep.c: Use C++ exception handling.
7811 * rs6000-aix-tdep.c: Use C++ exception handling.
7812 * riscv-tdep.c: Use C++ exception handling.
7813 * remote.c: Use C++ exception handling.
7814 * remote-fileio.c: Use C++ exception handling.
7815 * record-full.c: Use C++ exception handling.
7816 * record-btrace.c: Use C++ exception handling.
7817 * python/python.c: Use C++ exception handling.
7818 * python/py-value.c: Use C++ exception handling.
7819 * python/py-utils.c: Use C++ exception handling.
7820 * python/py-unwind.c: Use C++ exception handling.
7821 * python/py-type.c: Use C++ exception handling.
7822 * python/py-symbol.c: Use C++ exception handling.
7823 * python/py-record.c: Use C++ exception handling.
7824 * python/py-record-btrace.c: Use C++ exception handling.
7825 * python/py-progspace.c: Use C++ exception handling.
7826 * python/py-prettyprint.c: Use C++ exception handling.
7827 * python/py-param.c: Use C++ exception handling.
7828 * python/py-objfile.c: Use C++ exception handling.
7829 * python/py-linetable.c: Use C++ exception handling.
7830 * python/py-lazy-string.c: Use C++ exception handling.
7831 * python/py-infthread.c: Use C++ exception handling.
7832 * python/py-inferior.c: Use C++ exception handling.
7833 * python/py-gdb-readline.c: Use C++ exception handling.
7834 * python/py-framefilter.c: Use C++ exception handling.
7835 * python/py-frame.c: Use C++ exception handling.
7836 * python/py-finishbreakpoint.c: Use C++ exception handling.
7837 * python/py-cmd.c: Use C++ exception handling.
7838 * python/py-breakpoint.c: Use C++ exception handling.
7839 * python/py-arch.c: Use C++ exception handling.
7840 * printcmd.c: Use C++ exception handling.
7841 * ppc-linux-tdep.c: Use C++ exception handling.
7842 * parse.c: Use C++ exception handling.
7843 * p-valprint.c: Use C++ exception handling.
7844 * objc-lang.c: Use C++ exception handling.
7845 * mi/mi-main.c: Use C++ exception handling.
7846 * mi/mi-interp.c: Use C++ exception handling.
7847 * mi/mi-cmd-stack.c: Use C++ exception handling.
7848 * mi/mi-cmd-break.c: Use C++ exception handling.
7849 * main.c: Use C++ exception handling.
7850 * linux-thread-db.c: Use C++ exception handling.
7851 * linux-tdep.c: Use C++ exception handling.
7852 * linux-nat.c: Use C++ exception handling.
7853 * linux-fork.c: Use C++ exception handling.
7854 * linespec.c: Use C++ exception handling.
7855 * language.c: Use C++ exception handling.
7856 * jit.c: Use C++ exception handling.
7857 * infrun.c: Use C++ exception handling.
7858 * infcmd.c: Use C++ exception handling.
7859 * infcall.c: Use C++ exception handling.
7860 * inf-loop.c: Use C++ exception handling.
7861 * i386-tdep.c: Use C++ exception handling.
7862 * i386-linux-tdep.c: Use C++ exception handling.
7863 * guile/scm-value.c: Use C++ exception handling.
7864 * guile/scm-type.c: Use C++ exception handling.
7865 * guile/scm-symtab.c: Use C++ exception handling.
7866 * guile/scm-symbol.c: Use C++ exception handling.
7867 * guile/scm-pretty-print.c: Use C++ exception handling.
7868 * guile/scm-ports.c: Use C++ exception handling.
7869 * guile/scm-param.c: Use C++ exception handling.
7870 * guile/scm-math.c: Use C++ exception handling.
7871 * guile/scm-lazy-string.c: Use C++ exception handling.
7872 * guile/scm-frame.c: Use C++ exception handling.
7873 * guile/scm-disasm.c: Use C++ exception handling.
7874 * guile/scm-cmd.c: Use C++ exception handling.
7875 * guile/scm-breakpoint.c: Use C++ exception handling.
7876 * guile/scm-block.c: Use C++ exception handling.
7877 * guile/guile-internal.h: Use C++ exception handling.
7878 * gnu-v3-abi.c: Use C++ exception handling.
7879 * gdbtypes.c: Use C++ exception handling.
7880 * frame.c: Use C++ exception handling.
7881 * frame-unwind.c: Use C++ exception handling.
7882 * fbsd-tdep.c: Use C++ exception handling.
7883 * f-valprint.c: Use C++ exception handling.
7884 * exec.c: Use C++ exception handling.
7885 * event-top.c: Use C++ exception handling.
7886 * event-loop.c: Use C++ exception handling.
7887 * eval.c: Use C++ exception handling.
7888 * dwarf2read.c: Use C++ exception handling.
7889 * dwarf2loc.c: Use C++ exception handling.
7890 * dwarf2-frame.c: Use C++ exception handling.
7891 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7892 * dwarf-index-write.c: Use C++ exception handling.
7893 * dwarf-index-cache.c: Use C++ exception handling.
7894 * dtrace-probe.c: Use C++ exception handling.
7895 * disasm-selftests.c: Use C++ exception handling.
7896 * darwin-nat.c: Use C++ exception handling.
7897 * cp-valprint.c: Use C++ exception handling.
7898 * cp-support.c: Use C++ exception handling.
7899 * cp-abi.c: Use C++ exception handling.
7900 * corelow.c: Use C++ exception handling.
7901 * completer.c: Use C++ exception handling.
7902 * compile/compile-object-run.c: Use C++ exception handling.
7903 * compile/compile-object-load.c: Use C++ exception handling.
7904 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7905 * compile/compile-c-symbols.c: Use C++ exception handling.
7906 * common/selftest.c: Use C++ exception handling.
7907 * common/new-op.c: Use C++ exception handling.
7908 * cli/cli-script.c: Use C++ exception handling.
7909 * cli/cli-interp.c: Use C++ exception handling.
7910 * cli/cli-cmds.c: Use C++ exception handling.
7911 * c-varobj.c: Use C++ exception handling.
7912 * btrace.c: Use C++ exception handling.
7913 * breakpoint.c: Use C++ exception handling.
7914 * break-catch-throw.c: Use C++ exception handling.
7915 * arch-utils.c: Use C++ exception handling.
7916 * amd64-tdep.c: Use C++ exception handling.
7917 * ada-valprint.c: Use C++ exception handling.
7918 * ada-typeprint.c: Use C++ exception handling.
7919 * ada-lang.c: Use C++ exception handling.
7920 * aarch64-tdep.c: Use C++ exception handling.
7921
7922 2019-04-08 Tom Tromey <tom@tromey.com>
7923
7924 * xml-support.c (gdb_xml_parser::parse): Update.
7925 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7926 * value.c (show_convenience): Update.
7927 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7928 (test_parse_flags_qcs): Update.
7929 * thread.c (thr_try_catch_cmd): Update.
7930 * target.c (target_translate_tls_address): Update.
7931 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7932 (info_frame_command_core, frame_apply_command_count): Update.
7933 * rust-exp.y (rust_lex_exception_test): Update.
7934 * riscv-tdep.c (riscv_print_one_register_info): Update.
7935 * remote.c (remote_target::enable_btrace): Update.
7936 * record-btrace.c (record_btrace_enable_warn): Update.
7937 * python/py-utils.c (gdbpy_convert_exception): Update.
7938 * printcmd.c (do_one_display, print_variable_and_value): Update.
7939 * mi/mi-main.c (mi_print_exception): Update.
7940 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7941 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7942 * linux-nat.c (linux_nat_target::attach): Update.
7943 * linux-fork.c (class scoped_switch_fork_info): Update.
7944 * infrun.c (displaced_step_prepare): Update.
7945 * infcall.c (call_function_by_hand_dummy): Update.
7946 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7947 * gnu-v3-abi.c (print_one_vtable): Update.
7948 * frame.c (get_prev_frame_always): Update.
7949 * f-valprint.c (info_common_command_for_block): Update.
7950 * exec.c (try_open_exec_file): Update.
7951 * exceptions.c (print_exception, exception_print)
7952 (exception_fprintf, exception_print_same): Update.
7953 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7954 * dwarf-index-cache.c (index_cache::store)
7955 (index_cache::lookup_gdb_index): Update.
7956 * darwin-nat.c (maybe_cache_shell): Update.
7957 * cp-valprint.c (cp_print_value_fields): Update.
7958 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7959 (gcc_cplus_symbol_address): Update.
7960 * compile/compile-c-symbols.c (gcc_convert_symbol)
7961 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7962 * common/selftest.c: Update.
7963 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7964 a std::string.
7965 (exception_try_scope_entry, exception_try_scope_exit): Don't
7966 declare.
7967 (struct exception_try_scope): Remove.
7968 (TRY): Don't use exception_try_scope.
7969 (struct gdb_exception): Add constructor, operator=.
7970 <what>: New method.
7971 (struct gdb_exception_RETURN_MASK_ALL)
7972 (struct gdb_exception_RETURN_MASK_ERROR)
7973 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7974 (struct gdb_quit_bad_alloc): Update.
7975 * common/common-exceptions.c (exception_none): Change
7976 initializer.
7977 (struct catcher) <state, exception>: Initialize inline.
7978 <prev>: Remove member.
7979 (current_catcher): Remove.
7980 (catchers): New global.
7981 (exceptions_state_mc_init): Simplify.
7982 (catcher_pop): Remove.
7983 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7984 (try_scope_depth, exception_try_scope_entry)
7985 (exception_try_scope_exit): Remove.
7986 (throw_exception_sjlj): Update.
7987 (exception_messages, exception_messages_size): Remove.
7988 (throw_it): Simplify.
7989 (gdb_exception_sliced_copy): Remove.
7990 (throw_exception_cxx): Update.
7991 * cli/cli-script.c (script_from_file): Update.
7992 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7993 Update.
7994 * ada-valprint.c (ada_val_print): Update.
7995 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7996 (create_excep_cond_exprs): Update.
7997
7998 2019-04-08 Tom Tromey <tom@tromey.com>
7999
8000 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8001 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8002 (TRY, CATCH, END_CATCH): Remove some definitions.
8003 * common/common-exceptions.c: Don't use GDB_XCPT.
8004 (catcher_list_size): Remove.
8005 (throw_exception, throw_it): Simplify.
8006
8007 2019-04-05 Tom Tromey <tom@tromey.com>
8008
8009 Revert the header-sorting patch.
8010 * ft32-tdep.c: Revert.
8011 * frv-tdep.c: Revert.
8012 * frv-linux-tdep.c: Revert.
8013 * frame.c: Revert.
8014 * frame-unwind.c: Revert.
8015 * frame-base.c: Revert.
8016 * fork-child.c: Revert.
8017 * findvar.c: Revert.
8018 * findcmd.c: Revert.
8019 * filesystem.c: Revert.
8020 * filename-seen-cache.h: Revert.
8021 * filename-seen-cache.c: Revert.
8022 * fbsd-tdep.c: Revert.
8023 * fbsd-nat.h: Revert.
8024 * fbsd-nat.c: Revert.
8025 * f-valprint.c: Revert.
8026 * f-typeprint.c: Revert.
8027 * f-lang.c: Revert.
8028 * extension.h: Revert.
8029 * extension.c: Revert.
8030 * extension-priv.h: Revert.
8031 * expprint.c: Revert.
8032 * exec.h: Revert.
8033 * exec.c: Revert.
8034 * exceptions.c: Revert.
8035 * event-top.c: Revert.
8036 * event-loop.c: Revert.
8037 * eval.c: Revert.
8038 * elfread.c: Revert.
8039 * dwarf2read.h: Revert.
8040 * dwarf2read.c: Revert.
8041 * dwarf2loc.c: Revert.
8042 * dwarf2expr.h: Revert.
8043 * dwarf2expr.c: Revert.
8044 * dwarf2-frame.c: Revert.
8045 * dwarf2-frame-tailcall.c: Revert.
8046 * dwarf-index-write.h: Revert.
8047 * dwarf-index-write.c: Revert.
8048 * dwarf-index-common.c: Revert.
8049 * dwarf-index-cache.h: Revert.
8050 * dwarf-index-cache.c: Revert.
8051 * dummy-frame.c: Revert.
8052 * dtrace-probe.c: Revert.
8053 * disasm.h: Revert.
8054 * disasm.c: Revert.
8055 * disasm-selftests.c: Revert.
8056 * dictionary.c: Revert.
8057 * dicos-tdep.c: Revert.
8058 * demangle.c: Revert.
8059 * dcache.h: Revert.
8060 * dcache.c: Revert.
8061 * darwin-nat.h: Revert.
8062 * darwin-nat.c: Revert.
8063 * darwin-nat-info.c: Revert.
8064 * d-valprint.c: Revert.
8065 * d-namespace.c: Revert.
8066 * d-lang.c: Revert.
8067 * ctf.c: Revert.
8068 * csky-tdep.c: Revert.
8069 * csky-linux-tdep.c: Revert.
8070 * cris-tdep.c: Revert.
8071 * cris-linux-tdep.c: Revert.
8072 * cp-valprint.c: Revert.
8073 * cp-support.c: Revert.
8074 * cp-namespace.c: Revert.
8075 * cp-abi.c: Revert.
8076 * corelow.c: Revert.
8077 * corefile.c: Revert.
8078 * continuations.c: Revert.
8079 * completer.h: Revert.
8080 * completer.c: Revert.
8081 * complaints.c: Revert.
8082 * coffread.c: Revert.
8083 * coff-pe-read.c: Revert.
8084 * cli-out.h: Revert.
8085 * cli-out.c: Revert.
8086 * charset.c: Revert.
8087 * c-varobj.c: Revert.
8088 * c-valprint.c: Revert.
8089 * c-typeprint.c: Revert.
8090 * c-lang.c: Revert.
8091 * buildsym.c: Revert.
8092 * buildsym-legacy.c: Revert.
8093 * build-id.h: Revert.
8094 * build-id.c: Revert.
8095 * btrace.c: Revert.
8096 * bsd-uthread.c: Revert.
8097 * breakpoint.h: Revert.
8098 * breakpoint.c: Revert.
8099 * break-catch-throw.c: Revert.
8100 * break-catch-syscall.c: Revert.
8101 * break-catch-sig.c: Revert.
8102 * blockframe.c: Revert.
8103 * block.c: Revert.
8104 * bfin-tdep.c: Revert.
8105 * bfin-linux-tdep.c: Revert.
8106 * bfd-target.c: Revert.
8107 * bcache.c: Revert.
8108 * ax-general.c: Revert.
8109 * ax-gdb.h: Revert.
8110 * ax-gdb.c: Revert.
8111 * avr-tdep.c: Revert.
8112 * auxv.c: Revert.
8113 * auto-load.c: Revert.
8114 * arm-wince-tdep.c: Revert.
8115 * arm-tdep.c: Revert.
8116 * arm-symbian-tdep.c: Revert.
8117 * arm-pikeos-tdep.c: Revert.
8118 * arm-obsd-tdep.c: Revert.
8119 * arm-nbsd-tdep.c: Revert.
8120 * arm-nbsd-nat.c: Revert.
8121 * arm-linux-tdep.c: Revert.
8122 * arm-linux-nat.c: Revert.
8123 * arm-fbsd-tdep.c: Revert.
8124 * arm-fbsd-nat.c: Revert.
8125 * arm-bsd-tdep.c: Revert.
8126 * arch-utils.c: Revert.
8127 * arc-tdep.c: Revert.
8128 * arc-newlib-tdep.c: Revert.
8129 * annotate.h: Revert.
8130 * annotate.c: Revert.
8131 * amd64-windows-tdep.c: Revert.
8132 * amd64-windows-nat.c: Revert.
8133 * amd64-tdep.c: Revert.
8134 * amd64-sol2-tdep.c: Revert.
8135 * amd64-obsd-tdep.c: Revert.
8136 * amd64-obsd-nat.c: Revert.
8137 * amd64-nbsd-tdep.c: Revert.
8138 * amd64-nbsd-nat.c: Revert.
8139 * amd64-nat.c: Revert.
8140 * amd64-linux-tdep.c: Revert.
8141 * amd64-linux-nat.c: Revert.
8142 * amd64-fbsd-tdep.c: Revert.
8143 * amd64-fbsd-nat.c: Revert.
8144 * amd64-dicos-tdep.c: Revert.
8145 * amd64-darwin-tdep.c: Revert.
8146 * amd64-bsd-nat.c: Revert.
8147 * alpha-tdep.c: Revert.
8148 * alpha-obsd-tdep.c: Revert.
8149 * alpha-nbsd-tdep.c: Revert.
8150 * alpha-mdebug-tdep.c: Revert.
8151 * alpha-linux-tdep.c: Revert.
8152 * alpha-linux-nat.c: Revert.
8153 * alpha-bsd-tdep.c: Revert.
8154 * alpha-bsd-nat.c: Revert.
8155 * aix-thread.c: Revert.
8156 * agent.c: Revert.
8157 * addrmap.c: Revert.
8158 * ada-varobj.c: Revert.
8159 * ada-valprint.c: Revert.
8160 * ada-typeprint.c: Revert.
8161 * ada-tasks.c: Revert.
8162 * ada-lang.c: Revert.
8163 * aarch64-tdep.c: Revert.
8164 * aarch64-ravenscar-thread.c: Revert.
8165 * aarch64-newlib-tdep.c: Revert.
8166 * aarch64-linux-tdep.c: Revert.
8167 * aarch64-linux-nat.c: Revert.
8168 * aarch64-fbsd-tdep.c: Revert.
8169 * aarch64-fbsd-nat.c: Revert.
8170 * aarch32-linux-nat.c: Revert.
8171
8172 2019-04-05 Tom Tromey <tom@tromey.com>
8173
8174 * ft32-tdep.c: Sort headers.
8175 * frv-tdep.c: Sort headers.
8176 * frv-linux-tdep.c: Sort headers.
8177 * frame.c: Sort headers.
8178 * frame-unwind.c: Sort headers.
8179 * frame-base.c: Sort headers.
8180 * fork-child.c: Sort headers.
8181 * findvar.c: Sort headers.
8182 * findcmd.c: Sort headers.
8183 * filesystem.c: Sort headers.
8184 * filename-seen-cache.h: Sort headers.
8185 * filename-seen-cache.c: Sort headers.
8186 * fbsd-tdep.c: Sort headers.
8187 * fbsd-nat.h: Sort headers.
8188 * fbsd-nat.c: Sort headers.
8189 * f-valprint.c: Sort headers.
8190 * f-typeprint.c: Sort headers.
8191 * f-lang.c: Sort headers.
8192 * extension.h: Sort headers.
8193 * extension.c: Sort headers.
8194 * extension-priv.h: Sort headers.
8195 * expprint.c: Sort headers.
8196 * exec.h: Sort headers.
8197 * exec.c: Sort headers.
8198 * exceptions.c: Sort headers.
8199 * event-top.c: Sort headers.
8200 * event-loop.c: Sort headers.
8201 * eval.c: Sort headers.
8202 * elfread.c: Sort headers.
8203 * dwarf2read.h: Sort headers.
8204 * dwarf2read.c: Sort headers.
8205 * dwarf2loc.c: Sort headers.
8206 * dwarf2expr.h: Sort headers.
8207 * dwarf2expr.c: Sort headers.
8208 * dwarf2-frame.c: Sort headers.
8209 * dwarf2-frame-tailcall.c: Sort headers.
8210 * dwarf-index-write.h: Sort headers.
8211 * dwarf-index-write.c: Sort headers.
8212 * dwarf-index-common.c: Sort headers.
8213 * dwarf-index-cache.h: Sort headers.
8214 * dwarf-index-cache.c: Sort headers.
8215 * dummy-frame.c: Sort headers.
8216 * dtrace-probe.c: Sort headers.
8217 * disasm.h: Sort headers.
8218 * disasm.c: Sort headers.
8219 * disasm-selftests.c: Sort headers.
8220 * dictionary.c: Sort headers.
8221 * dicos-tdep.c: Sort headers.
8222 * demangle.c: Sort headers.
8223 * dcache.h: Sort headers.
8224 * dcache.c: Sort headers.
8225 * darwin-nat.h: Sort headers.
8226 * darwin-nat.c: Sort headers.
8227 * darwin-nat-info.c: Sort headers.
8228 * d-valprint.c: Sort headers.
8229 * d-namespace.c: Sort headers.
8230 * d-lang.c: Sort headers.
8231 * ctf.c: Sort headers.
8232 * csky-tdep.c: Sort headers.
8233 * csky-linux-tdep.c: Sort headers.
8234 * cris-tdep.c: Sort headers.
8235 * cris-linux-tdep.c: Sort headers.
8236 * cp-valprint.c: Sort headers.
8237 * cp-support.c: Sort headers.
8238 * cp-namespace.c: Sort headers.
8239 * cp-abi.c: Sort headers.
8240 * corelow.c: Sort headers.
8241 * corefile.c: Sort headers.
8242 * continuations.c: Sort headers.
8243 * completer.h: Sort headers.
8244 * completer.c: Sort headers.
8245 * complaints.c: Sort headers.
8246 * coffread.c: Sort headers.
8247 * coff-pe-read.c: Sort headers.
8248 * cli-out.h: Sort headers.
8249 * cli-out.c: Sort headers.
8250 * charset.c: Sort headers.
8251 * c-varobj.c: Sort headers.
8252 * c-valprint.c: Sort headers.
8253 * c-typeprint.c: Sort headers.
8254 * c-lang.c: Sort headers.
8255 * buildsym.c: Sort headers.
8256 * buildsym-legacy.c: Sort headers.
8257 * build-id.h: Sort headers.
8258 * build-id.c: Sort headers.
8259 * btrace.c: Sort headers.
8260 * bsd-uthread.c: Sort headers.
8261 * breakpoint.h: Sort headers.
8262 * breakpoint.c: Sort headers.
8263 * break-catch-throw.c: Sort headers.
8264 * break-catch-syscall.c: Sort headers.
8265 * break-catch-sig.c: Sort headers.
8266 * blockframe.c: Sort headers.
8267 * block.c: Sort headers.
8268 * bfin-tdep.c: Sort headers.
8269 * bfin-linux-tdep.c: Sort headers.
8270 * bfd-target.c: Sort headers.
8271 * bcache.c: Sort headers.
8272 * ax-general.c: Sort headers.
8273 * ax-gdb.h: Sort headers.
8274 * ax-gdb.c: Sort headers.
8275 * avr-tdep.c: Sort headers.
8276 * auxv.c: Sort headers.
8277 * auto-load.c: Sort headers.
8278 * arm-wince-tdep.c: Sort headers.
8279 * arm-tdep.c: Sort headers.
8280 * arm-symbian-tdep.c: Sort headers.
8281 * arm-pikeos-tdep.c: Sort headers.
8282 * arm-obsd-tdep.c: Sort headers.
8283 * arm-nbsd-tdep.c: Sort headers.
8284 * arm-nbsd-nat.c: Sort headers.
8285 * arm-linux-tdep.c: Sort headers.
8286 * arm-linux-nat.c: Sort headers.
8287 * arm-fbsd-tdep.c: Sort headers.
8288 * arm-fbsd-nat.c: Sort headers.
8289 * arm-bsd-tdep.c: Sort headers.
8290 * arch-utils.c: Sort headers.
8291 * arc-tdep.c: Sort headers.
8292 * arc-newlib-tdep.c: Sort headers.
8293 * annotate.h: Sort headers.
8294 * annotate.c: Sort headers.
8295 * amd64-windows-tdep.c: Sort headers.
8296 * amd64-windows-nat.c: Sort headers.
8297 * amd64-tdep.c: Sort headers.
8298 * amd64-sol2-tdep.c: Sort headers.
8299 * amd64-obsd-tdep.c: Sort headers.
8300 * amd64-obsd-nat.c: Sort headers.
8301 * amd64-nbsd-tdep.c: Sort headers.
8302 * amd64-nbsd-nat.c: Sort headers.
8303 * amd64-nat.c: Sort headers.
8304 * amd64-linux-tdep.c: Sort headers.
8305 * amd64-linux-nat.c: Sort headers.
8306 * amd64-fbsd-tdep.c: Sort headers.
8307 * amd64-fbsd-nat.c: Sort headers.
8308 * amd64-dicos-tdep.c: Sort headers.
8309 * amd64-darwin-tdep.c: Sort headers.
8310 * amd64-bsd-nat.c: Sort headers.
8311 * alpha-tdep.c: Sort headers.
8312 * alpha-obsd-tdep.c: Sort headers.
8313 * alpha-nbsd-tdep.c: Sort headers.
8314 * alpha-mdebug-tdep.c: Sort headers.
8315 * alpha-linux-tdep.c: Sort headers.
8316 * alpha-linux-nat.c: Sort headers.
8317 * alpha-bsd-tdep.c: Sort headers.
8318 * alpha-bsd-nat.c: Sort headers.
8319 * aix-thread.c: Sort headers.
8320 * agent.c: Sort headers.
8321 * addrmap.c: Sort headers.
8322 * ada-varobj.c: Sort headers.
8323 * ada-valprint.c: Sort headers.
8324 * ada-typeprint.c: Sort headers.
8325 * ada-tasks.c: Sort headers.
8326 * ada-lang.c: Sort headers.
8327 * aarch64-tdep.c: Sort headers.
8328 * aarch64-ravenscar-thread.c: Sort headers.
8329 * aarch64-newlib-tdep.c: Sort headers.
8330 * aarch64-linux-tdep.c: Sort headers.
8331 * aarch64-linux-nat.c: Sort headers.
8332 * aarch64-fbsd-tdep.c: Sort headers.
8333 * aarch64-fbsd-nat.c: Sort headers.
8334 * aarch32-linux-nat.c: Sort headers.
8335
8336 2019-04-04 Tom Tromey <tom@tromey.com>
8337
8338 * varobj.c (varobj_create): Update.
8339 * rust-exp.y (struct rust_parser) <update_innermost_block,
8340 lookup_symbol>: New methods.
8341 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8342 Rename.
8343 (rust_parser::rust_lookup_type)
8344 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8345 * printcmd.c (display_command, do_one_display): Update.
8346 * parser-defs.h (struct parser_state) <parser_state>: Add
8347 "tracker" parameter.
8348 (block_tracker): New member.
8349 (class innermost_block_tracker) <innermost_block_tracker>: Add
8350 "types" parameter.
8351 <reset>: Remove method.
8352 (innermost_block): Don't declare.
8353 (null_post_parser): Update.
8354 * parse.c (innermost_block): Remove global.
8355 (write_dollar_variable): Update.
8356 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8357 Remove "tracker_types" parameter.
8358 (parse_expression): Add "tracker" parameter.
8359 (parse_expression_for_completion): Update.
8360 (null_post_parser): Add "tracker" parameter.
8361 * p-exp.y: Update rules.
8362 * m2-exp.y: Update rules.
8363 * language.h (struct language_defn) <la_post_parser>: Add
8364 "tracker" parameter.
8365 * go-exp.y: Update rules.
8366 * f-exp.y: Update rules.
8367 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8368 parameter.
8369 * d-exp.y: Update rules.
8370 * c-exp.y: Update rules.
8371 * breakpoint.c (set_breakpoint_condition): Create an
8372 innermost_block_tracker.
8373 (watch_command_1): Likewise.
8374 * ada-lang.c (resolve): Add "tracker" parameter.
8375 (resolve_subexp): Likewise.
8376 * ada-exp.y (write_var_from_sym): Update.
8377
8378 2019-04-04 Tom Tromey <tom@tromey.com>
8379
8380 * type-stack.h: New file.
8381 * type-stack.c: New file.
8382 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8383 type-stack.h.
8384 (insert_into_type_stack, insert_type, push_type, push_type_int)
8385 (insert_type_address_space, pop_type, pop_type_int)
8386 (pop_typelist, pop_type_stack, append_type_stack)
8387 (push_type_stack, get_type_stack, push_typelist)
8388 (follow_type_instance_flags, follow_types): Don't declare.
8389 * parse.c (type_stack): Remove global.
8390 (parse_exp_in_context): Update.
8391 (insert_into_type_stack, insert_type, push_type, push_type_int)
8392 (insert_type_address_space, pop_type, pop_type_int)
8393 (pop_typelist, pop_type_stack, append_type_stack)
8394 (push_type_stack, get_type_stack, push_typelist)
8395 (follow_type_instance_flags, follow_types): Remove (moved to
8396 type-stack.c).
8397 * f-exp.y (type_stack): New global.
8398 Update rules.
8399 (push_kind_type, f_parse): Update.
8400 * d-exp.y (type_stack): New global.
8401 Update rules.
8402 (d_parse): Update.
8403 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8404 Update rules.
8405 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8406 (HFILES_NO_SRCDIR): Add type-stack.h.
8407
8408 2019-04-04 Tom Tromey <tom@tromey.com>
8409
8410 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8411 (rust_parser::convert_ast_to_expression, rust_parse)
8412 (rust_lex_test_completion, rust_lex_tests): Update.
8413 * parser-defs.h (struct expr_completion_state): New.
8414 (struct parser_state) <parser_state>: Add completion parameter.
8415 <mark_struct_expression, mark_completion_tag>: New methods.
8416 <parse_completion, m_completion_state>: New members.
8417 (prefixify_expression, null_post_parser): Update.
8418 (mark_struct_expression, mark_completion_tag): Don't declare.
8419 * parse.c (parse_completion, expout_last_struct)
8420 (expout_tag_completion_type, expout_completion_name): Remove
8421 globals.
8422 (parser_state::mark_struct_expression)
8423 (parser_state::mark_completion_tag): Now methods.
8424 (prefixify_expression): Add last_struct parameter.
8425 (prefixify_subexp): Likewise.
8426 (parse_exp_1): Update.
8427 (parse_exp_in_context): Add cstate parameter. Update.
8428 (parse_expression_for_completion): Create an
8429 expr_completion_state.
8430 (null_post_parser): Add "completion" parameter.
8431 * p-exp.y: Update rules.
8432 (yylex): Update.
8433 * language.h (struct language_defn) <la_post_parser>: Add
8434 "completing" parameter.
8435 * go-exp.y: Update rules.
8436 (lex_one_token): Update.
8437 * expression.h (parse_completion): Don't declare.
8438 * d-exp.y: Update rules.
8439 (lex_one_token): Update rules.
8440 * c-exp.y: Update rules.
8441 (lex_one_token): Update.
8442 * ada-lang.c (resolve): Add "parse_completion" parameter.
8443 (resolve_subexp): Likewise.
8444 (ada_resolve_function): Likewise.
8445
8446 2019-04-04 Tom Tromey <tom@tromey.com>
8447
8448 * parser-defs.h (struct parser_state) <start_arglist,
8449 end_arglist>: New methods.
8450 <arglist_len, m_funcall_chain>: New members.
8451 (arglist_len, start_arglist, end_arglist): Don't declare.
8452 * parse.c (arglist_len, funcall_chain): Remove global.
8453 (start_arglist, end_arglist): Remove functions.
8454 (parse_exp_in_context): Update.
8455 * p-exp.y: Update rules.
8456 * m2-exp.y: Update rules.
8457 * go-exp.y: Update rules.
8458 * f-exp.y: Update rules.
8459 * d-exp.y: Update rules.
8460 * c-exp.y: Update rules.
8461
8462 2019-04-04 Tom Tromey <tom@tromey.com>
8463
8464 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8465 lex_operator, push_back>: New methods.
8466 Update all rules.
8467 (rust_parser::lex_hex, lex_escape): Rename and update.
8468 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8469 (rust_parser::lex_operator): Rename and update.
8470 (rust_parser::lex_number, rustyylex, rustyyerror)
8471 (rust_lex_test_init, rust_lex_test_sequence)
8472 (rust_lex_test_push_back, rust_lex_tests): Update.
8473 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8474 parameter.
8475 <lexptr, prev_lexptr>: New members.
8476 (lexptr, prev_lexptr): Don't declare.
8477 * parse.c (lexptr, prev_lexptr): Remove globals.
8478 (parse_exp_in_context): Update.
8479 * p-exp.y (yylex, yyerror): Update.
8480 * m2-exp.y (parse_number, yylex, yyerror): Update.
8481 * go-exp.y (lex_one_token, yyerror): Update.
8482 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8483 * d-exp.y (lex_one_token, yyerror): Update.
8484 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8485 (lex_one_token, yyerror): Update.
8486 * ada-lex.l (YY_INPUT): Update.
8487 (rewind_to_char): Update.
8488 * ada-exp.y (yyerror): Update.
8489
8490 2019-04-04 Tom Tromey <tom@tromey.com>
8491
8492 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8493 * parser-defs.h (struct parser_state) <parser_state>: Add new
8494 parameter.
8495 <comma_terminates>: New member.
8496 (comma_terminates): Don't declare global.
8497 * parse.c (comma_terminates): Remove global.
8498 (parse_exp_in_context): Update.
8499 * p-exp.y (yylex): Update.
8500 * m2-exp.y (yylex): Update.
8501 * go-exp.y (lex_one_token): Update.
8502 * f-exp.y (yylex): Update.
8503 * d-exp.y (lex_one_token): Update.
8504 * c-exp.y (lex_one_token): Update.
8505 * ada-lex.l: Update.
8506
8507 2019-04-04 Tom Tromey <tom@tromey.com>
8508
8509 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8510 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8511 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8512 * parser-defs.h (paren_depth): Don't declare.
8513 * parse.c (paren_depth): Remove global.
8514 (parse_exp_in_context): Update.
8515 * p-exp.y (paren_depth): New global.
8516 (pascal_parse): Initialize it.
8517 * m2-exp.y (paren_depth): New global.
8518 (m2_parse): Initialize it.
8519 * go-exp.y (paren_depth): New global.
8520 (go_parse): Initialize it.
8521 * f-exp.y (paren_depth): New global.
8522 (f_parse): Initialize it.
8523 * d-exp.y (paren_depth): New global.
8524 (d_parse): Initialize it.
8525 * c-exp.y (paren_depth): New global.
8526 (c_parse): Initialize it.
8527 * ada-lex.l (paren_depth): New global.
8528 (lexer_init): Initialize it.
8529
8530 2019-04-04 Tom Tromey <tom@tromey.com>
8531
8532 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8533 (rust_parser::convert_ast_to_type)
8534 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8535 * parser-defs.h (struct parser_state) <parser_state>: Add
8536 parameters. Initialize new members.
8537 <expression_context_block, expression_context_pc>: New members.
8538 * parse.c (expression_context_block, expression_context_pc):
8539 Remove globals.
8540 (parse_exp_in_context): Update.
8541 * p-exp.y: Update all rules.
8542 (yylex): Update.
8543 * m2-exp.y: Update all rules.
8544 (yylex): Update.
8545 * go-exp.y (yylex): Update.
8546 * f-exp.y (yylex): Update.
8547 * d-exp.y: Update all rules.
8548 (yylex): Update.
8549 * c-exp.y: Update all rules.
8550 (lex_one_token, classify_name, yylex, c_parse): Update.
8551 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8552
8553 2019-04-04 Tom Tromey <tom@tromey.com>
8554
8555 * gdbarch.h, gdbarch.c: Rebuild.
8556 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8557 * stap-probe.h:
8558 (struct stap_parse_info): Replace "parser_state" with
8559 "expr_builder".
8560 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8561 (parser_state): New class.
8562 * parse.c (expr_builder): Rename.
8563 (expr_builder::release): Rename.
8564 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8565 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8566 (write_exp_elt_longcst, write_exp_elt_floatcst)
8567 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8568 (write_exp_string_vector, write_exp_bitstring)
8569 (write_exp_msymbol, mark_struct_expression)
8570 (write_dollar_variable)
8571 (insert_type_address_space, increase_expout_size): Replace
8572 "parser_state" with "expr_builder".
8573 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8574 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8575 "parser_state" with "expr_builder".
8576
8577 2019-04-04 Tom Tromey <tom@tromey.com>
8578
8579 * rust-exp.y: Replace "parse_language" with method call.
8580 * p-exp.y:
8581 (yylex): Replace "parse_language" with method call.
8582 * m2-exp.y:
8583 (yylex): Replace "parse_language" with method call.
8584 * go-exp.y (classify_name): Replace "parse_language" with method
8585 call.
8586 * f-exp.y (yylex): Replace "parse_language" with method call.
8587 * d-exp.y (lex_one_token): Replace "parse_language" with method
8588 call.
8589 * c-exp.y:
8590 (lex_one_token, classify_name, yylex): Replace "parse_language"
8591 with method call.
8592 * ada-exp.y (find_primitive_type, type_char)
8593 (type_system_address): Replace "parse_language" with method call.
8594
8595 2019-04-04 Tom Tromey <tom@tromey.com>
8596
8597 * rust-exp.y: Replace "parse_gdbarch" with method call.
8598 * parse.c (write_dollar_variable, insert_type_address_space):
8599 Replace "parse_gdbarch" with method call.
8600 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8601 call.
8602 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8603 call.
8604 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8605 "parse_gdbarch" with method call.
8606 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8607 with method call.
8608 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8609 "parse_gdbarch" with method call.
8610 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8611 "parse_gdbarch" with method call.
8612 * c-exp.y (parse_type, parse_number, classify_name): Replace
8613 "parse_gdbarch" with method call.
8614 * ada-lex.l: Replace "parse_gdbarch" with method call.
8615 * ada-exp.y (parse_type, find_primitive_type, type_char)
8616 (type_system_address): Replace "parse_gdbarch" with method call.
8617
8618 2019-04-04 Tom Tromey <tom@tromey.com>
8619
8620 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8621 * stap-probe.c (stap_parse_argument): Update.
8622 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8623 initial_size parameter.
8624 * rust-exp.y (rust_lex_tests): Update.
8625 * parse.c (parser_state): Update.
8626 (parse_exp_in_context): Update.
8627 * parser-defs.h (struct parser_state) <parser_state>: Remove
8628 "initial_size" parameter.
8629
8630 2019-04-04 Tom Tromey <tom@tromey.com>
8631
8632 * parser-defs.h (increase_expout_size): Don't declare.
8633 * parse.c (increase_expout_size): Now static.
8634
8635 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8636
8637 * gnu-nat.c (gnu_nat_target::wait): Fix
8638 target_waitstatus_to_string call.
8639
8640 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8641
8642 * eval.c (evaluate_subexp_standard): Handle internal functions
8643 during Fortran function call handling.
8644
8645 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8646
8647 * NEWS: Mention new internal functions.
8648 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8649 (read_base_type): Use dwarf2_init_complex_target_type.
8650 * value.c (creal_internal_fn): New function.
8651 (cimag_internal_fn): New function.
8652 (_initialize_values): Register new internal functions.
8653
8654 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8655
8656 * infrun.c (stop_all_threads): If debug_infrun, always
8657 trace the wait status after wait_one, using
8658 target_waitstatus_to_string and target_pid_to_str.
8659 (handle_inferior_event): Replace various trace of
8660 wait status kind by a single trace.
8661 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8662 wait status kind image by target_waitstatus_to_string.
8663 * target/waitstatus.c (target_waitstatus_to_string): Fix
8664 obsolete comment.
8665
8666 2019-04-01 Tom Tromey <tromey@adacore.com>
8667
8668 PR symtab/23331:
8669 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8670
8671 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8672 Pedro Alves <palves@redhat.com>
8673
8674 * top.c (quit_force): Call 'finalize_values'.
8675 * value.c (finalize_values): New function.
8676 * value.h (finalize_values): Declare.
8677
8678 2019-03-30 Eli Zaretskii <eliz@gnu.org>
8679
8680 * NEWS: Announce $_gdb_major and $_gdb_minor.
8681
8682 * top.c (init_gdb_version_vars): New function.
8683 (gdb_init): Call init_gdb_version_vars.
8684
8685 2019-03-29 Tom Tromey <tromey@adacore.com>
8686
8687 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8688 help text. Remove dead code.
8689
8690 2019-03-29 Keith Seitz <keiths@redhat.com>
8691
8692 From Siddhesh Poyarekar:
8693 * f-lang.h (f77_get_upperbound): Return LONGEST.
8694 (f77_get_lowerbound): Likewise.
8695 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8696 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8697 print them.
8698 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8699 plongest to format print it.
8700 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8701 (f77_get_upperbound): Likewise.
8702 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8703 LOWER_BOUND to LONGEST.
8704 (f77_create_arrayprint_offset_tbl): Likewise.
8705
8706 2019-03-29 Keith Seitz <keiths@redhat.com>
8707
8708 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8709 %s/pulongest for TYPE_LENGTH instead of %d in format
8710 strings.
8711 * ada-typerint.c (ada_print_type): Likewise.
8712 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8713 * compile/compile-c-support.c (generate_register_struct): Likewise.
8714 * gdbtypes.c (recursive_dump_type): Likewise.
8715 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8716 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8717 instead of %d in format strings.
8718 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8719 to std::min to ULONGEST.
8720 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8721 instead of %d in format strings.
8722 * tracepoint.c (info_scope_command): Likewise.
8723 * typeprint.c (print_offset_data::update)
8724 (print_offset_data::finish): Likewise.
8725 * xtensa-tdep.c (xtensa_store_return_value)
8726 (xtensa_push_dummy_call): Likewise.
8727
8728 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8729
8730 * windows-nat.c (display_selector): Fixed format specifications
8731 for 64-bit Cygwin.
8732
8733 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8734
8735 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8736
8737 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8738
8739 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8740 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8741 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8742 (nios2_linux_init_abi): Install it.
8743
8744 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8745
8746 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8747
8748 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8749
8750 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8751
8752 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8753 Tom Tromey <tromey@adacore.com>
8754
8755 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8756
8757 2019-03-26 Joel Brobecker <brobecker@adacore.com>
8758
8759 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8760 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8761 method to compute the bounds of range types. Also print "[evaluated]"
8762 if the bounds' values come from a dynamic evaluation.
8763
8764 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8765
8766 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8767 whitespace when pretty printing is on.
8768
8769 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8770
8771 * ppc-linux-nat.c: Add include.
8772
8773 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8774
8775 * NEWS: Mention AArch64 Pointer Authentication.
8776
8777 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8778
8779 * arm-linux-nat.c: Add include.
8780
8781 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8782
8783 * source-cache.c (source_cache::get_source_lines): Re-read
8784 fullname after calling open_source_file.
8785
8786 2019-03-25 John Baldwin <jhb@FreeBSD.org>
8787
8788 * NEWS: Mention TLS support for FreeBSD.
8789
8790 2019-03-25 Tom Tromey <tromey@adacore.com>
8791
8792 * minsyms.c (BUNCH_SIZE): Update comment.
8793 (~minimal_symbol_reader): Remove old comment.
8794 (compact_minimal_symbols): Update comment.
8795 (minimal_symbol_reader::install): Remove old comment. Update
8796 other comments.
8797
8798 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8799
8800 * s390-linux-nat.c: Add include.
8801
8802 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8803
8804 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8805 Call linux_get_hwcap.
8806 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8807 Likewise.
8808 (aarch64_linux_get_hwcap): Remove function.
8809 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8810 declaration.
8811 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8812 linux_get_hwcap.
8813 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8814 * linux-tdep.c (linux_get_hwcap): Add function.
8815 (linux_get_hwcap2): Likewise.
8816 * linux-tdep.h (linux_get_hwcap): Add declaration.
8817 (linux_get_hwcap2): Likewise.
8818 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8819 (ppc_linux_get_hwcap2): Likewise.
8820 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8821 linux_get_hwcap.
8822 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8823 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8824 (ppc_linux_nat_target::read_description): Likewise.
8825 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8826 * s390-linux-nat.c: Likewise.
8827 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8828
8829 2019-03-24 Tom Tromey <tom@tromey.com>
8830
8831 * ada-lang.c (standard_lookup): Simplify initialization.
8832 (ada_lookup_symbol_nonlocal): Simplify return.
8833 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8834 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8835 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8836 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8837 initialization.
8838 * solib.c (solib_global_lookup): Simplify.
8839 * symtab.c (null_block_symbol): Remove.
8840 (symbol_cache_lookup): Simplify returns.
8841 (lookup_language_this): Simplify returns.
8842 (lookup_symbol_aux): Simplify return.
8843 (lookup_local_symbol): Simplify returns.
8844 (lookup_global_symbol_from_objfile): Simplify return.
8845 (lookup_symbol_in_objfile_symtabs)
8846 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8847 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8848 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8849 * cp-namespace.c (cp_lookup_bare_symbol)
8850 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8851 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8852 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8853 (cp_lookup_symbol_via_imports): Simplify initialization.
8854 (find_symbol_in_baseclass): Likewise.
8855 * symtab.h (null_block_symbol): Remove.
8856 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8857 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8858 (d_lookup_symbol_module): Likewise.
8859 (find_symbol_in_baseclass): Simplify initialization.
8860
8861 2019-03-24 Tom Tromey <tom@tromey.com>
8862
8863 * expression.h: Don't include symtab.h.
8864 (struct block): Forward declare.
8865
8866 2019-03-24 Tom Tromey <tom@tromey.com>
8867
8868 * c-exp.y (typebase): Remove casts.
8869 * gdbtypes.c (lookup_unsigned_typename, )
8870 (lookup_signed_typename): Remove cast.
8871 * eval.c (parse_to_comma_and_eval): Remove cast.
8872 * parse.c (write_dollar_variable): Remove cast.
8873 * block.h (struct block) <superblock>: Now const.
8874 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8875 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8876 (map_block): Make "block" const.
8877 * symfile.h (struct quick_symbol_functions)
8878 <map_matching_symbols>: Constify block argument to "callback".
8879 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8880 const.
8881 (find_pc_sect_compunit_symtab): Make "b" const.
8882 (find_symbol_at_address): Likewise.
8883 (search_symbols): Likewise.
8884 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8885 (dw2_debug_names_lookup_symbol): Likewise.
8886 (dw2_map_matching_symbols): Update.
8887 * p-valprint.c (pascal_val_print): Remove "block".
8888 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8889 (aux_add_nonlocal_symbols): Make "block" const.
8890 (resolve_subexp): Remove cast.
8891 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8892 const.
8893 (iterate_over_file_blocks): Likewise.
8894 * f-exp.y (%union) <bval>: Remove.
8895 * coffread.c (patch_opaque_types): Make "b" const.
8896 * spu-tdep.c (spu_catch_start): Make "block" const.
8897 * c-valprint.c (print_unpacked_pointer): Remove "block".
8898 * symmisc.c (dump_symtab_1): Make "b" const.
8899 (block_depth): Make "block" const.
8900 * d-exp.y (%union) <bval>: Remove.
8901 * cp-support.h (cp_lookup_rtti_type): Update.
8902 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8903 * psymtab.c (psym_lookup_symbol): Make "block" const.
8904 (maintenance_check_psymtabs): Make "b" const.
8905 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8906 (enumerate_locals, enumerate_args): Update.
8907 * python/py-symtab.c (stpy_global_block): Make "block" const.
8908 (stpy_static_block): Likewise.
8909 * inline-frame.c (block_starting_point_at): Make "new_block"
8910 const.
8911 * block.c (find_block_in_blockvector): Make return type const.
8912 (blockvector_for_pc_sect): Make "b" const.
8913 (find_block_in_blockvector): Make "b" const.
8914
8915 2019-03-23 Tom Tromey <tom@tromey.com>
8916
8917 * varobj.c (varobj_create): Update.
8918 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8919 * printcmd.c (display_command, do_one_display): Don't reset
8920 innermost_block.
8921 * parser-defs.h (enum innermost_block_tracker_type): Move to
8922 expression.h.
8923 (innermost_block): Update comment.
8924 * parse.c (parse_exp_1): Add tracker_types parameter.
8925 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8926 tracker_types parameter. Reset innermost_block.
8927 (parse_exp_in_context): Remove.
8928 (parse_expression_for_completion): Update.
8929 * objfiles.c (~objfile): Don't reset expression_context_block or
8930 innermost_block.
8931 * expression.h (enum innermost_block_tracker_type): Move from
8932 parser-defs.h.
8933 (parse_exp_1): Add tracker_types parameter.
8934 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8935 reset innermost_block.
8936
8937 2019-03-23 Tom Tromey <tom@tromey.com>
8938
8939 * objfiles.h: Include bcache.h.
8940
8941 2019-03-23 Tom Tromey <tom@tromey.com>
8942
8943 * linespec.c (get_current_search_block): Use
8944 scoped_restore_current_language.
8945 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8946
8947 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8948 Jiong Wang <jiong.wang@arm.com>
8949
8950 * aarch64-linux-tdep.c
8951 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8952 section.
8953 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8954
8955 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8956 Jiong Wang <jiong.wang@arm.com>
8957
8958 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8959 instructions.
8960 (aarch64_analyze_prologue_test): Add PACIASP test.
8961 (aarch64_prologue_prev_register): Unmask PC value.
8962
8963 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8964 Jiong Wang <jiong.wang@arm.com>
8965
8966 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8967 (aarch64_dwarf2_prev_register): Unmask PC value.
8968 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8969 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8970 DW_CFA_AARCH64_negate_ra_state.
8971 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8972
8973 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8974 Jiong Wang <jiong.wang@arm.com>
8975
8976 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8977 registers.
8978 (aarch64_pseudo_register_name): Likewise.
8979 (aarch64_pseudo_register_type): Likewise.
8980 (aarch64_pseudo_register_reggroup_p): Likewise.
8981 (aarch64_gdbarch_init): Add pauth registers.
8982 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8983 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8984 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8985 (struct gdbarch_tdep): Add regnum for ra_state.
8986
8987 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8988 Jiong Wang <jiong.wang@arm.com>
8989
8990 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8991
8992 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8993 Jiong Wang <jiong.wang@arm.com>
8994
8995 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8996 function.
8997 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8998 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8999 (aarch64_gdbarch_init): Add puth registers.
9000 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9001 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9002 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9003
9004 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9005 Jiong Wang <jiong.wang@arm.com>
9006
9007 * aarch64-linux-nat.c
9008 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9009 * aarch64-linux-tdep.c
9010 (aarch64_linux_core_read_description): Likewise.
9011 (aarch64_linux_get_hwcap): New function.
9012 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9013 (aarch64_linux_get_hwcap): New declaration.
9014
9015 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9016 Jiong Wang <jiong.wang@arm.com>
9017
9018 * aarch64-linux-nat.c
9019 (aarch64_linux_nat_target::read_description): Add pauth param.
9020 * aarch64-linux-tdep.c
9021 (aarch64_linux_core_read_description): Likewise.
9022 * aarch64-tdep.c (struct target_desc): Add in pauth.
9023 (aarch64_read_description): Add pauth param.
9024 (aarch64_gdbarch_init): Likewise.
9025 * aarch64-tdep.h (aarch64_read_description): Likewise.
9026 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9027 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9028 * features/Makefile: Add new files.
9029 * features/aarch64-pauth.c: New file.
9030 * features/aarch64-pauth.xml: New file.
9031
9032 2019-03-20 Tom Tromey <tromey@adacore.com>
9033
9034 * infrun.c (handle_inferior_event): Rename from
9035 handle_inferior_event_1. Create a scoped_value_mark.
9036 (handle_inferior_event): Remove.
9037
9038 2019-03-19 Tom Tromey <tromey@adacore.com>
9039
9040 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9041 * infrun.h (print_stop_event): Add "displays" parameter.
9042 * infrun.c (print_stop_event): Add "displays" parameter.
9043
9044 2019-03-19 Pedro Alves <palves@redhat.com>
9045
9046 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9047 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9048 to -1. Fix TABs vs spaces.
9049 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9050 * tui/tui-out.h (tui_ui_out) Add intro comments.
9051 <m_line, m_start_of_line>: In-class initialize, and add describing
9052 comment.
9053
9054 2019-03-18 Alan Hayward <alan.hayward@arm.com>
9055
9056 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9057 variable names.
9058 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9059
9060 2019-03-18 Pedro Alves <palves@redhat.com>
9061 Eli Zaretskii <eliz@gnu.org>
9062
9063 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9064 m_line and m_start_of_line.
9065
9066 2019-03-18 Eli Zaretskii <eliz@gnu.org>
9067
9068 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9069 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9070 it returns a newline. This fixes a regression in TU mode, whereby
9071 the next line is output on the same screen line as the user input.
9072
9073 2019-03-18 Tom Tromey <tromey@adacore.com>
9074
9075 * minsyms.c (minimal_symbol_reader::install): Remove call to
9076 obstack_blank.
9077
9078 2019-03-18 Pedro Alves <palves@redhat.com>
9079
9080 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9081 New globals.
9082 (apply_style): New, factored out from ...
9083 (apply_ansi_escape): ... this. Handle reverse video mode.
9084 (tui_set_reverse_mode): New function.
9085 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9086 * tui/tui-winsource.c (tui_show_source_line): Use
9087 tui_set_reverse_mode instead of setting A_STANDOUT.
9088 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9089 New setter methods.
9090
9091 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
9092
9093 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9094 Handle tabs.
9095
9096 2019-03-18 Tom Tromey <tromey@adacore.com>
9097
9098 * ada-lang.c (empty_array): Add "high" parameter.
9099 (ada_evaluate_subexp): Update.
9100
9101 2019-03-17 Sergei Trofimovich <siarheit@google.com>
9102
9103 * unittests/string_view-selftests.c: Define
9104 _initialize_string_view_selftests unconditionally.
9105
9106 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9107
9108 PR gdb/24350
9109 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9110
9111 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9112
9113 PR gdb/24351
9114 * windows-nat.c (display_selector): Fix format specifiers.
9115
9116 2019-03-17 Eli Zaretskii <eliz@gnu.org>
9117
9118 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9119 tui_refill_source_window instead of tui_refresh_win, to update the
9120 current execution line. This fixes redisplay of the current line
9121 when stepping through the code with "next" or "step".
9122
9123 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9124
9125 * source-cache.c (source_cache::get_source_lines): Call
9126 find_source_lines to initialize s->nlines. This fixes vertical
9127 scrolling of TUI source window when the DOWN arrow is pressed.
9128
9129 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9130
9131 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9132 linux-thread-db.c (_initialize_thread_db): Likewise.
9133
9134 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9135
9136 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9137 wclrtoeol in tui_show_source_line". This reverts changes made in
9138 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9139
9140 2019-03-15 Tom Tromey <tom@tromey.com>
9141
9142 * symtab.h (struct minimal_symbol): Derive from
9143 general_symbol_info.
9144 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9145 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9146 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9147 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9148 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9149 (MSYMBOL_SEARCH_NAME): Update.
9150 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9151 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9152 * minsyms.c (minimal_symbol_reader::record_full): Update.
9153
9154 2019-03-15 Tom Tromey <tom@tromey.com>
9155
9156 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9157
9158 2019-03-15 Tom Tromey <tom@tromey.com>
9159
9160 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9161 unique_xmalloc_ptr.
9162 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9163 Update.
9164 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9165 (build_minimal_symbol_hash_tables)
9166 (minimal_symbol_reader::install): Update.
9167
9168 2019-03-15 Tom Tromey <tom@tromey.com>
9169
9170 * symtab.c (create_demangled_names_hash): Update.
9171 (symbol_set_names): Update.
9172 * objfiles.h (struct objfile_per_bfd_storage)
9173 <demangled_names_hash>: Now an htab_up.
9174 * objfiles.c (objfile_per_bfd_storage): Simplify.
9175
9176 2019-03-15 Tom Tromey <tom@tromey.com>
9177
9178 * objfiles.h (struct objfile_per_bfd_storage): Declare
9179 destructor.
9180 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9181 New.
9182 (get_objfile_bfd_data): Use new. Don't initialize
9183 language_of_main.
9184 (free_objfile_per_bfd_storage): Remove.
9185 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9186
9187 2019-03-15 Tom Tromey <tom@tromey.com>
9188
9189 * symfile.c (reread_symbols): Update.
9190 * objfiles.c (objfile::objfile): Update.
9191 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9192 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9193 comment.
9194 (minimal_symbol_reader::install): Update.
9195 (terminate_minimal_symbol_table): Remove.
9196 * jit.c (jit_object_close_impl): Update.
9197
9198 2019-03-15 Tom Tromey <tom@tromey.com>
9199
9200 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9201 initializations.
9202
9203 2019-03-15 Tom Tromey <tom@tromey.com>
9204
9205 * objfiles.h (struct objfile_per_bfd_storage)
9206 <demangled_hash_languages>: Now a bitset.
9207 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9208 (lookup_minimal_symbol): Update.
9209
9210 2019-03-15 Tom Tromey <tom@tromey.com>
9211
9212 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9213 Don't return the symbol.
9214 * coffread.c (record_minimal_symbol): Use record_full.
9215
9216 2019-03-14 Eli Zaretskii <eliz@gnu.org>
9217
9218 The MS-Windows port of ncurses fails to switch to a color pair if
9219 one or both of the colors are the implicit default colors. This
9220 change records the default colors when TUI is initialized, and
9221 then specifies them explicitly when a color pair uses the default
9222 colors. This allows color styling in TUI mode on MS-Windows.
9223
9224 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9225 ncurses_norm_attr.
9226 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9227 colors in ncurses_norm_attr.
9228 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9229 "none", replace it with the default color recorded in
9230 ncurses_norm_attr.
9231
9232 2019-03-14 Tom Tromey <tromey@adacore.com>
9233
9234 * source-cache.h (class source_cache) <get_source_lines>: Return
9235 std::string.
9236 * source-cache.c (source_cache::extract_lines): Handle case where
9237 first_pos==npos. Return std::string.
9238 (source_cache::get_source_lines): Update.
9239
9240 2019-03-14 Tom Tromey <tromey@adacore.com>
9241
9242 * NEWS: Add item for "style sources" commands.
9243 * source-cache.c (source_cache::get_source_lines): Check
9244 source_styling.
9245 * cli/cli-style.c (source_styling): New global.
9246 (_initialize_cli_style): Add "style sources" commands.
9247 (show_style_sources): New function.
9248 * cli/cli-style.h (source_styling): Declare.
9249
9250 2019-03-14 Pedro Alves <palves@redhat.com>
9251 Tom Tromey <tromey@adacore.com>
9252
9253 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9254 * tui/tui-winsource.c (tui_refill_source_window): New function,
9255 from...
9256 (tui_horizontal_source_scroll): ... here. Move some logic.
9257 * cli/cli-style.c (set_style_enabled): Notify new observable.
9258 * tui/tui-hooks.c (tui_redisplay_source): New function.
9259 (tui_attach_detach_observers): Attach or detach
9260 tui_redisplay_source.
9261 * observable.h (source_styling_changed): New observable.
9262 * observable.c: Define source_styling_changed observable.
9263
9264 2019-03-13 Tom Tromey <tromey@adacore.com>
9265
9266 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9267 (i386_gnu_nat_target::store_registers): Update.
9268 * target-debug.h (target_debug_print_std_string): New macro.
9269 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9270 * windows-tdep.c (display_one_tib): Update.
9271 * tui/tui-stack.c (tui_make_status_line): Update.
9272 * top.c (print_inferior_quit_action): Update.
9273 * thread.c (thr_try_catch_cmd): Update.
9274 (add_thread_with_info): Update.
9275 (thread_target_id_str): Update.
9276 (thr_try_catch_cmd): Update.
9277 (thread_command): Update.
9278 (thread_find_command): Update.
9279 * record-btrace.c (record_btrace_target::info_record)
9280 (record_btrace_resume_thread, record_btrace_target::resume)
9281 (record_btrace_cancel_resume, record_btrace_step_thread)
9282 (record_btrace_target::wait, record_btrace_target::wait)
9283 (record_btrace_target::wait, record_btrace_target::stop): Update.
9284 * progspace.c (print_program_space): Update.
9285 * process-stratum-target.c
9286 (process_stratum_target::thread_address_space): Update.
9287 * linux-fork.c (linux_fork_mourn_inferior)
9288 (detach_checkpoint_command, info_checkpoints_command)
9289 (linux_fork_context): Update.
9290 (linux_fork_detach): Update.
9291 (class scoped_switch_fork_info): Update.
9292 (delete_checkpoint_command): Update.
9293 * infrun.c (follow_fork_inferior): Update.
9294 (follow_fork_inferior): Update.
9295 (proceed_after_vfork_done): Update.
9296 (handle_vfork_child_exec_or_exit): Update.
9297 (follow_exec): Update.
9298 (displaced_step_prepare_throw): Update.
9299 (displaced_step_restore): Update.
9300 (start_step_over): Update.
9301 (resume_1): Update.
9302 (clear_proceed_status_thread): Update.
9303 (proceed): Update.
9304 (print_target_wait_results): Update.
9305 (do_target_wait): Update.
9306 (context_switch): Update.
9307 (stop_all_threads): Update.
9308 (restart_threads): Update.
9309 (finish_step_over): Update.
9310 (handle_signal_stop): Update.
9311 (switch_back_to_stepped_thread): Update.
9312 (keep_going_pass_signal): Update.
9313 (print_exited_reason): Update.
9314 (normal_stop): Update.
9315 * inferior.c (inferior_pid_to_str): Change return type.
9316 (print_selected_inferior): Update.
9317 (add_inferior): Update.
9318 (detach_inferior): Update.
9319 * dummy-frame.c (fprint_dummy_frames): Update.
9320 * dcache.c (dcache_info_1): Update.
9321 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9322 (btrace_fetch, btrace_clear): Update.
9323 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9324 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9325 type.
9326 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9327 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9328 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9329 * gdbarch.c, gdbarch.h: Rebuild.
9330 * gdbarch.sh (core_pid_to_str): Change return type.
9331 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9332 return type.
9333 (windows_nat_target::pid_to_str): Change return type.
9334 (windows_delete_thread): Update.
9335 (windows_nat_target::attach): Update.
9336 (windows_nat_target::files_info): Update.
9337 * target-delegates.c: Rebuild.
9338 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9339 return type.
9340 (sol_thread_target::pid_to_str): Change return type.
9341 * remote.c (class remote_target) <pid_to_str>: Change return
9342 type.
9343 (remote_target::pid_to_str): Change return type.
9344 (extended_remote_target::attach, remote_target::remote_stop_ns)
9345 (remote_target::remote_notif_remove_queued_reply)
9346 (remote_target::push_stop_reply, remote_target::disable_btrace):
9347 Update.
9348 (extended_remote_target::attach): Update.
9349 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9350 type.
9351 (gdbsim_target::pid_to_str): Change return type.
9352 * ravenscar-thread.c (struct ravenscar_thread_target)
9353 <pid_to_str>: Change return type.
9354 (ravenscar_thread_target::pid_to_str): Change return type.
9355 * procfs.c (class procfs_target) <pid_to_str>: Change return
9356 type.
9357 (procfs_target::pid_to_str): Change return type.
9358 (procfs_target::attach): Update.
9359 (procfs_target::detach): Update.
9360 (procfs_target::fetch_registers): Update.
9361 (procfs_target::store_registers): Update.
9362 (procfs_target::wait): Update.
9363 (procfs_target::files_info): Update.
9364 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9365 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9366 return type.
9367 (nto_procfs_target::pid_to_str): Change return type.
9368 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9369 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9370 return type.
9371 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9372 (exit_lwp): Update.
9373 (attach_proc_task_lwp_callback, get_detach_signal)
9374 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9375 (linux_nat_target::resume, wait_lwp, stop_callback)
9376 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9377 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9378 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9379 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9380 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9381 type.
9382 (inf_ptrace_target::attach): Update.
9383 (inf_ptrace_target::files_info): Update.
9384 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9385 type.
9386 (go32_nat_target::pid_to_str): Change return type.
9387 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9388 (gnu_nat_target::wait): Update.
9389 (gnu_nat_target::wait): Update.
9390 (gnu_nat_target::resume): Update.
9391 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9392 (fbsd_nat_target::wait): Update.
9393 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9394 type.
9395 (darwin_nat_target::attach): Update.
9396 * corelow.c (class core_target) <pid_to_str>: Change return type.
9397 (core_target::pid_to_str): Change return type.
9398 * target.c (normal_pid_to_str): Change return type.
9399 (default_pid_to_str): Likewise.
9400 (target_pid_to_str): Change return type.
9401 (target_translate_tls_address): Update.
9402 (target_announce_detach): Update.
9403 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9404 return type.
9405 (bsd_uthread_target::pid_to_str): Change return type.
9406 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9407 type.
9408 (bsd_kvm_target::pid_to_str): Change return type.
9409 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9410 return type.
9411 (aix_thread_target::pid_to_str): Change return type.
9412 * target.h (struct target_ops) <pid_to_str>: Change return type.
9413 (target_pid_to_str, normal_pid_to_str): Likewise.
9414 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9415 type.
9416 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9417 type.
9418 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9419 return type.
9420 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9421 type.
9422 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9423 type.
9424 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9425 return type.
9426
9427 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9428
9429 * NEWS: Mention that the new default MI version is 3. Mention
9430 changes to the output of commands and events that deal with
9431 multi-location breakpoints.
9432 * breakpoint.c: Include "mi/mi-out.h".
9433 (print_one_breakpoint): Change output syntax if using MI version
9434 >= 3.
9435 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9436 New.
9437 (mi_multi_location_breakpoint_output_fixed): New.
9438 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9439 (mi_cmd_fix_multi_location_breakpoint_output): New.
9440 (mi_multi_location_breakpoint_output_fixed): New.
9441 * mi/mi-cmds.c (mi_cmds): Register command
9442 -fix-multi-location-breakpoint-output.
9443 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9444 interpreter "mi".
9445
9446 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9447
9448 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9449 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9450 instantiate mi_ui_out based on interpreter name.
9451 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9452 * mi/mi-main.c (mi_load_progress): Likewise.
9453
9454 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9455
9456 * NEWS: Combine separate "New targets" sections for 8.3.
9457
9458 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9459
9460 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9461 (ppcfbsd_init_abi): Install gdbarch
9462 "fetch_tls_load_module_address" and "get_thread_local_address"
9463 methods.
9464
9465 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9466
9467 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9468 (riscv_fbsd_init_abi): Install gdbarch
9469 "fetch_tls_load_module_address" and "get_thread_local_address"
9470 methods.
9471
9472 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9473
9474 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9475 (i386fbsd_init_abi): Install gdbarch
9476 "fetch_tls_load_module_address" and "get_thread_local_address"
9477 methods.
9478
9479 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9480
9481 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9482 (amd64fbsd_init_abi): Install gdbarch
9483 "fetch_tls_load_module_address" and "get_thread_local_address"
9484 methods.
9485
9486 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9487
9488 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9489 (struct fbsd_pspace_data): New type.
9490 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9491 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9492 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9493 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9494 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9495
9496 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9497
9498 * gdbtypes.c (lookup_struct_elt): New function.
9499 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9500 * gdbtypes.h (struct struct_elt): New type.
9501 (lookup_struct_elt): New prototype.
9502
9503 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9504
9505 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9506 remove disabled code block.
9507
9508 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9509
9510 * gdbarch.sh (get_thread_local_address): New method.
9511 * gdbarch.h, gdbarch.c: Regenerate.
9512 * target.c (target_translate_tls_address): Use
9513 gdbarch_get_thread_local_address if present instead of
9514 target::get_thread_local_address.
9515
9516 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9517
9518 * target.h (target::get_thread_local_address): Update comment.
9519
9520 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9521
9522 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9523 objfile->separate_debug_objfile_backlink if not NULL.
9524
9525 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9526
9527 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9528 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9529 (amd64bsd_store_inferior_registers): Likewise.
9530 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9531 Enable segment base registers.
9532 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9533 PT_GETFSBASE and PT_GETGSBASE.
9534 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9535 PT_SETGSBASE.
9536 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9537 segment base registers.
9538 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9539
9540 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9541
9542 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9543 Update calls to i386_target_description to add 'segments'
9544 parameter.
9545 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9546 add segment base registers.
9547 * arch/i386.c (i386_create_target_description): Add 'segments'
9548 parameter to enable segment base registers.
9549 * arch/i386.h (i386_create_target_description): Likewise.
9550 * features/i386/32bit-segments.xml: New file.
9551 * features/i386/32bit-segments.c: Generate.
9552 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9553 call to i386_target_description to add 'segments' parameter.
9554 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9555 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9556 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9557 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9558 if feature is present.
9559 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9560 Add 'segments' parameter to call to i386_target_description.
9561 (i386_target_description): Add 'segments' parameter to enable
9562 segment base registers.
9563 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9564 to call to i386_target_description.
9565 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9566 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9567 Define I386_NUM_REGS.
9568 (i386_target_description): Add 'segments' parameter to enable
9569 segment base registers.
9570
9571 2019-03-12 Eli Zaretskii <eliz@gnu.org>
9572
9573 PR/24325
9574 * source-cache.c: #undef open and close, to avoid unresolved
9575 externals during linking.
9576
9577 2019-03-12 Tom Tromey <tromey@adacore.com>
9578
9579 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9580 const. Add initializers.
9581 (_initialize_remote): Don't initialize ptid globals.
9582
9583 2019-03-12 Pedro Alves <palves@redhat.com>
9584
9585 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9586
9587 2019-03-12 Pedro Alves <palves@redhat.com>
9588
9589 * cp-name-parser.y (main): Remove unused 'len' variable.
9590
9591 2019-03-12 Tom Tromey <tromey@adacore.com>
9592
9593 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9594 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9595
9596 2019-03-12 Tom Tromey <tromey@adacore.com>
9597
9598 * linux-nat.c (iterate_over_lwps): Update.
9599 (stop_callback): Remove parameter.
9600 (stop_wait_callback, detach_callback, resume_set_callback)
9601 (select_singlestep_lwp_callback, set_ignore_sigint)
9602 (status_callback, resumed_callback, resume_clear_callback)
9603 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9604 data parameter.
9605 (linux_nat_target::detach, linux_nat_target::resume)
9606 (linux_stop_and_wait_all_lwps, select_event_lwp)
9607 (linux_nat_filter_event, linux_nat_wait_1)
9608 (linux_nat_target::kill, linux_nat_target::stop)
9609 (linux_nat_target::stop): Update.
9610 (linux_nat_resume_callback): Change type.
9611 (resume_stopped_resumed_lwps, count_events_callback)
9612 (select_event_lwp_callback): Likewise.
9613 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9614 * arm-linux-nat.c (struct update_registers_data): Remove.
9615 (update_registers_callback): Change type.
9616 (arm_linux_insert_hw_breakpoint1): Update.
9617 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9618 parameter.
9619 (x86_linux_dr_set_addr): Update.
9620 (x86_linux_dr_set_control): Update.
9621 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9622 (iterate_over_lwps): Use gdb::function_view.
9623 * nat/aarch64-linux-hw-point.c (struct
9624 aarch64_dr_update_callback_param): Remove.
9625 (debug_reg_change_callback): Change type.
9626 (aarch64_notify_debug_reg_change): Update.
9627 * s390-linux-nat.c (s390_refresh_per_info): Update.
9628
9629 2019-03-11 Tom Tromey <tromey@adacore.com>
9630
9631 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9632 redundant assignment to "this_cu".
9633
9634 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9635
9636 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9637
9638 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9639
9640 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9641 from...
9642 (rank_one_type): ... this.
9643
9644 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9645
9646 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9647 from...
9648 (rank_one_type): ... this.
9649
9650 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9651
9652 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9653 from...
9654 (rank_one_type): ... this.
9655
9656 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9657
9658 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9659 from...
9660 (rank_one_type): ... this.
9661
9662 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9663
9664 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9665 from...
9666 (rank_one_type): ... this.
9667
9668 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9669
9670 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9671 from...
9672 (rank_one_type): ... this.
9673
9674 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9675
9676 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9677 from...
9678 (rank_one_type): ... this.
9679
9680 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9681
9682 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9683 from...
9684 (rank_one_type): ... this.
9685
9686 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9687
9688 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9689 from...
9690 (rank_one_type): ... this.
9691
9692 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9693
9694 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9695 from...
9696 (rank_one_type): ... this.
9697
9698 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9699
9700 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9701 from...
9702 (rank_one_type): ... this.
9703
9704 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9705
9706 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9707 from...
9708 (rank_one_type): ... this.
9709
9710 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9711
9712 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9713 inferior-events' shows the example events.
9714
9715 2019-03-08 Eli Zaretskii <eliz@gnu.org>
9716
9717 Support styling on native MS-Windows console
9718
9719 PR/24315
9720 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9721 on MS-Windows if $TERM is not defined.
9722
9723 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9724
9725 * posix-hdep.c (gdb_console_fputs):
9726 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9727 functions.
9728 * ui-file.h (gdb_console_fputs): Add prototype.
9729
9730 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9731 back to fputs only if the former returns zero.
9732
9733 2019-03-07 Tom Tromey <tom@tromey.com>
9734
9735 * symmisc.c (print_symbol_bcache_statistics): Update.
9736 (print_objfile_statistics): Update.
9737 * symfile.c (allocate_symtab): Update.
9738 * stabsread.c: Don't include bcache.h.
9739 * psymtab.h (struct psymbol_bcache): Don't declare.
9740 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9741 (psymbol_bcache_init, psymbol_bcache_free)
9742 (psymbol_bcache_get_bcache): Don't declare.
9743 * psymtab.c (struct psymbol_bcache): Remove.
9744 (psymtab_storage::psymtab_storage): Update.
9745 (psymtab_storage::~psymtab_storage): Update.
9746 (psymbol_bcache_init, psymbol_bcache_free)
9747 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9748 (add_psymbol_to_bcache): Update.
9749 (allocate_psymtab): Update.
9750 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9751 macro_cache>: No longer pointers.
9752 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9753 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9754 * macrotab.c (macro_bcache): Update.
9755 * macroexp.c: Don't include bcache.h.
9756 * gdbtypes.c (check_types_worklist): Update.
9757 (types_deeply_equal): Remove TRY/CATCH. Update.
9758 * elfread.c (elf_symtab_read): Update.
9759 * dwarf2read.c: Don't include bcache.h.
9760 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9761 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9762 (print_bcache_statistics, bcache_memory_used): Don't declare.
9763 (struct bcache): Move from bcache.c. Add constructor, destructor,
9764 methods. Rename all data members.
9765 * bcache.c (struct bcache): Move to bcache.h.
9766 (bcache::expand_hash_table): Rename from expand_hash_table.
9767 (bcache): Remove.
9768 (bcache::insert): Rename from bcache_full.
9769 (bcache::compare): Rename from bcache_compare.
9770 (bcache_xmalloc): Remove.
9771 (bcache::~bcache): Rename from bcache_xfree.
9772 (bcache::print_statistics): Rename from print_bcache_statistics.
9773 (bcache::memory_used): Rename from bcache_memory_used.
9774
9775 2019-03-07 Pedro Alves <palves@redhat.com>
9776
9777 * infrun.c (normal_stop): Also check for
9778 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9779
9780 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9781
9782 * f-lang.c (value_from_host_double): Moved to...
9783 * value.c (value_from_host_double): ...here.
9784 * value.h (value_from_host_double): Declare.
9785 * guile/scm-math.c (vlscm_convert_typed_number): Use
9786 value_from_host_double.
9787 (vlscm_convert_number): Likewise.
9788 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9789 * python/py-value.c (convert_value_from_python): Likewise.
9790
9791 2019-03-06 Tom Tromey <tom@tromey.com>
9792
9793 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9794
9795 2019-03-06 Tom Tromey <tom@tromey.com>
9796
9797 * utils.h (free_current_contents): Don't declare.
9798 * utils.c (free_current_contents): Remove.
9799
9800 2019-03-06 Tom Tromey <tom@tromey.com>
9801
9802 * top.c (quit_force): Update.
9803 * main.c (captured_command_loop): Update.
9804 * common/new-op.c (operator new): Update.
9805 * common/common-exceptions.c (struct catcher)
9806 <save_cleanup_chain>: Remove member.
9807 (exceptions_state_mc_init): Update.
9808 (exception_try_scope_entry): Return nullptr.
9809 (exception_try_scope_exit, exception_rethrow)
9810 (throw_exception_sjlj, throw_exception_cxx): Update.
9811 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9812 (all_cleanups, do_cleanups, discard_cleanups)
9813 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9814 (restore_cleanups, restore_final_cleanups): Don't declare.
9815 (do_final_cleanups): Remove parameter.
9816 * common/cleanups.c (cleanup_chain, make_cleanup)
9817 (make_cleanup_dtor, all_cleanups, do_cleanups)
9818 (discard_my_cleanups, discard_cleanups)
9819 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9820 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9821 (null_cleanup): Remove.
9822 (do_final_cleanups): Remove parameter.
9823
9824 2019-03-06 Tom Tromey <tom@tromey.com>
9825
9826 * remote.c (remote_target::remote_parse_stop_reply): Use
9827 unique_xmalloc_ptr.
9828
9829 2019-03-06 Tom Tromey <tom@tromey.com>
9830
9831 * stabsread.c (struct stabs_field_info): Rename from field_info.
9832 <list, fnlist>: Add initializers.
9833 <obstack>: New member.
9834 (read_member_functions, read_struct_fields, read_baseclasses):
9835 Allocate on obstack. Don't use cleanups.
9836 (read_one_struct_field, read_member_functions, read_struct_fields)
9837 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9838 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9839 (read_struct_type): Update.
9840
9841 2019-03-06 Tom Tromey <tom@tromey.com>
9842
9843 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9844 * common/filestuff.h (make_cleanup_close): Don't declare.
9845 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9846 Remove.
9847
9848 2019-03-06 Tom Tromey <tom@tromey.com>
9849
9850 * solib-aix.c: Use make_scope_exit.
9851
9852 2019-03-06 Tom Tromey <tom@tromey.com>
9853
9854 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9855 Use make_scope_exit.
9856
9857 2019-03-06 Tom Tromey <tom@tromey.com>
9858
9859 * solib-svr4.c (disable_probes_interface): Remove parameter.
9860 (svr4_handle_solib_event): Use make_scope_exit.
9861
9862 2019-03-06 Tom Tromey <tom@tromey.com>
9863
9864 * remote.c (struct stop_reply_deleter): Remove.
9865 (stop_reply_up): Update.
9866 (struct stop_reply): Derive from notif_event. Don't typedef.
9867 <regcache>: Now a std::vector.
9868 (stop_reply_xfree): Remove.
9869 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9870 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9871 (remote_target::discard_pending_stop_replies): Use delete.
9872 (remote_target::remote_parse_stop_reply): Update.
9873 (remote_target::process_stop_reply): Update.
9874 * remote-notif.h (struct notif_event): Add virtual destructor.
9875 Remove "dtr" member.
9876 (struct notif_client) <alloc_event>: Return a unique_ptr.
9877 (notif_event_xfree): Don't declare.
9878 (notif_event_up): New typedef.
9879 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9880 (notif_event_xfree, do_notif_event_xfree): Remove.
9881 (remote_notif_state_xfree): Update.
9882
9883 2019-03-06 Tom Tromey <tom@tromey.com>
9884
9885 * infrun.c (displaced_step_clear_cleanup): Now a
9886 forward_scope_exit type.
9887 (displaced_step_prepare_throw): Update.
9888 (displaced_step_fixup): Update.
9889
9890 2019-03-06 Tom Tromey <tom@tromey.com>
9891
9892 * inferior.h (class inferior): Update comment.
9893 * gdbthread.h (class thread_info): Update comment.
9894
9895 2019-03-06 Joel Brobecker <brobecker@adacore.com>
9896 Tom Tromey <tom@tromey.com>
9897
9898 * stabsread.h (struct stab_section_list): Remove.
9899 (coffstab_build_psymtabs): Update.
9900 * dbxread.c (symbuf_sections): Now a std::vector.
9901 (sect_idx): New global.
9902 (fill_symbuf): Update.
9903 (coffstab_build_psymtabs): Change type of stabsects parameter.
9904 Update.
9905 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9906 std::vector.
9907 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9908 (coff_locate_sections): Update.
9909 (coff_symfile_read): Remove cleanups. Update.
9910 (init_stringtab): Add storage parameter.
9911 (free_stringtab, free_stringtab_cleanup): Remove.
9912 (init_lineno): Add storage parameter.
9913 (free_linetab, free_linetab_cleanup): Remove.
9914
9915 2019-03-06 Pedro Alves <palves@redhat.com>
9916
9917 * linux-fork.c (fork_info::clobber_regs): Delete.
9918 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9919 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9920 comment. Adjust.
9921 (scoped_switch_fork_info::scoped_switch_fork_info)
9922 (checkpoint_command, linux_fork_context): Adjust
9923 fork_save_infrun_state calls.
9924
9925 2019-03-06 Pedro Alves <palves@redhat.com>
9926
9927 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9928 (inf_has_multiple_threads): Return 'bool' and rewrite using
9929 inferior_info::threads().
9930
9931 2019-03-06 Pedro Alves <palves@redhat.com>
9932
9933 * linux-fork.c: Include <list>.
9934 (fork_list): Now a std::list instance.
9935 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9936 (forks_exist_p, find_last_fork): Adjust.
9937 (new_fork): Delete.
9938 (one_fork_p): New.
9939 (add_fork): Adjust.
9940 (free_fork): Delete, folded into fork_info::~fork_info().
9941 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9942 Adjust.
9943 (init_fork_list): Delete.
9944 (linux_fork_killall, linux_fork_mourn_inferior)
9945 (linux_fork_detach, info_checkpoints_command): Adjust.
9946 (_initialize_linux_fork): No longer call init_fork_list.
9947
9948 2019-03-06 Pedro Alves <palves@redhat.com>
9949
9950 * linux-fork.c (new_fork): New, split out of ...
9951 (add_fork): ... this. Return void. Move "first fork" special
9952 case from here, to ...
9953 (checkpoint_command): ... here.
9954 * linux-linux.h (add_fork): Return void.
9955
9956 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9957
9958 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9959
9960 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9961 Chris January <chris.january@arm.com>
9962 David Lecomber <david.lecomber@arm.com>
9963
9964 * f-exp.y: New token, UNOP_INTRINSIC.
9965 (exp): New pattern using UNOP_INTRINSIC token.
9966 (f77_keywords): Add 'abs' keyword.
9967 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9968 (value_from_host_double): New function.
9969 (evaluate_subexp_f): Support UNOP_ABS.
9970
9971 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9972
9973 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9974 types.
9975
9976 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9977
9978 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9979 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9980 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9981
9982 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9983
9984 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9985
9986 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9987 Chris January <chris.january@arm.com>
9988
9989 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9990 * f-exp.y: Define 'KIND' token.
9991 (exp): New pattern for KIND expressions.
9992 (ptype): Handle types with a kind extension.
9993 (direct_abs_decl): Extend to spot kind extensions.
9994 (f77_keywords): Add 'kind' to the list.
9995 (push_kind_type): New function.
9996 (convert_to_kind_type): New function.
9997 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9998 * parse.c (operator_length_standard): Likewise.
9999 * parser-defs.h (enum type_pieces): Add tp_kind.
10000 * std-operator.def: Add UNOP_KIND.
10001
10002 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10003
10004 * f-exp.y (f_parse): Set yydebug.
10005
10006 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10007
10008 * f-lang.c (evaluate_subexp_f): New function.
10009 (exp_descriptor_f): New global.
10010 (f_language_defn): Use exp_descriptor_f instead of
10011 exp_descriptor_standard.
10012
10013 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10014
10015 * f-exp.y (struct token): Add comments.
10016 (dot_ops): Remove uppercase versions and the end marker.
10017 (f77_keywords): Likewise.
10018 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10019 entries in the dot_ops array are case insensitive, and use
10020 strncasecmp to compare strings. Also some whitespace cleanup in
10021 this area. Similar for the f77_keywords array, except entries in
10022 this list might be case sensitive.
10023
10024 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10025
10026 * f-exp.y (struct f77_boolean_val): Add comments.
10027 (boolean_values): Remove uppercase versions, and end marker.
10028 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10029 and use strncasecmp to achieve case insensitivity. Additionally,
10030 perform whitespace cleanup around this code.
10031
10032 2019-03-06 Tom Tromey <tromey@adacore.com>
10033
10034 * remote-sim.c (gdbsim_target_open): Use result of
10035 gdb_argv::release.
10036
10037 2019-03-06 Richard Bunt <richard.bunt@arm.com>
10038 Dirk Schubert <dirk.schubert@arm.com>
10039 Chris January <chris.january@arm.com>
10040
10041 * eval.c (evaluate_subexp_standard): Call Fortran argument
10042 wrapping logic.
10043 * f-lang.c (struct value): A value which can be passed into a
10044 Fortran function call.
10045 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10046 where appropriate.
10047 (struct type): Value ready for a Fortran function call.
10048 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10049 is needed.
10050 * f-lang.h (fortran_argument_convert): Declaration.
10051 (fortran_preserve_arg_pointer): Declaration.
10052 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10053
10054 2019-03-05 Tom Tromey <tromey@adacore.com>
10055
10056 * python/py-prettyprint.c (print_string_repr): Remove #if.
10057 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10058
10059 2019-03-05 Tom Tromey <tromey@adacore.com>
10060
10061 * target.c (the_dummy_target): Move later. Change type to
10062 "dummy_target".
10063 (initialize_targets): Don't initialize the_dummy_target.
10064
10065 2019-03-05 Tom Tromey <tromey@adacore.com>
10066
10067 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10068 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10069
10070 2019-03-05 Tom Tromey <tromey@adacore.com>
10071
10072 * windows-nat.c (windows_nat_target::attach)
10073 (windows_nat_target::detach): Don't call gdb_flush.
10074 * valprint.c (generic_val_print, val_print, val_print_string):
10075 Don't call gdb_flush.
10076 * utils.c (defaulted_query): Don't call gdb_flush.
10077 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10078 * target.c (target_announce_detach): Don't call gdb_flush.
10079 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10080 * remote.c (extended_remote_target::attach): Don't call
10081 gdb_flush.
10082 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10083 * printcmd.c (do_examine): Don't call gdb_flush.
10084 (info_display_command): Don't call gdb_flush.
10085 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10086 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10087 * memattr.c (info_mem_command): Don't call gdb_flush.
10088 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10089 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10090 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10091 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10092 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10093 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10094 (gnu_nat_target::detach): Don't call gdb_flush.
10095 * f-valprint.c (f_val_print): Don't call gdb_flush.
10096 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10097 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10098 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10099 gdb_flush.
10100 * c-valprint.c (c_val_print): Don't call gdb_flush.
10101 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10102
10103 2019-03-05 Tom Tromey <tromey@adacore.com>
10104
10105 * varobj.c (update_dynamic_varobj_children): Update.
10106 (install_default_visualizer): Use reset, not release.
10107 * value.c (set_internalvar): Update.
10108 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10109 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10110 ATTRIBUTE_UNUSED_RESULT.
10111
10112 2019-03-05 Tom Tromey <tromey@adacore.com>
10113
10114 * remote.c (class scoped_remote_fd) <release>: Add
10115 ATTRIBUTE_UNUSED_RESULT.
10116
10117 2019-03-05 Tom Tromey <tromey@adacore.com>
10118
10119 * macroexp.c (struct macro_buffer) <release>: Add
10120 ATTRIBUTE_UNUSED_RESULT.
10121
10122 2019-03-05 Tom Tromey <tromey@adacore.com>
10123
10124 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10125 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10126 ATTRIBUTE_UNUSED_RESULT.
10127
10128 2019-03-05 Tom Tromey <tromey@adacore.com>
10129
10130 * common/scoped_fd.h (class scoped_fd) <release>: Add
10131 ATTRIBUTE_UNUSED_RESULT.
10132
10133 2019-03-05 Tom Tromey <tromey@adacore.com>
10134
10135 * parser-defs.h (struct parser_state) <release>: Add
10136 ATTRIBUTE_UNUSED_RESULT.
10137
10138 2019-03-05 Tom Tromey <tromey@adacore.com>
10139
10140 * utils.h (class gdb_argv) <release>: Add
10141 ATTRIBUTE_UNUSED_RESULT.
10142 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10143
10144 2019-03-02 Eli Zaretskii <eliz@gnu.org>
10145
10146 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10147 for-loop range, to avoid compiler warnings.
10148
10149 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10150 avoid compiler warnings about unused variables.
10151
10152 * NEWS: Mention end of support for native debugging on MS-Windows
10153 before XP.
10154
10155 PR gdb/24292
10156 * common/netstuff.c:
10157 * gdbserver/gdbreplay.c
10158 * gdbserver/remote-utils.c:
10159 * ser-tcp.c:
10160 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10161 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10162 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10163 'getaddrinfo' and 'freeaddrinfo' were not available before
10164 Windows XP, and mingw.org's MinGW headers by default define
10165 _WIN32_WINNT to 0x500.
10166
10167 2019-03-01 Gary Benson <gbenson@redhat.com>
10168
10169 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10170
10171 2019-02-28 Brian Vandenberg <phantall@gmail.com>
10172 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10173
10174 PR gdb/8527
10175 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10176 set_sigint_trap, clear_sigint_trap.
10177
10178 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10179
10180 * target.c (target_detach): Clear the regcache and the
10181 frame cache.
10182
10183 2019-02-27 Pedro Alves <palves@redhat.com>
10184
10185 * utils.c (set_screen_size): When we cap the height/width sizes,
10186 tweak the corresponding command variable to show "unlimited":
10187
10188 2019-02-27 Saagar Jha <saagar@saagarjha.com>
10189 Pedro Alves <palves@redhat.com>
10190
10191 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10192 before calling rl_set_screen_size.
10193
10194 2019-02-27 Tom Tromey <tromey@adacore.com>
10195
10196 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10197 define.
10198 * python/py-value.c: Remove Python 2.4 workaround.
10199 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10200 workaround.
10201 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10202 Python 2.4 workaround.
10203 * python/python-internal.h: Remove Python 2.4 comment.
10204 (Py_ssize_t): Don't define.
10205 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10206 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10207 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10208 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10209 * python/python.c (do_start_initialization): Remove Python 2.4
10210 workaround.
10211 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10212 (print_children): Remove Python 2.4 workaround.
10213 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10214 workaround.
10215 (CHARBUFFERPROC_NAME): Remove.
10216 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10217 Python 2.4 workaround.
10218
10219 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10220
10221 * NEWS: Note minimum Python version.
10222
10223 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10224
10225 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10226 code from these functions. Remove corresponding ifdefs. Use
10227 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10228 Remove gotos and target of gotos.
10229 (infpy_search_memory): Likewise.
10230
10231 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10232
10233 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10234 (hppa_gdbarch_init): Don't register deleted functions with
10235 gdbarch.
10236
10237 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10238
10239 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10240 (h8300_unwind_sp): Delete.
10241 (h8300_dummy_id): Delete.
10242 (h8300_gdbarch_init): Don't register deleted functions with
10243 gdbarch.
10244
10245 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10246
10247 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10248 (ft32_unwind_pc): Delete.
10249 (ft32_unwind_sp): Delete.
10250 (ft32_gdbarch_init): Don't register deleted functions with
10251 gdbarch.
10252
10253 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10254
10255 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10256 (frv_unwind_pc): Delete.
10257 (frv_unwind_sp): Delete.
10258 (frv_gdbarch_init): Don't register deleted functions with
10259 gdbarch.
10260
10261 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10262
10263 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10264 (riscv_unwind_pc): Delete.
10265 (riscv_unwind_sp): Delete.
10266 (riscv_gdbarch_init): Don't register deleted functions with
10267 gdbarch.
10268
10269 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10270
10271 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10272 (csky_unwind_pc): Delete.
10273 (csky_unwind_sp): Delete.
10274 (csky_gdbarch_init): Don't register deleted functions with
10275 gdbarch.
10276
10277 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10278
10279 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10280 (cris_unwind_pc): Delete.
10281 (cris_unwind_sp): Delete.
10282 (cris_gdbarch_init): Don't register deleted functions with
10283 gdbarch.
10284
10285 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10286
10287 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10288 (bfin_unwind_pc): Delete.
10289 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10290
10291 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10292
10293 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10294 (arm_unwind_pc): Delete.
10295 (arm_unwind_sp): Delete.
10296 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10297
10298 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10299
10300 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10301 (arc_unwind_pc): Delete.
10302 (arc_unwind_sp): Delete.
10303 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10304
10305 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10306
10307 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10308 (alpha_unwind_pc): Delete.
10309 (alpha_gdbarch_init): Don't register deleted functions with
10310 gdbarch.
10311
10312 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10313
10314 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10315 (aarch64_unwind_pc): Delete.
10316 (aarch64_unwind_sp): Delete.
10317 (aarch64_gdbarch_init): Don't register deleted functions with
10318 gdbarch.
10319
10320 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10321
10322 * gdbtypes.c (type_align): Don't consider static members when
10323 computing structure alignment.
10324
10325 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10326
10327 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10328 return 0 for other types.
10329 * arch-utils.c (default_type_align): Always return 0.
10330 * gdbarch.h: Regenerate.
10331 * gdbarch.sh (type_align): Extend comment.
10332 * gdbtypes.c (type_align): Add additional comments, always call
10333 gdbarch_type_align before applying the default rules.
10334 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10335 generic code will then apply a suitable default.
10336 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10337 types, return 0 for other types.
10338
10339 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10340
10341 * NEWS: Create a new section for the next release branch.
10342 Rename the section of the current branch, now that it has
10343 been cut.
10344
10345 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10346
10347 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10348 * version.in: Bump version to 8.3.50.DATE-git.
10349
10350 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
10351
10352 * aix-thread.c (ptid_cmp): Remove unused variable.
10353 (get_signaled_thread): Likewise.
10354 (store_regs_user_thread): Likewise.
10355 (store_regs_kernel_thread): Likewise.
10356 (fetch_regs_kernel_thread): Remove shadowed variable.
10357
10358 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10359
10360 * features/riscv/32bit-cpu.xml: Add register numbers.
10361 * features/riscv/32bit-fpu.c: Regenerate.
10362 * features/riscv/32bit-fpu.xml: Add register numbers.
10363 * features/riscv/64bit-cpu.xml: Add register numbers.
10364 * features/riscv/64bit-fpu.c: Regenerate.
10365 * features/riscv/64bit-fpu.xml: Add register numbers.
10366
10367 2019-02-26 Kevin Buettner <kevinb@redhat.com>
10368
10369 * NEWS: Mention two argument form of gdb.Value constructor.
10370 * python/py-value.c (convert_buffer_and_type_to_value): New
10371 function.
10372 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10373 Add support for handling an optional second argument. Call
10374 convert_buffer_and_type_to_value as appropriate.
10375 * python/python-internal.h (Py_buffer_deleter): New struct.
10376 (Py_buffer_up): New typedef.
10377
10378 2019-02-25 John Baldwin <jhb@FreeBSD.org>
10379
10380 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10381 instead of releasing ownership.
10382
10383 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
10384
10385 * dwarf2read.c (open_and_init_dwp_file): Call
10386 elf_numsections instead of bfd_count_sections to initialize
10387 dwp_file->num_sections.
10388
10389 2019-02-25 Tom Tromey <tromey@adacore.com>
10390
10391 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10392
10393 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10394
10395 * gcore.in: Add '--readnever' option when invoking GDB.
10396
10397 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10398
10399 * MAINTAINERS: Update my email address.
10400
10401 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10402
10403 * build-id.c (build_id_to_debug_bfd_1): New function.
10404 (build_id_to_debug_bfd): Look for separate debug file in
10405 sysroot.
10406
10407 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10408
10409 * gdbarch.sh: Update the copyright year range that is placed into
10410 generated files.
10411
10412 2019-02-22 Keith Seitz <keiths@redhat.com>
10413
10414 PR symtab/23853
10415 * linespec.c (create_sals_line_offset): Search for the default
10416 symtab's filename instead of its fullname.
10417
10418 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10419
10420 * NEWS: Update style defaults.
10421
10422 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10423
10424 * main.c (captured_main_1): Disable styling in batch mode.
10425
10426 2019-02-20 Tom Tromey <tom@tromey.com>
10427
10428 * symtab.c (symtab_symbol_info): Fix typos.
10429
10430 2019-02-20 Tom Tromey <tromey@adacore.com>
10431
10432 * findcmd.c (_initialize_mem_search): Use upper case for
10433 metasyntactic variables.
10434
10435 2019-02-20 Alan Hayward <alan.hayward@arm.com>
10436
10437 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10438 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10439
10440 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10441
10442 * top.h (source_file_name): Change to std::string.
10443 * top.c (source_file_name): Likewise.
10444 (command_line_input): Adjust.
10445 * cli/cli-script.c (script_from_file): Adjust.
10446
10447 2019-02-19 Tom Tromey <tromey@adacore.com>
10448
10449 * ravenscar-thread.c
10450 (ravenscar_thread_target::update_thread_list): Don't call
10451 ada_build_task_list.
10452 * ada-lang.h (ada_build_task_list): Don't declare.
10453 * ada-tasks.c (struct ada_tasks_inferior_data)
10454 <task_list_valid_p>: Now bool.
10455 (read_known_tasks, ada_task_list_changed)
10456 (ada_tasks_invalidate_inferior_data): Update.
10457 (read_known_tasks_array): Return bool.
10458 (read_known_tasks_list): Likewise.
10459 (read_known_tasks): Return void.
10460 (ada_build_task_list): Now static.
10461
10462 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10463
10464 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10465 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10466
10467 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10468
10469 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10470 variant for ada_tasks_pspace_data_handle and
10471 ada_tasks_inferior_data_handle.
10472 (ada_tasks_pspace_data_cleanup): New function.
10473 (ada_tasks_inferior_data_cleanup): New function.
10474
10475 2019-02-17 Tom Tromey <tom@tromey.com>
10476
10477 * macrotab.h (macro_source_fullname): Return a std::string.
10478 * macrotab.c (macro_include, check_for_redefinition)
10479 (macro_undef, macro_lookup_definition, foreach_macro)
10480 (foreach_macro_in_scope): Update.
10481 (macro_source_fullname): Return a std::string.
10482 * macrocmd.c (show_pp_source_pos): Update.
10483
10484 2019-02-17 Tom Tromey <tom@tromey.com>
10485
10486 * macrocmd.c (show_pp_source_pos): Style the file names.
10487
10488 2019-02-17 Tom Tromey <tom@tromey.com>
10489
10490 PR tui/24197:
10491 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10492
10493 2019-02-17 Tom Tromey <tom@tromey.com>
10494
10495 * ada-lang.c (user_select_syms): Use filtered printing.
10496 * utils.c (wrap_style): New global.
10497 (desired_style): Remove.
10498 (emit_style_escape): Add stream parameter.
10499 (set_output_style, reset_terminal_style, prompt_for_continue):
10500 Update.
10501 (flush_wrap_buffer): Only flush gdb_stdout.
10502 (wrap_here): Set wrap_style.
10503 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10504 treat escape sequences as a character. Change when wrap buffer is
10505 flushed.
10506 (fputs_styled): Do not set the output style when the default is
10507 requested.
10508 * ui-style.h (struct ui_file_style) <is_default>: New method.
10509 * source.c (print_source_lines_base): Emit escape sequences in one
10510 piece.
10511
10512 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10513
10514 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10515 integers and enumeration types.
10516
10517 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10518
10519 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10520 instead of lookup_symbol_in_language
10521 (do_exact_match): New function.
10522 (ada_get_symbol_name_matcher): Return do_exact_match when
10523 doing a verbatim match.
10524
10525 2019-02-15 Tom Tromey <tromey@adacore.com>
10526
10527 * ravenscar-thread.c (ravenscar_thread_target::resume)
10528 (ravenscar_thread_target::wait): Special case wildcard requests.
10529
10530 2019-02-15 Tom Tromey <tromey@adacore.com>
10531
10532 * ravenscar-thread.c (base_ptid): Remove.
10533 (struct ravenscar_thread_target) <close>: New method.
10534 <m_base_ptid>: New member.
10535 <update_inferior_ptid, active_task, task_is_currently_active,
10536 runtime_initialized>: Declare methods.
10537 <ravenscar_thread_target>: Add constructor.
10538 (ravenscar_thread_target::task_is_currently_active)
10539 (ravenscar_thread_target::update_inferior_ptid)
10540 (ravenscar_runtime_initialized): Rename. Now methods.
10541 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10542 (ravenscar_thread_target::update_thread_list): Update.
10543 (ravenscar_thread_target::active_task): Now method.
10544 (ravenscar_thread_target::store_registers)
10545 (ravenscar_thread_target::prepare_to_store)
10546 (ravenscar_thread_target::prepare_to_store)
10547 (ravenscar_thread_target::mourn_inferior): Update.
10548 (ravenscar_inferior_created): Use "new" to create target.
10549 (ravenscar_thread_target::get_ada_task_ptid): Update.
10550 (_initialize_ravenscar): Don't initialize base_ptid.
10551 (ravenscar_ops): Remove global.
10552
10553 2019-02-15 Tom Tromey <tromey@adacore.com>
10554
10555 * target.h (push_target): Declare new overload.
10556 * target.c (push_target): New overload, taking an rvalue reference.
10557 * remote.c (remote_target::open_1): Use push_target overload.
10558 * corelow.c (core_target_open): Use push_target overload.
10559
10560 2019-02-15 Tom Tromey <tromey@adacore.com>
10561
10562 * ravenscar-thread.c (is_ravenscar_task)
10563 (ravenscar_task_is_currently_active): Return bool.
10564 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10565 (_initialize_ravenscar): Remove "(void)".
10566 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10567 Return bool.
10568
10569 2019-02-15 Tom Tromey <tromey@adacore.com>
10570
10571 * ravenscar-thread.c (ravenscar_runtime_initializer)
10572 (has_ravenscar_runtime, get_running_thread_id)
10573 (ravenscar_thread_target::resume): Fix indentation.
10574
10575 2019-02-15 Tom Tromey <tromey@adacore.com>
10576
10577 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10578 from ravenscar_arch_ops.
10579 (sparc_ravenscar_ops::fetch_registers)
10580 (sparc_ravenscar_ops::store_registers): Now methods.
10581 (sparc_ravenscar_prepare_to_store): Remove.
10582 (sparc_ravenscar_ops): Redefine.
10583 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10584 methods and destructor. Remove members.
10585 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10586 (ravenscar_thread_target::store_registers)
10587 (ravenscar_thread_target::prepare_to_store): Update.
10588 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10589 Remove.
10590 (struct ppc_ravenscar_powerpc_ops): Derive from
10591 ravenscar_arch_ops.
10592 (ppc_ravenscar_powerpc_ops::fetch_registers)
10593 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10594 (ppc_ravenscar_powerpc_ops): Redefine.
10595 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10596 (ppc_ravenscar_e500_ops::fetch_registers)
10597 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10598 (ppc_ravenscar_e500_ops): Redefine.
10599 * aarch64-ravenscar-thread.c
10600 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10601 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10602 (aarch64_ravenscar_fetch_registers)
10603 (aarch64_ravenscar_store_registers): Now methods.
10604 (aarch64_ravenscar_ops): Redefine.
10605
10606 2019-02-15 Tom Tromey <tromey@adacore.com>
10607
10608 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10609 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10610 (ravenscar_thread_target::stopped_by_watchpoint)
10611 (ravenscar_thread_target::stopped_data_address)
10612 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10613
10614 2019-02-15 Tom Tromey <tromey@adacore.com>
10615
10616 * ravenscar-thread.c: Fix some typos.
10617
10618 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10619 Tom Tromey <tromey@adacore.com>
10620
10621 * ada-lang.c (ada_exception_sal): Change addr_string to a
10622 std::string.
10623 (create_ada_exception_catchpoint): Update.
10624
10625 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10626 Tom Tromey <tromey@adacore.com>
10627
10628 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10629 (bp_location_ops): Remove.
10630 (base_breakpoint_allocate_location): Update.
10631 (free_bp_location): Update.
10632 * ada-lang.c (class ada_catchpoint_location)
10633 <ada_catchpoint_location>: Remove ops parameter.
10634 (ada_catchpoint_location_dtor): Remove.
10635 (ada_catchpoint_location_ops): Remove.
10636 (allocate_location_exception): Update.
10637 * breakpoint.h (struct bp_location_ops): Remove.
10638 (class bp_location) <bp_location>: Remove bp_location_ops
10639 parameter.
10640 <~bp_location>: Add destructor.
10641 <ops>: Remove.
10642
10643 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10644 Pedro Alves <palves@redhat.com>
10645
10646 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10647 'PATH_MAX'.
10648
10649 2019-02-14 David Michael <fedora.dm0@gmail.com>
10650 Samuel Thibault <samuel.thibault@gnu.org>
10651 Thomas Schwinge <thomas@codesourcery.com>
10652
10653 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10654 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10655
10656 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10657
10658 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10659 (check_empty): Use "const char *".
10660
10661 * gnu-nat.c (gnu_nat_target::detach): Instead of
10662 'detach_inferior (pid)' call
10663 'detach_inferior (find_inferior_pid (pid))'.
10664
10665 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10666 'nat/fork-inferior.o'.
10667 * gnu-nat.c: #include "nat/fork-inferior.h".
10668
10669 * gnu-nat.c (gnu_nat_target::detach): Instead of
10670 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10671 * gnu-nat.h: #include "inf-child.h".
10672 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10673 'i386_gnu_nat_target::fetch_registers'.
10674 (gnu_store_registers): Rename/move to
10675 'i386_gnu_nat_target::store_registers'.
10676
10677 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10678 * gnu-nat.h (mach_thread_info): New function.
10679 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10680
10681 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10682
10683 2019-02-14 Frederic Konrad <konrad@adacore.com>
10684
10685 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10686
10687 2019-02-14 Joel Brobecker <brobecker@adacore.com>
10688
10689 * windows-nat.c (windows_add_thread): Add new parameter
10690 "main_thread_p" with default value set to false. Update
10691 function documentation as well as all callers.
10692 (windows_delete_thread): Likewise.
10693 (fake_create_process): Update call to windows_add_thread.
10694 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10695 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10696 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10697 call to windows_delete_thread.
10698
10699 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10700
10701 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10702
10703 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10704
10705 * symfile.c (find_separate_debug_file): Use canonical path of
10706 sysroot with child_path instead of gdb_sysroot if it is valid.
10707
10708 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10709
10710 * symfile.c (find_separate_debug_file): Use child_path to
10711 determine if an object file is under a sysroot.
10712
10713 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10714
10715 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10716 unittests/child-path-selftests.c.
10717 * common/pathstuff.c (child_path): New function.
10718 * common/pathstuff.h (child_path): New prototype.
10719 * unittests/child-path-selftests.c: New file.
10720
10721 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10722
10723 * symfile.c (find_separate_debug_file): Look for separate debug
10724 files in debug directories under the sysroot.
10725
10726 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10727
10728 * symtab.h (struct minimal_symbol data_p): New const method.
10729 (struct minimal_symbol text_p): Likewise.
10730 * symtab.c (output_source_filename): Use file name style
10731 to print file name.
10732 (print_symbol_info): Likewise.
10733 (print_msymbol_info): Use address style to print addresses.
10734 Use function name style to print executable text symbols.
10735 (expand_symtab_containing_pc): Use data_p.
10736 (find_pc_sect_compunit_symtab): Likewise.
10737
10738 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10739
10740 * breakpoint.c (describe_other_breakpoints): Use address style
10741 to print addresses.
10742 (say_where): Likewise.
10743
10744 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10745
10746 * ada-typeprint.c (print_func_type): Print function name
10747 style to print function name.
10748 * c-typeprint.c (c_print_type_1): Likewise.
10749
10750 2019-02-11 Alan Hayward <alan.hayward@arm.com>
10751
10752 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10753 for execve.
10754
10755 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10756
10757 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10758 type_stack.
10759
10760 2019-02-10 Joel Brobecker <brobecker@adacore.com>
10761
10762 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10763 TYPE_CODE_REF types.
10764
10765 2019-02-08 Jim Wilson <jimw@sifive.com>
10766
10767 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10768 (riscv_linux_fregset): New.
10769 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10770
10771 2019-02-07 Tom Tromey <tom@tromey.com>
10772
10773 * thread.c (thread_cancel_execution_command): Update.
10774 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10775 methods.
10776 (struct thread_fsm_ops): Remove.
10777 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10778 (thread_fsm_should_stop, thread_fsm_return_value)
10779 (thread_fsm_set_finished, thread_fsm_finished_p)
10780 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10781 Don't declare.
10782 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10783 * infrun.c (clear_proceed_status_thread)
10784 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10785 (print_stop_event): Update.
10786 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10787 Add constructor.
10788 (step_command_fsm_ops): Remove.
10789 (new_step_command_fsm): Remove.
10790 (step_1): Update.
10791 (step_command_fsm::should_stop): Rename from
10792 step_command_fsm_should_stop.
10793 (step_command_fsm::clean_up): Rename from
10794 step_command_fsm_clean_up.
10795 (step_command_fsm::do_async_reply_reason): Rename from
10796 step_command_fsm_async_reply_reason.
10797 (struct until_next_fsm): Inherit from thread_fsm. Add
10798 constructor.
10799 (until_next_fsm_ops): Remove.
10800 (new_until_next_fsm): Remove.
10801 (until_next_fsm::should_stop): Rename from
10802 until_next_fsm_should_stop.
10803 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10804 (until_next_fsm::do_async_reply_reason): Rename from
10805 until_next_fsm_async_reply_reason.
10806 (struct finish_command_fsm): Inherit from thread_fsm. Add
10807 constructor. Change type of breakpoint.
10808 (finish_command_fsm_ops): Remove.
10809 (new_finish_command_fsm): Remove.
10810 (finish_command_fsm::should_stop): Rename from
10811 finish_command_fsm_should_stop.
10812 (finish_command_fsm::clean_up): Rename from
10813 finish_command_fsm_clean_up.
10814 (finish_command_fsm::return_value): Rename from
10815 finish_command_fsm_return_value.
10816 (finish_command_fsm::do_async_reply_reason): Rename from
10817 finish_command_fsm_async_reply_reason.
10818 (finish_command): Update.
10819 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10820 Add constructor.
10821 (call_thread_fsm_ops): Remove.
10822 (call_thread_fsm::call_thread_fsm): Rename from
10823 new_call_thread_fsm.
10824 (call_thread_fsm::should_stop): Rename from
10825 call_thread_fsm_should_stop.
10826 (call_thread_fsm::should_notify_stop): Rename from
10827 call_thread_fsm_should_notify_stop.
10828 (run_inferior_call, call_function_by_hand_dummy): Update.
10829 * cli/cli-interp.c (should_print_stop_to_console): Update.
10830 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10831 Add constructor. Change type of location_breakpoint,
10832 caller_breakpoint.
10833 (until_break_fsm_ops): Remove.
10834 (new_until_break_fsm): Remove.
10835 (until_break_fsm::should_stop): Rename from
10836 until_break_fsm_should_stop.
10837 (until_break_fsm::clean_up): Rename from
10838 until_break_fsm_clean_up.
10839 (until_break_fsm::do_async_reply_reason): Rename from
10840 until_break_fsm_async_reply_reason.
10841 (until_break_command): Update.
10842 * thread-fsm.c: Remove.
10843 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10844
10845 2019-02-07 Tom Tromey <tom@tromey.com>
10846
10847 * yy-remap.h: Add include guard.
10848 * xtensa-tdep.h: Add include guard.
10849 * xcoffread.h: Rename include guard.
10850 * varobj-iter.h: Add include guard.
10851 * tui/tui.h: Rename include guard.
10852 * tui/tui-winsource.h: Rename include guard.
10853 * tui/tui-wingeneral.h: Rename include guard.
10854 * tui/tui-windata.h: Rename include guard.
10855 * tui/tui-win.h: Rename include guard.
10856 * tui/tui-stack.h: Rename include guard.
10857 * tui/tui-source.h: Rename include guard.
10858 * tui/tui-regs.h: Rename include guard.
10859 * tui/tui-out.h: Rename include guard.
10860 * tui/tui-layout.h: Rename include guard.
10861 * tui/tui-io.h: Rename include guard.
10862 * tui/tui-hooks.h: Rename include guard.
10863 * tui/tui-file.h: Rename include guard.
10864 * tui/tui-disasm.h: Rename include guard.
10865 * tui/tui-data.h: Rename include guard.
10866 * tui/tui-command.h: Rename include guard.
10867 * tic6x-tdep.h: Add include guard.
10868 * target/waitstatus.h: Rename include guard.
10869 * target/wait.h: Rename include guard.
10870 * target/target.h: Rename include guard.
10871 * target/resume.h: Rename include guard.
10872 * target-float.h: Rename include guard.
10873 * stabsread.h: Add include guard.
10874 * rs6000-tdep.h: Add include guard.
10875 * riscv-fbsd-tdep.h: Add include guard.
10876 * regformats/regdef.h: Rename include guard.
10877 * record.h: Rename include guard.
10878 * python/python.h: Rename include guard.
10879 * python/python-internal.h: Rename include guard.
10880 * python/py-stopevent.h: Rename include guard.
10881 * python/py-ref.h: Rename include guard.
10882 * python/py-record.h: Rename include guard.
10883 * python/py-record-full.h: Rename include guard.
10884 * python/py-record-btrace.h: Rename include guard.
10885 * python/py-instruction.h: Rename include guard.
10886 * python/py-events.h: Rename include guard.
10887 * python/py-event.h: Rename include guard.
10888 * procfs.h: Add include guard.
10889 * proc-utils.h: Add include guard.
10890 * p-lang.h: Add include guard.
10891 * or1k-tdep.h: Rename include guard.
10892 * observable.h: Rename include guard.
10893 * nto-tdep.h: Rename include guard.
10894 * nat/x86-linux.h: Rename include guard.
10895 * nat/x86-linux-dregs.h: Rename include guard.
10896 * nat/x86-gcc-cpuid.h: Add include guard.
10897 * nat/x86-dregs.h: Rename include guard.
10898 * nat/x86-cpuid.h: Rename include guard.
10899 * nat/ppc-linux.h: Rename include guard.
10900 * nat/mips-linux-watch.h: Rename include guard.
10901 * nat/linux-waitpid.h: Rename include guard.
10902 * nat/linux-ptrace.h: Rename include guard.
10903 * nat/linux-procfs.h: Rename include guard.
10904 * nat/linux-osdata.h: Rename include guard.
10905 * nat/linux-nat.h: Rename include guard.
10906 * nat/linux-namespaces.h: Rename include guard.
10907 * nat/linux-btrace.h: Rename include guard.
10908 * nat/glibc_thread_db.h: Rename include guard.
10909 * nat/gdb_thread_db.h: Rename include guard.
10910 * nat/gdb_ptrace.h: Rename include guard.
10911 * nat/fork-inferior.h: Rename include guard.
10912 * nat/amd64-linux-siginfo.h: Rename include guard.
10913 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10914 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10915 * nat/aarch64-linux.h: Rename include guard.
10916 * nat/aarch64-linux-hw-point.h: Rename include guard.
10917 * mn10300-tdep.h: Add include guard.
10918 * mips-linux-tdep.h: Add include guard.
10919 * mi/mi-parse.h: Rename include guard.
10920 * mi/mi-out.h: Rename include guard.
10921 * mi/mi-main.h: Rename include guard.
10922 * mi/mi-interp.h: Rename include guard.
10923 * mi/mi-getopt.h: Rename include guard.
10924 * mi/mi-console.h: Rename include guard.
10925 * mi/mi-common.h: Rename include guard.
10926 * mi/mi-cmds.h: Rename include guard.
10927 * mi/mi-cmd-break.h: Rename include guard.
10928 * m2-lang.h: Add include guard.
10929 * location.h: Rename include guard.
10930 * linux-record.h: Rename include guard.
10931 * linux-nat.h: Add include guard.
10932 * linux-fork.h: Add include guard.
10933 * i386-darwin-tdep.h: Rename include guard.
10934 * hppa-linux-offsets.h: Add include guard.
10935 * guile/guile.h: Rename include guard.
10936 * guile/guile-internal.h: Rename include guard.
10937 * gnu-nat.h: Rename include guard.
10938 * gdb-stabs.h: Rename include guard.
10939 * frv-tdep.h: Add include guard.
10940 * f-lang.h: Add include guard.
10941 * event-loop.h: Add include guard.
10942 * darwin-nat.h: Rename include guard.
10943 * cp-abi.h: Rename include guard.
10944 * config/sparc/nm-sol2.h: Rename include guard.
10945 * config/nm-nto.h: Rename include guard.
10946 * config/nm-linux.h: Add include guard.
10947 * config/i386/nm-i386gnu.h: Rename include guard.
10948 * config/djgpp/nl_types.h: Rename include guard.
10949 * config/djgpp/langinfo.h: Rename include guard.
10950 * compile/gcc-cp-plugin.h: Add include guard.
10951 * compile/gcc-c-plugin.h: Add include guard.
10952 * compile/compile.h: Rename include guard.
10953 * compile/compile-object-run.h: Rename include guard.
10954 * compile/compile-object-load.h: Rename include guard.
10955 * compile/compile-internal.h: Rename include guard.
10956 * compile/compile-cplus.h: Rename include guard.
10957 * compile/compile-c.h: Rename include guard.
10958 * common/xml-utils.h: Rename include guard.
10959 * common/x86-xstate.h: Rename include guard.
10960 * common/version.h: Rename include guard.
10961 * common/vec.h: Rename include guard.
10962 * common/tdesc.h: Rename include guard.
10963 * common/selftest.h: Rename include guard.
10964 * common/scoped_restore.h: Rename include guard.
10965 * common/scoped_mmap.h: Rename include guard.
10966 * common/scoped_fd.h: Rename include guard.
10967 * common/safe-iterator.h: Rename include guard.
10968 * common/run-time-clock.h: Rename include guard.
10969 * common/refcounted-object.h: Rename include guard.
10970 * common/queue.h: Rename include guard.
10971 * common/ptid.h: Rename include guard.
10972 * common/print-utils.h: Rename include guard.
10973 * common/preprocessor.h: Rename include guard.
10974 * common/pathstuff.h: Rename include guard.
10975 * common/observable.h: Rename include guard.
10976 * common/netstuff.h: Rename include guard.
10977 * common/job-control.h: Rename include guard.
10978 * common/host-defs.h: Rename include guard.
10979 * common/gdb_wait.h: Rename include guard.
10980 * common/gdb_vecs.h: Rename include guard.
10981 * common/gdb_unlinker.h: Rename include guard.
10982 * common/gdb_unique_ptr.h: Rename include guard.
10983 * common/gdb_tilde_expand.h: Rename include guard.
10984 * common/gdb_sys_time.h: Rename include guard.
10985 * common/gdb_string_view.h: Rename include guard.
10986 * common/gdb_splay_tree.h: Rename include guard.
10987 * common/gdb_setjmp.h: Rename include guard.
10988 * common/gdb_ref_ptr.h: Rename include guard.
10989 * common/gdb_optional.h: Rename include guard.
10990 * common/gdb_locale.h: Rename include guard.
10991 * common/gdb_assert.h: Rename include guard.
10992 * common/filtered-iterator.h: Rename include guard.
10993 * common/filestuff.h: Rename include guard.
10994 * common/fileio.h: Rename include guard.
10995 * common/environ.h: Rename include guard.
10996 * common/common-utils.h: Rename include guard.
10997 * common/common-types.h: Rename include guard.
10998 * common/common-regcache.h: Rename include guard.
10999 * common/common-inferior.h: Rename include guard.
11000 * common/common-gdbthread.h: Rename include guard.
11001 * common/common-exceptions.h: Rename include guard.
11002 * common/common-defs.h: Rename include guard.
11003 * common/common-debug.h: Rename include guard.
11004 * common/cleanups.h: Rename include guard.
11005 * common/buffer.h: Rename include guard.
11006 * common/btrace-common.h: Rename include guard.
11007 * common/break-common.h: Rename include guard.
11008 * cli/cli-utils.h: Rename include guard.
11009 * cli/cli-style.h: Rename include guard.
11010 * cli/cli-setshow.h: Rename include guard.
11011 * cli/cli-script.h: Rename include guard.
11012 * cli/cli-interp.h: Rename include guard.
11013 * cli/cli-decode.h: Rename include guard.
11014 * cli/cli-cmds.h: Rename include guard.
11015 * charset-list.h: Add include guard.
11016 * buildsym-legacy.h: Rename include guard.
11017 * bfin-tdep.h: Add include guard.
11018 * ax.h: Rename include guard.
11019 * arm-linux-tdep.h: Add include guard.
11020 * arm-fbsd-tdep.h: Add include guard.
11021 * arch/xtensa.h: Rename include guard.
11022 * arch/tic6x.h: Add include guard.
11023 * arch/i386.h: Add include guard.
11024 * arch/arm.h: Rename include guard.
11025 * arch/arm-linux.h: Rename include guard.
11026 * arch/arm-get-next-pcs.h: Rename include guard.
11027 * arch/amd64.h: Add include guard.
11028 * arch/aarch64-insn.h: Rename include guard.
11029 * arch-utils.h: Rename include guard.
11030 * annotate.h: Add include guard.
11031 * amd64-darwin-tdep.h: Rename include guard.
11032 * aarch64-linux-tdep.h: Add include guard.
11033 * aarch64-fbsd-tdep.h: Add include guard.
11034 * aarch32-linux-nat.h: Add include guard.
11035
11036 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11037
11038 * macrotab.c (macro_define_internal): New function that
11039 factorizes macro_define_object_internal and macro_define_function
11040 code.
11041 (macro_define_object_internal): Use macro_define_internal.
11042 (macro_define_function): Likewise.
11043
11044 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11045
11046 * macrocmd.c (extract_identifier): Return
11047 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11048 callers.
11049
11050 2019-02-06 John Baldwin <jhb@FreeBSD.org>
11051
11052 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11053
11054 2019-02-05 Tom Tromey <tom@tromey.com>
11055
11056 * target.c (target_stack::unpush): Move assertion earlier.
11057
11058 2019-01-30 Tom Tromey <tom@tromey.com>
11059
11060 PR python/23615:
11061 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11062 (gdbpy_parse_and_eval): Likewise.
11063 * python/python-internal.h (gdbpy_allow_threads): New class.
11064
11065 2019-01-28 John Baldwin <jhb@FreeBSD.org>
11066
11067 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11068 (aarch64_fbsd_fpregmap): Move earlier.
11069 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11070 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11071 instead of individual calls to trad_frame_set_reg_addr.
11072 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11073 earlier.
11074 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11075 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11076 instead of individual calls to trad_frame_set_reg_addr.
11077
11078 2019-01-28 Alan Hayward <alan.hayward@arm.com>
11079
11080 * CONTRIBUTE: Replace contribution list with wiki link.
11081
11082 2019-01-25 Tom Tromey <tom@tromey.com>
11083
11084 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11085
11086 2019-01-25 Tom Tromey <tom@tromey.com>
11087
11088 * xtensa-linux-nat.c: Fix common/ includes.
11089 * xml-support.h: Fix common/ includes.
11090 * xml-support.c: Fix common/ includes.
11091 * x86-linux-nat.c: Fix common/ includes.
11092 * windows-nat.c: Fix common/ includes.
11093 * varobj.h: Fix common/ includes.
11094 * varobj.c: Fix common/ includes.
11095 * value.c: Fix common/ includes.
11096 * valops.c: Fix common/ includes.
11097 * utils.c: Fix common/ includes.
11098 * unittests/xml-utils-selftests.c: Fix common/ includes.
11099 * unittests/utils-selftests.c: Fix common/ includes.
11100 * unittests/unpack-selftests.c: Fix common/ includes.
11101 * unittests/tracepoint-selftests.c: Fix common/ includes.
11102 * unittests/style-selftests.c: Fix common/ includes.
11103 * unittests/string_view-selftests.c: Fix common/ includes.
11104 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11105 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11106 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11107 * unittests/rsp-low-selftests.c: Fix common/ includes.
11108 * unittests/parse-connection-spec-selftests.c: Fix common/
11109 includes.
11110 * unittests/optional-selftests.c: Fix common/ includes.
11111 * unittests/offset-type-selftests.c: Fix common/ includes.
11112 * unittests/observable-selftests.c: Fix common/ includes.
11113 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11114 * unittests/memrange-selftests.c: Fix common/ includes.
11115 * unittests/memory-map-selftests.c: Fix common/ includes.
11116 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11117 * unittests/function-view-selftests.c: Fix common/ includes.
11118 * unittests/environ-selftests.c: Fix common/ includes.
11119 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11120 * unittests/common-utils-selftests.c: Fix common/ includes.
11121 * unittests/cli-utils-selftests.c: Fix common/ includes.
11122 * unittests/array-view-selftests.c: Fix common/ includes.
11123 * ui-file.c: Fix common/ includes.
11124 * tui/tui-io.c: Fix common/ includes.
11125 * tracepoint.h: Fix common/ includes.
11126 * tracepoint.c: Fix common/ includes.
11127 * tracefile-tfile.c: Fix common/ includes.
11128 * top.h: Fix common/ includes.
11129 * top.c: Fix common/ includes.
11130 * thread.c: Fix common/ includes.
11131 * target/waitstatus.h: Fix common/ includes.
11132 * target/waitstatus.c: Fix common/ includes.
11133 * target.h: Fix common/ includes.
11134 * target.c: Fix common/ includes.
11135 * target-memory.c: Fix common/ includes.
11136 * target-descriptions.c: Fix common/ includes.
11137 * symtab.h: Fix common/ includes.
11138 * symfile.c: Fix common/ includes.
11139 * stap-probe.c: Fix common/ includes.
11140 * spu-linux-nat.c: Fix common/ includes.
11141 * sparc-nat.c: Fix common/ includes.
11142 * source.c: Fix common/ includes.
11143 * solib.c: Fix common/ includes.
11144 * solib-target.c: Fix common/ includes.
11145 * ser-unix.c: Fix common/ includes.
11146 * ser-tcp.c: Fix common/ includes.
11147 * ser-pipe.c: Fix common/ includes.
11148 * ser-base.c: Fix common/ includes.
11149 * selftest-arch.c: Fix common/ includes.
11150 * s12z-tdep.c: Fix common/ includes.
11151 * rust-exp.y: Fix common/ includes.
11152 * rs6000-aix-tdep.c: Fix common/ includes.
11153 * riscv-tdep.c: Fix common/ includes.
11154 * remote.c: Fix common/ includes.
11155 * remote-notif.h: Fix common/ includes.
11156 * remote-fileio.h: Fix common/ includes.
11157 * remote-fileio.c: Fix common/ includes.
11158 * regcache.h: Fix common/ includes.
11159 * regcache.c: Fix common/ includes.
11160 * record-btrace.c: Fix common/ includes.
11161 * python/python.c: Fix common/ includes.
11162 * python/py-type.c: Fix common/ includes.
11163 * python/py-inferior.c: Fix common/ includes.
11164 * progspace.h: Fix common/ includes.
11165 * producer.c: Fix common/ includes.
11166 * procfs.c: Fix common/ includes.
11167 * proc-api.c: Fix common/ includes.
11168 * printcmd.c: Fix common/ includes.
11169 * ppc-linux-nat.c: Fix common/ includes.
11170 * parser-defs.h: Fix common/ includes.
11171 * osdata.c: Fix common/ includes.
11172 * obsd-nat.c: Fix common/ includes.
11173 * nat/x86-linux.c: Fix common/ includes.
11174 * nat/x86-linux-dregs.c: Fix common/ includes.
11175 * nat/x86-dregs.h: Fix common/ includes.
11176 * nat/x86-dregs.c: Fix common/ includes.
11177 * nat/ppc-linux.c: Fix common/ includes.
11178 * nat/mips-linux-watch.h: Fix common/ includes.
11179 * nat/mips-linux-watch.c: Fix common/ includes.
11180 * nat/linux-waitpid.c: Fix common/ includes.
11181 * nat/linux-ptrace.h: Fix common/ includes.
11182 * nat/linux-ptrace.c: Fix common/ includes.
11183 * nat/linux-procfs.c: Fix common/ includes.
11184 * nat/linux-personality.c: Fix common/ includes.
11185 * nat/linux-osdata.c: Fix common/ includes.
11186 * nat/linux-namespaces.c: Fix common/ includes.
11187 * nat/linux-btrace.h: Fix common/ includes.
11188 * nat/linux-btrace.c: Fix common/ includes.
11189 * nat/fork-inferior.c: Fix common/ includes.
11190 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11191 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11192 * nat/aarch64-linux.c: Fix common/ includes.
11193 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11194 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11195 * namespace.h: Fix common/ includes.
11196 * mips-linux-tdep.c: Fix common/ includes.
11197 * minsyms.c: Fix common/ includes.
11198 * mi/mi-parse.h: Fix common/ includes.
11199 * mi/mi-main.c: Fix common/ includes.
11200 * mi/mi-cmd-env.c: Fix common/ includes.
11201 * memrange.h: Fix common/ includes.
11202 * memattr.c: Fix common/ includes.
11203 * maint.h: Fix common/ includes.
11204 * maint.c: Fix common/ includes.
11205 * main.c: Fix common/ includes.
11206 * machoread.c: Fix common/ includes.
11207 * location.c: Fix common/ includes.
11208 * linux-thread-db.c: Fix common/ includes.
11209 * linux-nat.c: Fix common/ includes.
11210 * linux-fork.c: Fix common/ includes.
11211 * inline-frame.c: Fix common/ includes.
11212 * infrun.c: Fix common/ includes.
11213 * inflow.c: Fix common/ includes.
11214 * inferior.h: Fix common/ includes.
11215 * inferior.c: Fix common/ includes.
11216 * infcmd.c: Fix common/ includes.
11217 * inf-ptrace.c: Fix common/ includes.
11218 * inf-child.c: Fix common/ includes.
11219 * ia64-linux-nat.c: Fix common/ includes.
11220 * i387-tdep.c: Fix common/ includes.
11221 * i386-tdep.c: Fix common/ includes.
11222 * i386-linux-tdep.c: Fix common/ includes.
11223 * i386-linux-nat.c: Fix common/ includes.
11224 * i386-go32-tdep.c: Fix common/ includes.
11225 * i386-fbsd-tdep.c: Fix common/ includes.
11226 * i386-fbsd-nat.c: Fix common/ includes.
11227 * guile/scm-type.c: Fix common/ includes.
11228 * guile/guile.c: Fix common/ includes.
11229 * go32-nat.c: Fix common/ includes.
11230 * gnu-nat.c: Fix common/ includes.
11231 * gdbthread.h: Fix common/ includes.
11232 * gdbarch-selftests.c: Fix common/ includes.
11233 * gdb_usleep.c: Fix common/ includes.
11234 * gdb_select.h: Fix common/ includes.
11235 * gdb_bfd.c: Fix common/ includes.
11236 * gcore.c: Fix common/ includes.
11237 * fork-child.c: Fix common/ includes.
11238 * findvar.c: Fix common/ includes.
11239 * fbsd-nat.c: Fix common/ includes.
11240 * event-top.c: Fix common/ includes.
11241 * event-loop.c: Fix common/ includes.
11242 * dwarf2read.c: Fix common/ includes.
11243 * dwarf2loc.c: Fix common/ includes.
11244 * dwarf2-frame.c: Fix common/ includes.
11245 * dwarf-index-cache.c: Fix common/ includes.
11246 * dtrace-probe.c: Fix common/ includes.
11247 * disasm-selftests.c: Fix common/ includes.
11248 * defs.h: Fix common/ includes.
11249 * csky-tdep.c: Fix common/ includes.
11250 * cp-valprint.c: Fix common/ includes.
11251 * cp-support.h: Fix common/ includes.
11252 * cp-support.c: Fix common/ includes.
11253 * corelow.c: Fix common/ includes.
11254 * completer.h: Fix common/ includes.
11255 * completer.c: Fix common/ includes.
11256 * compile/compile.c: Fix common/ includes.
11257 * compile/compile-loc2c.c: Fix common/ includes.
11258 * compile/compile-cplus-types.c: Fix common/ includes.
11259 * compile/compile-cplus-symbols.c: Fix common/ includes.
11260 * command.h: Fix common/ includes.
11261 * cli/cli-dump.c: Fix common/ includes.
11262 * cli/cli-cmds.c: Fix common/ includes.
11263 * charset.c: Fix common/ includes.
11264 * build-id.c: Fix common/ includes.
11265 * btrace.h: Fix common/ includes.
11266 * btrace.c: Fix common/ includes.
11267 * breakpoint.h: Fix common/ includes.
11268 * breakpoint.c: Fix common/ includes.
11269 * ax.h:
11270 (enum agent_op): Fix common/ includes.
11271 * ax-general.c (struct aop_map): Fix common/ includes.
11272 * ax-gdb.c: Fix common/ includes.
11273 * auxv.c: Fix common/ includes.
11274 * auto-load.c: Fix common/ includes.
11275 * arm-tdep.c: Fix common/ includes.
11276 * arch/riscv.c: Fix common/ includes.
11277 * arch/ppc-linux-common.c: Fix common/ includes.
11278 * arch/i386.c: Fix common/ includes.
11279 * arch/arm.c: Fix common/ includes.
11280 * arch/arm-linux.c: Fix common/ includes.
11281 * arch/arm-get-next-pcs.c: Fix common/ includes.
11282 * arch/amd64.c: Fix common/ includes.
11283 * arch/aarch64.c: Fix common/ includes.
11284 * arch/aarch64-insn.c: Fix common/ includes.
11285 * arch-utils.c: Fix common/ includes.
11286 * amd64-windows-tdep.c: Fix common/ includes.
11287 * amd64-tdep.c: Fix common/ includes.
11288 * amd64-sol2-tdep.c: Fix common/ includes.
11289 * amd64-obsd-tdep.c: Fix common/ includes.
11290 * amd64-nbsd-tdep.c: Fix common/ includes.
11291 * amd64-linux-tdep.c: Fix common/ includes.
11292 * amd64-linux-nat.c: Fix common/ includes.
11293 * amd64-fbsd-tdep.c: Fix common/ includes.
11294 * amd64-fbsd-nat.c: Fix common/ includes.
11295 * amd64-dicos-tdep.c: Fix common/ includes.
11296 * amd64-darwin-tdep.c: Fix common/ includes.
11297 * agent.c: Fix common/ includes.
11298 * ada-lang.h: Fix common/ includes.
11299 * ada-lang.c: Fix common/ includes.
11300 * aarch64-tdep.c: Fix common/ includes.
11301
11302 2019-01-25 Tom Tromey <tom@tromey.com>
11303
11304 * common/create-version.sh: Use common/version.h.
11305
11306 2019-01-24 Pedro Alves <palves@redhat.com>
11307
11308 * infrun.c (signal_stop, signal_print, signal_program)
11309 (signal_catch, signal_pass): Now arrays instead of pointers.
11310 (update_signals_program_target, do_target_resume)
11311 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11312 * linux-nat.c (linux_nat_target::pass_signals)
11313 (linux_nat_target::create_inferior, linux_nat_target::attach):
11314 Adjust.
11315 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11316 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11317 * procfs.c (procfs_target::pass_signals): Adjust.
11318 * record-full.c (record_full_target::resume): Adjust.
11319 * remote.c (remote_target::pass_signals)
11320 (remote_target::program_signals): Adjust.
11321 * target-debug.h (target_debug_print_signals): Now takes a
11322 gdb::array_view as parameter. Adjust.
11323 * target.h (target_ops) <pass_signals, program_signals>: Replace
11324 pointer and length parameters with gdb::array_view.
11325 (target_pass_signals, target_program_signals): Likewise.
11326 * target-delegates.c: Regenerate.
11327
11328 2019-01-24 Pedro Alves <palves@redhat.com>
11329
11330 * common/forward-scope-exit.h
11331 (forward_scope_exit::forward_scope_exit): Pass arguments to
11332 m_bind_function directly, instead of creating a std::bind and
11333 copying that.
11334
11335 2019-01-24 Alan Hayward <alan.hayward@arm.com>
11336
11337 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11338 for static members.
11339 (pass_in_v_vfp_candidate): Likewise.
11340
11341 2019-01-23 Tom Tromey <tom@tromey.com>
11342 Pedro Alves <palves@redhat.com>
11343
11344 * regcache.c (class regcache_invalidator): Remove.
11345 (regcache::raw_write): Use make_scope_exit.
11346
11347 2019-01-23 Tom Tromey <tom@tromey.com>
11348
11349 * ui-out.h (class ui_out_emit_type): Update comment.
11350
11351 2019-01-23 Tom Tromey <tom@tromey.com>
11352
11353 * infrun.c (fetch_inferior_event): Update comment.
11354
11355 2019-01-23 Tom Tromey <tom@tromey.com>
11356 Pedro Alves <palves@redhat.com>
11357
11358 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11359 parameter.
11360 (fetch_inferior_event): Use SCOPE_EXIT.
11361
11362
11363 2019-01-23 Tom Tromey <tom@tromey.com>
11364 Pedro Alves <palves@redhat.com>
11365
11366 * infrun.c (disable_thread_events): Delete.
11367 (stop_all_threads): Use SCOPE_EXIT.
11368
11369 2019-01-23 Tom Tromey <tom@tromey.com>
11370 Pedro Alves <palves@redhat.com>
11371
11372 * symfile.c: Include forward-scope-exit.h.
11373 (clear_symtab_users_cleanup): Replace forward declaration with
11374 a FORWARD_SCOPE_EXIT.
11375 (syms_from_objfile_1): Use the forward_scope_exit and
11376 gdb::optional instead of cleanup_function.
11377 (reread_symbols): Use the forward_scope_exit instead of
11378 cleanup_function.
11379 (clear_symtab_users_cleanup): Remove function.
11380
11381 2019-01-23 Tom Tromey <tom@tromey.com>
11382 Pedro Alves <palves@redhat.com>
11383
11384 * linux-nat.c: Include scope-exit.h.
11385 (cleanup_target_stop): Remove.
11386 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11387 SCOPE_EXIT.
11388
11389 2019-01-23 Tom Tromey <tom@tromey.com>
11390 Pedro Alves <palves@redhat.com>
11391
11392 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11393 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11394
11395 2019-01-23 Tom Tromey <tom@tromey.com>
11396 Andrew Burgess <andrew.burgess@embecosm.com>
11397 Pedro Alves <palves@redhat.com>
11398
11399 * infrun.c (fetch_inferior_event): Use scope_exit.
11400 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11401 * top.c (execute_command): Use scope_exit.
11402 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11403 * utils.c (do_bpstat_clear_actions_cleanup)
11404 (make_bpstat_clear_actions_cleanup): Remove.
11405
11406 2019-01-23 Tom Tromey <tom@tromey.com>
11407 Pedro Alves <palves@redhat.com>
11408
11409 * infrun.c: Include "common/scope-exit.h"
11410 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11411 (wait_for_inferior): Use SCOPE_EXIT.
11412 (fetch_inferior_event): Use scope_exit.
11413
11414 2019-01-23 Tom Tromey <tom@tromey.com>
11415 Pedro Alves <palves@redhat.com>
11416
11417 * breakpoint.c (create_breakpoint): Remove cleanup.
11418
11419 2019-01-23 Tom Tromey <tom@tromey.com>
11420 Andrew Burgess <andrew.burgess@embecosm.com>
11421 Pedro Alves <palves@redhat.com>
11422
11423 2019-01-23 Pedro Alves <palves@redhat.com>
11424
11425 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11426
11427 2019-01-23 Pedro Alves <palves@redhat.com>
11428 Andrew Burgess <andrew.burgess@embecosm.com>
11429
11430 * gdbthread.h: Include "common/forward-scope-exit.h".
11431 (scoped_finish_thread_state): Redefine custom class in terms of
11432 forward_scope_exit.
11433
11434 2019-01-23 Pedro Alves <palves@redhat.com>
11435 Andrew Burgess <andrew.burgess@embecosm.com>
11436
11437 * common/forward-scope-exit.h: New file.
11438
11439 2019-01-23 Pedro Alves <palves@redhat.com>
11440 Andrew Burgess <andrew.burgess@embecosm.com>
11441 Tom Tromey <tom@tromey.com>
11442
11443 * common/scope-exit.h: New file.
11444
11445 2019-01-23 Pedro Alves <palves@redhat.com>
11446
11447 * common/preprocessor.h (ESC): Rename to ...
11448 (ESC_PARENS): ... this.
11449 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11450 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11451
11452 2019-01-23 Tom Tromey <tom@tromey.com>
11453
11454 * language.h (class scoped_switch_to_sym_language_if_auto):
11455 Initialize m_lang in both cases.
11456
11457 2019-01-23 Alan Hayward <alan.hayward@arm.com>
11458
11459 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11460 with XCNEW.
11461
11462 2019-01-22 Tom Tromey <tom@tromey.com>
11463
11464 * corelow.c: Do not include sys/file.h.
11465
11466 2019-01-22 Tom Tromey <tom@tromey.com>
11467
11468 * tui/tui-wingeneral.h: Include gdb_curses.h.
11469
11470 2019-01-22 Tom Tromey <tom@tromey.com>
11471
11472 * source-cache.h (class source_cache) <get_source_lines,
11473 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11474
11475 2019-01-22 Tom Tromey <tom@tromey.com>
11476
11477 * remote-fileio.h (struct remote_target): Declare.
11478
11479 2019-01-22 Tom Tromey <tom@tromey.com>
11480
11481 * python/py-arch.c: Do not include py-ref.h.
11482 * python/py-bpevent.c: Do not include py-ref.h.
11483 * python/py-cmd.c: Do not include py-ref.h.
11484 * python/py-continueevent.c: Do not include py-ref.h.
11485 * python/py-event.h: Do not include py-ref.h.
11486 * python/py-evtregistry.c: Do not include py-ref.h.
11487 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11488 * python/py-frame.c: Do not include py-ref.h.
11489 * python/py-framefilter.c: Do not include py-ref.h.
11490 * python/py-function.c: Do not include py-ref.h.
11491 * python/py-infevents.c: Do not include py-ref.h.
11492 * python/py-linetable.c: Do not include py-ref.h.
11493 * python/py-objfile.c: Do not include py-ref.h.
11494 * python/py-param.c: Do not include py-ref.h.
11495 * python/py-prettyprint.c: Do not include py-ref.h.
11496 * python/py-progspace.c: Do not include py-ref.h.
11497 * python/py-symbol.c: Do not include py-ref.h.
11498 * python/py-symtab.c: Do not include py-ref.h.
11499 * python/py-type.c: Do not include py-ref.h.
11500 * python/py-unwind.c: Do not include py-ref.h.
11501 * python/py-utils.c: Do not include py-ref.h.
11502 * python/py-value.c: Do not include py-ref.h.
11503 * python/py-varobj.c: Do not include py-ref.h.
11504 * python/py-xmethods.c: Do not include py-ref.h.
11505 * python/python.c: Do not include py-ref.h.
11506 * varobj.c: Do not include py-ref.h.
11507
11508 2019-01-22 Tom Tromey <tom@tromey.com>
11509
11510 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11511 keyword for bcache.
11512
11513 2019-01-22 Tom Tromey <tom@tromey.com>
11514
11515 * compile/compile-cplus-types.c: Remove a comment by #include.
11516
11517 2019-01-22 Tom Tromey <tom@tromey.com>
11518
11519 * compile/gcc-c-plugin.h: Include compile-internal.h.
11520
11521 2019-01-22 Tom Tromey <tom@tromey.com>
11522
11523 * stabsread.c (EXTERN): Do not define.
11524 (symnum, next_symbol_text_func, processing_gcc_compilation)
11525 (within_function, global_sym_chain, global_stabs)
11526 (previous_stab_code, this_object_header_files)
11527 (n_this_object_header_files)
11528 (n_allocated_this_object_header_files): Define.
11529 * stabsread.h (EXTERN): Never define. Use "extern".
11530
11531 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11532
11533 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11534 history_value.
11535
11536 2019-01-21 Tom Tromey <tom@tromey.com>
11537
11538 * ui-out.c: Fix includes.
11539 * tui/tui-source.c: Fix includes.
11540 * target.c: Fix includes.
11541 * remote.c: Fix includes.
11542 * regcache.c: Fix includes.
11543 * python/py-block.c: Fix includes.
11544 * printcmd.c: Fix includes.
11545 * or1k-tdep.c: Fix includes.
11546 * mi/mi-main.c: Fix includes.
11547 * m32r-tdep.c: Fix includes.
11548 * csky-tdep.c: Fix includes.
11549 * compile/compile-cplus-types.c: Fix includes.
11550 * cli/cli-interp.c: Fix includes.
11551
11552 2019-01-21 Alan Hayward <alan.hayward@arm.com>
11553
11554 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11555 for padding.
11556
11557 2019-01-16 Tom Tromey <tom@tromey.com>
11558
11559 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11560 earlier.
11561 (struct objfile) <msymbols_range>: Move from top level.
11562 <msymbols>: New method.
11563 (class objfile_msymbols): Remove.
11564 * symtab.c (default_collect_symbol_completion_matches_break_on):
11565 Update.
11566 * symmisc.c (dump_msymbols): Update.
11567 * stabsread.c (scan_file_globals): Update.
11568 * objc-lang.c (info_selectors_command, info_classes_command)
11569 (find_methods): Update.
11570 * minsyms.c (find_solib_trampoline_target): Update.
11571 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11572 * coffread.c (coff_symfile_read): Update.
11573 * ada-lang.c (ada_lookup_simple_minsym)
11574 (ada_collect_symbol_completion_matches): Update.
11575
11576 2019-01-16 Tom Tromey <tom@tromey.com>
11577
11578 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11579 type. Remove no-argument constructor.
11580 <iterator::operator++>: Simplify.
11581 <begin>: Update.
11582 <end>: Use minimal_symbol_count.
11583
11584 2019-01-16 Tom Tromey <tom@tromey.com>
11585
11586 * objfiles.h (struct objfile) <psymtabs>: New method.
11587 (class objfile_psymtabs): Remove.
11588 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11589 typedef.
11590 <range>: New method.
11591 (require_partial_symbols): Change return type.
11592 * psymtab.c (require_partial_symbols)
11593 (psym_expand_symtabs_matching): Update.
11594 * mdebugread.c (parse_partial_symbols): Update.
11595 * dbxread.c (dbx_end_psymtab): Update.
11596
11597 2019-01-15 Tom Tromey <tom@tromey.com>
11598
11599 * symtab.c (lookup_objfile_from_block)
11600 (lookup_symbol_in_objfile_symtabs)
11601 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11602 (find_line_symtab, info_sources_command)
11603 (default_collect_symbol_completion_matches_break_on)
11604 (make_source_files_completion_list): Update.
11605 * symmisc.c (print_objfile_statistics, dump_objfile)
11606 (maintenance_print_symbols, maintenance_info_symtabs)
11607 (maintenance_check_symtabs, maintenance_info_line_tables):
11608 Update.
11609 * source.c (select_source_symtab)
11610 (forget_cached_source_info_for_objfile): Update.
11611 * objfiles.h (class objfile_compunits): Remove.
11612 (struct objfile) <compunits_range>: New typedef.
11613 (compunits): New method.
11614 * objfiles.c (objfile_relocate1): Update.
11615 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11616 * maint.c (count_symtabs_and_blocks): Update.
11617 * linespec.c (iterate_over_all_matching_symtabs): Update.
11618 * cp-support.c (add_symbol_overload_list_qualified): Update.
11619 * coffread.c (coff_symtab_read): Update.
11620 * ada-lang.c (add_nonlocal_symbols)
11621 (ada_collect_symbol_completion_matches)
11622 (ada_add_global_exceptions): Update.
11623
11624 2019-01-15 Tom Tromey <tom@tromey.com>
11625
11626 * progspace.h (program_space) <objfiles_safe_range>: New
11627 typedef.
11628 <objfiles_safe>: New method.
11629 * objfiles.h (class all_objfiles_safe): Remove.
11630 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11631 * jit.c (jit_inferior_exit_hook): Update.
11632
11633 2019-01-17 Tom Tromey <tom@tromey.com>
11634
11635 * progspace.h (program_space) <objfiles_range>: New typedef.
11636 <objfiles>: New method.
11637 <objfiles_head>: Rename from objfiles.
11638 (object_files): Update.
11639 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11640 * guile/scm-pretty-print.c
11641 (ppscm_find_pretty_printer_from_objfiles): Update.
11642 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11643 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11644 Update.
11645 * python/py-progspace.c (pspy_get_objfiles): Update.
11646 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11647 Update.
11648 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11649 (objfpy_lookup_objfile_by_build_id): Update.
11650 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11651 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11652 Update.
11653 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11654 (expand_symtab_containing_pc, lookup_objfile_from_block)
11655 (lookup_static_symbol, basic_lookup_transparent_type)
11656 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11657 (find_line_symtab, info_sources_command)
11658 (default_collect_symbol_completion_matches_break_on)
11659 (make_source_files_completion_list, find_main_name): Update.
11660 * symmisc.c (print_symbol_bcache_statistics)
11661 (print_objfile_statistics, maintenance_print_symbols)
11662 (maintenance_print_msymbols, maintenance_print_objfiles)
11663 (maintenance_info_symtabs, maintenance_check_symtabs)
11664 (maintenance_expand_symtabs, maintenance_info_line_tables):
11665 Update.
11666 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11667 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11668 (map_overlay_command, unmap_overlay_command)
11669 (simple_overlay_update, expand_symtabs_matching)
11670 (map_symbol_filenames): Update.
11671 * symfile-debug.c (set_debug_symfile): Update.
11672 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11673 Update.
11674 * source.c (select_source_symtab, forget_cached_source_info):
11675 Update.
11676 * solib.c (solib_read_symbols): Update.
11677 * solib-spu.c (append_ocl_sos): Update.
11678 * psymtab.c (maintenance_print_psymbols)
11679 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11680 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11681 * printcmd.c (info_symbol_command): Update.
11682 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11683 Update.
11684 * objfiles.h (class all_objfiles): Remove.
11685 * objfiles.c (have_partial_symbols, have_full_symbols)
11686 (have_minimal_symbols, qsort_cmp, update_section_map)
11687 (shared_objfile_contains_address_p)
11688 (default_iterate_over_objfiles_in_search_order): Update.
11689 * objc-lang.c (info_selectors_command, info_classes_command)
11690 (find_methods): Update.
11691 * minsyms.c (find_solib_trampoline_target): Update.
11692 * maint.c (maintenance_info_sections)
11693 (maintenance_translate_address, count_symtabs_and_blocks):
11694 Update.
11695 * main.c (captured_main_1): Update.
11696 * linux-thread-db.c (try_thread_db_load_from_pdir)
11697 (has_libpthread): Update.
11698 * linespec.c (iterate_over_all_matching_symtabs)
11699 (search_minsyms_for_name): Update.
11700 * jit.c (jit_find_objf_with_entry_addr): Update.
11701 * hppa-tdep.c (find_unwind_entry)
11702 (hppa_lookup_stub_minimal_symbol): Update.
11703 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11704 Update.
11705 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11706 (elf_gnu_ifunc_resolve_by_got): Update.
11707 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11708 * dwarf-index-write.c (save_gdb_index_command): Update.
11709 * cp-support.c (add_symbol_overload_list_qualified): Update.
11710 * breakpoint.c (create_overlay_event_breakpoint)
11711 (create_longjmp_master_breakpoint)
11712 (create_std_terminate_master_breakpoint)
11713 (create_exception_master_breakpoint): Update.
11714 * blockframe.c (find_pc_partial_function): Update.
11715 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11716 (ada_collect_symbol_completion_matches)
11717 (ada_add_global_exceptions): Update.
11718
11719 2019-01-17 Tom Tromey <tom@tromey.com>
11720
11721 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11722 declare VEC.
11723 (solib_target_parse_libraries): Change return type.
11724 (library_list_start_segment, library_list_start_section)
11725 (library_list_end_library, library_list_start_library); Update.
11726 (solib_target_free_library_list): Remove.
11727 (solib_target_parse_libraries): Remove cleanup. Change return
11728 type.
11729 (solib_target_current_sos): Update.
11730
11731 2019-01-17 Tom Tromey <tromey@bapiya>
11732
11733 * valprint.c: Replace "the the" with "the".
11734 * symtab.c: Replace "the the" with "the".
11735 * solib.c: Replace "the the" with "the".
11736 * solib-dsbt.c: Replace "the the" with "the".
11737 * linespec.c: Replace "the the" with "the".
11738 * dwarf2loc.h: Replace "the the" with "the".
11739 * amd64-windows-tdep.c: Replace "the the" with "the".
11740 * aarch64-tdep.c: Replace "the the" with "the".
11741
11742 2019-01-16 Keith Seitz <keiths@redhat.com>
11743
11744 PR gdb/23773
11745 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11746 <builder>: Rename to ..
11747 <m_builder>: ... this and make private.
11748 (dwarf2_cu::get_builder): New method. Change all users of
11749 `builder' to use this method.
11750 (dwarf2_start_symtab): Move to ...
11751 (dwarf2_cu::start_symtab): ... here. Update all callers
11752 (setup_type_unit_groups): Move to ...
11753 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11754 callers.
11755 (dwarf2_cu::reset_builder): New method.
11756 (process_full_compunit, process_full_type_unit): Use
11757 dwarf2_cu::reset_builder.
11758 (follow_die_offset): Record the ancestor CU if it is different
11759 from the followed DIE's CU.
11760 (follow_die_sig_1): Likewise.
11761
11762 2019-01-15 Tom Tromey <tom@tromey.com>
11763
11764 * remote.c (class remote_state) <buf>: Now a char_vector.
11765 <buf_size>: Remove.
11766 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11767 parameter.
11768 (remote_target::getpkt_or_notif_sane_1)
11769 (remote_target::getpkt_sane)
11770 (remote_target::getpkt_or_notif_sane): Likewise.
11771 (class remote_target) <putpkt>: New overload.
11772 (remote_target::read_frame): Change type of "buf_p". Remove
11773 sizeof_p parameter.
11774 (packet_ok): New overload.
11775 (packet_check_result): New overload.
11776 Update all uses.
11777
11778 2019-01-14 Tom Tromey <tom@tromey.com>
11779
11780 * remote-notif.c (handle_notification, remote_notif_ack)
11781 (remote_notif_parse): Make "buf" const.
11782 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11783 const.
11784 (remote_notif_parse, remote_notif_ack, handle_notification):
11785 Likewise.
11786 * remote.c (remote_notif_stop_parse): Make "buf" const.
11787 (remote_target::remote_parse_stop_reply): Make "buf" const.
11788 (remote_notif_stop_ack): Make "buf" const.
11789
11790 2019-01-14 Tom Tromey <tom@tromey.com>
11791
11792 * remote.c (remote_console_output): Make parameter const.
11793
11794 2019-01-14 Tom Tromey <tom@tromey.com>
11795
11796 * target-debug.h (target_debug_print_signals): Constify.
11797 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11798 * procfs.c (procfs_target::pass_signals): Update.
11799 * linux-nat.c (linux_nat_target::pass_signals): Update.
11800 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11801 * target-delegates.c: Rebuild.
11802 * remote.c (remote_target::program_signals): Update.
11803 (remote_target::pass_signals): Update.
11804 * target.c (target_pass_signals): Constify argument.
11805 (target_program_signals): Likewise.
11806 * target.h (struct target_ops) <pass_signals, program_signals>:
11807 Constify argument.
11808 (target_pass_signals, target_program_signals): Constify argument.
11809
11810 2019-01-14 Tom Tromey <tom@tromey.com>
11811
11812 PR tui/28819:
11813 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11814
11815 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11816
11817 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11818 field.
11819 * rs6000-tdep.c: Include reggroups.h.
11820 (IS_V_ALIAS_PSEUDOREG): Define.
11821 (rs6000_register_name): Return names for the "vX" aliases.
11822 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11823 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11824 aliases. Call default_register_reggroup_p for all other
11825 pseudo-registers.
11826 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11827 New functions.
11828 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11829 Handle "vX" aliases.
11830 (v_alias_pseudo_register_collect): New function.
11831 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11832 (rs6000_gdbarch_init): Initialize "vX" aliases as
11833 pseudo-registers. Restore registration of
11834 rs6000_pseudo_register_reggroup_p with
11835 set_tdesc_pseudo_register_reggroup_p.
11836
11837 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11838
11839 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11840 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11841 set_gdbarch_num_pseudo_regs.
11842
11843 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11844
11845 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11846 Remove arg prefixname, add do_set and do_show.
11847 Add member functions set_list and show_list.
11848 * cli/cli-style.c (class cli_style_option): Update accordingly.
11849 (style_set_list): Move to file scope.
11850 (style_show_list): Likewise.
11851 (set_style): Call help_list.
11852 (show_style): Call cmd_show_list.
11853 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11854 Update to use the new macro.
11855
11856 2019-10-12 Joel Brobecker <brobecker@adacore.com>
11857
11858 * ada-lang.c (_initialize_ada_language): Expand the help text
11859 for the "catch exception" command.
11860
11861 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11862
11863 * symtab.c (matching_obj_sections): Initialize obj,
11864 declare it closer to its usage.
11865
11866 2019-01-10 Tom Tromey <tom@tromey.com>
11867
11868 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11869 (basic_inf_threads_range): Remove.
11870 (inf_threads_range, inf_non_exited_threads_range)
11871 (safe_inf_threads_range): Use next_adapter.
11872
11873 2019-01-10 Keith Seitz <keiths@redhat.com>
11874
11875 PR gdb/23712
11876 PR symtab/23010
11877 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11878 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11879
11880 2019-01-10 Keith Seitz <keiths@redhat.com>
11881
11882 PR gdb/23712
11883 PR symtab/23010
11884 * dictionary.c (pending_to_vector): Remove.
11885 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11886 Remove _1 suffix, replacing functions of the same name. Update
11887 all callers.
11888 (dict_create_hashed, dict_create_hashed_expandable)
11889 (dict_create_linear, dict_create_linear_expandable, dict_free)
11890 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11891 Make functions static.
11892
11893 2019-01-10 Keith Seitz <keiths@redhat.com>
11894
11895 PR gdb/23712
11896 PR symtab/23010
11897 * dictionary.h (struct dictionary): Replace declaration with
11898 multidictionary.
11899 (dict_create_hashed, dict_create_hashed_expandable)
11900 (dict_create_linear, dict_create_linear_expandable)
11901 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11902 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11903 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11904 taking multidictionary argument.
11905 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11906 * block.h (struct block) <dict>: Change to multidictionary
11907 and rename `multidict'.
11908 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11909 symmisc.c: Update all dictionary references to multidictionary.
11910
11911 2019-01-10 Keith Seitz <keiths@redhat.com>
11912
11913 PR gdb/23712
11914 PR symtab/23010
11915 * dictionary.c: Include unordered_map.
11916 (pending_to_vector): New function.
11917 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11918 Rewrite the non-"_1" functions to take vector instead
11919 of linked list.
11920 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11921 "new" _1 versions of the same name.
11922 (multidictionary): Define.
11923 (std::hash<enum language): New definition.
11924 (collate_pending_symbols_by_language, mdict_create_hashed)
11925 (mdict_create_hashed_expandable, mdict_create_linear)
11926 (mdict_create_linear_expandable, mdict_free)
11927 (find_language_dictionary, create_new_language_dictionary)
11928 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11929 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11930 (mdict_size, mdict_empty): New functions.
11931 * dictionary.h (mdict_iterator): Define.
11932
11933 2019-01-10 Pedro Alves <palves@redhat.com>
11934
11935 * breakpoint.c (read_uploaded_action)
11936 (create_tracepoint_from_upload): Adjust to use
11937 gdb::unique_xmalloc_ptr.
11938 * ctf.c (ctf_write_uploaded_tp):
11939 (SET_ARRAY_FIELD): Use emplace_back.
11940 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11941 * tracefile-tfile.c (tfile_write_uploaded_tp):
11942 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11943 gdb::unique_xmalloc_ptr.
11944 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11945 at_string, cond_string, cmd_strings>: Replace char pointers
11946 with gdb::unique_xmalloc_ptr.
11947
11948 2019-01-10 Pedro Alves <palves@redhat.com>
11949
11950 * solib-target.c (library_list_start_library): Don't xstrdup name.
11951
11952 2019-01-10 Pedro Alves <palves@redhat.com>
11953
11954 * mdebugread.c (parse_partial_symbols): Use
11955 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11956
11957 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11958
11959 * linux-fork.c (scoped_switch_fork_info)
11960 <~scoped_switch_fork_info>: Fix incorrect variable name.
11961
11962 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11963
11964 * linux-fork.c (scoped_switch_fork_info)
11965 <scoped_switch_fork_info>: Make explicit.
11966 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11967
11968 2019-01-10 Tom Tromey <tom@tromey.com>
11969
11970 * objfiles.h (objfile::reset_psymtabs): Update.
11971 * objfiles.c (objfile::objfile): Update.
11972 * psymtab.h (psymtab_storage::obstack): Update.
11973 (psymtab_storage::m_obstack): Use gdb::optional.
11974 (class psymtab_storage): Update comment. Remove objfile
11975 parameter.
11976 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11977
11978 2019-01-10 Tom Tromey <tom@tromey.com>
11979
11980 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11981 <free_psymtabs>: Now private.
11982 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11983 (allocate_psymtab): Use new method.
11984
11985 2019-01-10 Tom Tromey <tom@tromey.com>
11986
11987 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11988 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11989 * mdebugread.c (parse_partial_symbols): Use
11990 allocate_dependencies.
11991 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11992 allocate_dependencies.
11993 (process_psymtab_comp_unit_reader)
11994 (build_type_psymtab_dependencies): Likewise.
11995 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11996
11997 2019-01-10 Tom Tromey <tom@tromey.com>
11998
11999 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12000 PSYMBOL_SET_LANGUAGE.
12001 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12002
12003 2019-01-10 Tom Tromey <tom@tromey.com>
12004
12005 * psymtab.h (psymtab_storage::obstack): New method.
12006 <m_obstack>: Rename from obstack; now private.
12007 * psymtab.c (psymtab_storage): Update.
12008 * dwarf2read.c (create_addrmap_from_index)
12009 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12010 Update.
12011
12012 2019-01-10 Tom Tromey <tom@tromey.com>
12013
12014 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12015 * objfiles.h (objfile::reset_psymtabs): New method.
12016
12017 2019-01-10 Tom Tromey <tom@tromey.com>
12018
12019 * symmisc.c (print_symbol_bcache_statistics): Update.
12020 (print_objfile_statistics): Update.
12021 * symfile.c (reread_symbols): Update.
12022 * psymtab.h (class psymtab_storage): New.
12023 * psymtab.c (psymtab_storage): New constructor.
12024 (~psymtab_storage): New destructor.
12025 (require_partial_symbols): Update.
12026 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12027 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12028 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12029 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12030 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12031 (start_psymtab_common, end_psymtab_common)
12032 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12033 (allocate_psymtab): Update.
12034 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12035 Update.
12036 (dump_psymtab_addrmap, maintenance_print_psymbols)
12037 (maintenance_check_psymtabs): Update.
12038 (class objfile_psymtabs): Move to objfiles.h.
12039 * psympriv.h (discard_psymtab): Now inline.
12040 (psymtab_discarder::psymtab_discarder): Update.
12041 (psymtab_discarder::~psymtab_discarder): Update.
12042 (ALL_OBJFILE_PSYMTABS): Rewrite.
12043 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12044 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12045 Remove fields.
12046 <partial_symtabs>: New field.
12047 (class objfile_psymtabs): Move from psymtab.h. Update.
12048 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12049 psymbol_cache.
12050 (objfile::~objfile): Don't destroy psymbol_cache.
12051 * mdebugread.c (parse_partial_symbols): Update.
12052 * dwarf2read.c (create_addrmap_from_index)
12053 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12054 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12055 (add_partial_subprogram, dwarf2_ranges_read): Update.
12056 * dwarf-index-write.c (write_address_map)
12057 (write_one_signatured_type, recursively_write_psymbols)
12058 (class debug_names, class debug_names, write_psymtabs_to_index):
12059 Update.
12060
12061 2019-01-10 Tom Tromey <tom@tromey.com>
12062
12063 * symtab.h (SYMBOL_SET_NAMES): Update.
12064 (symbol_set_names): Update.
12065 (MSYMBOL_SET_NAMES): Update.
12066 * symtab.c (symbol_set_names): Change argument to be an
12067 objfile_per_bfd_storage.
12068 * psymtab.c (add_psymbol_to_bcache): Update.
12069 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12070
12071 2019-01-10 Tom Tromey <tom@tromey.com>
12072
12073 * symtab.c (create_demangled_names_hash): Change argument to be an
12074 objfile_per_bfd_storage.
12075 (symbol_set_names): Update.
12076
12077 2019-01-10 Tom Tromey <tom@tromey.com>
12078
12079 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12080 init_psymbol_list.
12081 * psymtab.c (init_psymbol_list): Do nothing if already called.
12082 * psympriv.h (init_psymbol_list): Add comment.
12083 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12084 init_psymbol_list.
12085 * dbxread.c (dbx_symfile_read): Unconditionally call
12086 init_psymbol_list.
12087
12088 2019-01-10 Tom Tromey <tom@tromey.com>
12089
12090 * xcoffread.c (scan_xcoff_symtab): Update.
12091 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12092 "where".
12093 * mdebugread.c (parse_partial_symbols)
12094 (handle_psymbol_enumerators): Update.
12095 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12096 * dbxread.c (read_dbx_symtab): Update.
12097 * psympriv.h (psymbol_placement): New enum.
12098 (add_psymbol_to_list): Update.
12099
12100 2019-01-10 Tom Tromey <tom@tromey.com>
12101
12102 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12103 static_psymbols parameters.
12104 (scan_xcoff_symtab): Update.
12105 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12106 static_psymbols parameters.
12107 * psympriv.h (start_psymtab_common): Update.
12108 * mdebugread.c (parse_partial_symbols): Update.
12109 * dwarf2read.c (create_partial_symtab): Update.
12110 * dbxread.c (read_dbx_symtab): Update.
12111 (start_psymtab): Remove global_psymbols and static_psymbols
12112 parameters.
12113
12114 2019-01-10 Tom Tromey <tom@tromey.com>
12115
12116 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12117 * psymtab.c (allocate_psymtab): Add comment.
12118 * psympriv.h (allocate_psymtab): Add comment.
12119 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12120 initializations.
12121 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12122
12123 2019-01-10 Tom Tromey <tom@tromey.com>
12124
12125 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12126 Don't declare.
12127 * mipsread.c: Include mdebugread.h.
12128 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12129 Declare.
12130 * elfread.c: Include mdebugread.h.
12131
12132 2019-01-09 Tom Tromey <tom@tromey.com>
12133
12134 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12135 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12136 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12137 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12138 (psym_lookup_symbol, psym_find_last_source_symtab)
12139 (psym_forget_cached_source_info, psym_print_stats)
12140 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12141 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12142 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12143 (psym_find_compunit_symtab_by_address)
12144 (maintenance_print_psymbols, maintenance_info_psymtabs)
12145 (maintenance_check_psymtabs): Use ranged for.
12146 * psymtab.h (class objfile_psymtabs): New.
12147 (require_partial_symbols): Return objfile_psymtabs.
12148 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12149
12150 2019-01-09 Tom Tromey <tom@tromey.com>
12151
12152 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12153 (find_pc_mapped_section, list_overlays_command)
12154 (map_overlay_command, unmap_overlay_command)
12155 (simple_overlay_update): Use all_objfiles.
12156 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12157 * printcmd.c (info_symbol_command): Use all_objfiles.
12158 * objfiles.h (ALL_OBJSECTIONS): Remove.
12159 * maint.c (maintenance_translate_address): Use all_objfiles.
12160 * gcore.c (gcore_create_callback): Use all_objfiles.
12161 (objfile_find_memory_regions): Likewise.
12162
12163 2019-01-09 Tom Tromey <tom@tromey.com>
12164
12165 * symtab.c (find_line_symtab, info_sources_command)
12166 (make_source_files_completion_list): Use objfile_compunits.
12167 * source.c (select_source_symtab): Use objfile_compunits.
12168 * objfiles.h (struct objfile): Update comment.
12169 (ALL_OBJFILES): Remove.
12170 (ALL_FILETABS): Remove.
12171 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12172 objfile_compunits.
12173
12174 2019-01-09 Tom Tromey <tom@tromey.com>
12175
12176 * symmisc.c (print_objfile_statistics, dump_objfile)
12177 (maintenance_print_symbols): Use compunit_filetabs.
12178 * source.c (forget_cached_source_info_for_objfile): Use
12179 compunit_filetabs.
12180 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12181 (ALL_FILETABS): Use compunit_filetabs.
12182 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12183 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12184
12185 2019-01-09 Tom Tromey <tom@tromey.com>
12186
12187 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12188 (compunit_filetabs): New.
12189 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12190 compunit_filetabs.
12191 (info_sources_command, make_source_files_completion_list): Remove
12192 declaration.
12193 * symmisc.c (print_objfile_statistics, dump_objfile)
12194 (maintenance_print_symbols): Remove declaration.
12195 (maintenance_info_symtabs): Use compunit_filetabs.
12196 (maintenance_info_line_tables): Likewise.
12197 * source.c (select_source_symtab): Change local variable name.
12198 (forget_cached_source_info_for_objfile): Remove declaration.
12199 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12200 * objfiles.c (objfile_relocate1): Remove declaration.
12201 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12202 declaration.
12203 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12204 * coffread.c (coff_symtab_read): Remove declaration.
12205 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12206 compunit_filetabs.
12207
12208 2019-01-09 Tom Tromey <tom@tromey.com>
12209
12210 * symtab.c (lookup_objfile_from_block)
12211 (find_pc_sect_compunit_symtab, search_symbols)
12212 (default_collect_symbol_completion_matches_break_on): Use
12213 objfile_compunits.
12214 * objfiles.h (ALL_COMPUNITS): Remove.
12215 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12216 * cp-support.c (add_symbol_overload_list_qualified): Use
12217 objfile_compunits.
12218 * ada-lang.c (ada_collect_symbol_completion_matches)
12219 (ada_add_global_exceptions): Use objfile_compunits.
12220
12221 2019-01-09 Tom Tromey <tom@tromey.com>
12222
12223 * source.c (select_source_symtab)
12224 (forget_cached_source_info_for_objfile): Remove declaration.
12225 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12226 declaration.
12227 * maint.c (count_symtabs_and_blocks): Remove declaration.
12228 * cp-support.c (add_symbol_overload_list_qualified): Remove
12229 declaration.
12230 * coffread.c (coff_symtab_read): Remove declaration.
12231 * symtab.c (lookup_symbol_in_objfile_symtabs)
12232 (basic_lookup_transparent_type_1): Use objfile_compunits.
12233 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12234 (info_sources_command, search_symbols)
12235 (default_collect_symbol_completion_matches_break_on)
12236 (make_source_files_completion_list): Remove declaration.
12237 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12238 (ada_collect_symbol_completion_matches)
12239 (ada_add_global_exceptions): Remove declaration.
12240 * linespec.c (iterate_over_all_matching_symtabs): Use
12241 objfile_compunits.
12242 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12243 (class objfile_compunits): New.
12244 (ALL_COMPUNITS): Use objfile_compunits.
12245 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12246 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12247 objfile_compunits.
12248 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12249
12250 2019-01-09 Tom Tromey <tom@tromey.com>
12251
12252 * symtab.c (search_symbols)
12253 (default_collect_symbol_completion_matches_break_on): Use
12254 objfile_msymbols.
12255 * ada-lang.c (ada_lookup_simple_minsym)
12256 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12257 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12258 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12259 objfile_msymbols.
12260 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12261 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12262 * objc-lang.c (find_methods): Use objfile_msymbols.
12263 (info_selectors_command, info_classes_command): Likewise.
12264 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12265 * objfiles.h (class objfile_msymbols): New.
12266 (ALL_OBJFILE_MSYMBOLS): Remove.
12267 (ALL_MSYMBOLS): Remove.
12268
12269 2019-01-09 Tom Tromey <tom@tromey.com>
12270
12271 * common/next-iterator.h (next_adapter): Add Iterator template
12272 parameter.
12273 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12274 (class all_objfiles_safe): New.
12275 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12276 * objfiles.c (put_objfile_before): Update comment.
12277 (add_separate_debug_objfile): Likewise.
12278 (free_all_objfiles): Use all_objfiles_safe.
12279 (objfile_purge_solibs): Likewise.
12280
12281 2019-01-09 Tom Tromey <tom@tromey.com>
12282
12283 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12284 (expand_symtab_containing_pc, lookup_static_symbol)
12285 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12286 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12287 all_objfiles.
12288 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12289 * breakpoint.c (create_overlay_event_breakpoint)
12290 (create_longjmp_master_breakpoint)
12291 (create_std_terminate_master_breakpoint)
12292 (create_exception_master_breakpoint): Use all_objfiles.
12293 * linux-thread-db.c (try_thread_db_load_from_pdir)
12294 (has_libpthread): Use all_objfiles.
12295 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12296 * linespec.c (iterate_over_all_matching_symtabs)
12297 (search_minsyms_for_name): Use all_objfiles.
12298 * maint.c (maintenance_info_sections): Use all_objfiles.
12299 * main.c (captured_main_1): Use all_objfiles.
12300 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12301 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12302 * guile/scm-pretty-print.c
12303 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12304 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12305 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12306 (maintenance_print_msymbols): Use all_objfiles.
12307 * source.c (select_source_symtab): Use all_objfiles.
12308 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12309 * symfile.c (remove_symbol_file_command)
12310 (expand_symtabs_matching, map_symbol_filenames): Use
12311 all_objfiles.
12312 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12313 all_objfiles.
12314 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12315 * objc-lang.c (find_methods): Use all_objfiles.
12316 * objfiles.c (have_partial_symbols, have_full_symbols)
12317 (have_minimal_symbols, qsort_cmp)
12318 (default_iterate_over_objfiles_in_search_order): Use
12319 all_objfiles.
12320 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12321 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12322 (maintenance_check_psymtabs): Use all_objfiles.
12323 (ALL_PSYMTABS): Remove.
12324 * compile/compile-object-run.c (do_module_cleanup): Use
12325 all_objfiles.
12326 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12327 * cp-support.c (add_symbol_overload_list_qualified): Use
12328 all_objfiles.
12329 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12330 Use all_objfiles.
12331 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12332 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12333 all_objfiles.
12334 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12335 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12336 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12337 Uses all_objfiles.
12338 * solib.c (solib_read_symbols): Use all_objfiles
12339
12340 2019-01-09 Tom Tromey <tom@tromey.com>
12341
12342 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12343 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12344 all_objfiles.
12345 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12346 * symmisc.c (print_symbol_bcache_statistics)
12347 (print_objfile_statistics, maintenance_print_objfiles)
12348 (maintenance_info_symtabs, maintenance_check_symtabs)
12349 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12350 all_objfiles.
12351 * source.c (forget_cached_source_info): Use all_objfiles.
12352 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12353 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12354 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12355 * objfiles.c (update_section_map): Use all_objfiles.
12356 (shared_objfile_contains_address_p): Likewise.
12357 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12358 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12359
12360 2019-01-09 Tom Tromey <tom@tromey.com>
12361
12362 * common/next-iterator.h: New file.
12363 * objfiles.h (class all_objfiles): New.
12364 (struct objfile_iterator): New.
12365
12366 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12367
12368 * NEWS: Move the description of the changed "frame", "select-frame",
12369 and "info frame" commands to the Changed commands section.
12370
12371 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12372
12373 * gdbtypes.c (check_stub_method_group): Remove handling of old
12374 mangling schemes.
12375 * linespec.c (find_methods): Likewise.
12376 * stabsread.c (read_member_functions): Likewise.
12377 * valops.c (search_struct_method): Likewise.
12378 (value_struct_elt_for_reference): Likewise.
12379 * NEWS: Mention this change.
12380
12381 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12382
12383 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12384 print_source_lines.
12385 * source.c (print_source_lines_base): Update line number check.
12386 (print_source_lines): New function.
12387 (source_lines_range::source_lines_range): New function.
12388 * source.h (class source_lines_range): New class.
12389 (print_source_lines): New declaration.
12390
12391 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12392
12393 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12394
12395 2019-01-08 Tom Tromey <tom@tromey.com>
12396 Simon Marchi <simon.marchi@ericsson.com>
12397
12398 PR gdb/24060
12399 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12400 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12401 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12402 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12403 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12404 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12405
12406 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12407
12408 * source.c (select_source_symtab): Move header comment to
12409 declaration in source.h.
12410 (forget_cached_source_info_for_objfile): Likewise.
12411 (forget_cached_source_info): Likewise.
12412 (identify_source_line): Likewise.
12413 * source.h (identify_source_line): Move declaration from symtab.h
12414 and add comment from source.c
12415 (print_source_lines): Likewise.
12416 (forget_cached_source_info_for_objfile): Likewise.
12417 (forget_cached_source_info): Likewise.
12418 (select_source_symtab): Likewise.
12419 (enum print_source_lines_flag): Move definition from symtab.h.
12420 * symtab.h (identify_source_line): Move declaration to source.h.
12421 (print_source_lines): Likewise.
12422 (forget_cached_source_info_for_objfile): Likewise.
12423 (forget_cached_source_info): Likewise.
12424 (select_source_symtab): Likewise.
12425 (enum print_source_lines_flag): Move definition to source.h.
12426 * tui/tui-hooks.c: Add 'source.h' include.
12427
12428 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12429
12430 * source.c (print_source_lines_base): Handle requests to print
12431 reverse line number sequences, and guard against empty lines
12432 string.
12433
12434 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12435
12436 * source.c (print_source_lines_base): Fix skip of '\r' if next
12437 character is '\n'.
12438
12439 2019-01-06 Tom Tromey <tom@tromey.com>
12440
12441 * c-exp.y (struct c_parse_state) <macro_original_text,
12442 expansion_obstack>: New member.
12443 (macro_original_text, expansion_obstack): Remove globals.
12444 (scan_macro_expansion, scanning_macro_expansion)
12445 (finished_macro_expansion): Update.
12446 (scan_macro_cleanup): Remove.
12447 (yylex, c_parse): Update.
12448
12449 2019-01-06 Tom Tromey <tom@tromey.com>
12450
12451 * c-exp.y (struct c_parse_state) <strings>: New member.
12452 (operator_stoken): Update.
12453
12454 2019-01-06 Tom Tromey <tom@tromey.com>
12455
12456 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12457 (union type_stack_elt) <typelist_val>: Now a pointer to
12458 std::vector.
12459 (type_stack_cleanup): Don't declare.
12460 (push_typelist): Update.
12461 * parse.c (pop_typelist): Return a std::vector.
12462 (push_typelist): Take a std::vector.
12463 (follow_types): Update. Do not free args.
12464 (type_stack_cleanup): Remove.
12465 * c-exp.y (struct c_parse_state): New.
12466 (cpstate): New global.
12467 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12468 (nonempty_typelist): Update.
12469 (func_mod): Create a new vector.
12470 (c_parse): Create a c_parse_state.
12471 (check_parameter_typelist): Do not delete params.
12472 (function_method): Update. Do not delete type_list.
12473
12474 2019-01-06 Tom Tromey <tom@tromey.com>
12475
12476 PR gdb/28155:
12477 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12478 check_typedef.
12479 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12480 (print_return_value): Likewise.
12481
12482 2019-01-05 Tom Tromey <tom@tromey.com>
12483
12484 * contrib/cleanup_check.py: Remove.
12485 * contrib/gcc-with-excheck: Remove.
12486 * contrib/exsummary.py: Remove.
12487 * contrib/excheck.py: Remove.
12488
12489 2019-01-05 Joel Brobecker <brobecker@adacore.com>
12490
12491 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12492 NULL. Initialize tpprev to NULL instead of assigning it
12493 to NULL on the next statement.
12494 * windows-nat.c (windows_delete_thread): Remove check for
12495 main_thread_id before printing thread exit notifications.
12496 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12497 Remove thread ID check against main_thread_id.
12498 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12499 windows_delete_thread.
12500 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12501
12502 2019-01-04 Tom Tromey <tom@tromey.com>
12503
12504 * compile/compile.c (_initialize_compile): Use upper case for
12505 metasyntactic variables.
12506 * symmisc.c (_initialize_symmisc): Use upper case for
12507 metasyntactic variables.
12508 * psymtab.c (_initialize_psymtab): Use upper case for
12509 metasyntactic variables.
12510 * demangle.c (demangle_command): Use upper case for metasyntactic
12511 variables.
12512 (_initialize_demangler): Likewise.
12513 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12514 variables.
12515
12516 2019-01-03 Tom Tromey <tom@tromey.com>
12517
12518 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12519
12520 2019-01-03 Tom Tromey <tom@tromey.com>
12521
12522 * python/py-symtab.c (salpy_str): Update.
12523 (struct salpy_sal_object) <symtab>: Now a PyObject.
12524 (salpy_dealloc): Update.
12525 (del_objfile_sal): Use gdbpy_ref.
12526
12527 2019-01-03 Tom Tromey <tom@tromey.com>
12528
12529 * python/py-type.c (convert_field): Use new_reference. Return
12530 gdbpy_ref.
12531 (make_fielditem): Return gdbpy_ref.
12532 (typy_fields): Update.
12533 (typy_getitem): Update.
12534 (field_name): Return gdbpy_ref. Use new_reference.
12535 (typy_iterator_iternext): Update.
12536
12537 2019-01-03 Tom Tromey <tom@tromey.com>
12538
12539 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12540
12541 2019-01-03 Tom Tromey <tom@tromey.com>
12542
12543 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12544 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12545 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12546 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12547 (pspy_set_type_printers): Likewise.
12548 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12549 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12550 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12551 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12552 (objfpy_set_type_printers): Likewise.
12553
12554 2019-01-03 Tom Tromey <tom@tromey.com>
12555
12556 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12557 (gdbpy_print_stack): Use gdbpy_err_fetch.
12558 * python/python-internal.h (class gdbpy_err_fetch): New class.
12559 (class gdbpy_enter) <m_error_type, m_error_value,
12560 m_error_traceback>: Remove.
12561 <m_error>: New member.
12562 (gdbpy_exception_to_string): Don't declare.
12563 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12564 * python/py-value.c (convert_value_from_python): Use
12565 gdbpy_err_fetch.
12566 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12567 gdbpy_exception_to_string.
12568 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12569 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12570 gdbpy_err_fetch.
12571
12572 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12573
12574 * linux-nat.c (delete_lwp_cleanup): Delete.
12575 (struct lwp_deleter): New struct.
12576 (lwp_info_up): New typedef.
12577 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12578 lwp_info_up.
12579
12580 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12581
12582 * linux-fork.c (class scoped_switch_fork_info): New class.
12583 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12584
12585 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12586
12587 * valops.c (find_overload_match): Remove use of null_cleanup, and
12588 calls to do_cleanups.
12589
12590 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12591
12592 * compile/compile-cplus-types.c
12593 (compile_cplus_instance::decl_name): Handle changes to
12594 cp_func_name.
12595 * cp-support.c (cp_func_name): Update header comment, update
12596 return type.
12597 * cp-support.h (cp_func_name): Update return type in declaration.
12598 * valops.c (find_overload_match): Move temp_func local to top
12599 level of function and change its type. Use temp_func to hold and
12600 delete temporary string obtained from cp_func_name.
12601
12602 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12603
12604 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12605 gdb::char_vector, remove cleanup, and update uses of `msg`.
12606
12607 2019-01-03 Jim Wilson <jimw@sifive.com>
12608
12609 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12610
12611 2019-01-02 Tom Tromey <tom@tromey.com>
12612
12613 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12614 (tdesc_parse_xml): Remove cleanups.
12615 * target-descriptions.h (make_cleanup_free_target_description):
12616 Don't declare.
12617 (target_desc_deleter): New struct.
12618 (target_desc_up): New typedef.
12619 * target-descriptions.c (target_desc_deleter::operator()): Rename
12620 from free_target_description.
12621 (make_cleanup_free_target_description): Remove.
12622
12623 2019-01-02 Tom Tromey <tom@tromey.com>
12624
12625 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12626 constructor, destructor.
12627 (linespec_parser): Remove typedef.
12628 (~linespec_parser): Rename from linespec_parser_delete.
12629 (linespec_lex_to_end, linespec_complete_label)
12630 (linespec_complete): Update.
12631 (decode_line_full): Remove cleanups.
12632 (decode_line_1): Update.
12633
12634 2019-01-02 Tom Tromey <tom@tromey.com>
12635
12636 * python/python-internal.h (inferior_to_inferior_object): Change
12637 return type.
12638 * python/py-exitedevent.c (create_exited_event_object): Update.
12639 * python/py-inferior.c (inferior_to_inferior_object): Return
12640 gdbpy_ref.
12641 (python_new_inferior, python_inferior_deleted)
12642 (thread_to_thread_object, delete_thread_object)
12643 (build_inferior_list, gdbpy_selected_inferior): Update.
12644 * python/py-infthread.c (create_thread_object): Update. Also fail
12645 if inferior_to_inferior_object fails.
12646
12647 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12648
12649 * inferior.h (class inferior) <displaced_step_state>: New field.
12650 * infrun.h (struct displaced_step_state): Move here from
12651 infrun.c. Initialize fields, add constructor.
12652 <inf>: Remove field.
12653 <reset>: New method.
12654 * infrun.c (struct displaced_step_inferior_state): Move to
12655 infrun.h.
12656 (displaced_step_inferior_states): Remove.
12657 (get_displaced_stepping_state): Adust.
12658 (displaced_step_in_progress_any_inferior): Adjust.
12659 (displaced_step_in_progress_thread): Adjust.
12660 (displaced_step_in_progress): Adjust.
12661 (add_displaced_stepping_state): Remove.
12662 (get_displaced_step_closure_by_addr): Adjust.
12663 (remove_displaced_stepping_state): Remove.
12664 (infrun_inferior_exit): Call displaced_step_state.reset.
12665 (use_displaced_stepping): Don't check for NULL.
12666 (displaced_step_prepare_throw): Call
12667 get_displaced_stepping_state.
12668 (displaced_step_fixup): Don't check for NULL.
12669 (prepare_for_detach): Don't check for NULL.
12670
12671 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12672
12673 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12674 in case of call that did not complete.
12675
12676 2019-01-02 Andrey Utkin <autkin@undo.io>
12677
12678 * symfile.c (find_separate_debug_file): Fix search of debug files for
12679 remote debuggee.
12680
12681 2019-01-02 Tom Tromey <tom@tromey.com>
12682
12683 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12684 indentation.
12685 * python/py-frame.c (frapy_older): Remove cast.
12686 (frapy_newer): Likewise.
12687 * python/py-breakpoint.c (local_setattro): Remove cast.
12688 * python/py-arch.c (archpy_name): Remove local variable.
12689 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12690
12691 2019-01-02 Joel Brobecker <brobecker@adacore.com>
12692
12693 * unittests/basic_string_view/element_access/char/empty.cc:
12694 Fix year range in copyright header.
12695
12696 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12697
12698 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12699 Delete.
12700 <operator==>: Update with for removed field.
12701 <hash>: Likewise.
12702 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12703 <isa_features>: ...this.
12704 <abi_features>: New field.
12705 (riscv_isa_flen): Update comment.
12706 (riscv_abi_xlen): New declaration.
12707 (riscv_abi_flen): New declaration.
12708 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12709 isa_features.
12710 (riscv_abi_xlen): New function.
12711 (riscv_isa_flen): Update to get answer from isa_features.
12712 (riscv_abi_flen): New function.
12713 (riscv_has_fp_abi): Update to get answer from abi_features.
12714 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12715 xlen and flen.
12716 (riscv_call_info) <xlen, flen>: Update comment.
12717 (riscv_call_arg_struct): Remove invalid assertions
12718 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12719 is removed.
12720 (riscv_gdbarch_init): Gather isa features and abi features
12721 separately, ensure both match on the gdbarch when reusing an old
12722 gdbarch. Relax an error check to allow 32-bit abi float to run on
12723 a target with 64-bit float hardware.
12724
12725 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12726
12727 * source.c (search_command_helper): Stop reverse search
12728 when line 1 has been searched.
12729
12730 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12731
12732 * record-full.c (record_full_base_target::close): Rewrite
12733 record_full_core_buf_list free logic.
12734
12735 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12736
12737 * break-catch-syscall.c (print_one_catch_syscall): xfree
12738 the last text.
12739
12740 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12741
12742 * top.c (print_gdb_version): Update Copyright year in version
12743 message.
12744
12745 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12746
12747 Update copyright year range in all GDB files.
12748
12749 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
12750
12751 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
12752
12753 For older changes see ChangeLog-2018.
12754 \f
12755 Local Variables:
12756 mode: change-log
12757 left-margin: 8
12758 fill-column: 74
12759 version-control: never
12760 coding: utf-8
12761 End:
12762
This page took 0.304719 seconds and 4 git commands to generate.