Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f64e2f40
TV
12019-09-19 Tom de Vries <tdevries@suse.de>
2
3 PR gdb/25009
4 * source-cache.c (source_cache::ensure): Catch exception thrown during
5 construction of the highlighter.
6
fd361982
AM
72019-09-18 Alan Modra <amodra@gmail.com>
8
9 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
10 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
11 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
12 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
13 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
14 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
15 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
16 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
17 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
18 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
19 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
20 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
21 * solib-spu.c, * solib-svr4.c, * solib-target.c,
22 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
23 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
24 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
25 * mi/mi-interp.c: Update throughout for bfd section macro and
26 function changes.
27 * gcore (gcore_create_callback): Use bfd_set_section_lma.
28 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
29
11061048
TT
302019-09-18 Tom Tromey <tom@tromey.com>
31
32 * NEWS: Add entry.
33 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
34 call rl_initialize.
35 (tui_enable): Do not call rl_initialize.
36
7a27b85f
CG
372019-09-18 Christian Groessler <chris@groessler.org>
38
39 * alpha-linux-nat.c: Include gdbarch.h.
40
f64eea3a
SM
412019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
42
43 * ui-file.c: Include cli/cli-style.h.
44 (term_cli_styling): Remove cli_styling declaration.
45
e6f7f6d1
AM
462019-09-18 Alan Modra <amodra@gmail.com>
47
48 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
49 to bfd_asymbol_section.
50
1d38e9d1
AM
512019-09-18 Alan Modra <amodra@gmail.com>
52
53 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
54 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
55 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
56
90d92a63
AM
572019-09-18 Alan Modra <amodra@gmail.com>
58
59 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
60 * spu-linux-nat.c (spu_bfd_open): Likewise.
61
a3d181d2
CB
622019-09-18 Christian Biesinger <cbiesinger@google.com>
63
64 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
65 to bool to match definition in dwarf2read.c.
66
491144b5
CB
672019-09-17 Christian Biesinger <cbiesinger@google.com>
68
69 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
70 (print_signatures): Likewise.
71 (trust_pad_over_xvs): Likewise.
72 * arch/aarch64-insn.c (aarch64_debug): Likewise.
73 * arch/aarch64-insn.h (aarch64_debug): Likewise.
74 * arm-linux-nat.c (arm_apcs_32): Likewise.
75 * arm-linux-tdep.c (arm_apcs_32): Likewise.
76 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
77 * arm-tdep.c (arm_debug): Likewise.
78 (arm_apcs_32): Likewise.
79 * auto-load.c (debug_auto_load): Likewise.
80 (auto_load_gdb_scripts): Likewise.
81 (global_auto_load): Likewise.
82 (auto_load_local_gdbinit): Likewise.
83 (auto_load_local_gdbinit_loaded): Likewise.
84 * auto-load.h (global_auto_load): Likewise.
85 (auto_load_local_gdbinit): Likewise.
86 (auto_load_local_gdbinit_loaded): Likewise.
87 * breakpoint.c (disconnected_dprintf): Likewise.
88 (breakpoint_proceeded): Likewise.
89 (automatic_hardware_breakpoints): Likewise.
90 (always_inserted_mode): Likewise.
91 (target_exact_watchpoints): Likewise.
92 (_initialize_breakpoint): Update.
93 * breakpoint.h (target_exact_watchpoints): Change to bool.
94 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
95 * cli/cli-cmds.c (trace_commands): Likewise.
96 * cli/cli-cmds.h (trace_commands): Likewise.
97 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
98 to bool*.
99 * cli/cli-logging.c (logging_overwrite): Change to bool.
100 (logging_redirect): Likewise.
101 (debug_redirect): Likewise.
102 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
103 (struct boolean_option_def) <get_var_address_cb_>: Change return type
104 to bool.
105 <boolean_option_def>: Update.
106 (struct flag_option_def): Change default type of Context to bool
107 from int.
108 <flag_option_def>: Change return type of var_address_cb_ to bool*.
109 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
110 (get_setshow_command_value_string): Likewise.
111 * cli/cli-style.c (cli_styling): Change to bool.
112 (source_styling): Likewise.
113 * cli/cli-style.h (source_styling): Likewise.
114 (cli_styling): Likewise.
115 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
116 to bool.
117 * command.h (var_types): Update comment.
118 (add_setshow_boolean_cmd): Change int* var argument to bool*.
119 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
120 bool.
121 (debug_compile_cplus_scopes): Likewise.
122 * compile/compile-internal.h (compile_debug): Likewise.
123 * compile/compile.c (compile_debug): Likewise.
124 (struct compile_options) <raw>: Likewise.
125 * cp-support.c (catch_demangler_crashes): Likewise.
126 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
127 (usr_cmd_cris_dwarf2_cfi): Likewise.
128 * csky-tdep.c (csky_debug): Likewise.
129 * darwin-nat.c (enable_mach_exceptions): Likewise.
130 * dcache.c (dcache_enabled_p): Likewise.
131 * defs.h (info_verbose): Likewise.
132 * demangle.c (demangle): Likewise.
133 (asm_demangle): Likewise.
134 * dwarf-index-cache.c (debug_index_cache): Likewise.
135 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
136 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
137 * dwarf2read.c (check_physname): Likewise.
138 (use_deprecated_index_sections): Likewise.
139 (dwarf_always_disassemble): Likewise.
140 * eval.c (overload_resolution): Likewise.
141 * event-top.c (set_editing_cmd_var): Likewise.
142 (exec_done_display_p): Likewise.
143 * event-top.h (set_editing_cmd_var): Likewise.
144 (exec_done_display_p): Likewise.
145 * exec.c (write_files): Likewise.
146 * fbsd-nat.c (debug_fbsd_lwp): Likewise
147 (debug_fbsd_nat): Likewise.
148 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
149 Likewise.
150 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
151 <backtrace_past_entry> Likewise.
152 * gdb-demangle.h (demangle): Likewise.
153 (asm_demangle): Likewise.
154 * gdb_bfd.c (bfd_sharing): Likewise.
155 * gdbcore.h (write_files): Likewise.
156 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
157 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
158 * gdbthread.h (print_thread_events): Likewise.
159 * gdbtypes.c (opaque_type_resolution): Likewise.
160 (strict_type_checking): Likewise.
161 * gnu-nat.c (gnu_debug_flag): Likewise.
162 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
163 * guile/scm-param.c (pascm_variable): Add boolval.
164 (add_setshow_generic): Update.
165 (pascm_param_value): Update.
166 (pascm_set_param_value_x): Update.
167 * hppa-tdep.c (hppa_debug): Change to bool..
168 * infcall.c (may_call_functions_p): Likewise.
169 (coerce_float_to_double_p): Likewise.
170 (unwind_on_signal_p): Likewise.
171 (unwind_on_terminating_exception_p): Likewise.
172 * infcmd.c (startup_with_shell): Likewise.
173 * inferior.c (print_inferior_events): Likewise.
174 * inferior.h (startup_with_shell): Likewise.
175 (print_inferior_events): Likewise.
176 * infrun.c (step_stop_if_no_debug): Likewise.
177 (detach_fork): Likewise.
178 (debug_displaced): Likewise.
179 (disable_randomization): Likewise.
180 (non_stop): Likewise.
181 (non_stop_1): Likewise.
182 (observer_mode): Likewise.
183 (observer_mode_1): Likewise.
184 (set_observer_mode): Update.
185 (sched_multi): Change to bool.
186 * infrun.h (debug_displaced): Likewise.
187 (sched_multi): Likewise.
188 (step_stop_if_no_debug): Likewise.
189 (non_stop): Likewise.
190 (disable_randomization): Likewise.
191 * linux-tdep.c (use_coredump_filter): Likewise.
192 (dump_excluded_mappings): Likewise.
193 * linux-thread-db.c (auto_load_thread_db): Likewise.
194 (check_thread_db_on_load): Likewise.
195 * main.c (captured_main_1): Update.
196 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
197 xx2_opt, boolean_opt>: Change to bool.
198 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
199 * maint.c (maintenance_profile_p): Likewise.
200 (per_command_time): Likewise.
201 (per_command_space): Likewise.
202 (per_command_symtab): Likewise.
203 * memattr.c (inaccessible_by_default): Likewise.
204 * mi/mi-main.c (mi_async): Likewise.
205 (mi_async_1): Likewise.
206 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
207 * nat/fork-inferior.h (startup_with_shell): Likewise.
208 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
209 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
210 * nios2-tdep.c (nios2_debug): Likewise.
211 * or1k-tdep.c (or1k_debug): Likewise.
212 * parse.c (parser_debug): Likewise.
213 * parser-defs.h (parser_debug): Likewise.
214 * printcmd.c (print_symbol_filename): Likewise.
215 * proc-api.c (procfs_trace): Likewise.
216 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
217 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
218 (set_parameter_value): Update.
219 (add_setshow_generic): Update.
220 * python/py-value.c (copy_py_bool_obj): Change argument from int*
221 to bool*.
222 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
223 int*.
224 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
225 * record-btrace.c (record_btrace_target::store_registers): Update.
226 * record-full.c (record_full_memory_query): Change to bool.
227 (record_full_stop_at_limit): Likewise.
228 * record-full.h (record_full_memory_query): Likewise.
229 * remote-notif.c (notif_debug): Likewise.
230 * remote-notif.h (notif_debug): Likewise.
231 * remote.c (use_range_stepping): Likewise.
232 (interrupt_on_connect): Likewise.
233 (remote_break): Likewise.
234 * ser-tcp.c (tcp_auto_retry): Likewise.
235 * ser-unix.c (serial_hwflow): Likewise.
236 * skip.c (debug_skip): Likewise.
237 * solib-aix.c (solib_aix_debug): Likewise.
238 * spu-tdep.c (spu_stop_on_load_p): Likewise.
239 (spu_auto_flush_cache_p): Likewise.
240 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
241 Likewise.
242 (struct info_print_options) <quiet>: Likewise.
243 * symfile-debug.c (debug_symfile): Likewise.
244 * symfile.c (auto_solib_add): Likewise.
245 (separate_debug_file_debug): Likewise.
246 * symfile.h (auto_solib_add): Likewise.
247 (separate_debug_file_debug): Likewise.
248 * symtab.c (basenames_may_differ): Likewise.
249 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
250 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
251 (struct info_types_options) <quiet>: Likewise.
252 * symtab.h (demangle): Likewise.
253 (basenames_may_differ): Likewise.
254 * target-dcache.c (stack_cache_enabled_1): Likewise.
255 (code_cache_enabled_1): Likewise.
256 * target.c (trust_readonly): Likewise.
257 (may_write_registers): Likewise.
258 (may_write_memory): Likewise.
259 (may_insert_breakpoints): Likewise.
260 (may_insert_tracepoints): Likewise.
261 (may_insert_fast_tracepoints): Likewise.
262 (may_stop): Likewise.
263 (auto_connect_native_target): Likewise.
264 (target_stop_and_wait): Update.
265 (target_async_permitted): Change to bool.
266 (target_async_permitted_1): Likewise.
267 (may_write_registers_1): Likewise.
268 (may_write_memory_1): Likewise.
269 (may_insert_breakpoints_1): Likewise.
270 (may_insert_tracepoints_1): Likewise.
271 (may_insert_fast_tracepoints_1): Likewise.
272 (may_stop_1): Likewise.
273 * target.h (target_async_permitted): Likewise.
274 (may_write_registers): Likewise.
275 (may_write_memory): Likewise.
276 (may_insert_breakpoints): Likewise.
277 (may_insert_tracepoints): Likewise.
278 (may_insert_fast_tracepoints): Likewise.
279 (may_stop): Likewise.
280 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
281 (make_thread_apply_all_options_def_group): Change argument from int*
282 to bool*.
283 (thread_apply_all_command): Update.
284 (print_thread_events): Change to bool.
285 * top.c (confirm): Likewise.
286 (command_editing_p): Likewise.
287 (history_expansion_p): Likewise.
288 (write_history_p): Likewise.
289 (info_verbose): Likewise.
290 * top.h (confirm): Likewise.
291 (history_expansion_p): Likewise.
292 * tracepoint.c (disconnected_tracing): Likewise.
293 (circular_trace_buffer): Likewise.
294 * typeprint.c (print_methods): Likewise.
295 (print_typedefs): Likewise.
296 * utils.c (debug_timestamp): Likewise.
297 (sevenbit_strings): Likewise.
298 (pagination_enabled): Likewise.
299 * utils.h (sevenbit_strings): Likewise.
300 (pagination_enabled): Likewise.
301 * valops.c (overload_resolution): Likewise.
302 * valprint.h (struct value_print_options) <prettyformat_arrays,
303 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
304 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
305 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
306 Likewise.
307 * windows-nat.c (new_console): Likewise.
308 (cygwin_exceptions): Likewise.
309 (new_group): Likewise.
310 (debug_exec): Likewise.
311 (debug_events): Likewise.
312 (debug_memory): Likewise.
313 (debug_exceptions): Likewise.
314 (useshell): Likewise.
315 * windows-tdep.c (maint_display_all_tib): Likewise.
316 * xml-support.c (debug_xml): Likewise.
317
f1b620e9
MG
3182019-09-17 Mike Gulick <mgulick@mathworks.com>
319
320 * source.c (prepare_path_for_appending): New function.
321 (openp): Make use of new function.
322 (find_and_open_source): Search for the compilation directory and
323 source file as a relative path beneath the directory search path.
324
67f3ed6a
AB
3252019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
326
327 * source-cache.c (source_cache::get_line_charpos): Catch
328 exceptions and return false, this matches the behaviour documented
329 in the header file.
330
74332189
JB
3312019-09-17 Joel Brobecker <brobecker@adacore.com>
332
333 * ada-tasks.c (info_task): Remove quoting of the task's name.
334
f2f24aa9
CB
3352019-09-16 Christian Biesinger <cbiesinger@google.com>
336
337 * symfile.c (auto_solib_add): Replace comment with a reference
338 to the header file.
339
6a062a93
CB
3402019-09-14 Christian Biesinger <cbiesinger@google.com>
341
342 * NEWS: Mention that gdb can now be compiled with Python 3
343 on Windows.
344
ec6c8338
AB
3452019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
346
347 * maint.c (maint_print_section_data::maint_print_section_data):
348 Force use of 'float log10 (float)' by casting the argument to
349 float.
350
aa17805f
AB
3512019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
352
353 * maint.c: Add 'cmath' include.
354 (struct maint_print_section_data): New structure.
355 (print_section_index): New function.
356 (print_bfd_section_info): Add header comment, small whitespace
357 cleanup, and update to call new print_section_index function.
358 (print_objfile_section_info): Likewise.
359 (maint_obj_section_from_bfd_section): New function.
360 (print_bfd_section_info_maybe_relocated): New function.
361 (maintenance_info_sections): Add header comment, always use
362 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
363
3dd9bb46
AB
3642019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
365
366 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
367 inner scope, add check that the objfile has psymtabs before
368 checking psymtabs_addrmap.
369 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
370
4993045d
PW
3712019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
372
373 * NEWS: Announce that Ada task names are now shown at more places,
374 and between quotes (except in info task output).
375 * gdb/ada-tasks.c (task_to_str): New function.
376 (display_current_task_id): Call task_to_str.
377 (task_command_1): Likewise.
378 (print_ada_task_info): In non-mi mode, Properly align headers and data
379 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
380
7a289707
RO
3812019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
382
383 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
384 prstatus.pr_lwp.pr_info instead of making it up.
385
f2aec7f6
CB
3862019-09-11 Christian Biesinger <cbiesinger@google.com>
387
388 * auto-load.c (auto_load_expand_dir_vars): Update.
389 * defs.h (gdb_datadir): Change to std::string.
390 (python_libdir): Likewise.
391 (relocate_gdb_directory): Change return type to std::string.
392 * guile/guile.c (gdbscm_data_directory): Update.
393 (initialize_scheme_side): Update.
394 * jit.c (jit_reader_dir): Change to std::string.
395 (jit_reader_load_command): Update.
396 * main.c (gdb_datadir): Change to std::string.
397 (python_libdir): Likewise.
398 (set_gdb_data_directory): Update.
399 (relocate_path): Change to return std::string.
400 (relocate_gdb_directory): Change to return std::string.
401 (relocate_gdbinit_path_maybe_in_datadir): Update.
402 (captured_main_1): Update.
403 * python/python.c (do_start_initialization): Update.
404 * top.c (show_gdb_datadir): Update.
405 * xml-syscall.c (xml_init_syscalls_info): Update.
406 (init_syscalls_info): Update.
407
9224a013
CB
4082019-09-11 Christian Biesinger <cbiesinger@google.com>
409
410 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
411 out of get_init_files.
412 (get_init_files): Update.
413
f48cd836
CB
4142019-09-11 Christian Biesinger <cbiesinger@google.com>
415
416 * main.c (get_init_files): Change to use std::string.
417 (captured_main_1): Update.
418 (print_gdb_help): Update.
419
9cab7ecd
AT
4202019-09-11 Ali Tamur <tamur@google.com>
421
422 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
423 implementation.
424
67547d89
CB
4252019-09-11 Christian Biesinger <cbiesinger@google.com>
426
427 * dbxread.c (read_dbx_symtab): Update.
428 * dwarf2read.c (load_partial_dies): Update.
429 * mdebugread.c (parse_partial_symbols): Update.
430 (handle_psymbol_enumerators): Update.
431 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
432 * psymtab.c (add_psymbol_to_bcache): Likewise.
433 (add_psymbol_to_list): Likewise.
434 * symtab.c (symbol_set_names): Likewise.
435 * symtab.h (symbol_set_names): Likewise.
436 * xcoffread.c (scan_xcoff_symtab): Update.
437
64b2d4a0
TT
4382019-09-11 Tom Tromey <tom@tromey.com>
439
440 * symfile-mem.c (symbol_file_add_from_memory): Use
441 bfd_set_filename.
442 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
443 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
444
3b00ef10
TT
4452019-09-10 Tom Tromey <tromey@adacore.com>
446
447 * dwarf-index-write.c (write_psymbols): Extend error message.
448 (debug_names::insert): Add Ada code.
449 (debug_names::write_psymbols): Remove Ada check.
450 (debug_names) <m_string_obstack>: New member.
451 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
452 (gdb_index_symbol_name_matcher::matches): Remove.
453 (mapped_index_base::find_name_components_bounds): Add "lang"
454 parameter.
455 (mapped_index_base::build_name_components): Also split names
456 according to Ada syntax.
457 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
458 type of "match_callback".
459 (check_match, check_find_bounds_finds)
460 (dw2_expand_symtabs_matching): Update.
461 (dw2_debug_names_iterator): Add new constructor.
462 (dw2_debug_names_map_matching_symbols): New function.
463 (dw2_debug_names_expand_symtabs_matching): Update.
464 (dwarf2_debug_names_functions): Use
465 dw2_debug_names_map_matching_symbols.
466
aa391654
TT
4672019-09-10 Tom Tromey <tromey@adacore.com>
468
469 * dwarf2read.c (dw2_get_file_names_reader): Add the
470 CU's file name to the results.
471
b054970d
TT
4722019-09-10 Tom Tromey <tromey@adacore.com>
473
474 * ada-lang.c (add_nonlocal_symbols): Combine calls to
475 map_matching_symbols. Update.
476 * dwarf2read.c (dw2_map_matching_symbols): Update.
477 * psymtab.c (match_partial_symbol): Change type; update.
478 (psym_map_matching_symbols): Likewise.
479 * symfile-debug.c (debug_qf_map_matching_symbols): Change
480 type; update.
481 * symfile.h (struct quick_symbol_functions)
482 <map_matching_symbols>: Change "name" to be a lookup_name_info.
483 Remove "match".
484
6a3dbf1b
TT
4852019-09-10 Tom Tromey <tromey@adacore.com>
486
487 * psymtab.c (map_block): Remove.
488 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
489 * symtab.c (iterate_over_symbols_terminated): New function.
490 * symtab.c (iterate_over_symbols_terminated): Declare.
491
6969f124
TT
4922019-09-10 Tom Tromey <tromey@adacore.com>
493
494 * ada-lang.c (ada_iterate_over_symbols): Return bool.
495 * language.h (struct language_defn) <la_iterate_over_symbols>:
496 Return bool.
497 * symtab.c (iterate_over_symbols): Return bool.
498 * symtab.h (iterate_over_symbols): Return bool.
499
199b4314
TT
5002019-09-10 Tom Tromey <tromey@adacore.com>
501
502 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
503 (add_nonlocal_symbols): Update.
504 * dwarf2read.c (dw2_map_matching_symbols): Change type.
505 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
506 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
507 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
508 Change type of "callback". Remove "data".
509
a084a2a6
AT
510
5112019-09-09 Ali Tamur <tamur@google.com>
512
513 * dwarf2read.c (comp_unit_head): Update comment.
514 (dwarf2_dwo_name): New function declaration.
515 (dwarf_unit_type_name): New function declaration.
516 (read_comp_unit_head): Add support for new compilation units,
517 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
518 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
519 (currently named as "signature") in their header. Also clarify error
520 messages.
521 (lookup_dwo_id): New function. Returns the dwo id of the given
522 compile unit.
523 (lookup_dwo_unit): Use the new lookup_dwo_id function.
524 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
525 functions.
526 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
527 (dwarf2_dwo_name): Get the dwo name if present.
528 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
529 purposes.
530
25a2915e
TT
5312019-09-09 Tom Tromey <tom@tromey.com>
532
533 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
534
e4df0874
PW
5352019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
536
537 * python/python.c (do_start_initialization): Make progname_copy static,
538 to avoid a leak report.
539
8634b462
TT
5402019-09-08 Tom Tromey <tom@tromey.com>
541
542 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
543
c7f839cb
SM
5442019-09-07 Simon Marchi <simon.marchi@efficios.com>
545
546 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
547 Change type to gdb::optional<block_enum>.
548 (dw2_symtab_iter_init): Change block_index parameter type
549 to gdb::optional<block_enum>.
550 (dw2_lookup_symbol): Change block_index parameter
551 type to block_enum.c
552 (dw2_debug_names_lookup_symbol): Likewise.
553 * psymtab.c (psym_lookup_symbol): Likewise.
554 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
555 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
556 Likewise.
557
ead0e69a
CB
5582019-09-06 Christian Biesinger <cbiesinger@google.com>
559
560 * defs.h (relocate_gdb_directory): Change int to bool in
561 signature and rename flag to relocatable.
562 * main.c (relocate_path): Likewise.
563 (relocate_gdb_directory): Likewise.
564
b16c44de
AM
5652019-09-06 Alan Modra <amodra@gmail.com>
566
567 * coffread.c (coff_symfile_read): Constify filename variable.
568 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
569 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
570 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
571 * solib.c (reload_shared_libraries_1): Likewise.
572 * symfile.c (reread_symbols): Likewise.
573 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
574 * solib-darwin.c (darwin_bfd_open): Likewise.
575 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
576
06ff036e
AB
5772019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
578
579 * psymtab.c (print_partial_symbols): Handle missing domain_enum
580 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
581
4e962e74
TT
5822019-09-03 Tom Tromey <tromey@adacore.com>
583
584 * ada-valprint.c (ada_val_print_num): Don't recurse for range
585 types.
586 (has_negatives): Unbias a range type bound.
587 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
588 * gdbtypes.c (operator==): Handle new field.
589 (create_range_type): Add "bias" parameter.
590 (create_static_range_type, resolve_dynamic_range): Update.
591 * gdbtypes.h (struct range_bounds) <bias>: New member.
592 (create_range_type): Add bias parameter.
593 * printcmd.c (print_scalar_formatted): Unbias range types.
594 * value.c (unpack_long): Unbias range types.
595 (pack_long): Bias range types.
596
d90b8f26
AH
5972019-09-02 Alan Hayward <alan.hayward@arm.com>
598
599 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
600 probe arguments.
601
fe01123e
AH
6022019-09-02 Alan Hayward <alan.hayward@arm.com>
603
604 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
605 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
606 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
607 (compile_probe_arg): Likewise.
608 * probe.h (get_argument_count): Likewise.
609 * solib-svr4.c (solib_event_probe_action): Likewise.
610 * stap-probe.c (stap_probe::get_argument_count): Likewise.
611
e661ef01
AH
6122019-09-02 Alan Hayward <alan.hayward@arm.com>
613
614 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
615 code to here...
616 (svr4_create_solib_event_breakpoints): ...from here.
617
47a536d9
SDJ
6182019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
619
620 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
621 suffix from warning message.
622
d6a00eba
TT
6232019-08-30 Tom Tromey <tom@tromey.com>
624
625 * tui/tui-winsource.h (struct tui_source_window_base)
626 <refresh_all>: Don't declare.
627 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
628 Remove.
629 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
630 tui_show_locator_content.
631 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
632 declare.
633 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
634 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
635 declare.
636
55b2657b
TT
6372019-08-30 Tom Tromey <tom@tromey.com>
638
639 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
640
12a8555a
TT
6412019-08-30 Tom Tromey <tom@tromey.com>
642
643 * tui/tui-stack.c (_initialize_tui_stack): Move later.
644 Remove unnecessary forward declarations.
645
900ac242
TT
6462019-08-30 Tom Tromey <tom@tromey.com>
647
648 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
649 rerender.
650 (tui_update_locator_fullname, tui_show_frame_info): Don't call
651 tui_show_locator_content.
652
99ab33fb
TT
6532019-08-30 Tom Tromey <tom@tromey.com>
654
655 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
656 (tui_locator_window::rerender): Rewrite using body of previous
657 tui_show_locator_content.
658
e594a5d1
TT
6592019-08-30 Tom Tromey <tom@tromey.com>
660
661 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
662 set_locator_fullname>: New methods.
663 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
664 Rename from tui_set_locator_fullname.
665 (tui_locator_window::set_locator_info): Rename from
666 tui_set_locator_info. Return bool.
667 (tui_update_locator_fullname, tui_show_frame_info): Update.
668
715bb467
TT
6692019-08-30 Tom Tromey <tom@tromey.com>
670
671 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
672
772f3f03
TT
6732019-08-30 Tom Tromey <tom@tromey.com>
674
675 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
676 call touchwin.
677
108e13ab
TT
6782019-08-30 Tom Tromey <tom@tromey.com>
679
680 * tui/tui-wingeneral.c (box_win): Assume win_info and
681 win_info->handle cannot be NULL.
682
cdaa6eb4
TT
6832019-08-30 Tom Tromey <tom@tromey.com>
684
685 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
686 refresh_window>: Declare.
687 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
688 resize.
689 (tui_data_item_window::rerender): Rename from
690 tui_display_register.
691 (tui_data_item_window::refresh_window): New method.
692 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
693 no-op.
694
89df7f90
TT
6952019-08-30 Tom Tromey <tom@tromey.com>
696
697 * tui/tui-regs.h (struct tui_data_window) <regs_content,
698 regs_column_count, current_group>: Move later. Now private.
699 <get_current_group>: New method.
700 * tui/tui-regs.c (tui_reg_command): Update.
701 * tui/tui-layout.c (tui_set_layout): Update.
702
1bf2866a
TT
7032019-08-30 Tom Tromey <tom@tromey.com>
704
705 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
706 (tui_data_window::rerender): Don't call
707 check_and_display_highlight_if_needed.
708 (tui_data_window::refresh_all): Remove call to
709 erase_data_content.
710
0670413d
TT
7112019-08-30 Tom Tromey <tom@tromey.com>
712
713 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
714 (tui_data_window::display_registers_from)
715 (tui_data_window::display_reg_element_at_line)
716 (tui_data_window::display_registers_from_line): Remove checks of
717 "empty".
718
18bb55c7
TT
7192019-08-30 Tom Tromey <tom@tromey.com>
720
721 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
722 Don't declare.
723 * tui/tui-regs.c (tui_data_window::show_registers): Call
724 rerender.
725 (tui_data_window::rerender): Rename from display_all_data.
726 (tui_data_window::rerender): Remove old implementation.
727
1f6d2f10
TT
7282019-08-30 Tom Tromey <tom@tromey.com>
729
730 * tui/tui-regs.c (tui_data_window::display_all_data): Change
731 text.
732 * tui/tui-data.h (NO_DATA_STRING): Remove define.
733
16d01f9c
BW
7342019-08-29 Bernhard Wodok <barto@gmx.net>
735 Sergio Durigan Junior <sergiodj@redhat.com>
736
737 PR win32/24284
738 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
739
d8f27c60
AB
7402019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
741
742 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
743 when searching for types.
744
1f20c35e
AB
7452019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
746
747 * f-lang.c (f_language_defn): Use f_print_typedef.
748 * f-lang.h (f_print_typedef): Declare.
749 * f-typeprint.c (f_print_typedef): Define.
750
550105b7
CB
7512019-08-27 Christian Biesinger <cbiesinger@google.com>
752
753 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
754
4acfdd20
AB
7552019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
756
757 * cli/cli-utils.c (info_print_options_defs): Delete.
758 (make_info_print_options_def_group): Delete.
759 (extract_info_print_options): Delete.
760 (info_print_command_completer): Delete.
761 (info_print_args_help): Add extra parameter, and optionally
762 include text about -n flag.
763 * cli/cli-utils.h (struct info_print_options): Delete.
764 (extract_info_print_options): Delete declaration.
765 (info_print_command_completer): Delete declaration.
766 (info_print_args_help): Add extra parameter, extend header
767 comment.
768 * python/python.c (gdbpy_rbreak): Pass additional parameter to
769 search_symbols.
770 * stack.c (struct info_print_options): New type.
771 (info_print_options_defs): New file scoped variable.
772 (make_info_print_options_def_group): New static function.
773 (info_print_command_completer): New static function.
774 (info_locals_command): Update to use new local functions.
775 (info_args_command): Likewise.
776 (_initialize_stack): Add extra parameter to calls to
777 info_print_args_help.
778 * symtab.c (search_symbols): Add extra parameter, use this to
779 possibly excluse non-debug symbols.
780 (symtab_symbol_info): Add extra parameter, which is passed on to
781 search_symbols.
782 (struct info_print_options): New type.
783 (info_print_options_defs): New file scoped variable.
784 (make_info_print_options_def_group): New static function.
785 (info_print_command_completer): New static function.
786 (info_variables_command): Update to use local functions, and pass
787 extra parameter through to symtab_symbol_info.
788 (info_functions_command): Likewise.
789 (info_types_command): Pass additional argument through to
790 symtab_symbol_info.
791 (rbreak_command): Pass extra argument to search_symbols.
792 (_initialize_symtab): Add extra arguments for calls to
793 info_print_args_help, and update help text for 'info variables',
794 'whereis', and 'info functions' commands.
795 * symtab.h (search_symbols): Add extra argument to declaration.
796 * NEWS: Mention new flags.
797
9aa55206
CB
7982019-08-26 Christian Biesinger <cbiesinger@google.com>
799
800 * symtab.c (lookup_static_symbol): Call the new function (and move
801 it down to be next to lookup_global_symbol).
802 (struct global_sym_lookup_data): Add block_enum member and rename to...
803 (struct global_or_static_sym_lookup_data): ...this.
804 (lookup_symbol_global_iterator_cb): Pass block_index instead of
805 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
806 (lookup_symbol_global_or_static_iterator_cb): ...this.
807 (lookup_global_or_static_symbol): New function.
808 (lookup_global_symbol): Call new function.
809
5c31b358
TV
8102019-08-26 Tom de Vries <tdevries@suse.de>
811
812 PR c++/24852
813 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
814 when pc_probe.prob == NULL.
815
23c13d42
SM
8162019-08-25 Simon Marchi <simon.marchi@efficios.com>
817
818 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
819 variable symbol_linkage to symbol_linkage_.
820
beadd3e8
SM
8212019-08-25 Simon Marchi <simon.marchi@efficios.com>
822
823 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
824 represent whether the symbol is static, dynamic, or we don't
825 know.
826
e3ec872f
YS
8272019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
828
829 * gdb/rx-tdep.c (rx_register_names): New.
830 (rx_register_name): Delete.
831 (rx_psw_type): Delete.
832 (rx_fpsw_type): Delete.
833 (rx_register_type): Delete.
834 (rx_gdbarch_init): Convert target-descriptions.
835 (_initialize_rx_tdep): Add initialize_tdesc_rx.
836 * gdb/features/Makefile: Add rx.xml.
837 * gdb/features/rx.xml: New.
838 * gdb/features/rx.c: Generated.
839 * gdb/NEWS: Mention target description support.
840
d0509ba4
CB
8412019-08-22 Christian Biesinger <cbiesinger@google.com>
842
843 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
844 *slot_ptr.
845
2d41fa11
SDJ
8462019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
847
848 * configure.ac: Don't check for 'dlfcn.h' (moved to
849 gdbsupport/common.m4).
850 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
851 'gdbsupport/'.
852 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
853 * compile/compile-c-support.c: Include
854 'gdbsupport/gdb-dlfcn.h'.
855 * gdbsupport/common.m4: Check for 'dlfcn.h'.
856 * gdb-dlfcn.c: Move to...
857 * gdbsupport/gdb-dlfcn.c: ... here.
858 * gdb-dlfcn.h: Move to...
859 * gdbsupport/gdb-dlfcn.h: ... here.
860
de8af808
SL
8612019-08-23 Sandra Loosemore <sandra@codesourcery.com>
862
863 * nios2-tdep.c (struct reg_value): Improve comments. Make
864 the offset field signed.
865
27204489
CB
8662019-08-22 Christian Biesinger <cbiesinger@google.com>
867
868 * python/lib/gdb/__init__.py (_execute_file): New function.
869 * python/python.c (python_run_simple_file): Call gdb._execute_file
870 on Windows.
871
43771869
AB
8722019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
873
874 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
875 all uses as this was never set to anything but a zero value.
876
26c957f1
PA
8772019-08-21 Bogdan Harjoc <harjoc@gmail.com>
878
879 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
880
c07aae6e
CB
8812019-08-21 Christian Biesinger <cbiesinger@google.com>
882
883 * tui/tui-data.h (tui_gen_win_info): Add an =default
884 move constructor, required by some GCC versions.
885
3960cb7a
JF
8862019-08-21 Jinke Fan <fanjinke51@yeah.net>
887
888 * go32-nat.c (go32_sysinfo): Add hygon_p.
889
04c72a68
TT
8902019-08-20 Tom Tromey <tom@tromey.com>
891
892 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
893 line_from_reg_element_no, first_reg_element_no_inline,
894 display_all_data, delete_data_content_windows,
895 erase_data_content>: Now private.
896
072272ce
TT
8972019-08-20 Tom Tromey <tom@tromey.com>
898
899 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
900 (tui_unhighlight_win, tui_highlight_win)
901 (tui_win_info::make_window): Update.
902 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
903
973961bd
TT
9042019-08-20 Tom Tromey <tom@tromey.com>
905
906 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
907 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
908 (MAX_PID_WIDTH): Move to tui-stack.c.
909 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
910 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
911 (MAX_PID_WIDTH): Move from tui-data.h.
912
ab0e1f1a
TT
9132019-08-20 Tom Tromey <tom@tromey.com>
914
915 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
916 * tui/tui-wingeneral.c (box_win): Change type of win_info.
917 (box_win): Update.
918 (tui_gen_win_info::make_window): Rename from tui_make_window.
919 (tui_win_info::make_window): New method.
920 (tui_gen_win_info::make_visible): Update.
921 * tui/tui-source.c (tui_source_window::set_contents): Update.
922 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
923 (tui_data_window::display_registers_from): Update.
924 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
925 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
926 Declare.
927 <can_box>: Remove.
928 <title>: Remove.
929 (struct tui_win_info) <make_window>: Declare.
930 <can_box>: Now virtual.
931 <title>: New member.
932 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
933 * tui/tui-command.c (tui_cmd_window::resize): Update.
934
100c2bf3
TT
9352019-08-20 Tom Tromey <tom@tromey.com>
936
937 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
938 * tui/tui-regs.c (tui_data_window::show_registers): Update.
939 (tui_data_window::check_register_values): Update.
940
fa4dc567
TT
9412019-08-20 Tom Tromey <tom@tromey.com>
942
943 * tui/tui-regs.h (struct tui_data_window): Use
944 DISABLE_COPY_AND_ASSIGN.
945 <regs_content>: Change type, removing unique_ptr.
946 <tui_data_window>: Add move constructor.
947 * tui/tui-regs.c (tui_data_window::show_registers)
948 (tui_data_window::show_register_group)
949 (tui_data_window::display_registers_from)
950 (tui_data_window::display_registers_from)
951 (tui_data_window::first_data_item_displayed)
952 (tui_data_window::delete_data_content_windows)
953 (tui_data_window::rerender, tui_data_window::refresh_window)
954 (tui_data_window::check_register_values): Update.
955
ca02d7c8
TT
9562019-08-20 Tom Tromey <tom@tromey.com>
957
958 * tui/tui-regs.h (struct tui_data_window) <show_registers,
959 show_register_group>: Declare.
960 (tui_show_register_group): Don't declare.
961 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
962 tui_show_registers.
963 (tui_data_window::show_register_group): Rename from
964 tui_show_register_group.
965 (tui_data_window::check_register_values, tui_reg_command):
966 Update.
967 * tui/tui-layout.c (tui_set_layout): Update.
968
63356bfd
TT
9692019-08-20 Tom Tromey <tom@tromey.com>
970
971 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
972 Declare.
973 (tui_check_register_values): Don't declare.
974 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
975 from tui_check_register_values.
976 * tui/tui-hooks.c (tui_register_changed): Update.
977
42cc14a7
TT
9782019-08-20 Tom Tromey <tom@tromey.com>
979
980 * tui/tui-regs.c (tui_reg_layout): Move later.
981 (tui_show_registers): Don't enable TUI mode or change layout.
982
b9ad3686
TT
9832019-08-20 Tom Tromey <tom@tromey.com>
984
985 * tui/tui-regs.h (struct tui_data_item_window)
986 <~tui_data_item_window>: Remove.
987 <content>: Now a unique_xmalloc_ptr.
988 * tui/tui-regs.c (tui_register_format): Return a
989 unique_xmalloc_ptr.
990 (tui_get_register): Update.
991 (~tui_data_item_window): Remove.
992 (tui_data_window::display_registers_from, tui_display_register):
993 Update.
994 * tui/tui-io.h (tui_expand_tabs): Update.
995 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
996 Remove "col" parameter.
997
8e114aab
TT
9982019-08-20 Tom Tromey <tom@tromey.com>
999
1000 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1001 field.
1002 * tui/tui-regs.c (~tui_data_item_window): Update.
1003
1a4f81dd
TT
10042019-08-20 Tom Tromey <tom@tromey.com>
1005
1006 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1007 earlier.
1008
0f8d8876
TT
10092019-08-20 Tom Tromey <tom@tromey.com>
1010
1011 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1012
605dc2c2
TT
10132019-08-20 Tom Tromey <tom@tromey.com>
1014
1015 * tui/tui-source.h (struct tui_source_window): Update.
1016 * tui/tui-regs.c (tui_show_registers): Update.
1017 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1018 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1019 (NO_REGS_STRING): Remove defines.
1020
aedbe3bb
CM
10212019-08-20 Conrad Meyer <cem@FreeBSD.org>
1022
1023 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1024 unnecessary thread walk if remote doesn't support the packet.
1025
7ce8f214
TT
10262019-08-19 Tom Tromey <tromey@adacore.com>
1027
1028 * python/py-value.c (value_has_field): Fix indentation.
1029
f21c2bd7
TT
10302019-08-19 Tom Tromey <tromey@adacore.com>
1031
1032 * printcmd.c (do_one_display, info_display_command): Update.
1033 * block.h (contained_in): Return bool. Add allow_nested
1034 parameter.
1035 * block.c (contained_in): Return bool. Add allow_nested
1036 parameter.
1037
d806ea2d
TT
10382019-08-19 Tom Tromey <tom@tromey.com>
1039
1040 * configure: Rebuild.
1041 * configure.ac: Disallow the combination of -static-libstdc++ and
1042 source highlight.
1043 * source-cache.c (get_language_name): Handle rust.
1044 (source_cache::get_source_lines): Ignore highlighting exceptions.
1045
398fdd60
TT
10462019-08-16 Tom Tromey <tom@tromey.com>
1047
1048 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1049 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1050 (struct tui_source_window_base) <make_visible, refresh_window,
1051 resize>: Remove methods.
1052 <execution_info>: Remove field.
1053 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1054 (tui_show_source_line, tui_source_window_base)
1055 (~tui_source_window_base): Update.
1056 (tui_source_window_base::resize)
1057 (tui_source_window_base::make_visible)
1058 (tui_source_window_base::refresh_window): Remove.
1059 (tui_source_window_base::update_exec_info): Update.
1060 * tui/tui-source.c (tui_source_window::set_contents): Update.
1061 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1062
e699d331
TT
10632019-08-16 Tom Tromey <tom@tromey.com>
1064
1065 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1066 deprecated_query_hook.
1067
bb01dbfc
TT
10682019-08-16 Tom Tromey <tom@tromey.com>
1069
1070 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1071 (tui_update_source_windows_with_line): Update.
1072 * tui/tui-source.h (struct tui_source_window)
1073 <show_symtab_source>: Declare.
1074 (tui_show_symtab_source): Don't declare.
1075 * tui/tui-source.c (tui_show_symtab_source): Rename from
1076 tui_show_symtab_source.
1077
81c82c4b
TT
10782019-08-16 Tom Tromey <tom@tromey.com>
1079
1080 * tui/tui-winsource.h (struct tui_source_window_base)
1081 <set_contents>: Declare.
1082 * tui/tui-winsource.c
1083 (tui_source_window_base::update_source_window_as_is): Update.
1084 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1085 Declare.
1086 (tui_set_source_content): Don't declare.
1087 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1088 tui_set_source_content.
1089 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1090 Declare.
1091 (tui_set_disassem_content): Don't declare.
1092 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1093 tui_set_disassem_content.
1094
2ddaf614
TT
10952019-08-16 Tom Tromey <tom@tromey.com>
1096
1097 * tui/tui-winsource.h (struct tui_source_window_base)
1098 <update_breakpoint_info>: Declare.
1099 (tui_update_breakpoint_info): Don't declare.
1100 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1101 (tui_update_all_breakpoint_info): Update.
1102 (tui_source_window_base::update_breakpoint_info): Rename from
1103 tui_update_breakpoint_info.
1104 (tui_source_window_base::update_exec_info): Update.
1105
017f9828
TT
11062019-08-16 Tom Tromey <tom@tromey.com>
1107
1108 * tui/tui-winsource.h (struct tui_source_window_base)
1109 <update_source_window>: Declare.
1110 (tui_update_source_window): Don't declare.
1111 * tui/tui-winsource.c
1112 (tui_source_window_base::update_source_window): Rename from
1113 tui_update_source_window.
1114 (tui_source_window_base::rerender): Update.
1115 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1116 * tui/tui-disasm.c (tui_show_disassem)
1117 (tui_show_disassem_and_update_source)
1118 (tui_disasm_window::maybe_update): Update.
1119
ed8358e9
TT
11202019-08-16 Tom Tromey <tom@tromey.com>
1121
1122 * tui/tui-winsource.h (struct tui_source_window_base)
1123 <update_source_window_as_is>: Declare.
1124 (tui_update_source_window_as_is): Don't declare.
1125 * tui/tui-winsource.c (tui_update_source_window): Update
1126 (tui_source_window_base::update_source_window_as_is): Rename from
1127 tui_update_source_window_as_is.
1128 (tui_source_window_base::refill): Update.
1129 * tui/tui-source.c (tui_show_symtab_source): Update.
1130 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1131 Update.
1132
20149b6b
TT
11332019-08-16 Tom Tromey <tom@tromey.com>
1134
1135 * tui/tui-winsource.h (tui_update_source_window)
1136 (tui_update_source_window_as_is): Remove "noerror" parameter.
1137 * tui/tui-winsource.c (tui_update_source_window)
1138 (tui_update_source_window_as_is): Remove "noerror" parameter.
1139 (tui_update_source_windows_with_addr)
1140 (tui_update_source_windows_with_line)
1141 (tui_source_window_base::rerender)
1142 (tui_source_window_base::refill): Update.
1143 * tui/tui-source.h (tui_set_source_content)
1144 (tui_show_symtab_source): Remove "noerror" parameter.
1145 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1146 parameter.
1147 (tui_show_symtab_source): Likewise.
1148 (tui_source_window::maybe_update): Update.
1149 * tui/tui-disasm.c (tui_show_disassem)
1150 (tui_show_disassem_and_update_source)
1151 (tui_disasm_window::do_scroll_vertical)
1152 (tui_disasm_window::maybe_update): Update.
1153
2d83e710
TT
11542019-08-16 Tom Tromey <tom@tromey.com>
1155
1156 * tui/tui.c (tui_is_window_visible): Update.
1157 * tui/tui-wingeneral.c (tui_make_window)
1158 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1159 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1160 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1161 (tui_set_win_height_command, parse_scrolling_args): Update.
1162 * tui/tui-source.c (tui_source_window::style_changed): Update.
1163 * tui/tui-regs.c (tui_show_registers)
1164 (tui_data_window::first_data_item_displayed)
1165 (tui_data_window::delete_data_content_windows)
1166 (tui_check_register_values, tui_reg_command): Update.
1167 * tui/tui-disasm.c (tui_show_disassem): Update.
1168 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1169 method.
1170 <is_visible>: Remove field.
1171 * tui/tui-data.c (tui_next_win, tui_prev_win)
1172 (tui_delete_invisible_windows): Update.
1173
d4ab829a
TT
11742019-08-16 Tom Tromey <tom@tromey.com>
1175
1176 * tui/tui-winsource.h (struct tui_source_window_base)
1177 <m_has_locator>: Remove.
1178 * tui/tui-layout.c (show_source_disasm_command, show_data)
1179 (show_source_or_disasm_and_command): Update.
1180
aa7ca1bb
AH
11812019-08-16 Alan Hayward <alan.hayward@arm.com>
1182
1183 * NEWS (Other MI changes): New subsection.
1184 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1185 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1186 * arch-utils.c (default_get_pc_address_flags): New function.
1187 * arch-utils.h (default_get_pc_address_flags): New declaration.
1188 * gdbarch.sh: Add get_pc_address_flags.
1189 * gdbarch.c: Regenerate.
1190 * gdbarch.h: Likewise.
1191 * stack.c (print_pc): New function.
1192 (print_frame_info) (print_frame): Call print_pc.
1193
6eac171f
TV
11942019-08-16 Tom de Vries <tdevries@suse.de>
1195
1196 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1197 print_objfile_section_info.
1198
3df505f6
TT
11992019-08-15 Tom Tromey <tom@tromey.com>
1200
1201 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1202 calling update_cmdwin_start_line.
1203 * tui/tui-winsource.h (struct tui_source_window_base)
1204 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1205 <rerender>: Declare.
1206 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1207 Call rerender.
1208 (tui_source_window_base::set_new_height): Remove.
1209 (tui_source_window_base::rerender): Rename from
1210 do_make_visible_with_new_height.
1211 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1212 resize method.
1213 (tui_win_info::make_invisible_and_set_new_height)
1214 (tui_win_info::make_visible_with_new_height): Remove.
1215 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1216 Declare.
1217 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1218 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1219 do_make_visible_with_new_height>: Don't declare.
1220 <rerender>: Declare.
1221 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1222 set_new_height.
1223 (tui_data_window::do_make_visible_with_new_height): Remove.
1224 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1225 call tui_show_locator_content.
1226 (tui_gen_win_info::resize): Call rerender.
1227 (show_source_or_disasm_and_command): Don't call
1228 tui_show_locator_content.
1229 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1230 method.
1231 (struct tui_win_info) <rerender>: Declare.
1232 <set_new_height, make_invisible_and_set_new_height,
1233 make_visible_with_new_height>: Don't declare.
1234 * tui/tui-data.c (tui_win_list::rerender): New method.
1235 * tui/tui-command.h (struct tui_cmd_window)
1236 <do_make_visible_with_new_height>: Don't declare.
1237 * tui/tui-command.c
1238 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1239
272560b5
TT
12402019-08-15 Tom Tromey <tromey@adacore.com>
1241
1242 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1243 * ada-lang.c (ada_enum_name): Likewise.
1244
08235187
CB
12452019-08-15 Christian Biesinger <cbiesinger@google.com>
1246
1247 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1248 leading underscore.
1249 (GdbOutputErrorFile): Likewise.
1250 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1251 accordingly.
1252 (execute_unwinders): Rename to have a leading underscore.
1253 (auto_load_packages): Likewise.
1254 (global scope): Adjust call to auto_load_packages accordingly.
1255 (GdbSetPythonDirectory): Likewise.
1256 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1257 instead of execute_unwinders.
1258
db502012
TT
12592019-08-15 Tom Tromey <tom@tromey.com>
1260
1261 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1262 (show_data): Don't change window visibility.
1263 (tui_gen_win_info::resize): Remove special case for command
1264 window. Use wresize, when available.
1265 (show_source_or_disasm_and_command): Don't change window
1266 visibility.
1267 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1268 <make_visible>: New method.
1269 * tui/tui-command.c (tui_cmd_window::resize): New method.
1270
3891b65e
TT
12712019-08-15 Tom Tromey <tom@tromey.com>
1272
1273 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1274 (struct tui_source_windows): New.
1275 * tui/tui-winsource.c (tui_display_main): Update.
1276 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1277 (new_height_ok, parse_scrolling_args): Update.
1278 * tui/tui-layout.c (show_layout, show_data): Update.
1279 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1280 (tui_add_to_source_windows): Don't declare.
1281 * tui/tui-data.c (source_windows, tui_source_windows)
1282 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1283
ee556432
TT
12842019-08-15 Tom Tromey <tom@tromey.com>
1285
1286 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1287 Rename from reset.
1288 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1289 * tui/tui-layout.c (show_source_disasm_command, show_data):
1290 Update.
1291 (tui_gen_win_info::resize): Rename.
1292 (show_source_or_disasm_and_command): Update.
1293 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1294 reset.
1295
46f438e3
TT
12962019-08-15 Tom Tromey <tom@tromey.com>
1297
1298 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1299 * tui/tui-interp.c (tui_interp::init): Don't call
1300 tui_initialize_static_data.
1301 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1302
f4ce562c
TT
13032019-08-15 Tom Tromey <tom@tromey.com>
1304
1305 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1306 examine tui_win_list.
1307
c398c3d0
TT
13082019-08-15 Tom Tromey <tom@tromey.com>
1309
1310 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1311 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1312 tui_clear_source_content.
1313 (tui_clear_source_content): Remove.
1314 (tui_source_window_base::do_erase_source_content): Hoist call to
1315 content.clear().
1316 * tui/tui-stack.c (tui_show_frame_info): Don't call
1317 tui_clear_source_content.
1318
e25d2004
TT
13192019-08-15 Tom Tromey <tom@tromey.com>
1320
1321 * tui/tui-winsource.h (struct tui_source_window_base)
1322 <do_erase_source_content>: New method.
1323 <erase_source_content>: New method.
1324 (tui_erase_source_content): Don't declare.
1325 * tui/tui-winsource.c (tui_clear_source_content): Update.
1326 (tui_source_window_base::do_erase_source_content): Rename from
1327 tui_erase_source_content.
1328 (tui_source_window_base::show_source_content): Update.
1329 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1330 * tui/tui-source.h (struct tui_source_window)
1331 <erase_source_content>: New method.
1332 * tui/tui-disasm.h (struct tui_disasm_window)
1333 <erase_source_content>: New method.
1334
002f15c2
TT
13352019-08-15 Tom Tromey <tom@tromey.com>
1336
1337 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1338 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1339 constructor.
1340 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1341 * tui/tui-source.c (tui_set_source_content): Update.
1342 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1343
c9033fe8
TT
13442019-08-15 Tom Tromey <tom@tromey.com>
1345
1346 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1347 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1348 tui-source.c.
1349 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1350 Declare.
1351 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1352 method.
1353 (tui_source_window::maybe_update): Update.
1354
088f37dd
TT
13552019-08-15 Tom Tromey <tom@tromey.com>
1356
1357 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1358 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1359 tui-disasm.c.
1360 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1361 Declare.
1362 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1363 method.
1364 (tui_disasm_window::maybe_update): Update.
1365
a54700c6
TT
13662019-08-15 Tom Tromey <tom@tromey.com>
1367
1368 * tui/tui-winsource.h (struct tui_source_window_base)
1369 <maybe_update>: Declare.
1370 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1371 method.
1372 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1373 Declare.
1374 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1375 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1376 Declare.
1377 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1378
e2a678a5
TT
13792019-08-15 Tom Tromey <tom@tromey.com>
1380
1381 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1382
f2dda477
TT
13832019-08-15 Tom Tromey <tom@tromey.com>
1384
1385 * tui/tui-wingeneral.c: Include tui-stack.h.
1386 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1387 (struct tui_locator_window): Move from tui-data.h.
1388 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1389 (tui_initialize_static_data): Move from tui-data.c.
1390 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1391 (struct tui_locator_window): Move to tui-stack.c.
1392 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1393 (tui_initialize_static_data): Move to tui-stack.c.
1394
ed4a1084
TT
13952019-08-15 Tom Tromey <tom@tromey.com>
1396
1397 * tui/tui-layout.c (show_source_disasm_command)
1398 (show_source_or_disasm_and_command): Use make_visible method, not
1399 tui_make_window.
1400 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1401 Remove.
1402
65962b20
TT
14032019-08-15 Tom Tromey <tom@tromey.com>
1404
1405 * tui/tui-wingeneral.h (tui_make_window): Update.
1406 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1407 parameter.
1408 (tui_gen_win_info::make_visible): Update.
1409 * tui/tui-regs.c (tui_data_window::display_registers_from):
1410 Update.
1411 * tui/tui-layout.c (show_source_disasm_command)
1412 (show_source_or_disasm_and_command): Update.
1413 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1414 (enum tui_box): Remove.
1415 (struct tui_win_info) <can_box>: New method.
1416 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1417 method.
1418
2208ee91
TV
14192019-08-15 Tom de Vries <tdevries@suse.de>
1420
1421 * linux-nat-trad.c: Include gdbarch.h.
1422
75faf5c4
AH
14232019-08-14 Alan Hayward <alan.hayward@arm.com>
1424
1425 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1426 register sizes.
1427
b1c896b3
TT
14282019-08-14 Tom Tromey <tromey@adacore.com>
1429
1430 * darwin-nat.c: Include gdbarch.h.
1431 * darwin-nat-info.c: Include gdbarch.h.
1432
6405cd73
TT
14332019-08-13 Tom Tromey <tom@tromey.com>
1434
1435 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1436 Remove.
1437 * tui/tui-data.c (tui_initialize_static_data): Update.
1438
5216580d
TT
14392019-08-13 Tom Tromey <tom@tromey.com>
1440
1441 * tui/tui-winsource.h (struct tui_exec_info_window)
1442 <~tui_exec_info_window, maybe_allocate_content, get_content,
1443 m_content>: Remove.
1444 (struct tui_source_window_base) <set_exec_info_content,
1445 show_exec_info_content>: Don't declare.
1446 * tui/tui-winsource.c
1447 (tui_exec_info_window::maybe_allocate_content): Remove.
1448 (tui_source_window_base::update_exec_info): Rename from
1449 set_exec_info_content.
1450 (tui_source_window_base::show_exec_info_content)
1451 (tui_source_window_base::update_exec_info): Remove.
1452
93858ad3
TT
14532019-08-13 Tom Tromey <tom@tromey.com>
1454
1455 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1456 declare.
1457 * tui/tui-winsource.c (tui_update_source_window_as_is)
1458 (tui_update_source_windows_with_addr, tui_erase_source_content):
1459 Update.
1460 (tui_clear_exec_info_content): Remove.
1461
e321e7ce
TT
14622019-08-13 Tom Tromey <tom@tromey.com>
1463
1464 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1465 declare.
1466 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1467 call tui_erase_exec_info_content.
1468 (tui_clear_exec_info_content): Rename from
1469 tui_erase_exec_info_content.
1470 (tui_clear_exec_info_content): Delete.
1471
8270ac62
TT
14722019-08-13 Tom Tromey <tom@tromey.com>
1473
1474 * tui/tui-winsource.h (struct tui_source_window_base)
1475 <show_exec_info_content>: Declare.
1476 (tui_show_exec_info_content): Don't declare.
1477 * tui/tui-winsource.c
1478 (tui_source_window_base::show_exec_info_content): Rename from
1479 tui_show_exec_info_content.
1480 (tui_source_window_base::update_exec_info): Update.
1481
7b56485d
TT
14822019-08-13 Tom Tromey <tom@tromey.com>
1483
1484 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1485 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1486 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1487 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1488 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1489 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1490 ... here.
1491
7ba913dc
TT
14922019-08-13 Tom Tromey <tom@tromey.com>
1493
1494 * tui/tui-winsource.h (struct tui_source_window_base)
1495 <update_exec_info>: Declare.
1496 (tui_update_exec_info): Don't declare.
1497 * tui/tui-winsource.c (tui_update_source_window_as_is)
1498 (tui_source_window_base::refresh_all)
1499 (tui_update_all_breakpoint_info): Update.
1500 (tui_source_window_base::update_exec_info): Rename from
1501 tui_update_exec_info.
1502 * tui/tui-stack.c (tui_show_frame_info): Update.
1503
37a4a131
TT
15042019-08-13 Tom Tromey <tom@tromey.com>
1505
1506 * tui/tui-winsource.h (struct tui_source_window_base)
1507 <set_exec_info_content>: Declare.
1508 (tui_set_exec_info_content): Don't declare.
1509 * tui/tui-winsource.c
1510 (tui_source_window_base::set_exec_info_content): Rename from
1511 tui_set_exec_info_content.
1512 (tui_update_exec_info): Update.
1513
0bd27e07
TT
15142019-08-13 Tom Tromey <tom@tromey.com>
1515
1516 * tui/tui-winsource.h (struct tui_source_window_base)
1517 <show_source_content>: Declare.
1518 (tui_show_source_content): Don't declare.
1519 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1520 (tui_source_window_base::show_source_content): Rename from
1521 tui_show_source_content.
1522 (tui_source_window_base::refresh_all): Update.
1523 * tui/tui-layout.c (show_source_disasm_command)
1524 (show_source_or_disasm_and_command): Update.
1525
b4ef5aeb
TT
15262019-08-13 Tom Tromey <tom@tromey.com>
1527
1528 * tui/tui-winsource.c (tui_erase_source_content)
1529 (tui_show_source_content, tui_source_window_base::refresh_all):
1530 Update.
1531 * tui/tui-wingeneral.h
1532 (tui_check_and_display_highlight_if_needed): Don't declare.
1533 * tui/tui-wingeneral.c
1534 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1535 check_and_display_highlight_if_needed.
1536 * tui/tui-win.c (tui_rehighlight_all)
1537 (tui_win_info::make_visible_with_new_height): Update.
1538 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1539 (tui_data_window::erase_data_content)
1540 (tui_data_window::display_all_data): Update.
1541 * tui/tui-data.h (struct tui_win_info)
1542 <check_and_display_highlight_if_needed>: Declare.
1543
fede5273
TT
15442019-08-13 Tom Tromey <tom@tromey.com>
1545
1546 * tui/tui-win.c (tui_resize_all): Call
1547 tui_delete_invisible_windows.
1548 * tui/tui-layout.c (show_layout): Call
1549 tui_delete_invisible_windows.
1550 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1551 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1552
22c3f490
TT
15532019-08-13 Tom Tromey <tom@tromey.com>
1554
1555 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1556 tui_add_win_to_layout.
1557
16cb7910
TT
15582019-08-13 Tom Tromey <tom@tromey.com>
1559
1560 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1561 * tui/tui-layout.c (tui_default_win_height): Now static.
1562
cc0c3ffb
TT
15632019-08-13 Tom Tromey <tom@tromey.com>
1564
1565 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1566 single switch.
1567 (show_source_disasm_command, show_source_or_disasm_and_command):
1568 Don't check current layout.
1569
3f3ffe54
TT
15702019-08-13 Tom Tromey <tom@tromey.com>
1571
1572 * tui/tui-wingeneral.c (make_all_visible): Remove.
1573 (tui_make_all_invisible): Simplify.
1574 * tui/tui-layout.c (tui_make_all_invisible): Move from
1575 tui-wingeneral.c; simplify.
1576 (show_layout): Hoist call to tui_make_all_invisible.
1577 (show_data): Don't call tui_make_all_invisible.
1578
69258091
TT
15792019-08-13 Tom Tromey <tom@tromey.com>
1580
1581 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1582 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1583
62cf57fe
TT
15842019-08-13 Tom Tromey <tom@tromey.com>
1585
1586 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1587 tui-data.c.
1588 (show_source_disasm_command, show_data)
1589 (show_source_or_disasm_and_command): Don't use
1590 tui_set_current_layout_to.
1591 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1592 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1593 tui-layout.c.
1594 (tui_set_current_layout_to): Remove.
1595
2afade5d
TT
15962019-08-13 Tom Tromey <tom@tromey.com>
1597
1598 * tui/tui-layout.c (tui_set_layout): Update.
1599 * tui/tui-data.h (struct tui_layout_def): Remove.
1600 (tui_layout_def): Don't declare.
1601 * tui/tui-data.c (layout_def): Remove.
1602 (tui_layout_def): Remove.
1603
a3504e96
TT
16042019-08-13 Tom Tromey <tom@tromey.com>
1605
1606 * tui/tui-winsource.h (struct tui_source_window_base)
1607 <clear_detail>: No longer "override".
1608 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1609 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1610 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1611 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1612 Remove.
1613 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1614
29c92911
TT
16152019-08-13 Tom Tromey <tromey@adacore.com>
1616
1617 * tracepoint.c: Don't include readline.h or history.h.
1618
86c6b807
TT
16192019-08-12 Tom Tromey <tom@tromey.com>
1620
1621 * configure: Rebuild.
1622 * configure.ac: Check for readline 7.
1623 * NEWS: Mention readline 7 requirement.
1624 * README: Update.
1625
5db2718c
TT
16262019-08-12 Tom Tromey <tom@tromey.com>
1627
1628 * mingw-hdep.c (gdb_select): Remove readline hack.
1629
dac36daf
PFC
16302019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1631
1632 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1633 when the function fails.
1634
1022c627
AA
16352019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1636
1637 * s390-tdep.c (s390_type_align): New function.
1638 (s390_gdbarch_init): Set it as type_align gdbarch method.
1639
eba4caf2
TV
16402019-08-09 Tom de Vries <tdevries@suse.de>
1641
1642 PR gdb/24591
1643 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1644 pc_low with relocation offset.
1645
123cd851
TT
16462019-08-07 Tom Tromey <tromey@adacore.com>
1647
1648 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1649 (print_frame_args): Update.
1650 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1651 Update.
1652 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1653 * frame.h (struct frame_arg): Add initializers.
1654 <error>: Now a unique_xmalloc_ptr.
1655
3d31bc39
AH
16562019-08-07 Alan Hayward <alan.hayward@arm.com>
1657
1658 * NEWS: Expand the Pointer Authentication entry.
1659 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1660 (aarch64_frame_unmask_lr): ... to this.
1661 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1662 Call aarch64_frame_unmask_lr.
1663 * frame.c (struct frame_info): Add "masked" variable.
1664 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1665 (fprint_frame): Check for masked pc.
1666 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1667 declarations.
1668 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1669 * stack.c (print_frame): Check for masked pc.
1670
0cf9feb9
TT
16712019-08-06 Tom Tromey <tom@tromey.com>
1672
1673 * stabsread.c (patch_block_stabs, read_one_struct_field)
1674 (read_enum_type): Use obstack_strndup.
1675 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1676 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1677 * dwarf2read.c (guess_full_die_structure_name)
1678 (anonymous_struct_prefix): Use obstack_strndup.
1679 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1680 * c-exp.y (yylex): Use obstack_strndup.
1681 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1682 (write_var_or_type): Use obstack_strndup.
1683
efba19b0
TT
16842019-08-06 Tom Tromey <tom@tromey.com>
1685
1686 * symfile.c (reread_symbols): Use obstack_strdup.
1687 * stabsread.c (read_type): Use obstack_strdup.
1688 * gdb_obstack.h (obstack_strdup): New overload.
1689 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1690 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1691 (dwarf2_canonicalize_name): Use obstack_strdup.
1692 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1693 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1694 Use obstack_strdup.
1695
f25102f7
TT
16962019-08-06 Tom Tromey <tom@tromey.com>
1697
1698 * gdb_obstack.h (obstack_strdup): Define.
1699 * gdb_obstack.c (obstack_strdup): Don't define.
1700
021887d8
TT
17012019-08-06 Tom Tromey <tom@tromey.com>
1702
1703 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1704 obstack_strdup.
1705 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1706 obstack_strdup.
1707 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1708 * stabsread.c (common_block_start): Use obstack_strdup.
1709 * objfiles.c (set_objfile_main_name, objfile): Use
1710 obstack_strdup.
1711 * namespace.c (add_using_directive): Use obstack_strdup.
1712 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1713 * jit.c (finalize_symtab): Use obstack_strdup.
1714 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1715 (guess_partial_die_structure_name, partial_die_info::fixup)
1716 (dwarf2_name): Use obstack_strdup.
1717 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1718 obstack_strdup.
1719 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1720 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1721 obstack_strdup.
1722 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1723
d2834edc
PW
17242019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1725
1726 * unittests/help-doc-selftests.c: New file.
1727 * Makefile.in: Add the new file.
1728
590042fc
PW
17292019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1730
1731 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1732 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1733 the full first line, except when FOR_VALUE_PREFIX. In this case,
1734 the trailing '.' is not output, and the first character is uppercased.
1735 (print_help_for_command): Update call to print_doc_line.
1736 (print_doc_of_command): Likewise.
1737 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1738 * cli/cli-option.c (append_indented_doc): Do not append newline.
1739 (build_help_option): Append newline after first appended_indented_doc
1740 only if a second call is done.
1741 (build_help): Append 2 new lines before each option, except the first
1742 one.
1743 * compile/compile.c (_initialize_compile): Add new lines after
1744 %OPTIONS%, when not at the end of the help.
1745 Change help doc or code
1746 producing the help doc to respect the invariants.
1747 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1748 Also removed the new line after 'Options:', as all other commands
1749 do not put an empty line between 'Options:' and the first option.
1750 * printcmd.c (_initialize_printcmd): Likewise.
1751 * stack.c (_initialize_stack): Likewise.
1752 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1753 incorrectly telling COMMAND is optional.
1754 * ada-lang.c (_initialize_ada_language): Change help doc or code
1755 producing the help doc to respect the invariants.
1756 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1757 * breakpoint.c (_initialize_breakpoint): Likewise.
1758 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1759 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1760 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1761 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1762 _initialize_cli_style): Likewise.
1763 * corelow.c (core_target_info): Likewise.
1764 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1765 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1766 * filesystem.c (_initialize_filesystem): Likewise.
1767 * frame.c (_initialize_frame): Likewise.
1768 * gnu-nat.c (add_task_commands): Likewise.
1769 * infcall.c (_initialize_infcall): Likewise.
1770 * infcmd.c (_initialize_infcmd): Likewise.
1771 * interps.c (_initialize_interpreter): Likewise.
1772 * language.c (_initialize_language): Likewise.
1773 * linux-fork.c (_initialize_linux_fork): Likewise.
1774 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1775 * maint.c (_initialize_maint_cmds): Likewise.
1776 * memattr.c (_initialize_mem): Likewise.
1777 * printcmd.c (_initialize_printcmd): Likewise.
1778 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1779 _RegEx): Likewise.
1780 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1781 * record-btrace.c (_initialize_record_btrace): Likewise.
1782 * record-full.c (_initialize_record_full): Likewise.
1783 * record.c (_initialize_record): Likewise.
1784 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1785 * regcache.c (_initialize_regcache): Likewise.
1786 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1787 _initialize_remote): Likewise.
1788 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1789 * serial.c (_initialize_serial): Likewise.
1790 * skip.c (_initialize_step_skip): Likewise.
1791 * source.c (_initialize_source): Likewise.
1792 * stack.c (_initialize_stack): Likewise.
1793 * symfile.c (_initialize_symfile): Likewise.
1794 * symtab.c (_initialize_symtab): Likewise.
1795 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1796 * top.c (init_main): Likewise.
1797 * tracefile-tfile.c (tfile_target_info): Likewise.
1798 * tracepoint.c (_initialize_tracepoint): Likewise.
1799 * tui/tui-win.c (_initialize_tui_win): Likewise.
1800 * utils.c (add_internal_problem_command): Likewise.
1801 * valprint.c (value_print_option_defs): Likewise.
1802
404f2902
FCE
18032019-08-06 Frank Ch. Eigler <fche@redhat.com>
1804
1805 PR build/24886
1806 * configure.ac: Drop enable-libmcheck support.
1807 * configure, config.in: Rebuild.
1808 * libmcheck.m4: Remove.
1809 * acinclude.m4: Don't include it.
1810 * Makefile.in: Don't distribute it.
1811 * top.c (print_gdb_configuration): Don't mention it.
1812
046bebe1
TT
18132019-08-06 Tom Tromey <tom@tromey.com>
1814
1815 * utils.c (set_output_style): Sometimes pass stream to
1816 emit_style_escape.
1817 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1818 * record-btrace.c (btrace_insn_history): Update.
1819 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1820 method.
1821 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1822 Update initializers.
1823 <m_uiout>: New field.
1824 <m_di>: Move lower.
1825 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1826 Remove "uiout" parameter.
1827 (dump_insns): Update.
1828 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1829 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1830
ddbcedf5
CB
18312019-08-06 Christian Biesinger <cbiesinger@google.com>
1832
1833 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1834 (error_in_psymtab_expansion): Likewise.
1835 (lookup_symbol_via_quick_fns): Likewise.
1836 (basic_lookup_transparent_type_quick): Likewise.
1837 (basic_lookup_transparent_type_1): Likewise.
1838
b08b16c8
TT
18392019-08-06 Tom Tromey <tromey@adacore.com>
1840
1841 * source.c (last_source_error): Now bool.
1842 (print_source_lines_base): Make "noprint" bool. Only open
1843 source file when last_source_visited changes.
1844
cb44333d
TT
18452019-08-06 Tom Tromey <tromey@adacore.com>
1846
1847 * annotate.c (annotate_source_line): Use g_source_cache.
1848 * source-cache.c (source_cache::get_plain_source_lines): Change
1849 parameters. Populate m_offset_cache.
1850 (source_cache::ensure): New method.
1851 (source_cache::get_line_charpos): New method.
1852 (extract_lines): Move lower. Change parameters.
1853 (source_cache::get_source_lines): Move lower.
1854 * source-cache.h (class source_cache): Update comment.
1855 <get_line_charpos>: New method.
1856 <get_source_lines>: Update comment.
1857 <clear>: Clear m_offset_cache.
1858 <get_plain_source_lines>: Change parameters.
1859 <ensure>: New method
1860 <m_offset_cache>: New member.
1861 * source.c (forget_cached_source_info_for_objfile): Update.
1862 (info_source_command): Use g_source_cache.
1863 (find_source_lines, open_source_file_with_line_charpos): Remove.
1864 (print_source_lines_base, search_command_helper): Use g_source_cache.
1865 * source.h (open_source_file_with_line_charpos): Don't declare.
1866 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1867 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1868 Use g_source_cache.
1869
872dceaa
TT
18702019-08-06 Tom Tromey <tromey@adacore.com>
1871
1872 * source-cache.c (source_cache::get_plain_source_lines):
1873 Remove "first_line" and "last_line" parameters.
1874 (source_cache::get_source_lines): Cache plain text.
1875 * source-cache.h (class source_cache)
1876 <get_plain_source_lines>: Update.
1877
269249d9
TT
18782019-08-06 Tom Tromey <tromey@adacore.com>
1879
1880 * source-cache.c (extract_lines): No longer a method.
1881 Changed type of parameter. Include final newline.
1882 (selftests::extract_lines_test): New function.
1883 (_initialize_source_cache): Likewise.
1884 * source-cache.h (class source_cache)
1885 <extract_lines>: Don't declare.
1886
c0e8dcd8
TT
18872019-08-06 Tom Tromey <tromey@adacore.com>
1888
1889 * breakpoint.c (init_breakpoint_sal): Update.
1890 (breakpoint): Update.
1891 * breakpoint.h (struct breakpoint) <filter>: Now a
1892 unique_xmalloc_ptr.
1893
0b27c27d
CB
18942019-08-05 Christian Biesinger <cbiesinger@google.com>
1895
1896 * NEWS: Mention dictionary access on blocks.
1897 * python/py-block.c (blpy_getitem): New function.
1898 (block_object_as_mapping): New struct.
1899 (block_object_type): Use new struct for tp_as_mapping field.
1900
4ee94178
CB
19012019-08-05 Christian Biesinger <cbiesinger@google.com>
1902
1903 * objfiles.h (objfile): Add a comment describing partial symbols.
1904
8abfcabc
TT
19052019-08-05 Tom Tromey <tromey@adacore.com>
1906
1907 * compile/compile.c (_initialize_compile): Use _(), not N_().
1908 * thread.c (_initialize_thread): Use _(), not N_().
1909 * stack.c (_initialize_stack): Use _(), not N_().
1910 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1911
2b79f376
SM
19122019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1913
1914 * dwarf2read.c (struct dw2_symtab_iterator):
1915 <want_specific_block>: Remove.
1916 <block_index>: Change type to gdb::optional.
1917 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1918 change type of BLOCK_INDEX parameter to gdb::optional.
1919 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1920 (dw2_lookup_symbol): Don't pass argument for
1921 WANT_SPECIFIC_BLOCK.
1922 (dw2_expand_symtabs_for_function): Don't pass argument for
1923 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1924 (class dw2_debug_names_iterator)
1925 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1926 parameter, change BLOCK_INDEX type to gdb::optional.
1927 <m_want_specific_block>: Remove.
1928 <m_block_index>: Change type to gdb::optional.
1929 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1930 gdb::optional. Re-write in function of gdb::optional.
1931 (dw2_debug_names_lookup_symbol): Don't pass argument for
1932 WANT_SPECIFIC_BLOCK.
1933 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1934 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1935 BLOCK_INDEX.
1936
ae60f04e
PW
19372019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1938
1939 * NEWS: Mention changes to "info sources" command.
1940
28cd9371
PW
19412019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1942
1943 * symtab.c (filename_partial_match_opts): New struct type.
1944 (struct output_source_filename_data): New members
1945 regexp, c_regexp, partial_match.
1946 (output_source_filename): Use new members to decide to print file.
1947 (info_sources_option_defs): New variable.
1948 (make_info_sources_options_def_group, print_info_sources_header,
1949 info_sources_command_completer):
1950 New functions.
1951 (info_sources_command): Read new optional arguments.
1952 (_initialize_symtab): Update info sources help.
1953
ca683e3a
AO
19542019-08-02 Alexandre Oliva <oliva@adacore.com>
1955
1956 * ada-lang.c (exception_support_info_v0): Renamed from...
1957 (default_exception_support_info): ... this. Create new
1958 definition for v1.
1959 (ada_has_this_exception_support): Look up catch_handlers_sym.
1960 (ada_exception_support_info_sniffer): Try v0 after default.
1961
f1264162
TT
19622019-08-01 Tom Tromey <tromey@adacore.com>
1963
1964 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1965 gdbarch.h.
1966
0a7b2485
CB
19672019-08-01 Christian Biesinger <cbiesinger@google.com>
1968
1969 * s12z-tdep.c: Fix include path for s12z-opc.h.
1970
c6bdbeb7
AH
19712019-08-01 Alan Hayward <alan.hayward@arm.com>
1972
1973 * NEWS: Require GNU make 3.82.
1974
a2bd7b82
TT
19752019-07-16 Tom Tromey <tom@tromey.com>
1976
1977 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1978 declare.
1979
aa3b6533
TT
19802019-07-30 Tom Tromey <tromey@adacore.com>
1981
1982 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1983
a1530dc7
KB
19842019-07-30 Kevin Buettner <kevinb@redhat.com>
1985
1986 * printcmd.c (print_address_symbolic): Print negative offsets.
1987 (build_address_symbolic): Force signed arithmetic when computing
1988 offset.
1989
2906593f
CB
19902019-07-30 Christian Biesinger <cbiesinger@google.com>
1991
1992 PR/24474: Add a function to lookup static variables.
1993 * NEWS: Mention this new function.
1994 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1995 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1996 * python/python.c (python_GdbMethods): Add new function.
1997
c620ed88
CB
19982019-07-29 Christian Biesinger <cbiesinger@google.com>
1999
2000 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2001 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2002 (objfpy_lookup_static_symbol): New function.
2003 (objfile_object_methods): Add new functions.
2004
bc4268a5
PW
20052019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2006
2007 * NEWS: Mention 'set|show print frame-info'. Mention new
2008 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2009 backtrace argument. Mention that python frame filtering code
2010 is now consistent with what 'backtrace' command prints.
2011
4b5e8d19
PW
20122019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2013
2014 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2015 comments.
2016 (print_frame_info_auto, print_frame_info_source_line,
2017 print_frame_info_location, print_frame_info_source_and_location,
2018 print_frame_info_location_and_address, print_frame_info_short_location):
2019 New declarations.
2020 (struct frame_print_options): New member print_frame_info.
2021 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2022 * stack.h (get_user_print_what_frame_info): New declaration.
2023 (frame_show_address): New declaration.
2024 * stack.c (print_frame_arguments_choices): New value 'presence'.
2025 (print_frame_info_auto, print_frame_info_source_line,
2026 print_frame_info_location, print_frame_info_source_and_location,
2027 print_frame_info_location_and_address, print_frame_info_short_location,
2028 print_frame_info_choices, print_frame_info_print_what): New definitions.
2029 (print_frame_args): Only print dots for args if print frame-arguments
2030 is 'presence'.
2031 (frame_print_option_defs): New element for "frame-info".
2032 (get_user_print_what_frame_info): New function.
2033 (frame_show_address): Make non static. Move comment to stack.h.
2034 (print_frame_info_to_print_what): New function.
2035 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2036 to decide what to print.
2037 (backtrace_command_1): Handle the new print_frame_arguments_presence
2038 value.
2039 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2040 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2041 (py_print_frame): In non-mi mode, use LOCATION as default for
2042 print_what, similarly to frame information printed directly by
2043 backtrace command. Handle frame-info user option in non MI mode.
2044
6bdfee81
KB
20452019-07-27 Kevin Buettner <kevinb@redhat.com>
2046
2047 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2048 Add case for debugging 32-bit target on 64-bit host. Revise
2049 comment.
2050
98a617f8
KB
20512019-07-27 Kevin Buettner <kevinb@redhat.com>
2052
2053 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2054 instead of find_function_entry_range_from_pc.
2055
567238c9
KB
20562019-07-27 Kevin Buettner <kevinb@redhat.com>
2057
2058 * stack.c (find_frame_funname): Remove code which preferred
2059 minsym over symtab sym in "certain pathological cases".
2060
2dc80cf8
KB
2061 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2062 parameter. Change type of "do_demangle" to bool.
2063 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2064 Pass suitable "prefer_sym_over_minsym" flag to
2065 build_address_symbolic(). Don't output "+" for negative offsets.
2066 * printcmd.c (print_address_symbolic): Update invocation of
2067 build_address_symbolic to include a "prefer_sym_over_minsym"
2068 flag.
2069 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2070 Restrict cases in which use of minimal symbol is preferred to that
2071 of a found symbol. Update comments.
2072
1aff7173
KB
2073 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2074 for entry pc when entry pc is out of range for that FDE.
2075
89b085ac
BC
20762019-07-26 Brian Callahan <bcallah@openbsd.org>
2077
2078 PR gdb/24839:
2079 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2080 type.
2081
f32feb4a
CB
20822019-07-25 Christian Biesinger <cbiesinger@google.com>
2083
2084 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2085 this function's Python signature.
2086
2087
20882019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
2089
2090 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2091 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2092 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2093 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2094 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2095
2096
c54e4253
YS
20972019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2098
2099 * h8300-tdep.c (h8300_register_name_common): New.
2100 h8300_register_name): Use h8300_register_name_common.
2101 (h8300s_register_name): Likewise.
2102 (h8300sx_register_name): Likewise.
2103 (h8300h_register_nam): New.
2104 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2105
2106
40eadf04
SP
21072019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2108
2109 * arm-tdep.c (arm_skip_cmse_entry): New function.
2110 (arm_is_sgstubs_section): New function.
2111 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2112
bfa2a36d
TT
21132019-07-22 Tom Tromey <tom@tromey.com>
2114
2115 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2116 Don't self-assign.
2117
a8e9d247
AB
21182019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2119
2120 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2121 type_print.
2122
eb86c5e2
AB
21232019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2124
2125 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2126 so that GDB doesn't match any msymbols when searching in the
2127 TYPES_DOMAIN.
2128 (print_symbol_info): Print using typedef_print or type_print based
2129 on the type of the symbol. Add updated FIXME comment moved from...
2130 (_initialize_symtab): ... move and update FIXME comment to above.
2131
a8eab7c6
AB
21322019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2133
2134 * NEWS: Mention adding -q option to "info types".
2135 * symtab.c (struct info_types_options): New struct.
2136 (info_types_options_defs): New variable.
2137 (make_info_types_options_def_group): New function.
2138 (info_types_command): Use gdb::option framework to parse options.
2139 (info_types_command_completer): New function.
2140 (_initialize_symtab): Extend the help text on "info types" and
2141 register command completer.
2142
b4603c34
CB
21432019-07-21 Christian Biesinger <cbiesinger@google.com>
2144
2145 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2146 (lookup_symbol_in_objfile): Change int to block_enum and add a
2147 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2148
c8cdc1e0
CB
21492019-07-20 Christian Biesinger <cbiesinger@google.com>
2150
2151 * MAINTAINERS (Write After Approval): Add self.
2152
01e175fe
AB
21532019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2154
2155 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2156 instruction to the dummy code region.
2157
56f79b63
TT
21582019-07-19 Tom Tromey <tromey@adacore.com>
2159
2160 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2161 (ARGSUSED, PARAMS, __func__): Remove rules.
2162
4c5aa8e0
AH
21632019-07-19 Alan Hayward <alan.hayward@arm.com>
2164
2165 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2166 * features/arm/arm-with-iwmmxt.c: Remove.
2167 * features/arm/arm-with-iwmmxt.xml: Remove.
2168 * features/arm/arm-with-m-fpa-layout.c: Remove.
2169 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2170 * features/arm/arm-with-m-vfp-d16.c: Remove.
2171 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2172 * features/arm/arm-with-m.c: Remove.
2173 * features/arm/arm-with-m.xml: Remove.
2174 * features/arm/arm-with-neon.c: Remove.
2175 * features/arm/arm-with-neon.xml: Remove.
2176 * features/arm/arm-with-vfpv2.c: Remove.
2177 * features/arm/arm-with-vfpv2.xml: Remove.
2178 * features/arm/arm-with-vfpv3.c: Remove.
2179 * features/arm/arm-with-vfpv3.xml: Remove.
2180
f42b2617
AH
21812019-07-19 Alan Hayward <alan.hayward@arm.com>
2182
2183 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2184
f29ec966
AH
21852019-07-19 Alan Hayward <alan.hayward@arm.com>
2186
2187 * arch/aarch32.c (aarch32_create_target_description): Create
2188 target descriptions using features.
2189 * arch/arm.c (arm_create_target_description)
2190 (arm_create_mprofile_target_description): Likewise.
2191 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2192
d105cce5
AH
21932019-07-19 Alan Hayward <alan.hayward@arm.com>
2194
2195 * Makefile.in: Add new files.
2196 * aarch32-tdep.c: New file.
2197 * aarch32-tdep.h: New file.
2198 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2199 Call aarch32_read_description.
2200 * arch/aarch32.c: New file.
2201 * arch/aarch32.h: New file.
2202 * arch/arm.c (arm_create_target_description)
2203 (arm_create_mprofile_target_description): New function.
2204 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2205 (arm_create_target_description)
2206 (arm_create_mprofile_target_description): New declaration.
2207 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2208 read_description functions.
2209 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2210 Likewise.
2211 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2212 * arm-tdep.c (tdesc_arm_list): New variable.
2213 (arm_register_g_packet_guesses): Call create description functions.
2214 (arm_read_description) (arm_read_mprofile_description): New
2215 function.
2216 * arm-tdep.h (arm_read_description)
2217 (arm_read_mprofile_description): Add declaration.
2218 * configure.tgt: Add new files.
2219
afe09f0b
GL
22202019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2221
2222 * top.c (new_ui_command): Open specified terminal just once.
2223
cd215b2e
TT
22242019-07-18 Tom Tromey <tromey@adacore.com>
2225
2226 * symtab.c (main_name): Constify return type.
2227 * symfile.c (set_initial_language): Update.
2228 * symtab.h (main_name): Constify return type.
2229
d8f68fcb
TT
22302019-07-17 Tom Tromey <tom@tromey.com>
2231
2232 * tui/tui-winsource.c (tui_update_source_window)
2233 (tui_update_source_window_as_is)
2234 (tui_update_source_windows_with_line): Remove return.
2235 * tui/tui-disasm.c (tui_show_disassem)
2236 (tui_show_disassem_and_update_source): Remove return.
2237 * tui/tui.c (tui_reset): Remove return.
2238 * tui/tui-wingeneral.c
2239 (tui_check_and_display_highlight_if_needed): Remove return.
2240
ca5af91e
TT
22412019-07-17 Tom Tromey <tom@tromey.com>
2242
2243 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2244
5104fe36
TT
22452019-07-17 Tom Tromey <tom@tromey.com>
2246
2247 * tui/tui-winsource.h (struct tui_exec_info_window)
2248 (struct tui_source_window_base): Move from tui-data.h.
2249 * tui/tui-winsource.c: Move many method definitions from
2250 elsewhere. Remove "structuring" comments.
2251 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2252 (tui_source_window_base::refresh_window): Move to
2253 tui-winsource.c.
2254 * tui/tui-win.c (tui_source_window_base::refresh_all)
2255 (tui_source_window_base::update_tab_width)
2256 (tui_source_window_base::set_new_height)
2257 (tui_source_window_base::do_make_visible_with_new_height): Move to
2258 tui-winsource.c.
2259 * tui/tui-source.h: Update.
2260 * tui/tui-source.c (tui_source_window_base::reset): Move to
2261 tui-winsource.c.
2262 * tui/tui-disasm.h: Update.
2263 * tui/tui-data.h (struct tui_exec_info_window): Move to
2264 tui-winsource.h.
2265 (struct tui_source_window_base): Likewise.
2266 * tui/tui-data.c (tui_source_window_base::clear_detail)
2267 (tui_source_window_base, ~tui_source_window_base): Move to
2268 tui-winsource.c.
2269
daa15dde
TT
22702019-07-17 Tom Tromey <tom@tromey.com>
2271
2272 * tui/tui-win.c (tui_resize_all)
2273 (tui_source_window_base::update_tab_width)
2274 (tui_adjust_win_heights): Update.
2275 (tui_win_info::make_invisible_and_set_new_height): Rename from
2276 make_invisible_and_set_new_height.
2277 * tui/tui-data.h (struct tui_win_info)
2278 <make_invisible_and_set_new_height>: New method.
2279
bfad4537
TT
22802019-07-17 Tom Tromey <tom@tromey.com>
2281
2282 * tui/tui.c: Update.
2283 * tui/tui-source.h (struct tui_source_window): Move from
2284 tui-data.h.
2285 * tui/tui-layout.c: Update.
2286 * tui/tui-disasm.c: Update.
2287 * tui/tui-data.h (struct tui_source_window): Move to
2288 tui-source.h.
2289
88f7e873
TT
22902019-07-17 Tom Tromey <tom@tromey.com>
2291
2292 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2293 tui-data.h.
2294 * tui/tui-data.h (struct tui_disasm_window): Move to
2295 tui-disasm.h.
2296
96bd6233
TT
22972019-07-17 Tom Tromey <tom@tromey.com>
2298
2299 * tui/tui-regs.h (struct tui_data_item_window): Move from
2300 tui-data.h.
2301 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2302 * tui/tui-data.h (struct tui_data_item_window): Move to
2303 tui-regs.h.
2304 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2305
ce38393b
TT
23062019-07-17 Tom Tromey <tom@tromey.com>
2307
2308 * tui/tui.c: Update.
2309 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2310 (tui_cmd_window::max_height): Move to tui-command.c.
2311 * tui/tui-layout.c: Update.
2312 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2313 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2314 tui-command.c.
2315 * tui/tui-command.h (struct tui_cmd_window): Move from
2316 tui-data.h.
2317 * tui/tui-command.c: Remove "structuring" comments.
2318 (tui_cmd_window::clear_detail)
2319 (tui_cmd_window::do_make_visible_with_new_height)
2320 (tui_cmd_window::max_height): Move from elsewhere.
2321
2d8b51cb
TT
23222019-07-17 Tom Tromey <tom@tromey.com>
2323
2324 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2325 Now static.
2326 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2327 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2328
18ab23af
TT
23292019-07-17 Tom Tromey <tom@tromey.com>
2330
2331 * tui/tui.c: Update.
2332 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2333 tui-regs.c.
2334 * tui/tui-windata.h: Remove file.
2335 * tui/tui-windata.c: Remove file.
2336 * tui/tui-win.c (tui_data_window::set_new_height)
2337 (tui_data_window::do_make_visible_with_new_height): Move to
2338 tui-regs.c.
2339 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2340 * tui/tui-regs.c: Remove "structuring" comments.
2341 (tui_data_window::first_data_item_displayed)
2342 (tui_data_window::delete_data_content_windows)
2343 (tui_data_window::erase_data_content)
2344 (tui_data_window::display_all_data)
2345 (tui_data_window::refresh_all)
2346 (tui_data_window::do_scroll_vertical)
2347 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2348 (tui_data_window::do_make_visible_with_new_height)
2349 (tui_data_window::refresh_window): Move from elsewhere.
2350 (_initialize_tui_regs): Move to end of file.
2351 * tui/tui-layout.c: Update.
2352 * tui/tui-hooks.c: Update.
2353 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2354 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2355 tui-regs.c.
2356 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2357
88b7e7cc
TT
23582019-07-17 Tom Tromey <tom@tromey.com>
2359
2360 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2361 seen.
2362
0fcd3711
TT
23632019-07-17 Tom Tromey <tom@tromey.com>
2364
2365 * tui/tui-win.c (tui_source_window_base::set_new_height)
2366 (tui_source_window_base::do_make_visible_with_new_height): Use
2367 m_has_locator field directly.
2368 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2369 method.
2370 (struct tui_source_window_base) <has_locator>: Likewise.
2371
4a38112d
TT
23722019-07-17 Tom Tromey <tom@tromey.com>
2373
2374 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2375 Don't declare.
2376 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2377 Remove.
2378 * tui/tui-win.c (tui_source_window_base::set_new_height)
2379 (tui_source_window_base::set_new_height)
2380 (make_invisible_and_set_new_height)
2381 (tui_source_window_base::do_make_visible_with_new_height)
2382 (tui_source_window_base::do_make_visible_with_new_height):
2383 Update.
2384 * tui/tui-layout.c (show_source_disasm_command, show_data)
2385 (show_source_or_disasm_and_command): Update.
2386 * tui/tui-layout.c (show_layout): Update.
2387
09129226
TT
23882019-07-17 Tom Tromey <tom@tromey.com>
2389
2390 * tui/tui-layout.c (make_data_window): Remove.
2391 (show_data): Unify creation and re-initialization cases.
2392
4a8a5e84
TT
23932019-07-17 Tom Tromey <tom@tromey.com>
2394
2395 * tui/tui-layout.c (make_source_window, make_disasm_window):
2396 Remove.
2397 (show_data): Unify creation and re-initialization cases.
2398
76d2be8e
TT
23992019-07-17 Tom Tromey <tom@tromey.com>
2400
2401 * tui/tui-layout.c (make_command_window): Remove.
2402 (show_source_disasm_command, show_source_or_disasm_and_command):
2403 Unify creation and re-initialization cases.
2404
890b8bde
TT
24052019-07-17 Tom Tromey <tom@tromey.com>
2406
2407 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2408 creation and re-initialization cases.
2409
2cdfa113
TT
24102019-07-17 Tom Tromey <tom@tromey.com>
2411
2412 * tui/tui-regs.c (tui_get_register): Return void.
2413
8e3cfd09
TT
24142019-07-17 Tom Tromey <tom@tromey.com>
2415
2416 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2417 Simplify.
2418
f4e04977
TT
24192019-07-17 Tom Tromey <tom@tromey.com>
2420
2421 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2422 resetting.
2423
0379b883
TT
24242019-07-17 Tom Tromey <tom@tromey.com>
2425
2426 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2427 * tui/tui-regs.c (tui_reg_layout): New function.
2428 (tui_show_registers, tui_reg_command): Use it.
2429 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2430 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2431 parameters.
2432 (tui_layout_command): Remove.
2433
b7fbad91
TT
24342019-07-17 Tom Tromey <tom@tromey.com>
2435
2436 * tui/tui-layout.h (tui/tui-layout): Return void.
2437 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2438
4e1e56b9
TT
24392019-07-17 Tom Tromey <tom@tromey.com>
2440
2441 * tui/tui-layout.c (show_source_disasm_command, show_data):
2442 Update.
2443 (reset_locator): Remove.
2444 (show_source_or_disasm_and_command): Update.
2445
1e0c09ba
TT
24462019-07-17 Tom Tromey <tom@tromey.com>
2447
2448 * tui/tui-source.c (tui_source_window_base::reset): Remove
2449 win_type parameter.
2450 * tui/tui-layout.c (make_command_window, make_source_window)
2451 (make_disasm_window, make_data_window)
2452 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2453 (reset_locator, show_source_or_disasm_and_command): Update.
2454 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2455 win_type parameter.
2456 (struct tui_source_window_base) <reset>: Likewise.
2457
1bf605de
TT
24582019-07-17 Tom Tromey <tom@tromey.com>
2459
2460 * tui/tui-layout.c (show_source_disasm_command): Use
2461 reset_locator.
2462 (reset_locator): New function.
2463 (init_and_make_win): Remove.
2464 (show_source_or_disasm_and_command): Use reset_locator.
2465
098f9ed4
TT
24662019-07-17 Tom Tromey <tom@tromey.com>
2467
2468 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2469 condition.
2470 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2471 Remove condition.
2472 * tui/tui-source.c (tui_source_window_base::reset): New method.
2473 * tui/tui-layout.c (make_command_window): Don't call
2474 init_and_make_win.
2475 (make_source_window, make_disasm_window): Don't call
2476 make_source_or_disasm_window.
2477 (make_data_window): Don't call init_and_make_win. Change calling
2478 convention.
2479 (show_source_disasm_command, show_data): Simplify.
2480 (make_source_or_disasm_window): Remove.
2481 (show_source_or_disasm_and_command): Simplify.
2482 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2483 (struct tui_source_window_base) <reset>: Likewise.
2484 <execution_info>: Remove initializer.
2485 * tui/tui-data.c (tui_source_window_base): Initialize
2486 execution_info.
2487
80110957
TT
24882019-07-17 Tom Tromey <tom@tromey.com>
2489
2490 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2491 variable.
2492
cf82af05
TT
24932019-07-17 Tom Tromey <tom@tromey.com>
2494
2495 * tui/tui.c (tui_rl_other_window): Update.
2496 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2497 superclass method first. Always iterate over regs_content.
2498 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2499 method.
2500 * tui/tui-win.c (tui_set_focus_command): Update.
2501
01aeb396
TT
25022019-07-17 Tom Tromey <tom@tromey.com>
2503
2504 * tui/tui-win.c (tui_set_focus_command): Rename from
2505 tui_set_focus. Call tui_enable.
2506 (tui_set_focus_command): Remove.
2507
fd6c75ee
TT
25082019-07-17 Tom Tromey <tom@tromey.com>
2509
2510 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2511 refresh_window.
2512 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2513 touchwin.
2514 (tui_data_window::refresh_window): Call refresh_window on data
2515 items. Always call superclass refresh_window.
2516 (tui_win_info::refresh): Remove.
2517 (tui_source_window_base::refresh_window): Update.
2518 (tui_refresh_all): Update.
2519 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2520 refresh_window.
2521 (show_source_or_disasm_and_command): Likewise.
2522 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2523 (struct tui_source_window_base) <refresh>: Likewise.
2524
f6cc34a9
TT
25252019-07-17 Tom Tromey <tom@tromey.com>
2526
2527 * tui/tui-winsource.c (tui_clear_source_content)
2528 (tui_show_source_content): Update.
2529 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2530 whether content is empty.
2531 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2532 Remove.
2533
f31ec9af
TT
25342019-07-17 Tom Tromey <tom@tromey.com>
2535
2536 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2537 window's contents.
2538 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2539 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2540
d1b6f1e5
TT
25412019-07-17 Tom Tromey <tom@tromey.com>
2542
2543 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2544 (struct tui_data_item_window): Update.
2545
d9743a13
TT
25462019-07-17 Tom Tromey <tom@tromey.com>
2547
2548 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2549 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2550 defines.
2551
caf0bc4e
TT
25522019-07-17 Tom Tromey <tom@tromey.com>
2553
2554 * tui/tui-winsource.h (tui_erase_source_content)
2555 (tui_clear_source_content): Remove "display_prompt" parameter.
2556 * tui/tui-winsource.c (tui_update_source_window_as_is)
2557 (tui_update_source_windows_with_addr): Update.
2558 (tui_clear_source_content): Remove "display_prompt" parameter.
2559 (tui_erase_source_content): Likewise. Simplify.
2560 (tui_show_source_content): Update.
2561 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2562 * tui/tui-stack.c (tui_show_frame_info): Update.
2563 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2564 Remove defines.
2565
9d391078
TT
25662019-07-17 Tom Tromey <tom@tromey.com>
2567
2568 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2569 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2570 parameter.
2571 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2572 parameter.
2573
a38da35d
TT
25742019-07-17 Tom Tromey <tom@tromey.com>
2575
2576 * tui/tui-winsource.c (tui_clear_source_content)
2577 (tui_show_source_content, tui_show_exec_info_content)
2578 (tui_clear_exec_info_content): Update.
2579 * tui/tui-stack.c (tui_show_locator_content): Update.
2580 (tui_show_frame_info): Update.
2581 * tui/tui-source.h (tui_source_window): Don't declare.
2582 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2583 from tui_source_is_displayed.
2584 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2585 Remove field.
2586 (struct tui_source_window_base) <content_in_use>: New field. Now
2587 bool.
2588 (struct tui_source_window) <showing_source_p>: New method.
2589 (TUI_SRC_WIN): Change cast.
2590 * tui/tui-data.c (tui_initialize_static_data): Update.
2591
c2cd8994
TT
25922019-07-17 Tom Tromey <tom@tromey.com>
2593
2594 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2595 location_matches_p.
2596 * tui/tui-source.c (tui_source_window::location_matches_p): New
2597 method.
2598 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2599 method.
2600 * tui/tui-data.h (struct tui_source_window_base)
2601 <location_matches_p>: New method.
2602 (struct tui_source_window, struct tui_disasm_window)
2603 <location_matches_p>: Likewise.
2604
4dde7b34
TT
26052019-07-17 Tom Tromey <tom@tromey.com>
2606
2607 * tui/tui-win.c (tui_set_win_height_command): Rename from
2608 tui_set_win_height.
2609 (tui_set_win_height_command): Remove.
2610
b73dd877
TT
26112019-07-17 Tom Tromey <tom@tromey.com>
2612
2613 * tui/tui-source.c (tui_source_window): New constructor. Add
2614 observer.
2615 (~tui_source_window): New destructor.
2616 (tui_source_window::style_changed): New method.
2617 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2618 (tui_attach_detach_observers): Update.
2619 * tui/tui-data.h (struct tui_source_window): Make constructor not
2620 inline. Add destructor.
2621 (struct tui_source_window) <style_changed>: New method.
2622 <m_observable>: New member.
2623
ae2b5380
TT
26242019-07-17 Tom Tromey <tom@tromey.com>
2625
2626 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2627 * tui/tui-win.c (tui_resize_all): Fix typo.
2628
1ce3e844
TT
26292019-07-17 Tom Tromey <tom@tromey.com>
2630
2631 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2632 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2633 (tui_refresh_all): Remove "list" parameter. Use foreach.
2634 * tui/tui-win.c (window_name_completer): Use foreach.
2635 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2636 (update_tab_width): Likewise.
2637 * tui/tui-layout.c (show_layout): Update.
2638 * tui/tui-data.h (class tui_window_iterator): New.
2639 (struct all_tui_windows): New.
2640 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2641
fe3eaf1c
TT
26422019-07-17 Tom Tromey <tom@tromey.com>
2643
2644 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2645 parameter. Don't reference globals.
2646 (tui_reg_command): Update.
2647
368c1354
TT
26482019-07-17 Tom Tromey <tom@tromey.com>
2649
2650 * tui/tui-regs.c (tui_show_registers): Simplify.
2651
e80cd204
TT
26522019-07-17 Tom Tromey <tom@tromey.com>
2653
2654 * tui/tui-regs.c (tui_show_registers): Update.
2655 (tui_show_register_group): Add win_info parameter.
2656
aca2dd16
TT
26572019-07-17 Tom Tromey <tom@tromey.com>
2658
2659 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2660 Rename from tui_display_reg_element_at_line.
2661 (tui_data_window::display_registers_from_line): Update.
2662 * tui/tui-data.h (struct tui_data_window)
2663 <display_reg_element_at_line>: New method.
2664
517e9505
TT
26652019-07-17 Tom Tromey <tom@tromey.com>
2666
2667 * tui/tui-regs.h (tui_display_registers_from)
2668 (tui_display_registers_from_line): Don't declare.
2669 * tui/tui-windata.c (tui_data_window::display_all_data)
2670 (tui_data_window::refresh_all)
2671 (tui_data_window::do_scroll_vertical): Update.
2672 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2673 from tui_display_registers_from.
2674 (tui_display_reg_element_at_line): Update.
2675 (tui_data_window::display_registers_from_line): Rename from
2676 tui_display_registers_from_line.
2677 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2678 display_registers_from_line>: New methods.
2679
f76d8b19
TT
26802019-07-17 Tom Tromey <tom@tromey.com>
2681
2682 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2683 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2684 from tui_erase_data_content.
2685 (tui_data_window::display_all_data)
2686 (tui_data_window::refresh_all)
2687 (tui_data_window::do_scroll_vertical): Update.
2688 * tui/tui-regs.c (tui_show_registers): Update.
2689 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2690 New method.
2691
b4094625
TT
26922019-07-17 Tom Tromey <tom@tromey.com>
2693
2694 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2695 declare.
2696 * tui/tui-windata.c
2697 (tui_data_window::delete_data_content_windows): Rename from
2698 tui_delete_data_content_windows.
2699 (tui_data_window::display_all_data)
2700 (tui_data_window::do_scroll_vertical): Update.
2701 * tui/tui-data.h (struct tui_data_window)
2702 <delete_data_content_windows>: New method.
2703
c223a729
TT
27042019-07-17 Tom Tromey <tom@tromey.com>
2705
2706 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2707 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2708
50daf268
TT
27092019-07-17 Tom Tromey <tom@tromey.com>
2710
2711 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2712 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2713 from tui_display_all_data.
2714 * tui/tui-win.c
2715 (tui_data_window::do_make_visible_with_new_height): Update.
2716 * tui/tui-regs.c (tui_show_registers): Update.
2717 * tui/tui-layout.c (tui_set_layout): Update.
2718 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2719 method.
2720
df5f8cab
TT
27212019-07-17 Tom Tromey <tom@tromey.com>
2722
2723 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2724 * tui/tui-windata.c (tui_display_data_from): Remove.
2725 (tui_data_window::refresh_all): Update.
2726
80cb6c27
TT
27272019-07-17 Tom Tromey <tom@tromey.com>
2728
2729 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2730 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2731 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2732 tui_display_registers_from_line.
2733 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2734 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2735 "force_display" parameter.
2736
baff0c28
TT
27372019-07-17 Tom Tromey <tom@tromey.com>
2738
2739 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2740 declare.
2741 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2742 Rename from tui_first_reg_element_no_inline.
2743 (tui_display_reg_element_at_line)
2744 (tui_display_registers_from_line): Update.
2745 * tui/tui-data.h (struct tui_data_window)
2746 <first_reg_element_no_inline>: New method.
2747
3b23c5f2
TT
27482019-07-17 Tom Tromey <tom@tromey.com>
2749
2750 * tui/tui-windata.c (tui_display_data_from)
2751 (tui_data_window::do_scroll_vertical): Update.
2752 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2753 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2754 Rename from tui_line_from_reg_element_no.
2755 (tui_display_registers_from_line): Update.
2756 * tui/tui-data.h (struct tui_data_window)
2757 <line_from_reg_element_no>: New method.
2758
0b5ec218
TT
27592019-07-17 Tom Tromey <tom@tromey.com>
2760
2761 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2762 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2763 tui_last_regs_line_no.
2764 (tui_display_reg_element_at_line)
2765 (tui_display_registers_from_line): Update.
2766 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2767 method.
2768
0807ab7b
TT
27692019-07-17 Tom Tromey <tom@tromey.com>
2770
2771 PR tui/24722:
2772 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2773 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2774 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2775 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2776 (tui_update_breakpoint_info): Likewise.
2777 * tui/tui-hooks.c (tui_event_create_breakpoint)
2778 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2779 Update.
2780
9ad7fdef
TT
27812019-07-17 Tom Tromey <tom@tromey.com>
2782
2783 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2784
5813316f
TT
27852019-07-17 Tom Tromey <tom@tromey.com>
2786
2787 * tui/tui-winsource.c (tui_update_source_window_as_is)
2788 (tui_update_source_windows_with_addr): Update.
2789 * tui/tui-source.h (tui_set_source_content)
2790 (tui_show_symtab_source): Add "win_info" parameter.
2791 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2792 parameter.
2793 (tui_show_symtab_source): Likewise.
2794
00e264e7
TT
27952019-07-17 Tom Tromey <tom@tromey.com>
2796
2797 * tui/tui-wingeneral.c
2798 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2799
06210ce4
TT
28002019-07-17 Tom Tromey <tom@tromey.com>
2801
2802 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2803 (struct tui_cmd_window) <can_scroll>: New method.
2804 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2805 method.
2806
381befee
TT
28072019-07-17 Tom Tromey <tromey@adacore.com>
2808
2809 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2810 do_field_signed>: Rename. Change type of "value".
2811 * ui-out.c (ui_out::field_signed): Rename from field_int.
2812 Change type of "value".
2813 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2814 type of "value".
2815 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2816 do_field_int. Change type of "value".
2817 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2818 do_field_int. Change type of "value".
2819 * tracepoint.c (trace_status_mi, tfind_1)
2820 (print_one_static_tracepoint_marker): Update.
2821 * thread.c (print_thread_info_1, print_selected_thread_frame):
2822 Update.
2823 * stack.c (print_frame, print_frame_info): Update.
2824 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2825 Update.
2826 * source.c (print_source_lines_base): Update.
2827 * skip.c (info_skip_command): Update.
2828 * record-btrace.c (btrace_ui_out_decode_error)
2829 (btrace_call_history_src_line): Update.
2830 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2831 Update.
2832 * progspace.c (print_program_space): Update.
2833 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2834 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2835 do_field_int. Change type of "value".
2836 * mi/mi-out.c (mi_ui_out::do_table_begin)
2837 (mi_ui_out::do_table_header): Update.
2838 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2839 type of "value".
2840 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2841 (mi_cmd_data_list_changed_registers, output_register)
2842 (mi_cmd_data_read_memory, mi_load_progress)
2843 (mi_cmd_trace_frame_collected): Update.
2844 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2845 Update.
2846 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2847 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2848 (mi_cmd_var_list_children, varobj_update_one): Update.
2849 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2850 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2851 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2852 * inferior.c (print_inferior): Update.
2853 * gdb_bfd.c (print_one_bfd): Update.
2854 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2855 Update.
2856 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2857 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2858 do_field_int. Change type of "value".
2859 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2860 do_field_int. Change type of "value".
2861 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2862 (print_one_breakpoint_location, print_it_catch_fork)
2863 (print_one_catch_fork, print_it_catch_vfork)
2864 (print_one_catch_vfork, print_it_catch_solib)
2865 (print_it_catch_exec, print_it_ranged_breakpoint)
2866 (print_mention_watchpoint, print_mention_masked_watchpoint)
2867 (bkpt_print_it, update_static_tracepoint): Update.
2868 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2869 * break-catch-syscall.c (print_it_catch_syscall): Update.
2870 * ada-tasks.c (print_ada_task_info): Update.
2871 * ada-lang.c (print_it_exception, print_mention_exception):
2872 Update.
2873
6b78c3f8
AB
28742019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2875
2876 PR breakpoints/24541
2877 * gdbarch.c: Regenerate.
2878 * gdbarch.h: Regenerate.
2879 * gdbarch.sh: Adjust return type and parameter types for
2880 'stap_adjust_register'.
2881 (i386_stap_adjust_register): Adjust signature and return new
2882 register name.
2883 * stap-probe.c (stap_parse_register_operand): Adjust use of
2884 'gdbarch_stap_adjust_register'.
2885
d72a9b85
TT
28862019-07-17 Tom Tromey <tromey@adacore.com>
2887
2888 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2889 declare VEC.
2890 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2891 std::vector.
2892 (struct s390_process_info): Add initializers.
2893 (s390_add_process): Use new.
2894 (s390_linux_nat_target::low_forget_process): Use delete.
2895 (s390_linux_nat_target::low_new_fork)
2896 (s390_linux_nat_target::stopped_by_watchpoint)
2897 (s390_linux_nat_target::low_prepare_to_resume)
2898 (s390_linux_nat_target::insert_watchpoint)
2899 (s390_linux_nat_target::insert_hw_breakpoint)
2900 (s390_linux_nat_target::remove_watchpoint)
2901 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2902
206e6c58
JB
29032019-07-16 John Baldwin <jhb@FreeBSD.org>
2904
2905 * aarch64-fbsd-nat.c: Include regcache.h.
2906 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2907 argument.
2908 (aarch64_fbsd_nat_target::fetch_registers)
2909 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2910 variable.
2911 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2912
cbde90f2
JB
29132019-07-16 John Baldwin <jhb@FreeBSD.org>
2914
2915 * fbsd-nat.c: Include gdbarch.h.
2916
07128006
TT
29172019-07-15 Tom Tromey <tromey@adacore.com>
2918
2919 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2920
1f77b012
TT
29212019-07-15 Tom Tromey <tromey@adacore.com>
2922
2923 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2924 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2925 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2926 * cli-out.c (cli_ui_out::do_field_int): New method.
2927 * ui-out.c (ui_out::field_unsigned): New method.
2928 * symfile.c (generic_load): Use field_unsigned.
2929 (print_transfer_performance): Likewise.
2930 * record-btrace.c (ui_out_field_uint): Remove.
2931 (btrace_call_history_insn_range, btrace_call_history): Use
2932 field_unsigned.
2933 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2934 field_unsigned.
2935 * ui-out.h (class ui_out) <field_unsigned>: New method.
2936 <do_field_unsigned>: Likewise.
2937
33eca680
TT
29382019-07-15 Tom Tromey <tromey@adacore.com>
2939
2940 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2941 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2942 * target.c (flash_erase_command): Use field_string.
2943 * infrun.c (print_signal_received_reason): Use field_string.
2944 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2945 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2946 field_string.
2947 * ada-tasks.c (print_ada_task_info): Use field_string.
2948
ca8d69be
TT
29492019-07-15 Tom Tromey <tromey@adacore.com>
2950
2951 * target.c (flash_erase_command): Use field_core_addr.
2952 * symfile.c (generic_load): Use field_core_addr.
2953 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2954 Use field_core_addr.
2955 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2956 field_core_addr.
2957
0d4e84ed
AB
29582019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2959
2960 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2961 value if its desired type is smaller than a CORE_ADDR and signed.
2962
9a49df9d
AB
29632019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2964
2965 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2966 of changes to field names, and use new is_reference field to
2967 decide if a property is a reference or not.
2968 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2969 field.
2970 (struct dwarf2_property_baton): Update header comment, rename
2971 'referenced_type' to 'property_type' and update comments.
2972 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2973 default property type, store in property baton, update to take
2974 accound of renamed field.
2975 (read_func_scope): Update call to attr_to_dynamic_prop.
2976 (read_array_type): Likewise.
2977 (dwarf2_per_cu_addr_sized_int_type): New function.
2978 (read_subrange_index_type): Move type finding code to
2979 dwarf2_per_cu_addr_sized_int_type.
2980 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2981 (dwarf2_per_cu_addr_type): New function.
2982 (set_die_type): Update calls to attr_to_dynamic_prop.
2983
b86352cf
AB
29842019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2985
2986 * dwarf2read.c (read_subrange_index_type): New function.
2987 (read_subrange_type): Move code into new function and call it.
2988 * gdbtypes.c (create_range_type): Add some asserts.
2989
603490bf
AB
29902019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2991
2992 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2993 update return statements.
2994 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2995 declaration, and update comment to match.
2996 * gdbtypes.c (resolve_dynamic_array): Update call to
2997 dwarf2_evaluate_property to match new return type.
2998
592f9d27
AB
29992019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3000
3001 * valarith.c (value_subscripted_rvalue): Change lowerbound
3002 parameter type from int to LONGEST.
3003 * value.h (value_subscripted_rvalue): Likewise in declaration.
3004
60cfcb20
AB
30052019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3006
3007 * cli/cli-utils.c (info_print_command_completer): New function.
3008 * cli/cli-utils.h: Add 'completer.h' include, and forward
3009 declaration for 'struct cmd_list_element'.
3010 (info_print_command_completer): Declare.
3011 * stack.c (_initialize_stack): Add completer for 'info locals' and
3012 'info args'.
3013 * symtab.c (_initialize_symtab): Add completer for 'info
3014 variables' and 'info functions'.
3015 * NEWS: Mention completion for additional info commands.
3016
b16507e0
AB
30172019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3018
3019 * cli/cli-utils.c (extract_info_print_args): Delete.
3020 (extract_arg_maybe_quoted): Delete.
3021 (info_print_options_defs): New variable.
3022 (make_info_print_options_def_group): New function.
3023 (extract_info_print_options): Define new function.
3024 * cli/cli-utils.h (extract_info_print_args): Delete.
3025 (struct info_print_options): New structure.
3026 (extract_info_print_options): Declare new function.
3027 * stack.c (info_locals_command): Update to use new
3028 extract_info_print_options, also add a header comment.
3029 (info_args_command): Likewise.
3030 * symtab.c (info_variables_command): Likewise.
3031 (info_functions_command): Likewise.
3032
021d8588
AB
30332019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3034
3035 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3036 to extract string arguments.
3037 * common/common-utils.c (extract_string_maybe_quoted): New function.
3038 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3039
b777eb6d
TT
30402019-07-11 Tom Tromey <tromey@adacore.com>
3041
3042 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3043 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3044 * top.h (gdbinit): Don't declare.
3045 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3046 into...
3047 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3048 * top.c (gdb_init): Don't call init_cli_cmds.
3049 (gdbinit): Remove.
3050 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3051
72ee03ff
TT
30522019-07-11 Tom Tromey <tromey@adacore.com>
3053
3054 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3055 after it has been moved.
3056
00db9531
SM
30572019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3058
3059 * valops.c (value_must_coerce_to_target): Change return type to
3060 bool.
3061 * value.h (value_must_coerce_to_target): Likewise.
3062
f2478a7e
SM
30632019-07-10 Simon Marchi <simon.marchi@efficios.com>
3064
3065 * breakpoint.c (is_hardware_watchpoint): Remove
3066 forward-declaration.
3067 (is_masked_watchpoint): Change return type to bool.
3068 (is_tracepoint): Likewise.
3069 (is_breakpoint): Likewise.
3070 (is_hardware_watchpoint): Likewise.
3071 (is_watchpoint): Likewise.
3072 (is_no_memory_software_watchpoint): Likewise.
3073 (is_catchpoint): Likewise.
3074 (breakpoint_1): Make FILTER parameter's return type bool.
3075 is_masked_watchpoint): Change return type to bool.
3076 (save_breakpoints): Make FILTER parameter's return type bool.
3077 * breakpoint.h (is_breakpoint): Change return type to bool.
3078 (is_watchpoint): Likewise.
3079 (is_catchpoint): Likewise.
3080 (is_tracepoint): Likewise.
3081
0d12e84c
TT
30822019-07-10 Tom Tromey <tom@tromey.com>
3083
3084 * defs.h: Don't include gdbarch.h.
3085 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3086 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3087 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3088 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3089 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3090 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3091 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3092 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3093 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3094 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3095 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3096 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3097 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3098 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3099 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3100 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3101 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3102 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3103 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3104 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3105 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3106 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3107 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3108 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3109 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3110 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3111 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3112
f06f1252
TT
31132019-07-10 Tom Tromey <tromey@adacore.com>
3114
3115 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3116 * breakpoint.c (init_ada_exception_breakpoint): Register as
3117 bp_catchpoint.
3118 (print_one_breakpoint_location, print_one_breakpoint): Use
3119 is_ada_exception_catchpoint.
3120 * ada-lang.c (class ada_catchpoint_location): Pass
3121 bp_loc_software_breakpoint to bp_location constructor.
3122 (is_ada_exception_catchpoint): New function.
3123
7a5d944b
TT
31242019-07-10 Tom Tromey <tromey@adacore.com>
3125
3126 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3127 VEC.
3128 (struct arm_exidx_entry): New method operator<.
3129 (struct arm_exidx_data) <section_maps>: Change type.
3130 (arm_exidx_data_free): Remove.
3131 (arm_exidx_data_key): Change type. Move lower.
3132 (arm_exidx_new_objfile): Update.
3133 (arm_compare_exidx_entries): Remove.
3134 (arm_find_exidx_entry, _initialize_arm_tdep)
3135
48c66e1d
TT
31362019-07-10 Tom Tromey <tromey@adacore.com>
3137
3138 * solib-spu.c (ocl_program_data_key): Change type.
3139 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3140 Update.
3141
a269fbf1
TT
31422019-07-10 Tom Tromey <tromey@adacore.com>
3143
3144 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3145 (struct solib_aix_inferior_data) <library_list>: Change type.
3146 (solib_aix_inferior_data_handle): Change type.
3147 (get_solib_aix_inferior_data): Update.
3148 (solib_aix_free_library_list): Remove.
3149 (library_list_start_library): Update.
3150 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3151 return type.
3152 (solib_aix_get_library_list)
3153 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3154 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3155
c294730c
TT
31562019-07-10 Tom Tromey <tromey@adacore.com>
3157
3158 * solib-dsbt.c (struct dsbt_info): Add initializers.
3159 (solib_dsbt_pspace_data): Change type.
3160 (dsbt_pspace_data_cleanup): Remove.
3161 (get_dsbt_info, _initialize_dsbt_solib): Update.
3162
9d52077d
TT
31632019-07-10 Tom Tromey <tromey@adacore.com>
3164
3165 * spu-tdep.c (spu_overlay_data): Change type.
3166 (spu_get_overlay_table, spu_overlay_new_objfile)
3167 (_initialize_spu_tdep): Update.
3168
22a20dca
TT
31692019-07-10 Tom Tromey <tromey@adacore.com>
3170
3171 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3172 destructor.
3173 (dbx_objfile_data_key): Change type and declare later.
3174 (DBX_SYMFILE_INFO): Rewrite.
3175 * dbxread.c (dbx_objfile_data_key): Change type.
3176 (dbx_symfile_init): Update.
3177 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3178 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3179 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3180
cb60f420
TT
31812019-07-10 Tom Tromey <tromey@adacore.com>
3182
3183 * jit.c (jit_program_space_key): Change type. Move lower.
3184 (get_jit_program_space_data): Update.
3185 (jit_program_space_data_cleanup): Remove.
3186 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3187 Update.
3188 (struct jit_program_space_data): Add initializers.
3189
51df2ae3
TT
31902019-07-10 Tom Tromey <tromey@adacore.com>
3191
3192 * solib-darwin.c (struct darwin_info): Add initializers.
3193 (solib_darwin_pspace_data): Change type.
3194 (darwin_pspace_data_cleanup): Remove.
3195 (get_darwin_info, _initialize_darwin_solib): Update.
3196
18101a35
TT
31972019-07-10 Tom Tromey <tromey@adacore.com>
3198
3199 * remote-sim.c (struct sim_inferior_data): Add initializers,
3200 constructor, and destructor.
3201 (sim_inferior_data_key): Change type. Move lower.
3202 (check_for_duplicate_sim_descriptor): Update.
3203 (get_sim_inferior_data): Use new. Update.
3204 (~sim_inferior_data_cleanup): Rename from
3205 sim_inferior_data_cleanup. Simplify.
3206 (gdbsim_close_inferior, simulator_command)
3207 (sim_command_completer, _initialize_remote_sim): Update.
3208 (next_pid, INITIAL_PID): Move earlier.
3209
05b08ac1
TT
32102019-07-10 Tom Tromey <tromey@adacore.com>
3211
3212 * python/python-internal.h (create_thread_object): Return
3213 gdbpy_ref.
3214 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3215 * python/py-inferior.c (struct threadlist_entry): Add
3216 constructor.
3217 <thread_obj>: Now a gdbpy_ref.
3218 (thread_to_thread_object): Update.
3219 (add_thread_object): Use new.
3220 (delete_thread_object): Use delete.
3221 (infpy_threads): Update.
3222 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3223 GIL.
3224
32372d80
TT
32252019-07-10 Tom Tromey <tromey@adacore.com>
3226
3227 * valops.c (value_cast): Specialize error message for Ada.
3228
5c458ae8
SM
32292019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3230
3231 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3232
4c462cb0
SM
32332019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3234
3235 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3236 bpstat_should_step): Return bool, adjust comments.
3237 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3238 bpstat_should_step): Likewise.
3239
89abbcc2
AH
32402019-07-10 Alan Hayward <alan.hayward@arm.com>
3241
3242 * features/Makefile: Use feature target descriptions for Arm.
3243 * features/arm/arm-core.c: Generate new file.
3244 * features/arm/arm-fpa.c: Likewise.
3245 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3246 * features/arm/arm-m-profile.c: Likewise.
3247 * features/arm/arm-vfpv2.c: Likewise.
3248 * features/arm/arm-vfpv3.c: Likewise.
3249 * features/arm/xscale-iwmmxt.c: Likewise.
3250 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3251
166a82be
AH
32522019-07-10 Alan Hayward <alan.hayward@arm.com>
3253
3254 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3255 ptrace earlier.
3256
9fb4c7e9
AH
32572019-07-10 Alan Hayward <alan.hayward@arm.com>
3258
3259 * features/aarch64-pauth.c: Regenerate.
3260
e2d0f980
SM
32612019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3262
3263 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3264 bool.
3265 (bpstat_what): Use false instead of 0.
3266
a38118e5
PA
32672019-07-09 Pedro Alves <palves@redhat.com>
3268
3269 * break-catch-throw.c (is_exception_catchpoint): New.
3270 * breakpoint.c (print_one_breakpoint_location): New parameter
3271 'raw_loc'. Handle it. Use
3272 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3273 looking at the breakpoint's type.
3274 (print_one_breakpoint): If handling "maint info breakpoints", also
3275 print locations of exception catchpoints.
3276 * breakpoint.h (is_exception_catchpoint): Declare.
3277
cb1e4e32
PA
32782019-07-09 Pedro Alves <palves@redhat.com>
3279
3280 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3281 "addr" field.
3282 (allocate_location_exception_catchpoint): New.
3283 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3284 (initialize_throw_catchpoint_ops): Install
3285 allocate_location_exception_catchpoint as allocate_location
3286 method.
3287 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3288 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3289 bp_loc_other.
3290 (breakpoint_address_is_meaningful): Delete.
3291 (bl_address_is_meaningful): New.
3292 (breakpoint_locations_match): Adjust comment.
3293 (bp_location_from_bp_type): New, factored out of...
3294 (bp_location::bp_location(breakpoint *)): ... this.
3295 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3296 factored out of...
3297 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3298 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3299 breakpoint_address_is_meaningful.
3300 (bp_locations_compare): Adjust comment.
3301 (update_global_location_list): Use bl_address_is_meaningful
3302 instead of breakpoint_address_is_meaningful.
3303 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3304 explicit.
3305 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3306 * python/py-breakpoint.c (bppy_get_location): No longer check
3307 whether location is null.
3308
b58a68fe
PA
33092019-07-09 Pedro Alves <palves@redhat.com>
3310
3311 PR c++/15468
3312 * breakpoint.c (print_one_breakpoint_location): Remove
3313 single-location assert.
3314
268a13a5
TT
33152019-07-09 Tom Tromey <tom@tromey.com>
3316
3317 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3318 * configure: Rebuild.
3319 * configure.ac: Change common to gdbsupport.
3320 * gdbsupport: Rename from common.
3321 * acinclude.m4: Change common to gdbsupport.
3322 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3323 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3324 gdbsupport.
3325 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3326 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3327 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3328 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3329 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3330 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3331 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3332 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3333 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3334 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3335 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3336 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3337 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3338 coff-pe-read.c, command.h, compile/compile-c-support.c,
3339 compile/compile-c.h, compile/compile-cplus-symbols.c,
3340 compile/compile-cplus-types.c, compile/compile-cplus.h,
3341 compile/compile-loc2c.c, compile/compile.c, completer.c,
3342 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3343 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3344 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3345 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3346 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3347 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3348 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3349 features/aarch64-core.c, features/aarch64-fpu.c,
3350 features/aarch64-pauth.c, features/aarch64-sve.c,
3351 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3352 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3353 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3354 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3355 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3356 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3357 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3358 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3359 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3360 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3361 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3362 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3363 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3364 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3365 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3366 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3367 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3368 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3369 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3370 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3371 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3372 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3373 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3374 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3375 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3376 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3377 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3378 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3379 minsyms.c, mips-linux-tdep.c, namespace.h,
3380 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3381 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3382 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3383 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3384 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3385 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3386 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3387 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3388 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3389 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3390 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3391 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3392 procfs.c, producer.c, progspace.h, psymtab.h,
3393 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3394 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3395 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3396 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3397 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3398 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3399 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3400 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3401 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3402 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3403 target-memory.c, target.c, target.h, target/waitstatus.c,
3404 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3405 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3406 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3407 unittests/array-view-selftests.c,
3408 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3409 unittests/common-utils-selftests.c,
3410 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3411 unittests/format_pieces-selftests.c,
3412 unittests/function-view-selftests.c,
3413 unittests/lookup_name_info-selftests.c,
3414 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3415 unittests/mkdir-recursive-selftests.c,
3416 unittests/observable-selftests.c,
3417 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3418 unittests/parse-connection-spec-selftests.c,
3419 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3420 unittests/scoped_fd-selftests.c,
3421 unittests/scoped_mmap-selftests.c,
3422 unittests/scoped_restore-selftests.c,
3423 unittests/string_view-selftests.c, unittests/style-selftests.c,
3424 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3425 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3426 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3427 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3428 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3429 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3430
5b0e2db4
AB
34312019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3432
3433 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3434 bool value.
3435 (decode_digits_ordinary): Set explicit_line field in sal.
3436 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3437 symtab_and_line that was set on an explicit line number in
3438 assembler code. Do always update the recorded symtab and line if
3439 we do skip the prologue.
3440
0ba852ab
AB
34412019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3442
3443 * breakpoint.c (set_breakpoint_location_function): Remove
3444 explicit_loc parameter.
3445 (momentary_breakpoint_from_master): Update call to
3446 set_breakpoint_location_function.
3447 (add_location_to_breakpoint): Likewise.
3448
b3a7d171
AB
34492019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3450
3451 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3452 required features based on default bfd type when no specific bfd
3453 is present.
3454
1f6f6e21
PW
34552019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3456
3457 * NEWS: Mention that GDB printf and eval commands can now print
3458 C-style and Ada-style convenience var strings without
3459 calling the inferior.
3460 * printcmd.c (printf_c_string): Locally print GDB internal var
3461 instead of transiting via the inferior.
3462 (printf_wide_c_string): Likewise.
3463
34642019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
3465
3466 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3467
0598af48
TT
34682019-07-04 Tom Tromey <tom@tromey.com>
3469
3470 PR tui/24724:
3471 * tui/tui-winsource.c (tui_clear_source_content): Update.
3472 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3473 (tui_update_breakpoint_info): Update.
3474 (tui_set_exec_info_content): Update.
3475 * tui/tui-source.c (tui_set_source_content_nil): Update.
3476 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3477 has_break.
3478 * tui/tui-data.h (enum tui_bp_flag): New.
3479 (tui_bp_flags): New enum flags type.
3480 (struct tui_source_element) <break_mode>: Change type. Rename
3481 from has_break.
3482 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3483 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3484 constants.
3485 * tui/tui-winsource.h: Fix comment.
3486
350fab54
AH
34872019-07-04 Alan Hayward <alan.hayward@arm.com>
3488
3489 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3490 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3491 (store_fpregs_to_thread)
3492 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3493 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3494 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3495 (IWMMXT_REGS_SIZE): Add define.
3496 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3497 (fetch_vfp_regs, store_vfp_regs)
3498 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3499 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3500
f0452268
AH
35012019-07-04 Alan Hayward <alan.hayward@arm.com>
3502
3503 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3504 defines.
3505 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3506 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3507 (ARM_INT_REGISTER_SIZE): ...to this.
3508 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3509 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3510 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3511 (arm_linux_collect_gregset, supply_nwfpe_register)
3512 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3513 defines.
3514 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3515 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3516 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3517 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3518 (arm_return_in_memory, arm_store_return_value)
3519 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3520 (arm_record_ld_st_multiple): Likewise.
3521 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3522 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3523
e935475c
AH
35242019-07-04 Alan Hayward <alan.hayward@arm.com>
3525
3526 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3527 AARCH64_DISPLACED_MODIFIED_INSNS.
3528 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3529 (aarch64_displaced_step_copy_insn): Likewise.
3530 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3531 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3532 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3533 ARM_DISPLACED_MODIFIED_INSNS.
3534 * arm-tdep.c (arm_gdbarch_init): Likewise.
3535 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3536 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3537 (struct arm_displaced_step_closure): Use
3538 ARM_DISPLACED_MODIFIED_INSNS.
3539
df0bb381
AH
35402019-07-04 Alan Hayward <alan.hayward@arm.com>
3541
3542 * features/Makefile: Remove unused xml files.
3543 * features/aarch64.xml: Remove.
3544 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3545 * features/i386/amd64-avx-avx512.xml: Remove.
3546 * features/i386/amd64-avx-linux.xml: Remove.
3547 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3548 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3549 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3550 * features/i386/amd64-avx-mpx.xml: Remove.
3551 * features/i386/amd64-avx.xml: Remove.
3552 * features/i386/amd64-linux.xml: Remove.
3553 * features/i386/amd64-mpx-linux.xml: Remove.
3554 * features/i386/amd64-mpx.xml: Remove.
3555 * features/i386/amd64.xml: Remove.
3556 * features/i386/i386-avx-avx512-linux.xml: Remove.
3557 * features/i386/i386-avx-avx512.xml: Remove.
3558 * features/i386/i386-avx-linux.xml: Remove.
3559 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3560 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3561 * features/i386/i386-avx-mpx-linux.xml: Remove.
3562 * features/i386/i386-avx-mpx.xml: Remove.
3563 * features/i386/i386-avx.xml: Remove.
3564 * features/i386/i386-linux.xml: Remove.
3565 * features/i386/i386-mmx-linux.xml: Remove.
3566 * features/i386/i386-mmx.xml: Remove.
3567 * features/i386/i386-mpx-linux.xml: Remove.
3568 * features/i386/i386-mpx.xml: Remove.
3569 * features/i386/i386.xml: Remove.
3570 * features/i386/x32-avx-avx512-linux.xml: Remove.
3571 * features/i386/x32-avx-linux.xml: Remove.
3572 * features/i386/x32-linux.xml: Remove.
3573
edd6266a
AH
35742019-07-04 Alan Hayward <alan.hayward@arm.com>
3575
3576 * regformats/aarch64.dat: Remove.
3577 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3578 * regformats/i386/amd64-avx-linux.dat: Remove.
3579 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3580 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3581 * regformats/i386/amd64-linux.dat: Remove.
3582 * regformats/i386/amd64-mpx-linux.dat: Remove.
3583 * regformats/i386/amd64.dat: Remove.
3584 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3585 * regformats/i386/i386-avx-linux.dat: Remove.
3586 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3587 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3588 * regformats/i386/i386-linux.dat: Remove.
3589 * regformats/i386/i386-mmx-linux.dat: Remove.
3590 * regformats/i386/i386-mpx-linux.dat: Remove.
3591 * regformats/i386/i386.dat: Remove.
3592 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3593 * regformats/i386/x32-avx-linux.dat: Remove.
3594 * regformats/i386/x32-linux.dat: Remove.
3595
2b40fda7
AH
35962019-07-04 Alan Hayward <alan.hayward@arm.com>
3597
3598 * aarch64-tdep.c: Remove xml self tests.
3599 * amd64-linux-tdep.c: Likewise.
3600 * amd64-tdep.c: Likewise.
3601 * i386-linux-tdep.c: Likewise.
3602 * i386-tdep.c: Likewise.
3603
5f4ba3e7
PA
36042019-07-03 Pedro Alves <palves@redhat.com>
3605
3606 PR cli/24732
3607 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3608 (pipe_cmd_option_defs): New.
3609 (make_pipe_cmd_options_def_group): New.
3610 (pipe_command): Use gdb::option::process_options.
3611 (pipe_command_completer): New function.
3612 (_initialize_cli_cmds): Install completer for "pipe" command.
3613
3d9be6f5
PA
36142019-07-03 Pedro Alves <palves@redhat.com>
3615
3616 * cli/cli-option.c (union option_value) <string>: New field.
3617 (struct option_def_and_value): Add ctor, move ctor, dtor and
3618 use DISABLE_COPY_AND_ASSIGN.
3619 (option_def_and_value::clear_value): New.
3620 (parse_option, save_option_value_in_ctx, get_val_type_str)
3621 (add_setshow_cmds_for_options): Handle var_string.
3622 * cli-option.h (union option_def::var_address) <string>: New
3623 field.
3624 (struct string_option_def): New.
3625 * maint-test-options.c (struct test_options_opts): Add default
3626 ctor and use DISABLE_COPY_AND_ASSIGN.
3627 <string_opt>: New field.
3628 (test_options_opts::~test_options_opts): New.
3629 (test_options_opts::dump): Also dump "-string".
3630 (test_options_option_defs): Install "string.
3631
41fc454c
PA
36322019-07-03 Pedro Alves <palves@redhat.com>
3633
3634 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3635 option_value with a null enumeration.
3636 (complete_options): Save the option values in the context.
3637 (save_option_value_in_ctx): New, factored out from ...
3638 (process_options): ... here.
3639 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3640 of the function.
3641 * maint-test-options.c (test_options_opts::dump): New, factored
3642 out from ...
3643 (maintenance_test_options_command_mode): ... here.
3644 (maintenance_test_options_command_completion_result): Delete.
3645 (maintenance_test_options_command_completion_text): Update
3646 comment.
3647 (maintenance_show_test_options_completion_result): Change
3648 prototype. Just print
3649 maintenance_test_options_command_completion_text.
3650 (save_completion_result): New.
3651 (maintenance_test_options_completer_mode): Pass options context to
3652 complete_options, and then save a dump.
3653 (_initialize_maint_test_options): Use add_cmd to install "maint
3654 show test-options-completion-result".
3655
fdbc9870
PA
36562019-07-03 Pedro Alves <palves@redhat.com>
3657
3658 * NEWS (New commands): Mention "with" and "maint with".
3659 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3660 (with_command, with_command_completer): New.
3661 (pipe_command): Adjust to new repeat_previous
3662 interface.
3663 (_initialize_cli_cmds): Install the "with" command and its "w"
3664 alias.
3665 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3666 declarations.
3667 * cli/cli-setshow.c (parse_cli_var_uinteger)
3668 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3669 argument strings for all var_types.
3670 (get_setshow_command_value_string): New, factored out from ...
3671 (do_show_command): ... this.
3672 * cli/cli-setshow.h: Include <string>.
3673 (get_setshow_command_value_string): Declare.
3674 * command.h (repeat_previous): Now returns const char *. Adjust
3675 comment.
3676 * maint.c: Include "cli/cli-cmds.h".
3677 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3678 (_initialize_maint_cmds): Register the "maintenance with" command.
3679 * top.c (repeat_previous): Move bits from pipe_command here:
3680 Return the saved command line, if any; error out if there's no
3681 command to relaunch.
3682
c6ac8931
PA
36832019-07-03 Pedro Alves <palves@redhat.com>
3684
3685 * NEWS (New commands): Mention "maint set/show test-settings"
3686 instead of "maint test-settings".
3687 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3688 (maintenance_test_settings_set_list): Rename to ...
3689 (maintenance_set_test_settings_list): ... this.
3690 (maintenance_test_settings_show_list): Rename to ...
3691 (maintenance_show_test_settings_list): ... this.
3692 (maintenance_test_settings_cmd): Delete.
3693 (maintenance_test_settings_set_cmd): ...
3694 (maintenance_set_test_settings_cmd): ... this.
3695 (maintenance_test_settings_show_cmd): ...
3696 (maintenance_show_test_settings_cmd): ... this.
3697 (maintenance_test_settings_show_value_cmd):
3698 (maintenance_show_test_settings_value_cmd): ... this.
3699 (_initialize_maint_test_settings): No longer install the "maint
3700 test-settings" prefix command. Rename "maint test-settings set"
3701 to "maint set test-settings", and "maint test-settings show" to
3702 "maint show test-settings". Adjust all subcommands.
3703
d1fcf2fd
PA
37042019-07-03 Pedro Alves <palves@redhat.com>
3705
3706 * maint-test-settings.c: Fix file's intro comment. Replace all
3707 references to "test-options" with references to "test-settings",
3708 in comments.
3709
970f9d09
PA
37102019-07-03 Pedro Alves <palves@redhat.com>
3711
3712 * maint-test-settings.c (maintenance_test_settings_xxx)
3713 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3714 New.
3715 (maintenance_test_settings_enums): Use them.
3716 (maintenance_test_settings_enum): Default to
3717 maintenance_test_settings_xxx.
3718 (_initialize_maint_test_settings): Initialize
3719 MAINTENANCE_TEST_SETTINGS_FILENAME.
3720
f3869b1a
SM
37212019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3722
3723 * breakpoint.h (remove_breakpoints_inf): Change return type to
3724 void, move function documentation here.
3725 * breakpoint.c (remove_breakpoints_inf): Change return type to
3726 void, move function documentation to header.
3727
54d66006
PA
37282019-07-02 Pedro Alves <palves@redhat.com>
3729
3730 * NEWS (Completion improvements): Mention "info threads".
3731 * thread.c (struct info_threads_opts, info_threads_option_defs)
3732 (make_info_threads_options_def_group): New.
3733 (info_threads_command): Use gdb::option::process_options.
3734 (info_threads_command_completer): New.
3735 (_initialize_thread): Use gdb::option::build_help to build the
3736 help text for "info threads".
3737
854f6088
SM
37382019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3739
3740 * defs.h (generic_load): Move from here...
3741 * symfile.h (generic_load): ... to here. Rename name parameter
3742 to args.
3743 * symfile.c (generic_load): Add comment.
3744
54ee4252
TT
37452019-07-01 Tom Tromey <tromey@adacore.com>
3746
3747 * dwarf2read.c
3748 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3749 declaration of without_params. Fix formatting.
3750
65392b3e
TT
37512019-07-01 Tom Tromey <tromey@adacore.com>
3752
3753 * ada-exp.y (find_primitive_type): Update.
3754 * ada-lang.h (ada_lookup_symbol): Update.
3755 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3756 parameter.
3757 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3758
7d7571f0
SDJ
37592019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3760
3761 PR breakpoints/24541
3762 * gdbarch.c: Regenerate.
3763 * gdbarch.h: Regenerate.
3764 * gdbarch.sh: Add 'stap_adjust_register'.
3765 * i386-tdep.c: Include '<unordered_set>'.
3766 (i386_stap_adjust_register): New function.
3767 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3768 * stap-probe.c (stap_parse_register_operand): Call
3769 'gdbarch_stap_adjust_register'.
3770
5af5392a
SDJ
37712019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3772
3773 PR python/24742
3774 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3775 * python/python.c (do_start_initialization): Use 'xmalloc'
3776 instead of 'PyMem_Malloc'.
3777
10d06d82
TT
37782019-06-28 Tom Tromey <tromey@adacore.com>
3779
3780 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3781 for Ada.
3782
1b7f24cd
TT
37832019-06-27 Tom Tromey <tromey@adacore.com>
3784
3785 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3786 objfile_key.
3787 (arm_find_mapping_symbol, arm_record_special_symbol)
3788 (_initialize_arm_tdep): Update.
3789 (arm_objfile_data_free): Remove.
3790
3d507ff2
TT
37912019-06-27 Tom Tromey <tromey@adacore.com>
3792
3793 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3794 to cp_print_static_field.
3795
762c164d
TT
37962019-06-26 Tom Tromey <tromey@adacore.com>
3797
3798 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3799 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3800 declare.
3801
aa2f9bcf
AH
38022019-06-26 Alan Hayward <alan.hayward@arm.com>
3803
3804 * features/aarch64-core.c (create_feature_aarch64_core):
3805 Regenerate.
3806 * features/aarch64-core.xml: Add cpsr flags.
3807
3426ae57
AH
38082019-06-26 Alan Hayward <alan.hayward@arm.com>
3809
3810 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3811 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3812
4838e44c
SM
38132019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3814
3815 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3816 field.
3817 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3818 use.
3819 (arm_record_special_symbol): Don't insert new symbol in sorted
3820 position, push it at the end.
3821
54cc7474
SM
38222019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3823
3824 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3825 (arm_mapping_symbol_s): Remove.
3826 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3827 (arm_mapping_symbol_vec): New typedef.
3828 (struct arm_per_objfile): Add constructor.
3829 <section_maps>: Change type to
3830 std::unique_ptr<arm_mapping_symbol_vec[]>.
3831 (arm_compare_mapping_symbols): Remove.
3832 (arm_find_mapping_symbol): Adjust to section_maps type change.
3833 (arm_objfile_data_free): Call delete on arm_per_objfile.
3834 (arm_record_special_symbol): Adjust to section_maps type change.
3835 Allocate arm_per_objfile with new.
3836
b65b566c
PW
38372019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3838
3839 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3840 with the command prefix.
3841
c2fc64f5
TT
38422019-06-25 Tom Tromey <tom@tromey.com>
3843
3844 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3845 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3846
fb54fa76
TT
38472019-06-25 Tom Tromey <tom@tromey.com>
3848
3849 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3850 type.
3851 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3852 protected.
3853
f7952c57
TT
38542019-06-25 Tom Tromey <tom@tromey.com>
3855
3856 * tui/tui-winsource.c
3857 (tui_source_window_base::set_is_exec_point_at): Add check against
3858 LOA_ADDRESS.
3859
17568d78
TT
38602019-06-25 Tom Tromey <tom@tromey.com>
3861
3862 * tui/tui-source.c (tui_set_source_content): Don't check before
3863 xfree.
3864 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3865
53e7cdba
TT
38662019-06-25 Tom Tromey <tom@tromey.com>
3867
3868 * tui/tui-winsource.h (tui_update_source_window_as_is)
3869 (tui_alloc_source_buffer, tui_line_is_displayed)
3870 (tui_addr_is_displayed): Change type of win_info.
3871 * tui/tui-winsource.c (tui_update_source_window_as_is)
3872 (tui_clear_source_content, tui_show_source_line)
3873 (tui_show_source_content, tui_source_window_base::refill)
3874 (tui_source_window_base::set_is_exec_point_at)
3875 (tui_source_window_base::set_is_exec_point_at)
3876 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3877 (tui_alloc_source_buffer, tui_line_is_displayed)
3878 (tui_addr_is_displayed): Change type of win_info. Update.
3879 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3880 (tui_source_window_base::do_make_visible_with_new_height):
3881 Update.
3882 * tui/tui-source.c (tui_set_source_content)
3883 (tui_set_source_content_nil)
3884 (tui_source_window::do_scroll_vertical): Update.
3885 * tui/tui-layout.c (show_layout): Update.
3886 * tui/tui-disasm.c (tui_set_disassem_content)
3887 (tui_disasm_window::do_scroll_vertical): Update.
3888 * tui/tui-data.h (tui_win_content): Remove.
3889 (struct tui_gen_win_info) <content, content_size>: Remove.
3890 (struct tui_source_element): Add initializers and destructor.
3891 (union tui_which_element, struct tui_win_element): Remove.
3892 (struct tui_source_window_base) <content>: New field.
3893 (struct tui_data_window): Remove destructor.
3894 (tui_alloc_content, tui_free_win_content)
3895 (tui_free_all_source_wins_content): Don't declare.
3896 * tui/tui-data.c (tui_initialize_static_data): Update.
3897 (init_content_element, tui_alloc_content): Remove.
3898 (~tui_gen_win_info): Update.
3899 (~tui_data_window, tui_free_all_source_wins_content)
3900 (tui_free_win_content, free_content, free_content_elements):
3901 Remove.
3902
7908abbf
TT
39032019-06-25 Tom Tromey <tom@tromey.com>
3904
3905 * tui/tui-winsource.h (tui_clear_source_content)
3906 (tui_erase_source_content, tui_show_source_content): Change type
3907 of win_info.
3908 * tui/tui-winsource.c (tui_clear_source_content)
3909 (tui_erase_source_content, tui_show_source_content): Change type
3910 of win_info.
3911 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3912 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3913 win_info.
3914 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3915 win_info.
3916 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3917
02c28df0
TT
39182019-06-25 Tom Tromey <tom@tromey.com>
3919
3920 * tui/tui-winsource.c (tui_clear_source_content)
3921 (tui_source_window_base::set_is_exec_point_at): Update.
3922 * tui/tui-source.c (tui_set_source_content_nil): Update.
3923 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3924 a bool.
3925 * tui/tui-data.c (init_content_element): Update.
3926
6658b1bf
TT
39272019-06-25 Tom Tromey <tom@tromey.com>
3928
3929 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3930 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3931 * tui/tui-layout.c (init_and_make_win): Update.
3932 * tui/tui.h (enum tui_win_type): Update.
3933 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3934 tui_win_is_auxillary.
3935 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3936 tui_win_is_auxillary.
3937
21e1c91e
TT
39382019-06-25 Tom Tromey <tom@tromey.com>
3939
3940 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3941 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3942 (tui_delete_data_content_windows, tui_display_all_data)
3943 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3944 Update.
3945 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3946 * tui/tui-regs.c (tui_last_regs_line_no)
3947 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3948 (tui_show_registers): Update.
3949 (tui_show_register_group): Return void. Update.
3950 (tui_display_registers_from, tui_display_reg_element_at_line)
3951 (tui_display_registers_from_line, tui_check_register_values):
3952 Update.
3953 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3954 member.
3955 (struct tui_data_window) <regs_content>: Now a std::vector.
3956 <regs_content_count>: Remove.
3957 (tui_add_content_elements, tui_free_data_content): Don't declare.
3958 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3959 (init_content_element): Remove DATA_WIN case. Add assert.
3960 (tui_add_content_elements): Remove.
3961 (tui_data_window): Update.
3962 (tui_free_data_content): Remove.
3963 (free_content_elements): Remove DATA_WIN case.
3964
115ac53b
TT
39652019-06-25 Tom Tromey <tom@tromey.com>
3966
3967 * tui/tui-data.c (tui_data_item_window): Update.
3968 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3969 * tui/tui-windata.c (tui_display_all_data)
3970 (tui_display_data_from_line): Update.
3971 (tui_check_data_values): Remove.
3972 * tui/tui-regs.c (tui_show_register_group)
3973 (tui_display_reg_element_at_line): Update.
3974 * tui/tui-hooks.c (tui_register_changed)
3975 (tui_refresh_frame_and_register_information): Call
3976 tui_check_register_values.
3977 * tui/tui-data.h (struct tui_data_window) <data_content,
3978 data_content_count, data_type>: Remove.
3979 (enum tui_data_type): Remove.
3980
3981 * tui/tui-data.c (tui_data_window::clear_detail)
3982 (~tui_data_window): Update.
3983
eaf9738b
TT
39842019-06-25 Tom Tromey <tom@tromey.com>
3985
3986 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3987 declare.
3988 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3989 Rename from tui_first_data_item_displayed. Update.
3990 (tui_data_window::refresh_all)
3991 (tui_data_window::do_scroll_vertical): Update.
3992 * tui/tui-data.h (struct tui_data_window)
3993 <first_data_item_displayed>: Declare new method.
3994
31ca4723
TT
39952019-06-25 Tom Tromey <tom@tromey.com>
3996
3997 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3998 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3999 contents...
4000 (tui_initialize_static_data): ...here.
4001
41bcff7f
TT
40022019-06-25 Tom Tromey <tom@tromey.com>
4003
4004 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4005 (tui_display_registers_from, tui_check_register_values): Update.
4006 (tui_display_register): Remove win_info parameter; update.
4007 (tui_get_register): Change type of parameters.
4008 * tui/tui-data.h (struct tui_data_element): Remove.
4009 (union tui_which_element) <data>: Remove.
4010 <data_window>: Change type.
4011 (struct tui_data_item_window): New.
4012 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4013 case. Add assert.
4014 (~tui_data_item_window): New destructor.
4015 (free_content_elements): Remove DATA_ITEM_WIN case.
4016
d2802c33
TT
40172019-06-25 Tom Tromey <tom@tromey.com>
4018
4019 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4020 Remove.
4021
dd835f8b
TT
40222019-06-25 Tom Tromey <tom@tromey.com>
4023
4024 * tui/tui-data.h (struct tui_command_element): Remove.
4025 (union tui_which_element) <command>: Remove.
4026 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4027 assert.
4028 (free_content_elements): Remove CMD_WIN case.
4029
bd7db367
TT
40302019-06-25 Tom Tromey <tom@tromey.com>
4031
4032 * tui/tui-layout.c (tui_set_layout): Update.
4033 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4034 * tui/tui-data.c (layout_def): Update.
4035
3add462f
TT
40362019-06-25 Tom Tromey <tom@tromey.com>
4037
4038 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4039 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4040 (tui_source_window_base::set_new_height): Update.
4041 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4042 Update.
4043 (tui_set_locator_fullname, tui_set_locator_info)
4044 (tui_show_frame_info): Update.
4045 * tui/tui-source.c (tui_set_source_content)
4046 (tui_source_is_displayed): Update.
4047 * tui/tui-layout.c (show_source_disasm_command, show_data)
4048 (show_source_or_disasm_and_command): Update.
4049 * tui/tui-disasm.c (tui_set_disassem_content)
4050 (tui_get_begin_asm_address): Update.
4051 * tui/tui-data.h (struct tui_locator_element): Remove.
4052 (union tui_which_element) <locator>: Remove.
4053 (struct tui_locator_window): New.
4054 (tui_locator_win_info_ptr): Change return type.
4055 * tui/tui-data.c (_locator): Change type.
4056 (tui_locator_win_info_ptr): Change return type.
4057 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4058 (tui_alloc_content): Add assert.
4059
489e9d8b
TT
40602019-06-25 Tom Tromey <tom@tromey.com>
4061
4062 * tui/tui-winsource.c
4063 (tui_exec_info_window::maybe_allocate_content): New method.
4064 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4065 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4066 (make_source_or_disasm_window): Add cast.
4067 * tui/tui-data.h (union tui_which_element) <simple_string>:
4068 Remove.
4069 (struct tui_source_info): New.
4070 (struct tui_source_window_base) <execution_info>: Change type.
4071 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4072 case, and add assert.
4073 (tui_alloc_content): Add assert.
4074
c3fabb7d
TT
40752019-06-25 Tom Tromey <tom@tromey.com>
4076
4077 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4078 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4079 * tui/tui-data.c (tui_alloc_win_info): Remove.
4080
bbc228ee
TT
40812019-06-25 Tom Tromey <tom@tromey.com>
4082
4083 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4084 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4085 can_highlight.
4086
5fcee43a
TT
40872019-06-25 Tom Tromey <tom@tromey.com>
4088
4089 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4090 make_visible_with_new_height method.
4091 (tui_win_info::make_visible_with_new_height): New method.
4092 (tui_source_window_base::do_make_visible_with_new_height)
4093 (tui_data_window::do_make_visible_with_new_height)
4094 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4095 (make_visible_with_new_height): Remove.
4096 (tui_resize_all, tui_adjust_win_heights): Use
4097 make_visible_with_new_height method.
4098 * tui/tui-data.h (struct tui_win_info)
4099 <do_make_visible_with_new_height, make_visible_with_new_height>:
4100 New methods.
4101 (struct tui_source_window_base, struct tui_data_window)
4102 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4103 methods.
4104
d83f1fe6
TT
41052019-06-25 Tom Tromey <tom@tromey.com>
4106
4107 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4108 method.
4109 (update_tab_width): Call update_tab_width method.
4110 * tui/tui-data.h (struct tui_win_info)
4111 (struct tui_source_window_base) <update_tab_width>: New methods.
4112
17374de4
TT
41132019-06-25 Tom Tromey <tom@tromey.com>
4114
4115 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4116 parameter.
4117 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4118 parameter.
4119 (tui_gen_win_info::make_visible): Update.
4120 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4121 parameter.
4122 * tui/tui-data.h (enum tui_box): New enum.
4123 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4124
f936bca2
TT
41252019-06-25 Tom Tromey <tom@tromey.com>
4126
4127 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4128 init_and_make_win for EXEC_INFO_WIN.
4129 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4130 longer inline.
4131 (struct tui_win_info) <~tui_win_info>: Inline.
4132 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4133 Don't declare.
4134 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4135 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4136 Remove.
4137 (tui_initialize_static_data): Update.
4138 (~tui_gen_win_info): Handle more cleanup here.
4139 (~tui_source_window_base): Delete "execution_info".
4140 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4141
d6ba6a11
TT
41422019-06-25 Tom Tromey <tom@tromey.com>
4143
4144 * tui/tui-layout.c (make_command_window): Don't set
4145 can_highlight.
4146 (show_source_disasm_command): Call the reset method.
4147 (show_data): Don't set can_highlight. Call the reset method.
4148 (tui_gen_win_info::reset): Rename from init_gen_win_info
4149 (init_and_make_win): Simplify. Return tui_gen_win_info.
4150 (show_source_or_disasm_and_command): Call the reset method.
4151 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4152 (struct tui_cmd_window): Set can_highlight.
4153
48a3bd16
TT
41542019-06-25 Tom Tromey <tom@tromey.com>
4155
4156 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4157 from make_visible.
4158 (tui_make_visible, tui_make_invisible): Rewrite.
4159 (tui_win_info::make_visible): Remove.
4160 (tui_source_window_base::make_visible): Update.
4161 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4162 method. Moved from...
4163 (struct tui_win_info) <make_visible>: ...here.
4164
c3bd716f
TT
41652019-06-25 Tom Tromey <tom@tromey.com>
4166
4167 * tui/tui-winsource.c
4168 (tui_source_window_base::do_scroll_horizontal): Remove direction
4169 parameter.
4170 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4171 direction parameter.
4172 * tui/tui-win.c (tui_win_info::forward_scroll)
4173 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4174 (tui_win_info::right_scroll): Update.
4175 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4176 direction parameter.
4177 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4178 direction parameter.
4179 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4180 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4181 Remove direction parameter.
4182 (struct tui_source_window_base, struct tui_source_window)
4183 (struct tui_disasm_window, struct tui_data_window)
4184 (struct tui_cmd_window): Update.
4185
21c32dca
TT
41862019-06-25 Tom Tromey <tom@tromey.com>
4187
4188 * tui/tui-winsource.h (tui_set_exec_info_content)
4189 (tui_show_exec_info_content, tui_erase_exec_info_content)
4190 (tui_clear_exec_info_content, tui_update_exec_info): Change
4191 argument to tui_source_window_base.
4192 * tui/tui-winsource.c (tui_set_exec_info_content)
4193 (tui_show_exec_info_content, tui_erase_exec_info_content)
4194 (tui_clear_exec_info_content, tui_update_exec_info): Change
4195 argument to tui_source_window_base.
4196
73fbdc65
TT
41972019-06-25 Tom Tromey <tom@tromey.com>
4198
4199 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4200 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4201
33325343
TT
42022019-06-25 Tom Tromey <tom@tromey.com>
4203
4204 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4205 check.
4206
29d2c474
TT
42072019-06-25 Tom Tromey <tom@tromey.com>
4208
4209 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4210 type to void.
4211 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4212 type to void.
4213 * tui/tui-source.c (tui_set_source_content): Update.
4214 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4215
152f3f4b
TT
42162019-06-25 Tom Tromey <tom@tromey.com>
4217
4218 * tui/tui-win.c (window_name_completer, tui_set_focus)
4219 (tui_all_windows_info): Use name method.
4220 * tui/tui-data.h (struct tui_gen_win_info)
4221 (struct tui_source_window, struct tui_disasm_window)
4222 (struct tui_data_window, struct tui_cmd_window) <name>: New
4223 method.
4224 (tui_win_name): Don't declare.
4225 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4226 (tui_win_name): Remove.
4227
be4da588
TT
42282019-06-25 Tom Tromey <tom@tromey.com>
4229
4230 * tui/tui-winsource.h (tui_update_source_window)
4231 (tui_update_source_window_as_is): Change parameter type.
4232 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4233 to be a tui_source_window_base.
4234 (tui_update_source_window_as_is): Likewise.
4235 * tui/tui-win.c (make_visible_with_new_height): Update.
4236
5b81daba
TT
42372019-06-25 Tom Tromey <tom@tromey.com>
4238
4239 * tui/tui-winsource.c (tui_erase_source_content)
4240 (tui_show_source_content, tui_show_exec_info_content)
4241 (tui_erase_exec_info_content): Use refresh_window method.
4242 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4243 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4244 from tui_refresh_win.
4245 (tui_data_window::refresh_window): New method.
4246 (tui_win_info::refresh, tui_source_window_base::refresh)
4247 (tui_refresh_all): Use refresh_window method.
4248 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4249 method.
4250 * tui/tui-regs.c (tui_display_register): Call refresh_window
4251 method.
4252 * tui/tui-layout.c (show_source_disasm_command)
4253 (show_source_or_disasm_and_command): Call refresh_window method.
4254 * tui/tui-data.h (struct tui_gen_win_info)
4255 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4256 New method.
4257
cb2ce893
TT
42582019-06-25 Tom Tromey <tom@tromey.com>
4259
4260 * tui/tui.c (tui_rl_other_window, tui_enable)
4261 (tui_is_window_visible, tui_get_command_dimension): Update.
4262 * tui/tui-winsource.c (tui_update_source_window_as_is)
4263 (tui_clear_source_content, tui_erase_source_content)
4264 (tui_show_source_line, tui_source_window_base::refill)
4265 (tui_source_window_base::do_scroll_horizontal)
4266 (tui_source_window_base::set_is_exec_point_at)
4267 (tui_update_breakpoint_info, tui_set_exec_info_content)
4268 (tui_alloc_source_buffer, tui_line_is_displayed)
4269 (tui_addr_is_displayed): Update.
4270 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4271 (tui_check_and_display_highlight_if_needed)
4272 (tui_win_info::make_visible, tui_win_info::refresh)
4273 (tui_refresh_all): Update.
4274 * tui/tui-windata.c (tui_first_data_item_displayed)
4275 (tui_delete_data_content_windows, tui_erase_data_content)
4276 (tui_display_all_data, tui_data_window::refresh_all)
4277 (tui_check_data_values): Update.
4278 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4279 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4280 (tui_win_info::backward_scroll, tui_refresh_all_win)
4281 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4282 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4283 (tui_source_window_base::set_new_height)
4284 (tui_data_window::set_new_height)
4285 (make_invisible_and_set_new_height)
4286 (make_visible_with_new_height, new_height_ok)
4287 (parse_scrolling_args): Update.
4288 * tui/tui-stack.c (tui_show_frame_info): Update.
4289 * tui/tui-source.c (tui_set_source_content)
4290 (tui_set_source_content_nil, tui_source_is_displayed)
4291 (tui_source_window::do_scroll_vertical): Update.
4292 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4293 (tui_display_registers_from, tui_display_reg_element_at_line)
4294 (tui_check_register_values, tui_reg_command): Update.
4295 * tui/tui-layout.c (tui_default_win_height)
4296 (show_source_disasm_command, show_data, init_and_make_win)
4297 (show_source_or_disasm_and_command): Update.
4298 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4299 (tui_redisplay_readline, tui_mld_flush)
4300 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4301 (tui_getc): Update.
4302 * tui/tui-disasm.c (tui_set_disassem_content)
4303 (tui_disasm_window::do_scroll_vertical): Update.
4304 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4305 Now virtual.
4306 (struct tui_win_info): Derive from tui_gen_win_info.
4307 <~tui_win_info>: Mark as override.
4308 <generic>: Remove member.
4309 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4310 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4311 (~tui_data_window, ~tui_win_info)
4312 (tui_free_all_source_wins_content): Update.
4313 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4314
ab313b35
TT
43152019-06-25 Tom Tromey <tom@tromey.com>
4316
4317 * tui/tui-layout.c (init_and_make_win): Use new.
4318 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4319 destructor, initializers.
4320 (tui_alloc_generic_win_info): Don't declare.
4321 * tui/tui-data.c (_locator): Add argument to constructor.
4322 (source_win, disasm_win): New globals.
4323 (exec_info): Remove.
4324 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4325 Update.
4326 (tui_alloc_generic_win_info): Remove.
4327 (init_content_element): Use new.
4328 (tui_win_info::tui_win_info): Update.
4329 (free_content_elements) <case DATA_WIN>: Use delete.
4330
dc2c33e4
TT
43312019-06-25 Tom Tromey <tom@tromey.com>
4332
4333 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4334 * tui/tui-windata.c (tui_first_data_item_displayed)
4335 (tui_delete_data_content_windows): Update.
4336 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4337 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4338 (tui_display_registers_from, tui_check_register_values): Update.
4339 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4340 pointer.
4341 * tui/tui-data.c (init_content_element): Update. Allocate the new
4342 window.
4343 (tui_free_data_content): Update.
4344 (free_content_elements) <case DATA_WIN>: Free the window.
4345
214a5cbe
TT
43462019-06-25 Tom Tromey <tom@tromey.com>
4347
4348 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4349 Update.
4350 * tui/tui-layout.c (make_command_window)
4351 (show_source_disasm_command, show_data, init_and_make_win)
4352 (show_source_or_disasm_and_command): Update.
4353 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4354 method.
4355 <can_highight, is_highlighted>: Now bool.
4356 (tui_set_win_highlight): Don't declare.
4357 * tui/tui-data.c (tui_set_win_highlight): Remove.
4358
8e2daf15
TT
43592019-06-25 Tom Tromey <tom@tromey.com>
4360
4361 * tui/tui-wingeneral.c (make_visible): Remove check of window
4362 type.
4363
8903bd8a
TT
43642019-06-25 Tom Tromey <tom@tromey.com>
4365
4366 * tui/tui-win.c (tui_win_info::max_height)
4367 (tui_cmd_window::max_height): New methods.
4368 (new_height_ok): Call max_height.
4369 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4370 <max_height>: New method.
4371
3f02ce1e
TT
43722019-06-25 Tom Tromey <tom@tromey.com>
4373
4374 * tui/tui-win.c (tui_source_window_base::set_new_height)
4375 (tui_data_window::set_new_height): New methods.
4376 (make_invisible_and_set_new_height): Call set_new_height method.
4377 * tui/tui-data.h (struct tui_win_info)
4378 (struct tui_source_window_base, struct tui_data_window)
4379 <set_new_height>: New method.
4380
1825f487
TT
43812019-06-25 Tom Tromey <tom@tromey.com>
4382
4383 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4384 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4385 tui_refresh_data_win.
4386 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4387 method.
4388 (tui_refresh_all_win): Call the refresh_all method.
4389 (tui_set_focus): Likewise.
4390 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4391 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4392 Likewise.
4393
ad54d15b
TT
43942019-06-25 Tom Tromey <tom@tromey.com>
4395
4396 * tui/tui-winsource.h (tui_refill_source_window)
4397 (tui_set_is_exec_point_at): Don't declare.
4398 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4399 (tui_source_window_base::refill): Rename from
4400 tui_refill_source_window.
4401 (tui_source_window_base::do_scroll_horizontal): Update.
4402 (tui_source_window_base::set_is_exec_point_at): Rename from
4403 tui_set_is_exec_point_at.
4404 (tui_update_all_breakpoint_info): Update.
4405 * tui/tui-stack.c (tui_show_frame_info): Update.
4406 * tui/tui-layout.c (show_data): Add cast.
4407 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4408 * tui/tui-data.h (struct tui_source_window_base) <refill,
4409 set_is_exec_point_at>: New methods.
4410 (tui_source_windows, tui_add_to_source_windows): Update types.
4411 (tui_add_to_source_windows): Remove redundant declaration.
4412 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4413 (tui_source_windows): Change return type.
4414 (tui_clear_source_windows_detail): Update.
4415 (tui_add_to_source_windows): Change type of parameter.
4416 (tui_free_all_source_wins_content): Update.
4417
2042b506
TT
44182019-06-25 Tom Tromey <tom@tromey.com>
4419
4420 * tui/tui-wingeneral.c (tui_win_info::refresh)
4421 (tui_source_window_base::refresh): New methods.
4422 (tui_refresh_all): Call the refresh method.
4423 * tui/tui-data.h (struct tui_win_info)
4424 (struct tui_source_window_base) <refresh>: New method.
4425
56122977
TT
44262019-06-25 Tom Tromey <tom@tromey.com>
4427
4428 * tui/tui.h (tui_is_window_visible): Return bool.
4429 * tui/tui.c (tui_is_window_visible): Return bool.
4430 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4431 (tui_make_visible, tui_make_invisible)
4432 (tui_win_info::make_visible)
4433 (tui_source_window_base::make_visible, make_all_visible)
4434 (tui_make_all_visible, tui_make_all_invisible): Update.
4435 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4436 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4437 bool.
4438 (struct tui_win_info, struct tui_source_window_base)
4439 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4440 * tui/tui-data.c (tui_init_generic_part): Update.
4441
cda37efb
TT
44422019-06-25 Tom Tromey <tom@tromey.com>
4443
4444 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4445 (tui_source_window_base::make_visible): New methods.
4446 (make_all_visible): Make method call.
4447 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4448 (struct tui_source_window_base, struct tui_cmd_window): Override
4449 make_visible.
4450 (tui_win_is_source_type): Don't declare.
4451 * tui/tui-data.c (tui_win_is_source_type): Remove.
4452
6a0ee02c
TT
44532019-06-25 Tom Tromey <tom@tromey.com>
4454
4455 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4456 NULL check.
4457
63901aec
TT
44582019-06-25 Tom Tromey <tom@tromey.com>
4459
4460 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4461 Inline constructor. Add initializers for members.
4462 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4463 constructors; now inline in class.
4464
ceb13a13
TT
44652019-06-25 Tom Tromey <tom@tromey.com>
4466
4467 * tui/tui-regs.c (tui_show_registers): Update.
4468 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4469 bool.
4470 * tui/tui-data.c (tui_data_window::clear_detail)
4471 (tui_data_window): Update.
4472
238eb706
TT
44732019-06-25 Tom Tromey <tom@tromey.com>
4474
4475 * tui/tui-windata.c (tui_display_all_data)
4476 (tui_display_data_from_line, tui_display_data_from)
4477 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4478 Update.
4479 * tui/tui-regs.c (tui_last_regs_line_no)
4480 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4481 (tui_show_registers, tui_show_register_group)
4482 (tui_display_registers_from, tui_display_reg_element_at_line)
4483 (tui_display_registers_from_line, tui_check_register_values)
4484 (tui_reg_next, tui_reg_prev): Update.
4485 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4486 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4487 tui_data_window.
4488 (struct tui_win_info) <detail>: Remove. Add new fields from
4489 tui_data_info.
4490 (TUI_DATA_WIN): Add cast.
4491 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4492 (~tui_data_window): Simplify.
4493
81491aa0
TT
44942019-06-25 Tom Tromey <tom@tromey.com>
4495
4496 * tui/tui-layout.c (show_source_disasm_command)
4497 (show_source_or_disasm_and_command): Update.
4498 * tui/tui-io.c (update_cmdwin_start_line)
4499 (tui_redisplay_readline): Update.
4500 * tui/tui-data.h (struct tui_command_info): Remove.
4501 (struct tui_win_info) <detail>: Remove command_info member.
4502 (struct tui_data_window) <start_line>: New member, from
4503 tui_command_info.
4504 (TUI_CMD_WIN): Add casts.
4505
e6e41501
TT
45062019-06-25 Tom Tromey <tom@tromey.com>
4507
4508 * tui/tui-winsource.c (tui_update_source_window)
4509 (tui_refill_source_window)
4510 (tui_source_window_base::do_scroll_horizontal)
4511 (tui_update_breakpoint_info, tui_set_exec_info_content)
4512 (tui_show_exec_info_content, tui_erase_exec_info_content)
4513 (tui_clear_exec_info_content): Update.
4514 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4515 Update.
4516 * tui/tui-win.c (make_invisible_and_set_new_height)
4517 (make_visible_with_new_height): Update.
4518 * tui/tui-source.c (tui_set_source_content)
4519 (tui_show_symtab_source): Update.
4520 * tui/tui-layout.c (extract_display_start_addr)
4521 (show_source_disasm_command, show_data)
4522 (make_source_or_disasm_window)
4523 (show_source_or_disasm_and_command): Update.
4524 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4525 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4526 "gdbarch".
4527 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4528 to tui_source_window_base.
4529 (struct tui_win_info) <detail>: Remove source_info member.
4530 (struct tui_source_window_base) <has_locator>: Inline.
4531 Move contents from tui_source_info; rename has_locator member to
4532 m_has_locator.
4533 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4534 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4535 header file.
4536 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4537 Simplify.
4538 (tui_free_all_source_wins_content): Cast to
4539 tui_source_window_base.
4540
44f0e208
TT
45412019-06-25 Tom Tromey <tom@tromey.com>
4542
4543 * tui/tui-win.c (make_invisible_and_set_new_height)
4544 (make_visible_with_new_height): Call has_locator method.
4545 * tui/tui-layout.c (show_source_disasm_command, show_data)
4546 (show_source_or_disasm_and_command): Update for bool change.
4547 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4548 (tui_win_info) <has_locator>: New method.
4549 (struct tui_source_window_base) <has_locator>: New method.
4550 (tui_win_has_locator): Don't declare.
4551 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4552 from tui_win_has_locator.
4553 (tui_source_window_base): Use false, not FALSE.
4554
7778b912
TT
45552019-06-25 Tom Tromey <tom@tromey.com>
4556
4557 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4558 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4559 clear_detail method directly.
4560 (tui_clear_win_detail): Remove.
4561
f83d391c
TT
45622019-06-25 Tom Tromey <tom@tromey.com>
4563
4564 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4565 "this", not TUI_DISASM_WIN.
4566
13446e05
TT
45672019-06-25 Tom Tromey <tom@tromey.com>
4568
4569 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4570 declare.
4571 * tui/tui-winsource.c
4572 (tui_source_window_base::do_scroll_horizontal): Rename from
4573 tui_horizontal_source_scroll.
4574 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4575 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4576 from tui_vertical_data_scroll.
4577 * tui/tui-win.h (tui_scroll): Don't declare.
4578 * tui/tui-win.c (tui_win_info::forward_scroll)
4579 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4580 (tui_win_info::right_scroll): Rename and update.
4581 (tui_scroll_forward_command, tui_scroll_backward_command)
4582 (tui_scroll_left_command, tui_scroll_right_command): Update.
4583 (tui_scroll): Remove.
4584 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4585 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4586 from tui_vertical_source_scroll.
4587 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4588 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4589 from tui_vertical_disassem_scroll.
4590 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4591 do_scroll_horizontal>: New methods.
4592 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4593 Likewise.
4594 (struct tui_source_window_base): Add do_scroll_horizontal.
4595 (struct tui_source_window, struct tui_disasm_window): Add
4596 do_scroll_vertical.
4597 (struct tui_data_window, struct tui_cmd_window): Add
4598 do_scroll_horizontal and do_scroll_vertical.
4599 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4600
5cf82909
TT
46012019-06-25 Tom Tromey <tom@tromey.com>
4602
4603 * tui/tui-data.h (struct tui_source_window_base): New struct.
4604 (struct tui_source_window): Derive from tui_source_window_base.
4605 (struct tui_disasm_window): New struct.
4606 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4607 from tui_source_window::clear_detail.
4608 (tui_source_window_base): Rename from tui_source_window.
4609 (~tui_source_window_base): Rename from ~tui_source_window.
4610 (tui_alloc_win_info): Create a tui_disasm_window.
4611
ee1d42d6
TT
46122019-06-25 Tom Tromey <tom@tromey.com>
4613
4614 * tui/tui-data.h (struct tui_source_window)
4615 (struct tui_data_window): Declare destructors.
4616 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4617 destructors.
4618 (tui_win_info): Simplify.
4619
b4eb2452
TT
46202019-06-25 Tom Tromey <tom@tromey.com>
4621
4622 * tui/tui-winsource.c (tui_display_main)
4623 (tui_update_source_windows_with_addr)
4624 (tui_update_all_breakpoint_info): Update.
4625 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4626 (new_height_ok, parse_scrolling_args): Update.
4627 * tui/tui-stack.c (tui_show_frame_info): Update.
4628 * tui/tui-data.h (struct tui_list): Remove.
4629 (tui_source_windows): Return a reference to a std::vector.
4630 * tui/tui-data.c (source_windows): Now a std::vector.
4631 (tui_source_windows): Change return type.
4632 (tui_clear_source_windows): Rewrite.
4633 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4634 (tui_free_all_source_wins_content): Rewrite.
4635
8761a91b
TT
46362019-06-25 Tom Tromey <tom@tromey.com>
4637
4638 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4639 (struct tui_data_window, struct tui_cmd_window): Declare
4640 clear_detail method.
4641 * tui/tui-data.c (tui_source_window::clear_detail)
4642 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4643 methods.
4644 (tui_clear_win_detail): Simplify.
4645
0ed69eda
TT
46462019-06-25 Tom Tromey <tom@tromey.com>
4647
4648 * tui/tui-layout.c (make_source_window, make_disasm_window)
4649 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4650 Return the new window.
4651 (show_source_disasm_command, show_data)
4652 (show_source_or_disasm_and_command): Update.
4653
82432e10
TT
46542019-06-25 Tom Tromey <tom@tromey.com>
4655
4656 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4657 parameter. Return the new window.
4658 (show_source_disasm_command): Update and remove NULL check.
4659 (show_source_or_disasm_and_command): Update.
4660
ec328aa5
TT
46612019-06-25 Tom Tromey <tom@tromey.com>
4662
4663 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4664
33b906ab
TT
46652019-06-25 Tom Tromey <tom@tromey.com>
4666
4667 * tui/tui-data.h (struct tui_win_info): Make constructor
4668 protected. Make destructor virtual. Add initializers.
4669 (tui_source_window, tui_data_window, tui_cmd_window): New
4670 classes.
4671 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4672 constructor. Add "type" parameter.
4673 (tui_source_window, tui_data_window, tui_cmd_window): New
4674 constructors.
4675 (tui_alloc_win_info): Instantiate the appropriate subclass.
4676
e7e11af4
TT
46772019-06-25 Tom Tromey <tom@tromey.com>
4678
4679 * tui/tui-win.c (tui_resize_all): Use delete.
4680 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4681 destructor.
4682 (tui_free_window): Don't declare.
4683 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4684 Update.
4685
6792b55e
TT
46862019-06-25 Tom Tromey <tom@tromey.com>
4687
4688 * tui/tui-data.h (struct tui_win_info): Add constructor.
4689 * tui/tui-data.c (tui_alloc_win_info): Use new.
4690 (tui_free_window): Use delete.
4691
f95675e1
TT
46922019-06-22 Tom Tromey <tom@tromey.com>
4693
4694 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4695 declare.
4696 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4697
5bff081c
TT
46982019-06-22 Tom Tromey <tom@tromey.com>
4699
4700 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4701 declare.
4702 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4703
47e3f474
TV
47042019-06-22 Tom de Vries <tdevries@suse.de>
4705
4706 * dwarf2read.c (create_addrmap_from_aranges)
4707 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4708 instead of '%zu'.
4709
fd5866f6
SM
47102019-06-21 Simon Marchi <simon.marchi@efficios.com>
4711
4712 * dwarf2read.h (dwarf2_section_info_def): Remove.
4713 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4714 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4715 std::vector<dwarf2_section_info>.
4716 (struct dwo_file) <~dwo_file>: Remove.
4717 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4718 types field.
4719 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4720 (dwarf2_read_debug_names): Likewise.
4721 (create_debug_types_hash_table): Change parameter type to
4722 array_view, adjust code accordingly.
4723 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4724 (partial_die_info::fixup): Likewise.
4725 (determine_prefix): Likewise.
4726 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4727
fb1eb2f9
SM
47282019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4729
4730 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4731 gdb_bfd_ref_ptr.
4732 <~dwo_file>: Remove call to gdb_bfd_unref.
4733 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4734 gdb_bfd_ref_ptr::get.
4735
51ac9db5
SM
47362019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4737
4738 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4739 type to htab_up.
4740 * dwarf2read.c (struct dwo_file): Initialize fields.
4741 <~dwo_file>: New.
4742 (free_dwo_file): Remove, move content to ~dwo_file.
4743 (struct dwo_file_deleter): Remove.
4744 (dwo_file_up>: Remove custom deleter.
4745 (free_dwo_files): Remove.
4746 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4747 dwo_files.
4748 (process_skeletonless_type_units): Call unique_ptr::get.
4749 (allocate_dwo_file_hash_table): Add deleter to created hash
4750 table. Change return type to htab_up.
4751 (lookup_dwo_file_slot): Don't memset dwo_file, call
4752 unique_ptr::get.
4753 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4754 (create_dwo_unit_in_dwp_v2): Likewise.
4755 (open_and_init_dwo_file): Likewise.
4756 (free_dwo_file_from_slot): Remove.
4757
dc4ccb6f
SM
47582019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4759
4760 * dwarf2read.h (struct dwarf2_section_info) <readin,
4761 is_virtual>: Change type to bool.
4762 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4763 true instead of 1.
4764
e6a1c5cb
TT
47652019-06-19 Tom Tromey <tom@tromey.com>
4766
4767 * tui/tui-data.h (tui_init_content_element): Don't declare.
4768
6f6ffbeb
TT
47692019-06-19 Tom Tromey <tom@tromey.com>
4770
4771 * tui/tui-data.h (tui_init_win_info): Don't declare.
4772
f23f598e
TV
47732019-06-19 Tom de Vries <tdevries@suse.de>
4774
4775 * dwarf2read.h (abstract_to_concrete): Change type to
4776 std::unordered_map<sect_offset, std::vector<sect_offset>,
4777 gdb::hash_enum<sect_offset>>.
4778
680e1bee
TT
47792019-06-19 Tom Tromey <tromey@adacore.com>
4780
4781 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4782 EVAL_AVOID_SIDE_EFFECTS specially.
4783
dcf37923
TT
47842019-06-19 Tom Tromey <tromey@adacore.com>
4785
4786 * source-cache.c (highlighter): New global.
4787 (source_cache::get_source_lines): Create a highlighter on demand.
4788
494986d5
AB
47892019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4790
4791 * defs.h (deprecated_interactive_hook): Delete declaration.
4792 * interps.c (clear_interpreter_hooks): Remove use of
4793 deprecated_interactive_hook.
4794 * top.c (deprecated_interactive_hook): Delete definition.
4795 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4796
3360b6e7
TV
47972019-06-18 Tom de Vries <tdevries@suse.de>
4798
4799 PR gdb/24515
4800 * dwarf2read.h (abstract_to_concrete): Change type from
4801 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4802 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4803 * dwarf2read.c (read_variable): Update.
4804 (dwarf2_fetch_die_loc_sect_off): Update.
4805
310b3441
TV
48062019-06-17 Tom de Vries <tdevries@suse.de>
4807
4808 PR gdb/24617
4809 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4810 accessing parent[parent_len - 1].
4811
ba9777be
PP
48122019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4813
4814 PR gdb/24364
4815 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4816 call dtrace_process_dof with NULL dof.
4817
2b9f6e89
TV
48182019-06-16 Tom de Vries <tdevries@suse.de>
4819
4820 PR gdb/24445
4821 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4822
431b3ead
TT
48232019-06-16 Tom Tromey <tom@tromey.com>
4824
4825 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4826 (make_all_visible): Use address of member.
4827
d04b44a1
TT
48282019-06-16 Tom Tromey <tom@tromey.com>
4829
4830 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4831 (tui_free_window, free_content, free_content_elements): Remove
4832 unnecessary cast.
4833 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4834 cast.
4835 * tui/tui-regs.c (tui_show_register_group)
4836 (tui_display_registers_from, tui_display_reg_element_at_line):
4837 Remove unnecessary cast.
4838
bf5142e7
AB
48392019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4840
4841 * linux-nat.c (normal_mask): Delete.
4842 (_initialize_linux_nat): Don't initialise normal_mask.
4843
c4973306
SM
48442019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4845
4846 PR gdb/24445
4847 * dwarf-index-write.h (write_psymtabs_to_index): Add
4848 dwz_basename parameter.
4849 * dwarf-index-write.c (write_gdbindex): Move file writing to
4850 write_gdbindex_1. Change return type void.
4851 (assert_file_size): Move up, remove filename parameter.
4852 (write_gdbindex_1): New function.
4853 (write_debug_names): Change return type to void, call
4854 assert_file_size.
4855 (struct index_wip_file): New struct.
4856 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4857 file logic to index_wip_file. Write index for dwz file if
4858 needed.
4859 (save_gdb_index_command): Pass basename of dwz file, if present.
4860 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4861 build-id of dwz file, if present.
4862 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4863 (dwarf2_get_dwz_file): Likewise.
4864 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4865 (dwarf2_get_dwz_file): Likewise.
4866
395f9c91
TT
48672019-06-16 Tom Tromey <tom@tromey.com>
4868
4869 * coffread.c (process_coff_symbol): Use xstrdup.
4870 * value.c (create_internalvar): Use xstrdup.
4871
cafb3438
TT
48722019-06-16 Tom Tromey <tom@tromey.com>
4873
4874 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4875 * breakpoint.c (stopin_command, stopat_command)
4876 (until_break_command, decode_location_default): Remove unnecessary
4877 cast.
4878 * utils.c (subset_compare): Remove unnecessary cast.
4879 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4880 cast.
4881 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4882 cast.
4883 * infcmd.c (path_command): Remove unnecessary cast.
4884 * coffread.c (decode_type): Remove unnecessary cast.
4885 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4886 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4887 * tui/tui-stack.c (tui_show_locator_content)
4888 (tui_show_frame_info): Remove unnecessary cast.
4889 * tui/tui-win.c (tui_scroll_forward_command)
4890 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4891 (parse_scrolling_args): Remove unnecessary cast.
4892 * tui/tui-data.c (init_win_info, tui_del_window)
4893 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4894 (free_content_elements): Remove unnecessary cast.
4895 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4896 unnecessary cast.
4897 * tui/tui-source.c (tui_set_source_content)
4898 (tui_vertical_source_scroll): Remove unnecessary cast.
4899 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4900 cast.
4901 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4902 * tui/tui-regs.c (tui_display_registers_from)
4903 (tui_display_register): Remove unnecessary cast.
4904 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4905 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4906 (make_visible): Remove unnecessary cast.
4907 * tui/tui-winsource.c (tui_erase_source_content)
4908 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4909 unnecessary cast.
4910 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4911 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4912 * stabsread.c (read_type, read_array_type, read_range_type):
4913 Remove unnecessary cast.
4914 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4915 (parse_symbol, parse_type, upgrade_type, parse_external)
4916 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4917 unnecessary cast.
4918 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4919
730ead81
TT
49202019-06-16 Tom Tromey <tom@tromey.com>
4921
4922 * tui/tui-data.c (tui_alloc_generic_win_info)
4923 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4924 checks.
4925
584a927c
AB
49262019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4927 Andrew Burgess <andrew.burgess@embecosm.com>
4928
4929 * f-typeprint.c (f_print_type): Don't return early for not
4930 associated or not allocated types.
4931 (f_type_print_varspec_suffix): Add print_rank parameter and print
4932 ranks of array types in case they dangling.
4933 (f_type_print_base): Add print_rank parameter.
4934
30056ea0
AB
49352019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4936
4937 * NEWS: Mention new MI commands.
4938 * break-catch-throw.c (enum exception_event_kind): Move to
4939 breakpoint.h.
4940 (print_mention_exception_catchpoint): Output text as a single
4941 message.
4942 (catch_exception_command_1): Rename to...
4943 (catch_exception_event): ...this, make non-static, update header
4944 command, and change some parameter types.
4945 (catch_catch_command): Update for changes to
4946 catch_exception_command_1.
4947 (catch_throw_command): Likewise.
4948 (catch_rethrow_command): Likewise.
4949 * breakpoint.c (enum exception_event_kind): Delete.
4950 * breakpoint.h (enum exception_event_kind): Moved here from
4951 break-catch-throw.c.
4952 (catch_exception_event): Declare.
4953 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4954 (mi_cmd_catch_throw): New function.
4955 (mi_cmd_catch_rethrow): New function.
4956 (mi_cmd_catch_catch): New function.
4957 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4958 'catch-catch' entries.
4959 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4960 (mi_cmd_catch_rethrow): Declare.
4961 (mi_cmd_catch_catch): Declare.
4962
ec8e2b6d
AB
49632019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4964
4965 * annotate.c (annotate_source_line): Change return type to void,
4966 update implementation to match.
4967 * annotate.h (annotate_source_line): Change return type to void,
4968 update header comment.
4969 * stack.c (print_frame_info): Don't change what frame information
4970 is printed based on whether annotations are on or not.
4971
0d3abd8c
AB
49722019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4973
4974 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4975 (annotate_source): Make static.
4976 (annotate_source_line): Moved from source.c and renamed from
4977 identify_source_line. Update the return type.
4978 * annotate.h (annotate_source): Delete declaration.
4979 (annotate_source_line): Declaration moved from source.h, and
4980 renamed from identify_source_line. Return type updated.
4981 * source.c (identify_source_line): Moved to annotate.c and renamed
4982 to annotate_source_line.
4983 (info_line_command): Remove check of annotation_level.
4984 * source.h (identify_source_line): Move declaration to annotate.h
4985 and rename to annotate_source_line.
4986 * stack.c: Add 'annotate.h' include.
4987 (print_frame_info): Remove check of annotation_level before
4988 calling annotate_source_line.
4989
00df30ae
AB
49902019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4991
4992 * source-cache.c (source_cache::get_plain_source_lines): Use
4993 open_source_file_with_line_charpos instead of just
4994 open_source_file, remove call to find_source_lines.
4995 (source_cache::get_source_lines): Likewise.
4996 * source.c (find_source_lines): Make static.
4997 (get_filename_and_charpos): Renamed into...
4998 (open_source_file_with_line_charpos): ..this along with changes to
4999 return a scoped_fd, and some other minor clean ups.
5000 (identify_source_line): Use open_source_file_with_line_charpos.
5001 (search_command_helper): Use open_source_file_with_line_charpos
5002 instead of just open_source_file, remove call to
5003 find_source_lines.
5004 * source.h (open_source_file_with_line_charpos): Declare new
5005 function.
5006 (find_source_lines): Delete declaration.
5007
afda45a2
AB
50082019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5009
5010 * source.c (get_filename_and_charpos): Remove fullname
5011 parameter.
5012 (identify_source_line): Update call to get_filename_and_charpos.
5013
0735b091
TT
50142019-06-14 Tom Tromey <tromey@adacore.com>
5015
5016 PR gdb/24502:
5017 * ui-style.h (skip_ansi_escape): Update comment.
5018 * ui-file.h (class no_terminal_escape_file): New class.
5019 * ui-file.c (no_terminal_escape_file::write)
5020 (no_terminal_escape_file::puts): New methods.
5021 * cli/cli-logging.c (handle_redirections): Use
5022 no_terminal_escape_file.
5023
52ce35e2
TT
50242019-06-14 Tom Tromey <tromey@adacore.com>
5025
5026 * NEWS: Move convenience variable news above Python news.
5027
73cc7272
TT
50282019-06-14 Tom Tromey <tom@tromey.com>
5029
5030 * gnulib: Move directory to top-level.
5031 * configure.ac: Don't configure gnulib.
5032 * configure: Rebuild.
5033 * common/common-defs.h: Use new path to gnulib.
5034 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5035 (GNULIB_H): Remove.
5036 (INCGNU): Look in new gnulib location.
5037 (HFILES_NO_SRCDIR): Remove gnulib files.
5038 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5039 (generated_files): Remove GNULIB_H.
5040 ($(LIBGNU), all-lib): Remove targets.
5041 (distclean): Don't mention GNULIB_BUILDDIR.
5042 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5043
f5686554
TT
50442019-06-14 Tom Tromey <tromey@adacore.com>
5045
5046 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5047 Warn if symbol file does not provide any symbols.
5048
a0c1ffed
TT
50492019-06-14 Tom Tromey <tromey@adacore.com>
5050
5051 * source.c (find_and_open_source): Respect basenames_may_differ.
5052
7c39e397
AB
50532019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5054
5055 * annotate.c (annotate_breakpoints_invalid): Make use of
5056 scoped_restore_terminal_state.
5057 (annotate_frames_invalid): Likewise.
5058
f411722c
TT
50592019-06-14 Tom Tromey <tromey@adacore.com>
5060
5061 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5062 allow assignment to an internalvar.
5063
4268ec18
TT
50642019-06-14 Tom Tromey <tromey@adacore.com>
5065
5066 * ada-lex.l: Allow "_" in attribute names.
5067
abdb711e
TT
50682019-06-14 Tom Tromey <tromey@adacore.com>
5069
5070 PR gdb/24653:
5071 * regcache.c (registers_changed): Don't call alloca.
5072 * top.c (execute_command): Don't call alloca.
5073
4c048731
PA
50742019-06-13 Pedro Alves <palves@redhat.com>
5075
5076 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5077 'expression'. When parsing an expression, error out if there's
5078 junk after "unlimited".
5079 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5080 (do_set_command): Adjust calls to is_unlimited_literal.
5081
66eb1ed3
PA
50822019-06-13 Pedro Alves <palves@redhat.com>
5083
5084 * compile/compile.c (make_compile_options_def_group): Add braces
5085 around array_view initializer.
5086 * thread.c (make_thread_apply_all_options_def_group)
5087 (make_thread_apply_all_options_def_group): Likewise.
5088
3345721a
PA
50892019-06-13 Pedro Alves <palves@redhat.com>
5090
5091 * NEWS (New commands): Mention "maint test-options
5092 require-delimiter", "maint test-options unknown-is-error", "maint
5093 test-options unknown-is-operand" and "maint show
5094 test-options-completion-result".
5095 (New command options, command completion): New section.
5096 (Completion improvements): New section.
5097 Mention that you can abbreviate "unlimited".
5098
6206060d
PA
50992019-06-13 Pedro Alves <palves@redhat.com>
5100
5101 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5102 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5103 * unittests/cli-utils-selftests.c (test_parse_flags)
5104 (test_parse_flags_qcs): Delete.
5105 (test_cli_utils): Don't call deleted functions.
5106
6665660a
PA
51072019-06-13 Pedro Alves <palves@redhat.com>
5108
5109 * thread.c: Include "cli/cli-option.h".
5110 (tp_array_compar_ascending): Global.
5111 (tp_array_compar): Delete function.
5112 (tp_array_compar_ascending, tp_array_compar_descending): New
5113 functions.
5114 (ascending_option_def, qcs_flag_option_def)
5115 (thr_qcs_flags_option_defs)
5116 (make_thread_apply_all_options_def_group)
5117 (make_thread_apply_options_def_group): New.
5118 (thread_apply_all_command): Use gdb::option::process_options.
5119 (thread_apply_command_completer)
5120 (thread_apply_all_command_completer): New.
5121 (thread_apply_command): Use gdb::option::process_options.
5122 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5123 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5124 to generate help text of "thread apply". Adjust "taas"'s help.
5125 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5126 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5127
f7e13587
PA
51282019-06-13 Pedro Alves <palves@redhat.com>
5129
5130 * thread.c (thread_apply_command): Check for invalid TID with
5131 isdigit instead of !isalpha.
5132
5d707134
PA
51332019-06-13 Pedro Alves <palves@redhat.com>
5134
5135 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5136 (validate_flags_qcs): New.
5137 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5138 (validate_flags_qcs): Declare.
5139 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5140 (make_frame_apply_options_def_group): New.
5141 (frame_apply_command_count): Process options with
5142 gdb::option::process_options.
5143 (frame_apply_completer): New.
5144 (frame_apply_level_completer, frame_apply_all_completer)
5145 (frame_apply_completer): New.
5146 (_initialize_stack): Update help of "frame apply", "frame apply
5147 level", "frame apply all" and "faas" to mention supported options
5148 and install command completers.
5149 * stack.h (frame_apply_all_completer): Declare.
5150 * thread.c: Include "stack.h".
5151 (tfaas_command): Add "--".
5152 (_initialize_thread): Update help "tfaas" to mention supported
5153 options and install command completer.
5154
272d4594
PA
51552019-06-13 Pedro Alves <palves@redhat.com>
5156
5157 * completer.c (complete_nested_command_line): New.
5158 (gdb_completion_word_break_characters_throw): Add assertion.
5159 * completer.h (complete_nested_command_line): Declare.
5160
90a1ef87
PA
51612019-06-13 Pedro Alves <palves@redhat.com>
5162
5163 * stack.c (parse_backtrace_qualifiers): New.
5164 (backtrace_command): Use it.
5165 (backtrace_command_completer): Complete on qualifiers.
5166
d4c16835
PA
51672019-06-13 Pedro Alves <palves@redhat.com>
5168
5169 * frame.c: Include "cli/cli-option.h.
5170 (user_set_backtrace_options): New.
5171 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5172 Delete.
5173 (get_prev_frame): Adjust.
5174 (boolean_option_def, uinteger_option_def)
5175 (set_backtrace_option_defs): New.
5176 (_initialize_frame): Adjust and use
5177 gdb::option::add_setshow_cmds_for_options to install "set
5178 backtrace past-main" and "set backtrace past-entry".
5179 * frame.h: Include "cli/cli-option.h".
5180 (struct frame_print_options): Forward declare.
5181 (print_frame_arguments_all, print_frame_arguments_scalars)
5182 (print_frame_arguments_none): Declare.
5183 (print_entry_values): Delete declaration.
5184 (struct frame_print_options, user_frame_print_options): New.
5185 (struct set_backtrace_options): New.
5186 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5187 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5188 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5189 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5190 (list_args_or_locals): Add frame_print_options parameter.
5191 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5192 * python/py-framefilter.c (enumerate_args): Pass down
5193 USER_FRAME_PRINT_OPTIONS.
5194 * stack.c: Include "cli/cli-option.h".
5195 (print_frame_arguments_all, print_frame_arguments_scalars)
5196 (print_frame_arguments_none): Declare.
5197 (print_raw_frame_arguments, print_entry_values): Delete.
5198 (user_frame_print_options): New.
5199 (boolean_option_def, enum_option_def, frame_print_option_defs):
5200 New.
5201 (struct backtrace_cmd_options): New.
5202 (bt_flag_option_def): New.
5203 (backtrace_command_option_defs): New.
5204 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5205 (print_frame_arg, read_frame_arg, print_frame_args)
5206 (print_frame_info, print_frame): Add frame_print_options parameter
5207 and use it.
5208 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5209 (backtrace_command_1): Add frame_print_options and
5210 backtrace_cmd_options parameters and use them.
5211 (make_backtrace_options_def_group): New.
5212 (backtrace_command): Process command options with
5213 gdb::option::process_options.
5214 (backtrace_command_completer): New.
5215 (_initialize_stack): Extend "backtrace"'s help to mention
5216 supported options. Install completer for "backtrace".
5217 Install some settings commands with add_setshow_cmds_for_options.
5218
2daf894e
PA
52192019-06-13 Pedro Alves <palves@redhat.com>
5220
5221 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5222 and that "set/show print raw frame-arguments" are now deprecated.
5223
5224 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5225 command.
5226 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5227 * stack.c (_initialize_stack): Install "set/show print
5228 raw-frame-arguments", and deprecate "set/show print raw
5229 frame-arguments".
5230 * valprint.c (_initialize_valprint): Deprecate "set/show print
5231 raw".
5232
e6ed716c
PA
52332019-06-13 Pedro Alves <palves@redhat.com>
5234
5235 * compile/compile.c (struct compile_options): New.
5236 (compile_flag_option_def, compile_command_option_defs)
5237 (make_compile_options_def_group): New.
5238 (compile_file_command): Handle options with
5239 gdb::option::process_options.
5240 (compile_file_command_completer): New function.
5241 (compile_code_command): Handle options with
5242 gdb::option::process_options.
5243 (compile_code_command_completer): New function.
5244 (_initialize_compiler): Install completers for "compile code" and
5245 "compile file". Mention available options in "compile code" and
5246 "compile code"'s help.
5247 * completer.c (advance_to_completion_word): New, factored out from
5248 ...
5249 (advance_to_expression_complete_word_point): ... this.
5250 (advance_to_filename_complete_word_point): New.
5251 * completer.h (advance_to_filename_complete_word_point): New
5252 declaration.
5253
7d8062de
PA
52542019-06-13 Pedro Alves <palves@redhat.com>
5255
5256 * compile/compile.c: Include "cli/cli-option.h".
5257 (compile_print_value): Scope data pointer is now a
5258 value_print_options pointer; adjust.
5259 (compile_print_command): Process options. Scope data pointer is
5260 now a value_print_options pointer; adjust.
5261 (_initialize_compile): Update "compile print"'s help to include
5262 supported options. Install a completer for "compile print".
5263 * cp-valprint.c (show_vtblprint, show_objectprint)
5264 (show_static_field_print): Delete.
5265 (_initialize_cp_valprint): Don't install "set print
5266 static-members", "set print vtbl", "set print object" here.
5267 * printcmd.c: Include "cli/cli-option.h" and
5268 "common/gdb_optional.h".
5269 (print_command_parse_format): Rework to fill in a
5270 value_print_options instead of a format_data.
5271 (print_value): Change parameter type from format_data pointer to
5272 value_print_options reference. Adjust.
5273 (print_command_1): Process options. Adjust to pass down a
5274 value_print_options.
5275 (print_command_completer): New.
5276 (_initialize_printcmd): Install print_command_completer as
5277 handle_brkchars completer for the "print" command. Update
5278 "print"'s help to include supported options.
5279 * valprint.c: Include "cli/cli-option.h".
5280 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5281 here from cp-valprint.c.
5282 (boolean_option_def, uinteger_option_def)
5283 (value_print_option_defs, make_value_print_options_def_group):
5284 New. Use gdb::option::add_setshow_cmds_for_options to install
5285 "set print elements", "set print null-stop", "set print repeats",
5286 "set print pretty", "set print union", "set print array", "set
5287 print address", "set print symbol", "set print array-indexes".
5288 * valprint.h: Include <string> and "cli/cli-option.h".
5289 (make_value_print_options_def_group): Declare.
5290 (print_value): Change parameter type from format_data pointer to
5291 value_print_options reference.
5292 (print_command_completer): Declare.
5293
9d0faba9
PA
52942019-06-13 Pedro Alves <palves@redhat.com>
5295
5296 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5297 (COMMON_SFILES): Add maint-test-settings.c.
5298 * cli/cli-decode.c (boolean_enums): New global, factored out from
5299 ...
5300 (add_setshow_boolean_cmd): ... here.
5301 * cli/cli-decode.h (boolean_enums): Declare.
5302 * cli/cli-option.c: New file.
5303 * cli/cli-option.h: New file.
5304 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5305 factored out from ...
5306 (parse_cli_boolean_value(const char *)): ... this.
5307 (is_unlimited_literal): Change parameter type to pointer to
5308 pointer. Adjust and advance ARG pointer.
5309 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5310 (parse_cli_var_enum): New, factored out from ...
5311 (do_set_command): ... this. Adjust.
5312 * cli/cli-setshow.h (parse_cli_boolean_value)
5313 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5314 (parse_cli_var_enum): Declare.
5315 * cli/cli-utils.c: Include "cli/cli-option.h".
5316 (get_ulongest): New.
5317 * cli/cli-utils.h (get_ulongest): Declare.
5318 (check_for_argument): New overloads.
5319 * maint-test-options.c: New file.
5320
2c722807
PA
53212019-06-13 Pedro Alves <palves@redhat.com>
5322
5323 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5324 parse a range if "-" is at the end of the string.
5325
dee7b4c8
PA
53262019-06-13 Pedro Alves <palves@redhat.com>
5327
5328 * cli/cli-setshow.c (parse_auto_binary_operation)
5329 (parse_cli_boolean_value): Don't allow "o".
5330
dca0f6c0
PA
53312019-06-13 Pedro Alves <palves@redhat.com>
5332
5333 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5334 * NEWS: Mention maint test-settings KIND.
5335 * maint-test-settings.c: New file.
5336
597bf39d
PA
53372019-06-13 Pedro Alves <palves@redhat.com>
5338
5339 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5340 completer.
5341 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5342 "set" completers.
5343
48c410fb
PA
53442019-06-13 Pedro Alves <palves@redhat.com>
5345
5346 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5347 after item.
5348
93bcb043
PA
53492019-06-13 Pedro Alves <palves@redhat.com>
5350
5351 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5352
cbba3ecd
PA
53532019-06-13 Pedro Alves <palves@redhat.com>
5354
5355 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5356 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5357 call.
5358 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5359 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5360 calls.
5361 (check_for_argument): Skip spaces after argument.
5362
b9a3f842
PA
53632019-06-13 Pedro Alves <palves@redhat.com>
5364
5365 * thread.c (thread_apply_command): Adjust TID parsing.
5366 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5367 detected before end of string.
5368 (tid_is_in_list): Error out if LIST is invalid.
5369
3844e605
PA
53702019-06-13 Pedro Alves <palves@redhat.com>
5371
5372 * completer.c (complete_line_internal_1): Rewind completion word
5373 point.
5374 (completion_tracker::advance_custom_word_point_by): Change
5375 parameter type to int.
5376 * completer.h (completion_tracker::advance_custom_word_point_by):
5377 Likewise.
5378
00b56dbe
PA
53792019-06-13 Pedro Alves <palves@redhat.com>
5380
5381 * completer.c (advance_to_completion_word): Handle delimiters.
5382
d106773e
PA
53832019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5384
5385 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5386
08f10e02
TT
53872019-06-11 Tom Tromey <tom@tromey.com>
5388
5389 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5390 (xmalloc_failed): Move to alloc.c.
5391 * alloc.c: New file.
5392 * Makefile.in (COMMON_SFILES): Add alloc.c.
5393
1c7fe951
TT
53942019-06-11 Tom Tromey <tom@tromey.com>
5395
5396 * nat/linux-waitpid.c: Don't include server.h.
5397 (linux_debug): Remove.
5398 (my_waitpid): Update.
5399
89549d7f
TT
54002019-06-11 Tom Tromey <tromey@adacore.com>
5401
5402 * infcall.c (_initialize_infcall): Remove trailing newline from
5403 help.
5404 * user-regs.c (_initialize_user_regs): Remove trailing newline
5405 from help.
5406 * typeprint.c (_initialize_typeprint): Remove trailing newline
5407 from help.
5408 * reverse.c (_initialize_reverse): Remove trailing newlines from
5409 help.
5410 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5411 from help.
5412 * language.c (add_set_language_command): Remove trailing newline
5413 from help.
5414 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5415 help.
5416 * disasm.c (_initialize_disasm): Remove trailing newline from
5417 help.
5418 * top.c (init_main): Remove trailing newline from help.
5419 * interps.c (_initialize_interpreter): Remove trailing newline
5420 from help.
5421 * btrace.c (_initialize_btrace): Remove trailing newlines from
5422 help.
5423 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5424 from help.
5425 * python/python.c (_initialize_python): Remove trailing newline
5426 from help.
5427 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5428 help.
5429 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5430 from help. Reformat some text.
5431 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5432 from help.
5433 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5434 newline from help.
5435
86108c13
TT
54362019-06-11 Tom Tromey <tromey@adacore.com>
5437
5438 * darwin-nat.c (darwin_decode_exception_message)
5439 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5440
a7067863
AB
54412019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5442
5443 * valops.c (value_slice): Check for not allocated or not
5444 associated values.
5445
9ab08412
TV
54462019-06-10 Tom de Vries <tdevries@suse.de>
5447
5448 PR gdb/24618
5449 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5450 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5451 invalid.
5452
f19e22e9
TV
54532019-06-10 Tom de Vries <tdevries@suse.de>
5454
5455 PR gdb/24611
5456 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5457 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5458
e99f9db0
TV
54592019-06-10 Tom de Vries <tdevries@suse.de>
5460
5461 PR symtab/24545
5462 * symtab.c (struct demangled_name_entry): Add language field.
5463 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5464 static minimal symbol". Set and use language field.
5465
9bf7038b
TT
54662019-06-10 Tom Tromey <tromey@adacore.com>
5467
5468 * ada-lang.c (_initialize_ada_language): Update help text.
5469
422186a9
TT
54702019-06-10 Tom Tromey <tromey@adacore.com>
5471
5472 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5473 with a newline.
5474 * guile/guile.c (handle_boot_error): Don't end warning with a
5475 newline.
5476 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5477 warning with a newline.
5478 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5479 newline.
5480 (s12z_frame_cache): Likewise.
5481 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5482 a newline.
5483 * solib-svr4.c (disable_probes_interface): Don't end warning with
5484 a newline.
5485 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5486 newline.
5487 * python/python.c (do_finish_initialization): Don't end warning
5488 with a newline.
5489
25ce02ee
TT
54902019-06-10 Tom Tromey <tom@tromey.com>
5491
5492 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5493 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5494 gdbpy_enter.
5495
caa429d8
TT
54962019-06-10 Tom Tromey <tromey@adacore.com>
5497
5498 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5499 data.
5500 (elf_new_init): Don't call stabsread_new_init.
5501 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5502 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5503 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5504
81873cc8
TV
55052019-06-10 Tom de Vries <tdevries@suse.de>
5506
5507 PR symtab/16264
5508 PR symtab/24517
5509 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5510
4fa0265e
РИ
55112019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5512
5513 * source.c (find_and_open_source): Also rewrite relative file
5514 names.
5515
1a3da2cd
AB
55162019-04-26 Amos Bird <amosbird@gmail.com>
5517
5518 * annotate.c (annotate_thread_exited): Add "thread-exited"
5519 annotation.
5520
3847a7bf
TT
55212019-06-06 Tom Tromey <tromey@adacore.com>
5522
5523 * maint.h (class scoped_command_stats): Use
5524 DISABLE_COPY_AND_ASSIGN.
5525 <print_time>: New method.
5526 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5527 print_time.
5528 (scoped_command_stats::print_time): New method.
5529
312617a3
AB
55302019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5531
5532 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5533 instructions of lengths 6 or 8 bytes.
5534
b02f78f9
PA
55352019-06-04 Pedro Alves <palves@redhat.com>
5536
5537 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5538
5539 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5540 * breakpoint.c (condition_completer): Likewise.
5541 * cli/cli-dump.c (scan_expression): Likewise.
5542 * common/filestuff.c (mkdir_recursive): Likewise.
5543 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5544 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5545 (gdb_abspath): Likewise.
5546 * compile/compile-cplus-types.c
5547 (compile_cplus_instance::decl_name): Likewise.
5548 * completer.c (complete_explicit_location):
5549 (signal_completer, reg_or_group_completer_1): Likewise.
5550 * cp-support.c (cp_remove_params_if_any): Likewise.
5551 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5552 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5553 * infcmd.c (strip_bg_char): Likewise.
5554 * linespec.c (copy_token_string): Likewise.
5555 * mi/mi-main.c (output_cores): Likewise.
5556 * psymtab.c (psymtab_search_name):
5557 * symfile.c (test_set_ext_lang_command): Likewise.
5558 * target.c (target_fileio_read_stralloc): Likewise.
5559 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5560 * value.c (complete_internalvar): Likewise.
5561
e1f2e1a2
CB
55622019-06-04 Christian Biesinger <cbiesinger@google.com>
5563
5564 Add objfile property to gdb.Type.
d3238f7d
PA
5565 * NEWS: Mention Python API addition.
5566 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 5567
e664d728
PW
55682019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5569
5570 * NEWS: Mention the new set|show style [title|highlight].
5571 Mention changes to "show style", "help" and "apropos".
5572
66d8c862
PW
55732019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5574
5575 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5576 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5577 instead of print_help_for_command.
5578 (print_doc_of_command): New function.
5579 (help_list): Add 'apropos -v word' suggestion.
5580 (print_help_for_command): Style the command name using title style.
5581 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5582 (_initialize_cli_cmds): Describe -v in apropos_command help.
5583
9303eb2f
PW
55842019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5585
5586 * cli/cli-style.h (cli_style_option): Add name in constructor,
5587 add m_name class member, add constructor with intensity,
5588 add name class function.
5589 (cli_style_option::add_setshow_commands): Remove name argument.
5590 (highlight_style, title_style): New styles.
5591 * cli/cli-style.c (do_show): New function that shows a style
5592 characteristic styling the style name with itself.
5593 (set_style_name): New function.
5594 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5595 Update all callers according to the changes in cli/cli-style.h.
5596 * utils.h (fputs_highlighted): New function.
5597 * utils.c (fputs_highlighted): Likewise.
5598
e2c52041
PW
55992019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5600
5601 * NEWS: Mention new pipe command and new convenience variables.
5602
947d3946
PW
56032019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5604
5605 * cli/cli-cmds.c (pipe_command): New function.
5606 (_initialize_cli_cmds): Call add_com for pipe_command.
5607 Define | as an alias for pipe.
5608 (exit_status_set_internal_vars): New function.
5609 (shell_escape): Call exit_status_set_internal_vars.
5610 cli/cli-decode.c (find_command_name_length): Recognize | as
5611 a single character command.
5612
b8fd0918
PW
56132019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5614
5615 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5616 top.c (execute_command_to_ui_file): New function, mostly a copy
5617 of execute_command_to_string.
5618 (execute_command_to_string): Implement by calling
5619 execute_command_to_ui_file.
5620
68bb5386
PW
56212019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5622
5623 * top.h (saved_command_line): Remove declaration.
5624 * top.c (previous_saved_command_line, previous_repeat_arguments):
5625 New variables.
5626 (saved_command_line): Make static, define together with other
5627 'repeat variables'.
5628 (dont_repeat): Clear repeat_arguments.
5629 (repeat_previous, get_saved_command_line, save_command_line):
5630 New functions.
5631 (gdb_init): Initialize saved_command_line
5632 and previous_saved_command_line.
5633 * main.c (captured_main_1): Remove saved_command_line initialization.
5634 * event-top.c (handle_line_of_input): Update to use
5635 the new 'repeat' related functions instead of direct access to
5636 saved_command_line.
5637 * command.h (repeat_previous, get_saved_command_line,
5638 save_command_line): New declarations.
5639 (dont_repeat): Add comment.
5640
bfcdb852
TT
56412019-05-30 Tom Tromey <tromey@adacore.com>
5642
5643 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5644 Fix comment.
5645 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5646
0ef209f2
JV
56472019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5648
5649 PR cli/24587
5650 * completer.c (complete): Initialize variable word.
5651
955b06fa
SDJ
56522019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5653
5654 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5655 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5656 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5657 'body' is NULL to the outter 'if', protecting the '!is_define'
5658 situation as well.
5659
fa9c3fa0
TT
56602019-05-29 Tom Tromey <tromey@adacore.com>
5661
5662 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5663 (dwarf_unknown): New function.
5664 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5665 (dwarf_type_encoding_name): Use dwarf_unknown.
5666
4330d61d
TT
56672019-05-29 Tom Tromey <tromey@adacore.com>
5668
5669 PR c++/20020:
5670 * cp-valprint.c (cp_print_value_fields): Call
5671 cp_print_static_field inside "try".
5672
33a6bc35
TT
56732019-05-29 Tom Tromey <tromey@adacore.com>
5674
5675 * inflow.c (struct terminal_info): Add default operator=.
5676 * configure: Rebuild.
5677 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5678 -Wdeprecated-copy-dtor, -Wredundant-move.
5679
000439d5
TT
56802019-05-29 Tom Tromey <tromey@adacore.com>
5681
5682 * NEWS: Add entry.
5683 * infcmd.c (print_return_value_1): Handle finish_print
5684 option.
5685 (show_print_finish): New function.
5686 (_initialize_infcmd): Add "set/show print finish" commands.
5687 * valprint.c (user_print_options): Initialize new member.
5688 * valprint.h (struct value_print_options) <finish_print>: New
5689 member.
5690
c0e70c62
TT
56912019-05-28 Tom Tromey <tromey@adacore.com>
5692
5693 * ada-lang.c (ada_remove_Xbn_suffix)
5694 (find_old_style_renaming_symbol)
5695 (parse_old_style_renaming): Remove.
5696 (ada_find_renaming_symbol): Don't call
5697 find_old_style_renaming_symbol.
5698 (ada_is_renaming_symbol): Rename from
5699 ada_find_renaming_symbol. Remove "block" parameter. Return
5700 bool. Now static.
5701 (ada_read_var_value): Update and simplify.
5702 * ada-exp.y (write_var_or_type): Remove old code.
5703
766f8836
AH
57042019-05-28 Alan Hayward <alan.hayward@arm.com>
5705
5706 * event-top.c: Remove include comment.
5707 * inflow.c (class scoped_ignore_sigttou): Move from here...
5708 * inflow.h (class scoped_ignore_sigttou): ...to here.
5709 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5710 * top.c: Remove include comment.
5711
eb41253a
TT
57122019-05-27 Tom Tromey <tom@tromey.com>
5713
5714 * NEWS: Fix typo.
5715
4ca51187
TT
57162019-05-22 Tom Tromey <tromey@adacore.com>
5717
5718 * target.c (target_follow_exec): Constify parameter.
5719 * target-delegates.c: Rebuild.
5720 * remote.c (remote_target::follow_exec): Constify parameter.
5721 * infrun.c (follow_exec): Constify parameter.
5722 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5723 (target_follow_exec): Likewise.
5724
8fca4da0
AH
57252019-05-22 Alan Hayward <alan.hayward@arm.com>
5726
5727 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5728 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5729
b7060614
AH
57302019-05-22 Alan Hayward <alan.hayward@arm.com>
5731
5732 * NEWS: Add debugredirect and testsuite sections.
5733
0a5954bd
SC
57342019-05-22 Simon Cook <simon.cook@embecosm.com>
5735
5736 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5737 target descriptions using exclusively floating point register name
5738 aliases.
5739
dc42e902
AB
57402019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5741
5742 PR gdb/18644:
5743 * f-lang.c (build_fortran_types): Handle the case where
5744 gdbarch_floatformat_for_type returns a nullptr.
5745
fb7806c7
TV
57462019-05-21 Tom de Vries <tdevries@suse.de>
5747
5748 PR cli/24587
5749 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5750
34d11c68
AB
57512019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5752
5753 PR gdb/18644:
5754 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5755 16-byte floats.
5756 * i386-tdep.c (i386_floatformat_for_type): Use
5757 floatformats_ia64_quad for the 16-byte floating point component
5758 within a fortran 32-byte complex number.
5759
122cf0f2
AB
57602019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5761
5762 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5763 delete default constructor.
5764 (find_partial_die): Update to return const struct.
5765 (partial_die_parent_scope): Move variable declaration into scope
5766 of its use and change its type to auto.
5767 (guess_partial_die_structure_name): Likewise.
5768 (partial_die_info::fixup): Likewise.
5769
33d0e35a
TT
57702019-05-17 Tom Tromey <tromey@adacore.com>
5771
5772 * source.c (find_and_open_source): Remove cast.
5773
a45575b0
TT
57742019-05-17 Tom Tromey <tromey@adacore.com>
5775
5776 * annotate.c (annotate_source): Make "filename" const.
5777 * annotate.h (annotate_source): Use const.
5778
81f47ac2
AH
57792019-05-17 Alan Hayward <alan.hayward@arm.com>
5780
5781 * disasm.c (set_disassembler_options): Send errors to stderr.
5782
ca1285d1
AH
57832019-05-17 Alan Hayward <alan.hayward@arm.com>
5784
5785 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5786 (cli_interp_base::set_logging): Check debug_redirect.
5787 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5788 * cli/cli-logging.c (debug_redirect): Add static variable.
5789 (pop_output_files): Add default param.
5790 (handle_redirections): Print debug setting.
5791 (show_logging_command): Likewise.
5792 (_initialize_cli_logging): Add debugredirect command.
5793 * interps.c (current_interp_set_logging): Add debug_redirect
5794 parameter.
5795 * interps.h (set_logging): Add debug_redirect parameter.
5796 (current_interp_set_logging): Likewise.
5797 * mi/mi-common.h: Likewise.
5798 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5799
58002019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
5801 Tom Tromey <tromey@adacore.com>
5802
5803 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5804 directly.
5805 * cli/cli-interp.h (make_logging_output): Remove declaration.
5806 * cli/cli-logging.c (make_logging_output): Remove function.
5807 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5808 directly.
5809 * ui-file.c (tee_file::tee_file): Remove bools.
5810 (tee_file::~tee_file): Remove deletes.
5811 * ui-file.h (tee_file): Remove bools.
5812
26648588
JV
58132019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5814
5815 * mi/mi-cmds.h (mi_cmd_complete): New function.
5816 * mi/mi-main.c (mi_cmd_complete): Likewise.
5817 * mi/mi-cmds.c: Define new MI command -complete.
5818 * NEWS: Mention new -complete command.
5819
6e035501
JV
58202019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5821
5822 * completer.h (complete): New function.
5823 * completer.c (complete): Likewise.
5824 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5825 function defined in completer.h.
5826
7d0e2ece
JV
58272019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5828
e79be6e5 5829 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 5830
fb816e8b
TV
58312019-05-17 Tom de Vries <tdevries@suse.de>
5832
5833 PR gdb/24094
5834 * dwarf2read.c (struct cu_partial_die_info): New struct.
5835 (find_partial_die): Return cu_partial_die_info.
5836 (partial_die_parent_scope, guess_partial_die_structure_name)
5837 (partial_die_info::fixup): Handle new return type of find_partial_die.
5838
677052f2
SDJ
58392019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5840
a1726c38 5841 PR breakpoints/24541
677052f2
SDJ
5842 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5843 "std::string", simplifying the algorithm.
5844
f3da9116
SDJ
58452019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5846
5847 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5848 (stap_static_probe_ops::get_probes): Likewise.
5849
f1bb75ab
SDJ
58502019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5851
5852 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5853 '-')" and "else if".
5854 (stap_parse_single_operand): Join checks for
5855 "gdbarch_stap_parse_special_token_p" and
5856 "gdbarch_stap_parse_special_token" in the same "if" statement.
5857 Invert check when verifying for operation on register
5858 displacement.
5859
3ca58cde
SDJ
58602019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5861
5862 * stap-probe.c (stap_get_opcode): Update comment.
5863 (stap_get_expected_argument_type): Likewise.
5864 (handle_stap_probe): Likewise.
5865
af2d9bee
SDJ
58662019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5867
5868 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5869 return type to 'bool'. Adjust comment. Use 'bool' when
5870 appropriate.
5871 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5872 * stap-probe.c (stap_parse_argument_1): Likewise.
5873 (stap_is_operator): Likewise.
5874 (stap_is_generic_prefix): Likewise.
5875 (stap_is_register_prefix): Likewise.
5876 (stap_is_register_indirection_prefix): Likewise.
5877 (stap_is_integer_prefix): Likewise.
5878 (stap_generic_check_suffix): Likewise.
5879 (stap_check_integer_suffix): Likewise.
5880 (stap_check_register_suffix): Likewise.
5881 (stap_check_register_indirection_suffix): Likewise.
5882 (stap_parse_register_operand): Likewise.
5883 (stap_parse_single_operand): Likewise.
5884 (stap_parse_argument_1): Likewise.
5885 (stap_probe::get_argument_count): Likewise.
5886 (stap_is_operator): Likewise.
5887
61c9c421
TT
58882019-05-16 Tom Tromey <tromey@adacore.com>
5889
5890 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5891 keyword to foreach.
5892
9ddc1af1
SM
58932019-05-15 Simon Marchi <simon.marchi@efficios.com>
5894
5895 * linux-thread-db.c (try_thread_db_load_1): Change return type
5896 to bool.
5897 (try_thread_db_load): Likewise.
5898 (try_thread_db_load_from_pdir_1): Likewise.
5899 (try_thread_db_load_from_pdir): Likewise.
5900 (try_thread_db_load_from_sdir): Likewise.
5901 (try_thread_db_load_from_dir): Likewise.
5902 (thread_db_load_search): Likewise.
5903 (has_libpthread): Likewise.
5904 (thread_db_load): Likewise.
5905
7bede828
SDJ
59062019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5907
5908 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5909 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5910 NULL, and complain/return if that's the case.
5911
c5358db4
JD
59122019-05-15 John Darrington <john@darrington.wattle.id.au>
5913
5914 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5915 (advance, posn, abstract_read_memory): New functions.
5916 [struct mem_read_abstraction]: New struct.
5917 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5918
c408a94f
TT
59192019-05-14 Tom Tromey <tromey@adacore.com>
5920
5921 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5922 value is not lval_memory.
5923
e7bd7fba
TT
59242019-05-14 Tom Tromey <tromey@adacore.com>
5925
5926 * solib.c (info_sharedlibrary_command): Style the file name.
5927
a6d0f249
AH
59282019-05-14 Alan Hayward <alan.hayward@arm.com>
5929
5930 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5931 (aarch64_vnv_type): Likewise.
5932 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5933 * common/tdesc.c: Likewise.
5934 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5935 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5936 * features/aarch64-fpu.xml: Add ieee half view.
5937 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5938 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5939 * gdbtypes.h (struct builtin_type): Likewise.
5940 (struct objfile_type): Likewise.
5941
66b8bb74
SM
59422019-05-12 Paul Naert <paul.naert@polymtl.ca>
5943
5944 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5945 typo.
5946 * location.h (string_to_event_location): Likewise.
5947
21c219fd
JB
59482019-05-11 Joel Brobecker <brobecker@adacore.com>
5949
5950 GDB 8.3 released.
5951
13674803
SM
59522019-05-10 Simon Marchi <simon.marchi@efficios.com>
5953
5954 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5955 New variable declaration.
5956 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5957 New variable.
5958 (print_one_breakpoint): Use ui_out::test_flags and new global
5959 variable to compute use_fixed_output.
5960 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5961 Remove.
5962 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5963 (mi_multi_location_breakpoint_output_fixed): Remove.
5964 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5965 new variable.
5966 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5967 fix_multi_location_breakpoint_output flag if version >= 3.
5968 * ui-out.h (enum ui_out_flag)
5969 <fix_multi_location_breakpoint_output>: New enumerator.
5970
a9eac7f9
SM
59712019-05-10 Simon Marchi <simon.marchi@efficios.com>
5972
5973 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5974
71bed2db
TT
59752019-05-10 Tom Tromey <tromey@adacore.com>
5976
5977 * ada-lang.c (catch_ada_completer): New function.
5978 (_initialize_ada_language): Use it.
5979
24c54127
TT
59802019-05-10 Tom Tromey <tromey@adacore.com>
5981
5982 * thread.c (print_thread_info): Make "requested_threads" const.
5983 * gdbthread.h (print_thread_info): Make "requested_threads"
5984 const.
5985 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5986 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5987
7a102139
TT
59882019-05-08 Tom Tromey <tom@tromey.com>
5989
5990 * gdbtypes.c (objfile_type_data): Change type.
5991 (objfile_type, _initialize_gdbtypes): Update.
5992
924d79e2
TT
59932019-05-08 Tom Tromey <tom@tromey.com>
5994
5995 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5996 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5997 (_initialize_dwarf2_frame): Update.
5998
4c58e337
TT
59992019-05-08 Tom Tromey <tom@tromey.com>
6000
6001 * objc-lang.c (objc_objfile_data): Change type.
6002 (find_methods): Update.
6003 (_initialize_objc_lang): Remove.
6004
d772d2ab
TT
60052019-05-08 Tom Tromey <tom@tromey.com>
6006
6007 * stabsread.c (rs6000_builtin_type_data): Change type.
6008 (rs6000_builtin_type, _initialize_stabsread): Update.
6009
d11d83f4
TT
60102019-05-08 Tom Tromey <tom@tromey.com>
6011
6012 * mips-tdep.c (mips_pdr_data): Remove.
6013 (_initialize_mips_tdep): Update.
6014
9a73f0ad
TT
60152019-05-08 Tom Tromey <tom@tromey.com>
6016
6017 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6018 (hppa_init_objfile_priv_data, read_unwind_info)
6019 (find_unwind_entry, _initialize_hppa_tdep): Update.
6020
8127a2fa
TT
60212019-05-08 Tom Tromey <tom@tromey.com>
6022
6023 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6024 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6025 on obstack.
6026 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6027
91d3055d
TT
60282019-05-08 Tom Tromey <tom@tromey.com>
6029
6030 * mdebugread.c (basic_type_data): Change type.
6031 (basic_type, _initialize_mdebugread): Update.
6032
31930bd3
TT
60332019-05-08 Tom Tromey <tom@tromey.com>
6034
6035 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6036
bdb3ed9e
TT
60372019-05-08 Tom Tromey <tom@tromey.com>
6038
6039 * nto-tdep.c (nto_inferior_data_reg): Change type.
6040 (nto_inferior_data): Update.
6041 (nto_inferior_data_cleanup, nto_new_inferior_data)
6042 (_initialize_nto_tdep): Remove.
6043 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6044
f37b313d
TT
60452019-05-08 Tom Tromey <tom@tromey.com>
6046
6047 * ada-lang.c (struct ada_inferior_data): Add initializers.
6048 (ada_inferior_data): Change type.
6049 (ada_inferior_data_cleanup): Remove.
6050 (get_ada_inferior_data, ada_inferior_exit)
6051 (struct ada_pspace_data): Add initializers, destructor.
6052 (ada_pspace_data_handle): Change type.
6053 (get_ada_pspace_data): Update.
6054 (ada_pspace_data_cleanup): Remove.
6055
24699405
TT
60562019-05-08 Tom Tromey <tom@tromey.com>
6057
6058 * coffread.c (struct coff_symfile_info): Add initializers.
6059 (coff_objfile_data_key): Move lower. Change type.
6060 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6061 Update.
6062 (coff_free_info): Remove.
6063
d4e05d2f
TT
60642019-05-08 Tom Tromey <tom@tromey.com>
6065
6066 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6067 (fbsd_pspace_data_handle): Move lower. Change type.
6068 (get_fbsd_pspace_data): Update.
6069 (fbsd_pspace_data_cleanup): Remove.
6070 (_initialize_fbsd_tdep): Update.
6071
14ef6690
TT
60722019-05-08 Tom Tromey <tom@tromey.com>
6073
6074 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6075 (get_ada_tasks_pspace_data): Update.
6076 (ada_tasks_pspace_data_cleanup): Remove.
6077 (_initialize_tasks): Update.
6078 (ada_tasks_inferior_data_handle): Change type.
6079 (get_ada_tasks_inferior_data): Update.
6080 (ada_tasks_inferior_data_cleanup): Remove.
6081 (struct ada_tasks_pspace_data): Add initializers.
6082
814cf43a
TT
60832019-05-08 Tom Tromey <tom@tromey.com>
6084
6085 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6086 * symfile-debug.c (debug_sym_get_probes): Change type.
6087 * stap-probe.c (handle_stap_probe):
6088 (stap_static_probe_ops::get_probes): Change type.
6089 * probe.h (class static_probe_ops) <get_probes>: Change type.
6090 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6091 (parse_probes_in_pspace): Update.
6092 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6093 Update.
6094 (any_static_probe_ops::get_probes): Change type.
6095 * elfread.c (elfread_data): New typedef.
6096 (probe_key): Change type.
6097 (elf_get_probes): Likewise. Update.
6098 (probe_key_free): Remove.
6099 (_initialize_elfread): Update.
6100 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6101 Change type.
6102 (dtrace_process_dof_probe, dtrace_process_dof)
6103 (dtrace_static_probe_ops::get_probe): Change type.
6104
02dc647e
TT
61052019-05-08 Tom Tromey <tom@tromey.com>
6106
6107 * xcoffread.c (struct xcoff_symfile_info): Rename from
6108 coff_symfile_info. Add initializers.
6109 (xcoff_objfile_data_key): Move lower. Change type.
6110 (XCOFF_DATA): Rewrite.
6111 (xcoff_free_info): Remove.
6112 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6113 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6114 (xcoff_initial_scan): Update.
6115
09232438
TT
61162019-05-08 Tom Tromey <tom@tromey.com>
6117
6118 * solib-svr4.c (struct svr4_info): Add initializers and
6119 destructor.
6120 <probes_table>: Now an htab_up.
6121 (solib_svr4_pspace_data): Change type.
6122 (free_probes_table): Simplify.
6123 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6124 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6125 (probes_table_remove_objfile_probes, register_solib_event_probe)
6126 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6127 (_initialize_svr4_solib): Update.
6128
7b4a314f
TT
61292019-05-08 Tom Tromey <tom@tromey.com>
6130
6131 * remote.c (remote_pspace_data): Change type.
6132 (remote_pspace_data_cleanup): Remove.
6133 (get_remote_exec_file, set_pspace_remote_exec_file)
6134 (_initialize_remote): Update.
6135
51d3063a
TT
61362019-05-08 Tom Tromey <tom@tromey.com>
6137
6138 * breakpoint.c (breakpoint_objfile_key): Change type.
6139 (get_breakpoint_objfile_data): Update.
6140 (free_breakpoint_objfile_data): Remove.
6141 (_initialize_breakpoint): Update.
6142
89fb8848
TT
61432019-05-08 Tom Tromey <tom@tromey.com>
6144
6145 * linux-tdep.c (struct linux_info): Add initializers.
6146 (linux_inferior_data): Move. Change type.
6147 (invalidate_linux_cache_inf): Update.
6148 (linux_inferior_data_cleanup): Remove.
6149 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6150
e9b89e2d
TT
61512019-05-08 Tom Tromey <tom@tromey.com>
6152
6153 * auxv.c (auxv_inferior_data): Move. Change type.
6154 (auxv_inferior_data_cleanup): Remove.
6155 (invalidate_auxv_cache_inf): Rewrite.
6156 (get_auxv_inferior_data, _initialize_auxv): Update.
6157
8c42777c
TT
61582019-05-08 Tom Tromey <tom@tromey.com>
6159
6160 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6161 (symfile_debug_objfile_data_key): Change type.
6162 (symfile_debug_installed, debug_qf_has_symbols)
6163 (debug_qf_find_last_source_symtab)
6164 (debug_qf_forget_cached_source_info)
6165 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6166 (debug_qf_print_stats, debug_qf_dump)
6167 (debug_qf_expand_symtabs_for_function)
6168 (debug_qf_expand_all_symtabs)
6169 (debug_qf_expand_symtabs_with_fullname)
6170 (debug_qf_map_matching_symbols)
6171 (debug_qf_expand_symtabs_matching)
6172 (debug_qf_find_pc_sect_compunit_symtab)
6173 (debug_qf_map_symbol_filenames)
6174 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6175 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6176 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6177 (debug_sym_read_linetable, debug_sym_relocate): Update.
6178 (symfile_debug_free_objfile): Remove.
6179 (install_symfile_debug_logging, _initialize_symfile_debug):
6180 Update.
6181
5bfd760d
TT
61822019-05-08 Tom Tromey <tom@tromey.com>
6183
6184 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6185 allocate_on_obstack.
6186 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6187 (get_dwarf2_per_objfile): Update.
6188 (set_dwarf2_per_objfile): Remove.
6189 (dwarf2_has_info, dwarf2_get_section_info): Update.
6190 (dwarf2_free_objfile): Remove.
6191 (_initialize_dwarf2_read): Update.
6192
e85e19b4
TT
61932019-05-08 Tom Tromey <tom@tromey.com>
6194
6195 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6196 initializers.
6197 <unsupported_script_warning_printed,
6198 script_not_found_warning_printed>: Now bool.
6199 (auto_load_pspace_data): Change type.
6200 (~auto_load_pspace_info): Rename from
6201 auto_load_pspace_data_cleanup.
6202 (get_auto_load_pspace_data, init_loaded_scripts_info)
6203 (clear_section_scripts, maybe_print_unsupported_script_warning)
6204 (maybe_print_script_not_found_warning, _initialize_auto_load):
6205 Update.
6206
f6aa7436
TT
62072019-05-08 Tom Tromey <tom@tromey.com>
6208
6209 * objfiles.c (objfile_pspace_info): Add destructor and
6210 initializers.
6211 (objfiles_pspace_data): Change type.
6212 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6213 (get_objfile_pspace_data): Update.
6214 (objfiles_bfd_data): Change type.
6215 (get_objfile_bfd_data): Update.
6216 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6217
6ae614f6
TT
62182019-05-08 Tom Tromey <tom@tromey.com>
6219
6220 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6221 Change type.
6222 (get_catch_syscall_inferior_data): Update.
6223 (catch_syscall_inferior_data_cleanup): Remove.
6224 (_initialize_break_catch_syscall): Update.
6225
6509b8eb
TT
62262019-05-08 Tom Tromey <tom@tromey.com>
6227
6228 * inflow.c (struct terminal_info): Add destructor and
6229 initializers.
6230 (inflow_inferior_data): Change type.
6231 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6232 (get_inflow_inferior_data, inflow_inferior_exit)
6233 (swap_terminal_info, _initialize_inflow): Update.
6234
35632941
TT
62352019-05-08 Tom Tromey <tom@tromey.com>
6236
6237 * target-dcache.c (target_dcache_cleanup): Remove.
6238 (target_dcache_aspace_key): Change type.
6239 (target_dcache_init_p, target_dcache_invalidate)
6240 (target_dcache_get, target_dcache_get_or_init)
6241 (_initialize_target_dcache): Update.
6242 * dcache.h (struct dcache_deleter): New.
6243
3017b94d
TT
62442019-05-08 Tom Tromey <tom@tromey.com>
6245
6246 * symtab.c (struct symbol_cache): Add destructor and
6247 initializers.
6248 (symbol_cache_key): Move. Change type.
6249 (make_symbol_cache, free_symbol_cache): Remove.
6250 (get_symbol_cache): Update.
6251 (symbol_cache_cleanup): Remove.
6252 (ALL_PSPACES, symbol_cache_flush)
6253 (maintenance_print_symbol_cache)
6254 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6255 Update.
6256
a32ad8c5
TT
62572019-05-08 Tom Tromey <tom@tromey.com>
6258
6259 * symtab.c (struct main_info): Add destructor and initializers.
6260 (main_progspace_key): Move. Change type.
6261 (get_main_info): Update.
6262 (main_info_cleanup): Remove.
6263 (_initialize_symtab): Update.
6264
5f6e90a0
TT
62652019-05-08 Tom Tromey <tom@tromey.com>
6266
6267 * registry.h (DECLARE_REGISTRY): Define the _key class.
6268
1bd0c6e4
AB
62692019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6270
6271 * NEWS: Merge two 'New commands' sections.
6272
2228ef77
XR
62732019-05-08 Joel Brobecker <brobecker@adacore.com>
6274
6275 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6276 parameter and use Ada language definition instead.
6277 (ada_val_print_ptr): Remove unused language parameter.
6278 (ada_val_print_num): Remove language parameter and use Ada language
6279 definition instead.
6280 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6281 parameter.
6282 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6283 parameter and use Ada language definition instead.
6284 (ada_val_print_1): Update all ada_val_print_xxx calls.
6285 Remove language parameter.
6286 (ada_val_print): Update ada_val_print_1 call.
6287
60fcc1c3
TT
62882019-05-08 Tom Tromey <tromey@adacore.com>
6289
6290 * remote.c (remote_hw_watchpoint_limit)
6291 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6292 Now static.
6293
ed2b7c17
TT
62942019-05-08 Tom Tromey <tromey@adacore.com>
6295
6296 * maint.c (_initialize_maint_cmds): Move initialization code to
6297 remote.c.
6298 (watchdog, show_watchdog): Move to remote.c.
6299 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6300 "watchdog" static.
6301 (_initialize_remote): Move initialization code from maint.c.
6302 * defs.h (watchdog): Don't declare.
6303
b0be6c91
TT
63042019-05-08 Tom Tromey <tromey@adacore.com>
6305
6306 * tui/tui-interp.c: Include main.h.
6307 * interps.c: Include main.h.
6308 * main.h (interpreter_p): Declare.
6309 * defs.h (interpreter_p): Don't declare.
6310
587ee17b
TT
63112019-05-08 Tom Tromey <tromey@adacore.com>
6312
6313 * dwarf2loc.c: Include dwarf2read.h.
6314 * defs.h (read_unsigned_leb128): Don't declare.
6315 * dwarf2read.h (read_unsigned_leb128): Declare.
6316
ca1df239
TT
63172019-05-08 Tom Tromey <tromey@adacore.com>
6318
6319 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6320 method.
6321
99f20f08
TT
63222019-05-08 Tom Tromey <tromey@adacore.com>
6323
6324 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6325 when no wrap column is set.
6326
80e55b13
TT
63272019-05-08 Tom Tromey <tromey@adacore.com>
6328
6329 * c-lang.c (c_get_string): Handle non-C-style arrays.
6330
9d3421af
TT
63312019-05-08 Tom Tromey <tromey@adacore.com>
6332
6333 * typeprint.c (print_offset_data::update): Print the bit offset,
6334 not the number of bits remaining.
6335
844333e2
TT
63362019-05-08 Tom Tromey <tromey@adacore.com>
6337
6338 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6339 padding at end of comment.
6340
988915ee
TT
63412019-05-08 Tom Tromey <tromey@adacore.com>
6342
6343 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6344 Compare main types.
6345
26bfd823
TT
63462019-05-06 Tom Tromey <tom@tromey.com>
6347
6348 * common/scoped_mmap.c: Include common-defs.h.
6349 * common/scoped_mmap.h: Don't include config.h.
6350
89055eaa
TT
63512019-05-04 Tom Tromey <tom@tromey.com>
6352
6353 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6354 (struct aarch64_call_info): Add initializers.
6355 <si>: Now a std::vector.
6356 (pass_on_stack, aarch64_push_dummy_call): Update.
6357
5da01df5
TT
63582019-05-04 Simon Marchi <simon.marchi@efficios.com>
6359 Tom Tromey <tom@tromey.com>
6360
6361 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6362 (ppc_threads): Now a std::vector. Now static.
6363 (hwdebug_find_thread_points_by_tid)
6364 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6365 Update.
6366
fbdf05a1
TT
63672019-05-04 Tom Tromey <tom@tromey.com>
6368
6369 * arc-tdep.c (arc_tdesc_init): Return bool.
6370
06d16ec9
TT
63712019-05-04 Tom Tromey <tom@tromey.com>
6372
6373 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6374 Use gdb_assert_not_reached.
6375
9c056022
TT
63762019-05-04 Tom Tromey <tom@tromey.com>
6377
6378 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6379 "false".
6380
fa9c2a59
TT
63812019-05-04 Tom Tromey <tom@tromey.com>
6382
6383 * arc-tdep.c (arc_tdesc_init): Use bool.
6384
e2eb806a
TT
63852019-05-04 Tom Tromey <tom@tromey.com>
6386
6387 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6388
6fe87677
TT
63892019-05-04 Tom Tromey <tom@tromey.com>
6390
6391 * cli/cli-cmds.c (valid_command_p): Return bool.
6392
7f008c9e
TT
63932019-05-04 Tom Tromey <tom@tromey.com>
6394
6395 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6396 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6397
b6484282
RT
63982019-05-04 Raul Tambre <raul@tambre.ee>
6399
6400 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6401 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6402 operator for comparison.
6403
af97b416
TT
64042019-05-04 Tom Tromey <tom@tromey.com>
6405
6406 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6407 (lookup_partial_symbol, print_partial_symbols)
6408 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6409 (psymbol_compare): Update.
6410 (add_psymbol_to_bcache): Clear the entire psymbol.
6411 (maintenance_check_psymtabs): Update.
6412 * psympriv.h (struct partial_symbol): Don't derive from
6413 general_symbol_info.
6414 <obj_section, unrelocated_address, address,
6415 set_unrelocated_address>: Update.
6416 <ginfo>: New member.
6417 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6418 (debug_names::write_psymbols): Update.
6419
9d6d4be8
TV
64202019-05-04 Tom de Vries <tdevries@suse.de>
6421
6422 * contrib/cc-with-tweaks.sh: Support -n arg.
6423
66452beb
PW
64242019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6425
6426 * corelow.c (core_target::detach): Ensure frame cache and
6427 register caches are cleared.
6428 inferior.c (exit_inferior_1): Likewise.
6429
bde09ab7
TT
64302019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6431 Tom Tromey <tom@tromey.com>
6432
6433 * dictionary.c (collate_pending_symbols_by_language): Remove
6434 "struct" from foreach.
6435 * symtab.c (lookup_global_symbol_from_objfile)
6436 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6437 foreach.
6438 * ser-tcp.c (net_open): Remove "struct" from foreach.
6439 * objfiles.c (objfile_relocate, objfile_rebase)
6440 (objfile_has_symbols): Remove "struct" from foreach.
6441 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6442 from foreach.
6443 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6444 foreach.
6445 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6446 "struct" from foreach.
6447 * ada-lang.c (create_excep_cond_exprs)
6448 (ada_exception_catchpoint_cond_string): Remove "struct" from
6449 foreach.
6450
222a8d25
TT
64512019-05-03 Tom Tromey <tromey@adacore.com>
6452
6453 * ada-exp.y (convert_char_literal): Check suffix of each
6454 enumerator.
6455
fcd60b84
DP
64562019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6457
6458 PR ada/21406:
6459 * ada-exp.y (yywrap): Don't define.
6460 * ada-lex.l (%option): Add noyywrap
6461 (yywrap): Remove.
6462
5f2459c2
EZ
64632019-05-03 Eli Zaretskii <eliz@gnu.org>
6464
353ea2d1
EZ
6465 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6466 _WIN32_WINNT to the XP level, unless already defined to a higher
6467 level.
6468
6469 * unittests/parse-connection-spec-selftests.c:
6470 * ser-tcp.c:
6471 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6472 override.
6473
5f2459c2
EZ
6474 * symfile.c (find_separate_debug_file): Remove colon from the
6475 drive spec of DOS/Windows file names of the target, so that the
6476 file name produced from DEBUGDIR and the target's directory will
6477 be valid on DOS/Windows systems.
6478
80062eb9
AB
64792019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6480
6481 * rust-lang.c (val_print_struct): Handle printing structures
6482 containing strings.
6483
b8c05e85
TT
64842019-05-02 Tom Tromey <tromey@adacore.com>
6485
6486 * valarith.c (_initialize_valarith): Remove.
6487
4504bbde
TT
64882019-05-01 Tom Tromey <tromey@adacore.com>
6489
6490 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6491 bitfields.
6492
d48e62f4
TT
64932019-05-01 Tom Tromey <tromey@adacore.com>
6494
6495 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6496 for big-endian copies.
6497
15f18d14
AT
64982019-04-30 Ali Tamur <tamur@google.com>
6499 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6500 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6501 (read_3_bytes): New function.
6502
ab4ee614
JB
65032019-04-30 Joel Brobecker <brobecker@adacore.com>
6504
6505 * windows-nat.c (main_thread_id): Delete.
6506 (handle_output_debug_string): Replace main_thread_id by
6507 current_event.dwThreadId.
6508 (fake_create_process): Likewise.
6509 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6510 Do not set main_thread_id.
6511 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6512 current_event.dwThreadId.
6513 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6514
8ed5b76e
JB
65152019-04-30 Joel Brobecker <brobecker@adacore.com>
6516
6517 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6518 Use current_event.dwThreadId instead of main_thread_id.
6519
2ff0a947
TT
65202019-04-30 Tom Tromey <tromey@adacore.com>
6521
6522 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6523 (create_excep_cond_exprs): Iterate over program spaces.
6524 (ada_exception_catchpoint_cond_string): Examine all minimal
6525 symbols for exception types.
6526
a776957c
TT
65272019-04-30 Tom Tromey <tromey@adacore.com>
6528
6529 PR c++/24470:
6530 * dwarf2read.c (process_structure_scope): Handle case where type
6531 has template parameters but no symbol was created.
6532
bc68014d
AB
65332019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6534 Chris January <chris.january@arm.com>
6535
6536 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6537 qualifier.
6538 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6539
f1fdc960
AB
65402019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6541
6542 * f-typeprint.c (f_print_type): Update rules for printing
6543 whitespace.
6544 (f_type_print_varspec_suffix): Likewise.
6545
bf7a4de1
AB
65462019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6547 Chris January <chris.january@arm.com>
6548
6549 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6550 function arguments.
6551
bbe75b9d
AB
65522019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6553
6554 * f-lang.c (build_fortran_types): Change name of void type to
6555 lower case.
6556 * f-typeprint.c (f_type_print_base): Print the name of the void
6557 type, rather than a fixed string.
6558 * f-valprint.c (f_decorations): Use lower case void string.
6559
1db455a7
AB
65602019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6561 Chris January <chris.january@arm.com>
6562
6563 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6564 types for Fortran.
6565
b6d03bb2
AB
65662019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6567 Chris January <chris.january@arm.com>
6568 David Lecomber <david.lecomber@arm.com>
6569
6570 * f-exp.y (BINOP_INTRINSIC): New token.
6571 (exp): New parser rule handling BINOP_INTRINSIC.
6572 (f77_keywords): Add new builtin procedures.
6573 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6574 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6575 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6576 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6577 (print_unop_subexp_f): New function.
6578 (print_binop_subexp_f): New function.
6579 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6580 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6581 (dump_subexp_body_f): Likewise.
6582 (operator_check_f): Likewise.
6583 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6584 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6585
83228e93
AB
65862019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6587
6588 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6589 UNOP_KIND.
6590 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6591 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6592 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6593 (operator_length_f): New fuction.
6594 (print_subexp_f): New function.
6595 (op_name_f): New function.
6596 (dump_subexp_body_f): New function.
6597 (operator_check_f): New function.
6598 (exp_descriptor_f): Replace standard expression handling functions
6599 with new functions.
6600 * gdb/fortran-operator.def: New file.
6601 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6602 * gdb/std-operator.def: Remove UNOP_KIND.
6603
6fdcd7cc
AB
66042019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6605
6606 * std-operator.def: Remove unbalanced, stray double quote
6607 character.
6608
2e62ab40
AB
66092019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6610 Chris January <chris.january@arm.com>
6611 Daniel Everett <daniel.everett@arm.com>
6612 Nick Forrington <nick.forrington@arm.com>
6613 Richard Bunt <richard.bunt@arm.com>
6614
6615 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6616 of depth when printing anonymous structs or unions.
6617 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6618 Don't print either the top-level value, or the children if the
6619 max-depth is exceeded.
6620 (ppscm_print_children): When printing the key of a map, allow one
6621 extra level of depth.
6622 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6623 print either the top-level value, or the children if the max-depth
6624 is exceeded.
6625 (print_children): When printing the key of a map, allow one extra
6626 level of depth.
6627 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6628 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6629 (user_print_options): Initialise max_depth field.
6630 (val_print_scalar_or_string_type_p): New function.
6631 (val_print): Check to see if the max depth has been reached.
6632 (val_print_check_max_depth): Define new function.
6633 (show_print_max_depth): New function.
6634 (_initialize_valprint): Add 'print max-depth' option.
6635 * valprint.h (struct value_print_options) <max_depth>: New field.
6636 (val_print_check_max_depth): Declare new function.
6637 * NEWS: Document new feature.
6638
4be290b2
AB
66392019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6640
6641 * ada-lang.c (ada_language_defn): Initialise new field.
6642 * c-lang.c (c_is_string_type_p): New function.
6643 (c_language_defn): Initialise new field.
6644 (cplus_language_defn): Initialise new field.
6645 (asm_language_defn): Initialise new field.
6646 (minimal_language_defn): Initialise new field.
6647 * c-lang.h (c_is_string_type_p): Declare new function.
6648 * d-lang.c (d_language_defn): Initialise new field.
6649 * f-lang.c (f_is_string_type_p): New function.
6650 (f_language_defn): Initialise new field.
6651 * go-lang.c (go_is_string_type_p): New function.
6652 (go_language_defn): Initialise new field.
6653 * language.c (default_is_string_type_p): New function.
6654 (unknown_language_defn): Initialise new field.
6655 (auto_language_defn): Initialise new field.
6656 * language.h (struct language_defn) <la_is_string_type_p>: New
6657 member variable.
6658 (default_is_string_type_p): Declare new function.
6659 * m2-lang.c (m2_language_defn): Initialise new field.
6660 * objc-lang.c (objc_language_defn): Initialise new field.
6661 * opencl-lang.c (opencl_language_defn): Initialise new field.
6662 * p-lang.c (pascal_is_string_type_p): New function.
6663 (pascal_language_defn): Initialise new field.
6664 * rust-lang.c (rust_is_string_type_p): New function.
6665 (rust_language_defn): Initialise new field.
6666
721b08c6
AB
66672019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6668
6669 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6670 New field.
6671 * ada-lang.c (ada_language_defn): Initialise new field.
6672 * c-lang.c (c_language_defn): Likewise.
6673 (cplus_language_defn): Likewise.
6674 (asm_language_defn): Likewise.
6675 (minimal_language_defn): Likewise.
6676 * d-lang.c (d_language_defn): Likewise.
6677 * f-lang.c (f_language_defn): Likewise.
6678 * go-lang.c (go_language_defn): Likewise.
6679 * language.c (unknown_language_defn): Likewise.
6680 (auto_language_defn): Likewise.
6681 * m2-lang.c (m2_language_defn): Likewise.
6682 * objc-lang.c (objc_language_defn): Likewise.
6683 * opencl-lang.c (opencl_language_defn): Likewise.
6684 * p-lang.c (pascal_language_defn): Likewise.
6685 * rust-lang.c (rust_language_defn): Likewise.
6686
fc913e53
AB
66872019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6688
6689 * ada-lang.c (ada_is_character_type): Change return type to bool.
6690 (ada_is_string_type): Likewise.
6691 * ada-lang.h (ada_is_character_type): Update declaration
6692 (ada_is_string_type): Likewise.
6693
fa731fa0
PW
66942019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6695
6696 Support style in 'frame|thread apply'
6697
6698 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6699 * record.c (record_start, record_stop): Update callers of
6700 execute_command_to_string with false.
6701 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6702 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6703 methods.
6704 (class string_file): New constructor with term_out parameter.
6705 Override methods term_out and can_emit_style_escape. New member
6706 term_out.
6707 (class stdio_file): Override can_emit_style_escape.
6708 (class tee_file): Override term_out and can_emit_style_escape.
6709 * utils.h (can_emit_style_escape): Remove.
6710 * utils.c (can_emit_style_escape): Likewise.
6711 Update all callers of can_emit_style_escape (SOMESTREAM) to
6712 SOMESTREAM->can_emit_style_escape.
6713 * source-cache.c (source_cache::get_source_lines): Likewise.
6714 * stack.c (frame_apply_command_count): Call execute_command_to_string
6715 passing the term_out characteristic of the current gdb_stdout.
6716 * thread.c (thr_try_catch_cmd): Likewise.
6717 * top.c (execute_command_to_string): pass term_out parameter
6718 to construct the string_file for the command output.
6719 * ui-file.c (term_cli_styling): New function (most code moved
6720 from utils.c can_emit_style_escape).
6721 (string_file::string_file, string_file::can_emit_style_escape,
6722 stdio_file::can_emit_style_escape, tee_file::term_out,
6723 tee_file::can_emit_style_escape): New functions.
6724
136afab8
PW
67252019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6726
6727 * NEWS: Mention the new set|show may-call-functions.
6728 * infcall.c (may_call_functions_p): New variable.
6729 (show_may_call_functions_p): New function.
6730 (call_function_by_hand_dummy): Throws an error if not
6731 may-call-functions.
6732 (_initialize_infcall): Call add_setshow_boolean_cmd for
6733 may-call-functions.
6734
725cbb63
KS
67352019-04-25 Keith Seitz <keiths@redhat.com>
6736
6737 PR c++/24367
6738 * cp-support.c (inspect_type): Don't attempt substitutions
6739 of symbol with the same name.
6740
3d1cbb78
TT
67412019-04-25 Tom Tromey <tromey@adacore.com>
6742
6743 PR gdb/24475:
6744 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6745 static.
6746
94aeb44b
TT
67472019-04-25 Tom Tromey <tromey@adacore.com>
6748
6749 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6750 rvalue reference.
6751 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6752 (gdb_xml_parser::parse): Use std::move.
6753 * python/python-internal.h (gdbpy_convert_exception): Take a const
6754 reference.
6755 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6756 std::move.
6757 * python/py-utils.c (gdbpy_convert_exception): Take a const
6758 reference.
6759 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6760 Use std::move.
6761 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6762 Use std::move.
6763 * mi/mi-main.c (mi_print_exception): Take a const reference.
6764 * main.c (handle_command_errors): Take a const reference.
6765 * linespec.c (parse_linespec): Use std::move.
6766 * infcall.c (run_inferior_call): Use std::move.
6767 (call_function_by_hand_dummy): Use std::move.
6768 * exec.c (try_open_exec_file): Use std::move.
6769 * exceptions.h (exception_print, exception_fprintf)
6770 (exception_print_same): Update.
6771 * exceptions.c (print_exception, exception_print)
6772 (exception_fprintf, exception_print_same): Change parameters to
6773 const reference.
6774 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6775 * common/new-op.c: Use std::move.
6776 * common/common-exceptions.h (struct gdb_exception): Add move
6777 constructor.
6778 (struct gdb_exception_error, struct gdb_exception_quit, struct
6779 gdb_quit_bad_alloc): Change constructor to move constructor.
6780 (throw_exception): Change parameter to rvalue reference.
6781 * common/common-exceptions.c (throw_exception): Take rvalue
6782 reference.
6783 * cli/cli-interp.c (safe_execute_command): Use std::move.
6784 * breakpoint.c (insert_bp_location, location_to_sals): Use
6785 std::move.
6786
680d7fd5
TT
67872019-04-25 Tom Tromey <tromey@adacore.com>
6788
6789 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6790 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6791 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6792 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6793 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6794 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6795 guile/scm-value.c: Use unpack.
6796 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6797 gdbscm_gdb_exception.
6798 (gdbscm_throw_gdb_exception): Likewise.
6799 (struct gdbscm_gdb_exception): New.
6800 (unpack): New function.
6801 (gdbscm_wrap): Use unpack.
6802
c6fdd8b2
TT
68032019-04-25 Tom Tromey <tromey@adacore.com>
6804
6805 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6806 (gdb_rl_callback_handler): Use std::move.
6807 * common/common-exceptions.h (struct gdb_exception): Add move
6808 assignment operator.
6809 (throw_exception_sjlj): Change "exception" to const reference.
6810 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6811 (throw_exception_sjlj): Change "exception" to const reference.
6812
cc06b668
TT
68132019-04-25 Tom Tromey <tromey@adacore.com>
6814
6815 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6816 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6817 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6818 Update.
6819 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6820 Update.
6821 * mi/mi-interp.c (mi_interp::exec): Update.
6822 * linespec.c (parse_linespec): Update.
6823 * infcall.c (run_inferior_call): Update.
6824 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6825 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6826 (gdbscm_lookup_global_symbol): Update.
6827 * guile/scm-param.c (gdbscm_parameter_value): Update.
6828 * guile/scm-frame.c (gdbscm_frame_read_register)
6829 (gdbscm_frame_read_var): Update.
6830 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6831 * exec.c (try_open_exec_file): Update.
6832 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6833 (gdb_rl_callback_handler): Update.
6834 * common/common-exceptions.h (exception_none): Don't declare.
6835 * common/common-exceptions.c (exception_none): Don't define.
6836 (struct catcher) <exception>: Update.
6837 * cli/cli-interp.c (safe_execute_command): Update.
6838 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6839
cf532bd1
AT
68402019-04-25 Ali Tamur <tamur@google.com>
6841
6842 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6843 (read_attribute_value): Likewise.
6844 (dwarf2_read_addr_index): Update comment.
6845 (read_str_index): Add DW_FORM_strx.
6846 (dwarf2_string_attr): Likewise.
6847 (dwarf2_const_value_attr): Likewise.
6848 (dump_die_shallow): Likewise.
6849 (dwarf2_fetch_constant_bytes): Likewise.
6850 (skip_form_bytes): Likewise.
6851 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6852
82433e3e
SDJ
68532019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6854
6855 PR corefiles/11608
6856 PR corefiles/18187
6857 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6858 OFFSET. Verify if current mapping contains an ELF header.
6859 (linux_find_memory_regions_full): Adjust call to
6860 dump_mapping_p.
6861
723adb65
SL
68622019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6863 Kang Li <kanglictf@gmail.com>
6864
6865 PR gdb/21600
6866
6867 * dwarf2-frame.c (read_initial_length): Be consistent about using
6868 unsigned representation of length.
6869 (decode_frame_entry_1): Likewise. Check for wraparound of
6870 end pointer as well as buffer overflow.
6871
596179f7
SDJ
68722019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6873
6874 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6875 "vq".
6876
a59240a4
TT
68772019-04-24 Tom Tromey <tromey@adacore.com>
6878
6879 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6880
f872fdbb
AB
68812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6882
6883 * s12z-tdep.c (s12z_unwind_pc): Delete.
6884 (s12z_unwind_sp): Delete.
6885 (s12z_gdbarch_init): Don't register deleted functions with
6886 gdbarch.
6887
b614e6f3
AB
68882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6889
6890 * rl78-tdep.c (rl78_unwind_sp): Delete.
6891 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6892
14faed38
AB
68932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6894
6895 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6896 (xstormy16_unwind_pc): Delete.
6897 (xstormy16_dummy_id): Delete.
6898 (xstormy16_gdbarch_init): Don't register deleted functions with
6899 gdbarch.
6900
541aad8a
AB
69012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6902
6903 * vax-tdep.c (vax_unwind_pc): Delete.
6904 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6905
29222070
AB
69062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6907
6908 * v850-tdep.c (v850_unwind_sp): Delete.
6909 (v850_unwind_pc): Delete.
6910 (v850_dummy_id): Delete.
6911 (v850_gdbarch_init): Don't register deleted functions with
6912 gdbarch.
6913
0f534d76
AB
69142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6915
6916 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6917 (tilegx_unwind_pc): Delete.
6918 (tilegx_unwind_dummy_id): Delete.
6919 (tilegx_gdbarch_init): Don't register deleted functions with
6920 gdbarch.
6921
1ba7b7f9
AB
69222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6923
6924 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6925 (tic6x_dummy_id): Delete.
6926 (tic6x_gdbarch_init): Don't register deleted functions with
6927 gdbarch.
6928
d31f262c
AB
69292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6930
6931 * sparc-tdep.c (sparc_unwind_pc): Delete.
6932 (sparc32_gdbarch_init): Don't register deleted function with
6933 gdbarch.
6934
6d14d64d
AB
69352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6936
6937 * sh-tdep.c (sh_unwind_sp): Delete.
6938 (sh_unwind_pc): Delete.
6939 (sh_dummy_id): Delete.
6940 (sh_gdbarch_init): Don't register deleted functions with
6941 gdbarch.
6942
a40dde9d
AB
69432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6944
6945 * score-tdep.c (score_unwind_sp): Delete.
6946 (score_unwind_pc): Delete.
6947 (score_dummy_id): Delete.
6948 (score_gdbarch_init): Don't register deleted functions with
6949 gdbarch.
6950
47c47d69
AB
69512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6952
6953 * rx-tdep.c (rx_unwind_pc): Delete.
6954 (rx_unwind_sp): Delete.
6955 (rx_dummy_id): Delete.
6956 (rx_gdbarch_init): Don't register deleted functions with
6957 gdbarch. Update comment.
6958
833a4480
AB
69592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6960
6961 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6962 (rs6000_dummy_id): Delete.
6963 (rs6000_gdbarch_init): Don't register deleted functions with
6964 gdbarch.
6965
3f2cef49
AB
69662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6967
6968 * or1k-tdep.c (or1k_dummy_id): Delete.
6969 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6970
96acf884
AB
69712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6972
6973 * nios2-tdep.c (nios2_dummy_id): Delete.
6974 (nios2_unwind_sp): Delete.
6975 (nios2_gdbarch_init): Don't register deleted functions with
6976 gdbarch.
6977
ca0ab0aa
AB
69782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6979
6980 * nds32-tdep.c (nds32_dummy_id): Delete.
6981 (nds32_unwind_pc): Delete.
6982 (nds32_unwind_sp): Delete.
6983 (nds32_gdbarch_init): Don't register deleted functions with
6984 gdbarch.
6985
c8259044
AB
69862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6987
6988 * msp430-tdep.c (msp430_unwind_pc): Delete.
6989 (msp430_unwind_sp): Delete.
6990 (msp430_dummy_id): Delete.
6991 (msp430_gdbarch_init): Don't register deleted functions with
6992 gdbarch.
6993
27f113c8
AB
69942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6995
6996 * moxie-tdep.c (moxie_unwind_sp): Delete.
6997 (moxie_unwind_pc): Delete.
6998 (moxie_dummy_id): Delete.
6999 (moxie_gdbarch_init): Don't register deleted functions with
7000 gdbarch.
7001
aee6c3cd
AB
70022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7003
7004 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7005 (mn10300_unwind_pc): Delete.
7006 (mn10300_unwind_sp): Delete.
7007 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7008 mn10300_unwind_sp.
7009 (mn10300_frame_unwind_init): Don't register deleted functions with
7010 gdbarch.
7011
8e2b5aea
AB
70122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7013
7014 * mep-tdep.c (mep_unwind_pc): Delete.
7015 (mep_unwind_sp): Delete.
7016 (mep_dummy_id): Delete.
7017 (mep_gdbarch_init): Don't register deleted functions with
7018 gdbarch.
7019
43cf3ede
AB
70202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7021
7022 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7023 (m68hc11_unwind_sp): Delete.
7024 (m68hc11_gdbarch_init): Don't register deleted functions with
7025 gdbarch.
7026
5e79b7bb
AB
70272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7028
7029 * m32r-tdep.c (m32r_unwind_sp): Delete.
7030 (m32r_unwind_pc): Delete.
7031 (m32r_dummy_id): Delete.
7032 (m32r_gdbarch_init): Don't register deleted functions with
7033 gdbarch.
7034
89b268d8
AB
70352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7036
7037 * m32c-tdep.c (m32c_unwind_pc): Delete.
7038 (m32c_unwind_sp): Delete.
7039 (m32c_dummy_id): Delete.
7040 (m32c_gdbarch_init): Don't register deleted functions with
7041 gdbarch.
7042
946c28d2
AB
70432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7044
7045 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7046 (lm32_unwind_pc): Delete.
7047 (lm32_dummy_id): Delete.
7048 (lm32_gdbarch_init): Don't register deleted functions with
7049 gdbarch.
7050
bf12844a
AB
70512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7052
7053 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7054 (iq2000_unwind_pc): Delete.
7055 (iq2000_dummy_id): Delete.
7056 (iq2000_gdbarch_init): Don't register deleted functions with
7057 gdbarch.
7058
ecbc06d2
AB
70592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7060
7061 * nds32-tdep.c (nds32_type_align): Delete.
7062 (nds32_push_dummy_call): Use type_align instead.
7063
030197b4
AB
70642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7065
7066 * arm-tdep.c (arm_type_align): Only handle vector override case.
7067 (arm_push_dummy_call): Use type_align.
7068 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7069
b907456c
AB
70702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7071
7072 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7073 case.
7074 (pass_on_stack): Use type_align.
7075 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7076 function.
7077
9e97ba43
TT
70782019-04-23 Tom Tromey <tromey@adacore.com>
7079
7080 * dwarf2read.c (line_header::file_name_at): Remove unused
7081 overload.
7082
6892f601
TV
70832019-04-23 Tom de Vries <tdevries@suse.de>
7084
7085 PR gdb/24438
7086 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7087 invocation.
7088
336d760d
AT
7089
70902019-03-27 Ali Tamur <tamur@google.com>
7091
7092 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7093 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7094 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7095 (dwarf_expr_context::get_addr_index): Likewise
7096 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7097 (symbol_needs_eval_context::get_addr_index): Likewise
7098 (disassemble_dwarf_expression): Add DW_OP_addrx
7099 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7100 (read_cutu_die_from_dwo): Update comment
7101 (skip_one_die): Add DW_FORM_addrx
7102 (read_attribute_value): Likewise
7103 (var_decode_location): Add DW_OP_addrx
7104 (dwarf2_const_value_attr): Add DW_FORM_addrx
7105 (dump_die_shallow): Likewise
7106 (dwarf2_fetch_constant_bytes): Likewise
7107 (decode_locdesc): Add DW_OP_addrx
7108 (skip_form_bytes): Add DW_FORM_addrx
7109
ad9d13f8
AT
71102019-04-22 Ali Tamur <tamur@google.com>
7111
7112 * MAINTAINERS (Write After Approval): Add self.
7113
d70cc3ba
SM
71142019-04-22 Simon Marchi <simon.marchi@efficios.com>
7115
7116 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7117 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7118 (open_symbol_file_object): Likewise.
7119 (svr4_default_sos): Add info parameter.
7120 (svr4_read_so_list): Likewise.
7121 (svr4_current_sos_direct): Adjust functions calls to pass down
7122 info.
7123 (svr4_current_sos_1): Add info parameter.
7124 (svr4_current_sos): Call get_svr4_info, pass info down to
7125 svr4_current_sos_1.
7126 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7127 get_svr4_info.
7128 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7129 get_svr4_info.
7130 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7131 to get_svr4_info.
7132 (probes_table_remove_objfile_probes): Likewise.
7133 (register_solib_event_probe): Add info parameter.
7134 (solist_update_incremental): Pass info parameter down to
7135 svr4_read_so_list.
7136 (disable_probes_interface): Add info parameter.
7137 (svr4_handle_solib_event): Pass current_program_space to
7138 get_svr4_info. Adjust disable_probes_interface cleanup.
7139 (svr4_create_probe_breakpoints): Add info parameter, pass it
7140 down to register_solib_event_probe.
7141 (svr4_create_solib_event_breakpoints): Add info parameter,
7142 pass it down to svr4_create_probe_breakpoints.
7143 (enable_break): Pass info down to
7144 svr4_create_solib_event_breakpoints.
7145 (svr4_solib_create_inferior_hook): Pass current_program_space to
7146 get_svr4_info.
7147 (svr4_clear_solib): Likewise.
7148
7905fc35
PA
71492019-04-22 Pedro Alves <palves@redhat.com>
7150
7151 * solib-svr4.c (svr4_free_objfile_observer): New.
7152 (probe_and_action::objfile): New field.
7153 (probes_table_htab_remove_objfile_probes)
7154 (probes_table_remove_objfile_probes): New functions.
7155 (register_solib_event_probe): Add 'objfile' parameter. Store it
7156 in the new probe_and_action. Don't store the probe in 'lookup'.
7157 (svr4_create_probe_breakpoints): Pass objfile to
7158 register_solib_event_probe.
7159 (_initialize_svr4_solib): Register a free_objfile observer.
7160
fb881986
TT
71612019-04-19 Tom Tromey <tom@tromey.com>
7162
7163 * common/queue.h: Remove.
7164
8732db6c
TT
71652019-04-19 Tom Tromey <tom@tromey.com>
7166
7167 * event-loop.c: Don't include "common/queue.h".
7168
97dfbadd
TT
71692019-04-19 Tom Tromey <tom@tromey.com>
7170
7171 * remote.c (remote_target): Use delete.
7172 * remote-notif.h: Include <list>, not "common/queue.h".
7173 (notif_client_p): Remove typedef.
7174 (remote_notif_state): Add constructor, destructor, initializer.
7175 <notif_queue>: Now a std::list.
7176 (remote_notif_state_xfree): Don't declare.
7177 * remote-notif.c (remote_notif_process, handle_notification)
7178 (remote_notif_state_allocate): Update.
7179 (~remote_notif_state): Rename from remote_notif_state_xfree.
7180
cf250e36
TT
71812019-04-19 Tom Tromey <tom@tromey.com>
7182
7183 * symfile.c (reread_symbols): Update.
7184 * objfiles.c (objfile_register_static_link)
7185 (objfile_lookup_static_link): Update
7186 (~objfile) Don't delete static_links.
7187 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7188
61f4b350
TT
71892019-04-19 Tom Tromey <tom@tromey.com>
7190
7191 * type-stack.h (struct type_stack) <insert>: Constify string.
7192 * type-stack.c (type_stack::insert): Constify string.
7193 * gdbtypes.h (lookup_template_type): Update.
7194 (address_space_name_to_int): Update.
7195 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7196 const.
7197 (lookup_template_type): Make name const.
7198 * c-exp.y: Update rules.
7199 (lex_one_token, classify_name, classify_inner_name)
7200 (c_print_token): Update.
7201 * p-exp.y: Update rules.
7202 (yylex): Update.
7203 * f-exp.y: Update rules.
7204 (yylex): Update.
7205 * d-exp.y: Update rules.
7206 (lex_one_token, classify_name, classify_inner_name): Update.
7207 * parse.c (write_dollar_variable, copy_name): Return std::string.
7208 * parser-defs.h (copy_name): Change return type.
7209 * m2-exp.y: Update rules.
7210 (yylex): Update.
7211 * go-exp.y (lex_one_token): Update.
7212 Update rules.
7213 (classify_unsafe_function, classify_packaged_name)
7214 (classify_name, yylex): Update.
7215
189b8c2e
ST
72162019-04-19 Sergei Trofimovich <siarheit@google.com>
7217
7218 * configure.ac: add --enable-source-highlight switch.
7219 * configure: Regenerate.
7220 * top.c (print_gdb_version): plumb --enable-source-highlight
7221 status to "show configuration".
7222
8ecb59f8
TT
72232019-04-19 Tom Tromey <tromey@adacore.com>
7224
7225 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7226 Check ADA_TYPE_P.
7227 (empty_record, ada_template_to_fixed_record_type_1)
7228 (template_to_static_fixed_type)
7229 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7230 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7231 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7232 macros.
7233
62160ec9
TT
72342019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7235
7236 PR symtab/24423:
7237 * source.c (print_source_lines_base): Advance "iter" when a
7238 control character is seen.
7239
f2ae8bc8
PW
72402019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7241
7242 * inferior.h (struct infcall_suspend_state_deleter):
7243 Catch exception in destructor to avoid crash.
7244
d563b953
PW
72452019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7246
7247 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7248 close to the add_com "shell".
7249
dc34c897
TT
72502019-04-18 Tom Tromey <tromey@adacore.com>
7251
7252 * process-stratum-target.h (class process_stratum_target)
7253 <stratum>: Add "final".
7254
a12e5744
TT
72552019-04-17 Tom Tromey <tromey@adacore.com>
7256
7257 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7258 against nullptr before use.
7259
a7e559cc
AH
72602019-04-17 Alan Hayward <alan.hayward@arm.com>
7261
7262 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7263
c01660c6
AB
72642019-04-17 Jim Wilson <jimw@sifive.com>
7265 Andrew Burgess <andrew.burgess@embecosm.com>
7266
7267 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7268 code read might fail, assume 4-byte breakpoint in that case.
7269
4aa866af
LS
72702019-04-15 Leszek Swirski <leszeks@google.com>
7271
7272 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7273 rather than a hand-rolled POD check when checking for forced MEMORY
7274 classification.
7275
48574d91
AH
72762019-04-15 Alan Hayward <alan.hayward@arm.com>
7277
7278 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7279 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7280 function.
7281 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7282 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7283 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7284 declaration.
7285
4da037ef
AH
72862019-04-15 Alan Hayward <alan.hayward@arm.com>
7287
7288 * aarch64-linux-nat.c
7289 (aarch64_linux_nat_target::thread_architecture): Add override.
7290 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7291 each VQ.
7292
ccb8d7e8
AH
72932019-04-15 Alan Hayward <alan.hayward@arm.com>
7294
7295 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7296
35add35e
AB
72972019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7298
7299 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7300 target types of size 96-bits, add some additional comments, and
7301 check that the builtin type we found was the correct size.
7302
51196bbc
EZ
73032019-04-12 Eli Zaretskii <eliz@gnu.org>
7304
7305 * utils.c (prompt_for_continue): Don't restore the styling at the
7306 end, as applied_style has the wrong value. This fixes styling in
7307 long lists of file names that are interrupted by the "Continue?"
7308 prompt.
7309
62253a61
AB
73102019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7311
7312 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7313 * c-lang.c (c_language_defn): Likewise.
7314 (cplus_language_defn): Likewise.
7315 (asm_language_defn): Likewise.
7316 (minimal_language_defn): Likewise.
7317 * d-lang.c (d_language_defn): Likewise.
7318 * f-lang.c (f_language_defn): Likewise.
7319 * go-lang.c (go_language_defn): Likewise.
7320 * language.c (unknown_language_defn): Likewise.
7321 (auto_language_defn): Likewise.
7322 * language.h (struct language_defn): Remove la_magic field.
7323 (LANG_MAGIC): Delete.
7324 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7325 * objc-lang.c (objc_language_defn): Likewise.
7326 * opencl-lang.c (opencl_language_defn): Likewise.
7327 * p-lang.c (pascal_language_defn): Likewise.
7328 * rust-lang.c (rust_language_defn): Likewise.
7329
a9158a86
AB
73302019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7331
7332 * riscv-tdep.c (riscv_type_align): New function.
7333 (riscv_type_alignment): Delete.
7334 (riscv_arg_location): Use 'type_align'.
7335 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7336
41077b66
AB
73372019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7338
7339 * gdbtypes.c (type_align): A struct with no non-static fields also
7340 has alignment of 1.
7341
9f0272f8
AB
73422019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7343
7344 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7345 component to 0.
7346 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7347 member.
7348 (riscv_struct_info::analyse): New implementation using new
7349 analyse_inner member function.
7350 (riscv_struct_info::field_offset): New member function.
7351 (riscv_struct_info::m_offsets): New member variable.
7352 (riscv_struct_info::analyse_inner): New private member function,
7353 takes the old implementation of riscv_struct_info::analyse but
7354 extended to track field offsets.
7355 (riscv_call_arg_struct): Update the struct folding special cases
7356 to handle cases where empty C++ structs, which are non-zero
7357 length, are found.
7358 (riscv_arg_location): Initialise the length of each location, a
7359 non-zero length now indicates the location is in use.
7360 (riscv_push_dummy_call): Allow for the first location having a
7361 non-zero offset when setting up arguments.
7362 (riscv_return_value): Likewise, but for return values.
7363
02cf60c7
TT
73642019-04-11 Tom Tromey <tromey@adacore.com>
7365
7366 * utils.c (internal_vproblem): Make "msg" const.
7367
68811f8f
AH
73682019-04-11 Alan Hayward <alan.hayward@arm.com>
7369
7370 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7371 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7372 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7373 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7374
3f52fdbc
KB
73752019-04-10 Kevin Buettner <kevinb@redhat.com>
7376
7377 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7378 function.
7379 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7380 of amd64_collect_native_gregset.
7381 (amd64_linux_nat_target::store_registers): Likewise.
7382
e9ad22ee
TT
73832019-04-10 Tom Tromey <tom@tromey.com>
7384
7385 * symtab.c (lookup_global_symbol_from_objfile)
7386 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7387 * objfiles.h (class separate_debug_iterator): New.
7388 (class separate_debug_range): New.
7389 (struct objfile) <separate_debug_objfiles>: New method.
7390 (objfile_separate_debug_iterate): Don't declare.
7391 * objfiles.c (separate_debug_iterator::operator++): Rename from
7392 objfile_separate_debug_iterate.
7393 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7394 iterator.
7395 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7396 iterator.
7397
ee371134
TT
73982019-04-10 Tom Tromey <tom@tromey.com>
7399
7400 * symfile.c (reread_symbols): Remove old comment.
7401 * objfiles.c (free_all_objfiles): Fix a typo.
7402
bf227d61
TT
74032019-04-10 Tom Tromey <tom@tromey.com>
7404
7405 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7406 * minsyms.c (lookup_minimal_symbol): Use foreach.
7407 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7408 (lookup_minimal_symbol_solib_trampoline): Likewise.
7409 * symfile.c (reread_symbols): Use foreach.
7410
8dc433a0
TT
74112019-04-09 Ivan Begert <ivanbegert@gmail.com>
7412 Tom Tromey <tromey@adacore.com>
7413
7414 PR rust/24414:
7415 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7416 (rust_lex_int_test): Change "value" to be LONGEST.
7417 (rust_lex_tests): Add test for long integer literal.
7418
9ab8741a
TT
74192019-04-09 Tom Tromey <tromey@adacore.com>
7420
7421 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7422 to bool.
7423 (extended_remote_target::attach): Update.
7424 (remote_target::remote_notice_new_inferior): Update.
7425 (remote_target::add_current_inferior_and_thread): Update.
7426 * inferior.c (exit_inferior_1): Use "false".
7427 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7428
e242fd12
SM
74292019-04-09 Simon Marchi <simon.marchi@efficios.com>
7430
9ca1957f 7431 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
7432 the "start" command.
7433
2b0c8b01
KB
74342019-04-08 Kevin Buettner <kevinb@redhat.com>
7435
7436 * python/py-inferior.c (infpy_thread_from_thread_handle):
7437 Adjust comments to reflect renaming of thread_from_thread_handle
7438 to thread_from_handle. Adjust keywords. Fix type error message.
7439 (inferior_object_methods): Add thread_from_handle. Retain
7440 thread_from_thread_handle, but mark it as deprecated.
7441
50a82723
KB
74422019-04-08 Kevin Buettner <kevinb@redhat.com>
7443
7444 * gdbthread.h (find_thread_by_handle): Revise declaration.
7445 * thread.c (find_thread_by_handle): Likewise. Adjust
7446 implementation too.
7447 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7448 support for buffer objects as handles.
7449
cf63b016
KB
74502019-04-08 Kevin Buettner <kevinb@redhat.com>
7451
7452 * python/py-infthread.c (thpy_thread_handle): New function.
7453 (thread_object_methods): Register thpy_thread_handle.
7454
3d6c6204
KB
74552019-04-08 Kevin Buettner <kevinb@redhat.com>
7456
7457 * gdbthread.h (thread_to_thread_handle): Declare.
7458 * thread.c (gdbtypes.h): Include.
7459 (thread_to_thread_handle): New function.
7460
7461 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7462 (target_thread_info_to_thread_handle): Declare.
7463 * target.c (target_thread_info_to_thread_handle): New function.
7464 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7465 * target-delegates.c: Regenerate.
7466
7467 * linux-thread-db.c (class thread_db_target): Add method
7468 thread_info_to_thread_handle.
7469 (thread_db_target::thread_info_to_thread_handle): Define.
7470 * remote.c (class remote_target): Add new method
7471 thread_info_to_thread_handle.
7472 (remote_target::thread_info_to_thread_handle): Define.
7473
56be6ea8
PA
74742019-04-08 Pedro Alves <palves@redhat.com>
7475
7476 * common/common-exceptions.c (throw_exception): Don't create
7477 named object to throw; throw directly.
7478 (throw_it): Likewise. Don't initialize gdb_exception::message
7479 here, with new; pass FMT and AP to the ctor instead.
7480 * common/common-exceptions.h: Include <string>.
7481 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7482 const char *, va_list)): New ctor. Use std::make_shared.
7483 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7484 errors)): Delete.
7485 (gdb_exception_error::gdb_exception_error(enum errors, const char
7486 *, va_list)): New.
7487 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7488 Add assertion.
7489 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7490 errors)): Delete.
7491 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7492 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7493 Add assertion.
7494
eedc3f4f
TT
74952019-04-08 Tom Tromey <tom@tromey.com>
7496
7497 * valops.c (value_rtti_indirect_type): Replace throw_exception
7498 with throw.
7499 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7500 with throw.
7501 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7502 throw.
7503 * target.c (target_translate_tls_address): Replace throw_exception
7504 with throw.
7505 * stack.c (frame_apply_command_count): Replace throw_exception
7506 with throw.
7507 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7508 throw.
7509 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7510 with throw.
7511 * rs6000-tdep.c (rs6000_frame_cache)
7512 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7513 * remote.c: Replace throw_exception with throw.
7514 * record-full.c (record_full_message, record_full_wait_1)
7515 (record_full_restore): Replace throw_exception with throw.
7516 * record-btrace.c:
7517 (get_thread_current_frame_id, record_btrace_start_replaying)
7518 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7519 (cmd_record_btrace_start): Replace throw_exception with throw.
7520 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7521 throw.
7522 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7523 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7524 * linespec.c:
7525 (find_linespec_symbols): Replace throw_exception with throw.
7526 * infrun.c (displaced_step_prepare, resume): Replace
7527 throw_exception with throw.
7528 * infcmd.c (post_create_inferior): Replace throw_exception with
7529 throw.
7530 * inf-loop.c (inferior_event_handler): Replace throw_exception
7531 with throw.
7532 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7533 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7534 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7535 (get_prev_frame_always, get_frame_pc_if_available)
7536 (get_frame_address_in_block_if_available, get_frame_language):
7537 Replace throw_exception with throw.
7538 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7539 throw_exception with throw.
7540 * eval.c (fetch_subexp_value, evaluate_var_value)
7541 (evaluate_funcall, evaluate_subexp_standard): Replace
7542 throw_exception with throw.
7543 * dwarf2loc.c (call_site_find_chain)
7544 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7545 Replace throw_exception with throw.
7546 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7547 with throw.
7548 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7549 throw.
7550 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7551 * completer.c (complete_line_internal): Replace throw_exception
7552 with throw.
7553 * compile/compile-object-run.c (compile_object_run): Replace
7554 throw_exception with throw.
7555 * cli/cli-script.c (process_next_line): Replace throw_exception
7556 with throw.
7557 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7558 (btrace_enable, btrace_maint_update_pt_packets): Replace
7559 throw_exception with throw.
7560 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7561 throw_exception with throw.
7562 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7563 throw_exception with throw.
7564 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7565 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7566 * aarch64-tdep.c (aarch64_make_prologue_cache)
7567 (aarch64_make_stub_cache): Replace throw_exception with throw.
7568
26003a20
TT
75692019-04-08 Tom Tromey <tom@tromey.com>
7570
7571 * common/common-exceptions.c (throw_exception): Rename from
7572 throw_exception_cxx. Remove old copy. Make argument const.
7573 (throw_it): Create and throw exception objects directly.
7574 * common/common-exceptions.h (throw_exception): Make argument
7575 const.
7576 (struct gdb_exception_error): Add constructor.
7577 (struct gdb_exception_quit): Add constructor.
7578
d272eb37
TT
75792019-04-08 Tom Tromey <tom@tromey.com>
7580
7581 * common/common-exceptions.h (exception_rethrow): Don't declare.
7582 (TRY_SJLJ): Update comment.
7583 (TRY, CATCH, END_CATCH): Remove.
7584 * common/common-exceptions.c (exception_rethrow): Remove.
7585
230d2906
TT
75862019-04-08 Tom Tromey <tom@tromey.com>
7587
7588 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7589 Remove.
7590 (gdb_exception_error): Rename from
7591 gdb_exception_RETURN_MASK_ERROR.
7592 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7593 (gdb_quit_bad_alloc): Update.
7594 * aarch64-tdep.c: Update.
7595 * ada-lang.c: Update.
7596 * ada-typeprint.c: Update.
7597 * ada-valprint.c: Update.
7598 * amd64-tdep.c: Update.
7599 * arch-utils.c: Update.
7600 * break-catch-throw.c: Update.
7601 * breakpoint.c: Update.
7602 * btrace.c: Update.
7603 * c-varobj.c: Update.
7604 * cli/cli-cmds.c: Update.
7605 * cli/cli-interp.c: Update.
7606 * cli/cli-script.c: Update.
7607 * common/common-exceptions.c: Update.
7608 * common/new-op.c: Update.
7609 * common/selftest.c: Update.
7610 * compile/compile-c-symbols.c: Update.
7611 * compile/compile-cplus-symbols.c: Update.
7612 * compile/compile-object-load.c: Update.
7613 * compile/compile-object-run.c: Update.
7614 * completer.c: Update.
7615 * corelow.c: Update.
7616 * cp-abi.c: Update.
7617 * cp-support.c: Update.
7618 * cp-valprint.c: Update.
7619 * darwin-nat.c: Update.
7620 * disasm-selftests.c: Update.
7621 * dtrace-probe.c: Update.
7622 * dwarf-index-cache.c: Update.
7623 * dwarf-index-write.c: Update.
7624 * dwarf2-frame-tailcall.c: Update.
7625 * dwarf2-frame.c: Update.
7626 * dwarf2loc.c: Update.
7627 * dwarf2read.c: Update.
7628 * eval.c: Update.
7629 * event-loop.c: Update.
7630 * event-top.c: Update.
7631 * exec.c: Update.
7632 * f-valprint.c: Update.
7633 * fbsd-tdep.c: Update.
7634 * frame-unwind.c: Update.
7635 * frame.c: Update.
7636 * gdbtypes.c: Update.
7637 * gnu-v3-abi.c: Update.
7638 * guile/guile-internal.h: Update.
7639 * guile/scm-block.c: Update.
7640 * guile/scm-breakpoint.c: Update.
7641 * guile/scm-cmd.c: Update.
7642 * guile/scm-disasm.c: Update.
7643 * guile/scm-frame.c: Update.
7644 * guile/scm-lazy-string.c: Update.
7645 * guile/scm-math.c: Update.
7646 * guile/scm-param.c: Update.
7647 * guile/scm-ports.c: Update.
7648 * guile/scm-pretty-print.c: Update.
7649 * guile/scm-symbol.c: Update.
7650 * guile/scm-symtab.c: Update.
7651 * guile/scm-type.c: Update.
7652 * guile/scm-value.c: Update.
7653 * i386-linux-tdep.c: Update.
7654 * i386-tdep.c: Update.
7655 * inf-loop.c: Update.
7656 * infcall.c: Update.
7657 * infcmd.c: Update.
7658 * infrun.c: Update.
7659 * jit.c: Update.
7660 * language.c: Update.
7661 * linespec.c: Update.
7662 * linux-fork.c: Update.
7663 * linux-nat.c: Update.
7664 * linux-tdep.c: Update.
7665 * linux-thread-db.c: Update.
7666 * main.c: Update.
7667 * mi/mi-cmd-break.c: Update.
7668 * mi/mi-cmd-stack.c: Update.
7669 * mi/mi-interp.c: Update.
7670 * mi/mi-main.c: Update.
7671 * objc-lang.c: Update.
7672 * p-valprint.c: Update.
7673 * parse.c: Update.
7674 * ppc-linux-tdep.c: Update.
7675 * printcmd.c: Update.
7676 * python/py-arch.c: Update.
7677 * python/py-breakpoint.c: Update.
7678 * python/py-cmd.c: Update.
7679 * python/py-finishbreakpoint.c: Update.
7680 * python/py-frame.c: Update.
7681 * python/py-framefilter.c: Update.
7682 * python/py-gdb-readline.c: Update.
7683 * python/py-inferior.c: Update.
7684 * python/py-infthread.c: Update.
7685 * python/py-lazy-string.c: Update.
7686 * python/py-linetable.c: Update.
7687 * python/py-objfile.c: Update.
7688 * python/py-param.c: Update.
7689 * python/py-prettyprint.c: Update.
7690 * python/py-progspace.c: Update.
7691 * python/py-record-btrace.c: Update.
7692 * python/py-record.c: Update.
7693 * python/py-symbol.c: Update.
7694 * python/py-type.c: Update.
7695 * python/py-unwind.c: Update.
7696 * python/py-utils.c: Update.
7697 * python/py-value.c: Update.
7698 * python/python.c: Update.
7699 * record-btrace.c: Update.
7700 * record-full.c: Update.
7701 * remote-fileio.c: Update.
7702 * remote.c: Update.
7703 * riscv-tdep.c: Update.
7704 * rs6000-aix-tdep.c: Update.
7705 * rs6000-tdep.c: Update.
7706 * rust-exp.y: Update.
7707 * rust-lang.c: Update.
7708 * s390-tdep.c: Update.
7709 * selftest-arch.c: Update.
7710 * solib-dsbt.c: Update.
7711 * solib-frv.c: Update.
7712 * solib-spu.c: Update.
7713 * solib-svr4.c: Update.
7714 * solib.c: Update.
7715 * sparc64-linux-tdep.c: Update.
7716 * stack.c: Update.
7717 * symfile-mem.c: Update.
7718 * symmisc.c: Update.
7719 * target.c: Update.
7720 * thread.c: Update.
7721 * top.c: Update.
7722 * tracefile-tfile.c: Update.
7723 * tui/tui.c: Update.
7724 * typeprint.c: Update.
7725 * unittests/cli-utils-selftests.c: Update.
7726 * unittests/parse-connection-spec-selftests.c: Update.
7727 * valops.c: Update.
7728 * valprint.c: Update.
7729 * value.c: Update.
7730 * varobj.c: Update.
7731 * windows-nat.c: Update.
7732 * x86-linux-nat.c: Update.
7733 * xml-support.c: Update.
7734
a70b8144
TT
77352019-04-08 Tom Tromey <tom@tromey.com>
7736
7737 * xml-support.c: Use C++ exception handling.
7738 * x86-linux-nat.c: Use C++ exception handling.
7739 * windows-nat.c: Use C++ exception handling.
7740 * varobj.c: Use C++ exception handling.
7741 * value.c: Use C++ exception handling.
7742 * valprint.c: Use C++ exception handling.
7743 * valops.c: Use C++ exception handling.
7744 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7745 handling.
7746 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7747 * typeprint.c: Use C++ exception handling.
7748 * tui/tui.c: Use C++ exception handling.
7749 * tracefile-tfile.c: Use C++ exception handling.
7750 * top.c: Use C++ exception handling.
7751 * thread.c: Use C++ exception handling.
7752 * target.c: Use C++ exception handling.
7753 * symmisc.c: Use C++ exception handling.
7754 * symfile-mem.c: Use C++ exception handling.
7755 * stack.c: Use C++ exception handling.
7756 * sparc64-linux-tdep.c: Use C++ exception handling.
7757 * solib.c: Use C++ exception handling.
7758 * solib-svr4.c: Use C++ exception handling.
7759 * solib-spu.c: Use C++ exception handling.
7760 * solib-frv.c: Use C++ exception handling.
7761 * solib-dsbt.c: Use C++ exception handling.
7762 * selftest-arch.c: Use C++ exception handling.
7763 * s390-tdep.c: Use C++ exception handling.
7764 * rust-lang.c: Use C++ exception handling.
7765 * rust-exp.y: Use C++ exception handling.
7766 * rs6000-tdep.c: Use C++ exception handling.
7767 * rs6000-aix-tdep.c: Use C++ exception handling.
7768 * riscv-tdep.c: Use C++ exception handling.
7769 * remote.c: Use C++ exception handling.
7770 * remote-fileio.c: Use C++ exception handling.
7771 * record-full.c: Use C++ exception handling.
7772 * record-btrace.c: Use C++ exception handling.
7773 * python/python.c: Use C++ exception handling.
7774 * python/py-value.c: Use C++ exception handling.
7775 * python/py-utils.c: Use C++ exception handling.
7776 * python/py-unwind.c: Use C++ exception handling.
7777 * python/py-type.c: Use C++ exception handling.
7778 * python/py-symbol.c: Use C++ exception handling.
7779 * python/py-record.c: Use C++ exception handling.
7780 * python/py-record-btrace.c: Use C++ exception handling.
7781 * python/py-progspace.c: Use C++ exception handling.
7782 * python/py-prettyprint.c: Use C++ exception handling.
7783 * python/py-param.c: Use C++ exception handling.
7784 * python/py-objfile.c: Use C++ exception handling.
7785 * python/py-linetable.c: Use C++ exception handling.
7786 * python/py-lazy-string.c: Use C++ exception handling.
7787 * python/py-infthread.c: Use C++ exception handling.
7788 * python/py-inferior.c: Use C++ exception handling.
7789 * python/py-gdb-readline.c: Use C++ exception handling.
7790 * python/py-framefilter.c: Use C++ exception handling.
7791 * python/py-frame.c: Use C++ exception handling.
7792 * python/py-finishbreakpoint.c: Use C++ exception handling.
7793 * python/py-cmd.c: Use C++ exception handling.
7794 * python/py-breakpoint.c: Use C++ exception handling.
7795 * python/py-arch.c: Use C++ exception handling.
7796 * printcmd.c: Use C++ exception handling.
7797 * ppc-linux-tdep.c: Use C++ exception handling.
7798 * parse.c: Use C++ exception handling.
7799 * p-valprint.c: Use C++ exception handling.
7800 * objc-lang.c: Use C++ exception handling.
7801 * mi/mi-main.c: Use C++ exception handling.
7802 * mi/mi-interp.c: Use C++ exception handling.
7803 * mi/mi-cmd-stack.c: Use C++ exception handling.
7804 * mi/mi-cmd-break.c: Use C++ exception handling.
7805 * main.c: Use C++ exception handling.
7806 * linux-thread-db.c: Use C++ exception handling.
7807 * linux-tdep.c: Use C++ exception handling.
7808 * linux-nat.c: Use C++ exception handling.
7809 * linux-fork.c: Use C++ exception handling.
7810 * linespec.c: Use C++ exception handling.
7811 * language.c: Use C++ exception handling.
7812 * jit.c: Use C++ exception handling.
7813 * infrun.c: Use C++ exception handling.
7814 * infcmd.c: Use C++ exception handling.
7815 * infcall.c: Use C++ exception handling.
7816 * inf-loop.c: Use C++ exception handling.
7817 * i386-tdep.c: Use C++ exception handling.
7818 * i386-linux-tdep.c: Use C++ exception handling.
7819 * guile/scm-value.c: Use C++ exception handling.
7820 * guile/scm-type.c: Use C++ exception handling.
7821 * guile/scm-symtab.c: Use C++ exception handling.
7822 * guile/scm-symbol.c: Use C++ exception handling.
7823 * guile/scm-pretty-print.c: Use C++ exception handling.
7824 * guile/scm-ports.c: Use C++ exception handling.
7825 * guile/scm-param.c: Use C++ exception handling.
7826 * guile/scm-math.c: Use C++ exception handling.
7827 * guile/scm-lazy-string.c: Use C++ exception handling.
7828 * guile/scm-frame.c: Use C++ exception handling.
7829 * guile/scm-disasm.c: Use C++ exception handling.
7830 * guile/scm-cmd.c: Use C++ exception handling.
7831 * guile/scm-breakpoint.c: Use C++ exception handling.
7832 * guile/scm-block.c: Use C++ exception handling.
7833 * guile/guile-internal.h: Use C++ exception handling.
7834 * gnu-v3-abi.c: Use C++ exception handling.
7835 * gdbtypes.c: Use C++ exception handling.
7836 * frame.c: Use C++ exception handling.
7837 * frame-unwind.c: Use C++ exception handling.
7838 * fbsd-tdep.c: Use C++ exception handling.
7839 * f-valprint.c: Use C++ exception handling.
7840 * exec.c: Use C++ exception handling.
7841 * event-top.c: Use C++ exception handling.
7842 * event-loop.c: Use C++ exception handling.
7843 * eval.c: Use C++ exception handling.
7844 * dwarf2read.c: Use C++ exception handling.
7845 * dwarf2loc.c: Use C++ exception handling.
7846 * dwarf2-frame.c: Use C++ exception handling.
7847 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7848 * dwarf-index-write.c: Use C++ exception handling.
7849 * dwarf-index-cache.c: Use C++ exception handling.
7850 * dtrace-probe.c: Use C++ exception handling.
7851 * disasm-selftests.c: Use C++ exception handling.
7852 * darwin-nat.c: Use C++ exception handling.
7853 * cp-valprint.c: Use C++ exception handling.
7854 * cp-support.c: Use C++ exception handling.
7855 * cp-abi.c: Use C++ exception handling.
7856 * corelow.c: Use C++ exception handling.
7857 * completer.c: Use C++ exception handling.
7858 * compile/compile-object-run.c: Use C++ exception handling.
7859 * compile/compile-object-load.c: Use C++ exception handling.
7860 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7861 * compile/compile-c-symbols.c: Use C++ exception handling.
7862 * common/selftest.c: Use C++ exception handling.
7863 * common/new-op.c: Use C++ exception handling.
7864 * cli/cli-script.c: Use C++ exception handling.
7865 * cli/cli-interp.c: Use C++ exception handling.
7866 * cli/cli-cmds.c: Use C++ exception handling.
7867 * c-varobj.c: Use C++ exception handling.
7868 * btrace.c: Use C++ exception handling.
7869 * breakpoint.c: Use C++ exception handling.
7870 * break-catch-throw.c: Use C++ exception handling.
7871 * arch-utils.c: Use C++ exception handling.
7872 * amd64-tdep.c: Use C++ exception handling.
7873 * ada-valprint.c: Use C++ exception handling.
7874 * ada-typeprint.c: Use C++ exception handling.
7875 * ada-lang.c: Use C++ exception handling.
7876 * aarch64-tdep.c: Use C++ exception handling.
7877
3d6e9d23
TT
78782019-04-08 Tom Tromey <tom@tromey.com>
7879
7880 * xml-support.c (gdb_xml_parser::parse): Update.
7881 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7882 * value.c (show_convenience): Update.
7883 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7884 (test_parse_flags_qcs): Update.
7885 * thread.c (thr_try_catch_cmd): Update.
7886 * target.c (target_translate_tls_address): Update.
7887 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7888 (info_frame_command_core, frame_apply_command_count): Update.
7889 * rust-exp.y (rust_lex_exception_test): Update.
7890 * riscv-tdep.c (riscv_print_one_register_info): Update.
7891 * remote.c (remote_target::enable_btrace): Update.
7892 * record-btrace.c (record_btrace_enable_warn): Update.
7893 * python/py-utils.c (gdbpy_convert_exception): Update.
7894 * printcmd.c (do_one_display, print_variable_and_value): Update.
7895 * mi/mi-main.c (mi_print_exception): Update.
7896 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7897 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7898 * linux-nat.c (linux_nat_target::attach): Update.
7899 * linux-fork.c (class scoped_switch_fork_info): Update.
7900 * infrun.c (displaced_step_prepare): Update.
7901 * infcall.c (call_function_by_hand_dummy): Update.
7902 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7903 * gnu-v3-abi.c (print_one_vtable): Update.
7904 * frame.c (get_prev_frame_always): Update.
7905 * f-valprint.c (info_common_command_for_block): Update.
7906 * exec.c (try_open_exec_file): Update.
7907 * exceptions.c (print_exception, exception_print)
7908 (exception_fprintf, exception_print_same): Update.
7909 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7910 * dwarf-index-cache.c (index_cache::store)
7911 (index_cache::lookup_gdb_index): Update.
7912 * darwin-nat.c (maybe_cache_shell): Update.
7913 * cp-valprint.c (cp_print_value_fields): Update.
7914 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7915 (gcc_cplus_symbol_address): Update.
7916 * compile/compile-c-symbols.c (gcc_convert_symbol)
7917 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7918 * common/selftest.c: Update.
7919 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7920 a std::string.
7921 (exception_try_scope_entry, exception_try_scope_exit): Don't
7922 declare.
7923 (struct exception_try_scope): Remove.
7924 (TRY): Don't use exception_try_scope.
7925 (struct gdb_exception): Add constructor, operator=.
7926 <what>: New method.
7927 (struct gdb_exception_RETURN_MASK_ALL)
7928 (struct gdb_exception_RETURN_MASK_ERROR)
7929 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7930 (struct gdb_quit_bad_alloc): Update.
7931 * common/common-exceptions.c (exception_none): Change
7932 initializer.
7933 (struct catcher) <state, exception>: Initialize inline.
7934 <prev>: Remove member.
7935 (current_catcher): Remove.
7936 (catchers): New global.
7937 (exceptions_state_mc_init): Simplify.
7938 (catcher_pop): Remove.
7939 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7940 (try_scope_depth, exception_try_scope_entry)
7941 (exception_try_scope_exit): Remove.
7942 (throw_exception_sjlj): Update.
7943 (exception_messages, exception_messages_size): Remove.
7944 (throw_it): Simplify.
7945 (gdb_exception_sliced_copy): Remove.
7946 (throw_exception_cxx): Update.
7947 * cli/cli-script.c (script_from_file): Update.
7948 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7949 Update.
7950 * ada-valprint.c (ada_val_print): Update.
7951 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7952 (create_excep_cond_exprs): Update.
7953
c5c10118
TT
79542019-04-08 Tom Tromey <tom@tromey.com>
7955
7956 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7957 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7958 (TRY, CATCH, END_CATCH): Remove some definitions.
7959 * common/common-exceptions.c: Don't use GDB_XCPT.
7960 (catcher_list_size): Remove.
7961 (throw_exception, throw_it): Simplify.
7962
4de283e4
TT
79632019-04-05 Tom Tromey <tom@tromey.com>
7964
7965 Revert the header-sorting patch.
7966 * ft32-tdep.c: Revert.
7967 * frv-tdep.c: Revert.
7968 * frv-linux-tdep.c: Revert.
7969 * frame.c: Revert.
7970 * frame-unwind.c: Revert.
7971 * frame-base.c: Revert.
7972 * fork-child.c: Revert.
7973 * findvar.c: Revert.
7974 * findcmd.c: Revert.
7975 * filesystem.c: Revert.
7976 * filename-seen-cache.h: Revert.
7977 * filename-seen-cache.c: Revert.
7978 * fbsd-tdep.c: Revert.
7979 * fbsd-nat.h: Revert.
7980 * fbsd-nat.c: Revert.
7981 * f-valprint.c: Revert.
7982 * f-typeprint.c: Revert.
7983 * f-lang.c: Revert.
7984 * extension.h: Revert.
7985 * extension.c: Revert.
7986 * extension-priv.h: Revert.
7987 * expprint.c: Revert.
7988 * exec.h: Revert.
7989 * exec.c: Revert.
7990 * exceptions.c: Revert.
7991 * event-top.c: Revert.
7992 * event-loop.c: Revert.
7993 * eval.c: Revert.
7994 * elfread.c: Revert.
7995 * dwarf2read.h: Revert.
7996 * dwarf2read.c: Revert.
7997 * dwarf2loc.c: Revert.
7998 * dwarf2expr.h: Revert.
7999 * dwarf2expr.c: Revert.
8000 * dwarf2-frame.c: Revert.
8001 * dwarf2-frame-tailcall.c: Revert.
8002 * dwarf-index-write.h: Revert.
8003 * dwarf-index-write.c: Revert.
8004 * dwarf-index-common.c: Revert.
8005 * dwarf-index-cache.h: Revert.
8006 * dwarf-index-cache.c: Revert.
8007 * dummy-frame.c: Revert.
8008 * dtrace-probe.c: Revert.
8009 * disasm.h: Revert.
8010 * disasm.c: Revert.
8011 * disasm-selftests.c: Revert.
8012 * dictionary.c: Revert.
8013 * dicos-tdep.c: Revert.
8014 * demangle.c: Revert.
8015 * dcache.h: Revert.
8016 * dcache.c: Revert.
8017 * darwin-nat.h: Revert.
8018 * darwin-nat.c: Revert.
8019 * darwin-nat-info.c: Revert.
8020 * d-valprint.c: Revert.
8021 * d-namespace.c: Revert.
8022 * d-lang.c: Revert.
8023 * ctf.c: Revert.
8024 * csky-tdep.c: Revert.
8025 * csky-linux-tdep.c: Revert.
8026 * cris-tdep.c: Revert.
8027 * cris-linux-tdep.c: Revert.
8028 * cp-valprint.c: Revert.
8029 * cp-support.c: Revert.
8030 * cp-namespace.c: Revert.
8031 * cp-abi.c: Revert.
8032 * corelow.c: Revert.
8033 * corefile.c: Revert.
8034 * continuations.c: Revert.
8035 * completer.h: Revert.
8036 * completer.c: Revert.
8037 * complaints.c: Revert.
8038 * coffread.c: Revert.
8039 * coff-pe-read.c: Revert.
8040 * cli-out.h: Revert.
8041 * cli-out.c: Revert.
8042 * charset.c: Revert.
8043 * c-varobj.c: Revert.
8044 * c-valprint.c: Revert.
8045 * c-typeprint.c: Revert.
8046 * c-lang.c: Revert.
8047 * buildsym.c: Revert.
8048 * buildsym-legacy.c: Revert.
8049 * build-id.h: Revert.
8050 * build-id.c: Revert.
8051 * btrace.c: Revert.
8052 * bsd-uthread.c: Revert.
8053 * breakpoint.h: Revert.
8054 * breakpoint.c: Revert.
8055 * break-catch-throw.c: Revert.
8056 * break-catch-syscall.c: Revert.
8057 * break-catch-sig.c: Revert.
8058 * blockframe.c: Revert.
8059 * block.c: Revert.
8060 * bfin-tdep.c: Revert.
8061 * bfin-linux-tdep.c: Revert.
8062 * bfd-target.c: Revert.
8063 * bcache.c: Revert.
8064 * ax-general.c: Revert.
8065 * ax-gdb.h: Revert.
8066 * ax-gdb.c: Revert.
8067 * avr-tdep.c: Revert.
8068 * auxv.c: Revert.
8069 * auto-load.c: Revert.
8070 * arm-wince-tdep.c: Revert.
8071 * arm-tdep.c: Revert.
8072 * arm-symbian-tdep.c: Revert.
8073 * arm-pikeos-tdep.c: Revert.
8074 * arm-obsd-tdep.c: Revert.
8075 * arm-nbsd-tdep.c: Revert.
8076 * arm-nbsd-nat.c: Revert.
8077 * arm-linux-tdep.c: Revert.
8078 * arm-linux-nat.c: Revert.
8079 * arm-fbsd-tdep.c: Revert.
8080 * arm-fbsd-nat.c: Revert.
8081 * arm-bsd-tdep.c: Revert.
8082 * arch-utils.c: Revert.
8083 * arc-tdep.c: Revert.
8084 * arc-newlib-tdep.c: Revert.
8085 * annotate.h: Revert.
8086 * annotate.c: Revert.
8087 * amd64-windows-tdep.c: Revert.
8088 * amd64-windows-nat.c: Revert.
8089 * amd64-tdep.c: Revert.
8090 * amd64-sol2-tdep.c: Revert.
8091 * amd64-obsd-tdep.c: Revert.
8092 * amd64-obsd-nat.c: Revert.
8093 * amd64-nbsd-tdep.c: Revert.
8094 * amd64-nbsd-nat.c: Revert.
8095 * amd64-nat.c: Revert.
8096 * amd64-linux-tdep.c: Revert.
8097 * amd64-linux-nat.c: Revert.
8098 * amd64-fbsd-tdep.c: Revert.
8099 * amd64-fbsd-nat.c: Revert.
8100 * amd64-dicos-tdep.c: Revert.
8101 * amd64-darwin-tdep.c: Revert.
8102 * amd64-bsd-nat.c: Revert.
8103 * alpha-tdep.c: Revert.
8104 * alpha-obsd-tdep.c: Revert.
8105 * alpha-nbsd-tdep.c: Revert.
8106 * alpha-mdebug-tdep.c: Revert.
8107 * alpha-linux-tdep.c: Revert.
8108 * alpha-linux-nat.c: Revert.
8109 * alpha-bsd-tdep.c: Revert.
8110 * alpha-bsd-nat.c: Revert.
8111 * aix-thread.c: Revert.
8112 * agent.c: Revert.
8113 * addrmap.c: Revert.
8114 * ada-varobj.c: Revert.
8115 * ada-valprint.c: Revert.
8116 * ada-typeprint.c: Revert.
8117 * ada-tasks.c: Revert.
8118 * ada-lang.c: Revert.
8119 * aarch64-tdep.c: Revert.
8120 * aarch64-ravenscar-thread.c: Revert.
8121 * aarch64-newlib-tdep.c: Revert.
8122 * aarch64-linux-tdep.c: Revert.
8123 * aarch64-linux-nat.c: Revert.
8124 * aarch64-fbsd-tdep.c: Revert.
8125 * aarch64-fbsd-nat.c: Revert.
8126 * aarch32-linux-nat.c: Revert.
8127
d55e5aa6
TT
81282019-04-05 Tom Tromey <tom@tromey.com>
8129
8130 * ft32-tdep.c: Sort headers.
8131 * frv-tdep.c: Sort headers.
8132 * frv-linux-tdep.c: Sort headers.
8133 * frame.c: Sort headers.
8134 * frame-unwind.c: Sort headers.
8135 * frame-base.c: Sort headers.
8136 * fork-child.c: Sort headers.
8137 * findvar.c: Sort headers.
8138 * findcmd.c: Sort headers.
8139 * filesystem.c: Sort headers.
8140 * filename-seen-cache.h: Sort headers.
8141 * filename-seen-cache.c: Sort headers.
8142 * fbsd-tdep.c: Sort headers.
8143 * fbsd-nat.h: Sort headers.
8144 * fbsd-nat.c: Sort headers.
8145 * f-valprint.c: Sort headers.
8146 * f-typeprint.c: Sort headers.
8147 * f-lang.c: Sort headers.
8148 * extension.h: Sort headers.
8149 * extension.c: Sort headers.
8150 * extension-priv.h: Sort headers.
8151 * expprint.c: Sort headers.
8152 * exec.h: Sort headers.
8153 * exec.c: Sort headers.
8154 * exceptions.c: Sort headers.
8155 * event-top.c: Sort headers.
8156 * event-loop.c: Sort headers.
8157 * eval.c: Sort headers.
8158 * elfread.c: Sort headers.
8159 * dwarf2read.h: Sort headers.
8160 * dwarf2read.c: Sort headers.
8161 * dwarf2loc.c: Sort headers.
8162 * dwarf2expr.h: Sort headers.
8163 * dwarf2expr.c: Sort headers.
8164 * dwarf2-frame.c: Sort headers.
8165 * dwarf2-frame-tailcall.c: Sort headers.
8166 * dwarf-index-write.h: Sort headers.
8167 * dwarf-index-write.c: Sort headers.
8168 * dwarf-index-common.c: Sort headers.
8169 * dwarf-index-cache.h: Sort headers.
8170 * dwarf-index-cache.c: Sort headers.
8171 * dummy-frame.c: Sort headers.
8172 * dtrace-probe.c: Sort headers.
8173 * disasm.h: Sort headers.
8174 * disasm.c: Sort headers.
8175 * disasm-selftests.c: Sort headers.
8176 * dictionary.c: Sort headers.
8177 * dicos-tdep.c: Sort headers.
8178 * demangle.c: Sort headers.
8179 * dcache.h: Sort headers.
8180 * dcache.c: Sort headers.
8181 * darwin-nat.h: Sort headers.
8182 * darwin-nat.c: Sort headers.
8183 * darwin-nat-info.c: Sort headers.
8184 * d-valprint.c: Sort headers.
8185 * d-namespace.c: Sort headers.
8186 * d-lang.c: Sort headers.
8187 * ctf.c: Sort headers.
8188 * csky-tdep.c: Sort headers.
8189 * csky-linux-tdep.c: Sort headers.
8190 * cris-tdep.c: Sort headers.
8191 * cris-linux-tdep.c: Sort headers.
8192 * cp-valprint.c: Sort headers.
8193 * cp-support.c: Sort headers.
8194 * cp-namespace.c: Sort headers.
8195 * cp-abi.c: Sort headers.
8196 * corelow.c: Sort headers.
8197 * corefile.c: Sort headers.
8198 * continuations.c: Sort headers.
8199 * completer.h: Sort headers.
8200 * completer.c: Sort headers.
8201 * complaints.c: Sort headers.
8202 * coffread.c: Sort headers.
8203 * coff-pe-read.c: Sort headers.
8204 * cli-out.h: Sort headers.
8205 * cli-out.c: Sort headers.
8206 * charset.c: Sort headers.
8207 * c-varobj.c: Sort headers.
8208 * c-valprint.c: Sort headers.
8209 * c-typeprint.c: Sort headers.
8210 * c-lang.c: Sort headers.
8211 * buildsym.c: Sort headers.
8212 * buildsym-legacy.c: Sort headers.
8213 * build-id.h: Sort headers.
8214 * build-id.c: Sort headers.
8215 * btrace.c: Sort headers.
8216 * bsd-uthread.c: Sort headers.
8217 * breakpoint.h: Sort headers.
8218 * breakpoint.c: Sort headers.
8219 * break-catch-throw.c: Sort headers.
8220 * break-catch-syscall.c: Sort headers.
8221 * break-catch-sig.c: Sort headers.
8222 * blockframe.c: Sort headers.
8223 * block.c: Sort headers.
8224 * bfin-tdep.c: Sort headers.
8225 * bfin-linux-tdep.c: Sort headers.
8226 * bfd-target.c: Sort headers.
8227 * bcache.c: Sort headers.
8228 * ax-general.c: Sort headers.
8229 * ax-gdb.h: Sort headers.
8230 * ax-gdb.c: Sort headers.
8231 * avr-tdep.c: Sort headers.
8232 * auxv.c: Sort headers.
8233 * auto-load.c: Sort headers.
8234 * arm-wince-tdep.c: Sort headers.
8235 * arm-tdep.c: Sort headers.
8236 * arm-symbian-tdep.c: Sort headers.
8237 * arm-pikeos-tdep.c: Sort headers.
8238 * arm-obsd-tdep.c: Sort headers.
8239 * arm-nbsd-tdep.c: Sort headers.
8240 * arm-nbsd-nat.c: Sort headers.
8241 * arm-linux-tdep.c: Sort headers.
8242 * arm-linux-nat.c: Sort headers.
8243 * arm-fbsd-tdep.c: Sort headers.
8244 * arm-fbsd-nat.c: Sort headers.
8245 * arm-bsd-tdep.c: Sort headers.
8246 * arch-utils.c: Sort headers.
8247 * arc-tdep.c: Sort headers.
8248 * arc-newlib-tdep.c: Sort headers.
8249 * annotate.h: Sort headers.
8250 * annotate.c: Sort headers.
8251 * amd64-windows-tdep.c: Sort headers.
8252 * amd64-windows-nat.c: Sort headers.
8253 * amd64-tdep.c: Sort headers.
8254 * amd64-sol2-tdep.c: Sort headers.
8255 * amd64-obsd-tdep.c: Sort headers.
8256 * amd64-obsd-nat.c: Sort headers.
8257 * amd64-nbsd-tdep.c: Sort headers.
8258 * amd64-nbsd-nat.c: Sort headers.
8259 * amd64-nat.c: Sort headers.
8260 * amd64-linux-tdep.c: Sort headers.
8261 * amd64-linux-nat.c: Sort headers.
8262 * amd64-fbsd-tdep.c: Sort headers.
8263 * amd64-fbsd-nat.c: Sort headers.
8264 * amd64-dicos-tdep.c: Sort headers.
8265 * amd64-darwin-tdep.c: Sort headers.
8266 * amd64-bsd-nat.c: Sort headers.
8267 * alpha-tdep.c: Sort headers.
8268 * alpha-obsd-tdep.c: Sort headers.
8269 * alpha-nbsd-tdep.c: Sort headers.
8270 * alpha-mdebug-tdep.c: Sort headers.
8271 * alpha-linux-tdep.c: Sort headers.
8272 * alpha-linux-nat.c: Sort headers.
8273 * alpha-bsd-tdep.c: Sort headers.
8274 * alpha-bsd-nat.c: Sort headers.
8275 * aix-thread.c: Sort headers.
8276 * agent.c: Sort headers.
8277 * addrmap.c: Sort headers.
8278 * ada-varobj.c: Sort headers.
8279 * ada-valprint.c: Sort headers.
8280 * ada-typeprint.c: Sort headers.
8281 * ada-tasks.c: Sort headers.
8282 * ada-lang.c: Sort headers.
8283 * aarch64-tdep.c: Sort headers.
8284 * aarch64-ravenscar-thread.c: Sort headers.
8285 * aarch64-newlib-tdep.c: Sort headers.
8286 * aarch64-linux-tdep.c: Sort headers.
8287 * aarch64-linux-nat.c: Sort headers.
8288 * aarch64-fbsd-tdep.c: Sort headers.
8289 * aarch64-fbsd-nat.c: Sort headers.
8290 * aarch32-linux-nat.c: Sort headers.
8291
699bd4cf
TT
82922019-04-04 Tom Tromey <tom@tromey.com>
8293
8294 * varobj.c (varobj_create): Update.
8295 * rust-exp.y (struct rust_parser) <update_innermost_block,
8296 lookup_symbol>: New methods.
8297 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8298 Rename.
8299 (rust_parser::rust_lookup_type)
8300 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8301 * printcmd.c (display_command, do_one_display): Update.
8302 * parser-defs.h (struct parser_state) <parser_state>: Add
8303 "tracker" parameter.
8304 (block_tracker): New member.
8305 (class innermost_block_tracker) <innermost_block_tracker>: Add
8306 "types" parameter.
8307 <reset>: Remove method.
8308 (innermost_block): Don't declare.
8309 (null_post_parser): Update.
8310 * parse.c (innermost_block): Remove global.
8311 (write_dollar_variable): Update.
8312 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8313 Remove "tracker_types" parameter.
8314 (parse_expression): Add "tracker" parameter.
8315 (parse_expression_for_completion): Update.
8316 (null_post_parser): Add "tracker" parameter.
8317 * p-exp.y: Update rules.
8318 * m2-exp.y: Update rules.
8319 * language.h (struct language_defn) <la_post_parser>: Add
8320 "tracker" parameter.
8321 * go-exp.y: Update rules.
8322 * f-exp.y: Update rules.
8323 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8324 parameter.
8325 * d-exp.y: Update rules.
8326 * c-exp.y: Update rules.
8327 * breakpoint.c (set_breakpoint_condition): Create an
8328 innermost_block_tracker.
8329 (watch_command_1): Likewise.
8330 * ada-lang.c (resolve): Add "tracker" parameter.
8331 (resolve_subexp): Likewise.
8332 * ada-exp.y (write_var_from_sym): Update.
8333
dac43e32
TT
83342019-04-04 Tom Tromey <tom@tromey.com>
8335
8336 * type-stack.h: New file.
8337 * type-stack.c: New file.
8338 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8339 type-stack.h.
8340 (insert_into_type_stack, insert_type, push_type, push_type_int)
8341 (insert_type_address_space, pop_type, pop_type_int)
8342 (pop_typelist, pop_type_stack, append_type_stack)
8343 (push_type_stack, get_type_stack, push_typelist)
8344 (follow_type_instance_flags, follow_types): Don't declare.
8345 * parse.c (type_stack): Remove global.
8346 (parse_exp_in_context): Update.
8347 (insert_into_type_stack, insert_type, push_type, push_type_int)
8348 (insert_type_address_space, pop_type, pop_type_int)
8349 (pop_typelist, pop_type_stack, append_type_stack)
8350 (push_type_stack, get_type_stack, push_typelist)
8351 (follow_type_instance_flags, follow_types): Remove (moved to
8352 type-stack.c).
8353 * f-exp.y (type_stack): New global.
8354 Update rules.
8355 (push_kind_type, f_parse): Update.
8356 * d-exp.y (type_stack): New global.
8357 Update rules.
8358 (d_parse): Update.
8359 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8360 Update rules.
8361 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8362 (HFILES_NO_SRCDIR): Add type-stack.h.
8363
2a612529
TT
83642019-04-04 Tom Tromey <tom@tromey.com>
8365
8366 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8367 (rust_parser::convert_ast_to_expression, rust_parse)
8368 (rust_lex_test_completion, rust_lex_tests): Update.
8369 * parser-defs.h (struct expr_completion_state): New.
8370 (struct parser_state) <parser_state>: Add completion parameter.
8371 <mark_struct_expression, mark_completion_tag>: New methods.
8372 <parse_completion, m_completion_state>: New members.
8373 (prefixify_expression, null_post_parser): Update.
8374 (mark_struct_expression, mark_completion_tag): Don't declare.
8375 * parse.c (parse_completion, expout_last_struct)
8376 (expout_tag_completion_type, expout_completion_name): Remove
8377 globals.
8378 (parser_state::mark_struct_expression)
8379 (parser_state::mark_completion_tag): Now methods.
8380 (prefixify_expression): Add last_struct parameter.
8381 (prefixify_subexp): Likewise.
8382 (parse_exp_1): Update.
8383 (parse_exp_in_context): Add cstate parameter. Update.
8384 (parse_expression_for_completion): Create an
8385 expr_completion_state.
8386 (null_post_parser): Add "completion" parameter.
8387 * p-exp.y: Update rules.
8388 (yylex): Update.
8389 * language.h (struct language_defn) <la_post_parser>: Add
8390 "completing" parameter.
8391 * go-exp.y: Update rules.
8392 (lex_one_token): Update.
8393 * expression.h (parse_completion): Don't declare.
8394 * d-exp.y: Update rules.
8395 (lex_one_token): Update rules.
8396 * c-exp.y: Update rules.
8397 (lex_one_token): Update.
8398 * ada-lang.c (resolve): Add "parse_completion" parameter.
8399 (resolve_subexp): Likewise.
8400 (ada_resolve_function): Likewise.
8401
43476f0b
TT
84022019-04-04 Tom Tromey <tom@tromey.com>
8403
8404 * parser-defs.h (struct parser_state) <start_arglist,
8405 end_arglist>: New methods.
8406 <arglist_len, m_funcall_chain>: New members.
8407 (arglist_len, start_arglist, end_arglist): Don't declare.
8408 * parse.c (arglist_len, funcall_chain): Remove global.
8409 (start_arglist, end_arglist): Remove functions.
8410 (parse_exp_in_context): Update.
8411 * p-exp.y: Update rules.
8412 * m2-exp.y: Update rules.
8413 * go-exp.y: Update rules.
8414 * f-exp.y: Update rules.
8415 * d-exp.y: Update rules.
8416 * c-exp.y: Update rules.
8417
5776fca3
TT
84182019-04-04 Tom Tromey <tom@tromey.com>
8419
8420 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8421 lex_operator, push_back>: New methods.
8422 Update all rules.
8423 (rust_parser::lex_hex, lex_escape): Rename and update.
8424 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8425 (rust_parser::lex_operator): Rename and update.
8426 (rust_parser::lex_number, rustyylex, rustyyerror)
8427 (rust_lex_test_init, rust_lex_test_sequence)
8428 (rust_lex_test_push_back, rust_lex_tests): Update.
8429 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8430 parameter.
8431 <lexptr, prev_lexptr>: New members.
8432 (lexptr, prev_lexptr): Don't declare.
8433 * parse.c (lexptr, prev_lexptr): Remove globals.
8434 (parse_exp_in_context): Update.
8435 * p-exp.y (yylex, yyerror): Update.
8436 * m2-exp.y (parse_number, yylex, yyerror): Update.
8437 * go-exp.y (lex_one_token, yyerror): Update.
8438 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8439 * d-exp.y (lex_one_token, yyerror): Update.
8440 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8441 (lex_one_token, yyerror): Update.
8442 * ada-lex.l (YY_INPUT): Update.
8443 (rewind_to_char): Update.
8444 * ada-exp.y (yyerror): Update.
8445
8621b685
TT
84462019-04-04 Tom Tromey <tom@tromey.com>
8447
8448 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8449 * parser-defs.h (struct parser_state) <parser_state>: Add new
8450 parameter.
8451 <comma_terminates>: New member.
8452 (comma_terminates): Don't declare global.
8453 * parse.c (comma_terminates): Remove global.
8454 (parse_exp_in_context): Update.
8455 * p-exp.y (yylex): Update.
8456 * m2-exp.y (yylex): Update.
8457 * go-exp.y (lex_one_token): Update.
8458 * f-exp.y (yylex): Update.
8459 * d-exp.y (lex_one_token): Update.
8460 * c-exp.y (lex_one_token): Update.
8461 * ada-lex.l: Update.
8462
28aaf3fd
TT
84632019-04-04 Tom Tromey <tom@tromey.com>
8464
8465 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8466 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8467 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8468 * parser-defs.h (paren_depth): Don't declare.
8469 * parse.c (paren_depth): Remove global.
8470 (parse_exp_in_context): Update.
8471 * p-exp.y (paren_depth): New global.
8472 (pascal_parse): Initialize it.
8473 * m2-exp.y (paren_depth): New global.
8474 (m2_parse): Initialize it.
8475 * go-exp.y (paren_depth): New global.
8476 (go_parse): Initialize it.
8477 * f-exp.y (paren_depth): New global.
8478 (f_parse): Initialize it.
8479 * d-exp.y (paren_depth): New global.
8480 (d_parse): Initialize it.
8481 * c-exp.y (paren_depth): New global.
8482 (c_parse): Initialize it.
8483 * ada-lex.l (paren_depth): New global.
8484 (lexer_init): Initialize it.
8485
1e58a4a4
TT
84862019-04-04 Tom Tromey <tom@tromey.com>
8487
8488 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8489 (rust_parser::convert_ast_to_type)
8490 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8491 * parser-defs.h (struct parser_state) <parser_state>: Add
8492 parameters. Initialize new members.
8493 <expression_context_block, expression_context_pc>: New members.
8494 * parse.c (expression_context_block, expression_context_pc):
8495 Remove globals.
8496 (parse_exp_in_context): Update.
8497 * p-exp.y: Update all rules.
8498 (yylex): Update.
8499 * m2-exp.y: Update all rules.
8500 (yylex): Update.
8501 * go-exp.y (yylex): Update.
8502 * f-exp.y (yylex): Update.
8503 * d-exp.y: Update all rules.
8504 (yylex): Update.
8505 * c-exp.y: Update all rules.
8506 (lex_one_token, classify_name, yylex, c_parse): Update.
8507 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8508
37eedb39
TT
85092019-04-04 Tom Tromey <tom@tromey.com>
8510
8511 * gdbarch.h, gdbarch.c: Rebuild.
8512 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8513 * stap-probe.h:
8514 (struct stap_parse_info): Replace "parser_state" with
8515 "expr_builder".
8516 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8517 (parser_state): New class.
8518 * parse.c (expr_builder): Rename.
8519 (expr_builder::release): Rename.
8520 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8521 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8522 (write_exp_elt_longcst, write_exp_elt_floatcst)
8523 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8524 (write_exp_string_vector, write_exp_bitstring)
8525 (write_exp_msymbol, mark_struct_expression)
8526 (write_dollar_variable)
8527 (insert_type_address_space, increase_expout_size): Replace
8528 "parser_state" with "expr_builder".
8529 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8530 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8531 "parser_state" with "expr_builder".
8532
73923d7e
TT
85332019-04-04 Tom Tromey <tom@tromey.com>
8534
8535 * rust-exp.y: Replace "parse_language" with method call.
8536 * p-exp.y:
8537 (yylex): Replace "parse_language" with method call.
8538 * m2-exp.y:
8539 (yylex): Replace "parse_language" with method call.
8540 * go-exp.y (classify_name): Replace "parse_language" with method
8541 call.
8542 * f-exp.y (yylex): Replace "parse_language" with method call.
8543 * d-exp.y (lex_one_token): Replace "parse_language" with method
8544 call.
8545 * c-exp.y:
8546 (lex_one_token, classify_name, yylex): Replace "parse_language"
8547 with method call.
8548 * ada-exp.y (find_primitive_type, type_char)
8549 (type_system_address): Replace "parse_language" with method call.
8550
fa9f5be6
TT
85512019-04-04 Tom Tromey <tom@tromey.com>
8552
8553 * rust-exp.y: Replace "parse_gdbarch" with method call.
8554 * parse.c (write_dollar_variable, insert_type_address_space):
8555 Replace "parse_gdbarch" with method call.
8556 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8557 call.
8558 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8559 call.
8560 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8561 "parse_gdbarch" with method call.
8562 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8563 with method call.
8564 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8565 "parse_gdbarch" with method call.
8566 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8567 "parse_gdbarch" with method call.
8568 * c-exp.y (parse_type, parse_number, classify_name): Replace
8569 "parse_gdbarch" with method call.
8570 * ada-lex.l: Replace "parse_gdbarch" with method call.
8571 * ada-exp.y (parse_type, find_primitive_type, type_char)
8572 (type_system_address): Replace "parse_gdbarch" with method call.
8573
1201a264
TT
85742019-04-04 Tom Tromey <tom@tromey.com>
8575
8576 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8577 * stap-probe.c (stap_parse_argument): Update.
8578 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8579 initial_size parameter.
8580 * rust-exp.y (rust_lex_tests): Update.
8581 * parse.c (parser_state): Update.
8582 (parse_exp_in_context): Update.
8583 * parser-defs.h (struct parser_state) <parser_state>: Remove
8584 "initial_size" parameter.
8585
e3980ce2
TT
85862019-04-04 Tom Tromey <tom@tromey.com>
8587
8588 * parser-defs.h (increase_expout_size): Don't declare.
8589 * parse.c (increase_expout_size): Now static.
8590
e9f8e3f1
TS
85912019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8592
8593 * gnu-nat.c (gnu_nat_target::wait): Fix
8594 target_waitstatus_to_string call.
8595
d7df6549
AB
85962019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8597
8598 * eval.c (evaluate_subexp_standard): Handle internal functions
8599 during Fortran function call handling.
8600
8bdc1658
AB
86012019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8602
8603 * NEWS: Mention new internal functions.
8604 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8605 (read_base_type): Use dwarf2_init_complex_target_type.
8606 * value.c (creal_internal_fn): New function.
8607 (cimag_internal_fn): New function.
8608 (_initialize_values): Register new internal functions.
8609
c29705b7
PW
86102019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8611
8612 * infrun.c (stop_all_threads): If debug_infrun, always
8613 trace the wait status after wait_one, using
8614 target_waitstatus_to_string and target_pid_to_str.
8615 (handle_inferior_event): Replace various trace of
8616 wait status kind by a single trace.
8617 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8618 wait status kind image by target_waitstatus_to_string.
8619 * target/waitstatus.c (target_waitstatus_to_string): Fix
8620 obsolete comment.
8621
05caa1d2
TT
86222019-04-01 Tom Tromey <tromey@adacore.com>
8623
8624 PR symtab/23331:
8625 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8626
9d1447e0
SDJ
86272019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8628 Pedro Alves <palves@redhat.com>
8629
8630 * top.c (quit_force): Call 'finalize_values'.
8631 * value.c (finalize_values): New function.
8632 * value.h (finalize_values): Declare.
8633
7734102d
EZ
86342019-03-30 Eli Zaretskii <eliz@gnu.org>
8635
8636 * NEWS: Announce $_gdb_major and $_gdb_minor.
8637
8638 * top.c (init_gdb_version_vars): New function.
8639 (gdb_init): Call init_gdb_version_vars.
8640
188e1fa9
TT
86412019-03-29 Tom Tromey <tromey@adacore.com>
8642
8643 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8644 help text. Remove dead code.
8645
2880242d
KS
86462019-03-29 Keith Seitz <keiths@redhat.com>
8647
8648 From Siddhesh Poyarekar:
8649 * f-lang.h (f77_get_upperbound): Return LONGEST.
8650 (f77_get_lowerbound): Likewise.
8651 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8652 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8653 print them.
8654 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8655 plongest to format print it.
8656 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8657 (f77_get_upperbound): Likewise.
8658 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8659 LOWER_BOUND to LONGEST.
8660 (f77_create_arrayprint_offset_tbl): Likewise.
8661
cc1defb1
KS
86622019-03-29 Keith Seitz <keiths@redhat.com>
8663
8664 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8665 %s/pulongest for TYPE_LENGTH instead of %d in format
8666 strings.
8667 * ada-typerint.c (ada_print_type): Likewise.
8668 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8669 * compile/compile-c-support.c (generate_register_struct): Likewise.
8670 * gdbtypes.c (recursive_dump_type): Likewise.
8671 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8672 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8673 instead of %d in format strings.
8674 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8675 to std::min to ULONGEST.
8676 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8677 instead of %d in format strings.
8678 * tracepoint.c (info_scope_command): Likewise.
8679 * typeprint.c (print_offset_data::update)
8680 (print_offset_data::finish): Likewise.
8681 * xtensa-tdep.c (xtensa_store_return_value)
8682 (xtensa_push_dummy_call): Likewise.
8683
e432ccf1
JT
86842019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8685
8686 * windows-nat.c (display_selector): Fixed format specifications
8687 for 64-bit Cygwin.
8688
65d2b333
PW
86892019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8690
8691 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8692
f489207e
SL
86932019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8694
8695 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8696 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8697 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8698 (nios2_linux_init_abi): Install it.
8699
bffa1015
AH
87002019-03-28 Alan Hayward <alan.hayward@arm.com>
8701
8702 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8703
fc96163a
AH
87042019-03-28 Alan Hayward <alan.hayward@arm.com>
8705
8706 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8707
20dc7e9b
PW
87082019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8709 Tom Tromey <tromey@adacore.com>
8710
8711 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8712
7f5331a8
JB
87132019-03-26 Joel Brobecker <brobecker@adacore.com>
8714
8715 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8716 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8717 method to compute the bounds of range types. Also print "[evaluated]"
8718 if the bounds' values come from a dynamic evaluation.
8719
18c77628
AB
87202019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8721
8722 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8723 whitespace when pretty printing is on.
8724
53c973f2
AH
87252019-03-26 Alan Hayward <alan.hayward@arm.com>
8726
e79be6e5 8727 * ppc-linux-nat.c: Add include.
53c973f2 8728
d851aa71
AH
87292019-03-26 Alan Hayward <alan.hayward@arm.com>
8730
e79be6e5 8731 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 8732
2fe7bab7
AH
87332019-03-26 Alan Hayward <alan.hayward@arm.com>
8734
e79be6e5 8735 * arm-linux-nat.c: Add include.
2fe7bab7 8736
068ef30e
SM
87372019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8738
8739 * source-cache.c (source_cache::get_source_lines): Re-read
8740 fullname after calling open_source_file.
8741
81a24d04
JB
87422019-03-25 John Baldwin <jhb@FreeBSD.org>
8743
8744 * NEWS: Mention TLS support for FreeBSD.
8745
79e7ae11
TT
87462019-03-25 Tom Tromey <tromey@adacore.com>
8747
8748 * minsyms.c (BUNCH_SIZE): Update comment.
8749 (~minimal_symbol_reader): Remove old comment.
8750 (compact_minimal_symbols): Update comment.
8751 (minimal_symbol_reader::install): Remove old comment. Update
8752 other comments.
8753
d45963c2
AH
87542019-03-25 Alan Hayward <alan.hayward@arm.com>
8755
8756 * s390-linux-nat.c: Add include.
8757
0f83012e
AH
87582019-03-25 Alan Hayward <alan.hayward@arm.com>
8759
8760 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8761 Call linux_get_hwcap.
8762 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8763 Likewise.
8764 (aarch64_linux_get_hwcap): Remove function.
8765 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8766 declaration.
8767 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8768 linux_get_hwcap.
8769 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8770 * linux-tdep.c (linux_get_hwcap): Add function.
8771 (linux_get_hwcap2): Likewise.
8772 * linux-tdep.h (linux_get_hwcap): Add declaration.
8773 (linux_get_hwcap2): Likewise.
8774 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8775 (ppc_linux_get_hwcap2): Likewise.
8776 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8777 linux_get_hwcap.
8778 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8779 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8780 (ppc_linux_nat_target::read_description): Likewise.
8781 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8782 * s390-linux-nat.c: Likewise.
8783 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8784
6640a367
TT
87852019-03-24 Tom Tromey <tom@tromey.com>
8786
8787 * ada-lang.c (standard_lookup): Simplify initialization.
8788 (ada_lookup_symbol_nonlocal): Simplify return.
8789 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8790 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8791 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8792 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8793 initialization.
8794 * solib.c (solib_global_lookup): Simplify.
8795 * symtab.c (null_block_symbol): Remove.
8796 (symbol_cache_lookup): Simplify returns.
8797 (lookup_language_this): Simplify returns.
8798 (lookup_symbol_aux): Simplify return.
8799 (lookup_local_symbol): Simplify returns.
8800 (lookup_global_symbol_from_objfile): Simplify return.
8801 (lookup_symbol_in_objfile_symtabs)
8802 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8803 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8804 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8805 * cp-namespace.c (cp_lookup_bare_symbol)
8806 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8807 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8808 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8809 (cp_lookup_symbol_via_imports): Simplify initialization.
8810 (find_symbol_in_baseclass): Likewise.
8811 * symtab.h (null_block_symbol): Remove.
8812 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8813 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8814 (d_lookup_symbol_module): Likewise.
8815 (find_symbol_in_baseclass): Simplify initialization.
8816
a930ebcd
TT
88172019-03-24 Tom Tromey <tom@tromey.com>
8818
8819 * expression.h: Don't include symtab.h.
8820 (struct block): Forward declare.
8821
582942f4
TT
88222019-03-24 Tom Tromey <tom@tromey.com>
8823
8824 * c-exp.y (typebase): Remove casts.
8825 * gdbtypes.c (lookup_unsigned_typename, )
8826 (lookup_signed_typename): Remove cast.
8827 * eval.c (parse_to_comma_and_eval): Remove cast.
8828 * parse.c (write_dollar_variable): Remove cast.
8829 * block.h (struct block) <superblock>: Now const.
8830 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8831 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8832 (map_block): Make "block" const.
8833 * symfile.h (struct quick_symbol_functions)
8834 <map_matching_symbols>: Constify block argument to "callback".
8835 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8836 const.
8837 (find_pc_sect_compunit_symtab): Make "b" const.
8838 (find_symbol_at_address): Likewise.
8839 (search_symbols): Likewise.
8840 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8841 (dw2_debug_names_lookup_symbol): Likewise.
8842 (dw2_map_matching_symbols): Update.
8843 * p-valprint.c (pascal_val_print): Remove "block".
8844 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8845 (aux_add_nonlocal_symbols): Make "block" const.
8846 (resolve_subexp): Remove cast.
8847 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8848 const.
8849 (iterate_over_file_blocks): Likewise.
8850 * f-exp.y (%union) <bval>: Remove.
8851 * coffread.c (patch_opaque_types): Make "b" const.
8852 * spu-tdep.c (spu_catch_start): Make "block" const.
8853 * c-valprint.c (print_unpacked_pointer): Remove "block".
8854 * symmisc.c (dump_symtab_1): Make "b" const.
8855 (block_depth): Make "block" const.
8856 * d-exp.y (%union) <bval>: Remove.
8857 * cp-support.h (cp_lookup_rtti_type): Update.
8858 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8859 * psymtab.c (psym_lookup_symbol): Make "block" const.
8860 (maintenance_check_psymtabs): Make "b" const.
8861 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8862 (enumerate_locals, enumerate_args): Update.
8863 * python/py-symtab.c (stpy_global_block): Make "block" const.
8864 (stpy_static_block): Likewise.
8865 * inline-frame.c (block_starting_point_at): Make "new_block"
8866 const.
8867 * block.c (find_block_in_blockvector): Make return type const.
8868 (blockvector_for_pc_sect): Make "b" const.
8869 (find_block_in_blockvector): Make "b" const.
8870
7ad417dd
TT
88712019-03-23 Tom Tromey <tom@tromey.com>
8872
8873 * varobj.c (varobj_create): Update.
8874 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8875 * printcmd.c (display_command, do_one_display): Don't reset
8876 innermost_block.
8877 * parser-defs.h (enum innermost_block_tracker_type): Move to
8878 expression.h.
8879 (innermost_block): Update comment.
8880 * parse.c (parse_exp_1): Add tracker_types parameter.
8881 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8882 tracker_types parameter. Reset innermost_block.
8883 (parse_exp_in_context): Remove.
8884 (parse_expression_for_completion): Update.
8885 * objfiles.c (~objfile): Don't reset expression_context_block or
8886 innermost_block.
8887 * expression.h (enum innermost_block_tracker_type): Move from
8888 parser-defs.h.
8889 (parse_exp_1): Add tracker_types parameter.
8890 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8891 reset innermost_block.
8892
b366c208
TT
88932019-03-23 Tom Tromey <tom@tromey.com>
8894
8895 * objfiles.h: Include bcache.h.
8896
9bb9b2f9
TT
88972019-03-23 Tom Tromey <tom@tromey.com>
8898
8899 * linespec.c (get_current_search_block): Use
8900 scoped_restore_current_language.
8901 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8902
59c28372
AH
89032019-03-22 Alan Hayward <alan.hayward@arm.com>
8904 Jiong Wang <jiong.wang@arm.com>
8905
8906 * aarch64-linux-tdep.c
8907 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8908 section.
8909 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8910
17e116a7
AH
89112019-03-22 Alan Hayward <alan.hayward@arm.com>
8912 Jiong Wang <jiong.wang@arm.com>
8913
8914 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8915 instructions.
8916 (aarch64_analyze_prologue_test): Add PACIASP test.
8917 (aarch64_prologue_prev_register): Unmask PC value.
8918
11e1b75f
AH
89192019-03-22 Alan Hayward <alan.hayward@arm.com>
8920 Jiong Wang <jiong.wang@arm.com>
8921
8922 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8923 (aarch64_dwarf2_prev_register): Unmask PC value.
8924 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8925 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8926 DW_CFA_AARCH64_negate_ra_state.
8927 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8928
34dcc7cf
AH
89292019-03-22 Alan Hayward <alan.hayward@arm.com>
8930 Jiong Wang <jiong.wang@arm.com>
8931
8932 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8933 registers.
8934 (aarch64_pseudo_register_name): Likewise.
8935 (aarch64_pseudo_register_type): Likewise.
8936 (aarch64_pseudo_register_reggroup_p): Likewise.
8937 (aarch64_gdbarch_init): Add pauth registers.
8938 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8939 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8940 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8941 (struct gdbarch_tdep): Add regnum for ra_state.
8942
1ef53e6b
AH
89432019-03-22 Alan Hayward <alan.hayward@arm.com>
8944 Jiong Wang <jiong.wang@arm.com>
8945
8946 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8947
76bed0fd
AH
89482019-03-22 Alan Hayward <alan.hayward@arm.com>
8949 Jiong Wang <jiong.wang@arm.com>
8950
8951 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8952 function.
8953 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8954 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8955 (aarch64_gdbarch_init): Add puth registers.
8956 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8957 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8958 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8959
ee4fbcfa
AH
89602019-03-22 Alan Hayward <alan.hayward@arm.com>
8961 Jiong Wang <jiong.wang@arm.com>
8962
8963 * aarch64-linux-nat.c
8964 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8965 * aarch64-linux-tdep.c
8966 (aarch64_linux_core_read_description): Likewise.
8967 (aarch64_linux_get_hwcap): New function.
8968 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8969 (aarch64_linux_get_hwcap): New declaration.
8970
6dc0ebde
AH
89712019-03-22 Alan Hayward <alan.hayward@arm.com>
8972 Jiong Wang <jiong.wang@arm.com>
8973
8974 * aarch64-linux-nat.c
8975 (aarch64_linux_nat_target::read_description): Add pauth param.
8976 * aarch64-linux-tdep.c
8977 (aarch64_linux_core_read_description): Likewise.
8978 * aarch64-tdep.c (struct target_desc): Add in pauth.
8979 (aarch64_read_description): Add pauth param.
8980 (aarch64_gdbarch_init): Likewise.
8981 * aarch64-tdep.h (aarch64_read_description): Likewise.
8982 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8983 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8984 * features/Makefile: Add new files.
8985 * features/aarch64-pauth.c: New file.
8986 * features/aarch64-pauth.xml: New file.
8987
595915c1
TT
89882019-03-20 Tom Tromey <tromey@adacore.com>
8989
8990 * infrun.c (handle_inferior_event): Rename from
8991 handle_inferior_event_1. Create a scoped_value_mark.
8992 (handle_inferior_event): Remove.
8993
4c7d57e7
TT
89942019-03-19 Tom Tromey <tromey@adacore.com>
8995
8996 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8997 * infrun.h (print_stop_event): Add "displays" parameter.
8998 * infrun.c (print_stop_event): Add "displays" parameter.
8999
cb246234
PA
90002019-03-19 Pedro Alves <palves@redhat.com>
9001
9002 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9003 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9004 to -1. Fix TABs vs spaces.
9005 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9006 * tui/tui-out.h (tui_ui_out) Add intro comments.
9007 <m_line, m_start_of_line>: In-class initialize, and add describing
9008 comment.
9009
3a0e45b2
AH
90102019-03-18 Alan Hayward <alan.hayward@arm.com>
9011
9012 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9013 variable names.
9014 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9015
5371b850
PA
90162019-03-18 Pedro Alves <palves@redhat.com>
9017 Eli Zaretskii <eliz@gnu.org>
9018
9019 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9020 m_line and m_start_of_line.
9021
b17c4cd0
EZ
90222019-03-18 Eli Zaretskii <eliz@gnu.org>
9023
9024 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9025 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9026 it returns a newline. This fixes a regression in TU mode, whereby
9027 the next line is output on the same screen line as the user input.
9028
4bd56d18
TT
90292019-03-18 Tom Tromey <tromey@adacore.com>
9030
9031 * minsyms.c (minimal_symbol_reader::install): Remove call to
9032 obstack_blank.
9033
55c10aca
PA
90342019-03-18 Pedro Alves <palves@redhat.com>
9035
9036 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9037 New globals.
9038 (apply_style): New, factored out from ...
9039 (apply_ansi_escape): ... this. Handle reverse video mode.
9040 (tui_set_reverse_mode): New function.
9041 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9042 * tui/tui-winsource.c (tui_show_source_line): Use
9043 tui_set_reverse_mode instead of setting A_STANDOUT.
9044 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9045 New setter methods.
9046
647bb750
HD
90472019-03-18 Hannes Domani <ssbssa@yahoo.de>
9048
9049 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9050 Handle tabs.
9051
bff8c71f
TT
90522019-03-18 Tom Tromey <tromey@adacore.com>
9053
9054 * ada-lang.c (empty_array): Add "high" parameter.
9055 (ada_evaluate_subexp): Update.
9056
58785d98
ST
90572019-03-17 Sergei Trofimovich <siarheit@google.com>
9058
9059 * unittests/string_view-selftests.c: Define
9060 _initialize_string_view_selftests unconditionally.
9061
d4cbef22
ВМ
90622019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9063
9064 PR gdb/24350
9065 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9066
fce4c071
ВМ
90672019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9068
9069 PR gdb/24351
9070 * windows-nat.c (display_selector): Fix format specifiers.
9071
f7f0a123
EZ
90722019-03-17 Eli Zaretskii <eliz@gnu.org>
9073
9074 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9075 tui_refill_source_window instead of tui_refresh_win, to update the
9076 current execution line. This fixes redisplay of the current line
9077 when stepping through the code with "next" or "step".
9078
ab42892f
EZ
90792019-03-16 Eli Zaretskii <eliz@gnu.org>
9080
9081 * source-cache.c (source_cache::get_source_lines): Call
9082 find_source_lines to initialize s->nlines. This fixes vertical
9083 scrolling of TUI source window when the DOWN arrow is pressed.
9084
8d8c087f
PW
90852019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9086
9087 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9088 linux-thread-db.c (_initialize_thread_db): Likewise.
9089
798e1c30
EZ
90902019-03-16 Eli Zaretskii <eliz@gnu.org>
9091
9092 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9093 wclrtoeol in tui_show_source_line". This reverts changes made in
9094 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9095
eefba3da
TT
90962019-03-15 Tom Tromey <tom@tromey.com>
9097
9098 * symtab.h (struct minimal_symbol): Derive from
9099 general_symbol_info.
9100 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9101 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9102 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9103 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9104 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9105 (MSYMBOL_SEARCH_NAME): Update.
9106 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9107 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9108 * minsyms.c (minimal_symbol_reader::record_full): Update.
9109
0de2420c
TT
91102019-03-15 Tom Tromey <tom@tromey.com>
9111
9112 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9113
042d75e4
TT
91142019-03-15 Tom Tromey <tom@tromey.com>
9115
9116 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9117 unique_xmalloc_ptr.
9118 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9119 Update.
9120 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9121 (build_minimal_symbol_hash_tables)
9122 (minimal_symbol_reader::install): Update.
9123
db92718b
TT
91242019-03-15 Tom Tromey <tom@tromey.com>
9125
9126 * symtab.c (create_demangled_names_hash): Update.
9127 (symbol_set_names): Update.
9128 * objfiles.h (struct objfile_per_bfd_storage)
9129 <demangled_names_hash>: Now an htab_up.
9130 * objfiles.c (objfile_per_bfd_storage): Simplify.
9131
d6797f46
TT
91322019-03-15 Tom Tromey <tom@tromey.com>
9133
9134 * objfiles.h (struct objfile_per_bfd_storage): Declare
9135 destructor.
9136 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9137 New.
9138 (get_objfile_bfd_data): Use new. Don't initialize
9139 language_of_main.
9140 (free_objfile_per_bfd_storage): Remove.
9141 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9142
741d7538
TT
91432019-03-15 Tom Tromey <tom@tromey.com>
9144
9145 * symfile.c (reread_symbols): Update.
9146 * objfiles.c (objfile::objfile): Update.
9147 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9148 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9149 comment.
9150 (minimal_symbol_reader::install): Update.
9151 (terminate_minimal_symbol_table): Remove.
9152 * jit.c (jit_object_close_impl): Update.
9153
788c80d1
TT
91542019-03-15 Tom Tromey <tom@tromey.com>
9155
9156 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9157 initializations.
9158
1b7a07cb
TT
91592019-03-15 Tom Tromey <tom@tromey.com>
9160
9161 * objfiles.h (struct objfile_per_bfd_storage)
9162 <demangled_hash_languages>: Now a bitset.
9163 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9164 (lookup_minimal_symbol): Update.
9165
3db066bc
TT
91662019-03-15 Tom Tromey <tom@tromey.com>
9167
9168 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9169 Don't return the symbol.
9170 * coffread.c (record_minimal_symbol): Use record_full.
9171
3fff2c37
EZ
91722019-03-14 Eli Zaretskii <eliz@gnu.org>
9173
9174 The MS-Windows port of ncurses fails to switch to a color pair if
9175 one or both of the colors are the implicit default colors. This
9176 change records the default colors when TUI is initialized, and
9177 then specifies them explicitly when a color pair uses the default
9178 colors. This allows color styling in TUI mode on MS-Windows.
9179
9180 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9181 ncurses_norm_attr.
9182 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9183 colors in ncurses_norm_attr.
9184 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9185 "none", replace it with the default color recorded in
9186 ncurses_norm_attr.
9187
3b336828
TT
91882019-03-14 Tom Tromey <tromey@adacore.com>
9189
9190 * source-cache.h (class source_cache) <get_source_lines>: Return
9191 std::string.
9192 * source-cache.c (source_cache::extract_lines): Handle case where
9193 first_pos==npos. Return std::string.
9194 (source_cache::get_source_lines): Update.
9195
d085f989
TT
91962019-03-14 Tom Tromey <tromey@adacore.com>
9197
9198 * NEWS: Add item for "style sources" commands.
9199 * source-cache.c (source_cache::get_source_lines): Check
9200 source_styling.
9201 * cli/cli-style.c (source_styling): New global.
9202 (_initialize_cli_style): Add "style sources" commands.
9203 (show_style_sources): New function.
9204 * cli/cli-style.h (source_styling): Declare.
9205
6f11e682
TT
92062019-03-14 Pedro Alves <palves@redhat.com>
9207 Tom Tromey <tromey@adacore.com>
9208
9209 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9210 * tui/tui-winsource.c (tui_refill_source_window): New function,
9211 from...
9212 (tui_horizontal_source_scroll): ... here. Move some logic.
9213 * cli/cli-style.c (set_style_enabled): Notify new observable.
9214 * tui/tui-hooks.c (tui_redisplay_source): New function.
9215 (tui_attach_detach_observers): Attach or detach
9216 tui_redisplay_source.
9217 * observable.h (source_styling_changed): New observable.
9218 * observable.c: Define source_styling_changed observable.
9219
a068643d
TT
92202019-03-13 Tom Tromey <tromey@adacore.com>
9221
9222 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9223 (i386_gnu_nat_target::store_registers): Update.
9224 * target-debug.h (target_debug_print_std_string): New macro.
9225 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9226 * windows-tdep.c (display_one_tib): Update.
9227 * tui/tui-stack.c (tui_make_status_line): Update.
9228 * top.c (print_inferior_quit_action): Update.
9229 * thread.c (thr_try_catch_cmd): Update.
9230 (add_thread_with_info): Update.
9231 (thread_target_id_str): Update.
9232 (thr_try_catch_cmd): Update.
9233 (thread_command): Update.
9234 (thread_find_command): Update.
9235 * record-btrace.c (record_btrace_target::info_record)
9236 (record_btrace_resume_thread, record_btrace_target::resume)
9237 (record_btrace_cancel_resume, record_btrace_step_thread)
9238 (record_btrace_target::wait, record_btrace_target::wait)
9239 (record_btrace_target::wait, record_btrace_target::stop): Update.
9240 * progspace.c (print_program_space): Update.
9241 * process-stratum-target.c
9242 (process_stratum_target::thread_address_space): Update.
9243 * linux-fork.c (linux_fork_mourn_inferior)
9244 (detach_checkpoint_command, info_checkpoints_command)
9245 (linux_fork_context): Update.
9246 (linux_fork_detach): Update.
9247 (class scoped_switch_fork_info): Update.
9248 (delete_checkpoint_command): Update.
9249 * infrun.c (follow_fork_inferior): Update.
9250 (follow_fork_inferior): Update.
9251 (proceed_after_vfork_done): Update.
9252 (handle_vfork_child_exec_or_exit): Update.
9253 (follow_exec): Update.
9254 (displaced_step_prepare_throw): Update.
9255 (displaced_step_restore): Update.
9256 (start_step_over): Update.
9257 (resume_1): Update.
9258 (clear_proceed_status_thread): Update.
9259 (proceed): Update.
9260 (print_target_wait_results): Update.
9261 (do_target_wait): Update.
9262 (context_switch): Update.
9263 (stop_all_threads): Update.
9264 (restart_threads): Update.
9265 (finish_step_over): Update.
9266 (handle_signal_stop): Update.
9267 (switch_back_to_stepped_thread): Update.
9268 (keep_going_pass_signal): Update.
9269 (print_exited_reason): Update.
9270 (normal_stop): Update.
9271 * inferior.c (inferior_pid_to_str): Change return type.
9272 (print_selected_inferior): Update.
9273 (add_inferior): Update.
9274 (detach_inferior): Update.
9275 * dummy-frame.c (fprint_dummy_frames): Update.
9276 * dcache.c (dcache_info_1): Update.
9277 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9278 (btrace_fetch, btrace_clear): Update.
9279 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9280 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9281 type.
9282 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9283 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9284 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9285 * gdbarch.c, gdbarch.h: Rebuild.
9286 * gdbarch.sh (core_pid_to_str): Change return type.
9287 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9288 return type.
9289 (windows_nat_target::pid_to_str): Change return type.
9290 (windows_delete_thread): Update.
9291 (windows_nat_target::attach): Update.
9292 (windows_nat_target::files_info): Update.
9293 * target-delegates.c: Rebuild.
9294 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9295 return type.
9296 (sol_thread_target::pid_to_str): Change return type.
9297 * remote.c (class remote_target) <pid_to_str>: Change return
9298 type.
9299 (remote_target::pid_to_str): Change return type.
9300 (extended_remote_target::attach, remote_target::remote_stop_ns)
9301 (remote_target::remote_notif_remove_queued_reply)
9302 (remote_target::push_stop_reply, remote_target::disable_btrace):
9303 Update.
9304 (extended_remote_target::attach): Update.
9305 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9306 type.
9307 (gdbsim_target::pid_to_str): Change return type.
9308 * ravenscar-thread.c (struct ravenscar_thread_target)
9309 <pid_to_str>: Change return type.
9310 (ravenscar_thread_target::pid_to_str): Change return type.
9311 * procfs.c (class procfs_target) <pid_to_str>: Change return
9312 type.
9313 (procfs_target::pid_to_str): Change return type.
9314 (procfs_target::attach): Update.
9315 (procfs_target::detach): Update.
9316 (procfs_target::fetch_registers): Update.
9317 (procfs_target::store_registers): Update.
9318 (procfs_target::wait): Update.
9319 (procfs_target::files_info): Update.
9320 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9321 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9322 return type.
9323 (nto_procfs_target::pid_to_str): Change return type.
9324 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9325 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9326 return type.
9327 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9328 (exit_lwp): Update.
9329 (attach_proc_task_lwp_callback, get_detach_signal)
9330 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9331 (linux_nat_target::resume, wait_lwp, stop_callback)
9332 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9333 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9334 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9335 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9336 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9337 type.
9338 (inf_ptrace_target::attach): Update.
9339 (inf_ptrace_target::files_info): Update.
9340 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9341 type.
9342 (go32_nat_target::pid_to_str): Change return type.
9343 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9344 (gnu_nat_target::wait): Update.
9345 (gnu_nat_target::wait): Update.
9346 (gnu_nat_target::resume): Update.
9347 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9348 (fbsd_nat_target::wait): Update.
9349 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9350 type.
9351 (darwin_nat_target::attach): Update.
9352 * corelow.c (class core_target) <pid_to_str>: Change return type.
9353 (core_target::pid_to_str): Change return type.
9354 * target.c (normal_pid_to_str): Change return type.
9355 (default_pid_to_str): Likewise.
9356 (target_pid_to_str): Change return type.
9357 (target_translate_tls_address): Update.
9358 (target_announce_detach): Update.
9359 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9360 return type.
9361 (bsd_uthread_target::pid_to_str): Change return type.
9362 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9363 type.
9364 (bsd_kvm_target::pid_to_str): Change return type.
9365 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9366 return type.
9367 (aix_thread_target::pid_to_str): Change return type.
9368 * target.h (struct target_ops) <pid_to_str>: Change return type.
9369 (target_pid_to_str, normal_pid_to_str): Likewise.
9370 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9371 type.
9372 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9373 type.
9374 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9375 return type.
9376 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9377 type.
9378 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9379 type.
9380 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9381 return type.
9382
b4be1b06
SM
93832019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9384
9385 * NEWS: Mention that the new default MI version is 3. Mention
9386 changes to the output of commands and events that deal with
9387 multi-location breakpoints.
9388 * breakpoint.c: Include "mi/mi-out.h".
9389 (print_one_breakpoint): Change output syntax if using MI version
9390 >= 3.
9391 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9392 New.
9393 (mi_multi_location_breakpoint_output_fixed): New.
9394 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9395 (mi_cmd_fix_multi_location_breakpoint_output): New.
9396 (mi_multi_location_breakpoint_output_fixed): New.
9397 * mi/mi-cmds.c (mi_cmds): Register command
9398 -fix-multi-location-breakpoint-output.
9399 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9400 interpreter "mi".
9401
8e5e5494
SM
94022019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9403
9404 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9405 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9406 instantiate mi_ui_out based on interpreter name.
9407 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9408 * mi/mi-main.c (mi_load_progress): Likewise.
9409
197df35e
JB
94102019-03-12 John Baldwin <jhb@FreeBSD.org>
9411
9412 * NEWS: Combine separate "New targets" sections for 8.3.
9413
8399425f
JB
94142019-03-12 John Baldwin <jhb@FreeBSD.org>
9415
9416 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9417 (ppcfbsd_init_abi): Install gdbarch
9418 "fetch_tls_load_module_address" and "get_thread_local_address"
9419 methods.
9420
b0f87ed0
JB
94212019-03-12 John Baldwin <jhb@FreeBSD.org>
9422
9423 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9424 (riscv_fbsd_init_abi): Install gdbarch
9425 "fetch_tls_load_module_address" and "get_thread_local_address"
9426 methods.
9427
ce25aa57
JB
94282019-03-12 John Baldwin <jhb@FreeBSD.org>
9429
9430 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9431 (i386fbsd_init_abi): Install gdbarch
9432 "fetch_tls_load_module_address" and "get_thread_local_address"
9433 methods.
9434
f5424cfa
JB
94352019-03-12 John Baldwin <jhb@FreeBSD.org>
9436
9437 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9438 (amd64fbsd_init_abi): Install gdbarch
9439 "fetch_tls_load_module_address" and "get_thread_local_address"
9440 methods.
9441
945f3901
JB
94422019-03-12 John Baldwin <jhb@FreeBSD.org>
9443
9444 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9445 (struct fbsd_pspace_data): New type.
9446 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9447 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9448 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9449 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9450 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9451
ef0bd204
JB
94522019-03-12 John Baldwin <jhb@FreeBSD.org>
9453
9454 * gdbtypes.c (lookup_struct_elt): New function.
9455 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9456 * gdbtypes.h (struct struct_elt): New type.
9457 (lookup_struct_elt): New prototype.
9458
36c53a02
JB
94592019-03-12 John Baldwin <jhb@FreeBSD.org>
9460
9461 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9462 remove disabled code block.
9463
6e056c81
JB
94642019-03-12 John Baldwin <jhb@FreeBSD.org>
9465
9466 * gdbarch.sh (get_thread_local_address): New method.
9467 * gdbarch.h, gdbarch.c: Regenerate.
9468 * target.c (target_translate_tls_address): Use
9469 gdbarch_get_thread_local_address if present instead of
9470 target::get_thread_local_address.
9471
cd250a18
JB
94722019-03-12 John Baldwin <jhb@FreeBSD.org>
9473
9474 * target.h (target::get_thread_local_address): Update comment.
9475
df22c1e5
JB
94762019-03-12 John Baldwin <jhb@FreeBSD.org>
9477
9478 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9479 objfile->separate_debug_objfile_backlink if not NULL.
9480
dd6876c9
JB
94812019-03-12 John Baldwin <jhb@FreeBSD.org>
9482
9483 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9484 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9485 (amd64bsd_store_inferior_registers): Likewise.
9486 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9487 Enable segment base registers.
9488 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9489 PT_GETFSBASE and PT_GETGSBASE.
9490 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9491 PT_SETGSBASE.
9492 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9493 segment base registers.
9494 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9495
1163a4b7
JB
94962019-03-12 John Baldwin <jhb@FreeBSD.org>
9497
9498 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9499 Update calls to i386_target_description to add 'segments'
9500 parameter.
9501 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9502 add segment base registers.
9503 * arch/i386.c (i386_create_target_description): Add 'segments'
9504 parameter to enable segment base registers.
9505 * arch/i386.h (i386_create_target_description): Likewise.
9506 * features/i386/32bit-segments.xml: New file.
9507 * features/i386/32bit-segments.c: Generate.
9508 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9509 call to i386_target_description to add 'segments' parameter.
9510 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9511 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9512 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9513 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9514 if feature is present.
9515 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9516 Add 'segments' parameter to call to i386_target_description.
9517 (i386_target_description): Add 'segments' parameter to enable
9518 segment base registers.
9519 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9520 to call to i386_target_description.
9521 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9522 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9523 Define I386_NUM_REGS.
9524 (i386_target_description): Add 'segments' parameter to enable
9525 segment base registers.
9526
3a350822
EZ
95272019-03-12 Eli Zaretskii <eliz@gnu.org>
9528
9529 PR/24325
9530 * source-cache.c: #undef open and close, to avoid unresolved
9531 externals during linking.
9532
ffdd69cf
TT
95332019-03-12 Tom Tromey <tromey@adacore.com>
9534
9535 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9536 const. Add initializers.
9537 (_initialize_remote): Don't initialize ptid globals.
9538
ec148c57
PA
95392019-03-12 Pedro Alves <palves@redhat.com>
9540
9541 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9542
32764270
PA
95432019-03-12 Pedro Alves <palves@redhat.com>
9544
9545 * cp-name-parser.y (main): Remove unused 'len' variable.
9546
17547186
TT
95472019-03-12 Tom Tromey <tromey@adacore.com>
9548
9549 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9550 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9551
d3a70e03
TT
95522019-03-12 Tom Tromey <tromey@adacore.com>
9553
9554 * linux-nat.c (iterate_over_lwps): Update.
9555 (stop_callback): Remove parameter.
9556 (stop_wait_callback, detach_callback, resume_set_callback)
9557 (select_singlestep_lwp_callback, set_ignore_sigint)
9558 (status_callback, resumed_callback, resume_clear_callback)
9559 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9560 data parameter.
9561 (linux_nat_target::detach, linux_nat_target::resume)
9562 (linux_stop_and_wait_all_lwps, select_event_lwp)
9563 (linux_nat_filter_event, linux_nat_wait_1)
9564 (linux_nat_target::kill, linux_nat_target::stop)
9565 (linux_nat_target::stop): Update.
9566 (linux_nat_resume_callback): Change type.
9567 (resume_stopped_resumed_lwps, count_events_callback)
9568 (select_event_lwp_callback): Likewise.
9569 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9570 * arm-linux-nat.c (struct update_registers_data): Remove.
9571 (update_registers_callback): Change type.
9572 (arm_linux_insert_hw_breakpoint1): Update.
9573 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9574 parameter.
9575 (x86_linux_dr_set_addr): Update.
9576 (x86_linux_dr_set_control): Update.
9577 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9578 (iterate_over_lwps): Use gdb::function_view.
9579 * nat/aarch64-linux-hw-point.c (struct
9580 aarch64_dr_update_callback_param): Remove.
9581 (debug_reg_change_callback): Change type.
9582 (aarch64_notify_debug_reg_change): Update.
9583 * s390-linux-nat.c (s390_refresh_per_info): Update.
9584
82cb27ff
TT
95852019-03-11 Tom Tromey <tromey@adacore.com>
9586
9587 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9588 redundant assignment to "this_cu".
9589
568c0683
SM
95902019-03-08 Simon Marchi <simon.marchi@efficios.com>
9591
9592 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9593
f09ce22d
SM
95942019-03-08 Simon Marchi <simon.marchi@efficios.com>
9595
9596 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9597 from...
9598 (rank_one_type): ... this.
9599
595f96a9
SM
96002019-03-08 Simon Marchi <simon.marchi@efficios.com>
9601
9602 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9603 from...
9604 (rank_one_type): ... this.
9605
2598a94b
SM
96062019-03-08 Simon Marchi <simon.marchi@efficios.com>
9607
9608 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9609 from...
9610 (rank_one_type): ... this.
9611
7f17b20d
SM
96122019-03-08 Simon Marchi <simon.marchi@efficios.com>
9613
9614 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9615 from...
9616 (rank_one_type): ... this.
9617
2c509035
SM
96182019-03-08 Simon Marchi <simon.marchi@efficios.com>
9619
9620 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9621 from...
9622 (rank_one_type): ... this.
9623
0dd322dc
SM
96242019-03-08 Simon Marchi <simon.marchi@efficios.com>
9625
9626 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9627 from...
9628 (rank_one_type): ... this.
9629
41ea4728
SM
96302019-03-08 Simon Marchi <simon.marchi@efficios.com>
9631
9632 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9633 from...
9634 (rank_one_type): ... this.
9635
793cd1d2
SM
96362019-03-08 Simon Marchi <simon.marchi@efficios.com>
9637
9638 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9639 from...
9640 (rank_one_type): ... this.
9641
34910087
SM
96422019-03-08 Simon Marchi <simon.marchi@efficios.com>
9643
9644 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9645 from...
9646 (rank_one_type): ... this.
9647
f1f832d6
SM
96482019-03-08 Simon Marchi <simon.marchi@efficios.com>
9649
9650 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9651 from...
9652 (rank_one_type): ... this.
9653
b9f4512f
SM
96542019-03-08 Simon Marchi <simon.marchi@efficios.com>
9655
9656 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9657 from...
9658 (rank_one_type): ... this.
9659
9293fc63
SM
96602019-03-08 Simon Marchi <simon.marchi@efficios.com>
9661
9662 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9663 from...
9664 (rank_one_type): ... this.
9665
e3abbe7e
PW
96662019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9667
9668 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9669 inferior-events' shows the example events.
9670
e4adb939
EZ
96712019-03-08 Eli Zaretskii <eliz@gnu.org>
9672
9673 Support styling on native MS-Windows console
9674
9675 PR/24315
9676 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9677 on MS-Windows if $TERM is not defined.
9678
9679 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9680
9681 * posix-hdep.c (gdb_console_fputs):
9682 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9683 functions.
9684 * ui-file.h (gdb_console_fputs): Add prototype.
9685
9686 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9687 back to fputs only if the former returns zero.
9688
25629dfd
TT
96892019-03-07 Tom Tromey <tom@tromey.com>
9690
9691 * symmisc.c (print_symbol_bcache_statistics): Update.
9692 (print_objfile_statistics): Update.
9693 * symfile.c (allocate_symtab): Update.
9694 * stabsread.c: Don't include bcache.h.
9695 * psymtab.h (struct psymbol_bcache): Don't declare.
9696 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9697 (psymbol_bcache_init, psymbol_bcache_free)
9698 (psymbol_bcache_get_bcache): Don't declare.
9699 * psymtab.c (struct psymbol_bcache): Remove.
9700 (psymtab_storage::psymtab_storage): Update.
9701 (psymtab_storage::~psymtab_storage): Update.
9702 (psymbol_bcache_init, psymbol_bcache_free)
9703 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9704 (add_psymbol_to_bcache): Update.
9705 (allocate_psymtab): Update.
9706 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9707 macro_cache>: No longer pointers.
9708 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9709 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9710 * macrotab.c (macro_bcache): Update.
9711 * macroexp.c: Don't include bcache.h.
9712 * gdbtypes.c (check_types_worklist): Update.
9713 (types_deeply_equal): Remove TRY/CATCH. Update.
9714 * elfread.c (elf_symtab_read): Update.
9715 * dwarf2read.c: Don't include bcache.h.
9716 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9717 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9718 (print_bcache_statistics, bcache_memory_used): Don't declare.
9719 (struct bcache): Move from bcache.c. Add constructor, destructor,
9720 methods. Rename all data members.
9721 * bcache.c (struct bcache): Move to bcache.h.
9722 (bcache::expand_hash_table): Rename from expand_hash_table.
9723 (bcache): Remove.
9724 (bcache::insert): Rename from bcache_full.
9725 (bcache::compare): Rename from bcache_compare.
9726 (bcache_xmalloc): Remove.
9727 (bcache::~bcache): Rename from bcache_xfree.
9728 (bcache::print_statistics): Rename from print_bcache_statistics.
9729 (bcache::memory_used): Rename from bcache_memory_used.
9730
fe726667
PA
97312019-03-07 Pedro Alves <palves@redhat.com>
9732
9733 * infrun.c (normal_stop): Also check for
9734 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9735
7584bb30
AB
97362019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9737
9738 * f-lang.c (value_from_host_double): Moved to...
9739 * value.c (value_from_host_double): ...here.
9740 * value.h (value_from_host_double): Declare.
9741 * guile/scm-math.c (vlscm_convert_typed_number): Use
9742 value_from_host_double.
9743 (vlscm_convert_number): Likewise.
9744 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9745 * python/py-value.c (convert_value_from_python): Likewise.
9746
a7b1986e
TT
97472019-03-06 Tom Tromey <tom@tromey.com>
9748
9749 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9750
0ccf4211
TT
97512019-03-06 Tom Tromey <tom@tromey.com>
9752
9753 * utils.h (free_current_contents): Don't declare.
9754 * utils.c (free_current_contents): Remove.
9755
fe7b42e5
TT
97562019-03-06 Tom Tromey <tom@tromey.com>
9757
9758 * top.c (quit_force): Update.
9759 * main.c (captured_command_loop): Update.
9760 * common/new-op.c (operator new): Update.
9761 * common/common-exceptions.c (struct catcher)
9762 <save_cleanup_chain>: Remove member.
9763 (exceptions_state_mc_init): Update.
9764 (exception_try_scope_entry): Return nullptr.
9765 (exception_try_scope_exit, exception_rethrow)
9766 (throw_exception_sjlj, throw_exception_cxx): Update.
9767 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9768 (all_cleanups, do_cleanups, discard_cleanups)
9769 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9770 (restore_cleanups, restore_final_cleanups): Don't declare.
9771 (do_final_cleanups): Remove parameter.
9772 * common/cleanups.c (cleanup_chain, make_cleanup)
9773 (make_cleanup_dtor, all_cleanups, do_cleanups)
9774 (discard_my_cleanups, discard_cleanups)
9775 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9776 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9777 (null_cleanup): Remove.
9778 (do_final_cleanups): Remove parameter.
9779
c6321f19
TT
97802019-03-06 Tom Tromey <tom@tromey.com>
9781
9782 * remote.c (remote_target::remote_parse_stop_reply): Use
9783 unique_xmalloc_ptr.
9784
61b30099
TT
97852019-03-06 Tom Tromey <tom@tromey.com>
9786
9787 * stabsread.c (struct stabs_field_info): Rename from field_info.
9788 <list, fnlist>: Add initializers.
9789 <obstack>: New member.
9790 (read_member_functions, read_struct_fields, read_baseclasses):
9791 Allocate on obstack. Don't use cleanups.
9792 (read_one_struct_field, read_member_functions, read_struct_fields)
9793 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9794 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9795 (read_struct_type): Update.
9796
6cceac94
TT
97972019-03-06 Tom Tromey <tom@tromey.com>
9798
9799 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9800 * common/filestuff.h (make_cleanup_close): Don't declare.
9801 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9802 Remove.
9803
72412762
TT
98042019-03-06 Tom Tromey <tom@tromey.com>
9805
9806 * solib-aix.c: Use make_scope_exit.
9807
2b6ff1c0
TT
98082019-03-06 Tom Tromey <tom@tromey.com>
9809
9810 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9811 Use make_scope_exit.
9812
d01c5877
TT
98132019-03-06 Tom Tromey <tom@tromey.com>
9814
9815 * solib-svr4.c (disable_probes_interface): Remove parameter.
9816 (svr4_handle_solib_event): Use make_scope_exit.
9817
32603266
TT
98182019-03-06 Tom Tromey <tom@tromey.com>
9819
9820 * remote.c (struct stop_reply_deleter): Remove.
9821 (stop_reply_up): Update.
9822 (struct stop_reply): Derive from notif_event. Don't typedef.
9823 <regcache>: Now a std::vector.
9824 (stop_reply_xfree): Remove.
9825 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9826 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9827 (remote_target::discard_pending_stop_replies): Use delete.
9828 (remote_target::remote_parse_stop_reply): Update.
9829 (remote_target::process_stop_reply): Update.
9830 * remote-notif.h (struct notif_event): Add virtual destructor.
9831 Remove "dtr" member.
9832 (struct notif_client) <alloc_event>: Return a unique_ptr.
9833 (notif_event_xfree): Don't declare.
9834 (notif_event_up): New typedef.
9835 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9836 (notif_event_xfree, do_notif_event_xfree): Remove.
9837 (remote_notif_state_xfree): Update.
9838
9799571e
TT
98392019-03-06 Tom Tromey <tom@tromey.com>
9840
9841 * infrun.c (displaced_step_clear_cleanup): Now a
9842 forward_scope_exit type.
9843 (displaced_step_prepare_throw): Update.
9844 (displaced_step_fixup): Update.
9845
09e3c4ca
TT
98462019-03-06 Tom Tromey <tom@tromey.com>
9847
9848 * inferior.h (class inferior): Update comment.
9849 * gdbthread.h (class thread_info): Update comment.
9850
e2a03548
TT
98512019-03-06 Joel Brobecker <brobecker@adacore.com>
9852 Tom Tromey <tom@tromey.com>
9853
9854 * stabsread.h (struct stab_section_list): Remove.
9855 (coffstab_build_psymtabs): Update.
9856 * dbxread.c (symbuf_sections): Now a std::vector.
9857 (sect_idx): New global.
9858 (fill_symbuf): Update.
9859 (coffstab_build_psymtabs): Change type of stabsects parameter.
9860 Update.
9861 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9862 std::vector.
9863 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9864 (coff_locate_sections): Update.
9865 (coff_symfile_read): Remove cleanups. Update.
9866 (init_stringtab): Add storage parameter.
9867 (free_stringtab, free_stringtab_cleanup): Remove.
9868 (init_lineno): Add storage parameter.
9869 (free_linetab, free_linetab_cleanup): Remove.
9870
b7e60d85
PA
98712019-03-06 Pedro Alves <palves@redhat.com>
9872
9873 * linux-fork.c (fork_info::clobber_regs): Delete.
9874 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9875 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9876 comment. Adjust.
9877 (scoped_switch_fork_info::scoped_switch_fork_info)
9878 (checkpoint_command, linux_fork_context): Adjust
9879 fork_save_infrun_state calls.
9880
e52c971f
PA
98812019-03-06 Pedro Alves <palves@redhat.com>
9882
9883 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9884 (inf_has_multiple_threads): Return 'bool' and rewrite using
9885 inferior_info::threads().
9886
06974e6c
PA
98872019-03-06 Pedro Alves <palves@redhat.com>
9888
9889 * linux-fork.c: Include <list>.
9890 (fork_list): Now a std::list instance.
9891 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9892 (forks_exist_p, find_last_fork): Adjust.
9893 (new_fork): Delete.
9894 (one_fork_p): New.
9895 (add_fork): Adjust.
9896 (free_fork): Delete, folded into fork_info::~fork_info().
9897 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9898 Adjust.
9899 (init_fork_list): Delete.
9900 (linux_fork_killall, linux_fork_mourn_inferior)
9901 (linux_fork_detach, info_checkpoints_command): Adjust.
9902 (_initialize_linux_fork): No longer call init_fork_list.
9903
72f31aea
PA
99042019-03-06 Pedro Alves <palves@redhat.com>
9905
9906 * linux-fork.c (new_fork): New, split out of ...
9907 (add_fork): ... this. Return void. Move "first fork" special
9908 case from here, to ...
9909 (checkpoint_command): ... here.
9910 * linux-linux.h (add_fork): Return void.
9911
efbecbc1
AB
99122019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9913
9914 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9915
0841c79a
AB
99162019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9917 Chris January <chris.january@arm.com>
9918 David Lecomber <david.lecomber@arm.com>
9919
9920 * f-exp.y: New token, UNOP_INTRINSIC.
9921 (exp): New pattern using UNOP_INTRINSIC token.
9922 (f77_keywords): Add 'abs' keyword.
9923 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9924 (value_from_host_double): New function.
9925 (evaluate_subexp_f): Support UNOP_ABS.
9926
4a270568
AB
99272019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9928
9929 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9930 types.
9931
067630bd
AB
99322019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9933
9934 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9935 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9936 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9937
3be47f7a
AB
99382019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9939
9940 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9941
4d00f5d8
AB
99422019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9943 Chris January <chris.january@arm.com>
9944
9945 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9946 * f-exp.y: Define 'KIND' token.
9947 (exp): New pattern for KIND expressions.
9948 (ptype): Handle types with a kind extension.
9949 (direct_abs_decl): Extend to spot kind extensions.
9950 (f77_keywords): Add 'kind' to the list.
9951 (push_kind_type): New function.
9952 (convert_to_kind_type): New function.
9953 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9954 * parse.c (operator_length_standard): Likewise.
9955 * parser-defs.h (enum type_pieces): Add tp_kind.
9956 * std-operator.def: Add UNOP_KIND.
9957
e454224f
AB
99582019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9959
9960 * f-exp.y (f_parse): Set yydebug.
9961
9dad4a58
AB
99622019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9963
9964 * f-lang.c (evaluate_subexp_f): New function.
9965 (exp_descriptor_f): New global.
9966 (f_language_defn): Use exp_descriptor_f instead of
9967 exp_descriptor_standard.
9968
c8f91604
AB
99692019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9970
9971 * f-exp.y (struct token): Add comments.
9972 (dot_ops): Remove uppercase versions and the end marker.
9973 (f77_keywords): Likewise.
9974 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9975 entries in the dot_ops array are case insensitive, and use
9976 strncasecmp to compare strings. Also some whitespace cleanup in
9977 this area. Similar for the f77_keywords array, except entries in
9978 this list might be case sensitive.
9979
dd9f2c76
AB
99802019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9981
9982 * f-exp.y (struct f77_boolean_val): Add comments.
9983 (boolean_values): Remove uppercase versions, and end marker.
9984 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9985 and use strncasecmp to achieve case insensitivity. Additionally,
9986 perform whitespace cleanup around this code.
9987
67a3048c
TT
99882019-03-06 Tom Tromey <tromey@adacore.com>
9989
9990 * remote-sim.c (gdbsim_target_open): Use result of
9991 gdb_argv::release.
9992
aa3cfbda
RB
99932019-03-06 Richard Bunt <richard.bunt@arm.com>
9994 Dirk Schubert <dirk.schubert@arm.com>
9995 Chris January <chris.january@arm.com>
9996
9997 * eval.c (evaluate_subexp_standard): Call Fortran argument
9998 wrapping logic.
9999 * f-lang.c (struct value): A value which can be passed into a
10000 Fortran function call.
10001 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10002 where appropriate.
10003 (struct type): Value ready for a Fortran function call.
10004 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10005 is needed.
10006 * f-lang.h (fortran_argument_convert): Declaration.
10007 (fortran_preserve_arg_pointer): Declaration.
10008 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10009
ea38e5df
TT
100102019-03-05 Tom Tromey <tromey@adacore.com>
10011
10012 * python/py-prettyprint.c (print_string_repr): Remove #if.
10013 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10014
06b5b831
TT
100152019-03-05 Tom Tromey <tromey@adacore.com>
10016
10017 * target.c (the_dummy_target): Move later. Change type to
10018 "dummy_target".
10019 (initialize_targets): Don't initialize the_dummy_target.
10020
edbd9e45
TT
100212019-03-05 Tom Tromey <tromey@adacore.com>
10022
10023 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10024 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10025
c119e040
TT
100262019-03-05 Tom Tromey <tromey@adacore.com>
10027
10028 * windows-nat.c (windows_nat_target::attach)
10029 (windows_nat_target::detach): Don't call gdb_flush.
10030 * valprint.c (generic_val_print, val_print, val_print_string):
10031 Don't call gdb_flush.
10032 * utils.c (defaulted_query): Don't call gdb_flush.
10033 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10034 * target.c (target_announce_detach): Don't call gdb_flush.
10035 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10036 * remote.c (extended_remote_target::attach): Don't call
10037 gdb_flush.
10038 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10039 * printcmd.c (do_examine): Don't call gdb_flush.
10040 (info_display_command): Don't call gdb_flush.
10041 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10042 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10043 * memattr.c (info_mem_command): Don't call gdb_flush.
10044 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10045 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10046 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10047 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10048 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10049 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10050 (gnu_nat_target::detach): Don't call gdb_flush.
10051 * f-valprint.c (f_val_print): Don't call gdb_flush.
10052 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10053 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10054 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10055 gdb_flush.
10056 * c-valprint.c (c_val_print): Don't call gdb_flush.
10057 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10058
895dafa6
TT
100592019-03-05 Tom Tromey <tromey@adacore.com>
10060
10061 * varobj.c (update_dynamic_varobj_children): Update.
10062 (install_default_visualizer): Use reset, not release.
10063 * value.c (set_internalvar): Update.
10064 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10065 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10066 ATTRIBUTE_UNUSED_RESULT.
10067
88a774b9
TT
100682019-03-05 Tom Tromey <tromey@adacore.com>
10069
10070 * remote.c (class scoped_remote_fd) <release>: Add
10071 ATTRIBUTE_UNUSED_RESULT.
10072
4e4a8b93
TT
100732019-03-05 Tom Tromey <tromey@adacore.com>
10074
10075 * macroexp.c (struct macro_buffer) <release>: Add
10076 ATTRIBUTE_UNUSED_RESULT.
10077
083eef1f
TT
100782019-03-05 Tom Tromey <tromey@adacore.com>
10079
10080 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10081 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10082 ATTRIBUTE_UNUSED_RESULT.
10083
3cabd438
TT
100842019-03-05 Tom Tromey <tromey@adacore.com>
10085
10086 * common/scoped_fd.h (class scoped_fd) <release>: Add
10087 ATTRIBUTE_UNUSED_RESULT.
10088
41e3300a
TT
100892019-03-05 Tom Tromey <tromey@adacore.com>
10090
10091 * parser-defs.h (struct parser_state) <release>: Add
10092 ATTRIBUTE_UNUSED_RESULT.
10093
18cb7c9f
TT
100942019-03-05 Tom Tromey <tromey@adacore.com>
10095
10096 * utils.h (class gdb_argv) <release>: Add
10097 ATTRIBUTE_UNUSED_RESULT.
10098 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10099
41fa577f
EZ
101002019-03-02 Eli Zaretskii <eliz@gnu.org>
10101
a6a4b2c6
EZ
10102 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10103 for-loop range, to avoid compiler warnings.
10104
10105 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10106 avoid compiler warnings about unused variables.
10107
742a7df5
EZ
10108 * NEWS: Mention end of support for native debugging on MS-Windows
10109 before XP.
10110
41fa577f
EZ
10111 PR gdb/24292
10112 * common/netstuff.c:
10113 * gdbserver/gdbreplay.c
10114 * gdbserver/remote-utils.c:
10115 * ser-tcp.c:
10116 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10117 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10118 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10119 'getaddrinfo' and 'freeaddrinfo' were not available before
10120 Windows XP, and mingw.org's MinGW headers by default define
10121 _WIN32_WINNT to 0x500.
10122
827f438f
GB
101232019-03-01 Gary Benson <gbenson@redhat.com>
10124
10125 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10126
92137da0
RO
101272019-02-28 Brian Vandenberg <phantall@gmail.com>
10128 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10129
10130 PR gdb/8527
10131 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10132 set_sigint_trap, clear_sigint_trap.
10133
799efbe8
PW
101342019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10135
10136 * target.c (target_detach): Clear the regcache and the
10137 frame cache.
10138
8ed25214
PA
101392019-02-27 Pedro Alves <palves@redhat.com>
10140
10141 * utils.c (set_screen_size): When we cap the height/width sizes,
10142 tweak the corresponding command variable to show "unlimited":
10143
23031e31
SJ
101442019-02-27 Saagar Jha <saagar@saagarjha.com>
10145 Pedro Alves <palves@redhat.com>
10146
10147 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10148 before calling rl_set_screen_size.
10149
6c28e44a
TT
101502019-02-27 Tom Tromey <tromey@adacore.com>
10151
10152 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10153 define.
10154 * python/py-value.c: Remove Python 2.4 workaround.
10155 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10156 workaround.
10157 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10158 Python 2.4 workaround.
10159 * python/python-internal.h: Remove Python 2.4 comment.
10160 (Py_ssize_t): Don't define.
10161 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10162 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10163 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10164 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10165 * python/python.c (do_start_initialization): Remove Python 2.4
10166 workaround.
10167 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10168 (print_children): Remove Python 2.4 workaround.
10169 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10170 workaround.
10171 (CHARBUFFERPROC_NAME): Remove.
10172 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10173 Python 2.4 workaround.
10174
2c3fc25d 101752019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 10176
2c3fc25d
KB
10177 * NEWS: Note minimum Python version.
10178
6ca62222
KB
101792019-02-27 Kevin Buettner <kevinb@redhat.com>
10180
10181 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10182 code from these functions. Remove corresponding ifdefs. Use
10183 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10184 Remove gotos and target of gotos.
10185 (infpy_search_memory): Likewise.
10186
f4bc7d2c
AB
101872019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10188
10189 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10190 (hppa_gdbarch_init): Don't register deleted functions with
10191 gdbarch.
10192
9734a586
AB
101932019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10194
10195 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10196 (h8300_unwind_sp): Delete.
10197 (h8300_dummy_id): Delete.
10198 (h8300_gdbarch_init): Don't register deleted functions with
10199 gdbarch.
10200
68b867f3
AB
102012019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10202
10203 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10204 (ft32_unwind_pc): Delete.
10205 (ft32_unwind_sp): Delete.
10206 (ft32_gdbarch_init): Don't register deleted functions with
10207 gdbarch.
10208
2fbe7ad0
AB
102092019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10210
10211 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10212 (frv_unwind_pc): Delete.
10213 (frv_unwind_sp): Delete.
10214 (frv_gdbarch_init): Don't register deleted functions with
10215 gdbarch.
10216
76055cbe
AB
102172019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10218
10219 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10220 (riscv_unwind_pc): Delete.
10221 (riscv_unwind_sp): Delete.
10222 (riscv_gdbarch_init): Don't register deleted functions with
10223 gdbarch.
10224
4133e5a1
AB
102252019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10226
10227 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10228 (csky_unwind_pc): Delete.
10229 (csky_unwind_sp): Delete.
10230 (csky_gdbarch_init): Don't register deleted functions with
10231 gdbarch.
10232
8010f576
AB
102332019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10234
10235 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10236 (cris_unwind_pc): Delete.
10237 (cris_unwind_sp): Delete.
10238 (cris_gdbarch_init): Don't register deleted functions with
10239 gdbarch.
10240
b56bf084
AB
102412019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10242
10243 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10244 (bfin_unwind_pc): Delete.
10245 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10246
a19a650f
AB
102472019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10248
10249 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10250 (arm_unwind_pc): Delete.
10251 (arm_unwind_sp): Delete.
10252 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10253
f8278c3c
AB
102542019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10255
10256 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10257 (arc_unwind_pc): Delete.
10258 (arc_unwind_sp): Delete.
10259 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10260
480e46cf
AB
102612019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10262
10263 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10264 (alpha_unwind_pc): Delete.
10265 (alpha_gdbarch_init): Don't register deleted functions with
10266 gdbarch.
10267
7a995095
AB
102682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10269
10270 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10271 (aarch64_unwind_pc): Delete.
10272 (aarch64_unwind_sp): Delete.
10273 (aarch64_gdbarch_init): Don't register deleted functions with
10274 gdbarch.
10275
bf9a735e
AB
102762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10277
10278 * gdbtypes.c (type_align): Don't consider static members when
10279 computing structure alignment.
10280
5561fc30
AB
102812019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10282
10283 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10284 return 0 for other types.
10285 * arch-utils.c (default_type_align): Always return 0.
10286 * gdbarch.h: Regenerate.
10287 * gdbarch.sh (type_align): Extend comment.
10288 * gdbtypes.c (type_align): Add additional comments, always call
10289 gdbarch_type_align before applying the default rules.
10290 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10291 generic code will then apply a suitable default.
10292 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10293 types, return 0 for other types.
10294
9335e75a
JB
102952019-02-27 Joel Brobecker <brobecker@adacore.com>
10296
10297 * NEWS: Create a new section for the next release branch.
10298 Rename the section of the current branch, now that it has
10299 been cut.
10300
3d34d8de
JB
103012019-02-27 Joel Brobecker <brobecker@adacore.com>
10302
10303 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10304 * version.in: Bump version to 8.3.50.DATE-git.
10305
143420fb
SM
103062019-02-26 Simon Marchi <simon.marchi@efficios.com>
10307
10308 * aix-thread.c (ptid_cmp): Remove unused variable.
10309 (get_signaled_thread): Likewise.
10310 (store_regs_user_thread): Likewise.
10311 (store_regs_kernel_thread): Likewise.
10312 (fetch_regs_kernel_thread): Remove shadowed variable.
10313
172fb711
AB
103142019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10315
10316 * features/riscv/32bit-cpu.xml: Add register numbers.
10317 * features/riscv/32bit-fpu.c: Regenerate.
10318 * features/riscv/32bit-fpu.xml: Add register numbers.
10319 * features/riscv/64bit-cpu.xml: Add register numbers.
10320 * features/riscv/64bit-fpu.c: Regenerate.
10321 * features/riscv/64bit-fpu.xml: Add register numbers.
10322
26c89782
KB
103232019-02-26 Kevin Buettner <kevinb@redhat.com>
10324
af54ade9 10325 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
10326 * python/py-value.c (convert_buffer_and_type_to_value): New
10327 function.
10328 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10329 Add support for handling an optional second argument. Call
10330 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
10331 * python/python-internal.h (Py_buffer_deleter): New struct.
10332 (Py_buffer_up): New typedef.
10333
0f58c9e8
JB
103342019-02-25 John Baldwin <jhb@FreeBSD.org>
10335
10336 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10337 instead of releasing ownership.
10338
0a0f4c01
JR
103392019-02-25 Jordan Rupprecht <rupprecht@google.com>
10340
10341 * dwarf2read.c (open_and_init_dwp_file): Call
10342 elf_numsections instead of bfd_count_sections to initialize
10343 dwp_file->num_sections.
10344
cd5a152c
TT
103452019-02-25 Tom Tromey <tromey@adacore.com>
10346
10347 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10348
8a6a8513
SDJ
103492019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10350
10351 * gcore.in: Add '--readnever' option when invoking GDB.
10352
04dcda9c
SM
103532019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10354
10355 * MAINTAINERS: Update my email address.
10356
07bc701d
SM
103572019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10358
10359 * build-id.c (build_id_to_debug_bfd_1): New function.
10360 (build_id_to_debug_bfd): Look for separate debug file in
10361 sysroot.
10362
c6f4a5d0
AB
103632019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10364
10365 * gdbarch.sh: Update the copyright year range that is placed into
10366 generated files.
10367
9600246d
KS
103682019-02-22 Keith Seitz <keiths@redhat.com>
10369
10370 PR symtab/23853
10371 * linespec.c (create_sals_line_offset): Search for the default
10372 symtab's filename instead of its fullname.
10373
7557a514
AH
103742019-02-21 Alan Hayward <alan.hayward@arm.com>
10375
10376 * NEWS: Update style defaults.
10377
ee2bcb0c
AH
103782019-02-21 Alan Hayward <alan.hayward@arm.com>
10379
10380 * main.c (captured_main_1): Disable styling in batch mode.
10381
0c95f9ed
TT
103822019-02-20 Tom Tromey <tom@tromey.com>
10383
10384 * symtab.c (symtab_symbol_info): Fix typos.
10385
c763b894
TT
103862019-02-20 Tom Tromey <tromey@adacore.com>
10387
10388 * findcmd.c (_initialize_mem_search): Use upper case for
10389 metasyntactic variables.
10390
0ef8a082
AH
103912019-02-20 Alan Hayward <alan.hayward@arm.com>
10392
10393 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10394 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10395
6caa91b6
SM
103962019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10397
10398 * top.h (source_file_name): Change to std::string.
10399 * top.c (source_file_name): Likewise.
10400 (command_line_input): Adjust.
10401 * cli/cli-script.c (script_from_file): Adjust.
10402
98814c6c
TT
104032019-02-19 Tom Tromey <tromey@adacore.com>
10404
10405 * ravenscar-thread.c
10406 (ravenscar_thread_target::update_thread_list): Don't call
10407 ada_build_task_list.
10408 * ada-lang.h (ada_build_task_list): Don't declare.
10409 * ada-tasks.c (struct ada_tasks_inferior_data)
10410 <task_list_valid_p>: Now bool.
10411 (read_known_tasks, ada_task_list_changed)
10412 (ada_tasks_invalidate_inferior_data): Update.
10413 (read_known_tasks_array): Return bool.
10414 (read_known_tasks_list): Likewise.
10415 (read_known_tasks): Return void.
10416 (ada_build_task_list): Now static.
10417
70cd633e
AB
104182019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10419
10420 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10421 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10422
040b3e95
PW
104232019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10424
10425 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10426 variant for ada_tasks_pspace_data_handle and
10427 ada_tasks_inferior_data_handle.
10428 (ada_tasks_pspace_data_cleanup): New function.
10429 (ada_tasks_inferior_data_cleanup): New function.
10430
9409233b
TT
104312019-02-17 Tom Tromey <tom@tromey.com>
10432
10433 * macrotab.h (macro_source_fullname): Return a std::string.
10434 * macrotab.c (macro_include, check_for_redefinition)
10435 (macro_undef, macro_lookup_definition, foreach_macro)
10436 (foreach_macro_in_scope): Update.
10437 (macro_source_fullname): Return a std::string.
10438 * macrocmd.c (show_pp_source_pos): Update.
10439
6506371f
TT
104402019-02-17 Tom Tromey <tom@tromey.com>
10441
10442 * macrocmd.c (show_pp_source_pos): Style the file names.
10443
0c820d67
TT
104442019-02-17 Tom Tromey <tom@tromey.com>
10445
10446 PR tui/24197:
10447 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10448
a0087920
TT
104492019-02-17 Tom Tromey <tom@tromey.com>
10450
10451 * ada-lang.c (user_select_syms): Use filtered printing.
10452 * utils.c (wrap_style): New global.
10453 (desired_style): Remove.
10454 (emit_style_escape): Add stream parameter.
10455 (set_output_style, reset_terminal_style, prompt_for_continue):
10456 Update.
10457 (flush_wrap_buffer): Only flush gdb_stdout.
10458 (wrap_here): Set wrap_style.
10459 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10460 treat escape sequences as a character. Change when wrap buffer is
10461 flushed.
10462 (fputs_styled): Do not set the output style when the default is
10463 requested.
10464 * ui-style.h (struct ui_file_style) <is_default>: New method.
10465 * source.c (print_source_lines_base): Emit escape sequences in one
10466 piece.
10467
75ba10dc
JB
104682019-02-17 Joel Brobecker <brobecker@adacore.com>
10469
10470 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10471 integers and enumeration types.
10472
a2cd4f14
JB
104732019-02-17 Joel Brobecker <brobecker@adacore.com>
10474
10475 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10476 instead of lookup_symbol_in_language
10477 (do_exact_match): New function.
10478 (ada_get_symbol_name_matcher): Return do_exact_match when
10479 doing a verbatim match.
10480
485b851b
TT
104812019-02-15 Tom Tromey <tromey@adacore.com>
10482
10483 * ravenscar-thread.c (ravenscar_thread_target::resume)
10484 (ravenscar_thread_target::wait): Special case wildcard requests.
10485
0b790b1e
TT
104862019-02-15 Tom Tromey <tromey@adacore.com>
10487
10488 * ravenscar-thread.c (base_ptid): Remove.
10489 (struct ravenscar_thread_target) <close>: New method.
10490 <m_base_ptid>: New member.
10491 <update_inferior_ptid, active_task, task_is_currently_active,
10492 runtime_initialized>: Declare methods.
10493 <ravenscar_thread_target>: Add constructor.
10494 (ravenscar_thread_target::task_is_currently_active)
10495 (ravenscar_thread_target::update_inferior_ptid)
10496 (ravenscar_runtime_initialized): Rename. Now methods.
10497 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10498 (ravenscar_thread_target::update_thread_list): Update.
10499 (ravenscar_thread_target::active_task): Now method.
10500 (ravenscar_thread_target::store_registers)
10501 (ravenscar_thread_target::prepare_to_store)
10502 (ravenscar_thread_target::prepare_to_store)
10503 (ravenscar_thread_target::mourn_inferior): Update.
10504 (ravenscar_inferior_created): Use "new" to create target.
10505 (ravenscar_thread_target::get_ada_task_ptid): Update.
10506 (_initialize_ravenscar): Don't initialize base_ptid.
10507 (ravenscar_ops): Remove global.
10508
dea57a62
TT
105092019-02-15 Tom Tromey <tromey@adacore.com>
10510
10511 * target.h (push_target): Declare new overload.
10512 * target.c (push_target): New overload, taking an rvalue reference.
10513 * remote.c (remote_target::open_1): Use push_target overload.
10514 * corelow.c (core_target_open): Use push_target overload.
10515
989f3c58
TT
105162019-02-15 Tom Tromey <tromey@adacore.com>
10517
10518 * ravenscar-thread.c (is_ravenscar_task)
10519 (ravenscar_task_is_currently_active): Return bool.
10520 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10521 (_initialize_ravenscar): Remove "(void)".
10522 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10523 Return bool.
10524
6cbcc006
TT
105252019-02-15 Tom Tromey <tromey@adacore.com>
10526
10527 * ravenscar-thread.c (ravenscar_runtime_initializer)
10528 (has_ravenscar_runtime, get_running_thread_id)
10529 (ravenscar_thread_target::resume): Fix indentation.
10530
7657f14d
TT
105312019-02-15 Tom Tromey <tromey@adacore.com>
10532
10533 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10534 from ravenscar_arch_ops.
10535 (sparc_ravenscar_ops::fetch_registers)
10536 (sparc_ravenscar_ops::store_registers): Now methods.
10537 (sparc_ravenscar_prepare_to_store): Remove.
10538 (sparc_ravenscar_ops): Redefine.
10539 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10540 methods and destructor. Remove members.
10541 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10542 (ravenscar_thread_target::store_registers)
10543 (ravenscar_thread_target::prepare_to_store): Update.
10544 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10545 Remove.
10546 (struct ppc_ravenscar_powerpc_ops): Derive from
10547 ravenscar_arch_ops.
10548 (ppc_ravenscar_powerpc_ops::fetch_registers)
10549 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10550 (ppc_ravenscar_powerpc_ops): Redefine.
10551 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10552 (ppc_ravenscar_e500_ops::fetch_registers)
10553 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10554 (ppc_ravenscar_e500_ops): Redefine.
10555 * aarch64-ravenscar-thread.c
10556 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10557 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10558 (aarch64_ravenscar_fetch_registers)
10559 (aarch64_ravenscar_store_registers): Now methods.
10560 (aarch64_ravenscar_ops): Redefine.
10561
5b6ea500
TT
105622019-02-15 Tom Tromey <tromey@adacore.com>
10563
10564 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10565 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10566 (ravenscar_thread_target::stopped_by_watchpoint)
10567 (ravenscar_thread_target::stopped_data_address)
10568 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10569
e397fd39
TT
105702019-02-15 Tom Tromey <tromey@adacore.com>
10571
10572 * ravenscar-thread.c: Fix some typos.
10573
cc12f4a8
TT
105742019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10575 Tom Tromey <tromey@adacore.com>
10576
10577 * ada-lang.c (ada_exception_sal): Change addr_string to a
10578 std::string.
10579 (create_ada_exception_catchpoint): Update.
10580
5f486660
TT
105812019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10582 Tom Tromey <tromey@adacore.com>
10583
10584 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10585 (bp_location_ops): Remove.
10586 (base_breakpoint_allocate_location): Update.
10587 (free_bp_location): Update.
10588 * ada-lang.c (class ada_catchpoint_location)
10589 <ada_catchpoint_location>: Remove ops parameter.
10590 (ada_catchpoint_location_dtor): Remove.
10591 (ada_catchpoint_location_ops): Remove.
10592 (allocate_location_exception): Update.
10593 * breakpoint.h (struct bp_location_ops): Remove.
10594 (class bp_location) <bp_location>: Remove bp_location_ops
10595 parameter.
10596 <~bp_location>: Add destructor.
10597 <ops>: Remove.
10598
b671c7fb
TS
105992019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10600 Pedro Alves <palves@redhat.com>
10601
10602 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10603 'PATH_MAX'.
10604
8071c5ce
DM
106052019-02-14 David Michael <fedora.dm0@gmail.com>
10606 Samuel Thibault <samuel.thibault@gnu.org>
10607 Thomas Schwinge <thomas@codesourcery.com>
10608
10609 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10610 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10611
b1041ae0
TS
106122019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10613
924514e1
TS
10614 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10615 (check_empty): Use "const char *".
10616
c29ee8d4
TS
10617 * gnu-nat.c (gnu_nat_target::detach): Instead of
10618 'detach_inferior (pid)' call
10619 'detach_inferior (find_inferior_pid (pid))'.
10620
6c6ef69f
TS
10621 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10622 'nat/fork-inferior.o'.
10623 * gnu-nat.c: #include "nat/fork-inferior.h".
10624
2d0a338c
TS
10625 * gnu-nat.c (gnu_nat_target::detach): Instead of
10626 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10627 * gnu-nat.h: #include "inf-child.h".
10628 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10629 'i386_gnu_nat_target::fetch_registers'.
10630 (gnu_store_registers): Rename/move to
10631 'i386_gnu_nat_target::store_registers'.
10632
cabb5f06
TS
10633 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10634 * gnu-nat.h (mach_thread_info): New function.
10635 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10636
b1041ae0
TS
10637 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10638
2988d01e
KF
106392019-02-14 Frederic Konrad <konrad@adacore.com>
10640
10641 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10642
c559d709
JB
106432019-02-14 Joel Brobecker <brobecker@adacore.com>
10644
10645 * windows-nat.c (windows_add_thread): Add new parameter
10646 "main_thread_p" with default value set to false. Update
10647 function documentation as well as all callers.
10648 (windows_delete_thread): Likewise.
10649 (fake_create_process): Update call to windows_add_thread.
10650 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10651 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10652 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10653 call to windows_delete_thread.
10654
007024cc
SM
106552019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10656
10657 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10658
f62318e9
JB
106592019-02-12 John Baldwin <jhb@FreeBSD.org>
10660
10661 * symfile.c (find_separate_debug_file): Use canonical path of
10662 sysroot with child_path instead of gdb_sysroot if it is valid.
10663
cd4b7848
JB
106642019-02-12 John Baldwin <jhb@FreeBSD.org>
10665
10666 * symfile.c (find_separate_debug_file): Use child_path to
10667 determine if an object file is under a sysroot.
10668
efac4bfe
JB
106692019-02-12 John Baldwin <jhb@FreeBSD.org>
10670
10671 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10672 unittests/child-path-selftests.c.
10673 * common/pathstuff.c (child_path): New function.
10674 * common/pathstuff.h (child_path): New prototype.
10675 * unittests/child-path-selftests.c: New file.
10676
402d2bfe
JB
106772019-02-12 John Baldwin <jhb@FreeBSD.org>
10678
10679 * symfile.c (find_separate_debug_file): Look for separate debug
10680 files in debug directories under the sysroot.
10681
1ed9f74e
PW
106822019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10683
10684 * symtab.h (struct minimal_symbol data_p): New const method.
10685 (struct minimal_symbol text_p): Likewise.
10686 * symtab.c (output_source_filename): Use file name style
10687 to print file name.
10688 (print_symbol_info): Likewise.
10689 (print_msymbol_info): Use address style to print addresses.
10690 Use function name style to print executable text symbols.
10691 (expand_symtab_containing_pc): Use data_p.
10692 (find_pc_sect_compunit_symtab): Likewise.
10693
2636d81d
PW
106942019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10695
10696 * breakpoint.c (describe_other_breakpoints): Use address style
10697 to print addresses.
10698 (say_where): Likewise.
10699
ac8c53cc
PW
107002019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10701
10702 * ada-typeprint.c (print_func_type): Print function name
10703 style to print function name.
10704 * c-typeprint.c (c_print_type_1): Likewise.
10705
ea638c43
AH
107062019-02-11 Alan Hayward <alan.hayward@arm.com>
10707
10708 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10709 for execve.
10710
ab759ca8
PW
107112019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10712
10713 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10714 type_stack.
10715
aff29d1c
JB
107162019-02-10 Joel Brobecker <brobecker@adacore.com>
10717
10718 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10719 TYPE_CODE_REF types.
10720
617126bc
JW
107212019-02-08 Jim Wilson <jimw@sifive.com>
10722
10723 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10724 (riscv_linux_fregset): New.
10725 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10726
46e3ed7f
TT
107272019-02-07 Tom Tromey <tom@tromey.com>
10728
10729 * thread.c (thread_cancel_execution_command): Update.
10730 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10731 methods.
10732 (struct thread_fsm_ops): Remove.
10733 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10734 (thread_fsm_should_stop, thread_fsm_return_value)
10735 (thread_fsm_set_finished, thread_fsm_finished_p)
10736 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10737 Don't declare.
10738 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10739 * infrun.c (clear_proceed_status_thread)
10740 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10741 (print_stop_event): Update.
10742 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10743 Add constructor.
10744 (step_command_fsm_ops): Remove.
10745 (new_step_command_fsm): Remove.
10746 (step_1): Update.
10747 (step_command_fsm::should_stop): Rename from
10748 step_command_fsm_should_stop.
10749 (step_command_fsm::clean_up): Rename from
10750 step_command_fsm_clean_up.
10751 (step_command_fsm::do_async_reply_reason): Rename from
10752 step_command_fsm_async_reply_reason.
10753 (struct until_next_fsm): Inherit from thread_fsm. Add
10754 constructor.
10755 (until_next_fsm_ops): Remove.
10756 (new_until_next_fsm): Remove.
10757 (until_next_fsm::should_stop): Rename from
10758 until_next_fsm_should_stop.
10759 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10760 (until_next_fsm::do_async_reply_reason): Rename from
10761 until_next_fsm_async_reply_reason.
10762 (struct finish_command_fsm): Inherit from thread_fsm. Add
10763 constructor. Change type of breakpoint.
10764 (finish_command_fsm_ops): Remove.
10765 (new_finish_command_fsm): Remove.
10766 (finish_command_fsm::should_stop): Rename from
10767 finish_command_fsm_should_stop.
10768 (finish_command_fsm::clean_up): Rename from
10769 finish_command_fsm_clean_up.
10770 (finish_command_fsm::return_value): Rename from
10771 finish_command_fsm_return_value.
10772 (finish_command_fsm::do_async_reply_reason): Rename from
10773 finish_command_fsm_async_reply_reason.
10774 (finish_command): Update.
10775 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10776 Add constructor.
10777 (call_thread_fsm_ops): Remove.
10778 (call_thread_fsm::call_thread_fsm): Rename from
10779 new_call_thread_fsm.
10780 (call_thread_fsm::should_stop): Rename from
10781 call_thread_fsm_should_stop.
10782 (call_thread_fsm::should_notify_stop): Rename from
10783 call_thread_fsm_should_notify_stop.
10784 (run_inferior_call, call_function_by_hand_dummy): Update.
10785 * cli/cli-interp.c (should_print_stop_to_console): Update.
10786 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10787 Add constructor. Change type of location_breakpoint,
10788 caller_breakpoint.
10789 (until_break_fsm_ops): Remove.
10790 (new_until_break_fsm): Remove.
10791 (until_break_fsm::should_stop): Rename from
10792 until_break_fsm_should_stop.
10793 (until_break_fsm::clean_up): Rename from
10794 until_break_fsm_clean_up.
10795 (until_break_fsm::do_async_reply_reason): Rename from
10796 until_break_fsm_async_reply_reason.
10797 (until_break_command): Update.
10798 * thread-fsm.c: Remove.
10799 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10800
1a5c2598
TT
108012019-02-07 Tom Tromey <tom@tromey.com>
10802
10803 * yy-remap.h: Add include guard.
10804 * xtensa-tdep.h: Add include guard.
10805 * xcoffread.h: Rename include guard.
10806 * varobj-iter.h: Add include guard.
10807 * tui/tui.h: Rename include guard.
10808 * tui/tui-winsource.h: Rename include guard.
10809 * tui/tui-wingeneral.h: Rename include guard.
10810 * tui/tui-windata.h: Rename include guard.
10811 * tui/tui-win.h: Rename include guard.
10812 * tui/tui-stack.h: Rename include guard.
10813 * tui/tui-source.h: Rename include guard.
10814 * tui/tui-regs.h: Rename include guard.
10815 * tui/tui-out.h: Rename include guard.
10816 * tui/tui-layout.h: Rename include guard.
10817 * tui/tui-io.h: Rename include guard.
10818 * tui/tui-hooks.h: Rename include guard.
10819 * tui/tui-file.h: Rename include guard.
10820 * tui/tui-disasm.h: Rename include guard.
10821 * tui/tui-data.h: Rename include guard.
10822 * tui/tui-command.h: Rename include guard.
10823 * tic6x-tdep.h: Add include guard.
10824 * target/waitstatus.h: Rename include guard.
10825 * target/wait.h: Rename include guard.
10826 * target/target.h: Rename include guard.
10827 * target/resume.h: Rename include guard.
10828 * target-float.h: Rename include guard.
10829 * stabsread.h: Add include guard.
10830 * rs6000-tdep.h: Add include guard.
10831 * riscv-fbsd-tdep.h: Add include guard.
10832 * regformats/regdef.h: Rename include guard.
10833 * record.h: Rename include guard.
10834 * python/python.h: Rename include guard.
10835 * python/python-internal.h: Rename include guard.
10836 * python/py-stopevent.h: Rename include guard.
10837 * python/py-ref.h: Rename include guard.
10838 * python/py-record.h: Rename include guard.
10839 * python/py-record-full.h: Rename include guard.
10840 * python/py-record-btrace.h: Rename include guard.
10841 * python/py-instruction.h: Rename include guard.
10842 * python/py-events.h: Rename include guard.
10843 * python/py-event.h: Rename include guard.
10844 * procfs.h: Add include guard.
10845 * proc-utils.h: Add include guard.
10846 * p-lang.h: Add include guard.
10847 * or1k-tdep.h: Rename include guard.
10848 * observable.h: Rename include guard.
10849 * nto-tdep.h: Rename include guard.
10850 * nat/x86-linux.h: Rename include guard.
10851 * nat/x86-linux-dregs.h: Rename include guard.
10852 * nat/x86-gcc-cpuid.h: Add include guard.
10853 * nat/x86-dregs.h: Rename include guard.
10854 * nat/x86-cpuid.h: Rename include guard.
10855 * nat/ppc-linux.h: Rename include guard.
10856 * nat/mips-linux-watch.h: Rename include guard.
10857 * nat/linux-waitpid.h: Rename include guard.
10858 * nat/linux-ptrace.h: Rename include guard.
10859 * nat/linux-procfs.h: Rename include guard.
10860 * nat/linux-osdata.h: Rename include guard.
10861 * nat/linux-nat.h: Rename include guard.
10862 * nat/linux-namespaces.h: Rename include guard.
10863 * nat/linux-btrace.h: Rename include guard.
10864 * nat/glibc_thread_db.h: Rename include guard.
10865 * nat/gdb_thread_db.h: Rename include guard.
10866 * nat/gdb_ptrace.h: Rename include guard.
10867 * nat/fork-inferior.h: Rename include guard.
10868 * nat/amd64-linux-siginfo.h: Rename include guard.
10869 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10870 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10871 * nat/aarch64-linux.h: Rename include guard.
10872 * nat/aarch64-linux-hw-point.h: Rename include guard.
10873 * mn10300-tdep.h: Add include guard.
10874 * mips-linux-tdep.h: Add include guard.
10875 * mi/mi-parse.h: Rename include guard.
10876 * mi/mi-out.h: Rename include guard.
10877 * mi/mi-main.h: Rename include guard.
10878 * mi/mi-interp.h: Rename include guard.
10879 * mi/mi-getopt.h: Rename include guard.
10880 * mi/mi-console.h: Rename include guard.
10881 * mi/mi-common.h: Rename include guard.
10882 * mi/mi-cmds.h: Rename include guard.
10883 * mi/mi-cmd-break.h: Rename include guard.
10884 * m2-lang.h: Add include guard.
10885 * location.h: Rename include guard.
10886 * linux-record.h: Rename include guard.
10887 * linux-nat.h: Add include guard.
10888 * linux-fork.h: Add include guard.
10889 * i386-darwin-tdep.h: Rename include guard.
10890 * hppa-linux-offsets.h: Add include guard.
10891 * guile/guile.h: Rename include guard.
10892 * guile/guile-internal.h: Rename include guard.
10893 * gnu-nat.h: Rename include guard.
10894 * gdb-stabs.h: Rename include guard.
10895 * frv-tdep.h: Add include guard.
10896 * f-lang.h: Add include guard.
10897 * event-loop.h: Add include guard.
10898 * darwin-nat.h: Rename include guard.
10899 * cp-abi.h: Rename include guard.
10900 * config/sparc/nm-sol2.h: Rename include guard.
10901 * config/nm-nto.h: Rename include guard.
10902 * config/nm-linux.h: Add include guard.
10903 * config/i386/nm-i386gnu.h: Rename include guard.
10904 * config/djgpp/nl_types.h: Rename include guard.
10905 * config/djgpp/langinfo.h: Rename include guard.
10906 * compile/gcc-cp-plugin.h: Add include guard.
10907 * compile/gcc-c-plugin.h: Add include guard.
10908 * compile/compile.h: Rename include guard.
10909 * compile/compile-object-run.h: Rename include guard.
10910 * compile/compile-object-load.h: Rename include guard.
10911 * compile/compile-internal.h: Rename include guard.
10912 * compile/compile-cplus.h: Rename include guard.
10913 * compile/compile-c.h: Rename include guard.
10914 * common/xml-utils.h: Rename include guard.
10915 * common/x86-xstate.h: Rename include guard.
10916 * common/version.h: Rename include guard.
10917 * common/vec.h: Rename include guard.
10918 * common/tdesc.h: Rename include guard.
10919 * common/selftest.h: Rename include guard.
10920 * common/scoped_restore.h: Rename include guard.
10921 * common/scoped_mmap.h: Rename include guard.
10922 * common/scoped_fd.h: Rename include guard.
10923 * common/safe-iterator.h: Rename include guard.
10924 * common/run-time-clock.h: Rename include guard.
10925 * common/refcounted-object.h: Rename include guard.
10926 * common/queue.h: Rename include guard.
10927 * common/ptid.h: Rename include guard.
10928 * common/print-utils.h: Rename include guard.
10929 * common/preprocessor.h: Rename include guard.
10930 * common/pathstuff.h: Rename include guard.
10931 * common/observable.h: Rename include guard.
10932 * common/netstuff.h: Rename include guard.
10933 * common/job-control.h: Rename include guard.
10934 * common/host-defs.h: Rename include guard.
10935 * common/gdb_wait.h: Rename include guard.
10936 * common/gdb_vecs.h: Rename include guard.
10937 * common/gdb_unlinker.h: Rename include guard.
10938 * common/gdb_unique_ptr.h: Rename include guard.
10939 * common/gdb_tilde_expand.h: Rename include guard.
10940 * common/gdb_sys_time.h: Rename include guard.
10941 * common/gdb_string_view.h: Rename include guard.
10942 * common/gdb_splay_tree.h: Rename include guard.
10943 * common/gdb_setjmp.h: Rename include guard.
10944 * common/gdb_ref_ptr.h: Rename include guard.
10945 * common/gdb_optional.h: Rename include guard.
10946 * common/gdb_locale.h: Rename include guard.
10947 * common/gdb_assert.h: Rename include guard.
10948 * common/filtered-iterator.h: Rename include guard.
10949 * common/filestuff.h: Rename include guard.
10950 * common/fileio.h: Rename include guard.
10951 * common/environ.h: Rename include guard.
10952 * common/common-utils.h: Rename include guard.
10953 * common/common-types.h: Rename include guard.
10954 * common/common-regcache.h: Rename include guard.
10955 * common/common-inferior.h: Rename include guard.
10956 * common/common-gdbthread.h: Rename include guard.
10957 * common/common-exceptions.h: Rename include guard.
10958 * common/common-defs.h: Rename include guard.
10959 * common/common-debug.h: Rename include guard.
10960 * common/cleanups.h: Rename include guard.
10961 * common/buffer.h: Rename include guard.
10962 * common/btrace-common.h: Rename include guard.
10963 * common/break-common.h: Rename include guard.
10964 * cli/cli-utils.h: Rename include guard.
10965 * cli/cli-style.h: Rename include guard.
10966 * cli/cli-setshow.h: Rename include guard.
10967 * cli/cli-script.h: Rename include guard.
10968 * cli/cli-interp.h: Rename include guard.
10969 * cli/cli-decode.h: Rename include guard.
10970 * cli/cli-cmds.h: Rename include guard.
10971 * charset-list.h: Add include guard.
10972 * buildsym-legacy.h: Rename include guard.
10973 * bfin-tdep.h: Add include guard.
10974 * ax.h: Rename include guard.
10975 * arm-linux-tdep.h: Add include guard.
10976 * arm-fbsd-tdep.h: Add include guard.
10977 * arch/xtensa.h: Rename include guard.
10978 * arch/tic6x.h: Add include guard.
10979 * arch/i386.h: Add include guard.
10980 * arch/arm.h: Rename include guard.
10981 * arch/arm-linux.h: Rename include guard.
10982 * arch/arm-get-next-pcs.h: Rename include guard.
10983 * arch/amd64.h: Add include guard.
10984 * arch/aarch64-insn.h: Rename include guard.
10985 * arch-utils.h: Rename include guard.
10986 * annotate.h: Add include guard.
10987 * amd64-darwin-tdep.h: Rename include guard.
10988 * aarch64-linux-tdep.h: Add include guard.
10989 * aarch64-fbsd-tdep.h: Add include guard.
10990 * aarch32-linux-nat.h: Add include guard.
10991
ab9268d2
PW
109922019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10993
10994 * macrotab.c (macro_define_internal): New function that
10995 factorizes macro_define_object_internal and macro_define_function
10996 code.
10997 (macro_define_object_internal): Use macro_define_internal.
10998 (macro_define_function): Likewise.
10999
bb0da2b4
PW
110002019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11001
11002 * macrocmd.c (extract_identifier): Return
11003 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11004 callers.
11005
424eb552
JB
110062019-02-06 John Baldwin <jhb@FreeBSD.org>
11007
11008 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11009
1688cb29
TT
110102019-02-05 Tom Tromey <tom@tromey.com>
11011
11012 * target.c (target_stack::unpush): Move assertion earlier.
11013
b5eba2d8
TT
110142019-01-30 Tom Tromey <tom@tromey.com>
11015
11016 PR python/23615:
11017 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11018 (gdbpy_parse_and_eval): Likewise.
11019 * python/python-internal.h (gdbpy_allow_threads): New class.
11020
7054e2ff
JB
110212019-01-28 John Baldwin <jhb@FreeBSD.org>
11022
11023 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11024 (aarch64_fbsd_fpregmap): Move earlier.
11025 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11026 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11027 instead of individual calls to trad_frame_set_reg_addr.
11028 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11029 earlier.
11030 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11031 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11032 instead of individual calls to trad_frame_set_reg_addr.
11033
36c25ffa
AH
110342019-01-28 Alan Hayward <alan.hayward@arm.com>
11035
11036 * CONTRIBUTE: Replace contribution list with wiki link.
11037
a0707f3c
TT
110382019-01-25 Tom Tromey <tom@tromey.com>
11039
11040 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11041
0747795c
TT
110422019-01-25 Tom Tromey <tom@tromey.com>
11043
11044 * xtensa-linux-nat.c: Fix common/ includes.
11045 * xml-support.h: Fix common/ includes.
11046 * xml-support.c: Fix common/ includes.
11047 * x86-linux-nat.c: Fix common/ includes.
11048 * windows-nat.c: Fix common/ includes.
11049 * varobj.h: Fix common/ includes.
11050 * varobj.c: Fix common/ includes.
11051 * value.c: Fix common/ includes.
11052 * valops.c: Fix common/ includes.
11053 * utils.c: Fix common/ includes.
11054 * unittests/xml-utils-selftests.c: Fix common/ includes.
11055 * unittests/utils-selftests.c: Fix common/ includes.
11056 * unittests/unpack-selftests.c: Fix common/ includes.
11057 * unittests/tracepoint-selftests.c: Fix common/ includes.
11058 * unittests/style-selftests.c: Fix common/ includes.
11059 * unittests/string_view-selftests.c: Fix common/ includes.
11060 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11061 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11062 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11063 * unittests/rsp-low-selftests.c: Fix common/ includes.
11064 * unittests/parse-connection-spec-selftests.c: Fix common/
11065 includes.
11066 * unittests/optional-selftests.c: Fix common/ includes.
11067 * unittests/offset-type-selftests.c: Fix common/ includes.
11068 * unittests/observable-selftests.c: Fix common/ includes.
11069 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11070 * unittests/memrange-selftests.c: Fix common/ includes.
11071 * unittests/memory-map-selftests.c: Fix common/ includes.
11072 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11073 * unittests/function-view-selftests.c: Fix common/ includes.
11074 * unittests/environ-selftests.c: Fix common/ includes.
11075 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11076 * unittests/common-utils-selftests.c: Fix common/ includes.
11077 * unittests/cli-utils-selftests.c: Fix common/ includes.
11078 * unittests/array-view-selftests.c: Fix common/ includes.
11079 * ui-file.c: Fix common/ includes.
11080 * tui/tui-io.c: Fix common/ includes.
11081 * tracepoint.h: Fix common/ includes.
11082 * tracepoint.c: Fix common/ includes.
11083 * tracefile-tfile.c: Fix common/ includes.
11084 * top.h: Fix common/ includes.
11085 * top.c: Fix common/ includes.
11086 * thread.c: Fix common/ includes.
11087 * target/waitstatus.h: Fix common/ includes.
11088 * target/waitstatus.c: Fix common/ includes.
11089 * target.h: Fix common/ includes.
11090 * target.c: Fix common/ includes.
11091 * target-memory.c: Fix common/ includes.
11092 * target-descriptions.c: Fix common/ includes.
11093 * symtab.h: Fix common/ includes.
11094 * symfile.c: Fix common/ includes.
11095 * stap-probe.c: Fix common/ includes.
11096 * spu-linux-nat.c: Fix common/ includes.
11097 * sparc-nat.c: Fix common/ includes.
11098 * source.c: Fix common/ includes.
11099 * solib.c: Fix common/ includes.
11100 * solib-target.c: Fix common/ includes.
11101 * ser-unix.c: Fix common/ includes.
11102 * ser-tcp.c: Fix common/ includes.
11103 * ser-pipe.c: Fix common/ includes.
11104 * ser-base.c: Fix common/ includes.
11105 * selftest-arch.c: Fix common/ includes.
11106 * s12z-tdep.c: Fix common/ includes.
11107 * rust-exp.y: Fix common/ includes.
11108 * rs6000-aix-tdep.c: Fix common/ includes.
11109 * riscv-tdep.c: Fix common/ includes.
11110 * remote.c: Fix common/ includes.
11111 * remote-notif.h: Fix common/ includes.
11112 * remote-fileio.h: Fix common/ includes.
11113 * remote-fileio.c: Fix common/ includes.
11114 * regcache.h: Fix common/ includes.
11115 * regcache.c: Fix common/ includes.
11116 * record-btrace.c: Fix common/ includes.
11117 * python/python.c: Fix common/ includes.
11118 * python/py-type.c: Fix common/ includes.
11119 * python/py-inferior.c: Fix common/ includes.
11120 * progspace.h: Fix common/ includes.
11121 * producer.c: Fix common/ includes.
11122 * procfs.c: Fix common/ includes.
11123 * proc-api.c: Fix common/ includes.
11124 * printcmd.c: Fix common/ includes.
11125 * ppc-linux-nat.c: Fix common/ includes.
11126 * parser-defs.h: Fix common/ includes.
11127 * osdata.c: Fix common/ includes.
11128 * obsd-nat.c: Fix common/ includes.
11129 * nat/x86-linux.c: Fix common/ includes.
11130 * nat/x86-linux-dregs.c: Fix common/ includes.
11131 * nat/x86-dregs.h: Fix common/ includes.
11132 * nat/x86-dregs.c: Fix common/ includes.
11133 * nat/ppc-linux.c: Fix common/ includes.
11134 * nat/mips-linux-watch.h: Fix common/ includes.
11135 * nat/mips-linux-watch.c: Fix common/ includes.
11136 * nat/linux-waitpid.c: Fix common/ includes.
11137 * nat/linux-ptrace.h: Fix common/ includes.
11138 * nat/linux-ptrace.c: Fix common/ includes.
11139 * nat/linux-procfs.c: Fix common/ includes.
11140 * nat/linux-personality.c: Fix common/ includes.
11141 * nat/linux-osdata.c: Fix common/ includes.
11142 * nat/linux-namespaces.c: Fix common/ includes.
11143 * nat/linux-btrace.h: Fix common/ includes.
11144 * nat/linux-btrace.c: Fix common/ includes.
11145 * nat/fork-inferior.c: Fix common/ includes.
11146 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11147 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11148 * nat/aarch64-linux.c: Fix common/ includes.
11149 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11150 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11151 * namespace.h: Fix common/ includes.
11152 * mips-linux-tdep.c: Fix common/ includes.
11153 * minsyms.c: Fix common/ includes.
11154 * mi/mi-parse.h: Fix common/ includes.
11155 * mi/mi-main.c: Fix common/ includes.
11156 * mi/mi-cmd-env.c: Fix common/ includes.
11157 * memrange.h: Fix common/ includes.
11158 * memattr.c: Fix common/ includes.
11159 * maint.h: Fix common/ includes.
11160 * maint.c: Fix common/ includes.
11161 * main.c: Fix common/ includes.
11162 * machoread.c: Fix common/ includes.
11163 * location.c: Fix common/ includes.
11164 * linux-thread-db.c: Fix common/ includes.
11165 * linux-nat.c: Fix common/ includes.
11166 * linux-fork.c: Fix common/ includes.
11167 * inline-frame.c: Fix common/ includes.
11168 * infrun.c: Fix common/ includes.
11169 * inflow.c: Fix common/ includes.
11170 * inferior.h: Fix common/ includes.
11171 * inferior.c: Fix common/ includes.
11172 * infcmd.c: Fix common/ includes.
11173 * inf-ptrace.c: Fix common/ includes.
11174 * inf-child.c: Fix common/ includes.
11175 * ia64-linux-nat.c: Fix common/ includes.
11176 * i387-tdep.c: Fix common/ includes.
11177 * i386-tdep.c: Fix common/ includes.
11178 * i386-linux-tdep.c: Fix common/ includes.
11179 * i386-linux-nat.c: Fix common/ includes.
11180 * i386-go32-tdep.c: Fix common/ includes.
11181 * i386-fbsd-tdep.c: Fix common/ includes.
11182 * i386-fbsd-nat.c: Fix common/ includes.
11183 * guile/scm-type.c: Fix common/ includes.
11184 * guile/guile.c: Fix common/ includes.
11185 * go32-nat.c: Fix common/ includes.
11186 * gnu-nat.c: Fix common/ includes.
11187 * gdbthread.h: Fix common/ includes.
11188 * gdbarch-selftests.c: Fix common/ includes.
11189 * gdb_usleep.c: Fix common/ includes.
11190 * gdb_select.h: Fix common/ includes.
11191 * gdb_bfd.c: Fix common/ includes.
11192 * gcore.c: Fix common/ includes.
11193 * fork-child.c: Fix common/ includes.
11194 * findvar.c: Fix common/ includes.
11195 * fbsd-nat.c: Fix common/ includes.
11196 * event-top.c: Fix common/ includes.
11197 * event-loop.c: Fix common/ includes.
11198 * dwarf2read.c: Fix common/ includes.
11199 * dwarf2loc.c: Fix common/ includes.
11200 * dwarf2-frame.c: Fix common/ includes.
11201 * dwarf-index-cache.c: Fix common/ includes.
11202 * dtrace-probe.c: Fix common/ includes.
11203 * disasm-selftests.c: Fix common/ includes.
11204 * defs.h: Fix common/ includes.
11205 * csky-tdep.c: Fix common/ includes.
11206 * cp-valprint.c: Fix common/ includes.
11207 * cp-support.h: Fix common/ includes.
11208 * cp-support.c: Fix common/ includes.
11209 * corelow.c: Fix common/ includes.
11210 * completer.h: Fix common/ includes.
11211 * completer.c: Fix common/ includes.
11212 * compile/compile.c: Fix common/ includes.
11213 * compile/compile-loc2c.c: Fix common/ includes.
11214 * compile/compile-cplus-types.c: Fix common/ includes.
11215 * compile/compile-cplus-symbols.c: Fix common/ includes.
11216 * command.h: Fix common/ includes.
11217 * cli/cli-dump.c: Fix common/ includes.
11218 * cli/cli-cmds.c: Fix common/ includes.
11219 * charset.c: Fix common/ includes.
11220 * build-id.c: Fix common/ includes.
11221 * btrace.h: Fix common/ includes.
11222 * btrace.c: Fix common/ includes.
11223 * breakpoint.h: Fix common/ includes.
11224 * breakpoint.c: Fix common/ includes.
11225 * ax.h:
11226 (enum agent_op): Fix common/ includes.
11227 * ax-general.c (struct aop_map): Fix common/ includes.
11228 * ax-gdb.c: Fix common/ includes.
11229 * auxv.c: Fix common/ includes.
11230 * auto-load.c: Fix common/ includes.
11231 * arm-tdep.c: Fix common/ includes.
11232 * arch/riscv.c: Fix common/ includes.
11233 * arch/ppc-linux-common.c: Fix common/ includes.
11234 * arch/i386.c: Fix common/ includes.
11235 * arch/arm.c: Fix common/ includes.
11236 * arch/arm-linux.c: Fix common/ includes.
11237 * arch/arm-get-next-pcs.c: Fix common/ includes.
11238 * arch/amd64.c: Fix common/ includes.
11239 * arch/aarch64.c: Fix common/ includes.
11240 * arch/aarch64-insn.c: Fix common/ includes.
11241 * arch-utils.c: Fix common/ includes.
11242 * amd64-windows-tdep.c: Fix common/ includes.
11243 * amd64-tdep.c: Fix common/ includes.
11244 * amd64-sol2-tdep.c: Fix common/ includes.
11245 * amd64-obsd-tdep.c: Fix common/ includes.
11246 * amd64-nbsd-tdep.c: Fix common/ includes.
11247 * amd64-linux-tdep.c: Fix common/ includes.
11248 * amd64-linux-nat.c: Fix common/ includes.
11249 * amd64-fbsd-tdep.c: Fix common/ includes.
11250 * amd64-fbsd-nat.c: Fix common/ includes.
11251 * amd64-dicos-tdep.c: Fix common/ includes.
11252 * amd64-darwin-tdep.c: Fix common/ includes.
11253 * agent.c: Fix common/ includes.
11254 * ada-lang.h: Fix common/ includes.
11255 * ada-lang.c: Fix common/ includes.
11256 * aarch64-tdep.c: Fix common/ includes.
11257
2f5c153e
TT
112582019-01-25 Tom Tromey <tom@tromey.com>
11259
11260 * common/create-version.sh: Use common/version.h.
11261
adc6a863
PA
112622019-01-24 Pedro Alves <palves@redhat.com>
11263
11264 * infrun.c (signal_stop, signal_print, signal_program)
11265 (signal_catch, signal_pass): Now arrays instead of pointers.
11266 (update_signals_program_target, do_target_resume)
11267 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11268 * linux-nat.c (linux_nat_target::pass_signals)
11269 (linux_nat_target::create_inferior, linux_nat_target::attach):
11270 Adjust.
11271 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11272 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11273 * procfs.c (procfs_target::pass_signals): Adjust.
11274 * record-full.c (record_full_target::resume): Adjust.
11275 * remote.c (remote_target::pass_signals)
11276 (remote_target::program_signals): Adjust.
11277 * target-debug.h (target_debug_print_signals): Now takes a
11278 gdb::array_view as parameter. Adjust.
11279 * target.h (target_ops) <pass_signals, program_signals>: Replace
11280 pointer and length parameters with gdb::array_view.
11281 (target_pass_signals, target_program_signals): Likewise.
11282 * target-delegates.c: Regenerate.
11283
3046d67a
PA
112842019-01-24 Pedro Alves <palves@redhat.com>
11285
11286 * common/forward-scope-exit.h
11287 (forward_scope_exit::forward_scope_exit): Pass arguments to
11288 m_bind_function directly, instead of creating a std::bind and
11289 copying that.
11290
353229bf
AH
112912019-01-24 Alan Hayward <alan.hayward@arm.com>
11292
11293 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11294 for static members.
11295 (pass_in_v_vfp_candidate): Likewise.
11296
311dc83a
TT
112972019-01-23 Tom Tromey <tom@tromey.com>
11298 Pedro Alves <palves@redhat.com>
11299
11300 * regcache.c (class regcache_invalidator): Remove.
11301 (regcache::raw_write): Use make_scope_exit.
11302
296bd123
TT
113032019-01-23 Tom Tromey <tom@tromey.com>
11304
11305 * ui-out.h (class ui_out_emit_type): Update comment.
11306
979a0d13
TT
113072019-01-23 Tom Tromey <tom@tromey.com>
11308
11309 * infrun.c (fetch_inferior_event): Update comment.
11310
d238133d
TT
113112019-01-23 Tom Tromey <tom@tromey.com>
11312 Pedro Alves <palves@redhat.com>
11313
11314 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11315 parameter.
11316 (fetch_inferior_event): Use SCOPE_EXIT.
11317
11318
9885e6bb
TT
113192019-01-23 Tom Tromey <tom@tromey.com>
11320 Pedro Alves <palves@redhat.com>
11321
11322 * infrun.c (disable_thread_events): Delete.
11323 (stop_all_threads): Use SCOPE_EXIT.
11324
286526c1
TT
113252019-01-23 Tom Tromey <tom@tromey.com>
11326 Pedro Alves <palves@redhat.com>
11327
11328 * symfile.c: Include forward-scope-exit.h.
11329 (clear_symtab_users_cleanup): Replace forward declaration with
11330 a FORWARD_SCOPE_EXIT.
11331 (syms_from_objfile_1): Use the forward_scope_exit and
11332 gdb::optional instead of cleanup_function.
11333 (reread_symbols): Use the forward_scope_exit instead of
11334 cleanup_function.
11335 (clear_symtab_users_cleanup): Remove function.
11336
1db93f14
TT
113372019-01-23 Tom Tromey <tom@tromey.com>
11338 Pedro Alves <palves@redhat.com>
11339
11340 * linux-nat.c: Include scope-exit.h.
11341 (cleanup_target_stop): Remove.
11342 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11343 SCOPE_EXIT.
11344
2cc83d1e
TT
113452019-01-23 Tom Tromey <tom@tromey.com>
11346 Pedro Alves <palves@redhat.com>
11347
11348 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11349 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11350
694c6bf5
TT
113512019-01-23 Tom Tromey <tom@tromey.com>
11352 Andrew Burgess <andrew.burgess@embecosm.com>
11353 Pedro Alves <palves@redhat.com>
11354
11355 * infrun.c (fetch_inferior_event): Use scope_exit.
11356 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11357 * top.c (execute_command): Use scope_exit.
11358 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11359 * utils.c (do_bpstat_clear_actions_cleanup)
11360 (make_bpstat_clear_actions_cleanup): Remove.
11361
4c41382a
TT
113622019-01-23 Tom Tromey <tom@tromey.com>
11363 Pedro Alves <palves@redhat.com>
11364
11365 * infrun.c: Include "common/scope-exit.h"
11366 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11367 (wait_for_inferior): Use SCOPE_EXIT.
11368 (fetch_inferior_event): Use scope_exit.
11369
89f8fb50
TT
113702019-01-23 Tom Tromey <tom@tromey.com>
11371 Pedro Alves <palves@redhat.com>
11372
11373 * breakpoint.c (create_breakpoint): Remove cleanup.
11374
5419bdae
TT
113752019-01-23 Tom Tromey <tom@tromey.com>
11376 Andrew Burgess <andrew.burgess@embecosm.com>
11377 Pedro Alves <palves@redhat.com>
11378
e587ef42
PA
113792019-01-23 Pedro Alves <palves@redhat.com>
11380
11381 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11382
77f0e74c
PA
113832019-01-23 Pedro Alves <palves@redhat.com>
11384 Andrew Burgess <andrew.burgess@embecosm.com>
11385
11386 * gdbthread.h: Include "common/forward-scope-exit.h".
11387 (scoped_finish_thread_state): Redefine custom class in terms of
11388 forward_scope_exit.
11389
5b9b3e53
PA
113902019-01-23 Pedro Alves <palves@redhat.com>
11391 Andrew Burgess <andrew.burgess@embecosm.com>
11392
11393 * common/forward-scope-exit.h: New file.
11394
54b65c9b
PA
113952019-01-23 Pedro Alves <palves@redhat.com>
11396 Andrew Burgess <andrew.burgess@embecosm.com>
11397 Tom Tromey <tom@tromey.com>
11398
11399 * common/scope-exit.h: New file.
11400
cf08fb29
PA
114012019-01-23 Pedro Alves <palves@redhat.com>
11402
11403 * common/preprocessor.h (ESC): Rename to ...
11404 (ESC_PARENS): ... this.
11405 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11406 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11407
ae73e2e2
TT
114082019-01-23 Tom Tromey <tom@tromey.com>
11409
11410 * language.h (class scoped_switch_to_sym_language_if_auto):
11411 Initialize m_lang in both cases.
11412
6594e122
AH
114132019-01-23 Alan Hayward <alan.hayward@arm.com>
11414
11415 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11416 with XCNEW.
11417
a7c9855d
TT
114182019-01-22 Tom Tromey <tom@tromey.com>
11419
11420 * corelow.c: Do not include sys/file.h.
11421
93cc1d53
TT
114222019-01-22 Tom Tromey <tom@tromey.com>
11423
11424 * tui/tui-wingeneral.h: Include gdb_curses.h.
11425
38561778
TT
114262019-01-22 Tom Tromey <tom@tromey.com>
11427
11428 * source-cache.h (class source_cache) <get_source_lines,
11429 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11430
37b3ab5b
TT
114312019-01-22 Tom Tromey <tom@tromey.com>
11432
11433 * remote-fileio.h (struct remote_target): Declare.
11434
3fabc016
TT
114352019-01-22 Tom Tromey <tom@tromey.com>
11436
11437 * python/py-arch.c: Do not include py-ref.h.
11438 * python/py-bpevent.c: Do not include py-ref.h.
11439 * python/py-cmd.c: Do not include py-ref.h.
11440 * python/py-continueevent.c: Do not include py-ref.h.
11441 * python/py-event.h: Do not include py-ref.h.
11442 * python/py-evtregistry.c: Do not include py-ref.h.
11443 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11444 * python/py-frame.c: Do not include py-ref.h.
11445 * python/py-framefilter.c: Do not include py-ref.h.
11446 * python/py-function.c: Do not include py-ref.h.
11447 * python/py-infevents.c: Do not include py-ref.h.
11448 * python/py-linetable.c: Do not include py-ref.h.
11449 * python/py-objfile.c: Do not include py-ref.h.
11450 * python/py-param.c: Do not include py-ref.h.
11451 * python/py-prettyprint.c: Do not include py-ref.h.
11452 * python/py-progspace.c: Do not include py-ref.h.
11453 * python/py-symbol.c: Do not include py-ref.h.
11454 * python/py-symtab.c: Do not include py-ref.h.
11455 * python/py-type.c: Do not include py-ref.h.
11456 * python/py-unwind.c: Do not include py-ref.h.
11457 * python/py-utils.c: Do not include py-ref.h.
11458 * python/py-value.c: Do not include py-ref.h.
11459 * python/py-varobj.c: Do not include py-ref.h.
11460 * python/py-xmethods.c: Do not include py-ref.h.
11461 * python/python.c: Do not include py-ref.h.
11462 * varobj.c: Do not include py-ref.h.
11463
6b4d7774
TT
114642019-01-22 Tom Tromey <tom@tromey.com>
11465
11466 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11467 keyword for bcache.
11468
7af7e9b5
TT
114692019-01-22 Tom Tromey <tom@tromey.com>
11470
11471 * compile/compile-cplus-types.c: Remove a comment by #include.
11472
951d1049
TT
114732019-01-22 Tom Tromey <tom@tromey.com>
11474
11475 * compile/gcc-c-plugin.h: Include compile-internal.h.
11476
d65d5705
TT
114772019-01-22 Tom Tromey <tom@tromey.com>
11478
11479 * stabsread.c (EXTERN): Do not define.
11480 (symnum, next_symbol_text_func, processing_gcc_compilation)
11481 (within_function, global_sym_chain, global_stabs)
11482 (previous_stab_code, this_object_header_files)
11483 (n_this_object_header_files)
11484 (n_allocated_this_object_header_files): Define.
11485 * stabsread.h (EXTERN): Never define. Use "extern".
11486
b6fb1ee5
PW
114872019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11488
11489 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11490 history_value.
11491
be6d4f74
TT
114922019-01-21 Tom Tromey <tom@tromey.com>
11493
11494 * ui-out.c: Fix includes.
11495 * tui/tui-source.c: Fix includes.
11496 * target.c: Fix includes.
11497 * remote.c: Fix includes.
11498 * regcache.c: Fix includes.
11499 * python/py-block.c: Fix includes.
11500 * printcmd.c: Fix includes.
11501 * or1k-tdep.c: Fix includes.
11502 * mi/mi-main.c: Fix includes.
11503 * m32r-tdep.c: Fix includes.
11504 * csky-tdep.c: Fix includes.
11505 * compile/compile-cplus-types.c: Fix includes.
11506 * cli/cli-interp.c: Fix includes.
11507
73021deb
AH
115082019-01-21 Alan Hayward <alan.hayward@arm.com>
11509
11510 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11511 for padding.
11512
7932255d
TT
115132019-01-16 Tom Tromey <tom@tromey.com>
11514
11515 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11516 earlier.
11517 (struct objfile) <msymbols_range>: Move from top level.
11518 <msymbols>: New method.
11519 (class objfile_msymbols): Remove.
11520 * symtab.c (default_collect_symbol_completion_matches_break_on):
11521 Update.
11522 * symmisc.c (dump_msymbols): Update.
11523 * stabsread.c (scan_file_globals): Update.
11524 * objc-lang.c (info_selectors_command, info_classes_command)
11525 (find_methods): Update.
11526 * minsyms.c (find_solib_trampoline_target): Update.
11527 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11528 * coffread.c (coff_symfile_read): Update.
11529 * ada-lang.c (ada_lookup_simple_minsym)
11530 (ada_collect_symbol_completion_matches): Update.
11531
604b1bfb
TT
115322019-01-16 Tom Tromey <tom@tromey.com>
11533
11534 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11535 type. Remove no-argument constructor.
11536 <iterator::operator++>: Simplify.
11537 <begin>: Update.
11538 <end>: Use minimal_symbol_count.
11539
f252c6d5
TT
115402019-01-16 Tom Tromey <tom@tromey.com>
11541
11542 * objfiles.h (struct objfile) <psymtabs>: New method.
11543 (class objfile_psymtabs): Remove.
11544 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11545 typedef.
11546 <range>: New method.
11547 (require_partial_symbols): Change return type.
11548 * psymtab.c (require_partial_symbols)
11549 (psym_expand_symtabs_matching): Update.
11550 * mdebugread.c (parse_partial_symbols): Update.
11551 * dbxread.c (dbx_end_psymtab): Update.
11552
b669c953
TT
115532019-01-15 Tom Tromey <tom@tromey.com>
11554
11555 * symtab.c (lookup_objfile_from_block)
11556 (lookup_symbol_in_objfile_symtabs)
11557 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11558 (find_line_symtab, info_sources_command)
11559 (default_collect_symbol_completion_matches_break_on)
11560 (make_source_files_completion_list): Update.
11561 * symmisc.c (print_objfile_statistics, dump_objfile)
11562 (maintenance_print_symbols, maintenance_info_symtabs)
11563 (maintenance_check_symtabs, maintenance_info_line_tables):
11564 Update.
11565 * source.c (select_source_symtab)
11566 (forget_cached_source_info_for_objfile): Update.
11567 * objfiles.h (class objfile_compunits): Remove.
11568 (struct objfile) <compunits_range>: New typedef.
11569 (compunits): New method.
11570 * objfiles.c (objfile_relocate1): Update.
11571 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11572 * maint.c (count_symtabs_and_blocks): Update.
11573 * linespec.c (iterate_over_all_matching_symtabs): Update.
11574 * cp-support.c (add_symbol_overload_list_qualified): Update.
11575 * coffread.c (coff_symtab_read): Update.
11576 * ada-lang.c (add_nonlocal_symbols)
11577 (ada_collect_symbol_completion_matches)
11578 (ada_add_global_exceptions): Update.
11579
7e955d83
TT
115802019-01-15 Tom Tromey <tom@tromey.com>
11581
11582 * progspace.h (program_space) <objfiles_safe_range>: New
11583 typedef.
11584 <objfiles_safe>: New method.
11585 * objfiles.h (class all_objfiles_safe): Remove.
11586 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11587 * jit.c (jit_inferior_exit_hook): Update.
11588
2030c079
TT
115892019-01-17 Tom Tromey <tom@tromey.com>
11590
11591 * progspace.h (program_space) <objfiles_range>: New typedef.
11592 <objfiles>: New method.
11593 <objfiles_head>: Rename from objfiles.
11594 (object_files): Update.
11595 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11596 * guile/scm-pretty-print.c
11597 (ppscm_find_pretty_printer_from_objfiles): Update.
11598 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11599 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11600 Update.
11601 * python/py-progspace.c (pspy_get_objfiles): Update.
11602 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11603 Update.
11604 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11605 (objfpy_lookup_objfile_by_build_id): Update.
11606 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11607 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11608 Update.
11609 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11610 (expand_symtab_containing_pc, lookup_objfile_from_block)
11611 (lookup_static_symbol, basic_lookup_transparent_type)
11612 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11613 (find_line_symtab, info_sources_command)
11614 (default_collect_symbol_completion_matches_break_on)
11615 (make_source_files_completion_list, find_main_name): Update.
11616 * symmisc.c (print_symbol_bcache_statistics)
11617 (print_objfile_statistics, maintenance_print_symbols)
11618 (maintenance_print_msymbols, maintenance_print_objfiles)
11619 (maintenance_info_symtabs, maintenance_check_symtabs)
11620 (maintenance_expand_symtabs, maintenance_info_line_tables):
11621 Update.
11622 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11623 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11624 (map_overlay_command, unmap_overlay_command)
11625 (simple_overlay_update, expand_symtabs_matching)
11626 (map_symbol_filenames): Update.
11627 * symfile-debug.c (set_debug_symfile): Update.
11628 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11629 Update.
11630 * source.c (select_source_symtab, forget_cached_source_info):
11631 Update.
11632 * solib.c (solib_read_symbols): Update.
11633 * solib-spu.c (append_ocl_sos): Update.
11634 * psymtab.c (maintenance_print_psymbols)
11635 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11636 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11637 * printcmd.c (info_symbol_command): Update.
11638 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11639 Update.
11640 * objfiles.h (class all_objfiles): Remove.
11641 * objfiles.c (have_partial_symbols, have_full_symbols)
11642 (have_minimal_symbols, qsort_cmp, update_section_map)
11643 (shared_objfile_contains_address_p)
11644 (default_iterate_over_objfiles_in_search_order): Update.
11645 * objc-lang.c (info_selectors_command, info_classes_command)
11646 (find_methods): Update.
11647 * minsyms.c (find_solib_trampoline_target): Update.
11648 * maint.c (maintenance_info_sections)
11649 (maintenance_translate_address, count_symtabs_and_blocks):
11650 Update.
11651 * main.c (captured_main_1): Update.
11652 * linux-thread-db.c (try_thread_db_load_from_pdir)
11653 (has_libpthread): Update.
11654 * linespec.c (iterate_over_all_matching_symtabs)
11655 (search_minsyms_for_name): Update.
11656 * jit.c (jit_find_objf_with_entry_addr): Update.
11657 * hppa-tdep.c (find_unwind_entry)
11658 (hppa_lookup_stub_minimal_symbol): Update.
11659 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11660 Update.
11661 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11662 (elf_gnu_ifunc_resolve_by_got): Update.
11663 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11664 * dwarf-index-write.c (save_gdb_index_command): Update.
11665 * cp-support.c (add_symbol_overload_list_qualified): Update.
11666 * breakpoint.c (create_overlay_event_breakpoint)
11667 (create_longjmp_master_breakpoint)
11668 (create_std_terminate_master_breakpoint)
11669 (create_exception_master_breakpoint): Update.
11670 * blockframe.c (find_pc_partial_function): Update.
11671 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11672 (ada_collect_symbol_completion_matches)
11673 (ada_add_global_exceptions): Update.
11674
776489e0
TT
116752019-01-17 Tom Tromey <tom@tromey.com>
11676
11677 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11678 declare VEC.
11679 (solib_target_parse_libraries): Change return type.
11680 (library_list_start_segment, library_list_start_section)
11681 (library_list_end_library, library_list_start_library); Update.
11682 (solib_target_free_library_list): Remove.
11683 (solib_target_parse_libraries): Remove cleanup. Change return
11684 type.
11685 (solib_target_current_sos): Update.
11686
6471e7d2
TT
116872019-01-17 Tom Tromey <tromey@bapiya>
11688
11689 * valprint.c: Replace "the the" with "the".
11690 * symtab.c: Replace "the the" with "the".
11691 * solib.c: Replace "the the" with "the".
11692 * solib-dsbt.c: Replace "the the" with "the".
11693 * linespec.c: Replace "the the" with "the".
11694 * dwarf2loc.h: Replace "the the" with "the".
11695 * amd64-windows-tdep.c: Replace "the the" with "the".
11696 * aarch64-tdep.c: Replace "the the" with "the".
11697
c24bdb02
KS
116982019-01-16 Keith Seitz <keiths@redhat.com>
11699
11700 PR gdb/23773
11701 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11702 <builder>: Rename to ..
11703 <m_builder>: ... this and make private.
11704 (dwarf2_cu::get_builder): New method. Change all users of
11705 `builder' to use this method.
11706 (dwarf2_start_symtab): Move to ...
11707 (dwarf2_cu::start_symtab): ... here. Update all callers
11708 (setup_type_unit_groups): Move to ...
11709 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11710 callers.
11711 (dwarf2_cu::reset_builder): New method.
11712 (process_full_compunit, process_full_type_unit): Use
11713 dwarf2_cu::reset_builder.
11714 (follow_die_offset): Record the ancestor CU if it is different
11715 from the followed DIE's CU.
11716 (follow_die_sig_1): Likewise.
11717
8d64371b
TT
117182019-01-15 Tom Tromey <tom@tromey.com>
11719
11720 * remote.c (class remote_state) <buf>: Now a char_vector.
11721 <buf_size>: Remove.
11722 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11723 parameter.
11724 (remote_target::getpkt_or_notif_sane_1)
11725 (remote_target::getpkt_sane)
11726 (remote_target::getpkt_or_notif_sane): Likewise.
11727 (class remote_target) <putpkt>: New overload.
11728 (remote_target::read_frame): Change type of "buf_p". Remove
11729 sizeof_p parameter.
11730 (packet_ok): New overload.
11731 (packet_check_result): New overload.
11732 Update all uses.
11733
bb277751
TT
117342019-01-14 Tom Tromey <tom@tromey.com>
11735
11736 * remote-notif.c (handle_notification, remote_notif_ack)
11737 (remote_notif_parse): Make "buf" const.
11738 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11739 const.
11740 (remote_notif_parse, remote_notif_ack, handle_notification):
11741 Likewise.
11742 * remote.c (remote_notif_stop_parse): Make "buf" const.
11743 (remote_target::remote_parse_stop_reply): Make "buf" const.
11744 (remote_notif_stop_ack): Make "buf" const.
11745
05be00a8
TT
117462019-01-14 Tom Tromey <tom@tromey.com>
11747
11748 * remote.c (remote_console_output): Make parameter const.
11749
491adeca
TT
117502019-01-14 Tom Tromey <tom@tromey.com>
11751
11752 * target-debug.h (target_debug_print_signals): Constify.
11753 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11754 * procfs.c (procfs_target::pass_signals): Update.
11755 * linux-nat.c (linux_nat_target::pass_signals): Update.
11756 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11757 * target-delegates.c: Rebuild.
11758 * remote.c (remote_target::program_signals): Update.
11759 (remote_target::pass_signals): Update.
11760 * target.c (target_pass_signals): Constify argument.
11761 (target_program_signals): Likewise.
11762 * target.h (struct target_ops) <pass_signals, program_signals>:
11763 Constify argument.
11764 (target_pass_signals, target_program_signals): Constify argument.
11765
bbd94648
TT
117662019-01-14 Tom Tromey <tom@tromey.com>
11767
11768 PR tui/28819:
11769 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11770
6f072a10
PFC
117712019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11772
11773 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11774 field.
11775 * rs6000-tdep.c: Include reggroups.h.
11776 (IS_V_ALIAS_PSEUDOREG): Define.
11777 (rs6000_register_name): Return names for the "vX" aliases.
11778 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11779 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11780 aliases. Call default_register_reggroup_p for all other
11781 pseudo-registers.
11782 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11783 New functions.
11784 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11785 Handle "vX" aliases.
11786 (v_alias_pseudo_register_collect): New function.
11787 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11788 (rs6000_gdbarch_init): Initialize "vX" aliases as
11789 pseudo-registers. Restore registration of
11790 rs6000_pseudo_register_reggroup_p with
11791 set_tdesc_pseudo_register_reggroup_p.
11792
1a782351
MF
117932019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11794
11795 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11796 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11797 set_gdbarch_num_pseudo_regs.
11798
d73cff18
PW
117992019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11800
11801 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11802 Remove arg prefixname, add do_set and do_show.
11803 Add member functions set_list and show_list.
11804 * cli/cli-style.c (class cli_style_option): Update accordingly.
11805 (style_set_list): Move to file scope.
11806 (style_show_list): Likewise.
11807 (set_style): Call help_list.
11808 (show_style): Call cmd_show_list.
11809 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11810 Update to use the new macro.
11811
60a90376
JB
118122019-10-12 Joel Brobecker <brobecker@adacore.com>
11813
11814 * ada-lang.c (_initialize_ada_language): Expand the help text
11815 for the "catch exception" command.
11816
9d7c67bf
PW
118172019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11818
11819 * symtab.c (matching_obj_sections): Initialize obj,
11820 declare it closer to its usage.
11821
7cf47dc4
TT
118222019-01-10 Tom Tromey <tom@tromey.com>
11823
11824 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11825 (basic_inf_threads_range): Remove.
11826 (inf_threads_range, inf_non_exited_threads_range)
11827 (safe_inf_threads_range): Use next_adapter.
11828
d3cb6808
KS
118292019-01-10 Keith Seitz <keiths@redhat.com>
11830
11831 PR gdb/23712
11832 PR symtab/23010
11833 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11834 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11835
63a20375
KS
118362019-01-10 Keith Seitz <keiths@redhat.com>
11837
11838 PR gdb/23712
11839 PR symtab/23010
11840 * dictionary.c (pending_to_vector): Remove.
11841 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11842 Remove _1 suffix, replacing functions of the same name. Update
11843 all callers.
11844 (dict_create_hashed, dict_create_hashed_expandable)
11845 (dict_create_linear, dict_create_linear_expandable, dict_free)
11846 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11847 Make functions static.
11848
b026f593
KS
118492019-01-10 Keith Seitz <keiths@redhat.com>
11850
11851 PR gdb/23712
11852 PR symtab/23010
11853 * dictionary.h (struct dictionary): Replace declaration with
11854 multidictionary.
11855 (dict_create_hashed, dict_create_hashed_expandable)
11856 (dict_create_linear, dict_create_linear_expandable)
11857 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11858 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11859 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11860 taking multidictionary argument.
11861 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11862 * block.h (struct block) <dict>: Change to multidictionary
11863 and rename `multidict'.
11864 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11865 symmisc.c: Update all dictionary references to multidictionary.
11866
c7748ee9
KS
118672019-01-10 Keith Seitz <keiths@redhat.com>
11868
11869 PR gdb/23712
11870 PR symtab/23010
11871 * dictionary.c: Include unordered_map.
11872 (pending_to_vector): New function.
11873 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11874 Rewrite the non-"_1" functions to take vector instead
11875 of linked list.
11876 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11877 "new" _1 versions of the same name.
11878 (multidictionary): Define.
11879 (std::hash<enum language): New definition.
11880 (collate_pending_symbols_by_language, mdict_create_hashed)
11881 (mdict_create_hashed_expandable, mdict_create_linear)
11882 (mdict_create_linear_expandable, mdict_free)
11883 (find_language_dictionary, create_new_language_dictionary)
11884 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11885 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11886 (mdict_size, mdict_empty): New functions.
11887 * dictionary.h (mdict_iterator): Define.
11888
67aa1f3c
PA
118892019-01-10 Pedro Alves <palves@redhat.com>
11890
11891 * breakpoint.c (read_uploaded_action)
11892 (create_tracepoint_from_upload): Adjust to use
11893 gdb::unique_xmalloc_ptr.
11894 * ctf.c (ctf_write_uploaded_tp):
11895 (SET_ARRAY_FIELD): Use emplace_back.
11896 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11897 * tracefile-tfile.c (tfile_write_uploaded_tp):
11898 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11899 gdb::unique_xmalloc_ptr.
11900 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11901 at_string, cond_string, cmd_strings>: Replace char pointers
11902 with gdb::unique_xmalloc_ptr.
11903
2f667667
PA
119042019-01-10 Pedro Alves <palves@redhat.com>
11905
11906 * solib-target.c (library_list_start_library): Don't xstrdup name.
11907
36cb7237
PA
119082019-01-10 Pedro Alves <palves@redhat.com>
11909
11910 * mdebugread.c (parse_partial_symbols): Use
11911 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11912
da584958
AB
119132019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11914
11915 * linux-fork.c (scoped_switch_fork_info)
11916 <~scoped_switch_fork_info>: Fix incorrect variable name.
11917
1ef8573c
AB
119182019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11919
11920 * linux-fork.c (scoped_switch_fork_info)
11921 <scoped_switch_fork_info>: Make explicit.
11922 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11923
8d7bcccb
TT
119242019-01-10 Tom Tromey <tom@tromey.com>
11925
11926 * objfiles.h (objfile::reset_psymtabs): Update.
11927 * objfiles.c (objfile::objfile): Update.
11928 * psymtab.h (psymtab_storage::obstack): Update.
11929 (psymtab_storage::m_obstack): Use gdb::optional.
11930 (class psymtab_storage): Update comment. Remove objfile
11931 parameter.
11932 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11933
b596a3c7
TT
119342019-01-10 Tom Tromey <tom@tromey.com>
11935
11936 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11937 <free_psymtabs>: Now private.
11938 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11939 (allocate_psymtab): Use new method.
11940
a9342b62
TT
119412019-01-10 Tom Tromey <tom@tromey.com>
11942
11943 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11944 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11945 * mdebugread.c (parse_partial_symbols): Use
11946 allocate_dependencies.
11947 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11948 allocate_dependencies.
11949 (process_psymtab_comp_unit_reader)
11950 (build_type_psymtab_dependencies): Likewise.
11951 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11952
5af70966
TT
119532019-01-10 Tom Tromey <tom@tromey.com>
11954
11955 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11956 PSYMBOL_SET_LANGUAGE.
11957 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11958
5923a04c
TT
119592019-01-10 Tom Tromey <tom@tromey.com>
11960
11961 * psymtab.h (psymtab_storage::obstack): New method.
11962 <m_obstack>: Rename from obstack; now private.
11963 * psymtab.c (psymtab_storage): Update.
11964 * dwarf2read.c (create_addrmap_from_index)
11965 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11966 Update.
11967
6d6a12bf
TT
119682019-01-10 Tom Tromey <tom@tromey.com>
11969
11970 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11971 * objfiles.h (objfile::reset_psymtabs): New method.
11972
d320c2b5
TT
119732019-01-10 Tom Tromey <tom@tromey.com>
11974
11975 * symmisc.c (print_symbol_bcache_statistics): Update.
11976 (print_objfile_statistics): Update.
11977 * symfile.c (reread_symbols): Update.
11978 * psymtab.h (class psymtab_storage): New.
11979 * psymtab.c (psymtab_storage): New constructor.
11980 (~psymtab_storage): New destructor.
11981 (require_partial_symbols): Update.
11982 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11983 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11984 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11985 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11986 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11987 (start_psymtab_common, end_psymtab_common)
11988 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11989 (allocate_psymtab): Update.
11990 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11991 Update.
11992 (dump_psymtab_addrmap, maintenance_print_psymbols)
11993 (maintenance_check_psymtabs): Update.
11994 (class objfile_psymtabs): Move to objfiles.h.
11995 * psympriv.h (discard_psymtab): Now inline.
11996 (psymtab_discarder::psymtab_discarder): Update.
11997 (psymtab_discarder::~psymtab_discarder): Update.
11998 (ALL_OBJFILE_PSYMTABS): Rewrite.
11999 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12000 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12001 Remove fields.
12002 <partial_symtabs>: New field.
12003 (class objfile_psymtabs): Move from psymtab.h. Update.
12004 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12005 psymbol_cache.
12006 (objfile::~objfile): Don't destroy psymbol_cache.
12007 * mdebugread.c (parse_partial_symbols): Update.
12008 * dwarf2read.c (create_addrmap_from_index)
12009 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12010 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12011 (add_partial_subprogram, dwarf2_ranges_read): Update.
12012 * dwarf-index-write.c (write_address_map)
12013 (write_one_signatured_type, recursively_write_psymbols)
12014 (class debug_names, class debug_names, write_psymtabs_to_index):
12015 Update.
12016
1d94a5a3
TT
120172019-01-10 Tom Tromey <tom@tromey.com>
12018
12019 * symtab.h (SYMBOL_SET_NAMES): Update.
12020 (symbol_set_names): Update.
12021 (MSYMBOL_SET_NAMES): Update.
12022 * symtab.c (symbol_set_names): Change argument to be an
12023 objfile_per_bfd_storage.
12024 * psymtab.c (add_psymbol_to_bcache): Update.
12025 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12026
0f14768a
TT
120272019-01-10 Tom Tromey <tom@tromey.com>
12028
12029 * symtab.c (create_demangled_names_hash): Change argument to be an
12030 objfile_per_bfd_storage.
12031 (symbol_set_names): Update.
12032
6eee24ce
TT
120332019-01-10 Tom Tromey <tom@tromey.com>
12034
12035 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12036 init_psymbol_list.
12037 * psymtab.c (init_psymbol_list): Do nothing if already called.
12038 * psympriv.h (init_psymbol_list): Add comment.
12039 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12040 init_psymbol_list.
12041 * dbxread.c (dbx_symfile_read): Unconditionally call
12042 init_psymbol_list.
12043
75aedd27
TT
120442019-01-10 Tom Tromey <tom@tromey.com>
12045
12046 * xcoffread.c (scan_xcoff_symtab): Update.
12047 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12048 "where".
12049 * mdebugread.c (parse_partial_symbols)
12050 (handle_psymbol_enumerators): Update.
12051 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12052 * dbxread.c (read_dbx_symtab): Update.
12053 * psympriv.h (psymbol_placement): New enum.
12054 (add_psymbol_to_list): Update.
12055
939652a5
TT
120562019-01-10 Tom Tromey <tom@tromey.com>
12057
12058 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12059 static_psymbols parameters.
12060 (scan_xcoff_symtab): Update.
12061 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12062 static_psymbols parameters.
12063 * psympriv.h (start_psymtab_common): Update.
12064 * mdebugread.c (parse_partial_symbols): Update.
12065 * dwarf2read.c (create_partial_symtab): Update.
12066 * dbxread.c (read_dbx_symtab): Update.
12067 (start_psymtab): Remove global_psymbols and static_psymbols
12068 parameters.
12069
baa62830
TT
120702019-01-10 Tom Tromey <tom@tromey.com>
12071
12072 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12073 * psymtab.c (allocate_psymtab): Add comment.
12074 * psympriv.h (allocate_psymtab): Add comment.
12075 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12076 initializations.
12077 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12078
0e8f53ba
TT
120792019-01-10 Tom Tromey <tom@tromey.com>
12080
12081 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12082 Don't declare.
12083 * mipsread.c: Include mdebugread.h.
12084 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12085 Declare.
12086 * elfread.c: Include mdebugread.h.
12087
b22a7c6a
TT
120882019-01-09 Tom Tromey <tom@tromey.com>
12089
12090 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12091 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12092 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12093 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12094 (psym_lookup_symbol, psym_find_last_source_symtab)
12095 (psym_forget_cached_source_info, psym_print_stats)
12096 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12097 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12098 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12099 (psym_find_compunit_symtab_by_address)
12100 (maintenance_print_psymbols, maintenance_info_psymtabs)
12101 (maintenance_check_psymtabs): Use ranged for.
12102 * psymtab.h (class objfile_psymtabs): New.
12103 (require_partial_symbols): Return objfile_psymtabs.
12104 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12105
3b9d3ac2
TT
121062019-01-09 Tom Tromey <tom@tromey.com>
12107
12108 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12109 (find_pc_mapped_section, list_overlays_command)
12110 (map_overlay_command, unmap_overlay_command)
12111 (simple_overlay_update): Use all_objfiles.
12112 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12113 * printcmd.c (info_symbol_command): Use all_objfiles.
12114 * objfiles.h (ALL_OBJSECTIONS): Remove.
12115 * maint.c (maintenance_translate_address): Use all_objfiles.
12116 * gcore.c (gcore_create_callback): Use all_objfiles.
12117 (objfile_find_memory_regions): Likewise.
12118
8b31193a
TT
121192019-01-09 Tom Tromey <tom@tromey.com>
12120
12121 * symtab.c (find_line_symtab, info_sources_command)
12122 (make_source_files_completion_list): Use objfile_compunits.
12123 * source.c (select_source_symtab): Use objfile_compunits.
12124 * objfiles.h (struct objfile): Update comment.
12125 (ALL_OBJFILES): Remove.
12126 (ALL_FILETABS): Remove.
12127 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12128 objfile_compunits.
12129
d5da8b3c
TT
121302019-01-09 Tom Tromey <tom@tromey.com>
12131
12132 * symmisc.c (print_objfile_statistics, dump_objfile)
12133 (maintenance_print_symbols): Use compunit_filetabs.
12134 * source.c (forget_cached_source_info_for_objfile): Use
12135 compunit_filetabs.
12136 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12137 (ALL_FILETABS): Use compunit_filetabs.
12138 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12139 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12140
5accd1a0
TT
121412019-01-09 Tom Tromey <tom@tromey.com>
12142
12143 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12144 (compunit_filetabs): New.
12145 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12146 compunit_filetabs.
12147 (info_sources_command, make_source_files_completion_list): Remove
12148 declaration.
12149 * symmisc.c (print_objfile_statistics, dump_objfile)
12150 (maintenance_print_symbols): Remove declaration.
12151 (maintenance_info_symtabs): Use compunit_filetabs.
12152 (maintenance_info_line_tables): Likewise.
12153 * source.c (select_source_symtab): Change local variable name.
12154 (forget_cached_source_info_for_objfile): Remove declaration.
12155 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12156 * objfiles.c (objfile_relocate1): Remove declaration.
12157 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12158 declaration.
12159 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12160 * coffread.c (coff_symtab_read): Remove declaration.
12161 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12162 compunit_filetabs.
12163
d8aeb77f
TT
121642019-01-09 Tom Tromey <tom@tromey.com>
12165
12166 * symtab.c (lookup_objfile_from_block)
12167 (find_pc_sect_compunit_symtab, search_symbols)
12168 (default_collect_symbol_completion_matches_break_on): Use
12169 objfile_compunits.
12170 * objfiles.h (ALL_COMPUNITS): Remove.
12171 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12172 * cp-support.c (add_symbol_overload_list_qualified): Use
12173 objfile_compunits.
12174 * ada-lang.c (ada_collect_symbol_completion_matches)
12175 (ada_add_global_exceptions): Use objfile_compunits.
12176
592553c4
TT
121772019-01-09 Tom Tromey <tom@tromey.com>
12178
12179 * source.c (select_source_symtab)
12180 (forget_cached_source_info_for_objfile): Remove declaration.
12181 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12182 declaration.
12183 * maint.c (count_symtabs_and_blocks): Remove declaration.
12184 * cp-support.c (add_symbol_overload_list_qualified): Remove
12185 declaration.
12186 * coffread.c (coff_symtab_read): Remove declaration.
12187 * symtab.c (lookup_symbol_in_objfile_symtabs)
12188 (basic_lookup_transparent_type_1): Use objfile_compunits.
12189 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12190 (info_sources_command, search_symbols)
12191 (default_collect_symbol_completion_matches_break_on)
12192 (make_source_files_completion_list): Remove declaration.
12193 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12194 (ada_collect_symbol_completion_matches)
12195 (ada_add_global_exceptions): Remove declaration.
12196 * linespec.c (iterate_over_all_matching_symtabs): Use
12197 objfile_compunits.
12198 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12199 (class objfile_compunits): New.
12200 (ALL_COMPUNITS): Use objfile_compunits.
12201 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12202 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12203 objfile_compunits.
12204 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12205
5325b9bf
TT
122062019-01-09 Tom Tromey <tom@tromey.com>
12207
12208 * symtab.c (search_symbols)
12209 (default_collect_symbol_completion_matches_break_on): Use
12210 objfile_msymbols.
12211 * ada-lang.c (ada_lookup_simple_minsym)
12212 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12213 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12214 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12215 objfile_msymbols.
12216 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12217 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12218 * objc-lang.c (find_methods): Use objfile_msymbols.
12219 (info_selectors_command, info_classes_command): Likewise.
12220 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12221 * objfiles.h (class objfile_msymbols): New.
12222 (ALL_OBJFILE_MSYMBOLS): Remove.
12223 (ALL_MSYMBOLS): Remove.
12224
cac85af2
TT
122252019-01-09 Tom Tromey <tom@tromey.com>
12226
12227 * common/next-iterator.h (next_adapter): Add Iterator template
12228 parameter.
12229 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12230 (class all_objfiles_safe): New.
12231 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12232 * objfiles.c (put_objfile_before): Update comment.
12233 (add_separate_debug_objfile): Likewise.
12234 (free_all_objfiles): Use all_objfiles_safe.
12235 (objfile_purge_solibs): Likewise.
12236
aed57c53
TT
122372019-01-09 Tom Tromey <tom@tromey.com>
12238
12239 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12240 (expand_symtab_containing_pc, lookup_static_symbol)
12241 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12242 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12243 all_objfiles.
12244 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12245 * breakpoint.c (create_overlay_event_breakpoint)
12246 (create_longjmp_master_breakpoint)
12247 (create_std_terminate_master_breakpoint)
12248 (create_exception_master_breakpoint): Use all_objfiles.
12249 * linux-thread-db.c (try_thread_db_load_from_pdir)
12250 (has_libpthread): Use all_objfiles.
12251 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12252 * linespec.c (iterate_over_all_matching_symtabs)
12253 (search_minsyms_for_name): Use all_objfiles.
12254 * maint.c (maintenance_info_sections): Use all_objfiles.
12255 * main.c (captured_main_1): Use all_objfiles.
12256 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12257 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12258 * guile/scm-pretty-print.c
12259 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12260 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12261 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12262 (maintenance_print_msymbols): Use all_objfiles.
12263 * source.c (select_source_symtab): Use all_objfiles.
12264 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12265 * symfile.c (remove_symbol_file_command)
12266 (expand_symtabs_matching, map_symbol_filenames): Use
12267 all_objfiles.
12268 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12269 all_objfiles.
12270 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12271 * objc-lang.c (find_methods): Use all_objfiles.
12272 * objfiles.c (have_partial_symbols, have_full_symbols)
12273 (have_minimal_symbols, qsort_cmp)
12274 (default_iterate_over_objfiles_in_search_order): Use
12275 all_objfiles.
12276 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12277 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12278 (maintenance_check_psymtabs): Use all_objfiles.
12279 (ALL_PSYMTABS): Remove.
12280 * compile/compile-object-run.c (do_module_cleanup): Use
12281 all_objfiles.
12282 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12283 * cp-support.c (add_symbol_overload_list_qualified): Use
12284 all_objfiles.
12285 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12286 Use all_objfiles.
12287 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12288 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12289 all_objfiles.
12290 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12291 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12292 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12293 Uses all_objfiles.
12294 * solib.c (solib_read_symbols): Use all_objfiles
12295
99d89cde
TT
122962019-01-09 Tom Tromey <tom@tromey.com>
12297
12298 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12299 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12300 all_objfiles.
12301 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12302 * symmisc.c (print_symbol_bcache_statistics)
12303 (print_objfile_statistics, maintenance_print_objfiles)
12304 (maintenance_info_symtabs, maintenance_check_symtabs)
12305 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12306 all_objfiles.
12307 * source.c (forget_cached_source_info): Use all_objfiles.
12308 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12309 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12310 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12311 * objfiles.c (update_section_map): Use all_objfiles.
12312 (shared_objfile_contains_address_p): Likewise.
12313 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12314 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12315
21708325
TT
123162019-01-09 Tom Tromey <tom@tromey.com>
12317
12318 * common/next-iterator.h: New file.
12319 * objfiles.h (class all_objfiles): New.
12320 (struct objfile_iterator): New.
12321
669e09f6
PW
123222019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12323
12324 * NEWS: Move the description of the changed "frame", "select-frame",
12325 and "info frame" commands to the Changed commands section.
12326
041be526
SM
123272019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12328
12329 * gdbtypes.c (check_stub_method_group): Remove handling of old
12330 mangling schemes.
12331 * linespec.c (find_methods): Likewise.
12332 * stabsread.c (read_member_functions): Likewise.
12333 * valops.c (search_struct_method): Likewise.
12334 (value_struct_elt_for_reference): Likewise.
12335 * NEWS: Mention this change.
12336
0e2a2133
AB
123372019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12338
12339 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12340 print_source_lines.
12341 * source.c (print_source_lines_base): Update line number check.
12342 (print_source_lines): New function.
12343 (source_lines_range::source_lines_range): New function.
12344 * source.h (class source_lines_range): New class.
12345 (print_source_lines): New declaration.
12346
1055a3b4
PW
123472019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12348
12349 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12350
cfeadda5
TT
123512019-01-08 Tom Tromey <tom@tromey.com>
12352 Simon Marchi <simon.marchi@ericsson.com>
12353
12354 PR gdb/24060
12355 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12356 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12357 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12358 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12359 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12360 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12361
583068ca
AB
123622019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12363
12364 * source.c (select_source_symtab): Move header comment to
12365 declaration in source.h.
12366 (forget_cached_source_info_for_objfile): Likewise.
12367 (forget_cached_source_info): Likewise.
12368 (identify_source_line): Likewise.
12369 * source.h (identify_source_line): Move declaration from symtab.h
12370 and add comment from source.c
12371 (print_source_lines): Likewise.
12372 (forget_cached_source_info_for_objfile): Likewise.
12373 (forget_cached_source_info): Likewise.
12374 (select_source_symtab): Likewise.
12375 (enum print_source_lines_flag): Move definition from symtab.h.
12376 * symtab.h (identify_source_line): Move declaration to source.h.
12377 (print_source_lines): Likewise.
12378 (forget_cached_source_info_for_objfile): Likewise.
12379 (forget_cached_source_info): Likewise.
12380 (select_source_symtab): Likewise.
12381 (enum print_source_lines_flag): Move definition to source.h.
12382 * tui/tui-hooks.c: Add 'source.h' include.
12383
ec98a4ad
AB
123842019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12385
12386 * source.c (print_source_lines_base): Handle requests to print
12387 reverse line number sequences, and guard against empty lines
12388 string.
12389
62ea19c1
AB
123902019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12391
12392 * source.c (print_source_lines_base): Fix skip of '\r' if next
12393 character is '\n'.
12394
9d30e1fd
TT
123952019-01-06 Tom Tromey <tom@tromey.com>
12396
12397 * c-exp.y (struct c_parse_state) <macro_original_text,
12398 expansion_obstack>: New member.
12399 (macro_original_text, expansion_obstack): Remove globals.
12400 (scan_macro_expansion, scanning_macro_expansion)
12401 (finished_macro_expansion): Update.
12402 (scan_macro_cleanup): Remove.
12403 (yylex, c_parse): Update.
12404
c65bac38
TT
124052019-01-06 Tom Tromey <tom@tromey.com>
12406
12407 * c-exp.y (struct c_parse_state) <strings>: New member.
12408 (operator_stoken): Update.
12409
02e12e38
TT
124102019-01-06 Tom Tromey <tom@tromey.com>
12411
12412 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12413 (union type_stack_elt) <typelist_val>: Now a pointer to
12414 std::vector.
12415 (type_stack_cleanup): Don't declare.
12416 (push_typelist): Update.
12417 * parse.c (pop_typelist): Return a std::vector.
12418 (push_typelist): Take a std::vector.
12419 (follow_types): Update. Do not free args.
12420 (type_stack_cleanup): Remove.
12421 * c-exp.y (struct c_parse_state): New.
12422 (cpstate): New global.
12423 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12424 (nonempty_typelist): Update.
12425 (func_mod): Create a new vector.
12426 (c_parse): Create a c_parse_state.
12427 (check_parameter_typelist): Do not delete params.
12428 (function_method): Update. Do not delete type_list.
12429
f097f5ad
TT
124302019-01-06 Tom Tromey <tom@tromey.com>
12431
12432 PR gdb/28155:
12433 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12434 check_typedef.
12435 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12436 (print_return_value): Likewise.
12437
d2adf9f1
TT
124382019-01-05 Tom Tromey <tom@tromey.com>
12439
12440 * contrib/cleanup_check.py: Remove.
12441 * contrib/gcc-with-excheck: Remove.
12442 * contrib/exsummary.py: Remove.
12443 * contrib/excheck.py: Remove.
12444
2eab46b1
JB
124452019-01-05 Joel Brobecker <brobecker@adacore.com>
12446
12447 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12448 NULL. Initialize tpprev to NULL instead of assigning it
12449 to NULL on the next statement.
12450 * windows-nat.c (windows_delete_thread): Remove check for
12451 main_thread_id before printing thread exit notifications.
12452 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12453 Remove thread ID check against main_thread_id.
12454 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12455 windows_delete_thread.
12456 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12457
48c5e7e2
TT
124582019-01-04 Tom Tromey <tom@tromey.com>
12459
12460 * compile/compile.c (_initialize_compile): Use upper case for
12461 metasyntactic variables.
12462 * symmisc.c (_initialize_symmisc): Use upper case for
12463 metasyntactic variables.
12464 * psymtab.c (_initialize_psymtab): Use upper case for
12465 metasyntactic variables.
12466 * demangle.c (demangle_command): Use upper case for metasyntactic
12467 variables.
12468 (_initialize_demangler): Likewise.
12469 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12470 variables.
12471
986041cd
TT
124722019-01-03 Tom Tromey <tom@tromey.com>
12473
12474 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12475
7c711119
TT
124762019-01-03 Tom Tromey <tom@tromey.com>
12477
12478 * python/py-symtab.c (salpy_str): Update.
12479 (struct salpy_sal_object) <symtab>: Now a PyObject.
12480 (salpy_dealloc): Update.
12481 (del_objfile_sal): Use gdbpy_ref.
12482
1b20edf0
TT
124832019-01-03 Tom Tromey <tom@tromey.com>
12484
12485 * python/py-type.c (convert_field): Use new_reference. Return
12486 gdbpy_ref.
12487 (make_fielditem): Return gdbpy_ref.
12488 (typy_fields): Update.
12489 (typy_getitem): Update.
12490 (field_name): Return gdbpy_ref. Use new_reference.
12491 (typy_iterator_iternext): Update.
12492
ea41325b
TT
124932019-01-03 Tom Tromey <tom@tromey.com>
12494
12495 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12496
2a3c71d6
TT
124972019-01-03 Tom Tromey <tom@tromey.com>
12498
12499 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12500 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12501 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12502 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12503 (pspy_set_type_printers): Likewise.
12504 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12505 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12506 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12507 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12508 (objfpy_set_type_printers): Likewise.
12509
5c329e6a
TT
125102019-01-03 Tom Tromey <tom@tromey.com>
12511
12512 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12513 (gdbpy_print_stack): Use gdbpy_err_fetch.
12514 * python/python-internal.h (class gdbpy_err_fetch): New class.
12515 (class gdbpy_enter) <m_error_type, m_error_value,
12516 m_error_traceback>: Remove.
12517 <m_error>: New member.
12518 (gdbpy_exception_to_string): Don't declare.
12519 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12520 * python/py-value.c (convert_value_from_python): Use
12521 gdbpy_err_fetch.
12522 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12523 gdbpy_exception_to_string.
12524 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12525 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12526 gdbpy_err_fetch.
12527
169bb27b
AB
125282019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12529
12530 * linux-nat.c (delete_lwp_cleanup): Delete.
12531 (struct lwp_deleter): New struct.
12532 (lwp_info_up): New typedef.
12533 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12534 lwp_info_up.
12535
a07c8880
AB
125362019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12537
12538 * linux-fork.c (class scoped_switch_fork_info): New class.
12539 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12540
26089c49
AB
125412019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12542
12543 * valops.c (find_overload_match): Remove use of null_cleanup, and
12544 calls to do_cleanups.
12545
06d3e5b0
AB
125462019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12547
12548 * compile/compile-cplus-types.c
12549 (compile_cplus_instance::decl_name): Handle changes to
12550 cp_func_name.
12551 * cp-support.c (cp_func_name): Update header comment, update
12552 return type.
12553 * cp-support.h (cp_func_name): Update return type in declaration.
12554 * valops.c (find_overload_match): Move temp_func local to top
12555 level of function and change its type. Use temp_func to hold and
12556 delete temporary string obtained from cp_func_name.
12557
66644cd3
AB
125582019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12559
12560 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12561 gdb::char_vector, remove cleanup, and update uses of `msg`.
12562
592d8c0a
JW
125632019-01-03 Jim Wilson <jimw@sifive.com>
12564
12565 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12566
c55d06ec
TT
125672019-01-02 Tom Tromey <tom@tromey.com>
12568
12569 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12570 (tdesc_parse_xml): Remove cleanups.
12571 * target-descriptions.h (make_cleanup_free_target_description):
12572 Don't declare.
12573 (target_desc_deleter): New struct.
12574 (target_desc_up): New typedef.
12575 * target-descriptions.c (target_desc_deleter::operator()): Rename
12576 from free_target_description.
12577 (make_cleanup_free_target_description): Remove.
12578
3a6ae42d
TT
125792019-01-02 Tom Tromey <tom@tromey.com>
12580
12581 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12582 constructor, destructor.
12583 (linespec_parser): Remove typedef.
12584 (~linespec_parser): Rename from linespec_parser_delete.
12585 (linespec_lex_to_end, linespec_complete_label)
12586 (linespec_complete): Update.
12587 (decode_line_full): Remove cleanups.
12588 (decode_line_1): Update.
12589
61fd3e73
TT
125902019-01-02 Tom Tromey <tom@tromey.com>
12591
12592 * python/python-internal.h (inferior_to_inferior_object): Change
12593 return type.
12594 * python/py-exitedevent.c (create_exited_event_object): Update.
12595 * python/py-inferior.c (inferior_to_inferior_object): Return
12596 gdbpy_ref.
12597 (python_new_inferior, python_inferior_deleted)
12598 (thread_to_thread_object, delete_thread_object)
12599 (build_inferior_list, gdbpy_selected_inferior): Update.
12600 * python/py-infthread.c (create_thread_object): Update. Also fail
12601 if inferior_to_inferior_object fails.
12602
d20172fc
SM
126032019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12604
12605 * inferior.h (class inferior) <displaced_step_state>: New field.
12606 * infrun.h (struct displaced_step_state): Move here from
12607 infrun.c. Initialize fields, add constructor.
12608 <inf>: Remove field.
12609 <reset>: New method.
12610 * infrun.c (struct displaced_step_inferior_state): Move to
12611 infrun.h.
12612 (displaced_step_inferior_states): Remove.
12613 (get_displaced_stepping_state): Adust.
12614 (displaced_step_in_progress_any_inferior): Adjust.
12615 (displaced_step_in_progress_thread): Adjust.
12616 (displaced_step_in_progress): Adjust.
12617 (add_displaced_stepping_state): Remove.
12618 (get_displaced_step_closure_by_addr): Adjust.
12619 (remove_displaced_stepping_state): Remove.
12620 (infrun_inferior_exit): Call displaced_step_state.reset.
12621 (use_displaced_stepping): Don't check for NULL.
12622 (displaced_step_prepare_throw): Call
12623 get_displaced_stepping_state.
12624 (displaced_step_fixup): Don't check for NULL.
12625 (prepare_for_detach): Don't check for NULL.
12626
e3319240
PW
126272019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12628
12629 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12630 in case of call that did not complete.
12631
5d36dfb9
AU
126322019-01-02 Andrey Utkin <autkin@undo.io>
12633
12634 * symfile.c (find_separate_debug_file): Fix search of debug files for
12635 remote debuggee.
12636
8833fbf0
TT
126372019-01-02 Tom Tromey <tom@tromey.com>
12638
12639 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12640 indentation.
12641 * python/py-frame.c (frapy_older): Remove cast.
12642 (frapy_newer): Likewise.
12643 * python/py-breakpoint.c (local_setattro): Remove cast.
12644 * python/py-arch.c (archpy_name): Remove local variable.
12645 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12646
4ada3dfd
JB
126472019-01-02 Joel Brobecker <brobecker@adacore.com>
12648
12649 * unittests/basic_string_view/element_access/char/empty.cc:
12650 Fix year range in copyright header.
12651
113b7b81
AB
126522019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12653
12654 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12655 Delete.
12656 <operator==>: Update with for removed field.
12657 <hash>: Likewise.
12658 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12659 <isa_features>: ...this.
12660 <abi_features>: New field.
12661 (riscv_isa_flen): Update comment.
12662 (riscv_abi_xlen): New declaration.
12663 (riscv_abi_flen): New declaration.
12664 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12665 isa_features.
12666 (riscv_abi_xlen): New function.
12667 (riscv_isa_flen): Update to get answer from isa_features.
12668 (riscv_abi_flen): New function.
12669 (riscv_has_fp_abi): Update to get answer from abi_features.
12670 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12671 xlen and flen.
12672 (riscv_call_info) <xlen, flen>: Update comment.
12673 (riscv_call_arg_struct): Remove invalid assertions
12674 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12675 is removed.
12676 (riscv_gdbarch_init): Gather isa features and abi features
12677 separately, ensure both match on the gdbarch when reusing an old
12678 gdbarch. Relax an error check to allow 32-bit abi float to run on
12679 a target with 64-bit float hardware.
12680
b18ca514
PW
126812019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12682
12683 * source.c (search_command_helper): Stop reverse search
12684 when line 1 has been searched.
12685
ec70d8db
PW
126862019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12687
12688 * record-full.c (record_full_base_target::close): Rewrite
12689 record_full_core_buf_list free logic.
12690
5b38f9c1
PW
126912019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12692
12693 * break-catch-syscall.c (print_one_catch_syscall): xfree
12694 the last text.
12695
66d91b39
JB
126962019-01-01 Joel Brobecker <brobecker@adacore.com>
12697
12698 * top.c (print_gdb_version): Update Copyright year in version
12699 message.
12700
42a4f53d
JB
127012019-01-01 Joel Brobecker <brobecker@adacore.com>
12702
12703 Update copyright year range in all GDB files.
12704
7e955d83 127052019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 12706
5bbd631d 12707 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 12708
5bbd631d 12709For older changes see ChangeLog-2018.
c906108c
SS
12710\f
12711Local Variables:
12712mode: change-log
12713left-margin: 8
12714fill-column: 74
12715version-control: never
57da7796 12716coding: utf-8
c906108c 12717End:
5bbd631d 12718
This page took 3.095649 seconds and 4 git commands to generate.