bfd macro conversion to inline functions, section
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
00f93c44
AM
12019-09-20 Alan Modra <amodra@gmail.com>
2
3 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
5 (read_indirect_string_from_dwz): Use bfd accessor.
6 * dwarf2read.h (struct dwz_file <filename>): Likewise.
7 * machoread.c (macho_symfile_read_all_oso): Likewise.
8 * solib.c (solib_bfd_open): Likewise.
9
e4153ae6
CB
102019-09-19 Christian Biesinger <cbiesinger@google.com>
11
12 * eval.c: Move declaration of overload_resolution to...
13 * value.h: ...here.
14
c7ae7675
CB
152019-09-19 Christian Biesinger <cbiesinger@google.com>
16
17 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
18 * arm-linux-tdep.c: Likewise.
19 * arm-nbsd-nat.c: Likewise.
20 * arm-tdep.h: Declare arm_apcs_32.
21 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
22
e86f08d2
CB
232019-09-19 Christian Biesinger <cbiesinger@google.com>
24
25 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
26 * dwarf2read.h: Declare dwarf_always_disassemble.
27
f64e2f40
TV
282019-09-19 Tom de Vries <tdevries@suse.de>
29
30 PR gdb/25009
31 * source-cache.c (source_cache::ensure): Catch exception thrown during
32 construction of the highlighter.
33
fd361982
AM
342019-09-18 Alan Modra <amodra@gmail.com>
35
36 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
37 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
38 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
39 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
40 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
41 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
42 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
43 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
44 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
45 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
46 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
47 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
48 * solib-spu.c, * solib-svr4.c, * solib-target.c,
49 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
50 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
51 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
52 * mi/mi-interp.c: Update throughout for bfd section macro and
53 function changes.
54 * gcore (gcore_create_callback): Use bfd_set_section_lma.
55 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
56
11061048
TT
572019-09-18 Tom Tromey <tom@tromey.com>
58
59 * NEWS: Add entry.
60 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
61 call rl_initialize.
62 (tui_enable): Do not call rl_initialize.
63
7a27b85f
CG
642019-09-18 Christian Groessler <chris@groessler.org>
65
66 * alpha-linux-nat.c: Include gdbarch.h.
67
f64eea3a
SM
682019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
69
70 * ui-file.c: Include cli/cli-style.h.
71 (term_cli_styling): Remove cli_styling declaration.
72
e6f7f6d1
AM
732019-09-18 Alan Modra <amodra@gmail.com>
74
75 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
76 to bfd_asymbol_section.
77
1d38e9d1
AM
782019-09-18 Alan Modra <amodra@gmail.com>
79
80 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
81 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
82 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
83
90d92a63
AM
842019-09-18 Alan Modra <amodra@gmail.com>
85
86 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
87 * spu-linux-nat.c (spu_bfd_open): Likewise.
88
a3d181d2
CB
892019-09-18 Christian Biesinger <cbiesinger@google.com>
90
91 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
92 to bool to match definition in dwarf2read.c.
93
491144b5
CB
942019-09-17 Christian Biesinger <cbiesinger@google.com>
95
96 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
97 (print_signatures): Likewise.
98 (trust_pad_over_xvs): Likewise.
99 * arch/aarch64-insn.c (aarch64_debug): Likewise.
100 * arch/aarch64-insn.h (aarch64_debug): Likewise.
101 * arm-linux-nat.c (arm_apcs_32): Likewise.
102 * arm-linux-tdep.c (arm_apcs_32): Likewise.
103 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
104 * arm-tdep.c (arm_debug): Likewise.
105 (arm_apcs_32): Likewise.
106 * auto-load.c (debug_auto_load): Likewise.
107 (auto_load_gdb_scripts): Likewise.
108 (global_auto_load): Likewise.
109 (auto_load_local_gdbinit): Likewise.
110 (auto_load_local_gdbinit_loaded): Likewise.
111 * auto-load.h (global_auto_load): Likewise.
112 (auto_load_local_gdbinit): Likewise.
113 (auto_load_local_gdbinit_loaded): Likewise.
114 * breakpoint.c (disconnected_dprintf): Likewise.
115 (breakpoint_proceeded): Likewise.
116 (automatic_hardware_breakpoints): Likewise.
117 (always_inserted_mode): Likewise.
118 (target_exact_watchpoints): Likewise.
119 (_initialize_breakpoint): Update.
120 * breakpoint.h (target_exact_watchpoints): Change to bool.
121 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
122 * cli/cli-cmds.c (trace_commands): Likewise.
123 * cli/cli-cmds.h (trace_commands): Likewise.
124 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
125 to bool*.
126 * cli/cli-logging.c (logging_overwrite): Change to bool.
127 (logging_redirect): Likewise.
128 (debug_redirect): Likewise.
129 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
130 (struct boolean_option_def) <get_var_address_cb_>: Change return type
131 to bool.
132 <boolean_option_def>: Update.
133 (struct flag_option_def): Change default type of Context to bool
134 from int.
135 <flag_option_def>: Change return type of var_address_cb_ to bool*.
136 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
137 (get_setshow_command_value_string): Likewise.
138 * cli/cli-style.c (cli_styling): Change to bool.
139 (source_styling): Likewise.
140 * cli/cli-style.h (source_styling): Likewise.
141 (cli_styling): Likewise.
142 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
143 to bool.
144 * command.h (var_types): Update comment.
145 (add_setshow_boolean_cmd): Change int* var argument to bool*.
146 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
147 bool.
148 (debug_compile_cplus_scopes): Likewise.
149 * compile/compile-internal.h (compile_debug): Likewise.
150 * compile/compile.c (compile_debug): Likewise.
151 (struct compile_options) <raw>: Likewise.
152 * cp-support.c (catch_demangler_crashes): Likewise.
153 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
154 (usr_cmd_cris_dwarf2_cfi): Likewise.
155 * csky-tdep.c (csky_debug): Likewise.
156 * darwin-nat.c (enable_mach_exceptions): Likewise.
157 * dcache.c (dcache_enabled_p): Likewise.
158 * defs.h (info_verbose): Likewise.
159 * demangle.c (demangle): Likewise.
160 (asm_demangle): Likewise.
161 * dwarf-index-cache.c (debug_index_cache): Likewise.
162 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
163 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
164 * dwarf2read.c (check_physname): Likewise.
165 (use_deprecated_index_sections): Likewise.
166 (dwarf_always_disassemble): Likewise.
167 * eval.c (overload_resolution): Likewise.
168 * event-top.c (set_editing_cmd_var): Likewise.
169 (exec_done_display_p): Likewise.
170 * event-top.h (set_editing_cmd_var): Likewise.
171 (exec_done_display_p): Likewise.
172 * exec.c (write_files): Likewise.
173 * fbsd-nat.c (debug_fbsd_lwp): Likewise
174 (debug_fbsd_nat): Likewise.
175 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
176 Likewise.
177 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
178 <backtrace_past_entry> Likewise.
179 * gdb-demangle.h (demangle): Likewise.
180 (asm_demangle): Likewise.
181 * gdb_bfd.c (bfd_sharing): Likewise.
182 * gdbcore.h (write_files): Likewise.
183 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
184 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
185 * gdbthread.h (print_thread_events): Likewise.
186 * gdbtypes.c (opaque_type_resolution): Likewise.
187 (strict_type_checking): Likewise.
188 * gnu-nat.c (gnu_debug_flag): Likewise.
189 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
190 * guile/scm-param.c (pascm_variable): Add boolval.
191 (add_setshow_generic): Update.
192 (pascm_param_value): Update.
193 (pascm_set_param_value_x): Update.
194 * hppa-tdep.c (hppa_debug): Change to bool..
195 * infcall.c (may_call_functions_p): Likewise.
196 (coerce_float_to_double_p): Likewise.
197 (unwind_on_signal_p): Likewise.
198 (unwind_on_terminating_exception_p): Likewise.
199 * infcmd.c (startup_with_shell): Likewise.
200 * inferior.c (print_inferior_events): Likewise.
201 * inferior.h (startup_with_shell): Likewise.
202 (print_inferior_events): Likewise.
203 * infrun.c (step_stop_if_no_debug): Likewise.
204 (detach_fork): Likewise.
205 (debug_displaced): Likewise.
206 (disable_randomization): Likewise.
207 (non_stop): Likewise.
208 (non_stop_1): Likewise.
209 (observer_mode): Likewise.
210 (observer_mode_1): Likewise.
211 (set_observer_mode): Update.
212 (sched_multi): Change to bool.
213 * infrun.h (debug_displaced): Likewise.
214 (sched_multi): Likewise.
215 (step_stop_if_no_debug): Likewise.
216 (non_stop): Likewise.
217 (disable_randomization): Likewise.
218 * linux-tdep.c (use_coredump_filter): Likewise.
219 (dump_excluded_mappings): Likewise.
220 * linux-thread-db.c (auto_load_thread_db): Likewise.
221 (check_thread_db_on_load): Likewise.
222 * main.c (captured_main_1): Update.
223 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
224 xx2_opt, boolean_opt>: Change to bool.
225 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
226 * maint.c (maintenance_profile_p): Likewise.
227 (per_command_time): Likewise.
228 (per_command_space): Likewise.
229 (per_command_symtab): Likewise.
230 * memattr.c (inaccessible_by_default): Likewise.
231 * mi/mi-main.c (mi_async): Likewise.
232 (mi_async_1): Likewise.
233 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
234 * nat/fork-inferior.h (startup_with_shell): Likewise.
235 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
236 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
237 * nios2-tdep.c (nios2_debug): Likewise.
238 * or1k-tdep.c (or1k_debug): Likewise.
239 * parse.c (parser_debug): Likewise.
240 * parser-defs.h (parser_debug): Likewise.
241 * printcmd.c (print_symbol_filename): Likewise.
242 * proc-api.c (procfs_trace): Likewise.
243 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
244 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
245 (set_parameter_value): Update.
246 (add_setshow_generic): Update.
247 * python/py-value.c (copy_py_bool_obj): Change argument from int*
248 to bool*.
249 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
250 int*.
251 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
252 * record-btrace.c (record_btrace_target::store_registers): Update.
253 * record-full.c (record_full_memory_query): Change to bool.
254 (record_full_stop_at_limit): Likewise.
255 * record-full.h (record_full_memory_query): Likewise.
256 * remote-notif.c (notif_debug): Likewise.
257 * remote-notif.h (notif_debug): Likewise.
258 * remote.c (use_range_stepping): Likewise.
259 (interrupt_on_connect): Likewise.
260 (remote_break): Likewise.
261 * ser-tcp.c (tcp_auto_retry): Likewise.
262 * ser-unix.c (serial_hwflow): Likewise.
263 * skip.c (debug_skip): Likewise.
264 * solib-aix.c (solib_aix_debug): Likewise.
265 * spu-tdep.c (spu_stop_on_load_p): Likewise.
266 (spu_auto_flush_cache_p): Likewise.
267 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
268 Likewise.
269 (struct info_print_options) <quiet>: Likewise.
270 * symfile-debug.c (debug_symfile): Likewise.
271 * symfile.c (auto_solib_add): Likewise.
272 (separate_debug_file_debug): Likewise.
273 * symfile.h (auto_solib_add): Likewise.
274 (separate_debug_file_debug): Likewise.
275 * symtab.c (basenames_may_differ): Likewise.
276 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
277 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
278 (struct info_types_options) <quiet>: Likewise.
279 * symtab.h (demangle): Likewise.
280 (basenames_may_differ): Likewise.
281 * target-dcache.c (stack_cache_enabled_1): Likewise.
282 (code_cache_enabled_1): Likewise.
283 * target.c (trust_readonly): Likewise.
284 (may_write_registers): Likewise.
285 (may_write_memory): Likewise.
286 (may_insert_breakpoints): Likewise.
287 (may_insert_tracepoints): Likewise.
288 (may_insert_fast_tracepoints): Likewise.
289 (may_stop): Likewise.
290 (auto_connect_native_target): Likewise.
291 (target_stop_and_wait): Update.
292 (target_async_permitted): Change to bool.
293 (target_async_permitted_1): Likewise.
294 (may_write_registers_1): Likewise.
295 (may_write_memory_1): Likewise.
296 (may_insert_breakpoints_1): Likewise.
297 (may_insert_tracepoints_1): Likewise.
298 (may_insert_fast_tracepoints_1): Likewise.
299 (may_stop_1): Likewise.
300 * target.h (target_async_permitted): Likewise.
301 (may_write_registers): Likewise.
302 (may_write_memory): Likewise.
303 (may_insert_breakpoints): Likewise.
304 (may_insert_tracepoints): Likewise.
305 (may_insert_fast_tracepoints): Likewise.
306 (may_stop): Likewise.
307 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
308 (make_thread_apply_all_options_def_group): Change argument from int*
309 to bool*.
310 (thread_apply_all_command): Update.
311 (print_thread_events): Change to bool.
312 * top.c (confirm): Likewise.
313 (command_editing_p): Likewise.
314 (history_expansion_p): Likewise.
315 (write_history_p): Likewise.
316 (info_verbose): Likewise.
317 * top.h (confirm): Likewise.
318 (history_expansion_p): Likewise.
319 * tracepoint.c (disconnected_tracing): Likewise.
320 (circular_trace_buffer): Likewise.
321 * typeprint.c (print_methods): Likewise.
322 (print_typedefs): Likewise.
323 * utils.c (debug_timestamp): Likewise.
324 (sevenbit_strings): Likewise.
325 (pagination_enabled): Likewise.
326 * utils.h (sevenbit_strings): Likewise.
327 (pagination_enabled): Likewise.
328 * valops.c (overload_resolution): Likewise.
329 * valprint.h (struct value_print_options) <prettyformat_arrays,
330 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
331 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
332 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
333 Likewise.
334 * windows-nat.c (new_console): Likewise.
335 (cygwin_exceptions): Likewise.
336 (new_group): Likewise.
337 (debug_exec): Likewise.
338 (debug_events): Likewise.
339 (debug_memory): Likewise.
340 (debug_exceptions): Likewise.
341 (useshell): Likewise.
342 * windows-tdep.c (maint_display_all_tib): Likewise.
343 * xml-support.c (debug_xml): Likewise.
344
f1b620e9
MG
3452019-09-17 Mike Gulick <mgulick@mathworks.com>
346
347 * source.c (prepare_path_for_appending): New function.
348 (openp): Make use of new function.
349 (find_and_open_source): Search for the compilation directory and
350 source file as a relative path beneath the directory search path.
351
67f3ed6a
AB
3522019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
353
354 * source-cache.c (source_cache::get_line_charpos): Catch
355 exceptions and return false, this matches the behaviour documented
356 in the header file.
357
74332189
JB
3582019-09-17 Joel Brobecker <brobecker@adacore.com>
359
360 * ada-tasks.c (info_task): Remove quoting of the task's name.
361
f2f24aa9
CB
3622019-09-16 Christian Biesinger <cbiesinger@google.com>
363
364 * symfile.c (auto_solib_add): Replace comment with a reference
365 to the header file.
366
6a062a93
CB
3672019-09-14 Christian Biesinger <cbiesinger@google.com>
368
369 * NEWS: Mention that gdb can now be compiled with Python 3
370 on Windows.
371
ec6c8338
AB
3722019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
373
374 * maint.c (maint_print_section_data::maint_print_section_data):
375 Force use of 'float log10 (float)' by casting the argument to
376 float.
377
aa17805f
AB
3782019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
379
380 * maint.c: Add 'cmath' include.
381 (struct maint_print_section_data): New structure.
382 (print_section_index): New function.
383 (print_bfd_section_info): Add header comment, small whitespace
384 cleanup, and update to call new print_section_index function.
385 (print_objfile_section_info): Likewise.
386 (maint_obj_section_from_bfd_section): New function.
387 (print_bfd_section_info_maybe_relocated): New function.
388 (maintenance_info_sections): Add header comment, always use
389 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
390
3dd9bb46
AB
3912019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
392
393 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
394 inner scope, add check that the objfile has psymtabs before
395 checking psymtabs_addrmap.
396 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
397
4993045d
PW
3982019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
399
400 * NEWS: Announce that Ada task names are now shown at more places,
401 and between quotes (except in info task output).
402 * gdb/ada-tasks.c (task_to_str): New function.
403 (display_current_task_id): Call task_to_str.
404 (task_command_1): Likewise.
405 (print_ada_task_info): In non-mi mode, Properly align headers and data
406 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
407
7a289707
RO
4082019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
409
410 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
411 prstatus.pr_lwp.pr_info instead of making it up.
412
f2aec7f6
CB
4132019-09-11 Christian Biesinger <cbiesinger@google.com>
414
415 * auto-load.c (auto_load_expand_dir_vars): Update.
416 * defs.h (gdb_datadir): Change to std::string.
417 (python_libdir): Likewise.
418 (relocate_gdb_directory): Change return type to std::string.
419 * guile/guile.c (gdbscm_data_directory): Update.
420 (initialize_scheme_side): Update.
421 * jit.c (jit_reader_dir): Change to std::string.
422 (jit_reader_load_command): Update.
423 * main.c (gdb_datadir): Change to std::string.
424 (python_libdir): Likewise.
425 (set_gdb_data_directory): Update.
426 (relocate_path): Change to return std::string.
427 (relocate_gdb_directory): Change to return std::string.
428 (relocate_gdbinit_path_maybe_in_datadir): Update.
429 (captured_main_1): Update.
430 * python/python.c (do_start_initialization): Update.
431 * top.c (show_gdb_datadir): Update.
432 * xml-syscall.c (xml_init_syscalls_info): Update.
433 (init_syscalls_info): Update.
434
9224a013
CB
4352019-09-11 Christian Biesinger <cbiesinger@google.com>
436
437 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
438 out of get_init_files.
439 (get_init_files): Update.
440
f48cd836
CB
4412019-09-11 Christian Biesinger <cbiesinger@google.com>
442
443 * main.c (get_init_files): Change to use std::string.
444 (captured_main_1): Update.
445 (print_gdb_help): Update.
446
9cab7ecd
AT
4472019-09-11 Ali Tamur <tamur@google.com>
448
449 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
450 implementation.
451
67547d89
CB
4522019-09-11 Christian Biesinger <cbiesinger@google.com>
453
454 * dbxread.c (read_dbx_symtab): Update.
455 * dwarf2read.c (load_partial_dies): Update.
456 * mdebugread.c (parse_partial_symbols): Update.
457 (handle_psymbol_enumerators): Update.
458 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
459 * psymtab.c (add_psymbol_to_bcache): Likewise.
460 (add_psymbol_to_list): Likewise.
461 * symtab.c (symbol_set_names): Likewise.
462 * symtab.h (symbol_set_names): Likewise.
463 * xcoffread.c (scan_xcoff_symtab): Update.
464
64b2d4a0
TT
4652019-09-11 Tom Tromey <tom@tromey.com>
466
467 * symfile-mem.c (symbol_file_add_from_memory): Use
468 bfd_set_filename.
469 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
470 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
471
3b00ef10
TT
4722019-09-10 Tom Tromey <tromey@adacore.com>
473
474 * dwarf-index-write.c (write_psymbols): Extend error message.
475 (debug_names::insert): Add Ada code.
476 (debug_names::write_psymbols): Remove Ada check.
477 (debug_names) <m_string_obstack>: New member.
478 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
479 (gdb_index_symbol_name_matcher::matches): Remove.
480 (mapped_index_base::find_name_components_bounds): Add "lang"
481 parameter.
482 (mapped_index_base::build_name_components): Also split names
483 according to Ada syntax.
484 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
485 type of "match_callback".
486 (check_match, check_find_bounds_finds)
487 (dw2_expand_symtabs_matching): Update.
488 (dw2_debug_names_iterator): Add new constructor.
489 (dw2_debug_names_map_matching_symbols): New function.
490 (dw2_debug_names_expand_symtabs_matching): Update.
491 (dwarf2_debug_names_functions): Use
492 dw2_debug_names_map_matching_symbols.
493
aa391654
TT
4942019-09-10 Tom Tromey <tromey@adacore.com>
495
496 * dwarf2read.c (dw2_get_file_names_reader): Add the
497 CU's file name to the results.
498
b054970d
TT
4992019-09-10 Tom Tromey <tromey@adacore.com>
500
501 * ada-lang.c (add_nonlocal_symbols): Combine calls to
502 map_matching_symbols. Update.
503 * dwarf2read.c (dw2_map_matching_symbols): Update.
504 * psymtab.c (match_partial_symbol): Change type; update.
505 (psym_map_matching_symbols): Likewise.
506 * symfile-debug.c (debug_qf_map_matching_symbols): Change
507 type; update.
508 * symfile.h (struct quick_symbol_functions)
509 <map_matching_symbols>: Change "name" to be a lookup_name_info.
510 Remove "match".
511
6a3dbf1b
TT
5122019-09-10 Tom Tromey <tromey@adacore.com>
513
514 * psymtab.c (map_block): Remove.
515 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
516 * symtab.c (iterate_over_symbols_terminated): New function.
517 * symtab.c (iterate_over_symbols_terminated): Declare.
518
6969f124
TT
5192019-09-10 Tom Tromey <tromey@adacore.com>
520
521 * ada-lang.c (ada_iterate_over_symbols): Return bool.
522 * language.h (struct language_defn) <la_iterate_over_symbols>:
523 Return bool.
524 * symtab.c (iterate_over_symbols): Return bool.
525 * symtab.h (iterate_over_symbols): Return bool.
526
199b4314
TT
5272019-09-10 Tom Tromey <tromey@adacore.com>
528
529 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
530 (add_nonlocal_symbols): Update.
531 * dwarf2read.c (dw2_map_matching_symbols): Change type.
532 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
533 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
534 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
535 Change type of "callback". Remove "data".
536
a084a2a6
AT
537
5382019-09-09 Ali Tamur <tamur@google.com>
539
540 * dwarf2read.c (comp_unit_head): Update comment.
541 (dwarf2_dwo_name): New function declaration.
542 (dwarf_unit_type_name): New function declaration.
543 (read_comp_unit_head): Add support for new compilation units,
544 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
545 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
546 (currently named as "signature") in their header. Also clarify error
547 messages.
548 (lookup_dwo_id): New function. Returns the dwo id of the given
549 compile unit.
550 (lookup_dwo_unit): Use the new lookup_dwo_id function.
551 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
552 functions.
553 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
554 (dwarf2_dwo_name): Get the dwo name if present.
555 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
556 purposes.
557
25a2915e
TT
5582019-09-09 Tom Tromey <tom@tromey.com>
559
560 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
561
e4df0874
PW
5622019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
563
564 * python/python.c (do_start_initialization): Make progname_copy static,
565 to avoid a leak report.
566
8634b462
TT
5672019-09-08 Tom Tromey <tom@tromey.com>
568
569 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
570
c7f839cb
SM
5712019-09-07 Simon Marchi <simon.marchi@efficios.com>
572
573 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
574 Change type to gdb::optional<block_enum>.
575 (dw2_symtab_iter_init): Change block_index parameter type
576 to gdb::optional<block_enum>.
577 (dw2_lookup_symbol): Change block_index parameter
578 type to block_enum.c
579 (dw2_debug_names_lookup_symbol): Likewise.
580 * psymtab.c (psym_lookup_symbol): Likewise.
581 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
582 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
583 Likewise.
584
ead0e69a
CB
5852019-09-06 Christian Biesinger <cbiesinger@google.com>
586
587 * defs.h (relocate_gdb_directory): Change int to bool in
588 signature and rename flag to relocatable.
589 * main.c (relocate_path): Likewise.
590 (relocate_gdb_directory): Likewise.
591
b16c44de
AM
5922019-09-06 Alan Modra <amodra@gmail.com>
593
594 * coffread.c (coff_symfile_read): Constify filename variable.
595 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
596 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
597 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
598 * solib.c (reload_shared_libraries_1): Likewise.
599 * symfile.c (reread_symbols): Likewise.
600 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
601 * solib-darwin.c (darwin_bfd_open): Likewise.
602 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
603
06ff036e
AB
6042019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
605
606 * psymtab.c (print_partial_symbols): Handle missing domain_enum
607 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
608
4e962e74
TT
6092019-09-03 Tom Tromey <tromey@adacore.com>
610
611 * ada-valprint.c (ada_val_print_num): Don't recurse for range
612 types.
613 (has_negatives): Unbias a range type bound.
614 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
615 * gdbtypes.c (operator==): Handle new field.
616 (create_range_type): Add "bias" parameter.
617 (create_static_range_type, resolve_dynamic_range): Update.
618 * gdbtypes.h (struct range_bounds) <bias>: New member.
619 (create_range_type): Add bias parameter.
620 * printcmd.c (print_scalar_formatted): Unbias range types.
621 * value.c (unpack_long): Unbias range types.
622 (pack_long): Bias range types.
623
d90b8f26
AH
6242019-09-02 Alan Hayward <alan.hayward@arm.com>
625
626 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
627 probe arguments.
628
fe01123e
AH
6292019-09-02 Alan Hayward <alan.hayward@arm.com>
630
631 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
632 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
633 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
634 (compile_probe_arg): Likewise.
635 * probe.h (get_argument_count): Likewise.
636 * solib-svr4.c (solib_event_probe_action): Likewise.
637 * stap-probe.c (stap_probe::get_argument_count): Likewise.
638
e661ef01
AH
6392019-09-02 Alan Hayward <alan.hayward@arm.com>
640
641 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
642 code to here...
643 (svr4_create_solib_event_breakpoints): ...from here.
644
47a536d9
SDJ
6452019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
646
647 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
648 suffix from warning message.
649
d6a00eba
TT
6502019-08-30 Tom Tromey <tom@tromey.com>
651
652 * tui/tui-winsource.h (struct tui_source_window_base)
653 <refresh_all>: Don't declare.
654 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
655 Remove.
656 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
657 tui_show_locator_content.
658 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
659 declare.
660 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
661 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
662 declare.
663
55b2657b
TT
6642019-08-30 Tom Tromey <tom@tromey.com>
665
666 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
667
12a8555a
TT
6682019-08-30 Tom Tromey <tom@tromey.com>
669
670 * tui/tui-stack.c (_initialize_tui_stack): Move later.
671 Remove unnecessary forward declarations.
672
900ac242
TT
6732019-08-30 Tom Tromey <tom@tromey.com>
674
675 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
676 rerender.
677 (tui_update_locator_fullname, tui_show_frame_info): Don't call
678 tui_show_locator_content.
679
99ab33fb
TT
6802019-08-30 Tom Tromey <tom@tromey.com>
681
682 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
683 (tui_locator_window::rerender): Rewrite using body of previous
684 tui_show_locator_content.
685
e594a5d1
TT
6862019-08-30 Tom Tromey <tom@tromey.com>
687
688 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
689 set_locator_fullname>: New methods.
690 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
691 Rename from tui_set_locator_fullname.
692 (tui_locator_window::set_locator_info): Rename from
693 tui_set_locator_info. Return bool.
694 (tui_update_locator_fullname, tui_show_frame_info): Update.
695
715bb467
TT
6962019-08-30 Tom Tromey <tom@tromey.com>
697
698 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
699
772f3f03
TT
7002019-08-30 Tom Tromey <tom@tromey.com>
701
702 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
703 call touchwin.
704
108e13ab
TT
7052019-08-30 Tom Tromey <tom@tromey.com>
706
707 * tui/tui-wingeneral.c (box_win): Assume win_info and
708 win_info->handle cannot be NULL.
709
cdaa6eb4
TT
7102019-08-30 Tom Tromey <tom@tromey.com>
711
712 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
713 refresh_window>: Declare.
714 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
715 resize.
716 (tui_data_item_window::rerender): Rename from
717 tui_display_register.
718 (tui_data_item_window::refresh_window): New method.
719 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
720 no-op.
721
89df7f90
TT
7222019-08-30 Tom Tromey <tom@tromey.com>
723
724 * tui/tui-regs.h (struct tui_data_window) <regs_content,
725 regs_column_count, current_group>: Move later. Now private.
726 <get_current_group>: New method.
727 * tui/tui-regs.c (tui_reg_command): Update.
728 * tui/tui-layout.c (tui_set_layout): Update.
729
1bf2866a
TT
7302019-08-30 Tom Tromey <tom@tromey.com>
731
732 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
733 (tui_data_window::rerender): Don't call
734 check_and_display_highlight_if_needed.
735 (tui_data_window::refresh_all): Remove call to
736 erase_data_content.
737
0670413d
TT
7382019-08-30 Tom Tromey <tom@tromey.com>
739
740 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
741 (tui_data_window::display_registers_from)
742 (tui_data_window::display_reg_element_at_line)
743 (tui_data_window::display_registers_from_line): Remove checks of
744 "empty".
745
18bb55c7
TT
7462019-08-30 Tom Tromey <tom@tromey.com>
747
748 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
749 Don't declare.
750 * tui/tui-regs.c (tui_data_window::show_registers): Call
751 rerender.
752 (tui_data_window::rerender): Rename from display_all_data.
753 (tui_data_window::rerender): Remove old implementation.
754
1f6d2f10
TT
7552019-08-30 Tom Tromey <tom@tromey.com>
756
757 * tui/tui-regs.c (tui_data_window::display_all_data): Change
758 text.
759 * tui/tui-data.h (NO_DATA_STRING): Remove define.
760
16d01f9c
BW
7612019-08-29 Bernhard Wodok <barto@gmx.net>
762 Sergio Durigan Junior <sergiodj@redhat.com>
763
764 PR win32/24284
765 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
766
d8f27c60
AB
7672019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
768
769 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
770 when searching for types.
771
1f20c35e
AB
7722019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
773
774 * f-lang.c (f_language_defn): Use f_print_typedef.
775 * f-lang.h (f_print_typedef): Declare.
776 * f-typeprint.c (f_print_typedef): Define.
777
550105b7
CB
7782019-08-27 Christian Biesinger <cbiesinger@google.com>
779
780 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
781
4acfdd20
AB
7822019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
783
784 * cli/cli-utils.c (info_print_options_defs): Delete.
785 (make_info_print_options_def_group): Delete.
786 (extract_info_print_options): Delete.
787 (info_print_command_completer): Delete.
788 (info_print_args_help): Add extra parameter, and optionally
789 include text about -n flag.
790 * cli/cli-utils.h (struct info_print_options): Delete.
791 (extract_info_print_options): Delete declaration.
792 (info_print_command_completer): Delete declaration.
793 (info_print_args_help): Add extra parameter, extend header
794 comment.
795 * python/python.c (gdbpy_rbreak): Pass additional parameter to
796 search_symbols.
797 * stack.c (struct info_print_options): New type.
798 (info_print_options_defs): New file scoped variable.
799 (make_info_print_options_def_group): New static function.
800 (info_print_command_completer): New static function.
801 (info_locals_command): Update to use new local functions.
802 (info_args_command): Likewise.
803 (_initialize_stack): Add extra parameter to calls to
804 info_print_args_help.
805 * symtab.c (search_symbols): Add extra parameter, use this to
806 possibly excluse non-debug symbols.
807 (symtab_symbol_info): Add extra parameter, which is passed on to
808 search_symbols.
809 (struct info_print_options): New type.
810 (info_print_options_defs): New file scoped variable.
811 (make_info_print_options_def_group): New static function.
812 (info_print_command_completer): New static function.
813 (info_variables_command): Update to use local functions, and pass
814 extra parameter through to symtab_symbol_info.
815 (info_functions_command): Likewise.
816 (info_types_command): Pass additional argument through to
817 symtab_symbol_info.
818 (rbreak_command): Pass extra argument to search_symbols.
819 (_initialize_symtab): Add extra arguments for calls to
820 info_print_args_help, and update help text for 'info variables',
821 'whereis', and 'info functions' commands.
822 * symtab.h (search_symbols): Add extra argument to declaration.
823 * NEWS: Mention new flags.
824
9aa55206
CB
8252019-08-26 Christian Biesinger <cbiesinger@google.com>
826
827 * symtab.c (lookup_static_symbol): Call the new function (and move
828 it down to be next to lookup_global_symbol).
829 (struct global_sym_lookup_data): Add block_enum member and rename to...
830 (struct global_or_static_sym_lookup_data): ...this.
831 (lookup_symbol_global_iterator_cb): Pass block_index instead of
832 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
833 (lookup_symbol_global_or_static_iterator_cb): ...this.
834 (lookup_global_or_static_symbol): New function.
835 (lookup_global_symbol): Call new function.
836
5c31b358
TV
8372019-08-26 Tom de Vries <tdevries@suse.de>
838
839 PR c++/24852
840 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
841 when pc_probe.prob == NULL.
842
23c13d42
SM
8432019-08-25 Simon Marchi <simon.marchi@efficios.com>
844
845 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
846 variable symbol_linkage to symbol_linkage_.
847
beadd3e8
SM
8482019-08-25 Simon Marchi <simon.marchi@efficios.com>
849
850 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
851 represent whether the symbol is static, dynamic, or we don't
852 know.
853
e3ec872f
YS
8542019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
855
856 * gdb/rx-tdep.c (rx_register_names): New.
857 (rx_register_name): Delete.
858 (rx_psw_type): Delete.
859 (rx_fpsw_type): Delete.
860 (rx_register_type): Delete.
861 (rx_gdbarch_init): Convert target-descriptions.
862 (_initialize_rx_tdep): Add initialize_tdesc_rx.
863 * gdb/features/Makefile: Add rx.xml.
864 * gdb/features/rx.xml: New.
865 * gdb/features/rx.c: Generated.
866 * gdb/NEWS: Mention target description support.
867
d0509ba4
CB
8682019-08-22 Christian Biesinger <cbiesinger@google.com>
869
870 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
871 *slot_ptr.
872
2d41fa11
SDJ
8732019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
874
875 * configure.ac: Don't check for 'dlfcn.h' (moved to
876 gdbsupport/common.m4).
877 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
878 'gdbsupport/'.
879 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
880 * compile/compile-c-support.c: Include
881 'gdbsupport/gdb-dlfcn.h'.
882 * gdbsupport/common.m4: Check for 'dlfcn.h'.
883 * gdb-dlfcn.c: Move to...
884 * gdbsupport/gdb-dlfcn.c: ... here.
885 * gdb-dlfcn.h: Move to...
886 * gdbsupport/gdb-dlfcn.h: ... here.
887
de8af808
SL
8882019-08-23 Sandra Loosemore <sandra@codesourcery.com>
889
890 * nios2-tdep.c (struct reg_value): Improve comments. Make
891 the offset field signed.
892
27204489
CB
8932019-08-22 Christian Biesinger <cbiesinger@google.com>
894
895 * python/lib/gdb/__init__.py (_execute_file): New function.
896 * python/python.c (python_run_simple_file): Call gdb._execute_file
897 on Windows.
898
43771869
AB
8992019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
900
901 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
902 all uses as this was never set to anything but a zero value.
903
26c957f1
PA
9042019-08-21 Bogdan Harjoc <harjoc@gmail.com>
905
906 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
907
c07aae6e
CB
9082019-08-21 Christian Biesinger <cbiesinger@google.com>
909
910 * tui/tui-data.h (tui_gen_win_info): Add an =default
911 move constructor, required by some GCC versions.
912
3960cb7a
JF
9132019-08-21 Jinke Fan <fanjinke51@yeah.net>
914
915 * go32-nat.c (go32_sysinfo): Add hygon_p.
916
04c72a68
TT
9172019-08-20 Tom Tromey <tom@tromey.com>
918
919 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
920 line_from_reg_element_no, first_reg_element_no_inline,
921 display_all_data, delete_data_content_windows,
922 erase_data_content>: Now private.
923
072272ce
TT
9242019-08-20 Tom Tromey <tom@tromey.com>
925
926 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
927 (tui_unhighlight_win, tui_highlight_win)
928 (tui_win_info::make_window): Update.
929 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
930
973961bd
TT
9312019-08-20 Tom Tromey <tom@tromey.com>
932
933 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
934 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
935 (MAX_PID_WIDTH): Move to tui-stack.c.
936 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
937 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
938 (MAX_PID_WIDTH): Move from tui-data.h.
939
ab0e1f1a
TT
9402019-08-20 Tom Tromey <tom@tromey.com>
941
942 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
943 * tui/tui-wingeneral.c (box_win): Change type of win_info.
944 (box_win): Update.
945 (tui_gen_win_info::make_window): Rename from tui_make_window.
946 (tui_win_info::make_window): New method.
947 (tui_gen_win_info::make_visible): Update.
948 * tui/tui-source.c (tui_source_window::set_contents): Update.
949 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
950 (tui_data_window::display_registers_from): Update.
951 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
952 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
953 Declare.
954 <can_box>: Remove.
955 <title>: Remove.
956 (struct tui_win_info) <make_window>: Declare.
957 <can_box>: Now virtual.
958 <title>: New member.
959 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
960 * tui/tui-command.c (tui_cmd_window::resize): Update.
961
100c2bf3
TT
9622019-08-20 Tom Tromey <tom@tromey.com>
963
964 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
965 * tui/tui-regs.c (tui_data_window::show_registers): Update.
966 (tui_data_window::check_register_values): Update.
967
fa4dc567
TT
9682019-08-20 Tom Tromey <tom@tromey.com>
969
970 * tui/tui-regs.h (struct tui_data_window): Use
971 DISABLE_COPY_AND_ASSIGN.
972 <regs_content>: Change type, removing unique_ptr.
973 <tui_data_window>: Add move constructor.
974 * tui/tui-regs.c (tui_data_window::show_registers)
975 (tui_data_window::show_register_group)
976 (tui_data_window::display_registers_from)
977 (tui_data_window::display_registers_from)
978 (tui_data_window::first_data_item_displayed)
979 (tui_data_window::delete_data_content_windows)
980 (tui_data_window::rerender, tui_data_window::refresh_window)
981 (tui_data_window::check_register_values): Update.
982
ca02d7c8
TT
9832019-08-20 Tom Tromey <tom@tromey.com>
984
985 * tui/tui-regs.h (struct tui_data_window) <show_registers,
986 show_register_group>: Declare.
987 (tui_show_register_group): Don't declare.
988 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
989 tui_show_registers.
990 (tui_data_window::show_register_group): Rename from
991 tui_show_register_group.
992 (tui_data_window::check_register_values, tui_reg_command):
993 Update.
994 * tui/tui-layout.c (tui_set_layout): Update.
995
63356bfd
TT
9962019-08-20 Tom Tromey <tom@tromey.com>
997
998 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
999 Declare.
1000 (tui_check_register_values): Don't declare.
1001 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1002 from tui_check_register_values.
1003 * tui/tui-hooks.c (tui_register_changed): Update.
1004
42cc14a7
TT
10052019-08-20 Tom Tromey <tom@tromey.com>
1006
1007 * tui/tui-regs.c (tui_reg_layout): Move later.
1008 (tui_show_registers): Don't enable TUI mode or change layout.
1009
b9ad3686
TT
10102019-08-20 Tom Tromey <tom@tromey.com>
1011
1012 * tui/tui-regs.h (struct tui_data_item_window)
1013 <~tui_data_item_window>: Remove.
1014 <content>: Now a unique_xmalloc_ptr.
1015 * tui/tui-regs.c (tui_register_format): Return a
1016 unique_xmalloc_ptr.
1017 (tui_get_register): Update.
1018 (~tui_data_item_window): Remove.
1019 (tui_data_window::display_registers_from, tui_display_register):
1020 Update.
1021 * tui/tui-io.h (tui_expand_tabs): Update.
1022 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1023 Remove "col" parameter.
1024
8e114aab
TT
10252019-08-20 Tom Tromey <tom@tromey.com>
1026
1027 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1028 field.
1029 * tui/tui-regs.c (~tui_data_item_window): Update.
1030
1a4f81dd
TT
10312019-08-20 Tom Tromey <tom@tromey.com>
1032
1033 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1034 earlier.
1035
0f8d8876
TT
10362019-08-20 Tom Tromey <tom@tromey.com>
1037
1038 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1039
605dc2c2
TT
10402019-08-20 Tom Tromey <tom@tromey.com>
1041
1042 * tui/tui-source.h (struct tui_source_window): Update.
1043 * tui/tui-regs.c (tui_show_registers): Update.
1044 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1045 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1046 (NO_REGS_STRING): Remove defines.
1047
aedbe3bb
CM
10482019-08-20 Conrad Meyer <cem@FreeBSD.org>
1049
1050 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1051 unnecessary thread walk if remote doesn't support the packet.
1052
7ce8f214
TT
10532019-08-19 Tom Tromey <tromey@adacore.com>
1054
1055 * python/py-value.c (value_has_field): Fix indentation.
1056
f21c2bd7
TT
10572019-08-19 Tom Tromey <tromey@adacore.com>
1058
1059 * printcmd.c (do_one_display, info_display_command): Update.
1060 * block.h (contained_in): Return bool. Add allow_nested
1061 parameter.
1062 * block.c (contained_in): Return bool. Add allow_nested
1063 parameter.
1064
d806ea2d
TT
10652019-08-19 Tom Tromey <tom@tromey.com>
1066
1067 * configure: Rebuild.
1068 * configure.ac: Disallow the combination of -static-libstdc++ and
1069 source highlight.
1070 * source-cache.c (get_language_name): Handle rust.
1071 (source_cache::get_source_lines): Ignore highlighting exceptions.
1072
398fdd60
TT
10732019-08-16 Tom Tromey <tom@tromey.com>
1074
1075 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1076 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1077 (struct tui_source_window_base) <make_visible, refresh_window,
1078 resize>: Remove methods.
1079 <execution_info>: Remove field.
1080 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1081 (tui_show_source_line, tui_source_window_base)
1082 (~tui_source_window_base): Update.
1083 (tui_source_window_base::resize)
1084 (tui_source_window_base::make_visible)
1085 (tui_source_window_base::refresh_window): Remove.
1086 (tui_source_window_base::update_exec_info): Update.
1087 * tui/tui-source.c (tui_source_window::set_contents): Update.
1088 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1089
e699d331
TT
10902019-08-16 Tom Tromey <tom@tromey.com>
1091
1092 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1093 deprecated_query_hook.
1094
bb01dbfc
TT
10952019-08-16 Tom Tromey <tom@tromey.com>
1096
1097 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1098 (tui_update_source_windows_with_line): Update.
1099 * tui/tui-source.h (struct tui_source_window)
1100 <show_symtab_source>: Declare.
1101 (tui_show_symtab_source): Don't declare.
1102 * tui/tui-source.c (tui_show_symtab_source): Rename from
1103 tui_show_symtab_source.
1104
81c82c4b
TT
11052019-08-16 Tom Tromey <tom@tromey.com>
1106
1107 * tui/tui-winsource.h (struct tui_source_window_base)
1108 <set_contents>: Declare.
1109 * tui/tui-winsource.c
1110 (tui_source_window_base::update_source_window_as_is): Update.
1111 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1112 Declare.
1113 (tui_set_source_content): Don't declare.
1114 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1115 tui_set_source_content.
1116 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1117 Declare.
1118 (tui_set_disassem_content): Don't declare.
1119 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1120 tui_set_disassem_content.
1121
2ddaf614
TT
11222019-08-16 Tom Tromey <tom@tromey.com>
1123
1124 * tui/tui-winsource.h (struct tui_source_window_base)
1125 <update_breakpoint_info>: Declare.
1126 (tui_update_breakpoint_info): Don't declare.
1127 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1128 (tui_update_all_breakpoint_info): Update.
1129 (tui_source_window_base::update_breakpoint_info): Rename from
1130 tui_update_breakpoint_info.
1131 (tui_source_window_base::update_exec_info): Update.
1132
017f9828
TT
11332019-08-16 Tom Tromey <tom@tromey.com>
1134
1135 * tui/tui-winsource.h (struct tui_source_window_base)
1136 <update_source_window>: Declare.
1137 (tui_update_source_window): Don't declare.
1138 * tui/tui-winsource.c
1139 (tui_source_window_base::update_source_window): Rename from
1140 tui_update_source_window.
1141 (tui_source_window_base::rerender): Update.
1142 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1143 * tui/tui-disasm.c (tui_show_disassem)
1144 (tui_show_disassem_and_update_source)
1145 (tui_disasm_window::maybe_update): Update.
1146
ed8358e9
TT
11472019-08-16 Tom Tromey <tom@tromey.com>
1148
1149 * tui/tui-winsource.h (struct tui_source_window_base)
1150 <update_source_window_as_is>: Declare.
1151 (tui_update_source_window_as_is): Don't declare.
1152 * tui/tui-winsource.c (tui_update_source_window): Update
1153 (tui_source_window_base::update_source_window_as_is): Rename from
1154 tui_update_source_window_as_is.
1155 (tui_source_window_base::refill): Update.
1156 * tui/tui-source.c (tui_show_symtab_source): Update.
1157 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1158 Update.
1159
20149b6b
TT
11602019-08-16 Tom Tromey <tom@tromey.com>
1161
1162 * tui/tui-winsource.h (tui_update_source_window)
1163 (tui_update_source_window_as_is): Remove "noerror" parameter.
1164 * tui/tui-winsource.c (tui_update_source_window)
1165 (tui_update_source_window_as_is): Remove "noerror" parameter.
1166 (tui_update_source_windows_with_addr)
1167 (tui_update_source_windows_with_line)
1168 (tui_source_window_base::rerender)
1169 (tui_source_window_base::refill): Update.
1170 * tui/tui-source.h (tui_set_source_content)
1171 (tui_show_symtab_source): Remove "noerror" parameter.
1172 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1173 parameter.
1174 (tui_show_symtab_source): Likewise.
1175 (tui_source_window::maybe_update): Update.
1176 * tui/tui-disasm.c (tui_show_disassem)
1177 (tui_show_disassem_and_update_source)
1178 (tui_disasm_window::do_scroll_vertical)
1179 (tui_disasm_window::maybe_update): Update.
1180
2d83e710
TT
11812019-08-16 Tom Tromey <tom@tromey.com>
1182
1183 * tui/tui.c (tui_is_window_visible): Update.
1184 * tui/tui-wingeneral.c (tui_make_window)
1185 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1186 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1187 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1188 (tui_set_win_height_command, parse_scrolling_args): Update.
1189 * tui/tui-source.c (tui_source_window::style_changed): Update.
1190 * tui/tui-regs.c (tui_show_registers)
1191 (tui_data_window::first_data_item_displayed)
1192 (tui_data_window::delete_data_content_windows)
1193 (tui_check_register_values, tui_reg_command): Update.
1194 * tui/tui-disasm.c (tui_show_disassem): Update.
1195 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1196 method.
1197 <is_visible>: Remove field.
1198 * tui/tui-data.c (tui_next_win, tui_prev_win)
1199 (tui_delete_invisible_windows): Update.
1200
d4ab829a
TT
12012019-08-16 Tom Tromey <tom@tromey.com>
1202
1203 * tui/tui-winsource.h (struct tui_source_window_base)
1204 <m_has_locator>: Remove.
1205 * tui/tui-layout.c (show_source_disasm_command, show_data)
1206 (show_source_or_disasm_and_command): Update.
1207
aa7ca1bb
AH
12082019-08-16 Alan Hayward <alan.hayward@arm.com>
1209
1210 * NEWS (Other MI changes): New subsection.
1211 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1212 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1213 * arch-utils.c (default_get_pc_address_flags): New function.
1214 * arch-utils.h (default_get_pc_address_flags): New declaration.
1215 * gdbarch.sh: Add get_pc_address_flags.
1216 * gdbarch.c: Regenerate.
1217 * gdbarch.h: Likewise.
1218 * stack.c (print_pc): New function.
1219 (print_frame_info) (print_frame): Call print_pc.
1220
6eac171f
TV
12212019-08-16 Tom de Vries <tdevries@suse.de>
1222
1223 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1224 print_objfile_section_info.
1225
3df505f6
TT
12262019-08-15 Tom Tromey <tom@tromey.com>
1227
1228 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1229 calling update_cmdwin_start_line.
1230 * tui/tui-winsource.h (struct tui_source_window_base)
1231 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1232 <rerender>: Declare.
1233 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1234 Call rerender.
1235 (tui_source_window_base::set_new_height): Remove.
1236 (tui_source_window_base::rerender): Rename from
1237 do_make_visible_with_new_height.
1238 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1239 resize method.
1240 (tui_win_info::make_invisible_and_set_new_height)
1241 (tui_win_info::make_visible_with_new_height): Remove.
1242 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1243 Declare.
1244 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1245 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1246 do_make_visible_with_new_height>: Don't declare.
1247 <rerender>: Declare.
1248 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1249 set_new_height.
1250 (tui_data_window::do_make_visible_with_new_height): Remove.
1251 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1252 call tui_show_locator_content.
1253 (tui_gen_win_info::resize): Call rerender.
1254 (show_source_or_disasm_and_command): Don't call
1255 tui_show_locator_content.
1256 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1257 method.
1258 (struct tui_win_info) <rerender>: Declare.
1259 <set_new_height, make_invisible_and_set_new_height,
1260 make_visible_with_new_height>: Don't declare.
1261 * tui/tui-data.c (tui_win_list::rerender): New method.
1262 * tui/tui-command.h (struct tui_cmd_window)
1263 <do_make_visible_with_new_height>: Don't declare.
1264 * tui/tui-command.c
1265 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1266
272560b5
TT
12672019-08-15 Tom Tromey <tromey@adacore.com>
1268
1269 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1270 * ada-lang.c (ada_enum_name): Likewise.
1271
08235187
CB
12722019-08-15 Christian Biesinger <cbiesinger@google.com>
1273
1274 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1275 leading underscore.
1276 (GdbOutputErrorFile): Likewise.
1277 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1278 accordingly.
1279 (execute_unwinders): Rename to have a leading underscore.
1280 (auto_load_packages): Likewise.
1281 (global scope): Adjust call to auto_load_packages accordingly.
1282 (GdbSetPythonDirectory): Likewise.
1283 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1284 instead of execute_unwinders.
1285
db502012
TT
12862019-08-15 Tom Tromey <tom@tromey.com>
1287
1288 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1289 (show_data): Don't change window visibility.
1290 (tui_gen_win_info::resize): Remove special case for command
1291 window. Use wresize, when available.
1292 (show_source_or_disasm_and_command): Don't change window
1293 visibility.
1294 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1295 <make_visible>: New method.
1296 * tui/tui-command.c (tui_cmd_window::resize): New method.
1297
3891b65e
TT
12982019-08-15 Tom Tromey <tom@tromey.com>
1299
1300 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1301 (struct tui_source_windows): New.
1302 * tui/tui-winsource.c (tui_display_main): Update.
1303 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1304 (new_height_ok, parse_scrolling_args): Update.
1305 * tui/tui-layout.c (show_layout, show_data): Update.
1306 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1307 (tui_add_to_source_windows): Don't declare.
1308 * tui/tui-data.c (source_windows, tui_source_windows)
1309 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1310
ee556432
TT
13112019-08-15 Tom Tromey <tom@tromey.com>
1312
1313 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1314 Rename from reset.
1315 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1316 * tui/tui-layout.c (show_source_disasm_command, show_data):
1317 Update.
1318 (tui_gen_win_info::resize): Rename.
1319 (show_source_or_disasm_and_command): Update.
1320 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1321 reset.
1322
46f438e3
TT
13232019-08-15 Tom Tromey <tom@tromey.com>
1324
1325 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1326 * tui/tui-interp.c (tui_interp::init): Don't call
1327 tui_initialize_static_data.
1328 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1329
f4ce562c
TT
13302019-08-15 Tom Tromey <tom@tromey.com>
1331
1332 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1333 examine tui_win_list.
1334
c398c3d0
TT
13352019-08-15 Tom Tromey <tom@tromey.com>
1336
1337 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1338 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1339 tui_clear_source_content.
1340 (tui_clear_source_content): Remove.
1341 (tui_source_window_base::do_erase_source_content): Hoist call to
1342 content.clear().
1343 * tui/tui-stack.c (tui_show_frame_info): Don't call
1344 tui_clear_source_content.
1345
e25d2004
TT
13462019-08-15 Tom Tromey <tom@tromey.com>
1347
1348 * tui/tui-winsource.h (struct tui_source_window_base)
1349 <do_erase_source_content>: New method.
1350 <erase_source_content>: New method.
1351 (tui_erase_source_content): Don't declare.
1352 * tui/tui-winsource.c (tui_clear_source_content): Update.
1353 (tui_source_window_base::do_erase_source_content): Rename from
1354 tui_erase_source_content.
1355 (tui_source_window_base::show_source_content): Update.
1356 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1357 * tui/tui-source.h (struct tui_source_window)
1358 <erase_source_content>: New method.
1359 * tui/tui-disasm.h (struct tui_disasm_window)
1360 <erase_source_content>: New method.
1361
002f15c2
TT
13622019-08-15 Tom Tromey <tom@tromey.com>
1363
1364 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1365 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1366 constructor.
1367 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1368 * tui/tui-source.c (tui_set_source_content): Update.
1369 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1370
c9033fe8
TT
13712019-08-15 Tom Tromey <tom@tromey.com>
1372
1373 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1374 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1375 tui-source.c.
1376 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1377 Declare.
1378 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1379 method.
1380 (tui_source_window::maybe_update): Update.
1381
088f37dd
TT
13822019-08-15 Tom Tromey <tom@tromey.com>
1383
1384 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1385 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1386 tui-disasm.c.
1387 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1388 Declare.
1389 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1390 method.
1391 (tui_disasm_window::maybe_update): Update.
1392
a54700c6
TT
13932019-08-15 Tom Tromey <tom@tromey.com>
1394
1395 * tui/tui-winsource.h (struct tui_source_window_base)
1396 <maybe_update>: Declare.
1397 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1398 method.
1399 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1400 Declare.
1401 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1402 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1403 Declare.
1404 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1405
e2a678a5
TT
14062019-08-15 Tom Tromey <tom@tromey.com>
1407
1408 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1409
f2dda477
TT
14102019-08-15 Tom Tromey <tom@tromey.com>
1411
1412 * tui/tui-wingeneral.c: Include tui-stack.h.
1413 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1414 (struct tui_locator_window): Move from tui-data.h.
1415 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1416 (tui_initialize_static_data): Move from tui-data.c.
1417 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1418 (struct tui_locator_window): Move to tui-stack.c.
1419 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1420 (tui_initialize_static_data): Move to tui-stack.c.
1421
ed4a1084
TT
14222019-08-15 Tom Tromey <tom@tromey.com>
1423
1424 * tui/tui-layout.c (show_source_disasm_command)
1425 (show_source_or_disasm_and_command): Use make_visible method, not
1426 tui_make_window.
1427 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1428 Remove.
1429
65962b20
TT
14302019-08-15 Tom Tromey <tom@tromey.com>
1431
1432 * tui/tui-wingeneral.h (tui_make_window): Update.
1433 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1434 parameter.
1435 (tui_gen_win_info::make_visible): Update.
1436 * tui/tui-regs.c (tui_data_window::display_registers_from):
1437 Update.
1438 * tui/tui-layout.c (show_source_disasm_command)
1439 (show_source_or_disasm_and_command): Update.
1440 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1441 (enum tui_box): Remove.
1442 (struct tui_win_info) <can_box>: New method.
1443 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1444 method.
1445
2208ee91
TV
14462019-08-15 Tom de Vries <tdevries@suse.de>
1447
1448 * linux-nat-trad.c: Include gdbarch.h.
1449
75faf5c4
AH
14502019-08-14 Alan Hayward <alan.hayward@arm.com>
1451
1452 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1453 register sizes.
1454
b1c896b3
TT
14552019-08-14 Tom Tromey <tromey@adacore.com>
1456
1457 * darwin-nat.c: Include gdbarch.h.
1458 * darwin-nat-info.c: Include gdbarch.h.
1459
6405cd73
TT
14602019-08-13 Tom Tromey <tom@tromey.com>
1461
1462 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1463 Remove.
1464 * tui/tui-data.c (tui_initialize_static_data): Update.
1465
5216580d
TT
14662019-08-13 Tom Tromey <tom@tromey.com>
1467
1468 * tui/tui-winsource.h (struct tui_exec_info_window)
1469 <~tui_exec_info_window, maybe_allocate_content, get_content,
1470 m_content>: Remove.
1471 (struct tui_source_window_base) <set_exec_info_content,
1472 show_exec_info_content>: Don't declare.
1473 * tui/tui-winsource.c
1474 (tui_exec_info_window::maybe_allocate_content): Remove.
1475 (tui_source_window_base::update_exec_info): Rename from
1476 set_exec_info_content.
1477 (tui_source_window_base::show_exec_info_content)
1478 (tui_source_window_base::update_exec_info): Remove.
1479
93858ad3
TT
14802019-08-13 Tom Tromey <tom@tromey.com>
1481
1482 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1483 declare.
1484 * tui/tui-winsource.c (tui_update_source_window_as_is)
1485 (tui_update_source_windows_with_addr, tui_erase_source_content):
1486 Update.
1487 (tui_clear_exec_info_content): Remove.
1488
e321e7ce
TT
14892019-08-13 Tom Tromey <tom@tromey.com>
1490
1491 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1492 declare.
1493 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1494 call tui_erase_exec_info_content.
1495 (tui_clear_exec_info_content): Rename from
1496 tui_erase_exec_info_content.
1497 (tui_clear_exec_info_content): Delete.
1498
8270ac62
TT
14992019-08-13 Tom Tromey <tom@tromey.com>
1500
1501 * tui/tui-winsource.h (struct tui_source_window_base)
1502 <show_exec_info_content>: Declare.
1503 (tui_show_exec_info_content): Don't declare.
1504 * tui/tui-winsource.c
1505 (tui_source_window_base::show_exec_info_content): Rename from
1506 tui_show_exec_info_content.
1507 (tui_source_window_base::update_exec_info): Update.
1508
7b56485d
TT
15092019-08-13 Tom Tromey <tom@tromey.com>
1510
1511 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1512 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1513 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1514 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1515 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1516 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1517 ... here.
1518
7ba913dc
TT
15192019-08-13 Tom Tromey <tom@tromey.com>
1520
1521 * tui/tui-winsource.h (struct tui_source_window_base)
1522 <update_exec_info>: Declare.
1523 (tui_update_exec_info): Don't declare.
1524 * tui/tui-winsource.c (tui_update_source_window_as_is)
1525 (tui_source_window_base::refresh_all)
1526 (tui_update_all_breakpoint_info): Update.
1527 (tui_source_window_base::update_exec_info): Rename from
1528 tui_update_exec_info.
1529 * tui/tui-stack.c (tui_show_frame_info): Update.
1530
37a4a131
TT
15312019-08-13 Tom Tromey <tom@tromey.com>
1532
1533 * tui/tui-winsource.h (struct tui_source_window_base)
1534 <set_exec_info_content>: Declare.
1535 (tui_set_exec_info_content): Don't declare.
1536 * tui/tui-winsource.c
1537 (tui_source_window_base::set_exec_info_content): Rename from
1538 tui_set_exec_info_content.
1539 (tui_update_exec_info): Update.
1540
0bd27e07
TT
15412019-08-13 Tom Tromey <tom@tromey.com>
1542
1543 * tui/tui-winsource.h (struct tui_source_window_base)
1544 <show_source_content>: Declare.
1545 (tui_show_source_content): Don't declare.
1546 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1547 (tui_source_window_base::show_source_content): Rename from
1548 tui_show_source_content.
1549 (tui_source_window_base::refresh_all): Update.
1550 * tui/tui-layout.c (show_source_disasm_command)
1551 (show_source_or_disasm_and_command): Update.
1552
b4ef5aeb
TT
15532019-08-13 Tom Tromey <tom@tromey.com>
1554
1555 * tui/tui-winsource.c (tui_erase_source_content)
1556 (tui_show_source_content, tui_source_window_base::refresh_all):
1557 Update.
1558 * tui/tui-wingeneral.h
1559 (tui_check_and_display_highlight_if_needed): Don't declare.
1560 * tui/tui-wingeneral.c
1561 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1562 check_and_display_highlight_if_needed.
1563 * tui/tui-win.c (tui_rehighlight_all)
1564 (tui_win_info::make_visible_with_new_height): Update.
1565 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1566 (tui_data_window::erase_data_content)
1567 (tui_data_window::display_all_data): Update.
1568 * tui/tui-data.h (struct tui_win_info)
1569 <check_and_display_highlight_if_needed>: Declare.
1570
fede5273
TT
15712019-08-13 Tom Tromey <tom@tromey.com>
1572
1573 * tui/tui-win.c (tui_resize_all): Call
1574 tui_delete_invisible_windows.
1575 * tui/tui-layout.c (show_layout): Call
1576 tui_delete_invisible_windows.
1577 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1578 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1579
22c3f490
TT
15802019-08-13 Tom Tromey <tom@tromey.com>
1581
1582 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1583 tui_add_win_to_layout.
1584
16cb7910
TT
15852019-08-13 Tom Tromey <tom@tromey.com>
1586
1587 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1588 * tui/tui-layout.c (tui_default_win_height): Now static.
1589
cc0c3ffb
TT
15902019-08-13 Tom Tromey <tom@tromey.com>
1591
1592 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1593 single switch.
1594 (show_source_disasm_command, show_source_or_disasm_and_command):
1595 Don't check current layout.
1596
3f3ffe54
TT
15972019-08-13 Tom Tromey <tom@tromey.com>
1598
1599 * tui/tui-wingeneral.c (make_all_visible): Remove.
1600 (tui_make_all_invisible): Simplify.
1601 * tui/tui-layout.c (tui_make_all_invisible): Move from
1602 tui-wingeneral.c; simplify.
1603 (show_layout): Hoist call to tui_make_all_invisible.
1604 (show_data): Don't call tui_make_all_invisible.
1605
69258091
TT
16062019-08-13 Tom Tromey <tom@tromey.com>
1607
1608 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1609 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1610
62cf57fe
TT
16112019-08-13 Tom Tromey <tom@tromey.com>
1612
1613 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1614 tui-data.c.
1615 (show_source_disasm_command, show_data)
1616 (show_source_or_disasm_and_command): Don't use
1617 tui_set_current_layout_to.
1618 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1619 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1620 tui-layout.c.
1621 (tui_set_current_layout_to): Remove.
1622
2afade5d
TT
16232019-08-13 Tom Tromey <tom@tromey.com>
1624
1625 * tui/tui-layout.c (tui_set_layout): Update.
1626 * tui/tui-data.h (struct tui_layout_def): Remove.
1627 (tui_layout_def): Don't declare.
1628 * tui/tui-data.c (layout_def): Remove.
1629 (tui_layout_def): Remove.
1630
a3504e96
TT
16312019-08-13 Tom Tromey <tom@tromey.com>
1632
1633 * tui/tui-winsource.h (struct tui_source_window_base)
1634 <clear_detail>: No longer "override".
1635 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1636 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1637 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1638 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1639 Remove.
1640 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1641
29c92911
TT
16422019-08-13 Tom Tromey <tromey@adacore.com>
1643
1644 * tracepoint.c: Don't include readline.h or history.h.
1645
86c6b807
TT
16462019-08-12 Tom Tromey <tom@tromey.com>
1647
1648 * configure: Rebuild.
1649 * configure.ac: Check for readline 7.
1650 * NEWS: Mention readline 7 requirement.
1651 * README: Update.
1652
5db2718c
TT
16532019-08-12 Tom Tromey <tom@tromey.com>
1654
1655 * mingw-hdep.c (gdb_select): Remove readline hack.
1656
dac36daf
PFC
16572019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1658
1659 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1660 when the function fails.
1661
1022c627
AA
16622019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1663
1664 * s390-tdep.c (s390_type_align): New function.
1665 (s390_gdbarch_init): Set it as type_align gdbarch method.
1666
eba4caf2
TV
16672019-08-09 Tom de Vries <tdevries@suse.de>
1668
1669 PR gdb/24591
1670 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1671 pc_low with relocation offset.
1672
123cd851
TT
16732019-08-07 Tom Tromey <tromey@adacore.com>
1674
1675 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1676 (print_frame_args): Update.
1677 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1678 Update.
1679 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1680 * frame.h (struct frame_arg): Add initializers.
1681 <error>: Now a unique_xmalloc_ptr.
1682
3d31bc39
AH
16832019-08-07 Alan Hayward <alan.hayward@arm.com>
1684
1685 * NEWS: Expand the Pointer Authentication entry.
1686 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1687 (aarch64_frame_unmask_lr): ... to this.
1688 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1689 Call aarch64_frame_unmask_lr.
1690 * frame.c (struct frame_info): Add "masked" variable.
1691 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1692 (fprint_frame): Check for masked pc.
1693 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1694 declarations.
1695 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1696 * stack.c (print_frame): Check for masked pc.
1697
0cf9feb9
TT
16982019-08-06 Tom Tromey <tom@tromey.com>
1699
1700 * stabsread.c (patch_block_stabs, read_one_struct_field)
1701 (read_enum_type): Use obstack_strndup.
1702 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1703 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1704 * dwarf2read.c (guess_full_die_structure_name)
1705 (anonymous_struct_prefix): Use obstack_strndup.
1706 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1707 * c-exp.y (yylex): Use obstack_strndup.
1708 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1709 (write_var_or_type): Use obstack_strndup.
1710
efba19b0
TT
17112019-08-06 Tom Tromey <tom@tromey.com>
1712
1713 * symfile.c (reread_symbols): Use obstack_strdup.
1714 * stabsread.c (read_type): Use obstack_strdup.
1715 * gdb_obstack.h (obstack_strdup): New overload.
1716 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1717 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1718 (dwarf2_canonicalize_name): Use obstack_strdup.
1719 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1720 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1721 Use obstack_strdup.
1722
f25102f7
TT
17232019-08-06 Tom Tromey <tom@tromey.com>
1724
1725 * gdb_obstack.h (obstack_strdup): Define.
1726 * gdb_obstack.c (obstack_strdup): Don't define.
1727
021887d8
TT
17282019-08-06 Tom Tromey <tom@tromey.com>
1729
1730 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1731 obstack_strdup.
1732 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1733 obstack_strdup.
1734 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1735 * stabsread.c (common_block_start): Use obstack_strdup.
1736 * objfiles.c (set_objfile_main_name, objfile): Use
1737 obstack_strdup.
1738 * namespace.c (add_using_directive): Use obstack_strdup.
1739 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1740 * jit.c (finalize_symtab): Use obstack_strdup.
1741 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1742 (guess_partial_die_structure_name, partial_die_info::fixup)
1743 (dwarf2_name): Use obstack_strdup.
1744 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1745 obstack_strdup.
1746 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1747 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1748 obstack_strdup.
1749 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1750
d2834edc
PW
17512019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1752
1753 * unittests/help-doc-selftests.c: New file.
1754 * Makefile.in: Add the new file.
1755
590042fc
PW
17562019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1757
1758 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1759 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1760 the full first line, except when FOR_VALUE_PREFIX. In this case,
1761 the trailing '.' is not output, and the first character is uppercased.
1762 (print_help_for_command): Update call to print_doc_line.
1763 (print_doc_of_command): Likewise.
1764 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1765 * cli/cli-option.c (append_indented_doc): Do not append newline.
1766 (build_help_option): Append newline after first appended_indented_doc
1767 only if a second call is done.
1768 (build_help): Append 2 new lines before each option, except the first
1769 one.
1770 * compile/compile.c (_initialize_compile): Add new lines after
1771 %OPTIONS%, when not at the end of the help.
1772 Change help doc or code
1773 producing the help doc to respect the invariants.
1774 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1775 Also removed the new line after 'Options:', as all other commands
1776 do not put an empty line between 'Options:' and the first option.
1777 * printcmd.c (_initialize_printcmd): Likewise.
1778 * stack.c (_initialize_stack): Likewise.
1779 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1780 incorrectly telling COMMAND is optional.
1781 * ada-lang.c (_initialize_ada_language): Change help doc or code
1782 producing the help doc to respect the invariants.
1783 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1784 * breakpoint.c (_initialize_breakpoint): Likewise.
1785 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1786 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1787 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1788 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1789 _initialize_cli_style): Likewise.
1790 * corelow.c (core_target_info): Likewise.
1791 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1792 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1793 * filesystem.c (_initialize_filesystem): Likewise.
1794 * frame.c (_initialize_frame): Likewise.
1795 * gnu-nat.c (add_task_commands): Likewise.
1796 * infcall.c (_initialize_infcall): Likewise.
1797 * infcmd.c (_initialize_infcmd): Likewise.
1798 * interps.c (_initialize_interpreter): Likewise.
1799 * language.c (_initialize_language): Likewise.
1800 * linux-fork.c (_initialize_linux_fork): Likewise.
1801 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1802 * maint.c (_initialize_maint_cmds): Likewise.
1803 * memattr.c (_initialize_mem): Likewise.
1804 * printcmd.c (_initialize_printcmd): Likewise.
1805 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1806 _RegEx): Likewise.
1807 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1808 * record-btrace.c (_initialize_record_btrace): Likewise.
1809 * record-full.c (_initialize_record_full): Likewise.
1810 * record.c (_initialize_record): Likewise.
1811 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1812 * regcache.c (_initialize_regcache): Likewise.
1813 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1814 _initialize_remote): Likewise.
1815 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1816 * serial.c (_initialize_serial): Likewise.
1817 * skip.c (_initialize_step_skip): Likewise.
1818 * source.c (_initialize_source): Likewise.
1819 * stack.c (_initialize_stack): Likewise.
1820 * symfile.c (_initialize_symfile): Likewise.
1821 * symtab.c (_initialize_symtab): Likewise.
1822 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1823 * top.c (init_main): Likewise.
1824 * tracefile-tfile.c (tfile_target_info): Likewise.
1825 * tracepoint.c (_initialize_tracepoint): Likewise.
1826 * tui/tui-win.c (_initialize_tui_win): Likewise.
1827 * utils.c (add_internal_problem_command): Likewise.
1828 * valprint.c (value_print_option_defs): Likewise.
1829
404f2902
FCE
18302019-08-06 Frank Ch. Eigler <fche@redhat.com>
1831
1832 PR build/24886
1833 * configure.ac: Drop enable-libmcheck support.
1834 * configure, config.in: Rebuild.
1835 * libmcheck.m4: Remove.
1836 * acinclude.m4: Don't include it.
1837 * Makefile.in: Don't distribute it.
1838 * top.c (print_gdb_configuration): Don't mention it.
1839
046bebe1
TT
18402019-08-06 Tom Tromey <tom@tromey.com>
1841
1842 * utils.c (set_output_style): Sometimes pass stream to
1843 emit_style_escape.
1844 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1845 * record-btrace.c (btrace_insn_history): Update.
1846 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1847 method.
1848 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1849 Update initializers.
1850 <m_uiout>: New field.
1851 <m_di>: Move lower.
1852 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1853 Remove "uiout" parameter.
1854 (dump_insns): Update.
1855 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1856 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1857
ddbcedf5
CB
18582019-08-06 Christian Biesinger <cbiesinger@google.com>
1859
1860 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1861 (error_in_psymtab_expansion): Likewise.
1862 (lookup_symbol_via_quick_fns): Likewise.
1863 (basic_lookup_transparent_type_quick): Likewise.
1864 (basic_lookup_transparent_type_1): Likewise.
1865
b08b16c8
TT
18662019-08-06 Tom Tromey <tromey@adacore.com>
1867
1868 * source.c (last_source_error): Now bool.
1869 (print_source_lines_base): Make "noprint" bool. Only open
1870 source file when last_source_visited changes.
1871
cb44333d
TT
18722019-08-06 Tom Tromey <tromey@adacore.com>
1873
1874 * annotate.c (annotate_source_line): Use g_source_cache.
1875 * source-cache.c (source_cache::get_plain_source_lines): Change
1876 parameters. Populate m_offset_cache.
1877 (source_cache::ensure): New method.
1878 (source_cache::get_line_charpos): New method.
1879 (extract_lines): Move lower. Change parameters.
1880 (source_cache::get_source_lines): Move lower.
1881 * source-cache.h (class source_cache): Update comment.
1882 <get_line_charpos>: New method.
1883 <get_source_lines>: Update comment.
1884 <clear>: Clear m_offset_cache.
1885 <get_plain_source_lines>: Change parameters.
1886 <ensure>: New method
1887 <m_offset_cache>: New member.
1888 * source.c (forget_cached_source_info_for_objfile): Update.
1889 (info_source_command): Use g_source_cache.
1890 (find_source_lines, open_source_file_with_line_charpos): Remove.
1891 (print_source_lines_base, search_command_helper): Use g_source_cache.
1892 * source.h (open_source_file_with_line_charpos): Don't declare.
1893 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1894 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1895 Use g_source_cache.
1896
872dceaa
TT
18972019-08-06 Tom Tromey <tromey@adacore.com>
1898
1899 * source-cache.c (source_cache::get_plain_source_lines):
1900 Remove "first_line" and "last_line" parameters.
1901 (source_cache::get_source_lines): Cache plain text.
1902 * source-cache.h (class source_cache)
1903 <get_plain_source_lines>: Update.
1904
269249d9
TT
19052019-08-06 Tom Tromey <tromey@adacore.com>
1906
1907 * source-cache.c (extract_lines): No longer a method.
1908 Changed type of parameter. Include final newline.
1909 (selftests::extract_lines_test): New function.
1910 (_initialize_source_cache): Likewise.
1911 * source-cache.h (class source_cache)
1912 <extract_lines>: Don't declare.
1913
c0e8dcd8
TT
19142019-08-06 Tom Tromey <tromey@adacore.com>
1915
1916 * breakpoint.c (init_breakpoint_sal): Update.
1917 (breakpoint): Update.
1918 * breakpoint.h (struct breakpoint) <filter>: Now a
1919 unique_xmalloc_ptr.
1920
0b27c27d
CB
19212019-08-05 Christian Biesinger <cbiesinger@google.com>
1922
1923 * NEWS: Mention dictionary access on blocks.
1924 * python/py-block.c (blpy_getitem): New function.
1925 (block_object_as_mapping): New struct.
1926 (block_object_type): Use new struct for tp_as_mapping field.
1927
4ee94178
CB
19282019-08-05 Christian Biesinger <cbiesinger@google.com>
1929
1930 * objfiles.h (objfile): Add a comment describing partial symbols.
1931
8abfcabc
TT
19322019-08-05 Tom Tromey <tromey@adacore.com>
1933
1934 * compile/compile.c (_initialize_compile): Use _(), not N_().
1935 * thread.c (_initialize_thread): Use _(), not N_().
1936 * stack.c (_initialize_stack): Use _(), not N_().
1937 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1938
2b79f376
SM
19392019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1940
1941 * dwarf2read.c (struct dw2_symtab_iterator):
1942 <want_specific_block>: Remove.
1943 <block_index>: Change type to gdb::optional.
1944 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1945 change type of BLOCK_INDEX parameter to gdb::optional.
1946 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1947 (dw2_lookup_symbol): Don't pass argument for
1948 WANT_SPECIFIC_BLOCK.
1949 (dw2_expand_symtabs_for_function): Don't pass argument for
1950 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1951 (class dw2_debug_names_iterator)
1952 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1953 parameter, change BLOCK_INDEX type to gdb::optional.
1954 <m_want_specific_block>: Remove.
1955 <m_block_index>: Change type to gdb::optional.
1956 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1957 gdb::optional. Re-write in function of gdb::optional.
1958 (dw2_debug_names_lookup_symbol): Don't pass argument for
1959 WANT_SPECIFIC_BLOCK.
1960 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1961 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1962 BLOCK_INDEX.
1963
ae60f04e
PW
19642019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1965
1966 * NEWS: Mention changes to "info sources" command.
1967
28cd9371
PW
19682019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1969
1970 * symtab.c (filename_partial_match_opts): New struct type.
1971 (struct output_source_filename_data): New members
1972 regexp, c_regexp, partial_match.
1973 (output_source_filename): Use new members to decide to print file.
1974 (info_sources_option_defs): New variable.
1975 (make_info_sources_options_def_group, print_info_sources_header,
1976 info_sources_command_completer):
1977 New functions.
1978 (info_sources_command): Read new optional arguments.
1979 (_initialize_symtab): Update info sources help.
1980
ca683e3a
AO
19812019-08-02 Alexandre Oliva <oliva@adacore.com>
1982
1983 * ada-lang.c (exception_support_info_v0): Renamed from...
1984 (default_exception_support_info): ... this. Create new
1985 definition for v1.
1986 (ada_has_this_exception_support): Look up catch_handlers_sym.
1987 (ada_exception_support_info_sniffer): Try v0 after default.
1988
f1264162
TT
19892019-08-01 Tom Tromey <tromey@adacore.com>
1990
1991 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1992 gdbarch.h.
1993
0a7b2485
CB
19942019-08-01 Christian Biesinger <cbiesinger@google.com>
1995
1996 * s12z-tdep.c: Fix include path for s12z-opc.h.
1997
c6bdbeb7
AH
19982019-08-01 Alan Hayward <alan.hayward@arm.com>
1999
2000 * NEWS: Require GNU make 3.82.
2001
a2bd7b82
TT
20022019-07-16 Tom Tromey <tom@tromey.com>
2003
2004 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2005 declare.
2006
aa3b6533
TT
20072019-07-30 Tom Tromey <tromey@adacore.com>
2008
2009 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2010
a1530dc7
KB
20112019-07-30 Kevin Buettner <kevinb@redhat.com>
2012
2013 * printcmd.c (print_address_symbolic): Print negative offsets.
2014 (build_address_symbolic): Force signed arithmetic when computing
2015 offset.
2016
2906593f
CB
20172019-07-30 Christian Biesinger <cbiesinger@google.com>
2018
2019 PR/24474: Add a function to lookup static variables.
2020 * NEWS: Mention this new function.
2021 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2022 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2023 * python/python.c (python_GdbMethods): Add new function.
2024
c620ed88
CB
20252019-07-29 Christian Biesinger <cbiesinger@google.com>
2026
2027 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2028 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2029 (objfpy_lookup_static_symbol): New function.
2030 (objfile_object_methods): Add new functions.
2031
bc4268a5
PW
20322019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2033
2034 * NEWS: Mention 'set|show print frame-info'. Mention new
2035 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2036 backtrace argument. Mention that python frame filtering code
2037 is now consistent with what 'backtrace' command prints.
2038
4b5e8d19
PW
20392019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2040
2041 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2042 comments.
2043 (print_frame_info_auto, print_frame_info_source_line,
2044 print_frame_info_location, print_frame_info_source_and_location,
2045 print_frame_info_location_and_address, print_frame_info_short_location):
2046 New declarations.
2047 (struct frame_print_options): New member print_frame_info.
2048 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2049 * stack.h (get_user_print_what_frame_info): New declaration.
2050 (frame_show_address): New declaration.
2051 * stack.c (print_frame_arguments_choices): New value 'presence'.
2052 (print_frame_info_auto, print_frame_info_source_line,
2053 print_frame_info_location, print_frame_info_source_and_location,
2054 print_frame_info_location_and_address, print_frame_info_short_location,
2055 print_frame_info_choices, print_frame_info_print_what): New definitions.
2056 (print_frame_args): Only print dots for args if print frame-arguments
2057 is 'presence'.
2058 (frame_print_option_defs): New element for "frame-info".
2059 (get_user_print_what_frame_info): New function.
2060 (frame_show_address): Make non static. Move comment to stack.h.
2061 (print_frame_info_to_print_what): New function.
2062 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2063 to decide what to print.
2064 (backtrace_command_1): Handle the new print_frame_arguments_presence
2065 value.
2066 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2067 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2068 (py_print_frame): In non-mi mode, use LOCATION as default for
2069 print_what, similarly to frame information printed directly by
2070 backtrace command. Handle frame-info user option in non MI mode.
2071
6bdfee81
KB
20722019-07-27 Kevin Buettner <kevinb@redhat.com>
2073
2074 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2075 Add case for debugging 32-bit target on 64-bit host. Revise
2076 comment.
2077
98a617f8
KB
20782019-07-27 Kevin Buettner <kevinb@redhat.com>
2079
2080 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2081 instead of find_function_entry_range_from_pc.
2082
567238c9
KB
20832019-07-27 Kevin Buettner <kevinb@redhat.com>
2084
2085 * stack.c (find_frame_funname): Remove code which preferred
2086 minsym over symtab sym in "certain pathological cases".
2087
2dc80cf8
KB
2088 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2089 parameter. Change type of "do_demangle" to bool.
2090 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2091 Pass suitable "prefer_sym_over_minsym" flag to
2092 build_address_symbolic(). Don't output "+" for negative offsets.
2093 * printcmd.c (print_address_symbolic): Update invocation of
2094 build_address_symbolic to include a "prefer_sym_over_minsym"
2095 flag.
2096 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2097 Restrict cases in which use of minimal symbol is preferred to that
2098 of a found symbol. Update comments.
2099
1aff7173
KB
2100 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2101 for entry pc when entry pc is out of range for that FDE.
2102
89b085ac
BC
21032019-07-26 Brian Callahan <bcallah@openbsd.org>
2104
2105 PR gdb/24839:
2106 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2107 type.
2108
f32feb4a
CB
21092019-07-25 Christian Biesinger <cbiesinger@google.com>
2110
2111 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2112 this function's Python signature.
2113
2114
21152019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
2116
2117 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2118 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2119 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2120 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2121 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2122
2123
c54e4253
YS
21242019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2125
2126 * h8300-tdep.c (h8300_register_name_common): New.
2127 h8300_register_name): Use h8300_register_name_common.
2128 (h8300s_register_name): Likewise.
2129 (h8300sx_register_name): Likewise.
2130 (h8300h_register_nam): New.
2131 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2132
2133
40eadf04
SP
21342019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2135
2136 * arm-tdep.c (arm_skip_cmse_entry): New function.
2137 (arm_is_sgstubs_section): New function.
2138 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2139
bfa2a36d
TT
21402019-07-22 Tom Tromey <tom@tromey.com>
2141
2142 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2143 Don't self-assign.
2144
a8e9d247
AB
21452019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2146
2147 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2148 type_print.
2149
eb86c5e2
AB
21502019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2151
2152 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2153 so that GDB doesn't match any msymbols when searching in the
2154 TYPES_DOMAIN.
2155 (print_symbol_info): Print using typedef_print or type_print based
2156 on the type of the symbol. Add updated FIXME comment moved from...
2157 (_initialize_symtab): ... move and update FIXME comment to above.
2158
a8eab7c6
AB
21592019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2160
2161 * NEWS: Mention adding -q option to "info types".
2162 * symtab.c (struct info_types_options): New struct.
2163 (info_types_options_defs): New variable.
2164 (make_info_types_options_def_group): New function.
2165 (info_types_command): Use gdb::option framework to parse options.
2166 (info_types_command_completer): New function.
2167 (_initialize_symtab): Extend the help text on "info types" and
2168 register command completer.
2169
b4603c34
CB
21702019-07-21 Christian Biesinger <cbiesinger@google.com>
2171
2172 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2173 (lookup_symbol_in_objfile): Change int to block_enum and add a
2174 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2175
c8cdc1e0
CB
21762019-07-20 Christian Biesinger <cbiesinger@google.com>
2177
2178 * MAINTAINERS (Write After Approval): Add self.
2179
01e175fe
AB
21802019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2181
2182 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2183 instruction to the dummy code region.
2184
56f79b63
TT
21852019-07-19 Tom Tromey <tromey@adacore.com>
2186
2187 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2188 (ARGSUSED, PARAMS, __func__): Remove rules.
2189
4c5aa8e0
AH
21902019-07-19 Alan Hayward <alan.hayward@arm.com>
2191
2192 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2193 * features/arm/arm-with-iwmmxt.c: Remove.
2194 * features/arm/arm-with-iwmmxt.xml: Remove.
2195 * features/arm/arm-with-m-fpa-layout.c: Remove.
2196 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2197 * features/arm/arm-with-m-vfp-d16.c: Remove.
2198 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2199 * features/arm/arm-with-m.c: Remove.
2200 * features/arm/arm-with-m.xml: Remove.
2201 * features/arm/arm-with-neon.c: Remove.
2202 * features/arm/arm-with-neon.xml: Remove.
2203 * features/arm/arm-with-vfpv2.c: Remove.
2204 * features/arm/arm-with-vfpv2.xml: Remove.
2205 * features/arm/arm-with-vfpv3.c: Remove.
2206 * features/arm/arm-with-vfpv3.xml: Remove.
2207
f42b2617
AH
22082019-07-19 Alan Hayward <alan.hayward@arm.com>
2209
2210 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2211
f29ec966
AH
22122019-07-19 Alan Hayward <alan.hayward@arm.com>
2213
2214 * arch/aarch32.c (aarch32_create_target_description): Create
2215 target descriptions using features.
2216 * arch/arm.c (arm_create_target_description)
2217 (arm_create_mprofile_target_description): Likewise.
2218 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2219
d105cce5
AH
22202019-07-19 Alan Hayward <alan.hayward@arm.com>
2221
2222 * Makefile.in: Add new files.
2223 * aarch32-tdep.c: New file.
2224 * aarch32-tdep.h: New file.
2225 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2226 Call aarch32_read_description.
2227 * arch/aarch32.c: New file.
2228 * arch/aarch32.h: New file.
2229 * arch/arm.c (arm_create_target_description)
2230 (arm_create_mprofile_target_description): New function.
2231 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2232 (arm_create_target_description)
2233 (arm_create_mprofile_target_description): New declaration.
2234 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2235 read_description functions.
2236 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2237 Likewise.
2238 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2239 * arm-tdep.c (tdesc_arm_list): New variable.
2240 (arm_register_g_packet_guesses): Call create description functions.
2241 (arm_read_description) (arm_read_mprofile_description): New
2242 function.
2243 * arm-tdep.h (arm_read_description)
2244 (arm_read_mprofile_description): Add declaration.
2245 * configure.tgt: Add new files.
2246
afe09f0b
GL
22472019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2248
2249 * top.c (new_ui_command): Open specified terminal just once.
2250
cd215b2e
TT
22512019-07-18 Tom Tromey <tromey@adacore.com>
2252
2253 * symtab.c (main_name): Constify return type.
2254 * symfile.c (set_initial_language): Update.
2255 * symtab.h (main_name): Constify return type.
2256
d8f68fcb
TT
22572019-07-17 Tom Tromey <tom@tromey.com>
2258
2259 * tui/tui-winsource.c (tui_update_source_window)
2260 (tui_update_source_window_as_is)
2261 (tui_update_source_windows_with_line): Remove return.
2262 * tui/tui-disasm.c (tui_show_disassem)
2263 (tui_show_disassem_and_update_source): Remove return.
2264 * tui/tui.c (tui_reset): Remove return.
2265 * tui/tui-wingeneral.c
2266 (tui_check_and_display_highlight_if_needed): Remove return.
2267
ca5af91e
TT
22682019-07-17 Tom Tromey <tom@tromey.com>
2269
2270 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2271
5104fe36
TT
22722019-07-17 Tom Tromey <tom@tromey.com>
2273
2274 * tui/tui-winsource.h (struct tui_exec_info_window)
2275 (struct tui_source_window_base): Move from tui-data.h.
2276 * tui/tui-winsource.c: Move many method definitions from
2277 elsewhere. Remove "structuring" comments.
2278 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2279 (tui_source_window_base::refresh_window): Move to
2280 tui-winsource.c.
2281 * tui/tui-win.c (tui_source_window_base::refresh_all)
2282 (tui_source_window_base::update_tab_width)
2283 (tui_source_window_base::set_new_height)
2284 (tui_source_window_base::do_make_visible_with_new_height): Move to
2285 tui-winsource.c.
2286 * tui/tui-source.h: Update.
2287 * tui/tui-source.c (tui_source_window_base::reset): Move to
2288 tui-winsource.c.
2289 * tui/tui-disasm.h: Update.
2290 * tui/tui-data.h (struct tui_exec_info_window): Move to
2291 tui-winsource.h.
2292 (struct tui_source_window_base): Likewise.
2293 * tui/tui-data.c (tui_source_window_base::clear_detail)
2294 (tui_source_window_base, ~tui_source_window_base): Move to
2295 tui-winsource.c.
2296
daa15dde
TT
22972019-07-17 Tom Tromey <tom@tromey.com>
2298
2299 * tui/tui-win.c (tui_resize_all)
2300 (tui_source_window_base::update_tab_width)
2301 (tui_adjust_win_heights): Update.
2302 (tui_win_info::make_invisible_and_set_new_height): Rename from
2303 make_invisible_and_set_new_height.
2304 * tui/tui-data.h (struct tui_win_info)
2305 <make_invisible_and_set_new_height>: New method.
2306
bfad4537
TT
23072019-07-17 Tom Tromey <tom@tromey.com>
2308
2309 * tui/tui.c: Update.
2310 * tui/tui-source.h (struct tui_source_window): Move from
2311 tui-data.h.
2312 * tui/tui-layout.c: Update.
2313 * tui/tui-disasm.c: Update.
2314 * tui/tui-data.h (struct tui_source_window): Move to
2315 tui-source.h.
2316
88f7e873
TT
23172019-07-17 Tom Tromey <tom@tromey.com>
2318
2319 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2320 tui-data.h.
2321 * tui/tui-data.h (struct tui_disasm_window): Move to
2322 tui-disasm.h.
2323
96bd6233
TT
23242019-07-17 Tom Tromey <tom@tromey.com>
2325
2326 * tui/tui-regs.h (struct tui_data_item_window): Move from
2327 tui-data.h.
2328 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2329 * tui/tui-data.h (struct tui_data_item_window): Move to
2330 tui-regs.h.
2331 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2332
ce38393b
TT
23332019-07-17 Tom Tromey <tom@tromey.com>
2334
2335 * tui/tui.c: Update.
2336 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2337 (tui_cmd_window::max_height): Move to tui-command.c.
2338 * tui/tui-layout.c: Update.
2339 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2340 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2341 tui-command.c.
2342 * tui/tui-command.h (struct tui_cmd_window): Move from
2343 tui-data.h.
2344 * tui/tui-command.c: Remove "structuring" comments.
2345 (tui_cmd_window::clear_detail)
2346 (tui_cmd_window::do_make_visible_with_new_height)
2347 (tui_cmd_window::max_height): Move from elsewhere.
2348
2d8b51cb
TT
23492019-07-17 Tom Tromey <tom@tromey.com>
2350
2351 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2352 Now static.
2353 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2354 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2355
18ab23af
TT
23562019-07-17 Tom Tromey <tom@tromey.com>
2357
2358 * tui/tui.c: Update.
2359 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2360 tui-regs.c.
2361 * tui/tui-windata.h: Remove file.
2362 * tui/tui-windata.c: Remove file.
2363 * tui/tui-win.c (tui_data_window::set_new_height)
2364 (tui_data_window::do_make_visible_with_new_height): Move to
2365 tui-regs.c.
2366 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2367 * tui/tui-regs.c: Remove "structuring" comments.
2368 (tui_data_window::first_data_item_displayed)
2369 (tui_data_window::delete_data_content_windows)
2370 (tui_data_window::erase_data_content)
2371 (tui_data_window::display_all_data)
2372 (tui_data_window::refresh_all)
2373 (tui_data_window::do_scroll_vertical)
2374 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2375 (tui_data_window::do_make_visible_with_new_height)
2376 (tui_data_window::refresh_window): Move from elsewhere.
2377 (_initialize_tui_regs): Move to end of file.
2378 * tui/tui-layout.c: Update.
2379 * tui/tui-hooks.c: Update.
2380 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2381 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2382 tui-regs.c.
2383 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2384
88b7e7cc
TT
23852019-07-17 Tom Tromey <tom@tromey.com>
2386
2387 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2388 seen.
2389
0fcd3711
TT
23902019-07-17 Tom Tromey <tom@tromey.com>
2391
2392 * tui/tui-win.c (tui_source_window_base::set_new_height)
2393 (tui_source_window_base::do_make_visible_with_new_height): Use
2394 m_has_locator field directly.
2395 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2396 method.
2397 (struct tui_source_window_base) <has_locator>: Likewise.
2398
4a38112d
TT
23992019-07-17 Tom Tromey <tom@tromey.com>
2400
2401 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2402 Don't declare.
2403 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2404 Remove.
2405 * tui/tui-win.c (tui_source_window_base::set_new_height)
2406 (tui_source_window_base::set_new_height)
2407 (make_invisible_and_set_new_height)
2408 (tui_source_window_base::do_make_visible_with_new_height)
2409 (tui_source_window_base::do_make_visible_with_new_height):
2410 Update.
2411 * tui/tui-layout.c (show_source_disasm_command, show_data)
2412 (show_source_or_disasm_and_command): Update.
2413 * tui/tui-layout.c (show_layout): Update.
2414
09129226
TT
24152019-07-17 Tom Tromey <tom@tromey.com>
2416
2417 * tui/tui-layout.c (make_data_window): Remove.
2418 (show_data): Unify creation and re-initialization cases.
2419
4a8a5e84
TT
24202019-07-17 Tom Tromey <tom@tromey.com>
2421
2422 * tui/tui-layout.c (make_source_window, make_disasm_window):
2423 Remove.
2424 (show_data): Unify creation and re-initialization cases.
2425
76d2be8e
TT
24262019-07-17 Tom Tromey <tom@tromey.com>
2427
2428 * tui/tui-layout.c (make_command_window): Remove.
2429 (show_source_disasm_command, show_source_or_disasm_and_command):
2430 Unify creation and re-initialization cases.
2431
890b8bde
TT
24322019-07-17 Tom Tromey <tom@tromey.com>
2433
2434 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2435 creation and re-initialization cases.
2436
2cdfa113
TT
24372019-07-17 Tom Tromey <tom@tromey.com>
2438
2439 * tui/tui-regs.c (tui_get_register): Return void.
2440
8e3cfd09
TT
24412019-07-17 Tom Tromey <tom@tromey.com>
2442
2443 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2444 Simplify.
2445
f4e04977
TT
24462019-07-17 Tom Tromey <tom@tromey.com>
2447
2448 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2449 resetting.
2450
0379b883
TT
24512019-07-17 Tom Tromey <tom@tromey.com>
2452
2453 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2454 * tui/tui-regs.c (tui_reg_layout): New function.
2455 (tui_show_registers, tui_reg_command): Use it.
2456 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2457 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2458 parameters.
2459 (tui_layout_command): Remove.
2460
b7fbad91
TT
24612019-07-17 Tom Tromey <tom@tromey.com>
2462
2463 * tui/tui-layout.h (tui/tui-layout): Return void.
2464 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2465
4e1e56b9
TT
24662019-07-17 Tom Tromey <tom@tromey.com>
2467
2468 * tui/tui-layout.c (show_source_disasm_command, show_data):
2469 Update.
2470 (reset_locator): Remove.
2471 (show_source_or_disasm_and_command): Update.
2472
1e0c09ba
TT
24732019-07-17 Tom Tromey <tom@tromey.com>
2474
2475 * tui/tui-source.c (tui_source_window_base::reset): Remove
2476 win_type parameter.
2477 * tui/tui-layout.c (make_command_window, make_source_window)
2478 (make_disasm_window, make_data_window)
2479 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2480 (reset_locator, show_source_or_disasm_and_command): Update.
2481 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2482 win_type parameter.
2483 (struct tui_source_window_base) <reset>: Likewise.
2484
1bf605de
TT
24852019-07-17 Tom Tromey <tom@tromey.com>
2486
2487 * tui/tui-layout.c (show_source_disasm_command): Use
2488 reset_locator.
2489 (reset_locator): New function.
2490 (init_and_make_win): Remove.
2491 (show_source_or_disasm_and_command): Use reset_locator.
2492
098f9ed4
TT
24932019-07-17 Tom Tromey <tom@tromey.com>
2494
2495 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2496 condition.
2497 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2498 Remove condition.
2499 * tui/tui-source.c (tui_source_window_base::reset): New method.
2500 * tui/tui-layout.c (make_command_window): Don't call
2501 init_and_make_win.
2502 (make_source_window, make_disasm_window): Don't call
2503 make_source_or_disasm_window.
2504 (make_data_window): Don't call init_and_make_win. Change calling
2505 convention.
2506 (show_source_disasm_command, show_data): Simplify.
2507 (make_source_or_disasm_window): Remove.
2508 (show_source_or_disasm_and_command): Simplify.
2509 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2510 (struct tui_source_window_base) <reset>: Likewise.
2511 <execution_info>: Remove initializer.
2512 * tui/tui-data.c (tui_source_window_base): Initialize
2513 execution_info.
2514
80110957
TT
25152019-07-17 Tom Tromey <tom@tromey.com>
2516
2517 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2518 variable.
2519
cf82af05
TT
25202019-07-17 Tom Tromey <tom@tromey.com>
2521
2522 * tui/tui.c (tui_rl_other_window): Update.
2523 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2524 superclass method first. Always iterate over regs_content.
2525 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2526 method.
2527 * tui/tui-win.c (tui_set_focus_command): Update.
2528
01aeb396
TT
25292019-07-17 Tom Tromey <tom@tromey.com>
2530
2531 * tui/tui-win.c (tui_set_focus_command): Rename from
2532 tui_set_focus. Call tui_enable.
2533 (tui_set_focus_command): Remove.
2534
fd6c75ee
TT
25352019-07-17 Tom Tromey <tom@tromey.com>
2536
2537 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2538 refresh_window.
2539 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2540 touchwin.
2541 (tui_data_window::refresh_window): Call refresh_window on data
2542 items. Always call superclass refresh_window.
2543 (tui_win_info::refresh): Remove.
2544 (tui_source_window_base::refresh_window): Update.
2545 (tui_refresh_all): Update.
2546 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2547 refresh_window.
2548 (show_source_or_disasm_and_command): Likewise.
2549 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2550 (struct tui_source_window_base) <refresh>: Likewise.
2551
f6cc34a9
TT
25522019-07-17 Tom Tromey <tom@tromey.com>
2553
2554 * tui/tui-winsource.c (tui_clear_source_content)
2555 (tui_show_source_content): Update.
2556 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2557 whether content is empty.
2558 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2559 Remove.
2560
f31ec9af
TT
25612019-07-17 Tom Tromey <tom@tromey.com>
2562
2563 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2564 window's contents.
2565 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2566 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2567
d1b6f1e5
TT
25682019-07-17 Tom Tromey <tom@tromey.com>
2569
2570 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2571 (struct tui_data_item_window): Update.
2572
d9743a13
TT
25732019-07-17 Tom Tromey <tom@tromey.com>
2574
2575 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2576 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2577 defines.
2578
caf0bc4e
TT
25792019-07-17 Tom Tromey <tom@tromey.com>
2580
2581 * tui/tui-winsource.h (tui_erase_source_content)
2582 (tui_clear_source_content): Remove "display_prompt" parameter.
2583 * tui/tui-winsource.c (tui_update_source_window_as_is)
2584 (tui_update_source_windows_with_addr): Update.
2585 (tui_clear_source_content): Remove "display_prompt" parameter.
2586 (tui_erase_source_content): Likewise. Simplify.
2587 (tui_show_source_content): Update.
2588 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2589 * tui/tui-stack.c (tui_show_frame_info): Update.
2590 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2591 Remove defines.
2592
9d391078
TT
25932019-07-17 Tom Tromey <tom@tromey.com>
2594
2595 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2596 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2597 parameter.
2598 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2599 parameter.
2600
a38da35d
TT
26012019-07-17 Tom Tromey <tom@tromey.com>
2602
2603 * tui/tui-winsource.c (tui_clear_source_content)
2604 (tui_show_source_content, tui_show_exec_info_content)
2605 (tui_clear_exec_info_content): Update.
2606 * tui/tui-stack.c (tui_show_locator_content): Update.
2607 (tui_show_frame_info): Update.
2608 * tui/tui-source.h (tui_source_window): Don't declare.
2609 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2610 from tui_source_is_displayed.
2611 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2612 Remove field.
2613 (struct tui_source_window_base) <content_in_use>: New field. Now
2614 bool.
2615 (struct tui_source_window) <showing_source_p>: New method.
2616 (TUI_SRC_WIN): Change cast.
2617 * tui/tui-data.c (tui_initialize_static_data): Update.
2618
c2cd8994
TT
26192019-07-17 Tom Tromey <tom@tromey.com>
2620
2621 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2622 location_matches_p.
2623 * tui/tui-source.c (tui_source_window::location_matches_p): New
2624 method.
2625 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2626 method.
2627 * tui/tui-data.h (struct tui_source_window_base)
2628 <location_matches_p>: New method.
2629 (struct tui_source_window, struct tui_disasm_window)
2630 <location_matches_p>: Likewise.
2631
4dde7b34
TT
26322019-07-17 Tom Tromey <tom@tromey.com>
2633
2634 * tui/tui-win.c (tui_set_win_height_command): Rename from
2635 tui_set_win_height.
2636 (tui_set_win_height_command): Remove.
2637
b73dd877
TT
26382019-07-17 Tom Tromey <tom@tromey.com>
2639
2640 * tui/tui-source.c (tui_source_window): New constructor. Add
2641 observer.
2642 (~tui_source_window): New destructor.
2643 (tui_source_window::style_changed): New method.
2644 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2645 (tui_attach_detach_observers): Update.
2646 * tui/tui-data.h (struct tui_source_window): Make constructor not
2647 inline. Add destructor.
2648 (struct tui_source_window) <style_changed>: New method.
2649 <m_observable>: New member.
2650
ae2b5380
TT
26512019-07-17 Tom Tromey <tom@tromey.com>
2652
2653 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2654 * tui/tui-win.c (tui_resize_all): Fix typo.
2655
1ce3e844
TT
26562019-07-17 Tom Tromey <tom@tromey.com>
2657
2658 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2659 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2660 (tui_refresh_all): Remove "list" parameter. Use foreach.
2661 * tui/tui-win.c (window_name_completer): Use foreach.
2662 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2663 (update_tab_width): Likewise.
2664 * tui/tui-layout.c (show_layout): Update.
2665 * tui/tui-data.h (class tui_window_iterator): New.
2666 (struct all_tui_windows): New.
2667 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2668
fe3eaf1c
TT
26692019-07-17 Tom Tromey <tom@tromey.com>
2670
2671 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2672 parameter. Don't reference globals.
2673 (tui_reg_command): Update.
2674
368c1354
TT
26752019-07-17 Tom Tromey <tom@tromey.com>
2676
2677 * tui/tui-regs.c (tui_show_registers): Simplify.
2678
e80cd204
TT
26792019-07-17 Tom Tromey <tom@tromey.com>
2680
2681 * tui/tui-regs.c (tui_show_registers): Update.
2682 (tui_show_register_group): Add win_info parameter.
2683
aca2dd16
TT
26842019-07-17 Tom Tromey <tom@tromey.com>
2685
2686 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2687 Rename from tui_display_reg_element_at_line.
2688 (tui_data_window::display_registers_from_line): Update.
2689 * tui/tui-data.h (struct tui_data_window)
2690 <display_reg_element_at_line>: New method.
2691
517e9505
TT
26922019-07-17 Tom Tromey <tom@tromey.com>
2693
2694 * tui/tui-regs.h (tui_display_registers_from)
2695 (tui_display_registers_from_line): Don't declare.
2696 * tui/tui-windata.c (tui_data_window::display_all_data)
2697 (tui_data_window::refresh_all)
2698 (tui_data_window::do_scroll_vertical): Update.
2699 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2700 from tui_display_registers_from.
2701 (tui_display_reg_element_at_line): Update.
2702 (tui_data_window::display_registers_from_line): Rename from
2703 tui_display_registers_from_line.
2704 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2705 display_registers_from_line>: New methods.
2706
f76d8b19
TT
27072019-07-17 Tom Tromey <tom@tromey.com>
2708
2709 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2710 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2711 from tui_erase_data_content.
2712 (tui_data_window::display_all_data)
2713 (tui_data_window::refresh_all)
2714 (tui_data_window::do_scroll_vertical): Update.
2715 * tui/tui-regs.c (tui_show_registers): Update.
2716 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2717 New method.
2718
b4094625
TT
27192019-07-17 Tom Tromey <tom@tromey.com>
2720
2721 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2722 declare.
2723 * tui/tui-windata.c
2724 (tui_data_window::delete_data_content_windows): Rename from
2725 tui_delete_data_content_windows.
2726 (tui_data_window::display_all_data)
2727 (tui_data_window::do_scroll_vertical): Update.
2728 * tui/tui-data.h (struct tui_data_window)
2729 <delete_data_content_windows>: New method.
2730
c223a729
TT
27312019-07-17 Tom Tromey <tom@tromey.com>
2732
2733 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2734 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2735
50daf268
TT
27362019-07-17 Tom Tromey <tom@tromey.com>
2737
2738 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2739 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2740 from tui_display_all_data.
2741 * tui/tui-win.c
2742 (tui_data_window::do_make_visible_with_new_height): Update.
2743 * tui/tui-regs.c (tui_show_registers): Update.
2744 * tui/tui-layout.c (tui_set_layout): Update.
2745 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2746 method.
2747
df5f8cab
TT
27482019-07-17 Tom Tromey <tom@tromey.com>
2749
2750 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2751 * tui/tui-windata.c (tui_display_data_from): Remove.
2752 (tui_data_window::refresh_all): Update.
2753
80cb6c27
TT
27542019-07-17 Tom Tromey <tom@tromey.com>
2755
2756 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2757 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2758 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2759 tui_display_registers_from_line.
2760 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2761 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2762 "force_display" parameter.
2763
baff0c28
TT
27642019-07-17 Tom Tromey <tom@tromey.com>
2765
2766 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2767 declare.
2768 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2769 Rename from tui_first_reg_element_no_inline.
2770 (tui_display_reg_element_at_line)
2771 (tui_display_registers_from_line): Update.
2772 * tui/tui-data.h (struct tui_data_window)
2773 <first_reg_element_no_inline>: New method.
2774
3b23c5f2
TT
27752019-07-17 Tom Tromey <tom@tromey.com>
2776
2777 * tui/tui-windata.c (tui_display_data_from)
2778 (tui_data_window::do_scroll_vertical): Update.
2779 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2780 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2781 Rename from tui_line_from_reg_element_no.
2782 (tui_display_registers_from_line): Update.
2783 * tui/tui-data.h (struct tui_data_window)
2784 <line_from_reg_element_no>: New method.
2785
0b5ec218
TT
27862019-07-17 Tom Tromey <tom@tromey.com>
2787
2788 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2789 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2790 tui_last_regs_line_no.
2791 (tui_display_reg_element_at_line)
2792 (tui_display_registers_from_line): Update.
2793 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2794 method.
2795
0807ab7b
TT
27962019-07-17 Tom Tromey <tom@tromey.com>
2797
2798 PR tui/24722:
2799 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2800 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2801 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2802 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2803 (tui_update_breakpoint_info): Likewise.
2804 * tui/tui-hooks.c (tui_event_create_breakpoint)
2805 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2806 Update.
2807
9ad7fdef
TT
28082019-07-17 Tom Tromey <tom@tromey.com>
2809
2810 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2811
5813316f
TT
28122019-07-17 Tom Tromey <tom@tromey.com>
2813
2814 * tui/tui-winsource.c (tui_update_source_window_as_is)
2815 (tui_update_source_windows_with_addr): Update.
2816 * tui/tui-source.h (tui_set_source_content)
2817 (tui_show_symtab_source): Add "win_info" parameter.
2818 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2819 parameter.
2820 (tui_show_symtab_source): Likewise.
2821
00e264e7
TT
28222019-07-17 Tom Tromey <tom@tromey.com>
2823
2824 * tui/tui-wingeneral.c
2825 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2826
06210ce4
TT
28272019-07-17 Tom Tromey <tom@tromey.com>
2828
2829 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2830 (struct tui_cmd_window) <can_scroll>: New method.
2831 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2832 method.
2833
381befee
TT
28342019-07-17 Tom Tromey <tromey@adacore.com>
2835
2836 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2837 do_field_signed>: Rename. Change type of "value".
2838 * ui-out.c (ui_out::field_signed): Rename from field_int.
2839 Change type of "value".
2840 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2841 type of "value".
2842 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2843 do_field_int. Change type of "value".
2844 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2845 do_field_int. Change type of "value".
2846 * tracepoint.c (trace_status_mi, tfind_1)
2847 (print_one_static_tracepoint_marker): Update.
2848 * thread.c (print_thread_info_1, print_selected_thread_frame):
2849 Update.
2850 * stack.c (print_frame, print_frame_info): Update.
2851 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2852 Update.
2853 * source.c (print_source_lines_base): Update.
2854 * skip.c (info_skip_command): Update.
2855 * record-btrace.c (btrace_ui_out_decode_error)
2856 (btrace_call_history_src_line): Update.
2857 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2858 Update.
2859 * progspace.c (print_program_space): Update.
2860 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2861 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2862 do_field_int. Change type of "value".
2863 * mi/mi-out.c (mi_ui_out::do_table_begin)
2864 (mi_ui_out::do_table_header): Update.
2865 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2866 type of "value".
2867 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2868 (mi_cmd_data_list_changed_registers, output_register)
2869 (mi_cmd_data_read_memory, mi_load_progress)
2870 (mi_cmd_trace_frame_collected): Update.
2871 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2872 Update.
2873 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2874 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2875 (mi_cmd_var_list_children, varobj_update_one): Update.
2876 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2877 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2878 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2879 * inferior.c (print_inferior): Update.
2880 * gdb_bfd.c (print_one_bfd): Update.
2881 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2882 Update.
2883 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2884 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2885 do_field_int. Change type of "value".
2886 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2887 do_field_int. Change type of "value".
2888 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2889 (print_one_breakpoint_location, print_it_catch_fork)
2890 (print_one_catch_fork, print_it_catch_vfork)
2891 (print_one_catch_vfork, print_it_catch_solib)
2892 (print_it_catch_exec, print_it_ranged_breakpoint)
2893 (print_mention_watchpoint, print_mention_masked_watchpoint)
2894 (bkpt_print_it, update_static_tracepoint): Update.
2895 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2896 * break-catch-syscall.c (print_it_catch_syscall): Update.
2897 * ada-tasks.c (print_ada_task_info): Update.
2898 * ada-lang.c (print_it_exception, print_mention_exception):
2899 Update.
2900
6b78c3f8
AB
29012019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2902
2903 PR breakpoints/24541
2904 * gdbarch.c: Regenerate.
2905 * gdbarch.h: Regenerate.
2906 * gdbarch.sh: Adjust return type and parameter types for
2907 'stap_adjust_register'.
2908 (i386_stap_adjust_register): Adjust signature and return new
2909 register name.
2910 * stap-probe.c (stap_parse_register_operand): Adjust use of
2911 'gdbarch_stap_adjust_register'.
2912
d72a9b85
TT
29132019-07-17 Tom Tromey <tromey@adacore.com>
2914
2915 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2916 declare VEC.
2917 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2918 std::vector.
2919 (struct s390_process_info): Add initializers.
2920 (s390_add_process): Use new.
2921 (s390_linux_nat_target::low_forget_process): Use delete.
2922 (s390_linux_nat_target::low_new_fork)
2923 (s390_linux_nat_target::stopped_by_watchpoint)
2924 (s390_linux_nat_target::low_prepare_to_resume)
2925 (s390_linux_nat_target::insert_watchpoint)
2926 (s390_linux_nat_target::insert_hw_breakpoint)
2927 (s390_linux_nat_target::remove_watchpoint)
2928 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2929
206e6c58
JB
29302019-07-16 John Baldwin <jhb@FreeBSD.org>
2931
2932 * aarch64-fbsd-nat.c: Include regcache.h.
2933 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2934 argument.
2935 (aarch64_fbsd_nat_target::fetch_registers)
2936 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2937 variable.
2938 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2939
cbde90f2
JB
29402019-07-16 John Baldwin <jhb@FreeBSD.org>
2941
2942 * fbsd-nat.c: Include gdbarch.h.
2943
07128006
TT
29442019-07-15 Tom Tromey <tromey@adacore.com>
2945
2946 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2947
1f77b012
TT
29482019-07-15 Tom Tromey <tromey@adacore.com>
2949
2950 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2951 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2952 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2953 * cli-out.c (cli_ui_out::do_field_int): New method.
2954 * ui-out.c (ui_out::field_unsigned): New method.
2955 * symfile.c (generic_load): Use field_unsigned.
2956 (print_transfer_performance): Likewise.
2957 * record-btrace.c (ui_out_field_uint): Remove.
2958 (btrace_call_history_insn_range, btrace_call_history): Use
2959 field_unsigned.
2960 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2961 field_unsigned.
2962 * ui-out.h (class ui_out) <field_unsigned>: New method.
2963 <do_field_unsigned>: Likewise.
2964
33eca680
TT
29652019-07-15 Tom Tromey <tromey@adacore.com>
2966
2967 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2968 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2969 * target.c (flash_erase_command): Use field_string.
2970 * infrun.c (print_signal_received_reason): Use field_string.
2971 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2972 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2973 field_string.
2974 * ada-tasks.c (print_ada_task_info): Use field_string.
2975
ca8d69be
TT
29762019-07-15 Tom Tromey <tromey@adacore.com>
2977
2978 * target.c (flash_erase_command): Use field_core_addr.
2979 * symfile.c (generic_load): Use field_core_addr.
2980 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2981 Use field_core_addr.
2982 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2983 field_core_addr.
2984
0d4e84ed
AB
29852019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2986
2987 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2988 value if its desired type is smaller than a CORE_ADDR and signed.
2989
9a49df9d
AB
29902019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2991
2992 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2993 of changes to field names, and use new is_reference field to
2994 decide if a property is a reference or not.
2995 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2996 field.
2997 (struct dwarf2_property_baton): Update header comment, rename
2998 'referenced_type' to 'property_type' and update comments.
2999 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3000 default property type, store in property baton, update to take
3001 accound of renamed field.
3002 (read_func_scope): Update call to attr_to_dynamic_prop.
3003 (read_array_type): Likewise.
3004 (dwarf2_per_cu_addr_sized_int_type): New function.
3005 (read_subrange_index_type): Move type finding code to
3006 dwarf2_per_cu_addr_sized_int_type.
3007 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3008 (dwarf2_per_cu_addr_type): New function.
3009 (set_die_type): Update calls to attr_to_dynamic_prop.
3010
b86352cf
AB
30112019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3012
3013 * dwarf2read.c (read_subrange_index_type): New function.
3014 (read_subrange_type): Move code into new function and call it.
3015 * gdbtypes.c (create_range_type): Add some asserts.
3016
603490bf
AB
30172019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3018
3019 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3020 update return statements.
3021 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3022 declaration, and update comment to match.
3023 * gdbtypes.c (resolve_dynamic_array): Update call to
3024 dwarf2_evaluate_property to match new return type.
3025
592f9d27
AB
30262019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3027
3028 * valarith.c (value_subscripted_rvalue): Change lowerbound
3029 parameter type from int to LONGEST.
3030 * value.h (value_subscripted_rvalue): Likewise in declaration.
3031
60cfcb20
AB
30322019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3033
3034 * cli/cli-utils.c (info_print_command_completer): New function.
3035 * cli/cli-utils.h: Add 'completer.h' include, and forward
3036 declaration for 'struct cmd_list_element'.
3037 (info_print_command_completer): Declare.
3038 * stack.c (_initialize_stack): Add completer for 'info locals' and
3039 'info args'.
3040 * symtab.c (_initialize_symtab): Add completer for 'info
3041 variables' and 'info functions'.
3042 * NEWS: Mention completion for additional info commands.
3043
b16507e0
AB
30442019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3045
3046 * cli/cli-utils.c (extract_info_print_args): Delete.
3047 (extract_arg_maybe_quoted): Delete.
3048 (info_print_options_defs): New variable.
3049 (make_info_print_options_def_group): New function.
3050 (extract_info_print_options): Define new function.
3051 * cli/cli-utils.h (extract_info_print_args): Delete.
3052 (struct info_print_options): New structure.
3053 (extract_info_print_options): Declare new function.
3054 * stack.c (info_locals_command): Update to use new
3055 extract_info_print_options, also add a header comment.
3056 (info_args_command): Likewise.
3057 * symtab.c (info_variables_command): Likewise.
3058 (info_functions_command): Likewise.
3059
021d8588
AB
30602019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3061
3062 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3063 to extract string arguments.
3064 * common/common-utils.c (extract_string_maybe_quoted): New function.
3065 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3066
b777eb6d
TT
30672019-07-11 Tom Tromey <tromey@adacore.com>
3068
3069 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3070 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3071 * top.h (gdbinit): Don't declare.
3072 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3073 into...
3074 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3075 * top.c (gdb_init): Don't call init_cli_cmds.
3076 (gdbinit): Remove.
3077 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3078
72ee03ff
TT
30792019-07-11 Tom Tromey <tromey@adacore.com>
3080
3081 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3082 after it has been moved.
3083
00db9531
SM
30842019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3085
3086 * valops.c (value_must_coerce_to_target): Change return type to
3087 bool.
3088 * value.h (value_must_coerce_to_target): Likewise.
3089
f2478a7e
SM
30902019-07-10 Simon Marchi <simon.marchi@efficios.com>
3091
3092 * breakpoint.c (is_hardware_watchpoint): Remove
3093 forward-declaration.
3094 (is_masked_watchpoint): Change return type to bool.
3095 (is_tracepoint): Likewise.
3096 (is_breakpoint): Likewise.
3097 (is_hardware_watchpoint): Likewise.
3098 (is_watchpoint): Likewise.
3099 (is_no_memory_software_watchpoint): Likewise.
3100 (is_catchpoint): Likewise.
3101 (breakpoint_1): Make FILTER parameter's return type bool.
3102 is_masked_watchpoint): Change return type to bool.
3103 (save_breakpoints): Make FILTER parameter's return type bool.
3104 * breakpoint.h (is_breakpoint): Change return type to bool.
3105 (is_watchpoint): Likewise.
3106 (is_catchpoint): Likewise.
3107 (is_tracepoint): Likewise.
3108
0d12e84c
TT
31092019-07-10 Tom Tromey <tom@tromey.com>
3110
3111 * defs.h: Don't include gdbarch.h.
3112 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3113 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3114 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3115 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3116 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3117 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3118 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3119 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3120 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3121 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3122 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3123 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3124 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3125 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3126 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3127 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3128 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3129 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3130 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3131 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3132 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3133 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3134 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3135 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3136 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3137 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3138 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3139
f06f1252
TT
31402019-07-10 Tom Tromey <tromey@adacore.com>
3141
3142 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3143 * breakpoint.c (init_ada_exception_breakpoint): Register as
3144 bp_catchpoint.
3145 (print_one_breakpoint_location, print_one_breakpoint): Use
3146 is_ada_exception_catchpoint.
3147 * ada-lang.c (class ada_catchpoint_location): Pass
3148 bp_loc_software_breakpoint to bp_location constructor.
3149 (is_ada_exception_catchpoint): New function.
3150
7a5d944b
TT
31512019-07-10 Tom Tromey <tromey@adacore.com>
3152
3153 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3154 VEC.
3155 (struct arm_exidx_entry): New method operator<.
3156 (struct arm_exidx_data) <section_maps>: Change type.
3157 (arm_exidx_data_free): Remove.
3158 (arm_exidx_data_key): Change type. Move lower.
3159 (arm_exidx_new_objfile): Update.
3160 (arm_compare_exidx_entries): Remove.
3161 (arm_find_exidx_entry, _initialize_arm_tdep)
3162
48c66e1d
TT
31632019-07-10 Tom Tromey <tromey@adacore.com>
3164
3165 * solib-spu.c (ocl_program_data_key): Change type.
3166 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3167 Update.
3168
a269fbf1
TT
31692019-07-10 Tom Tromey <tromey@adacore.com>
3170
3171 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3172 (struct solib_aix_inferior_data) <library_list>: Change type.
3173 (solib_aix_inferior_data_handle): Change type.
3174 (get_solib_aix_inferior_data): Update.
3175 (solib_aix_free_library_list): Remove.
3176 (library_list_start_library): Update.
3177 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3178 return type.
3179 (solib_aix_get_library_list)
3180 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3181 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3182
c294730c
TT
31832019-07-10 Tom Tromey <tromey@adacore.com>
3184
3185 * solib-dsbt.c (struct dsbt_info): Add initializers.
3186 (solib_dsbt_pspace_data): Change type.
3187 (dsbt_pspace_data_cleanup): Remove.
3188 (get_dsbt_info, _initialize_dsbt_solib): Update.
3189
9d52077d
TT
31902019-07-10 Tom Tromey <tromey@adacore.com>
3191
3192 * spu-tdep.c (spu_overlay_data): Change type.
3193 (spu_get_overlay_table, spu_overlay_new_objfile)
3194 (_initialize_spu_tdep): Update.
3195
22a20dca
TT
31962019-07-10 Tom Tromey <tromey@adacore.com>
3197
3198 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3199 destructor.
3200 (dbx_objfile_data_key): Change type and declare later.
3201 (DBX_SYMFILE_INFO): Rewrite.
3202 * dbxread.c (dbx_objfile_data_key): Change type.
3203 (dbx_symfile_init): Update.
3204 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3205 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3206 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3207
cb60f420
TT
32082019-07-10 Tom Tromey <tromey@adacore.com>
3209
3210 * jit.c (jit_program_space_key): Change type. Move lower.
3211 (get_jit_program_space_data): Update.
3212 (jit_program_space_data_cleanup): Remove.
3213 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3214 Update.
3215 (struct jit_program_space_data): Add initializers.
3216
51df2ae3
TT
32172019-07-10 Tom Tromey <tromey@adacore.com>
3218
3219 * solib-darwin.c (struct darwin_info): Add initializers.
3220 (solib_darwin_pspace_data): Change type.
3221 (darwin_pspace_data_cleanup): Remove.
3222 (get_darwin_info, _initialize_darwin_solib): Update.
3223
18101a35
TT
32242019-07-10 Tom Tromey <tromey@adacore.com>
3225
3226 * remote-sim.c (struct sim_inferior_data): Add initializers,
3227 constructor, and destructor.
3228 (sim_inferior_data_key): Change type. Move lower.
3229 (check_for_duplicate_sim_descriptor): Update.
3230 (get_sim_inferior_data): Use new. Update.
3231 (~sim_inferior_data_cleanup): Rename from
3232 sim_inferior_data_cleanup. Simplify.
3233 (gdbsim_close_inferior, simulator_command)
3234 (sim_command_completer, _initialize_remote_sim): Update.
3235 (next_pid, INITIAL_PID): Move earlier.
3236
05b08ac1
TT
32372019-07-10 Tom Tromey <tromey@adacore.com>
3238
3239 * python/python-internal.h (create_thread_object): Return
3240 gdbpy_ref.
3241 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3242 * python/py-inferior.c (struct threadlist_entry): Add
3243 constructor.
3244 <thread_obj>: Now a gdbpy_ref.
3245 (thread_to_thread_object): Update.
3246 (add_thread_object): Use new.
3247 (delete_thread_object): Use delete.
3248 (infpy_threads): Update.
3249 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3250 GIL.
3251
32372d80
TT
32522019-07-10 Tom Tromey <tromey@adacore.com>
3253
3254 * valops.c (value_cast): Specialize error message for Ada.
3255
5c458ae8
SM
32562019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3257
3258 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3259
4c462cb0
SM
32602019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3261
3262 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3263 bpstat_should_step): Return bool, adjust comments.
3264 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3265 bpstat_should_step): Likewise.
3266
89abbcc2
AH
32672019-07-10 Alan Hayward <alan.hayward@arm.com>
3268
3269 * features/Makefile: Use feature target descriptions for Arm.
3270 * features/arm/arm-core.c: Generate new file.
3271 * features/arm/arm-fpa.c: Likewise.
3272 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3273 * features/arm/arm-m-profile.c: Likewise.
3274 * features/arm/arm-vfpv2.c: Likewise.
3275 * features/arm/arm-vfpv3.c: Likewise.
3276 * features/arm/xscale-iwmmxt.c: Likewise.
3277 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3278
166a82be
AH
32792019-07-10 Alan Hayward <alan.hayward@arm.com>
3280
3281 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3282 ptrace earlier.
3283
9fb4c7e9
AH
32842019-07-10 Alan Hayward <alan.hayward@arm.com>
3285
3286 * features/aarch64-pauth.c: Regenerate.
3287
e2d0f980
SM
32882019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3289
3290 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3291 bool.
3292 (bpstat_what): Use false instead of 0.
3293
a38118e5
PA
32942019-07-09 Pedro Alves <palves@redhat.com>
3295
3296 * break-catch-throw.c (is_exception_catchpoint): New.
3297 * breakpoint.c (print_one_breakpoint_location): New parameter
3298 'raw_loc'. Handle it. Use
3299 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3300 looking at the breakpoint's type.
3301 (print_one_breakpoint): If handling "maint info breakpoints", also
3302 print locations of exception catchpoints.
3303 * breakpoint.h (is_exception_catchpoint): Declare.
3304
cb1e4e32
PA
33052019-07-09 Pedro Alves <palves@redhat.com>
3306
3307 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3308 "addr" field.
3309 (allocate_location_exception_catchpoint): New.
3310 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3311 (initialize_throw_catchpoint_ops): Install
3312 allocate_location_exception_catchpoint as allocate_location
3313 method.
3314 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3315 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3316 bp_loc_other.
3317 (breakpoint_address_is_meaningful): Delete.
3318 (bl_address_is_meaningful): New.
3319 (breakpoint_locations_match): Adjust comment.
3320 (bp_location_from_bp_type): New, factored out of...
3321 (bp_location::bp_location(breakpoint *)): ... this.
3322 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3323 factored out of...
3324 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3325 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3326 breakpoint_address_is_meaningful.
3327 (bp_locations_compare): Adjust comment.
3328 (update_global_location_list): Use bl_address_is_meaningful
3329 instead of breakpoint_address_is_meaningful.
3330 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3331 explicit.
3332 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3333 * python/py-breakpoint.c (bppy_get_location): No longer check
3334 whether location is null.
3335
b58a68fe
PA
33362019-07-09 Pedro Alves <palves@redhat.com>
3337
3338 PR c++/15468
3339 * breakpoint.c (print_one_breakpoint_location): Remove
3340 single-location assert.
3341
268a13a5
TT
33422019-07-09 Tom Tromey <tom@tromey.com>
3343
3344 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3345 * configure: Rebuild.
3346 * configure.ac: Change common to gdbsupport.
3347 * gdbsupport: Rename from common.
3348 * acinclude.m4: Change common to gdbsupport.
3349 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3350 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3351 gdbsupport.
3352 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3353 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3354 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3355 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3356 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3357 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3358 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3359 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3360 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3361 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3362 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3363 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3364 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3365 coff-pe-read.c, command.h, compile/compile-c-support.c,
3366 compile/compile-c.h, compile/compile-cplus-symbols.c,
3367 compile/compile-cplus-types.c, compile/compile-cplus.h,
3368 compile/compile-loc2c.c, compile/compile.c, completer.c,
3369 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3370 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3371 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3372 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3373 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3374 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3375 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3376 features/aarch64-core.c, features/aarch64-fpu.c,
3377 features/aarch64-pauth.c, features/aarch64-sve.c,
3378 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3379 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3380 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3381 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3382 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3383 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3384 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3385 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3386 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3387 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3388 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3389 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3390 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3391 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3392 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3393 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3394 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3395 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3396 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3397 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3398 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3399 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3400 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3401 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3402 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3403 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3404 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3405 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3406 minsyms.c, mips-linux-tdep.c, namespace.h,
3407 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3408 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3409 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3410 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3411 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3412 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3413 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3414 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3415 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3416 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3417 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3418 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3419 procfs.c, producer.c, progspace.h, psymtab.h,
3420 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3421 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3422 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3423 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3424 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3425 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3426 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3427 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3428 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3429 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3430 target-memory.c, target.c, target.h, target/waitstatus.c,
3431 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3432 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3433 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3434 unittests/array-view-selftests.c,
3435 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3436 unittests/common-utils-selftests.c,
3437 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3438 unittests/format_pieces-selftests.c,
3439 unittests/function-view-selftests.c,
3440 unittests/lookup_name_info-selftests.c,
3441 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3442 unittests/mkdir-recursive-selftests.c,
3443 unittests/observable-selftests.c,
3444 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3445 unittests/parse-connection-spec-selftests.c,
3446 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3447 unittests/scoped_fd-selftests.c,
3448 unittests/scoped_mmap-selftests.c,
3449 unittests/scoped_restore-selftests.c,
3450 unittests/string_view-selftests.c, unittests/style-selftests.c,
3451 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3452 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3453 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3454 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3455 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3456 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3457
5b0e2db4
AB
34582019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3459
3460 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3461 bool value.
3462 (decode_digits_ordinary): Set explicit_line field in sal.
3463 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3464 symtab_and_line that was set on an explicit line number in
3465 assembler code. Do always update the recorded symtab and line if
3466 we do skip the prologue.
3467
0ba852ab
AB
34682019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3469
3470 * breakpoint.c (set_breakpoint_location_function): Remove
3471 explicit_loc parameter.
3472 (momentary_breakpoint_from_master): Update call to
3473 set_breakpoint_location_function.
3474 (add_location_to_breakpoint): Likewise.
3475
b3a7d171
AB
34762019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3477
3478 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3479 required features based on default bfd type when no specific bfd
3480 is present.
3481
1f6f6e21
PW
34822019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3483
3484 * NEWS: Mention that GDB printf and eval commands can now print
3485 C-style and Ada-style convenience var strings without
3486 calling the inferior.
3487 * printcmd.c (printf_c_string): Locally print GDB internal var
3488 instead of transiting via the inferior.
3489 (printf_wide_c_string): Likewise.
3490
34912019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
3492
3493 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3494
0598af48
TT
34952019-07-04 Tom Tromey <tom@tromey.com>
3496
3497 PR tui/24724:
3498 * tui/tui-winsource.c (tui_clear_source_content): Update.
3499 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3500 (tui_update_breakpoint_info): Update.
3501 (tui_set_exec_info_content): Update.
3502 * tui/tui-source.c (tui_set_source_content_nil): Update.
3503 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3504 has_break.
3505 * tui/tui-data.h (enum tui_bp_flag): New.
3506 (tui_bp_flags): New enum flags type.
3507 (struct tui_source_element) <break_mode>: Change type. Rename
3508 from has_break.
3509 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3510 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3511 constants.
3512 * tui/tui-winsource.h: Fix comment.
3513
350fab54
AH
35142019-07-04 Alan Hayward <alan.hayward@arm.com>
3515
3516 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3517 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3518 (store_fpregs_to_thread)
3519 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3520 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3521 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3522 (IWMMXT_REGS_SIZE): Add define.
3523 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3524 (fetch_vfp_regs, store_vfp_regs)
3525 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3526 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3527
f0452268
AH
35282019-07-04 Alan Hayward <alan.hayward@arm.com>
3529
3530 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3531 defines.
3532 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3533 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3534 (ARM_INT_REGISTER_SIZE): ...to this.
3535 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3536 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3537 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3538 (arm_linux_collect_gregset, supply_nwfpe_register)
3539 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3540 defines.
3541 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3542 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3543 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3544 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3545 (arm_return_in_memory, arm_store_return_value)
3546 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3547 (arm_record_ld_st_multiple): Likewise.
3548 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3549 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3550
e935475c
AH
35512019-07-04 Alan Hayward <alan.hayward@arm.com>
3552
3553 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3554 AARCH64_DISPLACED_MODIFIED_INSNS.
3555 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3556 (aarch64_displaced_step_copy_insn): Likewise.
3557 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3558 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3559 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3560 ARM_DISPLACED_MODIFIED_INSNS.
3561 * arm-tdep.c (arm_gdbarch_init): Likewise.
3562 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3563 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3564 (struct arm_displaced_step_closure): Use
3565 ARM_DISPLACED_MODIFIED_INSNS.
3566
df0bb381
AH
35672019-07-04 Alan Hayward <alan.hayward@arm.com>
3568
3569 * features/Makefile: Remove unused xml files.
3570 * features/aarch64.xml: Remove.
3571 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3572 * features/i386/amd64-avx-avx512.xml: Remove.
3573 * features/i386/amd64-avx-linux.xml: Remove.
3574 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3575 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3576 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3577 * features/i386/amd64-avx-mpx.xml: Remove.
3578 * features/i386/amd64-avx.xml: Remove.
3579 * features/i386/amd64-linux.xml: Remove.
3580 * features/i386/amd64-mpx-linux.xml: Remove.
3581 * features/i386/amd64-mpx.xml: Remove.
3582 * features/i386/amd64.xml: Remove.
3583 * features/i386/i386-avx-avx512-linux.xml: Remove.
3584 * features/i386/i386-avx-avx512.xml: Remove.
3585 * features/i386/i386-avx-linux.xml: Remove.
3586 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3587 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3588 * features/i386/i386-avx-mpx-linux.xml: Remove.
3589 * features/i386/i386-avx-mpx.xml: Remove.
3590 * features/i386/i386-avx.xml: Remove.
3591 * features/i386/i386-linux.xml: Remove.
3592 * features/i386/i386-mmx-linux.xml: Remove.
3593 * features/i386/i386-mmx.xml: Remove.
3594 * features/i386/i386-mpx-linux.xml: Remove.
3595 * features/i386/i386-mpx.xml: Remove.
3596 * features/i386/i386.xml: Remove.
3597 * features/i386/x32-avx-avx512-linux.xml: Remove.
3598 * features/i386/x32-avx-linux.xml: Remove.
3599 * features/i386/x32-linux.xml: Remove.
3600
edd6266a
AH
36012019-07-04 Alan Hayward <alan.hayward@arm.com>
3602
3603 * regformats/aarch64.dat: Remove.
3604 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3605 * regformats/i386/amd64-avx-linux.dat: Remove.
3606 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3607 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3608 * regformats/i386/amd64-linux.dat: Remove.
3609 * regformats/i386/amd64-mpx-linux.dat: Remove.
3610 * regformats/i386/amd64.dat: Remove.
3611 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3612 * regformats/i386/i386-avx-linux.dat: Remove.
3613 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3614 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3615 * regformats/i386/i386-linux.dat: Remove.
3616 * regformats/i386/i386-mmx-linux.dat: Remove.
3617 * regformats/i386/i386-mpx-linux.dat: Remove.
3618 * regformats/i386/i386.dat: Remove.
3619 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3620 * regformats/i386/x32-avx-linux.dat: Remove.
3621 * regformats/i386/x32-linux.dat: Remove.
3622
2b40fda7
AH
36232019-07-04 Alan Hayward <alan.hayward@arm.com>
3624
3625 * aarch64-tdep.c: Remove xml self tests.
3626 * amd64-linux-tdep.c: Likewise.
3627 * amd64-tdep.c: Likewise.
3628 * i386-linux-tdep.c: Likewise.
3629 * i386-tdep.c: Likewise.
3630
5f4ba3e7
PA
36312019-07-03 Pedro Alves <palves@redhat.com>
3632
3633 PR cli/24732
3634 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3635 (pipe_cmd_option_defs): New.
3636 (make_pipe_cmd_options_def_group): New.
3637 (pipe_command): Use gdb::option::process_options.
3638 (pipe_command_completer): New function.
3639 (_initialize_cli_cmds): Install completer for "pipe" command.
3640
3d9be6f5
PA
36412019-07-03 Pedro Alves <palves@redhat.com>
3642
3643 * cli/cli-option.c (union option_value) <string>: New field.
3644 (struct option_def_and_value): Add ctor, move ctor, dtor and
3645 use DISABLE_COPY_AND_ASSIGN.
3646 (option_def_and_value::clear_value): New.
3647 (parse_option, save_option_value_in_ctx, get_val_type_str)
3648 (add_setshow_cmds_for_options): Handle var_string.
3649 * cli-option.h (union option_def::var_address) <string>: New
3650 field.
3651 (struct string_option_def): New.
3652 * maint-test-options.c (struct test_options_opts): Add default
3653 ctor and use DISABLE_COPY_AND_ASSIGN.
3654 <string_opt>: New field.
3655 (test_options_opts::~test_options_opts): New.
3656 (test_options_opts::dump): Also dump "-string".
3657 (test_options_option_defs): Install "string.
3658
41fc454c
PA
36592019-07-03 Pedro Alves <palves@redhat.com>
3660
3661 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3662 option_value with a null enumeration.
3663 (complete_options): Save the option values in the context.
3664 (save_option_value_in_ctx): New, factored out from ...
3665 (process_options): ... here.
3666 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3667 of the function.
3668 * maint-test-options.c (test_options_opts::dump): New, factored
3669 out from ...
3670 (maintenance_test_options_command_mode): ... here.
3671 (maintenance_test_options_command_completion_result): Delete.
3672 (maintenance_test_options_command_completion_text): Update
3673 comment.
3674 (maintenance_show_test_options_completion_result): Change
3675 prototype. Just print
3676 maintenance_test_options_command_completion_text.
3677 (save_completion_result): New.
3678 (maintenance_test_options_completer_mode): Pass options context to
3679 complete_options, and then save a dump.
3680 (_initialize_maint_test_options): Use add_cmd to install "maint
3681 show test-options-completion-result".
3682
fdbc9870
PA
36832019-07-03 Pedro Alves <palves@redhat.com>
3684
3685 * NEWS (New commands): Mention "with" and "maint with".
3686 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3687 (with_command, with_command_completer): New.
3688 (pipe_command): Adjust to new repeat_previous
3689 interface.
3690 (_initialize_cli_cmds): Install the "with" command and its "w"
3691 alias.
3692 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3693 declarations.
3694 * cli/cli-setshow.c (parse_cli_var_uinteger)
3695 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3696 argument strings for all var_types.
3697 (get_setshow_command_value_string): New, factored out from ...
3698 (do_show_command): ... this.
3699 * cli/cli-setshow.h: Include <string>.
3700 (get_setshow_command_value_string): Declare.
3701 * command.h (repeat_previous): Now returns const char *. Adjust
3702 comment.
3703 * maint.c: Include "cli/cli-cmds.h".
3704 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3705 (_initialize_maint_cmds): Register the "maintenance with" command.
3706 * top.c (repeat_previous): Move bits from pipe_command here:
3707 Return the saved command line, if any; error out if there's no
3708 command to relaunch.
3709
c6ac8931
PA
37102019-07-03 Pedro Alves <palves@redhat.com>
3711
3712 * NEWS (New commands): Mention "maint set/show test-settings"
3713 instead of "maint test-settings".
3714 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3715 (maintenance_test_settings_set_list): Rename to ...
3716 (maintenance_set_test_settings_list): ... this.
3717 (maintenance_test_settings_show_list): Rename to ...
3718 (maintenance_show_test_settings_list): ... this.
3719 (maintenance_test_settings_cmd): Delete.
3720 (maintenance_test_settings_set_cmd): ...
3721 (maintenance_set_test_settings_cmd): ... this.
3722 (maintenance_test_settings_show_cmd): ...
3723 (maintenance_show_test_settings_cmd): ... this.
3724 (maintenance_test_settings_show_value_cmd):
3725 (maintenance_show_test_settings_value_cmd): ... this.
3726 (_initialize_maint_test_settings): No longer install the "maint
3727 test-settings" prefix command. Rename "maint test-settings set"
3728 to "maint set test-settings", and "maint test-settings show" to
3729 "maint show test-settings". Adjust all subcommands.
3730
d1fcf2fd
PA
37312019-07-03 Pedro Alves <palves@redhat.com>
3732
3733 * maint-test-settings.c: Fix file's intro comment. Replace all
3734 references to "test-options" with references to "test-settings",
3735 in comments.
3736
970f9d09
PA
37372019-07-03 Pedro Alves <palves@redhat.com>
3738
3739 * maint-test-settings.c (maintenance_test_settings_xxx)
3740 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3741 New.
3742 (maintenance_test_settings_enums): Use them.
3743 (maintenance_test_settings_enum): Default to
3744 maintenance_test_settings_xxx.
3745 (_initialize_maint_test_settings): Initialize
3746 MAINTENANCE_TEST_SETTINGS_FILENAME.
3747
f3869b1a
SM
37482019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3749
3750 * breakpoint.h (remove_breakpoints_inf): Change return type to
3751 void, move function documentation here.
3752 * breakpoint.c (remove_breakpoints_inf): Change return type to
3753 void, move function documentation to header.
3754
54d66006
PA
37552019-07-02 Pedro Alves <palves@redhat.com>
3756
3757 * NEWS (Completion improvements): Mention "info threads".
3758 * thread.c (struct info_threads_opts, info_threads_option_defs)
3759 (make_info_threads_options_def_group): New.
3760 (info_threads_command): Use gdb::option::process_options.
3761 (info_threads_command_completer): New.
3762 (_initialize_thread): Use gdb::option::build_help to build the
3763 help text for "info threads".
3764
854f6088
SM
37652019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3766
3767 * defs.h (generic_load): Move from here...
3768 * symfile.h (generic_load): ... to here. Rename name parameter
3769 to args.
3770 * symfile.c (generic_load): Add comment.
3771
54ee4252
TT
37722019-07-01 Tom Tromey <tromey@adacore.com>
3773
3774 * dwarf2read.c
3775 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3776 declaration of without_params. Fix formatting.
3777
65392b3e
TT
37782019-07-01 Tom Tromey <tromey@adacore.com>
3779
3780 * ada-exp.y (find_primitive_type): Update.
3781 * ada-lang.h (ada_lookup_symbol): Update.
3782 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3783 parameter.
3784 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3785
7d7571f0
SDJ
37862019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3787
3788 PR breakpoints/24541
3789 * gdbarch.c: Regenerate.
3790 * gdbarch.h: Regenerate.
3791 * gdbarch.sh: Add 'stap_adjust_register'.
3792 * i386-tdep.c: Include '<unordered_set>'.
3793 (i386_stap_adjust_register): New function.
3794 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3795 * stap-probe.c (stap_parse_register_operand): Call
3796 'gdbarch_stap_adjust_register'.
3797
5af5392a
SDJ
37982019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3799
3800 PR python/24742
3801 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3802 * python/python.c (do_start_initialization): Use 'xmalloc'
3803 instead of 'PyMem_Malloc'.
3804
10d06d82
TT
38052019-06-28 Tom Tromey <tromey@adacore.com>
3806
3807 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3808 for Ada.
3809
1b7f24cd
TT
38102019-06-27 Tom Tromey <tromey@adacore.com>
3811
3812 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3813 objfile_key.
3814 (arm_find_mapping_symbol, arm_record_special_symbol)
3815 (_initialize_arm_tdep): Update.
3816 (arm_objfile_data_free): Remove.
3817
3d507ff2
TT
38182019-06-27 Tom Tromey <tromey@adacore.com>
3819
3820 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3821 to cp_print_static_field.
3822
762c164d
TT
38232019-06-26 Tom Tromey <tromey@adacore.com>
3824
3825 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3826 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3827 declare.
3828
aa2f9bcf
AH
38292019-06-26 Alan Hayward <alan.hayward@arm.com>
3830
3831 * features/aarch64-core.c (create_feature_aarch64_core):
3832 Regenerate.
3833 * features/aarch64-core.xml: Add cpsr flags.
3834
3426ae57
AH
38352019-06-26 Alan Hayward <alan.hayward@arm.com>
3836
3837 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3838 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3839
4838e44c
SM
38402019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3841
3842 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3843 field.
3844 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3845 use.
3846 (arm_record_special_symbol): Don't insert new symbol in sorted
3847 position, push it at the end.
3848
54cc7474
SM
38492019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3850
3851 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3852 (arm_mapping_symbol_s): Remove.
3853 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3854 (arm_mapping_symbol_vec): New typedef.
3855 (struct arm_per_objfile): Add constructor.
3856 <section_maps>: Change type to
3857 std::unique_ptr<arm_mapping_symbol_vec[]>.
3858 (arm_compare_mapping_symbols): Remove.
3859 (arm_find_mapping_symbol): Adjust to section_maps type change.
3860 (arm_objfile_data_free): Call delete on arm_per_objfile.
3861 (arm_record_special_symbol): Adjust to section_maps type change.
3862 Allocate arm_per_objfile with new.
3863
b65b566c
PW
38642019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3865
3866 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3867 with the command prefix.
3868
c2fc64f5
TT
38692019-06-25 Tom Tromey <tom@tromey.com>
3870
3871 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3872 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3873
fb54fa76
TT
38742019-06-25 Tom Tromey <tom@tromey.com>
3875
3876 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3877 type.
3878 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3879 protected.
3880
f7952c57
TT
38812019-06-25 Tom Tromey <tom@tromey.com>
3882
3883 * tui/tui-winsource.c
3884 (tui_source_window_base::set_is_exec_point_at): Add check against
3885 LOA_ADDRESS.
3886
17568d78
TT
38872019-06-25 Tom Tromey <tom@tromey.com>
3888
3889 * tui/tui-source.c (tui_set_source_content): Don't check before
3890 xfree.
3891 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3892
53e7cdba
TT
38932019-06-25 Tom Tromey <tom@tromey.com>
3894
3895 * tui/tui-winsource.h (tui_update_source_window_as_is)
3896 (tui_alloc_source_buffer, tui_line_is_displayed)
3897 (tui_addr_is_displayed): Change type of win_info.
3898 * tui/tui-winsource.c (tui_update_source_window_as_is)
3899 (tui_clear_source_content, tui_show_source_line)
3900 (tui_show_source_content, tui_source_window_base::refill)
3901 (tui_source_window_base::set_is_exec_point_at)
3902 (tui_source_window_base::set_is_exec_point_at)
3903 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3904 (tui_alloc_source_buffer, tui_line_is_displayed)
3905 (tui_addr_is_displayed): Change type of win_info. Update.
3906 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3907 (tui_source_window_base::do_make_visible_with_new_height):
3908 Update.
3909 * tui/tui-source.c (tui_set_source_content)
3910 (tui_set_source_content_nil)
3911 (tui_source_window::do_scroll_vertical): Update.
3912 * tui/tui-layout.c (show_layout): Update.
3913 * tui/tui-disasm.c (tui_set_disassem_content)
3914 (tui_disasm_window::do_scroll_vertical): Update.
3915 * tui/tui-data.h (tui_win_content): Remove.
3916 (struct tui_gen_win_info) <content, content_size>: Remove.
3917 (struct tui_source_element): Add initializers and destructor.
3918 (union tui_which_element, struct tui_win_element): Remove.
3919 (struct tui_source_window_base) <content>: New field.
3920 (struct tui_data_window): Remove destructor.
3921 (tui_alloc_content, tui_free_win_content)
3922 (tui_free_all_source_wins_content): Don't declare.
3923 * tui/tui-data.c (tui_initialize_static_data): Update.
3924 (init_content_element, tui_alloc_content): Remove.
3925 (~tui_gen_win_info): Update.
3926 (~tui_data_window, tui_free_all_source_wins_content)
3927 (tui_free_win_content, free_content, free_content_elements):
3928 Remove.
3929
7908abbf
TT
39302019-06-25 Tom Tromey <tom@tromey.com>
3931
3932 * tui/tui-winsource.h (tui_clear_source_content)
3933 (tui_erase_source_content, tui_show_source_content): Change type
3934 of win_info.
3935 * tui/tui-winsource.c (tui_clear_source_content)
3936 (tui_erase_source_content, tui_show_source_content): Change type
3937 of win_info.
3938 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3939 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3940 win_info.
3941 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3942 win_info.
3943 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3944
02c28df0
TT
39452019-06-25 Tom Tromey <tom@tromey.com>
3946
3947 * tui/tui-winsource.c (tui_clear_source_content)
3948 (tui_source_window_base::set_is_exec_point_at): Update.
3949 * tui/tui-source.c (tui_set_source_content_nil): Update.
3950 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3951 a bool.
3952 * tui/tui-data.c (init_content_element): Update.
3953
6658b1bf
TT
39542019-06-25 Tom Tromey <tom@tromey.com>
3955
3956 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3957 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3958 * tui/tui-layout.c (init_and_make_win): Update.
3959 * tui/tui.h (enum tui_win_type): Update.
3960 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3961 tui_win_is_auxillary.
3962 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3963 tui_win_is_auxillary.
3964
21e1c91e
TT
39652019-06-25 Tom Tromey <tom@tromey.com>
3966
3967 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3968 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3969 (tui_delete_data_content_windows, tui_display_all_data)
3970 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3971 Update.
3972 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3973 * tui/tui-regs.c (tui_last_regs_line_no)
3974 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3975 (tui_show_registers): Update.
3976 (tui_show_register_group): Return void. Update.
3977 (tui_display_registers_from, tui_display_reg_element_at_line)
3978 (tui_display_registers_from_line, tui_check_register_values):
3979 Update.
3980 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3981 member.
3982 (struct tui_data_window) <regs_content>: Now a std::vector.
3983 <regs_content_count>: Remove.
3984 (tui_add_content_elements, tui_free_data_content): Don't declare.
3985 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3986 (init_content_element): Remove DATA_WIN case. Add assert.
3987 (tui_add_content_elements): Remove.
3988 (tui_data_window): Update.
3989 (tui_free_data_content): Remove.
3990 (free_content_elements): Remove DATA_WIN case.
3991
115ac53b
TT
39922019-06-25 Tom Tromey <tom@tromey.com>
3993
3994 * tui/tui-data.c (tui_data_item_window): Update.
3995 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3996 * tui/tui-windata.c (tui_display_all_data)
3997 (tui_display_data_from_line): Update.
3998 (tui_check_data_values): Remove.
3999 * tui/tui-regs.c (tui_show_register_group)
4000 (tui_display_reg_element_at_line): Update.
4001 * tui/tui-hooks.c (tui_register_changed)
4002 (tui_refresh_frame_and_register_information): Call
4003 tui_check_register_values.
4004 * tui/tui-data.h (struct tui_data_window) <data_content,
4005 data_content_count, data_type>: Remove.
4006 (enum tui_data_type): Remove.
4007
4008 * tui/tui-data.c (tui_data_window::clear_detail)
4009 (~tui_data_window): Update.
4010
eaf9738b
TT
40112019-06-25 Tom Tromey <tom@tromey.com>
4012
4013 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4014 declare.
4015 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4016 Rename from tui_first_data_item_displayed. Update.
4017 (tui_data_window::refresh_all)
4018 (tui_data_window::do_scroll_vertical): Update.
4019 * tui/tui-data.h (struct tui_data_window)
4020 <first_data_item_displayed>: Declare new method.
4021
31ca4723
TT
40222019-06-25 Tom Tromey <tom@tromey.com>
4023
4024 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4025 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4026 contents...
4027 (tui_initialize_static_data): ...here.
4028
41bcff7f
TT
40292019-06-25 Tom Tromey <tom@tromey.com>
4030
4031 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4032 (tui_display_registers_from, tui_check_register_values): Update.
4033 (tui_display_register): Remove win_info parameter; update.
4034 (tui_get_register): Change type of parameters.
4035 * tui/tui-data.h (struct tui_data_element): Remove.
4036 (union tui_which_element) <data>: Remove.
4037 <data_window>: Change type.
4038 (struct tui_data_item_window): New.
4039 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4040 case. Add assert.
4041 (~tui_data_item_window): New destructor.
4042 (free_content_elements): Remove DATA_ITEM_WIN case.
4043
d2802c33
TT
40442019-06-25 Tom Tromey <tom@tromey.com>
4045
4046 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4047 Remove.
4048
dd835f8b
TT
40492019-06-25 Tom Tromey <tom@tromey.com>
4050
4051 * tui/tui-data.h (struct tui_command_element): Remove.
4052 (union tui_which_element) <command>: Remove.
4053 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4054 assert.
4055 (free_content_elements): Remove CMD_WIN case.
4056
bd7db367
TT
40572019-06-25 Tom Tromey <tom@tromey.com>
4058
4059 * tui/tui-layout.c (tui_set_layout): Update.
4060 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4061 * tui/tui-data.c (layout_def): Update.
4062
3add462f
TT
40632019-06-25 Tom Tromey <tom@tromey.com>
4064
4065 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4066 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4067 (tui_source_window_base::set_new_height): Update.
4068 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4069 Update.
4070 (tui_set_locator_fullname, tui_set_locator_info)
4071 (tui_show_frame_info): Update.
4072 * tui/tui-source.c (tui_set_source_content)
4073 (tui_source_is_displayed): Update.
4074 * tui/tui-layout.c (show_source_disasm_command, show_data)
4075 (show_source_or_disasm_and_command): Update.
4076 * tui/tui-disasm.c (tui_set_disassem_content)
4077 (tui_get_begin_asm_address): Update.
4078 * tui/tui-data.h (struct tui_locator_element): Remove.
4079 (union tui_which_element) <locator>: Remove.
4080 (struct tui_locator_window): New.
4081 (tui_locator_win_info_ptr): Change return type.
4082 * tui/tui-data.c (_locator): Change type.
4083 (tui_locator_win_info_ptr): Change return type.
4084 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4085 (tui_alloc_content): Add assert.
4086
489e9d8b
TT
40872019-06-25 Tom Tromey <tom@tromey.com>
4088
4089 * tui/tui-winsource.c
4090 (tui_exec_info_window::maybe_allocate_content): New method.
4091 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4092 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4093 (make_source_or_disasm_window): Add cast.
4094 * tui/tui-data.h (union tui_which_element) <simple_string>:
4095 Remove.
4096 (struct tui_source_info): New.
4097 (struct tui_source_window_base) <execution_info>: Change type.
4098 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4099 case, and add assert.
4100 (tui_alloc_content): Add assert.
4101
c3fabb7d
TT
41022019-06-25 Tom Tromey <tom@tromey.com>
4103
4104 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4105 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4106 * tui/tui-data.c (tui_alloc_win_info): Remove.
4107
bbc228ee
TT
41082019-06-25 Tom Tromey <tom@tromey.com>
4109
4110 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4111 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4112 can_highlight.
4113
5fcee43a
TT
41142019-06-25 Tom Tromey <tom@tromey.com>
4115
4116 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4117 make_visible_with_new_height method.
4118 (tui_win_info::make_visible_with_new_height): New method.
4119 (tui_source_window_base::do_make_visible_with_new_height)
4120 (tui_data_window::do_make_visible_with_new_height)
4121 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4122 (make_visible_with_new_height): Remove.
4123 (tui_resize_all, tui_adjust_win_heights): Use
4124 make_visible_with_new_height method.
4125 * tui/tui-data.h (struct tui_win_info)
4126 <do_make_visible_with_new_height, make_visible_with_new_height>:
4127 New methods.
4128 (struct tui_source_window_base, struct tui_data_window)
4129 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4130 methods.
4131
d83f1fe6
TT
41322019-06-25 Tom Tromey <tom@tromey.com>
4133
4134 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4135 method.
4136 (update_tab_width): Call update_tab_width method.
4137 * tui/tui-data.h (struct tui_win_info)
4138 (struct tui_source_window_base) <update_tab_width>: New methods.
4139
17374de4
TT
41402019-06-25 Tom Tromey <tom@tromey.com>
4141
4142 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4143 parameter.
4144 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4145 parameter.
4146 (tui_gen_win_info::make_visible): Update.
4147 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4148 parameter.
4149 * tui/tui-data.h (enum tui_box): New enum.
4150 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4151
f936bca2
TT
41522019-06-25 Tom Tromey <tom@tromey.com>
4153
4154 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4155 init_and_make_win for EXEC_INFO_WIN.
4156 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4157 longer inline.
4158 (struct tui_win_info) <~tui_win_info>: Inline.
4159 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4160 Don't declare.
4161 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4162 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4163 Remove.
4164 (tui_initialize_static_data): Update.
4165 (~tui_gen_win_info): Handle more cleanup here.
4166 (~tui_source_window_base): Delete "execution_info".
4167 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4168
d6ba6a11
TT
41692019-06-25 Tom Tromey <tom@tromey.com>
4170
4171 * tui/tui-layout.c (make_command_window): Don't set
4172 can_highlight.
4173 (show_source_disasm_command): Call the reset method.
4174 (show_data): Don't set can_highlight. Call the reset method.
4175 (tui_gen_win_info::reset): Rename from init_gen_win_info
4176 (init_and_make_win): Simplify. Return tui_gen_win_info.
4177 (show_source_or_disasm_and_command): Call the reset method.
4178 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4179 (struct tui_cmd_window): Set can_highlight.
4180
48a3bd16
TT
41812019-06-25 Tom Tromey <tom@tromey.com>
4182
4183 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4184 from make_visible.
4185 (tui_make_visible, tui_make_invisible): Rewrite.
4186 (tui_win_info::make_visible): Remove.
4187 (tui_source_window_base::make_visible): Update.
4188 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4189 method. Moved from...
4190 (struct tui_win_info) <make_visible>: ...here.
4191
c3bd716f
TT
41922019-06-25 Tom Tromey <tom@tromey.com>
4193
4194 * tui/tui-winsource.c
4195 (tui_source_window_base::do_scroll_horizontal): Remove direction
4196 parameter.
4197 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4198 direction parameter.
4199 * tui/tui-win.c (tui_win_info::forward_scroll)
4200 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4201 (tui_win_info::right_scroll): Update.
4202 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4203 direction parameter.
4204 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4205 direction parameter.
4206 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4207 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4208 Remove direction parameter.
4209 (struct tui_source_window_base, struct tui_source_window)
4210 (struct tui_disasm_window, struct tui_data_window)
4211 (struct tui_cmd_window): Update.
4212
21c32dca
TT
42132019-06-25 Tom Tromey <tom@tromey.com>
4214
4215 * tui/tui-winsource.h (tui_set_exec_info_content)
4216 (tui_show_exec_info_content, tui_erase_exec_info_content)
4217 (tui_clear_exec_info_content, tui_update_exec_info): Change
4218 argument to tui_source_window_base.
4219 * tui/tui-winsource.c (tui_set_exec_info_content)
4220 (tui_show_exec_info_content, tui_erase_exec_info_content)
4221 (tui_clear_exec_info_content, tui_update_exec_info): Change
4222 argument to tui_source_window_base.
4223
73fbdc65
TT
42242019-06-25 Tom Tromey <tom@tromey.com>
4225
4226 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4227 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4228
33325343
TT
42292019-06-25 Tom Tromey <tom@tromey.com>
4230
4231 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4232 check.
4233
29d2c474
TT
42342019-06-25 Tom Tromey <tom@tromey.com>
4235
4236 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4237 type to void.
4238 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4239 type to void.
4240 * tui/tui-source.c (tui_set_source_content): Update.
4241 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4242
152f3f4b
TT
42432019-06-25 Tom Tromey <tom@tromey.com>
4244
4245 * tui/tui-win.c (window_name_completer, tui_set_focus)
4246 (tui_all_windows_info): Use name method.
4247 * tui/tui-data.h (struct tui_gen_win_info)
4248 (struct tui_source_window, struct tui_disasm_window)
4249 (struct tui_data_window, struct tui_cmd_window) <name>: New
4250 method.
4251 (tui_win_name): Don't declare.
4252 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4253 (tui_win_name): Remove.
4254
be4da588
TT
42552019-06-25 Tom Tromey <tom@tromey.com>
4256
4257 * tui/tui-winsource.h (tui_update_source_window)
4258 (tui_update_source_window_as_is): Change parameter type.
4259 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4260 to be a tui_source_window_base.
4261 (tui_update_source_window_as_is): Likewise.
4262 * tui/tui-win.c (make_visible_with_new_height): Update.
4263
5b81daba
TT
42642019-06-25 Tom Tromey <tom@tromey.com>
4265
4266 * tui/tui-winsource.c (tui_erase_source_content)
4267 (tui_show_source_content, tui_show_exec_info_content)
4268 (tui_erase_exec_info_content): Use refresh_window method.
4269 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4270 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4271 from tui_refresh_win.
4272 (tui_data_window::refresh_window): New method.
4273 (tui_win_info::refresh, tui_source_window_base::refresh)
4274 (tui_refresh_all): Use refresh_window method.
4275 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4276 method.
4277 * tui/tui-regs.c (tui_display_register): Call refresh_window
4278 method.
4279 * tui/tui-layout.c (show_source_disasm_command)
4280 (show_source_or_disasm_and_command): Call refresh_window method.
4281 * tui/tui-data.h (struct tui_gen_win_info)
4282 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4283 New method.
4284
cb2ce893
TT
42852019-06-25 Tom Tromey <tom@tromey.com>
4286
4287 * tui/tui.c (tui_rl_other_window, tui_enable)
4288 (tui_is_window_visible, tui_get_command_dimension): Update.
4289 * tui/tui-winsource.c (tui_update_source_window_as_is)
4290 (tui_clear_source_content, tui_erase_source_content)
4291 (tui_show_source_line, tui_source_window_base::refill)
4292 (tui_source_window_base::do_scroll_horizontal)
4293 (tui_source_window_base::set_is_exec_point_at)
4294 (tui_update_breakpoint_info, tui_set_exec_info_content)
4295 (tui_alloc_source_buffer, tui_line_is_displayed)
4296 (tui_addr_is_displayed): Update.
4297 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4298 (tui_check_and_display_highlight_if_needed)
4299 (tui_win_info::make_visible, tui_win_info::refresh)
4300 (tui_refresh_all): Update.
4301 * tui/tui-windata.c (tui_first_data_item_displayed)
4302 (tui_delete_data_content_windows, tui_erase_data_content)
4303 (tui_display_all_data, tui_data_window::refresh_all)
4304 (tui_check_data_values): Update.
4305 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4306 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4307 (tui_win_info::backward_scroll, tui_refresh_all_win)
4308 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4309 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4310 (tui_source_window_base::set_new_height)
4311 (tui_data_window::set_new_height)
4312 (make_invisible_and_set_new_height)
4313 (make_visible_with_new_height, new_height_ok)
4314 (parse_scrolling_args): Update.
4315 * tui/tui-stack.c (tui_show_frame_info): Update.
4316 * tui/tui-source.c (tui_set_source_content)
4317 (tui_set_source_content_nil, tui_source_is_displayed)
4318 (tui_source_window::do_scroll_vertical): Update.
4319 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4320 (tui_display_registers_from, tui_display_reg_element_at_line)
4321 (tui_check_register_values, tui_reg_command): Update.
4322 * tui/tui-layout.c (tui_default_win_height)
4323 (show_source_disasm_command, show_data, init_and_make_win)
4324 (show_source_or_disasm_and_command): Update.
4325 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4326 (tui_redisplay_readline, tui_mld_flush)
4327 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4328 (tui_getc): Update.
4329 * tui/tui-disasm.c (tui_set_disassem_content)
4330 (tui_disasm_window::do_scroll_vertical): Update.
4331 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4332 Now virtual.
4333 (struct tui_win_info): Derive from tui_gen_win_info.
4334 <~tui_win_info>: Mark as override.
4335 <generic>: Remove member.
4336 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4337 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4338 (~tui_data_window, ~tui_win_info)
4339 (tui_free_all_source_wins_content): Update.
4340 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4341
ab313b35
TT
43422019-06-25 Tom Tromey <tom@tromey.com>
4343
4344 * tui/tui-layout.c (init_and_make_win): Use new.
4345 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4346 destructor, initializers.
4347 (tui_alloc_generic_win_info): Don't declare.
4348 * tui/tui-data.c (_locator): Add argument to constructor.
4349 (source_win, disasm_win): New globals.
4350 (exec_info): Remove.
4351 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4352 Update.
4353 (tui_alloc_generic_win_info): Remove.
4354 (init_content_element): Use new.
4355 (tui_win_info::tui_win_info): Update.
4356 (free_content_elements) <case DATA_WIN>: Use delete.
4357
dc2c33e4
TT
43582019-06-25 Tom Tromey <tom@tromey.com>
4359
4360 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4361 * tui/tui-windata.c (tui_first_data_item_displayed)
4362 (tui_delete_data_content_windows): Update.
4363 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4364 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4365 (tui_display_registers_from, tui_check_register_values): Update.
4366 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4367 pointer.
4368 * tui/tui-data.c (init_content_element): Update. Allocate the new
4369 window.
4370 (tui_free_data_content): Update.
4371 (free_content_elements) <case DATA_WIN>: Free the window.
4372
214a5cbe
TT
43732019-06-25 Tom Tromey <tom@tromey.com>
4374
4375 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4376 Update.
4377 * tui/tui-layout.c (make_command_window)
4378 (show_source_disasm_command, show_data, init_and_make_win)
4379 (show_source_or_disasm_and_command): Update.
4380 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4381 method.
4382 <can_highight, is_highlighted>: Now bool.
4383 (tui_set_win_highlight): Don't declare.
4384 * tui/tui-data.c (tui_set_win_highlight): Remove.
4385
8e2daf15
TT
43862019-06-25 Tom Tromey <tom@tromey.com>
4387
4388 * tui/tui-wingeneral.c (make_visible): Remove check of window
4389 type.
4390
8903bd8a
TT
43912019-06-25 Tom Tromey <tom@tromey.com>
4392
4393 * tui/tui-win.c (tui_win_info::max_height)
4394 (tui_cmd_window::max_height): New methods.
4395 (new_height_ok): Call max_height.
4396 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4397 <max_height>: New method.
4398
3f02ce1e
TT
43992019-06-25 Tom Tromey <tom@tromey.com>
4400
4401 * tui/tui-win.c (tui_source_window_base::set_new_height)
4402 (tui_data_window::set_new_height): New methods.
4403 (make_invisible_and_set_new_height): Call set_new_height method.
4404 * tui/tui-data.h (struct tui_win_info)
4405 (struct tui_source_window_base, struct tui_data_window)
4406 <set_new_height>: New method.
4407
1825f487
TT
44082019-06-25 Tom Tromey <tom@tromey.com>
4409
4410 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4411 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4412 tui_refresh_data_win.
4413 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4414 method.
4415 (tui_refresh_all_win): Call the refresh_all method.
4416 (tui_set_focus): Likewise.
4417 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4418 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4419 Likewise.
4420
ad54d15b
TT
44212019-06-25 Tom Tromey <tom@tromey.com>
4422
4423 * tui/tui-winsource.h (tui_refill_source_window)
4424 (tui_set_is_exec_point_at): Don't declare.
4425 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4426 (tui_source_window_base::refill): Rename from
4427 tui_refill_source_window.
4428 (tui_source_window_base::do_scroll_horizontal): Update.
4429 (tui_source_window_base::set_is_exec_point_at): Rename from
4430 tui_set_is_exec_point_at.
4431 (tui_update_all_breakpoint_info): Update.
4432 * tui/tui-stack.c (tui_show_frame_info): Update.
4433 * tui/tui-layout.c (show_data): Add cast.
4434 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4435 * tui/tui-data.h (struct tui_source_window_base) <refill,
4436 set_is_exec_point_at>: New methods.
4437 (tui_source_windows, tui_add_to_source_windows): Update types.
4438 (tui_add_to_source_windows): Remove redundant declaration.
4439 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4440 (tui_source_windows): Change return type.
4441 (tui_clear_source_windows_detail): Update.
4442 (tui_add_to_source_windows): Change type of parameter.
4443 (tui_free_all_source_wins_content): Update.
4444
2042b506
TT
44452019-06-25 Tom Tromey <tom@tromey.com>
4446
4447 * tui/tui-wingeneral.c (tui_win_info::refresh)
4448 (tui_source_window_base::refresh): New methods.
4449 (tui_refresh_all): Call the refresh method.
4450 * tui/tui-data.h (struct tui_win_info)
4451 (struct tui_source_window_base) <refresh>: New method.
4452
56122977
TT
44532019-06-25 Tom Tromey <tom@tromey.com>
4454
4455 * tui/tui.h (tui_is_window_visible): Return bool.
4456 * tui/tui.c (tui_is_window_visible): Return bool.
4457 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4458 (tui_make_visible, tui_make_invisible)
4459 (tui_win_info::make_visible)
4460 (tui_source_window_base::make_visible, make_all_visible)
4461 (tui_make_all_visible, tui_make_all_invisible): Update.
4462 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4463 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4464 bool.
4465 (struct tui_win_info, struct tui_source_window_base)
4466 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4467 * tui/tui-data.c (tui_init_generic_part): Update.
4468
cda37efb
TT
44692019-06-25 Tom Tromey <tom@tromey.com>
4470
4471 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4472 (tui_source_window_base::make_visible): New methods.
4473 (make_all_visible): Make method call.
4474 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4475 (struct tui_source_window_base, struct tui_cmd_window): Override
4476 make_visible.
4477 (tui_win_is_source_type): Don't declare.
4478 * tui/tui-data.c (tui_win_is_source_type): Remove.
4479
6a0ee02c
TT
44802019-06-25 Tom Tromey <tom@tromey.com>
4481
4482 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4483 NULL check.
4484
63901aec
TT
44852019-06-25 Tom Tromey <tom@tromey.com>
4486
4487 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4488 Inline constructor. Add initializers for members.
4489 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4490 constructors; now inline in class.
4491
ceb13a13
TT
44922019-06-25 Tom Tromey <tom@tromey.com>
4493
4494 * tui/tui-regs.c (tui_show_registers): Update.
4495 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4496 bool.
4497 * tui/tui-data.c (tui_data_window::clear_detail)
4498 (tui_data_window): Update.
4499
238eb706
TT
45002019-06-25 Tom Tromey <tom@tromey.com>
4501
4502 * tui/tui-windata.c (tui_display_all_data)
4503 (tui_display_data_from_line, tui_display_data_from)
4504 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4505 Update.
4506 * tui/tui-regs.c (tui_last_regs_line_no)
4507 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4508 (tui_show_registers, tui_show_register_group)
4509 (tui_display_registers_from, tui_display_reg_element_at_line)
4510 (tui_display_registers_from_line, tui_check_register_values)
4511 (tui_reg_next, tui_reg_prev): Update.
4512 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4513 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4514 tui_data_window.
4515 (struct tui_win_info) <detail>: Remove. Add new fields from
4516 tui_data_info.
4517 (TUI_DATA_WIN): Add cast.
4518 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4519 (~tui_data_window): Simplify.
4520
81491aa0
TT
45212019-06-25 Tom Tromey <tom@tromey.com>
4522
4523 * tui/tui-layout.c (show_source_disasm_command)
4524 (show_source_or_disasm_and_command): Update.
4525 * tui/tui-io.c (update_cmdwin_start_line)
4526 (tui_redisplay_readline): Update.
4527 * tui/tui-data.h (struct tui_command_info): Remove.
4528 (struct tui_win_info) <detail>: Remove command_info member.
4529 (struct tui_data_window) <start_line>: New member, from
4530 tui_command_info.
4531 (TUI_CMD_WIN): Add casts.
4532
e6e41501
TT
45332019-06-25 Tom Tromey <tom@tromey.com>
4534
4535 * tui/tui-winsource.c (tui_update_source_window)
4536 (tui_refill_source_window)
4537 (tui_source_window_base::do_scroll_horizontal)
4538 (tui_update_breakpoint_info, tui_set_exec_info_content)
4539 (tui_show_exec_info_content, tui_erase_exec_info_content)
4540 (tui_clear_exec_info_content): Update.
4541 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4542 Update.
4543 * tui/tui-win.c (make_invisible_and_set_new_height)
4544 (make_visible_with_new_height): Update.
4545 * tui/tui-source.c (tui_set_source_content)
4546 (tui_show_symtab_source): Update.
4547 * tui/tui-layout.c (extract_display_start_addr)
4548 (show_source_disasm_command, show_data)
4549 (make_source_or_disasm_window)
4550 (show_source_or_disasm_and_command): Update.
4551 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4552 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4553 "gdbarch".
4554 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4555 to tui_source_window_base.
4556 (struct tui_win_info) <detail>: Remove source_info member.
4557 (struct tui_source_window_base) <has_locator>: Inline.
4558 Move contents from tui_source_info; rename has_locator member to
4559 m_has_locator.
4560 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4561 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4562 header file.
4563 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4564 Simplify.
4565 (tui_free_all_source_wins_content): Cast to
4566 tui_source_window_base.
4567
44f0e208
TT
45682019-06-25 Tom Tromey <tom@tromey.com>
4569
4570 * tui/tui-win.c (make_invisible_and_set_new_height)
4571 (make_visible_with_new_height): Call has_locator method.
4572 * tui/tui-layout.c (show_source_disasm_command, show_data)
4573 (show_source_or_disasm_and_command): Update for bool change.
4574 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4575 (tui_win_info) <has_locator>: New method.
4576 (struct tui_source_window_base) <has_locator>: New method.
4577 (tui_win_has_locator): Don't declare.
4578 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4579 from tui_win_has_locator.
4580 (tui_source_window_base): Use false, not FALSE.
4581
7778b912
TT
45822019-06-25 Tom Tromey <tom@tromey.com>
4583
4584 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4585 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4586 clear_detail method directly.
4587 (tui_clear_win_detail): Remove.
4588
f83d391c
TT
45892019-06-25 Tom Tromey <tom@tromey.com>
4590
4591 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4592 "this", not TUI_DISASM_WIN.
4593
13446e05
TT
45942019-06-25 Tom Tromey <tom@tromey.com>
4595
4596 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4597 declare.
4598 * tui/tui-winsource.c
4599 (tui_source_window_base::do_scroll_horizontal): Rename from
4600 tui_horizontal_source_scroll.
4601 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4602 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4603 from tui_vertical_data_scroll.
4604 * tui/tui-win.h (tui_scroll): Don't declare.
4605 * tui/tui-win.c (tui_win_info::forward_scroll)
4606 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4607 (tui_win_info::right_scroll): Rename and update.
4608 (tui_scroll_forward_command, tui_scroll_backward_command)
4609 (tui_scroll_left_command, tui_scroll_right_command): Update.
4610 (tui_scroll): Remove.
4611 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4612 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4613 from tui_vertical_source_scroll.
4614 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4615 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4616 from tui_vertical_disassem_scroll.
4617 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4618 do_scroll_horizontal>: New methods.
4619 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4620 Likewise.
4621 (struct tui_source_window_base): Add do_scroll_horizontal.
4622 (struct tui_source_window, struct tui_disasm_window): Add
4623 do_scroll_vertical.
4624 (struct tui_data_window, struct tui_cmd_window): Add
4625 do_scroll_horizontal and do_scroll_vertical.
4626 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4627
5cf82909
TT
46282019-06-25 Tom Tromey <tom@tromey.com>
4629
4630 * tui/tui-data.h (struct tui_source_window_base): New struct.
4631 (struct tui_source_window): Derive from tui_source_window_base.
4632 (struct tui_disasm_window): New struct.
4633 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4634 from tui_source_window::clear_detail.
4635 (tui_source_window_base): Rename from tui_source_window.
4636 (~tui_source_window_base): Rename from ~tui_source_window.
4637 (tui_alloc_win_info): Create a tui_disasm_window.
4638
ee1d42d6
TT
46392019-06-25 Tom Tromey <tom@tromey.com>
4640
4641 * tui/tui-data.h (struct tui_source_window)
4642 (struct tui_data_window): Declare destructors.
4643 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4644 destructors.
4645 (tui_win_info): Simplify.
4646
b4eb2452
TT
46472019-06-25 Tom Tromey <tom@tromey.com>
4648
4649 * tui/tui-winsource.c (tui_display_main)
4650 (tui_update_source_windows_with_addr)
4651 (tui_update_all_breakpoint_info): Update.
4652 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4653 (new_height_ok, parse_scrolling_args): Update.
4654 * tui/tui-stack.c (tui_show_frame_info): Update.
4655 * tui/tui-data.h (struct tui_list): Remove.
4656 (tui_source_windows): Return a reference to a std::vector.
4657 * tui/tui-data.c (source_windows): Now a std::vector.
4658 (tui_source_windows): Change return type.
4659 (tui_clear_source_windows): Rewrite.
4660 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4661 (tui_free_all_source_wins_content): Rewrite.
4662
8761a91b
TT
46632019-06-25 Tom Tromey <tom@tromey.com>
4664
4665 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4666 (struct tui_data_window, struct tui_cmd_window): Declare
4667 clear_detail method.
4668 * tui/tui-data.c (tui_source_window::clear_detail)
4669 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4670 methods.
4671 (tui_clear_win_detail): Simplify.
4672
0ed69eda
TT
46732019-06-25 Tom Tromey <tom@tromey.com>
4674
4675 * tui/tui-layout.c (make_source_window, make_disasm_window)
4676 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4677 Return the new window.
4678 (show_source_disasm_command, show_data)
4679 (show_source_or_disasm_and_command): Update.
4680
82432e10
TT
46812019-06-25 Tom Tromey <tom@tromey.com>
4682
4683 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4684 parameter. Return the new window.
4685 (show_source_disasm_command): Update and remove NULL check.
4686 (show_source_or_disasm_and_command): Update.
4687
ec328aa5
TT
46882019-06-25 Tom Tromey <tom@tromey.com>
4689
4690 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4691
33b906ab
TT
46922019-06-25 Tom Tromey <tom@tromey.com>
4693
4694 * tui/tui-data.h (struct tui_win_info): Make constructor
4695 protected. Make destructor virtual. Add initializers.
4696 (tui_source_window, tui_data_window, tui_cmd_window): New
4697 classes.
4698 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4699 constructor. Add "type" parameter.
4700 (tui_source_window, tui_data_window, tui_cmd_window): New
4701 constructors.
4702 (tui_alloc_win_info): Instantiate the appropriate subclass.
4703
e7e11af4
TT
47042019-06-25 Tom Tromey <tom@tromey.com>
4705
4706 * tui/tui-win.c (tui_resize_all): Use delete.
4707 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4708 destructor.
4709 (tui_free_window): Don't declare.
4710 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4711 Update.
4712
6792b55e
TT
47132019-06-25 Tom Tromey <tom@tromey.com>
4714
4715 * tui/tui-data.h (struct tui_win_info): Add constructor.
4716 * tui/tui-data.c (tui_alloc_win_info): Use new.
4717 (tui_free_window): Use delete.
4718
f95675e1
TT
47192019-06-22 Tom Tromey <tom@tromey.com>
4720
4721 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4722 declare.
4723 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4724
5bff081c
TT
47252019-06-22 Tom Tromey <tom@tromey.com>
4726
4727 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4728 declare.
4729 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4730
47e3f474
TV
47312019-06-22 Tom de Vries <tdevries@suse.de>
4732
4733 * dwarf2read.c (create_addrmap_from_aranges)
4734 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4735 instead of '%zu'.
4736
fd5866f6
SM
47372019-06-21 Simon Marchi <simon.marchi@efficios.com>
4738
4739 * dwarf2read.h (dwarf2_section_info_def): Remove.
4740 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4741 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4742 std::vector<dwarf2_section_info>.
4743 (struct dwo_file) <~dwo_file>: Remove.
4744 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4745 types field.
4746 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4747 (dwarf2_read_debug_names): Likewise.
4748 (create_debug_types_hash_table): Change parameter type to
4749 array_view, adjust code accordingly.
4750 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4751 (partial_die_info::fixup): Likewise.
4752 (determine_prefix): Likewise.
4753 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4754
fb1eb2f9
SM
47552019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4756
4757 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4758 gdb_bfd_ref_ptr.
4759 <~dwo_file>: Remove call to gdb_bfd_unref.
4760 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4761 gdb_bfd_ref_ptr::get.
4762
51ac9db5
SM
47632019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4764
4765 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4766 type to htab_up.
4767 * dwarf2read.c (struct dwo_file): Initialize fields.
4768 <~dwo_file>: New.
4769 (free_dwo_file): Remove, move content to ~dwo_file.
4770 (struct dwo_file_deleter): Remove.
4771 (dwo_file_up>: Remove custom deleter.
4772 (free_dwo_files): Remove.
4773 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4774 dwo_files.
4775 (process_skeletonless_type_units): Call unique_ptr::get.
4776 (allocate_dwo_file_hash_table): Add deleter to created hash
4777 table. Change return type to htab_up.
4778 (lookup_dwo_file_slot): Don't memset dwo_file, call
4779 unique_ptr::get.
4780 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4781 (create_dwo_unit_in_dwp_v2): Likewise.
4782 (open_and_init_dwo_file): Likewise.
4783 (free_dwo_file_from_slot): Remove.
4784
dc4ccb6f
SM
47852019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4786
4787 * dwarf2read.h (struct dwarf2_section_info) <readin,
4788 is_virtual>: Change type to bool.
4789 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4790 true instead of 1.
4791
e6a1c5cb
TT
47922019-06-19 Tom Tromey <tom@tromey.com>
4793
4794 * tui/tui-data.h (tui_init_content_element): Don't declare.
4795
6f6ffbeb
TT
47962019-06-19 Tom Tromey <tom@tromey.com>
4797
4798 * tui/tui-data.h (tui_init_win_info): Don't declare.
4799
f23f598e
TV
48002019-06-19 Tom de Vries <tdevries@suse.de>
4801
4802 * dwarf2read.h (abstract_to_concrete): Change type to
4803 std::unordered_map<sect_offset, std::vector<sect_offset>,
4804 gdb::hash_enum<sect_offset>>.
4805
680e1bee
TT
48062019-06-19 Tom Tromey <tromey@adacore.com>
4807
4808 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4809 EVAL_AVOID_SIDE_EFFECTS specially.
4810
dcf37923
TT
48112019-06-19 Tom Tromey <tromey@adacore.com>
4812
4813 * source-cache.c (highlighter): New global.
4814 (source_cache::get_source_lines): Create a highlighter on demand.
4815
494986d5
AB
48162019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4817
4818 * defs.h (deprecated_interactive_hook): Delete declaration.
4819 * interps.c (clear_interpreter_hooks): Remove use of
4820 deprecated_interactive_hook.
4821 * top.c (deprecated_interactive_hook): Delete definition.
4822 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4823
3360b6e7
TV
48242019-06-18 Tom de Vries <tdevries@suse.de>
4825
4826 PR gdb/24515
4827 * dwarf2read.h (abstract_to_concrete): Change type from
4828 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4829 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4830 * dwarf2read.c (read_variable): Update.
4831 (dwarf2_fetch_die_loc_sect_off): Update.
4832
310b3441
TV
48332019-06-17 Tom de Vries <tdevries@suse.de>
4834
4835 PR gdb/24617
4836 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4837 accessing parent[parent_len - 1].
4838
ba9777be
PP
48392019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4840
4841 PR gdb/24364
4842 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4843 call dtrace_process_dof with NULL dof.
4844
2b9f6e89
TV
48452019-06-16 Tom de Vries <tdevries@suse.de>
4846
4847 PR gdb/24445
4848 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4849
431b3ead
TT
48502019-06-16 Tom Tromey <tom@tromey.com>
4851
4852 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4853 (make_all_visible): Use address of member.
4854
d04b44a1
TT
48552019-06-16 Tom Tromey <tom@tromey.com>
4856
4857 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4858 (tui_free_window, free_content, free_content_elements): Remove
4859 unnecessary cast.
4860 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4861 cast.
4862 * tui/tui-regs.c (tui_show_register_group)
4863 (tui_display_registers_from, tui_display_reg_element_at_line):
4864 Remove unnecessary cast.
4865
bf5142e7
AB
48662019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4867
4868 * linux-nat.c (normal_mask): Delete.
4869 (_initialize_linux_nat): Don't initialise normal_mask.
4870
c4973306
SM
48712019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4872
4873 PR gdb/24445
4874 * dwarf-index-write.h (write_psymtabs_to_index): Add
4875 dwz_basename parameter.
4876 * dwarf-index-write.c (write_gdbindex): Move file writing to
4877 write_gdbindex_1. Change return type void.
4878 (assert_file_size): Move up, remove filename parameter.
4879 (write_gdbindex_1): New function.
4880 (write_debug_names): Change return type to void, call
4881 assert_file_size.
4882 (struct index_wip_file): New struct.
4883 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4884 file logic to index_wip_file. Write index for dwz file if
4885 needed.
4886 (save_gdb_index_command): Pass basename of dwz file, if present.
4887 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4888 build-id of dwz file, if present.
4889 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4890 (dwarf2_get_dwz_file): Likewise.
4891 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4892 (dwarf2_get_dwz_file): Likewise.
4893
395f9c91
TT
48942019-06-16 Tom Tromey <tom@tromey.com>
4895
4896 * coffread.c (process_coff_symbol): Use xstrdup.
4897 * value.c (create_internalvar): Use xstrdup.
4898
cafb3438
TT
48992019-06-16 Tom Tromey <tom@tromey.com>
4900
4901 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4902 * breakpoint.c (stopin_command, stopat_command)
4903 (until_break_command, decode_location_default): Remove unnecessary
4904 cast.
4905 * utils.c (subset_compare): Remove unnecessary cast.
4906 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4907 cast.
4908 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4909 cast.
4910 * infcmd.c (path_command): Remove unnecessary cast.
4911 * coffread.c (decode_type): Remove unnecessary cast.
4912 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4913 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4914 * tui/tui-stack.c (tui_show_locator_content)
4915 (tui_show_frame_info): Remove unnecessary cast.
4916 * tui/tui-win.c (tui_scroll_forward_command)
4917 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4918 (parse_scrolling_args): Remove unnecessary cast.
4919 * tui/tui-data.c (init_win_info, tui_del_window)
4920 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4921 (free_content_elements): Remove unnecessary cast.
4922 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4923 unnecessary cast.
4924 * tui/tui-source.c (tui_set_source_content)
4925 (tui_vertical_source_scroll): Remove unnecessary cast.
4926 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4927 cast.
4928 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4929 * tui/tui-regs.c (tui_display_registers_from)
4930 (tui_display_register): Remove unnecessary cast.
4931 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4932 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4933 (make_visible): Remove unnecessary cast.
4934 * tui/tui-winsource.c (tui_erase_source_content)
4935 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4936 unnecessary cast.
4937 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4938 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4939 * stabsread.c (read_type, read_array_type, read_range_type):
4940 Remove unnecessary cast.
4941 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4942 (parse_symbol, parse_type, upgrade_type, parse_external)
4943 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4944 unnecessary cast.
4945 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4946
730ead81
TT
49472019-06-16 Tom Tromey <tom@tromey.com>
4948
4949 * tui/tui-data.c (tui_alloc_generic_win_info)
4950 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4951 checks.
4952
584a927c
AB
49532019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4954 Andrew Burgess <andrew.burgess@embecosm.com>
4955
4956 * f-typeprint.c (f_print_type): Don't return early for not
4957 associated or not allocated types.
4958 (f_type_print_varspec_suffix): Add print_rank parameter and print
4959 ranks of array types in case they dangling.
4960 (f_type_print_base): Add print_rank parameter.
4961
30056ea0
AB
49622019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4963
4964 * NEWS: Mention new MI commands.
4965 * break-catch-throw.c (enum exception_event_kind): Move to
4966 breakpoint.h.
4967 (print_mention_exception_catchpoint): Output text as a single
4968 message.
4969 (catch_exception_command_1): Rename to...
4970 (catch_exception_event): ...this, make non-static, update header
4971 command, and change some parameter types.
4972 (catch_catch_command): Update for changes to
4973 catch_exception_command_1.
4974 (catch_throw_command): Likewise.
4975 (catch_rethrow_command): Likewise.
4976 * breakpoint.c (enum exception_event_kind): Delete.
4977 * breakpoint.h (enum exception_event_kind): Moved here from
4978 break-catch-throw.c.
4979 (catch_exception_event): Declare.
4980 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4981 (mi_cmd_catch_throw): New function.
4982 (mi_cmd_catch_rethrow): New function.
4983 (mi_cmd_catch_catch): New function.
4984 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4985 'catch-catch' entries.
4986 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4987 (mi_cmd_catch_rethrow): Declare.
4988 (mi_cmd_catch_catch): Declare.
4989
ec8e2b6d
AB
49902019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4991
4992 * annotate.c (annotate_source_line): Change return type to void,
4993 update implementation to match.
4994 * annotate.h (annotate_source_line): Change return type to void,
4995 update header comment.
4996 * stack.c (print_frame_info): Don't change what frame information
4997 is printed based on whether annotations are on or not.
4998
0d3abd8c
AB
49992019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5000
5001 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5002 (annotate_source): Make static.
5003 (annotate_source_line): Moved from source.c and renamed from
5004 identify_source_line. Update the return type.
5005 * annotate.h (annotate_source): Delete declaration.
5006 (annotate_source_line): Declaration moved from source.h, and
5007 renamed from identify_source_line. Return type updated.
5008 * source.c (identify_source_line): Moved to annotate.c and renamed
5009 to annotate_source_line.
5010 (info_line_command): Remove check of annotation_level.
5011 * source.h (identify_source_line): Move declaration to annotate.h
5012 and rename to annotate_source_line.
5013 * stack.c: Add 'annotate.h' include.
5014 (print_frame_info): Remove check of annotation_level before
5015 calling annotate_source_line.
5016
00df30ae
AB
50172019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5018
5019 * source-cache.c (source_cache::get_plain_source_lines): Use
5020 open_source_file_with_line_charpos instead of just
5021 open_source_file, remove call to find_source_lines.
5022 (source_cache::get_source_lines): Likewise.
5023 * source.c (find_source_lines): Make static.
5024 (get_filename_and_charpos): Renamed into...
5025 (open_source_file_with_line_charpos): ..this along with changes to
5026 return a scoped_fd, and some other minor clean ups.
5027 (identify_source_line): Use open_source_file_with_line_charpos.
5028 (search_command_helper): Use open_source_file_with_line_charpos
5029 instead of just open_source_file, remove call to
5030 find_source_lines.
5031 * source.h (open_source_file_with_line_charpos): Declare new
5032 function.
5033 (find_source_lines): Delete declaration.
5034
afda45a2
AB
50352019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5036
5037 * source.c (get_filename_and_charpos): Remove fullname
5038 parameter.
5039 (identify_source_line): Update call to get_filename_and_charpos.
5040
0735b091
TT
50412019-06-14 Tom Tromey <tromey@adacore.com>
5042
5043 PR gdb/24502:
5044 * ui-style.h (skip_ansi_escape): Update comment.
5045 * ui-file.h (class no_terminal_escape_file): New class.
5046 * ui-file.c (no_terminal_escape_file::write)
5047 (no_terminal_escape_file::puts): New methods.
5048 * cli/cli-logging.c (handle_redirections): Use
5049 no_terminal_escape_file.
5050
52ce35e2
TT
50512019-06-14 Tom Tromey <tromey@adacore.com>
5052
5053 * NEWS: Move convenience variable news above Python news.
5054
73cc7272
TT
50552019-06-14 Tom Tromey <tom@tromey.com>
5056
5057 * gnulib: Move directory to top-level.
5058 * configure.ac: Don't configure gnulib.
5059 * configure: Rebuild.
5060 * common/common-defs.h: Use new path to gnulib.
5061 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5062 (GNULIB_H): Remove.
5063 (INCGNU): Look in new gnulib location.
5064 (HFILES_NO_SRCDIR): Remove gnulib files.
5065 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5066 (generated_files): Remove GNULIB_H.
5067 ($(LIBGNU), all-lib): Remove targets.
5068 (distclean): Don't mention GNULIB_BUILDDIR.
5069 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5070
f5686554
TT
50712019-06-14 Tom Tromey <tromey@adacore.com>
5072
5073 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5074 Warn if symbol file does not provide any symbols.
5075
a0c1ffed
TT
50762019-06-14 Tom Tromey <tromey@adacore.com>
5077
5078 * source.c (find_and_open_source): Respect basenames_may_differ.
5079
7c39e397
AB
50802019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5081
5082 * annotate.c (annotate_breakpoints_invalid): Make use of
5083 scoped_restore_terminal_state.
5084 (annotate_frames_invalid): Likewise.
5085
f411722c
TT
50862019-06-14 Tom Tromey <tromey@adacore.com>
5087
5088 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5089 allow assignment to an internalvar.
5090
4268ec18
TT
50912019-06-14 Tom Tromey <tromey@adacore.com>
5092
5093 * ada-lex.l: Allow "_" in attribute names.
5094
abdb711e
TT
50952019-06-14 Tom Tromey <tromey@adacore.com>
5096
5097 PR gdb/24653:
5098 * regcache.c (registers_changed): Don't call alloca.
5099 * top.c (execute_command): Don't call alloca.
5100
4c048731
PA
51012019-06-13 Pedro Alves <palves@redhat.com>
5102
5103 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5104 'expression'. When parsing an expression, error out if there's
5105 junk after "unlimited".
5106 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5107 (do_set_command): Adjust calls to is_unlimited_literal.
5108
66eb1ed3
PA
51092019-06-13 Pedro Alves <palves@redhat.com>
5110
5111 * compile/compile.c (make_compile_options_def_group): Add braces
5112 around array_view initializer.
5113 * thread.c (make_thread_apply_all_options_def_group)
5114 (make_thread_apply_all_options_def_group): Likewise.
5115
3345721a
PA
51162019-06-13 Pedro Alves <palves@redhat.com>
5117
5118 * NEWS (New commands): Mention "maint test-options
5119 require-delimiter", "maint test-options unknown-is-error", "maint
5120 test-options unknown-is-operand" and "maint show
5121 test-options-completion-result".
5122 (New command options, command completion): New section.
5123 (Completion improvements): New section.
5124 Mention that you can abbreviate "unlimited".
5125
6206060d
PA
51262019-06-13 Pedro Alves <palves@redhat.com>
5127
5128 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5129 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5130 * unittests/cli-utils-selftests.c (test_parse_flags)
5131 (test_parse_flags_qcs): Delete.
5132 (test_cli_utils): Don't call deleted functions.
5133
6665660a
PA
51342019-06-13 Pedro Alves <palves@redhat.com>
5135
5136 * thread.c: Include "cli/cli-option.h".
5137 (tp_array_compar_ascending): Global.
5138 (tp_array_compar): Delete function.
5139 (tp_array_compar_ascending, tp_array_compar_descending): New
5140 functions.
5141 (ascending_option_def, qcs_flag_option_def)
5142 (thr_qcs_flags_option_defs)
5143 (make_thread_apply_all_options_def_group)
5144 (make_thread_apply_options_def_group): New.
5145 (thread_apply_all_command): Use gdb::option::process_options.
5146 (thread_apply_command_completer)
5147 (thread_apply_all_command_completer): New.
5148 (thread_apply_command): Use gdb::option::process_options.
5149 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5150 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5151 to generate help text of "thread apply". Adjust "taas"'s help.
5152 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5153 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5154
f7e13587
PA
51552019-06-13 Pedro Alves <palves@redhat.com>
5156
5157 * thread.c (thread_apply_command): Check for invalid TID with
5158 isdigit instead of !isalpha.
5159
5d707134
PA
51602019-06-13 Pedro Alves <palves@redhat.com>
5161
5162 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5163 (validate_flags_qcs): New.
5164 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5165 (validate_flags_qcs): Declare.
5166 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5167 (make_frame_apply_options_def_group): New.
5168 (frame_apply_command_count): Process options with
5169 gdb::option::process_options.
5170 (frame_apply_completer): New.
5171 (frame_apply_level_completer, frame_apply_all_completer)
5172 (frame_apply_completer): New.
5173 (_initialize_stack): Update help of "frame apply", "frame apply
5174 level", "frame apply all" and "faas" to mention supported options
5175 and install command completers.
5176 * stack.h (frame_apply_all_completer): Declare.
5177 * thread.c: Include "stack.h".
5178 (tfaas_command): Add "--".
5179 (_initialize_thread): Update help "tfaas" to mention supported
5180 options and install command completer.
5181
272d4594
PA
51822019-06-13 Pedro Alves <palves@redhat.com>
5183
5184 * completer.c (complete_nested_command_line): New.
5185 (gdb_completion_word_break_characters_throw): Add assertion.
5186 * completer.h (complete_nested_command_line): Declare.
5187
90a1ef87
PA
51882019-06-13 Pedro Alves <palves@redhat.com>
5189
5190 * stack.c (parse_backtrace_qualifiers): New.
5191 (backtrace_command): Use it.
5192 (backtrace_command_completer): Complete on qualifiers.
5193
d4c16835
PA
51942019-06-13 Pedro Alves <palves@redhat.com>
5195
5196 * frame.c: Include "cli/cli-option.h.
5197 (user_set_backtrace_options): New.
5198 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5199 Delete.
5200 (get_prev_frame): Adjust.
5201 (boolean_option_def, uinteger_option_def)
5202 (set_backtrace_option_defs): New.
5203 (_initialize_frame): Adjust and use
5204 gdb::option::add_setshow_cmds_for_options to install "set
5205 backtrace past-main" and "set backtrace past-entry".
5206 * frame.h: Include "cli/cli-option.h".
5207 (struct frame_print_options): Forward declare.
5208 (print_frame_arguments_all, print_frame_arguments_scalars)
5209 (print_frame_arguments_none): Declare.
5210 (print_entry_values): Delete declaration.
5211 (struct frame_print_options, user_frame_print_options): New.
5212 (struct set_backtrace_options): New.
5213 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5214 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5215 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5216 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5217 (list_args_or_locals): Add frame_print_options parameter.
5218 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5219 * python/py-framefilter.c (enumerate_args): Pass down
5220 USER_FRAME_PRINT_OPTIONS.
5221 * stack.c: Include "cli/cli-option.h".
5222 (print_frame_arguments_all, print_frame_arguments_scalars)
5223 (print_frame_arguments_none): Declare.
5224 (print_raw_frame_arguments, print_entry_values): Delete.
5225 (user_frame_print_options): New.
5226 (boolean_option_def, enum_option_def, frame_print_option_defs):
5227 New.
5228 (struct backtrace_cmd_options): New.
5229 (bt_flag_option_def): New.
5230 (backtrace_command_option_defs): New.
5231 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5232 (print_frame_arg, read_frame_arg, print_frame_args)
5233 (print_frame_info, print_frame): Add frame_print_options parameter
5234 and use it.
5235 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5236 (backtrace_command_1): Add frame_print_options and
5237 backtrace_cmd_options parameters and use them.
5238 (make_backtrace_options_def_group): New.
5239 (backtrace_command): Process command options with
5240 gdb::option::process_options.
5241 (backtrace_command_completer): New.
5242 (_initialize_stack): Extend "backtrace"'s help to mention
5243 supported options. Install completer for "backtrace".
5244 Install some settings commands with add_setshow_cmds_for_options.
5245
2daf894e
PA
52462019-06-13 Pedro Alves <palves@redhat.com>
5247
5248 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5249 and that "set/show print raw frame-arguments" are now deprecated.
5250
5251 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5252 command.
5253 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5254 * stack.c (_initialize_stack): Install "set/show print
5255 raw-frame-arguments", and deprecate "set/show print raw
5256 frame-arguments".
5257 * valprint.c (_initialize_valprint): Deprecate "set/show print
5258 raw".
5259
e6ed716c
PA
52602019-06-13 Pedro Alves <palves@redhat.com>
5261
5262 * compile/compile.c (struct compile_options): New.
5263 (compile_flag_option_def, compile_command_option_defs)
5264 (make_compile_options_def_group): New.
5265 (compile_file_command): Handle options with
5266 gdb::option::process_options.
5267 (compile_file_command_completer): New function.
5268 (compile_code_command): Handle options with
5269 gdb::option::process_options.
5270 (compile_code_command_completer): New function.
5271 (_initialize_compiler): Install completers for "compile code" and
5272 "compile file". Mention available options in "compile code" and
5273 "compile code"'s help.
5274 * completer.c (advance_to_completion_word): New, factored out from
5275 ...
5276 (advance_to_expression_complete_word_point): ... this.
5277 (advance_to_filename_complete_word_point): New.
5278 * completer.h (advance_to_filename_complete_word_point): New
5279 declaration.
5280
7d8062de
PA
52812019-06-13 Pedro Alves <palves@redhat.com>
5282
5283 * compile/compile.c: Include "cli/cli-option.h".
5284 (compile_print_value): Scope data pointer is now a
5285 value_print_options pointer; adjust.
5286 (compile_print_command): Process options. Scope data pointer is
5287 now a value_print_options pointer; adjust.
5288 (_initialize_compile): Update "compile print"'s help to include
5289 supported options. Install a completer for "compile print".
5290 * cp-valprint.c (show_vtblprint, show_objectprint)
5291 (show_static_field_print): Delete.
5292 (_initialize_cp_valprint): Don't install "set print
5293 static-members", "set print vtbl", "set print object" here.
5294 * printcmd.c: Include "cli/cli-option.h" and
5295 "common/gdb_optional.h".
5296 (print_command_parse_format): Rework to fill in a
5297 value_print_options instead of a format_data.
5298 (print_value): Change parameter type from format_data pointer to
5299 value_print_options reference. Adjust.
5300 (print_command_1): Process options. Adjust to pass down a
5301 value_print_options.
5302 (print_command_completer): New.
5303 (_initialize_printcmd): Install print_command_completer as
5304 handle_brkchars completer for the "print" command. Update
5305 "print"'s help to include supported options.
5306 * valprint.c: Include "cli/cli-option.h".
5307 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5308 here from cp-valprint.c.
5309 (boolean_option_def, uinteger_option_def)
5310 (value_print_option_defs, make_value_print_options_def_group):
5311 New. Use gdb::option::add_setshow_cmds_for_options to install
5312 "set print elements", "set print null-stop", "set print repeats",
5313 "set print pretty", "set print union", "set print array", "set
5314 print address", "set print symbol", "set print array-indexes".
5315 * valprint.h: Include <string> and "cli/cli-option.h".
5316 (make_value_print_options_def_group): Declare.
5317 (print_value): Change parameter type from format_data pointer to
5318 value_print_options reference.
5319 (print_command_completer): Declare.
5320
9d0faba9
PA
53212019-06-13 Pedro Alves <palves@redhat.com>
5322
5323 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5324 (COMMON_SFILES): Add maint-test-settings.c.
5325 * cli/cli-decode.c (boolean_enums): New global, factored out from
5326 ...
5327 (add_setshow_boolean_cmd): ... here.
5328 * cli/cli-decode.h (boolean_enums): Declare.
5329 * cli/cli-option.c: New file.
5330 * cli/cli-option.h: New file.
5331 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5332 factored out from ...
5333 (parse_cli_boolean_value(const char *)): ... this.
5334 (is_unlimited_literal): Change parameter type to pointer to
5335 pointer. Adjust and advance ARG pointer.
5336 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5337 (parse_cli_var_enum): New, factored out from ...
5338 (do_set_command): ... this. Adjust.
5339 * cli/cli-setshow.h (parse_cli_boolean_value)
5340 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5341 (parse_cli_var_enum): Declare.
5342 * cli/cli-utils.c: Include "cli/cli-option.h".
5343 (get_ulongest): New.
5344 * cli/cli-utils.h (get_ulongest): Declare.
5345 (check_for_argument): New overloads.
5346 * maint-test-options.c: New file.
5347
2c722807
PA
53482019-06-13 Pedro Alves <palves@redhat.com>
5349
5350 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5351 parse a range if "-" is at the end of the string.
5352
dee7b4c8
PA
53532019-06-13 Pedro Alves <palves@redhat.com>
5354
5355 * cli/cli-setshow.c (parse_auto_binary_operation)
5356 (parse_cli_boolean_value): Don't allow "o".
5357
dca0f6c0
PA
53582019-06-13 Pedro Alves <palves@redhat.com>
5359
5360 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5361 * NEWS: Mention maint test-settings KIND.
5362 * maint-test-settings.c: New file.
5363
597bf39d
PA
53642019-06-13 Pedro Alves <palves@redhat.com>
5365
5366 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5367 completer.
5368 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5369 "set" completers.
5370
48c410fb
PA
53712019-06-13 Pedro Alves <palves@redhat.com>
5372
5373 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5374 after item.
5375
93bcb043
PA
53762019-06-13 Pedro Alves <palves@redhat.com>
5377
5378 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5379
cbba3ecd
PA
53802019-06-13 Pedro Alves <palves@redhat.com>
5381
5382 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5383 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5384 call.
5385 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5386 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5387 calls.
5388 (check_for_argument): Skip spaces after argument.
5389
b9a3f842
PA
53902019-06-13 Pedro Alves <palves@redhat.com>
5391
5392 * thread.c (thread_apply_command): Adjust TID parsing.
5393 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5394 detected before end of string.
5395 (tid_is_in_list): Error out if LIST is invalid.
5396
3844e605
PA
53972019-06-13 Pedro Alves <palves@redhat.com>
5398
5399 * completer.c (complete_line_internal_1): Rewind completion word
5400 point.
5401 (completion_tracker::advance_custom_word_point_by): Change
5402 parameter type to int.
5403 * completer.h (completion_tracker::advance_custom_word_point_by):
5404 Likewise.
5405
00b56dbe
PA
54062019-06-13 Pedro Alves <palves@redhat.com>
5407
5408 * completer.c (advance_to_completion_word): Handle delimiters.
5409
d106773e
PA
54102019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5411
5412 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5413
08f10e02
TT
54142019-06-11 Tom Tromey <tom@tromey.com>
5415
5416 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5417 (xmalloc_failed): Move to alloc.c.
5418 * alloc.c: New file.
5419 * Makefile.in (COMMON_SFILES): Add alloc.c.
5420
1c7fe951
TT
54212019-06-11 Tom Tromey <tom@tromey.com>
5422
5423 * nat/linux-waitpid.c: Don't include server.h.
5424 (linux_debug): Remove.
5425 (my_waitpid): Update.
5426
89549d7f
TT
54272019-06-11 Tom Tromey <tromey@adacore.com>
5428
5429 * infcall.c (_initialize_infcall): Remove trailing newline from
5430 help.
5431 * user-regs.c (_initialize_user_regs): Remove trailing newline
5432 from help.
5433 * typeprint.c (_initialize_typeprint): Remove trailing newline
5434 from help.
5435 * reverse.c (_initialize_reverse): Remove trailing newlines from
5436 help.
5437 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5438 from help.
5439 * language.c (add_set_language_command): Remove trailing newline
5440 from help.
5441 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5442 help.
5443 * disasm.c (_initialize_disasm): Remove trailing newline from
5444 help.
5445 * top.c (init_main): Remove trailing newline from help.
5446 * interps.c (_initialize_interpreter): Remove trailing newline
5447 from help.
5448 * btrace.c (_initialize_btrace): Remove trailing newlines from
5449 help.
5450 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5451 from help.
5452 * python/python.c (_initialize_python): Remove trailing newline
5453 from help.
5454 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5455 help.
5456 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5457 from help. Reformat some text.
5458 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5459 from help.
5460 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5461 newline from help.
5462
86108c13
TT
54632019-06-11 Tom Tromey <tromey@adacore.com>
5464
5465 * darwin-nat.c (darwin_decode_exception_message)
5466 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5467
a7067863
AB
54682019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5469
5470 * valops.c (value_slice): Check for not allocated or not
5471 associated values.
5472
9ab08412
TV
54732019-06-10 Tom de Vries <tdevries@suse.de>
5474
5475 PR gdb/24618
5476 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5477 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5478 invalid.
5479
f19e22e9
TV
54802019-06-10 Tom de Vries <tdevries@suse.de>
5481
5482 PR gdb/24611
5483 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5484 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5485
e99f9db0
TV
54862019-06-10 Tom de Vries <tdevries@suse.de>
5487
5488 PR symtab/24545
5489 * symtab.c (struct demangled_name_entry): Add language field.
5490 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5491 static minimal symbol". Set and use language field.
5492
9bf7038b
TT
54932019-06-10 Tom Tromey <tromey@adacore.com>
5494
5495 * ada-lang.c (_initialize_ada_language): Update help text.
5496
422186a9
TT
54972019-06-10 Tom Tromey <tromey@adacore.com>
5498
5499 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5500 with a newline.
5501 * guile/guile.c (handle_boot_error): Don't end warning with a
5502 newline.
5503 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5504 warning with a newline.
5505 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5506 newline.
5507 (s12z_frame_cache): Likewise.
5508 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5509 a newline.
5510 * solib-svr4.c (disable_probes_interface): Don't end warning with
5511 a newline.
5512 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5513 newline.
5514 * python/python.c (do_finish_initialization): Don't end warning
5515 with a newline.
5516
25ce02ee
TT
55172019-06-10 Tom Tromey <tom@tromey.com>
5518
5519 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5520 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5521 gdbpy_enter.
5522
caa429d8
TT
55232019-06-10 Tom Tromey <tromey@adacore.com>
5524
5525 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5526 data.
5527 (elf_new_init): Don't call stabsread_new_init.
5528 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5529 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5530 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5531
81873cc8
TV
55322019-06-10 Tom de Vries <tdevries@suse.de>
5533
5534 PR symtab/16264
5535 PR symtab/24517
5536 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5537
4fa0265e
РИ
55382019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5539
5540 * source.c (find_and_open_source): Also rewrite relative file
5541 names.
5542
1a3da2cd
AB
55432019-04-26 Amos Bird <amosbird@gmail.com>
5544
5545 * annotate.c (annotate_thread_exited): Add "thread-exited"
5546 annotation.
5547
3847a7bf
TT
55482019-06-06 Tom Tromey <tromey@adacore.com>
5549
5550 * maint.h (class scoped_command_stats): Use
5551 DISABLE_COPY_AND_ASSIGN.
5552 <print_time>: New method.
5553 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5554 print_time.
5555 (scoped_command_stats::print_time): New method.
5556
312617a3
AB
55572019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5558
5559 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5560 instructions of lengths 6 or 8 bytes.
5561
b02f78f9
PA
55622019-06-04 Pedro Alves <palves@redhat.com>
5563
5564 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5565
5566 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5567 * breakpoint.c (condition_completer): Likewise.
5568 * cli/cli-dump.c (scan_expression): Likewise.
5569 * common/filestuff.c (mkdir_recursive): Likewise.
5570 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5571 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5572 (gdb_abspath): Likewise.
5573 * compile/compile-cplus-types.c
5574 (compile_cplus_instance::decl_name): Likewise.
5575 * completer.c (complete_explicit_location):
5576 (signal_completer, reg_or_group_completer_1): Likewise.
5577 * cp-support.c (cp_remove_params_if_any): Likewise.
5578 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5579 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5580 * infcmd.c (strip_bg_char): Likewise.
5581 * linespec.c (copy_token_string): Likewise.
5582 * mi/mi-main.c (output_cores): Likewise.
5583 * psymtab.c (psymtab_search_name):
5584 * symfile.c (test_set_ext_lang_command): Likewise.
5585 * target.c (target_fileio_read_stralloc): Likewise.
5586 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5587 * value.c (complete_internalvar): Likewise.
5588
e1f2e1a2
CB
55892019-06-04 Christian Biesinger <cbiesinger@google.com>
5590
5591 Add objfile property to gdb.Type.
d3238f7d
PA
5592 * NEWS: Mention Python API addition.
5593 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 5594
e664d728
PW
55952019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5596
5597 * NEWS: Mention the new set|show style [title|highlight].
5598 Mention changes to "show style", "help" and "apropos".
5599
66d8c862
PW
56002019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5601
5602 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5603 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5604 instead of print_help_for_command.
5605 (print_doc_of_command): New function.
5606 (help_list): Add 'apropos -v word' suggestion.
5607 (print_help_for_command): Style the command name using title style.
5608 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5609 (_initialize_cli_cmds): Describe -v in apropos_command help.
5610
9303eb2f
PW
56112019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5612
5613 * cli/cli-style.h (cli_style_option): Add name in constructor,
5614 add m_name class member, add constructor with intensity,
5615 add name class function.
5616 (cli_style_option::add_setshow_commands): Remove name argument.
5617 (highlight_style, title_style): New styles.
5618 * cli/cli-style.c (do_show): New function that shows a style
5619 characteristic styling the style name with itself.
5620 (set_style_name): New function.
5621 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5622 Update all callers according to the changes in cli/cli-style.h.
5623 * utils.h (fputs_highlighted): New function.
5624 * utils.c (fputs_highlighted): Likewise.
5625
e2c52041
PW
56262019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5627
5628 * NEWS: Mention new pipe command and new convenience variables.
5629
947d3946
PW
56302019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5631
5632 * cli/cli-cmds.c (pipe_command): New function.
5633 (_initialize_cli_cmds): Call add_com for pipe_command.
5634 Define | as an alias for pipe.
5635 (exit_status_set_internal_vars): New function.
5636 (shell_escape): Call exit_status_set_internal_vars.
5637 cli/cli-decode.c (find_command_name_length): Recognize | as
5638 a single character command.
5639
b8fd0918
PW
56402019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5641
5642 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5643 top.c (execute_command_to_ui_file): New function, mostly a copy
5644 of execute_command_to_string.
5645 (execute_command_to_string): Implement by calling
5646 execute_command_to_ui_file.
5647
68bb5386
PW
56482019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5649
5650 * top.h (saved_command_line): Remove declaration.
5651 * top.c (previous_saved_command_line, previous_repeat_arguments):
5652 New variables.
5653 (saved_command_line): Make static, define together with other
5654 'repeat variables'.
5655 (dont_repeat): Clear repeat_arguments.
5656 (repeat_previous, get_saved_command_line, save_command_line):
5657 New functions.
5658 (gdb_init): Initialize saved_command_line
5659 and previous_saved_command_line.
5660 * main.c (captured_main_1): Remove saved_command_line initialization.
5661 * event-top.c (handle_line_of_input): Update to use
5662 the new 'repeat' related functions instead of direct access to
5663 saved_command_line.
5664 * command.h (repeat_previous, get_saved_command_line,
5665 save_command_line): New declarations.
5666 (dont_repeat): Add comment.
5667
bfcdb852
TT
56682019-05-30 Tom Tromey <tromey@adacore.com>
5669
5670 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5671 Fix comment.
5672 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5673
0ef209f2
JV
56742019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5675
5676 PR cli/24587
5677 * completer.c (complete): Initialize variable word.
5678
955b06fa
SDJ
56792019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5680
5681 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5682 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5683 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5684 'body' is NULL to the outter 'if', protecting the '!is_define'
5685 situation as well.
5686
fa9c3fa0
TT
56872019-05-29 Tom Tromey <tromey@adacore.com>
5688
5689 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5690 (dwarf_unknown): New function.
5691 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5692 (dwarf_type_encoding_name): Use dwarf_unknown.
5693
4330d61d
TT
56942019-05-29 Tom Tromey <tromey@adacore.com>
5695
5696 PR c++/20020:
5697 * cp-valprint.c (cp_print_value_fields): Call
5698 cp_print_static_field inside "try".
5699
33a6bc35
TT
57002019-05-29 Tom Tromey <tromey@adacore.com>
5701
5702 * inflow.c (struct terminal_info): Add default operator=.
5703 * configure: Rebuild.
5704 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5705 -Wdeprecated-copy-dtor, -Wredundant-move.
5706
000439d5
TT
57072019-05-29 Tom Tromey <tromey@adacore.com>
5708
5709 * NEWS: Add entry.
5710 * infcmd.c (print_return_value_1): Handle finish_print
5711 option.
5712 (show_print_finish): New function.
5713 (_initialize_infcmd): Add "set/show print finish" commands.
5714 * valprint.c (user_print_options): Initialize new member.
5715 * valprint.h (struct value_print_options) <finish_print>: New
5716 member.
5717
c0e70c62
TT
57182019-05-28 Tom Tromey <tromey@adacore.com>
5719
5720 * ada-lang.c (ada_remove_Xbn_suffix)
5721 (find_old_style_renaming_symbol)
5722 (parse_old_style_renaming): Remove.
5723 (ada_find_renaming_symbol): Don't call
5724 find_old_style_renaming_symbol.
5725 (ada_is_renaming_symbol): Rename from
5726 ada_find_renaming_symbol. Remove "block" parameter. Return
5727 bool. Now static.
5728 (ada_read_var_value): Update and simplify.
5729 * ada-exp.y (write_var_or_type): Remove old code.
5730
766f8836
AH
57312019-05-28 Alan Hayward <alan.hayward@arm.com>
5732
5733 * event-top.c: Remove include comment.
5734 * inflow.c (class scoped_ignore_sigttou): Move from here...
5735 * inflow.h (class scoped_ignore_sigttou): ...to here.
5736 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5737 * top.c: Remove include comment.
5738
eb41253a
TT
57392019-05-27 Tom Tromey <tom@tromey.com>
5740
5741 * NEWS: Fix typo.
5742
4ca51187
TT
57432019-05-22 Tom Tromey <tromey@adacore.com>
5744
5745 * target.c (target_follow_exec): Constify parameter.
5746 * target-delegates.c: Rebuild.
5747 * remote.c (remote_target::follow_exec): Constify parameter.
5748 * infrun.c (follow_exec): Constify parameter.
5749 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5750 (target_follow_exec): Likewise.
5751
8fca4da0
AH
57522019-05-22 Alan Hayward <alan.hayward@arm.com>
5753
5754 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5755 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5756
b7060614
AH
57572019-05-22 Alan Hayward <alan.hayward@arm.com>
5758
5759 * NEWS: Add debugredirect and testsuite sections.
5760
0a5954bd
SC
57612019-05-22 Simon Cook <simon.cook@embecosm.com>
5762
5763 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5764 target descriptions using exclusively floating point register name
5765 aliases.
5766
dc42e902
AB
57672019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5768
5769 PR gdb/18644:
5770 * f-lang.c (build_fortran_types): Handle the case where
5771 gdbarch_floatformat_for_type returns a nullptr.
5772
fb7806c7
TV
57732019-05-21 Tom de Vries <tdevries@suse.de>
5774
5775 PR cli/24587
5776 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5777
34d11c68
AB
57782019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5779
5780 PR gdb/18644:
5781 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5782 16-byte floats.
5783 * i386-tdep.c (i386_floatformat_for_type): Use
5784 floatformats_ia64_quad for the 16-byte floating point component
5785 within a fortran 32-byte complex number.
5786
122cf0f2
AB
57872019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5788
5789 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5790 delete default constructor.
5791 (find_partial_die): Update to return const struct.
5792 (partial_die_parent_scope): Move variable declaration into scope
5793 of its use and change its type to auto.
5794 (guess_partial_die_structure_name): Likewise.
5795 (partial_die_info::fixup): Likewise.
5796
33d0e35a
TT
57972019-05-17 Tom Tromey <tromey@adacore.com>
5798
5799 * source.c (find_and_open_source): Remove cast.
5800
a45575b0
TT
58012019-05-17 Tom Tromey <tromey@adacore.com>
5802
5803 * annotate.c (annotate_source): Make "filename" const.
5804 * annotate.h (annotate_source): Use const.
5805
81f47ac2
AH
58062019-05-17 Alan Hayward <alan.hayward@arm.com>
5807
5808 * disasm.c (set_disassembler_options): Send errors to stderr.
5809
ca1285d1
AH
58102019-05-17 Alan Hayward <alan.hayward@arm.com>
5811
5812 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5813 (cli_interp_base::set_logging): Check debug_redirect.
5814 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5815 * cli/cli-logging.c (debug_redirect): Add static variable.
5816 (pop_output_files): Add default param.
5817 (handle_redirections): Print debug setting.
5818 (show_logging_command): Likewise.
5819 (_initialize_cli_logging): Add debugredirect command.
5820 * interps.c (current_interp_set_logging): Add debug_redirect
5821 parameter.
5822 * interps.h (set_logging): Add debug_redirect parameter.
5823 (current_interp_set_logging): Likewise.
5824 * mi/mi-common.h: Likewise.
5825 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5826
58272019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
5828 Tom Tromey <tromey@adacore.com>
5829
5830 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5831 directly.
5832 * cli/cli-interp.h (make_logging_output): Remove declaration.
5833 * cli/cli-logging.c (make_logging_output): Remove function.
5834 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5835 directly.
5836 * ui-file.c (tee_file::tee_file): Remove bools.
5837 (tee_file::~tee_file): Remove deletes.
5838 * ui-file.h (tee_file): Remove bools.
5839
26648588
JV
58402019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5841
5842 * mi/mi-cmds.h (mi_cmd_complete): New function.
5843 * mi/mi-main.c (mi_cmd_complete): Likewise.
5844 * mi/mi-cmds.c: Define new MI command -complete.
5845 * NEWS: Mention new -complete command.
5846
6e035501
JV
58472019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5848
5849 * completer.h (complete): New function.
5850 * completer.c (complete): Likewise.
5851 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5852 function defined in completer.h.
5853
7d0e2ece
JV
58542019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5855
e79be6e5 5856 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 5857
fb816e8b
TV
58582019-05-17 Tom de Vries <tdevries@suse.de>
5859
5860 PR gdb/24094
5861 * dwarf2read.c (struct cu_partial_die_info): New struct.
5862 (find_partial_die): Return cu_partial_die_info.
5863 (partial_die_parent_scope, guess_partial_die_structure_name)
5864 (partial_die_info::fixup): Handle new return type of find_partial_die.
5865
677052f2
SDJ
58662019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5867
a1726c38 5868 PR breakpoints/24541
677052f2
SDJ
5869 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5870 "std::string", simplifying the algorithm.
5871
f3da9116
SDJ
58722019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5873
5874 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5875 (stap_static_probe_ops::get_probes): Likewise.
5876
f1bb75ab
SDJ
58772019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5878
5879 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5880 '-')" and "else if".
5881 (stap_parse_single_operand): Join checks for
5882 "gdbarch_stap_parse_special_token_p" and
5883 "gdbarch_stap_parse_special_token" in the same "if" statement.
5884 Invert check when verifying for operation on register
5885 displacement.
5886
3ca58cde
SDJ
58872019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5888
5889 * stap-probe.c (stap_get_opcode): Update comment.
5890 (stap_get_expected_argument_type): Likewise.
5891 (handle_stap_probe): Likewise.
5892
af2d9bee
SDJ
58932019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5894
5895 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5896 return type to 'bool'. Adjust comment. Use 'bool' when
5897 appropriate.
5898 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5899 * stap-probe.c (stap_parse_argument_1): Likewise.
5900 (stap_is_operator): Likewise.
5901 (stap_is_generic_prefix): Likewise.
5902 (stap_is_register_prefix): Likewise.
5903 (stap_is_register_indirection_prefix): Likewise.
5904 (stap_is_integer_prefix): Likewise.
5905 (stap_generic_check_suffix): Likewise.
5906 (stap_check_integer_suffix): Likewise.
5907 (stap_check_register_suffix): Likewise.
5908 (stap_check_register_indirection_suffix): Likewise.
5909 (stap_parse_register_operand): Likewise.
5910 (stap_parse_single_operand): Likewise.
5911 (stap_parse_argument_1): Likewise.
5912 (stap_probe::get_argument_count): Likewise.
5913 (stap_is_operator): Likewise.
5914
61c9c421
TT
59152019-05-16 Tom Tromey <tromey@adacore.com>
5916
5917 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5918 keyword to foreach.
5919
9ddc1af1
SM
59202019-05-15 Simon Marchi <simon.marchi@efficios.com>
5921
5922 * linux-thread-db.c (try_thread_db_load_1): Change return type
5923 to bool.
5924 (try_thread_db_load): Likewise.
5925 (try_thread_db_load_from_pdir_1): Likewise.
5926 (try_thread_db_load_from_pdir): Likewise.
5927 (try_thread_db_load_from_sdir): Likewise.
5928 (try_thread_db_load_from_dir): Likewise.
5929 (thread_db_load_search): Likewise.
5930 (has_libpthread): Likewise.
5931 (thread_db_load): Likewise.
5932
7bede828
SDJ
59332019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5934
5935 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5936 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5937 NULL, and complain/return if that's the case.
5938
c5358db4
JD
59392019-05-15 John Darrington <john@darrington.wattle.id.au>
5940
5941 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5942 (advance, posn, abstract_read_memory): New functions.
5943 [struct mem_read_abstraction]: New struct.
5944 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5945
c408a94f
TT
59462019-05-14 Tom Tromey <tromey@adacore.com>
5947
5948 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5949 value is not lval_memory.
5950
e7bd7fba
TT
59512019-05-14 Tom Tromey <tromey@adacore.com>
5952
5953 * solib.c (info_sharedlibrary_command): Style the file name.
5954
a6d0f249
AH
59552019-05-14 Alan Hayward <alan.hayward@arm.com>
5956
5957 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5958 (aarch64_vnv_type): Likewise.
5959 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5960 * common/tdesc.c: Likewise.
5961 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5962 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5963 * features/aarch64-fpu.xml: Add ieee half view.
5964 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5965 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5966 * gdbtypes.h (struct builtin_type): Likewise.
5967 (struct objfile_type): Likewise.
5968
66b8bb74
SM
59692019-05-12 Paul Naert <paul.naert@polymtl.ca>
5970
5971 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5972 typo.
5973 * location.h (string_to_event_location): Likewise.
5974
21c219fd
JB
59752019-05-11 Joel Brobecker <brobecker@adacore.com>
5976
5977 GDB 8.3 released.
5978
13674803
SM
59792019-05-10 Simon Marchi <simon.marchi@efficios.com>
5980
5981 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5982 New variable declaration.
5983 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5984 New variable.
5985 (print_one_breakpoint): Use ui_out::test_flags and new global
5986 variable to compute use_fixed_output.
5987 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5988 Remove.
5989 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5990 (mi_multi_location_breakpoint_output_fixed): Remove.
5991 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5992 new variable.
5993 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5994 fix_multi_location_breakpoint_output flag if version >= 3.
5995 * ui-out.h (enum ui_out_flag)
5996 <fix_multi_location_breakpoint_output>: New enumerator.
5997
a9eac7f9
SM
59982019-05-10 Simon Marchi <simon.marchi@efficios.com>
5999
6000 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6001
71bed2db
TT
60022019-05-10 Tom Tromey <tromey@adacore.com>
6003
6004 * ada-lang.c (catch_ada_completer): New function.
6005 (_initialize_ada_language): Use it.
6006
24c54127
TT
60072019-05-10 Tom Tromey <tromey@adacore.com>
6008
6009 * thread.c (print_thread_info): Make "requested_threads" const.
6010 * gdbthread.h (print_thread_info): Make "requested_threads"
6011 const.
6012 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6013 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6014
7a102139
TT
60152019-05-08 Tom Tromey <tom@tromey.com>
6016
6017 * gdbtypes.c (objfile_type_data): Change type.
6018 (objfile_type, _initialize_gdbtypes): Update.
6019
924d79e2
TT
60202019-05-08 Tom Tromey <tom@tromey.com>
6021
6022 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6023 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6024 (_initialize_dwarf2_frame): Update.
6025
4c58e337
TT
60262019-05-08 Tom Tromey <tom@tromey.com>
6027
6028 * objc-lang.c (objc_objfile_data): Change type.
6029 (find_methods): Update.
6030 (_initialize_objc_lang): Remove.
6031
d772d2ab
TT
60322019-05-08 Tom Tromey <tom@tromey.com>
6033
6034 * stabsread.c (rs6000_builtin_type_data): Change type.
6035 (rs6000_builtin_type, _initialize_stabsread): Update.
6036
d11d83f4
TT
60372019-05-08 Tom Tromey <tom@tromey.com>
6038
6039 * mips-tdep.c (mips_pdr_data): Remove.
6040 (_initialize_mips_tdep): Update.
6041
9a73f0ad
TT
60422019-05-08 Tom Tromey <tom@tromey.com>
6043
6044 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6045 (hppa_init_objfile_priv_data, read_unwind_info)
6046 (find_unwind_entry, _initialize_hppa_tdep): Update.
6047
8127a2fa
TT
60482019-05-08 Tom Tromey <tom@tromey.com>
6049
6050 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6051 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6052 on obstack.
6053 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6054
91d3055d
TT
60552019-05-08 Tom Tromey <tom@tromey.com>
6056
6057 * mdebugread.c (basic_type_data): Change type.
6058 (basic_type, _initialize_mdebugread): Update.
6059
31930bd3
TT
60602019-05-08 Tom Tromey <tom@tromey.com>
6061
6062 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6063
bdb3ed9e
TT
60642019-05-08 Tom Tromey <tom@tromey.com>
6065
6066 * nto-tdep.c (nto_inferior_data_reg): Change type.
6067 (nto_inferior_data): Update.
6068 (nto_inferior_data_cleanup, nto_new_inferior_data)
6069 (_initialize_nto_tdep): Remove.
6070 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6071
f37b313d
TT
60722019-05-08 Tom Tromey <tom@tromey.com>
6073
6074 * ada-lang.c (struct ada_inferior_data): Add initializers.
6075 (ada_inferior_data): Change type.
6076 (ada_inferior_data_cleanup): Remove.
6077 (get_ada_inferior_data, ada_inferior_exit)
6078 (struct ada_pspace_data): Add initializers, destructor.
6079 (ada_pspace_data_handle): Change type.
6080 (get_ada_pspace_data): Update.
6081 (ada_pspace_data_cleanup): Remove.
6082
24699405
TT
60832019-05-08 Tom Tromey <tom@tromey.com>
6084
6085 * coffread.c (struct coff_symfile_info): Add initializers.
6086 (coff_objfile_data_key): Move lower. Change type.
6087 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6088 Update.
6089 (coff_free_info): Remove.
6090
d4e05d2f
TT
60912019-05-08 Tom Tromey <tom@tromey.com>
6092
6093 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6094 (fbsd_pspace_data_handle): Move lower. Change type.
6095 (get_fbsd_pspace_data): Update.
6096 (fbsd_pspace_data_cleanup): Remove.
6097 (_initialize_fbsd_tdep): Update.
6098
14ef6690
TT
60992019-05-08 Tom Tromey <tom@tromey.com>
6100
6101 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6102 (get_ada_tasks_pspace_data): Update.
6103 (ada_tasks_pspace_data_cleanup): Remove.
6104 (_initialize_tasks): Update.
6105 (ada_tasks_inferior_data_handle): Change type.
6106 (get_ada_tasks_inferior_data): Update.
6107 (ada_tasks_inferior_data_cleanup): Remove.
6108 (struct ada_tasks_pspace_data): Add initializers.
6109
814cf43a
TT
61102019-05-08 Tom Tromey <tom@tromey.com>
6111
6112 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6113 * symfile-debug.c (debug_sym_get_probes): Change type.
6114 * stap-probe.c (handle_stap_probe):
6115 (stap_static_probe_ops::get_probes): Change type.
6116 * probe.h (class static_probe_ops) <get_probes>: Change type.
6117 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6118 (parse_probes_in_pspace): Update.
6119 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6120 Update.
6121 (any_static_probe_ops::get_probes): Change type.
6122 * elfread.c (elfread_data): New typedef.
6123 (probe_key): Change type.
6124 (elf_get_probes): Likewise. Update.
6125 (probe_key_free): Remove.
6126 (_initialize_elfread): Update.
6127 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6128 Change type.
6129 (dtrace_process_dof_probe, dtrace_process_dof)
6130 (dtrace_static_probe_ops::get_probe): Change type.
6131
02dc647e
TT
61322019-05-08 Tom Tromey <tom@tromey.com>
6133
6134 * xcoffread.c (struct xcoff_symfile_info): Rename from
6135 coff_symfile_info. Add initializers.
6136 (xcoff_objfile_data_key): Move lower. Change type.
6137 (XCOFF_DATA): Rewrite.
6138 (xcoff_free_info): Remove.
6139 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6140 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6141 (xcoff_initial_scan): Update.
6142
09232438
TT
61432019-05-08 Tom Tromey <tom@tromey.com>
6144
6145 * solib-svr4.c (struct svr4_info): Add initializers and
6146 destructor.
6147 <probes_table>: Now an htab_up.
6148 (solib_svr4_pspace_data): Change type.
6149 (free_probes_table): Simplify.
6150 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6151 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6152 (probes_table_remove_objfile_probes, register_solib_event_probe)
6153 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6154 (_initialize_svr4_solib): Update.
6155
7b4a314f
TT
61562019-05-08 Tom Tromey <tom@tromey.com>
6157
6158 * remote.c (remote_pspace_data): Change type.
6159 (remote_pspace_data_cleanup): Remove.
6160 (get_remote_exec_file, set_pspace_remote_exec_file)
6161 (_initialize_remote): Update.
6162
51d3063a
TT
61632019-05-08 Tom Tromey <tom@tromey.com>
6164
6165 * breakpoint.c (breakpoint_objfile_key): Change type.
6166 (get_breakpoint_objfile_data): Update.
6167 (free_breakpoint_objfile_data): Remove.
6168 (_initialize_breakpoint): Update.
6169
89fb8848
TT
61702019-05-08 Tom Tromey <tom@tromey.com>
6171
6172 * linux-tdep.c (struct linux_info): Add initializers.
6173 (linux_inferior_data): Move. Change type.
6174 (invalidate_linux_cache_inf): Update.
6175 (linux_inferior_data_cleanup): Remove.
6176 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6177
e9b89e2d
TT
61782019-05-08 Tom Tromey <tom@tromey.com>
6179
6180 * auxv.c (auxv_inferior_data): Move. Change type.
6181 (auxv_inferior_data_cleanup): Remove.
6182 (invalidate_auxv_cache_inf): Rewrite.
6183 (get_auxv_inferior_data, _initialize_auxv): Update.
6184
8c42777c
TT
61852019-05-08 Tom Tromey <tom@tromey.com>
6186
6187 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6188 (symfile_debug_objfile_data_key): Change type.
6189 (symfile_debug_installed, debug_qf_has_symbols)
6190 (debug_qf_find_last_source_symtab)
6191 (debug_qf_forget_cached_source_info)
6192 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6193 (debug_qf_print_stats, debug_qf_dump)
6194 (debug_qf_expand_symtabs_for_function)
6195 (debug_qf_expand_all_symtabs)
6196 (debug_qf_expand_symtabs_with_fullname)
6197 (debug_qf_map_matching_symbols)
6198 (debug_qf_expand_symtabs_matching)
6199 (debug_qf_find_pc_sect_compunit_symtab)
6200 (debug_qf_map_symbol_filenames)
6201 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6202 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6203 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6204 (debug_sym_read_linetable, debug_sym_relocate): Update.
6205 (symfile_debug_free_objfile): Remove.
6206 (install_symfile_debug_logging, _initialize_symfile_debug):
6207 Update.
6208
5bfd760d
TT
62092019-05-08 Tom Tromey <tom@tromey.com>
6210
6211 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6212 allocate_on_obstack.
6213 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6214 (get_dwarf2_per_objfile): Update.
6215 (set_dwarf2_per_objfile): Remove.
6216 (dwarf2_has_info, dwarf2_get_section_info): Update.
6217 (dwarf2_free_objfile): Remove.
6218 (_initialize_dwarf2_read): Update.
6219
e85e19b4
TT
62202019-05-08 Tom Tromey <tom@tromey.com>
6221
6222 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6223 initializers.
6224 <unsupported_script_warning_printed,
6225 script_not_found_warning_printed>: Now bool.
6226 (auto_load_pspace_data): Change type.
6227 (~auto_load_pspace_info): Rename from
6228 auto_load_pspace_data_cleanup.
6229 (get_auto_load_pspace_data, init_loaded_scripts_info)
6230 (clear_section_scripts, maybe_print_unsupported_script_warning)
6231 (maybe_print_script_not_found_warning, _initialize_auto_load):
6232 Update.
6233
f6aa7436
TT
62342019-05-08 Tom Tromey <tom@tromey.com>
6235
6236 * objfiles.c (objfile_pspace_info): Add destructor and
6237 initializers.
6238 (objfiles_pspace_data): Change type.
6239 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6240 (get_objfile_pspace_data): Update.
6241 (objfiles_bfd_data): Change type.
6242 (get_objfile_bfd_data): Update.
6243 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6244
6ae614f6
TT
62452019-05-08 Tom Tromey <tom@tromey.com>
6246
6247 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6248 Change type.
6249 (get_catch_syscall_inferior_data): Update.
6250 (catch_syscall_inferior_data_cleanup): Remove.
6251 (_initialize_break_catch_syscall): Update.
6252
6509b8eb
TT
62532019-05-08 Tom Tromey <tom@tromey.com>
6254
6255 * inflow.c (struct terminal_info): Add destructor and
6256 initializers.
6257 (inflow_inferior_data): Change type.
6258 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6259 (get_inflow_inferior_data, inflow_inferior_exit)
6260 (swap_terminal_info, _initialize_inflow): Update.
6261
35632941
TT
62622019-05-08 Tom Tromey <tom@tromey.com>
6263
6264 * target-dcache.c (target_dcache_cleanup): Remove.
6265 (target_dcache_aspace_key): Change type.
6266 (target_dcache_init_p, target_dcache_invalidate)
6267 (target_dcache_get, target_dcache_get_or_init)
6268 (_initialize_target_dcache): Update.
6269 * dcache.h (struct dcache_deleter): New.
6270
3017b94d
TT
62712019-05-08 Tom Tromey <tom@tromey.com>
6272
6273 * symtab.c (struct symbol_cache): Add destructor and
6274 initializers.
6275 (symbol_cache_key): Move. Change type.
6276 (make_symbol_cache, free_symbol_cache): Remove.
6277 (get_symbol_cache): Update.
6278 (symbol_cache_cleanup): Remove.
6279 (ALL_PSPACES, symbol_cache_flush)
6280 (maintenance_print_symbol_cache)
6281 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6282 Update.
6283
a32ad8c5
TT
62842019-05-08 Tom Tromey <tom@tromey.com>
6285
6286 * symtab.c (struct main_info): Add destructor and initializers.
6287 (main_progspace_key): Move. Change type.
6288 (get_main_info): Update.
6289 (main_info_cleanup): Remove.
6290 (_initialize_symtab): Update.
6291
5f6e90a0
TT
62922019-05-08 Tom Tromey <tom@tromey.com>
6293
6294 * registry.h (DECLARE_REGISTRY): Define the _key class.
6295
1bd0c6e4
AB
62962019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6297
6298 * NEWS: Merge two 'New commands' sections.
6299
2228ef77
XR
63002019-05-08 Joel Brobecker <brobecker@adacore.com>
6301
6302 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6303 parameter and use Ada language definition instead.
6304 (ada_val_print_ptr): Remove unused language parameter.
6305 (ada_val_print_num): Remove language parameter and use Ada language
6306 definition instead.
6307 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6308 parameter.
6309 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6310 parameter and use Ada language definition instead.
6311 (ada_val_print_1): Update all ada_val_print_xxx calls.
6312 Remove language parameter.
6313 (ada_val_print): Update ada_val_print_1 call.
6314
60fcc1c3
TT
63152019-05-08 Tom Tromey <tromey@adacore.com>
6316
6317 * remote.c (remote_hw_watchpoint_limit)
6318 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6319 Now static.
6320
ed2b7c17
TT
63212019-05-08 Tom Tromey <tromey@adacore.com>
6322
6323 * maint.c (_initialize_maint_cmds): Move initialization code to
6324 remote.c.
6325 (watchdog, show_watchdog): Move to remote.c.
6326 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6327 "watchdog" static.
6328 (_initialize_remote): Move initialization code from maint.c.
6329 * defs.h (watchdog): Don't declare.
6330
b0be6c91
TT
63312019-05-08 Tom Tromey <tromey@adacore.com>
6332
6333 * tui/tui-interp.c: Include main.h.
6334 * interps.c: Include main.h.
6335 * main.h (interpreter_p): Declare.
6336 * defs.h (interpreter_p): Don't declare.
6337
587ee17b
TT
63382019-05-08 Tom Tromey <tromey@adacore.com>
6339
6340 * dwarf2loc.c: Include dwarf2read.h.
6341 * defs.h (read_unsigned_leb128): Don't declare.
6342 * dwarf2read.h (read_unsigned_leb128): Declare.
6343
ca1df239
TT
63442019-05-08 Tom Tromey <tromey@adacore.com>
6345
6346 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6347 method.
6348
99f20f08
TT
63492019-05-08 Tom Tromey <tromey@adacore.com>
6350
6351 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6352 when no wrap column is set.
6353
80e55b13
TT
63542019-05-08 Tom Tromey <tromey@adacore.com>
6355
6356 * c-lang.c (c_get_string): Handle non-C-style arrays.
6357
9d3421af
TT
63582019-05-08 Tom Tromey <tromey@adacore.com>
6359
6360 * typeprint.c (print_offset_data::update): Print the bit offset,
6361 not the number of bits remaining.
6362
844333e2
TT
63632019-05-08 Tom Tromey <tromey@adacore.com>
6364
6365 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6366 padding at end of comment.
6367
988915ee
TT
63682019-05-08 Tom Tromey <tromey@adacore.com>
6369
6370 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6371 Compare main types.
6372
26bfd823
TT
63732019-05-06 Tom Tromey <tom@tromey.com>
6374
6375 * common/scoped_mmap.c: Include common-defs.h.
6376 * common/scoped_mmap.h: Don't include config.h.
6377
89055eaa
TT
63782019-05-04 Tom Tromey <tom@tromey.com>
6379
6380 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6381 (struct aarch64_call_info): Add initializers.
6382 <si>: Now a std::vector.
6383 (pass_on_stack, aarch64_push_dummy_call): Update.
6384
5da01df5
TT
63852019-05-04 Simon Marchi <simon.marchi@efficios.com>
6386 Tom Tromey <tom@tromey.com>
6387
6388 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6389 (ppc_threads): Now a std::vector. Now static.
6390 (hwdebug_find_thread_points_by_tid)
6391 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6392 Update.
6393
fbdf05a1
TT
63942019-05-04 Tom Tromey <tom@tromey.com>
6395
6396 * arc-tdep.c (arc_tdesc_init): Return bool.
6397
06d16ec9
TT
63982019-05-04 Tom Tromey <tom@tromey.com>
6399
6400 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6401 Use gdb_assert_not_reached.
6402
9c056022
TT
64032019-05-04 Tom Tromey <tom@tromey.com>
6404
6405 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6406 "false".
6407
fa9c2a59
TT
64082019-05-04 Tom Tromey <tom@tromey.com>
6409
6410 * arc-tdep.c (arc_tdesc_init): Use bool.
6411
e2eb806a
TT
64122019-05-04 Tom Tromey <tom@tromey.com>
6413
6414 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6415
6fe87677
TT
64162019-05-04 Tom Tromey <tom@tromey.com>
6417
6418 * cli/cli-cmds.c (valid_command_p): Return bool.
6419
7f008c9e
TT
64202019-05-04 Tom Tromey <tom@tromey.com>
6421
6422 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6423 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6424
b6484282
RT
64252019-05-04 Raul Tambre <raul@tambre.ee>
6426
6427 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6428 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6429 operator for comparison.
6430
af97b416
TT
64312019-05-04 Tom Tromey <tom@tromey.com>
6432
6433 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6434 (lookup_partial_symbol, print_partial_symbols)
6435 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6436 (psymbol_compare): Update.
6437 (add_psymbol_to_bcache): Clear the entire psymbol.
6438 (maintenance_check_psymtabs): Update.
6439 * psympriv.h (struct partial_symbol): Don't derive from
6440 general_symbol_info.
6441 <obj_section, unrelocated_address, address,
6442 set_unrelocated_address>: Update.
6443 <ginfo>: New member.
6444 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6445 (debug_names::write_psymbols): Update.
6446
9d6d4be8
TV
64472019-05-04 Tom de Vries <tdevries@suse.de>
6448
6449 * contrib/cc-with-tweaks.sh: Support -n arg.
6450
66452beb
PW
64512019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6452
6453 * corelow.c (core_target::detach): Ensure frame cache and
6454 register caches are cleared.
6455 inferior.c (exit_inferior_1): Likewise.
6456
bde09ab7
TT
64572019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6458 Tom Tromey <tom@tromey.com>
6459
6460 * dictionary.c (collate_pending_symbols_by_language): Remove
6461 "struct" from foreach.
6462 * symtab.c (lookup_global_symbol_from_objfile)
6463 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6464 foreach.
6465 * ser-tcp.c (net_open): Remove "struct" from foreach.
6466 * objfiles.c (objfile_relocate, objfile_rebase)
6467 (objfile_has_symbols): Remove "struct" from foreach.
6468 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6469 from foreach.
6470 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6471 foreach.
6472 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6473 "struct" from foreach.
6474 * ada-lang.c (create_excep_cond_exprs)
6475 (ada_exception_catchpoint_cond_string): Remove "struct" from
6476 foreach.
6477
222a8d25
TT
64782019-05-03 Tom Tromey <tromey@adacore.com>
6479
6480 * ada-exp.y (convert_char_literal): Check suffix of each
6481 enumerator.
6482
fcd60b84
DP
64832019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6484
6485 PR ada/21406:
6486 * ada-exp.y (yywrap): Don't define.
6487 * ada-lex.l (%option): Add noyywrap
6488 (yywrap): Remove.
6489
5f2459c2
EZ
64902019-05-03 Eli Zaretskii <eliz@gnu.org>
6491
353ea2d1
EZ
6492 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6493 _WIN32_WINNT to the XP level, unless already defined to a higher
6494 level.
6495
6496 * unittests/parse-connection-spec-selftests.c:
6497 * ser-tcp.c:
6498 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6499 override.
6500
5f2459c2
EZ
6501 * symfile.c (find_separate_debug_file): Remove colon from the
6502 drive spec of DOS/Windows file names of the target, so that the
6503 file name produced from DEBUGDIR and the target's directory will
6504 be valid on DOS/Windows systems.
6505
80062eb9
AB
65062019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6507
6508 * rust-lang.c (val_print_struct): Handle printing structures
6509 containing strings.
6510
b8c05e85
TT
65112019-05-02 Tom Tromey <tromey@adacore.com>
6512
6513 * valarith.c (_initialize_valarith): Remove.
6514
4504bbde
TT
65152019-05-01 Tom Tromey <tromey@adacore.com>
6516
6517 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6518 bitfields.
6519
d48e62f4
TT
65202019-05-01 Tom Tromey <tromey@adacore.com>
6521
6522 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6523 for big-endian copies.
6524
15f18d14
AT
65252019-04-30 Ali Tamur <tamur@google.com>
6526 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6527 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6528 (read_3_bytes): New function.
6529
ab4ee614
JB
65302019-04-30 Joel Brobecker <brobecker@adacore.com>
6531
6532 * windows-nat.c (main_thread_id): Delete.
6533 (handle_output_debug_string): Replace main_thread_id by
6534 current_event.dwThreadId.
6535 (fake_create_process): Likewise.
6536 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6537 Do not set main_thread_id.
6538 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6539 current_event.dwThreadId.
6540 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6541
8ed5b76e
JB
65422019-04-30 Joel Brobecker <brobecker@adacore.com>
6543
6544 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6545 Use current_event.dwThreadId instead of main_thread_id.
6546
2ff0a947
TT
65472019-04-30 Tom Tromey <tromey@adacore.com>
6548
6549 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6550 (create_excep_cond_exprs): Iterate over program spaces.
6551 (ada_exception_catchpoint_cond_string): Examine all minimal
6552 symbols for exception types.
6553
a776957c
TT
65542019-04-30 Tom Tromey <tromey@adacore.com>
6555
6556 PR c++/24470:
6557 * dwarf2read.c (process_structure_scope): Handle case where type
6558 has template parameters but no symbol was created.
6559
bc68014d
AB
65602019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6561 Chris January <chris.january@arm.com>
6562
6563 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6564 qualifier.
6565 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6566
f1fdc960
AB
65672019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6568
6569 * f-typeprint.c (f_print_type): Update rules for printing
6570 whitespace.
6571 (f_type_print_varspec_suffix): Likewise.
6572
bf7a4de1
AB
65732019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6574 Chris January <chris.january@arm.com>
6575
6576 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6577 function arguments.
6578
bbe75b9d
AB
65792019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6580
6581 * f-lang.c (build_fortran_types): Change name of void type to
6582 lower case.
6583 * f-typeprint.c (f_type_print_base): Print the name of the void
6584 type, rather than a fixed string.
6585 * f-valprint.c (f_decorations): Use lower case void string.
6586
1db455a7
AB
65872019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6588 Chris January <chris.january@arm.com>
6589
6590 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6591 types for Fortran.
6592
b6d03bb2
AB
65932019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6594 Chris January <chris.january@arm.com>
6595 David Lecomber <david.lecomber@arm.com>
6596
6597 * f-exp.y (BINOP_INTRINSIC): New token.
6598 (exp): New parser rule handling BINOP_INTRINSIC.
6599 (f77_keywords): Add new builtin procedures.
6600 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6601 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6602 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6603 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6604 (print_unop_subexp_f): New function.
6605 (print_binop_subexp_f): New function.
6606 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6607 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6608 (dump_subexp_body_f): Likewise.
6609 (operator_check_f): Likewise.
6610 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6611 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6612
83228e93
AB
66132019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6614
6615 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6616 UNOP_KIND.
6617 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6618 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6619 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6620 (operator_length_f): New fuction.
6621 (print_subexp_f): New function.
6622 (op_name_f): New function.
6623 (dump_subexp_body_f): New function.
6624 (operator_check_f): New function.
6625 (exp_descriptor_f): Replace standard expression handling functions
6626 with new functions.
6627 * gdb/fortran-operator.def: New file.
6628 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6629 * gdb/std-operator.def: Remove UNOP_KIND.
6630
6fdcd7cc
AB
66312019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6632
6633 * std-operator.def: Remove unbalanced, stray double quote
6634 character.
6635
2e62ab40
AB
66362019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6637 Chris January <chris.january@arm.com>
6638 Daniel Everett <daniel.everett@arm.com>
6639 Nick Forrington <nick.forrington@arm.com>
6640 Richard Bunt <richard.bunt@arm.com>
6641
6642 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6643 of depth when printing anonymous structs or unions.
6644 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6645 Don't print either the top-level value, or the children if the
6646 max-depth is exceeded.
6647 (ppscm_print_children): When printing the key of a map, allow one
6648 extra level of depth.
6649 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6650 print either the top-level value, or the children if the max-depth
6651 is exceeded.
6652 (print_children): When printing the key of a map, allow one extra
6653 level of depth.
6654 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6655 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6656 (user_print_options): Initialise max_depth field.
6657 (val_print_scalar_or_string_type_p): New function.
6658 (val_print): Check to see if the max depth has been reached.
6659 (val_print_check_max_depth): Define new function.
6660 (show_print_max_depth): New function.
6661 (_initialize_valprint): Add 'print max-depth' option.
6662 * valprint.h (struct value_print_options) <max_depth>: New field.
6663 (val_print_check_max_depth): Declare new function.
6664 * NEWS: Document new feature.
6665
4be290b2
AB
66662019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6667
6668 * ada-lang.c (ada_language_defn): Initialise new field.
6669 * c-lang.c (c_is_string_type_p): New function.
6670 (c_language_defn): Initialise new field.
6671 (cplus_language_defn): Initialise new field.
6672 (asm_language_defn): Initialise new field.
6673 (minimal_language_defn): Initialise new field.
6674 * c-lang.h (c_is_string_type_p): Declare new function.
6675 * d-lang.c (d_language_defn): Initialise new field.
6676 * f-lang.c (f_is_string_type_p): New function.
6677 (f_language_defn): Initialise new field.
6678 * go-lang.c (go_is_string_type_p): New function.
6679 (go_language_defn): Initialise new field.
6680 * language.c (default_is_string_type_p): New function.
6681 (unknown_language_defn): Initialise new field.
6682 (auto_language_defn): Initialise new field.
6683 * language.h (struct language_defn) <la_is_string_type_p>: New
6684 member variable.
6685 (default_is_string_type_p): Declare new function.
6686 * m2-lang.c (m2_language_defn): Initialise new field.
6687 * objc-lang.c (objc_language_defn): Initialise new field.
6688 * opencl-lang.c (opencl_language_defn): Initialise new field.
6689 * p-lang.c (pascal_is_string_type_p): New function.
6690 (pascal_language_defn): Initialise new field.
6691 * rust-lang.c (rust_is_string_type_p): New function.
6692 (rust_language_defn): Initialise new field.
6693
721b08c6
AB
66942019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6695
6696 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6697 New field.
6698 * ada-lang.c (ada_language_defn): Initialise new field.
6699 * c-lang.c (c_language_defn): Likewise.
6700 (cplus_language_defn): Likewise.
6701 (asm_language_defn): Likewise.
6702 (minimal_language_defn): Likewise.
6703 * d-lang.c (d_language_defn): Likewise.
6704 * f-lang.c (f_language_defn): Likewise.
6705 * go-lang.c (go_language_defn): Likewise.
6706 * language.c (unknown_language_defn): Likewise.
6707 (auto_language_defn): Likewise.
6708 * m2-lang.c (m2_language_defn): Likewise.
6709 * objc-lang.c (objc_language_defn): Likewise.
6710 * opencl-lang.c (opencl_language_defn): Likewise.
6711 * p-lang.c (pascal_language_defn): Likewise.
6712 * rust-lang.c (rust_language_defn): Likewise.
6713
fc913e53
AB
67142019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6715
6716 * ada-lang.c (ada_is_character_type): Change return type to bool.
6717 (ada_is_string_type): Likewise.
6718 * ada-lang.h (ada_is_character_type): Update declaration
6719 (ada_is_string_type): Likewise.
6720
fa731fa0
PW
67212019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6722
6723 Support style in 'frame|thread apply'
6724
6725 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6726 * record.c (record_start, record_stop): Update callers of
6727 execute_command_to_string with false.
6728 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6729 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6730 methods.
6731 (class string_file): New constructor with term_out parameter.
6732 Override methods term_out and can_emit_style_escape. New member
6733 term_out.
6734 (class stdio_file): Override can_emit_style_escape.
6735 (class tee_file): Override term_out and can_emit_style_escape.
6736 * utils.h (can_emit_style_escape): Remove.
6737 * utils.c (can_emit_style_escape): Likewise.
6738 Update all callers of can_emit_style_escape (SOMESTREAM) to
6739 SOMESTREAM->can_emit_style_escape.
6740 * source-cache.c (source_cache::get_source_lines): Likewise.
6741 * stack.c (frame_apply_command_count): Call execute_command_to_string
6742 passing the term_out characteristic of the current gdb_stdout.
6743 * thread.c (thr_try_catch_cmd): Likewise.
6744 * top.c (execute_command_to_string): pass term_out parameter
6745 to construct the string_file for the command output.
6746 * ui-file.c (term_cli_styling): New function (most code moved
6747 from utils.c can_emit_style_escape).
6748 (string_file::string_file, string_file::can_emit_style_escape,
6749 stdio_file::can_emit_style_escape, tee_file::term_out,
6750 tee_file::can_emit_style_escape): New functions.
6751
136afab8
PW
67522019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6753
6754 * NEWS: Mention the new set|show may-call-functions.
6755 * infcall.c (may_call_functions_p): New variable.
6756 (show_may_call_functions_p): New function.
6757 (call_function_by_hand_dummy): Throws an error if not
6758 may-call-functions.
6759 (_initialize_infcall): Call add_setshow_boolean_cmd for
6760 may-call-functions.
6761
725cbb63
KS
67622019-04-25 Keith Seitz <keiths@redhat.com>
6763
6764 PR c++/24367
6765 * cp-support.c (inspect_type): Don't attempt substitutions
6766 of symbol with the same name.
6767
3d1cbb78
TT
67682019-04-25 Tom Tromey <tromey@adacore.com>
6769
6770 PR gdb/24475:
6771 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6772 static.
6773
94aeb44b
TT
67742019-04-25 Tom Tromey <tromey@adacore.com>
6775
6776 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6777 rvalue reference.
6778 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6779 (gdb_xml_parser::parse): Use std::move.
6780 * python/python-internal.h (gdbpy_convert_exception): Take a const
6781 reference.
6782 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6783 std::move.
6784 * python/py-utils.c (gdbpy_convert_exception): Take a const
6785 reference.
6786 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6787 Use std::move.
6788 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6789 Use std::move.
6790 * mi/mi-main.c (mi_print_exception): Take a const reference.
6791 * main.c (handle_command_errors): Take a const reference.
6792 * linespec.c (parse_linespec): Use std::move.
6793 * infcall.c (run_inferior_call): Use std::move.
6794 (call_function_by_hand_dummy): Use std::move.
6795 * exec.c (try_open_exec_file): Use std::move.
6796 * exceptions.h (exception_print, exception_fprintf)
6797 (exception_print_same): Update.
6798 * exceptions.c (print_exception, exception_print)
6799 (exception_fprintf, exception_print_same): Change parameters to
6800 const reference.
6801 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6802 * common/new-op.c: Use std::move.
6803 * common/common-exceptions.h (struct gdb_exception): Add move
6804 constructor.
6805 (struct gdb_exception_error, struct gdb_exception_quit, struct
6806 gdb_quit_bad_alloc): Change constructor to move constructor.
6807 (throw_exception): Change parameter to rvalue reference.
6808 * common/common-exceptions.c (throw_exception): Take rvalue
6809 reference.
6810 * cli/cli-interp.c (safe_execute_command): Use std::move.
6811 * breakpoint.c (insert_bp_location, location_to_sals): Use
6812 std::move.
6813
680d7fd5
TT
68142019-04-25 Tom Tromey <tromey@adacore.com>
6815
6816 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6817 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6818 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6819 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6820 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6821 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6822 guile/scm-value.c: Use unpack.
6823 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6824 gdbscm_gdb_exception.
6825 (gdbscm_throw_gdb_exception): Likewise.
6826 (struct gdbscm_gdb_exception): New.
6827 (unpack): New function.
6828 (gdbscm_wrap): Use unpack.
6829
c6fdd8b2
TT
68302019-04-25 Tom Tromey <tromey@adacore.com>
6831
6832 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6833 (gdb_rl_callback_handler): Use std::move.
6834 * common/common-exceptions.h (struct gdb_exception): Add move
6835 assignment operator.
6836 (throw_exception_sjlj): Change "exception" to const reference.
6837 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6838 (throw_exception_sjlj): Change "exception" to const reference.
6839
cc06b668
TT
68402019-04-25 Tom Tromey <tromey@adacore.com>
6841
6842 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6843 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6844 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6845 Update.
6846 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6847 Update.
6848 * mi/mi-interp.c (mi_interp::exec): Update.
6849 * linespec.c (parse_linespec): Update.
6850 * infcall.c (run_inferior_call): Update.
6851 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6852 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6853 (gdbscm_lookup_global_symbol): Update.
6854 * guile/scm-param.c (gdbscm_parameter_value): Update.
6855 * guile/scm-frame.c (gdbscm_frame_read_register)
6856 (gdbscm_frame_read_var): Update.
6857 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6858 * exec.c (try_open_exec_file): Update.
6859 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6860 (gdb_rl_callback_handler): Update.
6861 * common/common-exceptions.h (exception_none): Don't declare.
6862 * common/common-exceptions.c (exception_none): Don't define.
6863 (struct catcher) <exception>: Update.
6864 * cli/cli-interp.c (safe_execute_command): Update.
6865 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6866
cf532bd1
AT
68672019-04-25 Ali Tamur <tamur@google.com>
6868
6869 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6870 (read_attribute_value): Likewise.
6871 (dwarf2_read_addr_index): Update comment.
6872 (read_str_index): Add DW_FORM_strx.
6873 (dwarf2_string_attr): Likewise.
6874 (dwarf2_const_value_attr): Likewise.
6875 (dump_die_shallow): Likewise.
6876 (dwarf2_fetch_constant_bytes): Likewise.
6877 (skip_form_bytes): Likewise.
6878 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6879
82433e3e
SDJ
68802019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6881
6882 PR corefiles/11608
6883 PR corefiles/18187
6884 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6885 OFFSET. Verify if current mapping contains an ELF header.
6886 (linux_find_memory_regions_full): Adjust call to
6887 dump_mapping_p.
6888
723adb65
SL
68892019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6890 Kang Li <kanglictf@gmail.com>
6891
6892 PR gdb/21600
6893
6894 * dwarf2-frame.c (read_initial_length): Be consistent about using
6895 unsigned representation of length.
6896 (decode_frame_entry_1): Likewise. Check for wraparound of
6897 end pointer as well as buffer overflow.
6898
596179f7
SDJ
68992019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6900
6901 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6902 "vq".
6903
a59240a4
TT
69042019-04-24 Tom Tromey <tromey@adacore.com>
6905
6906 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6907
f872fdbb
AB
69082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6909
6910 * s12z-tdep.c (s12z_unwind_pc): Delete.
6911 (s12z_unwind_sp): Delete.
6912 (s12z_gdbarch_init): Don't register deleted functions with
6913 gdbarch.
6914
b614e6f3
AB
69152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6916
6917 * rl78-tdep.c (rl78_unwind_sp): Delete.
6918 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6919
14faed38
AB
69202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6921
6922 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6923 (xstormy16_unwind_pc): Delete.
6924 (xstormy16_dummy_id): Delete.
6925 (xstormy16_gdbarch_init): Don't register deleted functions with
6926 gdbarch.
6927
541aad8a
AB
69282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6929
6930 * vax-tdep.c (vax_unwind_pc): Delete.
6931 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6932
29222070
AB
69332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6934
6935 * v850-tdep.c (v850_unwind_sp): Delete.
6936 (v850_unwind_pc): Delete.
6937 (v850_dummy_id): Delete.
6938 (v850_gdbarch_init): Don't register deleted functions with
6939 gdbarch.
6940
0f534d76
AB
69412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6942
6943 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6944 (tilegx_unwind_pc): Delete.
6945 (tilegx_unwind_dummy_id): Delete.
6946 (tilegx_gdbarch_init): Don't register deleted functions with
6947 gdbarch.
6948
1ba7b7f9
AB
69492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6950
6951 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6952 (tic6x_dummy_id): Delete.
6953 (tic6x_gdbarch_init): Don't register deleted functions with
6954 gdbarch.
6955
d31f262c
AB
69562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6957
6958 * sparc-tdep.c (sparc_unwind_pc): Delete.
6959 (sparc32_gdbarch_init): Don't register deleted function with
6960 gdbarch.
6961
6d14d64d
AB
69622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6963
6964 * sh-tdep.c (sh_unwind_sp): Delete.
6965 (sh_unwind_pc): Delete.
6966 (sh_dummy_id): Delete.
6967 (sh_gdbarch_init): Don't register deleted functions with
6968 gdbarch.
6969
a40dde9d
AB
69702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6971
6972 * score-tdep.c (score_unwind_sp): Delete.
6973 (score_unwind_pc): Delete.
6974 (score_dummy_id): Delete.
6975 (score_gdbarch_init): Don't register deleted functions with
6976 gdbarch.
6977
47c47d69
AB
69782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6979
6980 * rx-tdep.c (rx_unwind_pc): Delete.
6981 (rx_unwind_sp): Delete.
6982 (rx_dummy_id): Delete.
6983 (rx_gdbarch_init): Don't register deleted functions with
6984 gdbarch. Update comment.
6985
833a4480
AB
69862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6987
6988 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6989 (rs6000_dummy_id): Delete.
6990 (rs6000_gdbarch_init): Don't register deleted functions with
6991 gdbarch.
6992
3f2cef49
AB
69932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6994
6995 * or1k-tdep.c (or1k_dummy_id): Delete.
6996 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6997
96acf884
AB
69982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6999
7000 * nios2-tdep.c (nios2_dummy_id): Delete.
7001 (nios2_unwind_sp): Delete.
7002 (nios2_gdbarch_init): Don't register deleted functions with
7003 gdbarch.
7004
ca0ab0aa
AB
70052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7006
7007 * nds32-tdep.c (nds32_dummy_id): Delete.
7008 (nds32_unwind_pc): Delete.
7009 (nds32_unwind_sp): Delete.
7010 (nds32_gdbarch_init): Don't register deleted functions with
7011 gdbarch.
7012
c8259044
AB
70132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7014
7015 * msp430-tdep.c (msp430_unwind_pc): Delete.
7016 (msp430_unwind_sp): Delete.
7017 (msp430_dummy_id): Delete.
7018 (msp430_gdbarch_init): Don't register deleted functions with
7019 gdbarch.
7020
27f113c8
AB
70212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7022
7023 * moxie-tdep.c (moxie_unwind_sp): Delete.
7024 (moxie_unwind_pc): Delete.
7025 (moxie_dummy_id): Delete.
7026 (moxie_gdbarch_init): Don't register deleted functions with
7027 gdbarch.
7028
aee6c3cd
AB
70292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7030
7031 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7032 (mn10300_unwind_pc): Delete.
7033 (mn10300_unwind_sp): Delete.
7034 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7035 mn10300_unwind_sp.
7036 (mn10300_frame_unwind_init): Don't register deleted functions with
7037 gdbarch.
7038
8e2b5aea
AB
70392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7040
7041 * mep-tdep.c (mep_unwind_pc): Delete.
7042 (mep_unwind_sp): Delete.
7043 (mep_dummy_id): Delete.
7044 (mep_gdbarch_init): Don't register deleted functions with
7045 gdbarch.
7046
43cf3ede
AB
70472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7048
7049 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7050 (m68hc11_unwind_sp): Delete.
7051 (m68hc11_gdbarch_init): Don't register deleted functions with
7052 gdbarch.
7053
5e79b7bb
AB
70542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7055
7056 * m32r-tdep.c (m32r_unwind_sp): Delete.
7057 (m32r_unwind_pc): Delete.
7058 (m32r_dummy_id): Delete.
7059 (m32r_gdbarch_init): Don't register deleted functions with
7060 gdbarch.
7061
89b268d8
AB
70622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7063
7064 * m32c-tdep.c (m32c_unwind_pc): Delete.
7065 (m32c_unwind_sp): Delete.
7066 (m32c_dummy_id): Delete.
7067 (m32c_gdbarch_init): Don't register deleted functions with
7068 gdbarch.
7069
946c28d2
AB
70702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7071
7072 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7073 (lm32_unwind_pc): Delete.
7074 (lm32_dummy_id): Delete.
7075 (lm32_gdbarch_init): Don't register deleted functions with
7076 gdbarch.
7077
bf12844a
AB
70782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7079
7080 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7081 (iq2000_unwind_pc): Delete.
7082 (iq2000_dummy_id): Delete.
7083 (iq2000_gdbarch_init): Don't register deleted functions with
7084 gdbarch.
7085
ecbc06d2
AB
70862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7087
7088 * nds32-tdep.c (nds32_type_align): Delete.
7089 (nds32_push_dummy_call): Use type_align instead.
7090
030197b4
AB
70912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7092
7093 * arm-tdep.c (arm_type_align): Only handle vector override case.
7094 (arm_push_dummy_call): Use type_align.
7095 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7096
b907456c
AB
70972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7098
7099 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7100 case.
7101 (pass_on_stack): Use type_align.
7102 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7103 function.
7104
9e97ba43
TT
71052019-04-23 Tom Tromey <tromey@adacore.com>
7106
7107 * dwarf2read.c (line_header::file_name_at): Remove unused
7108 overload.
7109
6892f601
TV
71102019-04-23 Tom de Vries <tdevries@suse.de>
7111
7112 PR gdb/24438
7113 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7114 invocation.
7115
336d760d
AT
7116
71172019-03-27 Ali Tamur <tamur@google.com>
7118
7119 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7120 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7121 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7122 (dwarf_expr_context::get_addr_index): Likewise
7123 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7124 (symbol_needs_eval_context::get_addr_index): Likewise
7125 (disassemble_dwarf_expression): Add DW_OP_addrx
7126 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7127 (read_cutu_die_from_dwo): Update comment
7128 (skip_one_die): Add DW_FORM_addrx
7129 (read_attribute_value): Likewise
7130 (var_decode_location): Add DW_OP_addrx
7131 (dwarf2_const_value_attr): Add DW_FORM_addrx
7132 (dump_die_shallow): Likewise
7133 (dwarf2_fetch_constant_bytes): Likewise
7134 (decode_locdesc): Add DW_OP_addrx
7135 (skip_form_bytes): Add DW_FORM_addrx
7136
ad9d13f8
AT
71372019-04-22 Ali Tamur <tamur@google.com>
7138
7139 * MAINTAINERS (Write After Approval): Add self.
7140
d70cc3ba
SM
71412019-04-22 Simon Marchi <simon.marchi@efficios.com>
7142
7143 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7144 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7145 (open_symbol_file_object): Likewise.
7146 (svr4_default_sos): Add info parameter.
7147 (svr4_read_so_list): Likewise.
7148 (svr4_current_sos_direct): Adjust functions calls to pass down
7149 info.
7150 (svr4_current_sos_1): Add info parameter.
7151 (svr4_current_sos): Call get_svr4_info, pass info down to
7152 svr4_current_sos_1.
7153 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7154 get_svr4_info.
7155 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7156 get_svr4_info.
7157 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7158 to get_svr4_info.
7159 (probes_table_remove_objfile_probes): Likewise.
7160 (register_solib_event_probe): Add info parameter.
7161 (solist_update_incremental): Pass info parameter down to
7162 svr4_read_so_list.
7163 (disable_probes_interface): Add info parameter.
7164 (svr4_handle_solib_event): Pass current_program_space to
7165 get_svr4_info. Adjust disable_probes_interface cleanup.
7166 (svr4_create_probe_breakpoints): Add info parameter, pass it
7167 down to register_solib_event_probe.
7168 (svr4_create_solib_event_breakpoints): Add info parameter,
7169 pass it down to svr4_create_probe_breakpoints.
7170 (enable_break): Pass info down to
7171 svr4_create_solib_event_breakpoints.
7172 (svr4_solib_create_inferior_hook): Pass current_program_space to
7173 get_svr4_info.
7174 (svr4_clear_solib): Likewise.
7175
7905fc35
PA
71762019-04-22 Pedro Alves <palves@redhat.com>
7177
7178 * solib-svr4.c (svr4_free_objfile_observer): New.
7179 (probe_and_action::objfile): New field.
7180 (probes_table_htab_remove_objfile_probes)
7181 (probes_table_remove_objfile_probes): New functions.
7182 (register_solib_event_probe): Add 'objfile' parameter. Store it
7183 in the new probe_and_action. Don't store the probe in 'lookup'.
7184 (svr4_create_probe_breakpoints): Pass objfile to
7185 register_solib_event_probe.
7186 (_initialize_svr4_solib): Register a free_objfile observer.
7187
fb881986
TT
71882019-04-19 Tom Tromey <tom@tromey.com>
7189
7190 * common/queue.h: Remove.
7191
8732db6c
TT
71922019-04-19 Tom Tromey <tom@tromey.com>
7193
7194 * event-loop.c: Don't include "common/queue.h".
7195
97dfbadd
TT
71962019-04-19 Tom Tromey <tom@tromey.com>
7197
7198 * remote.c (remote_target): Use delete.
7199 * remote-notif.h: Include <list>, not "common/queue.h".
7200 (notif_client_p): Remove typedef.
7201 (remote_notif_state): Add constructor, destructor, initializer.
7202 <notif_queue>: Now a std::list.
7203 (remote_notif_state_xfree): Don't declare.
7204 * remote-notif.c (remote_notif_process, handle_notification)
7205 (remote_notif_state_allocate): Update.
7206 (~remote_notif_state): Rename from remote_notif_state_xfree.
7207
cf250e36
TT
72082019-04-19 Tom Tromey <tom@tromey.com>
7209
7210 * symfile.c (reread_symbols): Update.
7211 * objfiles.c (objfile_register_static_link)
7212 (objfile_lookup_static_link): Update
7213 (~objfile) Don't delete static_links.
7214 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7215
61f4b350
TT
72162019-04-19 Tom Tromey <tom@tromey.com>
7217
7218 * type-stack.h (struct type_stack) <insert>: Constify string.
7219 * type-stack.c (type_stack::insert): Constify string.
7220 * gdbtypes.h (lookup_template_type): Update.
7221 (address_space_name_to_int): Update.
7222 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7223 const.
7224 (lookup_template_type): Make name const.
7225 * c-exp.y: Update rules.
7226 (lex_one_token, classify_name, classify_inner_name)
7227 (c_print_token): Update.
7228 * p-exp.y: Update rules.
7229 (yylex): Update.
7230 * f-exp.y: Update rules.
7231 (yylex): Update.
7232 * d-exp.y: Update rules.
7233 (lex_one_token, classify_name, classify_inner_name): Update.
7234 * parse.c (write_dollar_variable, copy_name): Return std::string.
7235 * parser-defs.h (copy_name): Change return type.
7236 * m2-exp.y: Update rules.
7237 (yylex): Update.
7238 * go-exp.y (lex_one_token): Update.
7239 Update rules.
7240 (classify_unsafe_function, classify_packaged_name)
7241 (classify_name, yylex): Update.
7242
189b8c2e
ST
72432019-04-19 Sergei Trofimovich <siarheit@google.com>
7244
7245 * configure.ac: add --enable-source-highlight switch.
7246 * configure: Regenerate.
7247 * top.c (print_gdb_version): plumb --enable-source-highlight
7248 status to "show configuration".
7249
8ecb59f8
TT
72502019-04-19 Tom Tromey <tromey@adacore.com>
7251
7252 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7253 Check ADA_TYPE_P.
7254 (empty_record, ada_template_to_fixed_record_type_1)
7255 (template_to_static_fixed_type)
7256 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7257 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7258 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7259 macros.
7260
62160ec9
TT
72612019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7262
7263 PR symtab/24423:
7264 * source.c (print_source_lines_base): Advance "iter" when a
7265 control character is seen.
7266
f2ae8bc8
PW
72672019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7268
7269 * inferior.h (struct infcall_suspend_state_deleter):
7270 Catch exception in destructor to avoid crash.
7271
d563b953
PW
72722019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7273
7274 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7275 close to the add_com "shell".
7276
dc34c897
TT
72772019-04-18 Tom Tromey <tromey@adacore.com>
7278
7279 * process-stratum-target.h (class process_stratum_target)
7280 <stratum>: Add "final".
7281
a12e5744
TT
72822019-04-17 Tom Tromey <tromey@adacore.com>
7283
7284 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7285 against nullptr before use.
7286
a7e559cc
AH
72872019-04-17 Alan Hayward <alan.hayward@arm.com>
7288
7289 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7290
c01660c6
AB
72912019-04-17 Jim Wilson <jimw@sifive.com>
7292 Andrew Burgess <andrew.burgess@embecosm.com>
7293
7294 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7295 code read might fail, assume 4-byte breakpoint in that case.
7296
4aa866af
LS
72972019-04-15 Leszek Swirski <leszeks@google.com>
7298
7299 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7300 rather than a hand-rolled POD check when checking for forced MEMORY
7301 classification.
7302
48574d91
AH
73032019-04-15 Alan Hayward <alan.hayward@arm.com>
7304
7305 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7306 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7307 function.
7308 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7309 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7310 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7311 declaration.
7312
4da037ef
AH
73132019-04-15 Alan Hayward <alan.hayward@arm.com>
7314
7315 * aarch64-linux-nat.c
7316 (aarch64_linux_nat_target::thread_architecture): Add override.
7317 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7318 each VQ.
7319
ccb8d7e8
AH
73202019-04-15 Alan Hayward <alan.hayward@arm.com>
7321
7322 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7323
35add35e
AB
73242019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7325
7326 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7327 target types of size 96-bits, add some additional comments, and
7328 check that the builtin type we found was the correct size.
7329
51196bbc
EZ
73302019-04-12 Eli Zaretskii <eliz@gnu.org>
7331
7332 * utils.c (prompt_for_continue): Don't restore the styling at the
7333 end, as applied_style has the wrong value. This fixes styling in
7334 long lists of file names that are interrupted by the "Continue?"
7335 prompt.
7336
62253a61
AB
73372019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7338
7339 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7340 * c-lang.c (c_language_defn): Likewise.
7341 (cplus_language_defn): Likewise.
7342 (asm_language_defn): Likewise.
7343 (minimal_language_defn): Likewise.
7344 * d-lang.c (d_language_defn): Likewise.
7345 * f-lang.c (f_language_defn): Likewise.
7346 * go-lang.c (go_language_defn): Likewise.
7347 * language.c (unknown_language_defn): Likewise.
7348 (auto_language_defn): Likewise.
7349 * language.h (struct language_defn): Remove la_magic field.
7350 (LANG_MAGIC): Delete.
7351 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7352 * objc-lang.c (objc_language_defn): Likewise.
7353 * opencl-lang.c (opencl_language_defn): Likewise.
7354 * p-lang.c (pascal_language_defn): Likewise.
7355 * rust-lang.c (rust_language_defn): Likewise.
7356
a9158a86
AB
73572019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7358
7359 * riscv-tdep.c (riscv_type_align): New function.
7360 (riscv_type_alignment): Delete.
7361 (riscv_arg_location): Use 'type_align'.
7362 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7363
41077b66
AB
73642019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7365
7366 * gdbtypes.c (type_align): A struct with no non-static fields also
7367 has alignment of 1.
7368
9f0272f8
AB
73692019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7370
7371 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7372 component to 0.
7373 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7374 member.
7375 (riscv_struct_info::analyse): New implementation using new
7376 analyse_inner member function.
7377 (riscv_struct_info::field_offset): New member function.
7378 (riscv_struct_info::m_offsets): New member variable.
7379 (riscv_struct_info::analyse_inner): New private member function,
7380 takes the old implementation of riscv_struct_info::analyse but
7381 extended to track field offsets.
7382 (riscv_call_arg_struct): Update the struct folding special cases
7383 to handle cases where empty C++ structs, which are non-zero
7384 length, are found.
7385 (riscv_arg_location): Initialise the length of each location, a
7386 non-zero length now indicates the location is in use.
7387 (riscv_push_dummy_call): Allow for the first location having a
7388 non-zero offset when setting up arguments.
7389 (riscv_return_value): Likewise, but for return values.
7390
02cf60c7
TT
73912019-04-11 Tom Tromey <tromey@adacore.com>
7392
7393 * utils.c (internal_vproblem): Make "msg" const.
7394
68811f8f
AH
73952019-04-11 Alan Hayward <alan.hayward@arm.com>
7396
7397 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7398 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7399 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7400 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7401
3f52fdbc
KB
74022019-04-10 Kevin Buettner <kevinb@redhat.com>
7403
7404 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7405 function.
7406 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7407 of amd64_collect_native_gregset.
7408 (amd64_linux_nat_target::store_registers): Likewise.
7409
e9ad22ee
TT
74102019-04-10 Tom Tromey <tom@tromey.com>
7411
7412 * symtab.c (lookup_global_symbol_from_objfile)
7413 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7414 * objfiles.h (class separate_debug_iterator): New.
7415 (class separate_debug_range): New.
7416 (struct objfile) <separate_debug_objfiles>: New method.
7417 (objfile_separate_debug_iterate): Don't declare.
7418 * objfiles.c (separate_debug_iterator::operator++): Rename from
7419 objfile_separate_debug_iterate.
7420 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7421 iterator.
7422 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7423 iterator.
7424
ee371134
TT
74252019-04-10 Tom Tromey <tom@tromey.com>
7426
7427 * symfile.c (reread_symbols): Remove old comment.
7428 * objfiles.c (free_all_objfiles): Fix a typo.
7429
bf227d61
TT
74302019-04-10 Tom Tromey <tom@tromey.com>
7431
7432 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7433 * minsyms.c (lookup_minimal_symbol): Use foreach.
7434 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7435 (lookup_minimal_symbol_solib_trampoline): Likewise.
7436 * symfile.c (reread_symbols): Use foreach.
7437
8dc433a0
TT
74382019-04-09 Ivan Begert <ivanbegert@gmail.com>
7439 Tom Tromey <tromey@adacore.com>
7440
7441 PR rust/24414:
7442 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7443 (rust_lex_int_test): Change "value" to be LONGEST.
7444 (rust_lex_tests): Add test for long integer literal.
7445
9ab8741a
TT
74462019-04-09 Tom Tromey <tromey@adacore.com>
7447
7448 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7449 to bool.
7450 (extended_remote_target::attach): Update.
7451 (remote_target::remote_notice_new_inferior): Update.
7452 (remote_target::add_current_inferior_and_thread): Update.
7453 * inferior.c (exit_inferior_1): Use "false".
7454 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7455
e242fd12
SM
74562019-04-09 Simon Marchi <simon.marchi@efficios.com>
7457
9ca1957f 7458 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
7459 the "start" command.
7460
2b0c8b01
KB
74612019-04-08 Kevin Buettner <kevinb@redhat.com>
7462
7463 * python/py-inferior.c (infpy_thread_from_thread_handle):
7464 Adjust comments to reflect renaming of thread_from_thread_handle
7465 to thread_from_handle. Adjust keywords. Fix type error message.
7466 (inferior_object_methods): Add thread_from_handle. Retain
7467 thread_from_thread_handle, but mark it as deprecated.
7468
50a82723
KB
74692019-04-08 Kevin Buettner <kevinb@redhat.com>
7470
7471 * gdbthread.h (find_thread_by_handle): Revise declaration.
7472 * thread.c (find_thread_by_handle): Likewise. Adjust
7473 implementation too.
7474 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7475 support for buffer objects as handles.
7476
cf63b016
KB
74772019-04-08 Kevin Buettner <kevinb@redhat.com>
7478
7479 * python/py-infthread.c (thpy_thread_handle): New function.
7480 (thread_object_methods): Register thpy_thread_handle.
7481
3d6c6204
KB
74822019-04-08 Kevin Buettner <kevinb@redhat.com>
7483
7484 * gdbthread.h (thread_to_thread_handle): Declare.
7485 * thread.c (gdbtypes.h): Include.
7486 (thread_to_thread_handle): New function.
7487
7488 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7489 (target_thread_info_to_thread_handle): Declare.
7490 * target.c (target_thread_info_to_thread_handle): New function.
7491 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7492 * target-delegates.c: Regenerate.
7493
7494 * linux-thread-db.c (class thread_db_target): Add method
7495 thread_info_to_thread_handle.
7496 (thread_db_target::thread_info_to_thread_handle): Define.
7497 * remote.c (class remote_target): Add new method
7498 thread_info_to_thread_handle.
7499 (remote_target::thread_info_to_thread_handle): Define.
7500
56be6ea8
PA
75012019-04-08 Pedro Alves <palves@redhat.com>
7502
7503 * common/common-exceptions.c (throw_exception): Don't create
7504 named object to throw; throw directly.
7505 (throw_it): Likewise. Don't initialize gdb_exception::message
7506 here, with new; pass FMT and AP to the ctor instead.
7507 * common/common-exceptions.h: Include <string>.
7508 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7509 const char *, va_list)): New ctor. Use std::make_shared.
7510 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7511 errors)): Delete.
7512 (gdb_exception_error::gdb_exception_error(enum errors, const char
7513 *, va_list)): New.
7514 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7515 Add assertion.
7516 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7517 errors)): Delete.
7518 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7519 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7520 Add assertion.
7521
eedc3f4f
TT
75222019-04-08 Tom Tromey <tom@tromey.com>
7523
7524 * valops.c (value_rtti_indirect_type): Replace throw_exception
7525 with throw.
7526 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7527 with throw.
7528 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7529 throw.
7530 * target.c (target_translate_tls_address): Replace throw_exception
7531 with throw.
7532 * stack.c (frame_apply_command_count): Replace throw_exception
7533 with throw.
7534 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7535 throw.
7536 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7537 with throw.
7538 * rs6000-tdep.c (rs6000_frame_cache)
7539 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7540 * remote.c: Replace throw_exception with throw.
7541 * record-full.c (record_full_message, record_full_wait_1)
7542 (record_full_restore): Replace throw_exception with throw.
7543 * record-btrace.c:
7544 (get_thread_current_frame_id, record_btrace_start_replaying)
7545 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7546 (cmd_record_btrace_start): Replace throw_exception with throw.
7547 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7548 throw.
7549 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7550 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7551 * linespec.c:
7552 (find_linespec_symbols): Replace throw_exception with throw.
7553 * infrun.c (displaced_step_prepare, resume): Replace
7554 throw_exception with throw.
7555 * infcmd.c (post_create_inferior): Replace throw_exception with
7556 throw.
7557 * inf-loop.c (inferior_event_handler): Replace throw_exception
7558 with throw.
7559 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7560 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7561 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7562 (get_prev_frame_always, get_frame_pc_if_available)
7563 (get_frame_address_in_block_if_available, get_frame_language):
7564 Replace throw_exception with throw.
7565 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7566 throw_exception with throw.
7567 * eval.c (fetch_subexp_value, evaluate_var_value)
7568 (evaluate_funcall, evaluate_subexp_standard): Replace
7569 throw_exception with throw.
7570 * dwarf2loc.c (call_site_find_chain)
7571 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7572 Replace throw_exception with throw.
7573 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7574 with throw.
7575 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7576 throw.
7577 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7578 * completer.c (complete_line_internal): Replace throw_exception
7579 with throw.
7580 * compile/compile-object-run.c (compile_object_run): Replace
7581 throw_exception with throw.
7582 * cli/cli-script.c (process_next_line): Replace throw_exception
7583 with throw.
7584 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7585 (btrace_enable, btrace_maint_update_pt_packets): Replace
7586 throw_exception with throw.
7587 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7588 throw_exception with throw.
7589 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7590 throw_exception with throw.
7591 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7592 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7593 * aarch64-tdep.c (aarch64_make_prologue_cache)
7594 (aarch64_make_stub_cache): Replace throw_exception with throw.
7595
26003a20
TT
75962019-04-08 Tom Tromey <tom@tromey.com>
7597
7598 * common/common-exceptions.c (throw_exception): Rename from
7599 throw_exception_cxx. Remove old copy. Make argument const.
7600 (throw_it): Create and throw exception objects directly.
7601 * common/common-exceptions.h (throw_exception): Make argument
7602 const.
7603 (struct gdb_exception_error): Add constructor.
7604 (struct gdb_exception_quit): Add constructor.
7605
d272eb37
TT
76062019-04-08 Tom Tromey <tom@tromey.com>
7607
7608 * common/common-exceptions.h (exception_rethrow): Don't declare.
7609 (TRY_SJLJ): Update comment.
7610 (TRY, CATCH, END_CATCH): Remove.
7611 * common/common-exceptions.c (exception_rethrow): Remove.
7612
230d2906
TT
76132019-04-08 Tom Tromey <tom@tromey.com>
7614
7615 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7616 Remove.
7617 (gdb_exception_error): Rename from
7618 gdb_exception_RETURN_MASK_ERROR.
7619 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7620 (gdb_quit_bad_alloc): Update.
7621 * aarch64-tdep.c: Update.
7622 * ada-lang.c: Update.
7623 * ada-typeprint.c: Update.
7624 * ada-valprint.c: Update.
7625 * amd64-tdep.c: Update.
7626 * arch-utils.c: Update.
7627 * break-catch-throw.c: Update.
7628 * breakpoint.c: Update.
7629 * btrace.c: Update.
7630 * c-varobj.c: Update.
7631 * cli/cli-cmds.c: Update.
7632 * cli/cli-interp.c: Update.
7633 * cli/cli-script.c: Update.
7634 * common/common-exceptions.c: Update.
7635 * common/new-op.c: Update.
7636 * common/selftest.c: Update.
7637 * compile/compile-c-symbols.c: Update.
7638 * compile/compile-cplus-symbols.c: Update.
7639 * compile/compile-object-load.c: Update.
7640 * compile/compile-object-run.c: Update.
7641 * completer.c: Update.
7642 * corelow.c: Update.
7643 * cp-abi.c: Update.
7644 * cp-support.c: Update.
7645 * cp-valprint.c: Update.
7646 * darwin-nat.c: Update.
7647 * disasm-selftests.c: Update.
7648 * dtrace-probe.c: Update.
7649 * dwarf-index-cache.c: Update.
7650 * dwarf-index-write.c: Update.
7651 * dwarf2-frame-tailcall.c: Update.
7652 * dwarf2-frame.c: Update.
7653 * dwarf2loc.c: Update.
7654 * dwarf2read.c: Update.
7655 * eval.c: Update.
7656 * event-loop.c: Update.
7657 * event-top.c: Update.
7658 * exec.c: Update.
7659 * f-valprint.c: Update.
7660 * fbsd-tdep.c: Update.
7661 * frame-unwind.c: Update.
7662 * frame.c: Update.
7663 * gdbtypes.c: Update.
7664 * gnu-v3-abi.c: Update.
7665 * guile/guile-internal.h: Update.
7666 * guile/scm-block.c: Update.
7667 * guile/scm-breakpoint.c: Update.
7668 * guile/scm-cmd.c: Update.
7669 * guile/scm-disasm.c: Update.
7670 * guile/scm-frame.c: Update.
7671 * guile/scm-lazy-string.c: Update.
7672 * guile/scm-math.c: Update.
7673 * guile/scm-param.c: Update.
7674 * guile/scm-ports.c: Update.
7675 * guile/scm-pretty-print.c: Update.
7676 * guile/scm-symbol.c: Update.
7677 * guile/scm-symtab.c: Update.
7678 * guile/scm-type.c: Update.
7679 * guile/scm-value.c: Update.
7680 * i386-linux-tdep.c: Update.
7681 * i386-tdep.c: Update.
7682 * inf-loop.c: Update.
7683 * infcall.c: Update.
7684 * infcmd.c: Update.
7685 * infrun.c: Update.
7686 * jit.c: Update.
7687 * language.c: Update.
7688 * linespec.c: Update.
7689 * linux-fork.c: Update.
7690 * linux-nat.c: Update.
7691 * linux-tdep.c: Update.
7692 * linux-thread-db.c: Update.
7693 * main.c: Update.
7694 * mi/mi-cmd-break.c: Update.
7695 * mi/mi-cmd-stack.c: Update.
7696 * mi/mi-interp.c: Update.
7697 * mi/mi-main.c: Update.
7698 * objc-lang.c: Update.
7699 * p-valprint.c: Update.
7700 * parse.c: Update.
7701 * ppc-linux-tdep.c: Update.
7702 * printcmd.c: Update.
7703 * python/py-arch.c: Update.
7704 * python/py-breakpoint.c: Update.
7705 * python/py-cmd.c: Update.
7706 * python/py-finishbreakpoint.c: Update.
7707 * python/py-frame.c: Update.
7708 * python/py-framefilter.c: Update.
7709 * python/py-gdb-readline.c: Update.
7710 * python/py-inferior.c: Update.
7711 * python/py-infthread.c: Update.
7712 * python/py-lazy-string.c: Update.
7713 * python/py-linetable.c: Update.
7714 * python/py-objfile.c: Update.
7715 * python/py-param.c: Update.
7716 * python/py-prettyprint.c: Update.
7717 * python/py-progspace.c: Update.
7718 * python/py-record-btrace.c: Update.
7719 * python/py-record.c: Update.
7720 * python/py-symbol.c: Update.
7721 * python/py-type.c: Update.
7722 * python/py-unwind.c: Update.
7723 * python/py-utils.c: Update.
7724 * python/py-value.c: Update.
7725 * python/python.c: Update.
7726 * record-btrace.c: Update.
7727 * record-full.c: Update.
7728 * remote-fileio.c: Update.
7729 * remote.c: Update.
7730 * riscv-tdep.c: Update.
7731 * rs6000-aix-tdep.c: Update.
7732 * rs6000-tdep.c: Update.
7733 * rust-exp.y: Update.
7734 * rust-lang.c: Update.
7735 * s390-tdep.c: Update.
7736 * selftest-arch.c: Update.
7737 * solib-dsbt.c: Update.
7738 * solib-frv.c: Update.
7739 * solib-spu.c: Update.
7740 * solib-svr4.c: Update.
7741 * solib.c: Update.
7742 * sparc64-linux-tdep.c: Update.
7743 * stack.c: Update.
7744 * symfile-mem.c: Update.
7745 * symmisc.c: Update.
7746 * target.c: Update.
7747 * thread.c: Update.
7748 * top.c: Update.
7749 * tracefile-tfile.c: Update.
7750 * tui/tui.c: Update.
7751 * typeprint.c: Update.
7752 * unittests/cli-utils-selftests.c: Update.
7753 * unittests/parse-connection-spec-selftests.c: Update.
7754 * valops.c: Update.
7755 * valprint.c: Update.
7756 * value.c: Update.
7757 * varobj.c: Update.
7758 * windows-nat.c: Update.
7759 * x86-linux-nat.c: Update.
7760 * xml-support.c: Update.
7761
a70b8144
TT
77622019-04-08 Tom Tromey <tom@tromey.com>
7763
7764 * xml-support.c: Use C++ exception handling.
7765 * x86-linux-nat.c: Use C++ exception handling.
7766 * windows-nat.c: Use C++ exception handling.
7767 * varobj.c: Use C++ exception handling.
7768 * value.c: Use C++ exception handling.
7769 * valprint.c: Use C++ exception handling.
7770 * valops.c: Use C++ exception handling.
7771 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7772 handling.
7773 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7774 * typeprint.c: Use C++ exception handling.
7775 * tui/tui.c: Use C++ exception handling.
7776 * tracefile-tfile.c: Use C++ exception handling.
7777 * top.c: Use C++ exception handling.
7778 * thread.c: Use C++ exception handling.
7779 * target.c: Use C++ exception handling.
7780 * symmisc.c: Use C++ exception handling.
7781 * symfile-mem.c: Use C++ exception handling.
7782 * stack.c: Use C++ exception handling.
7783 * sparc64-linux-tdep.c: Use C++ exception handling.
7784 * solib.c: Use C++ exception handling.
7785 * solib-svr4.c: Use C++ exception handling.
7786 * solib-spu.c: Use C++ exception handling.
7787 * solib-frv.c: Use C++ exception handling.
7788 * solib-dsbt.c: Use C++ exception handling.
7789 * selftest-arch.c: Use C++ exception handling.
7790 * s390-tdep.c: Use C++ exception handling.
7791 * rust-lang.c: Use C++ exception handling.
7792 * rust-exp.y: Use C++ exception handling.
7793 * rs6000-tdep.c: Use C++ exception handling.
7794 * rs6000-aix-tdep.c: Use C++ exception handling.
7795 * riscv-tdep.c: Use C++ exception handling.
7796 * remote.c: Use C++ exception handling.
7797 * remote-fileio.c: Use C++ exception handling.
7798 * record-full.c: Use C++ exception handling.
7799 * record-btrace.c: Use C++ exception handling.
7800 * python/python.c: Use C++ exception handling.
7801 * python/py-value.c: Use C++ exception handling.
7802 * python/py-utils.c: Use C++ exception handling.
7803 * python/py-unwind.c: Use C++ exception handling.
7804 * python/py-type.c: Use C++ exception handling.
7805 * python/py-symbol.c: Use C++ exception handling.
7806 * python/py-record.c: Use C++ exception handling.
7807 * python/py-record-btrace.c: Use C++ exception handling.
7808 * python/py-progspace.c: Use C++ exception handling.
7809 * python/py-prettyprint.c: Use C++ exception handling.
7810 * python/py-param.c: Use C++ exception handling.
7811 * python/py-objfile.c: Use C++ exception handling.
7812 * python/py-linetable.c: Use C++ exception handling.
7813 * python/py-lazy-string.c: Use C++ exception handling.
7814 * python/py-infthread.c: Use C++ exception handling.
7815 * python/py-inferior.c: Use C++ exception handling.
7816 * python/py-gdb-readline.c: Use C++ exception handling.
7817 * python/py-framefilter.c: Use C++ exception handling.
7818 * python/py-frame.c: Use C++ exception handling.
7819 * python/py-finishbreakpoint.c: Use C++ exception handling.
7820 * python/py-cmd.c: Use C++ exception handling.
7821 * python/py-breakpoint.c: Use C++ exception handling.
7822 * python/py-arch.c: Use C++ exception handling.
7823 * printcmd.c: Use C++ exception handling.
7824 * ppc-linux-tdep.c: Use C++ exception handling.
7825 * parse.c: Use C++ exception handling.
7826 * p-valprint.c: Use C++ exception handling.
7827 * objc-lang.c: Use C++ exception handling.
7828 * mi/mi-main.c: Use C++ exception handling.
7829 * mi/mi-interp.c: Use C++ exception handling.
7830 * mi/mi-cmd-stack.c: Use C++ exception handling.
7831 * mi/mi-cmd-break.c: Use C++ exception handling.
7832 * main.c: Use C++ exception handling.
7833 * linux-thread-db.c: Use C++ exception handling.
7834 * linux-tdep.c: Use C++ exception handling.
7835 * linux-nat.c: Use C++ exception handling.
7836 * linux-fork.c: Use C++ exception handling.
7837 * linespec.c: Use C++ exception handling.
7838 * language.c: Use C++ exception handling.
7839 * jit.c: Use C++ exception handling.
7840 * infrun.c: Use C++ exception handling.
7841 * infcmd.c: Use C++ exception handling.
7842 * infcall.c: Use C++ exception handling.
7843 * inf-loop.c: Use C++ exception handling.
7844 * i386-tdep.c: Use C++ exception handling.
7845 * i386-linux-tdep.c: Use C++ exception handling.
7846 * guile/scm-value.c: Use C++ exception handling.
7847 * guile/scm-type.c: Use C++ exception handling.
7848 * guile/scm-symtab.c: Use C++ exception handling.
7849 * guile/scm-symbol.c: Use C++ exception handling.
7850 * guile/scm-pretty-print.c: Use C++ exception handling.
7851 * guile/scm-ports.c: Use C++ exception handling.
7852 * guile/scm-param.c: Use C++ exception handling.
7853 * guile/scm-math.c: Use C++ exception handling.
7854 * guile/scm-lazy-string.c: Use C++ exception handling.
7855 * guile/scm-frame.c: Use C++ exception handling.
7856 * guile/scm-disasm.c: Use C++ exception handling.
7857 * guile/scm-cmd.c: Use C++ exception handling.
7858 * guile/scm-breakpoint.c: Use C++ exception handling.
7859 * guile/scm-block.c: Use C++ exception handling.
7860 * guile/guile-internal.h: Use C++ exception handling.
7861 * gnu-v3-abi.c: Use C++ exception handling.
7862 * gdbtypes.c: Use C++ exception handling.
7863 * frame.c: Use C++ exception handling.
7864 * frame-unwind.c: Use C++ exception handling.
7865 * fbsd-tdep.c: Use C++ exception handling.
7866 * f-valprint.c: Use C++ exception handling.
7867 * exec.c: Use C++ exception handling.
7868 * event-top.c: Use C++ exception handling.
7869 * event-loop.c: Use C++ exception handling.
7870 * eval.c: Use C++ exception handling.
7871 * dwarf2read.c: Use C++ exception handling.
7872 * dwarf2loc.c: Use C++ exception handling.
7873 * dwarf2-frame.c: Use C++ exception handling.
7874 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7875 * dwarf-index-write.c: Use C++ exception handling.
7876 * dwarf-index-cache.c: Use C++ exception handling.
7877 * dtrace-probe.c: Use C++ exception handling.
7878 * disasm-selftests.c: Use C++ exception handling.
7879 * darwin-nat.c: Use C++ exception handling.
7880 * cp-valprint.c: Use C++ exception handling.
7881 * cp-support.c: Use C++ exception handling.
7882 * cp-abi.c: Use C++ exception handling.
7883 * corelow.c: Use C++ exception handling.
7884 * completer.c: Use C++ exception handling.
7885 * compile/compile-object-run.c: Use C++ exception handling.
7886 * compile/compile-object-load.c: Use C++ exception handling.
7887 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7888 * compile/compile-c-symbols.c: Use C++ exception handling.
7889 * common/selftest.c: Use C++ exception handling.
7890 * common/new-op.c: Use C++ exception handling.
7891 * cli/cli-script.c: Use C++ exception handling.
7892 * cli/cli-interp.c: Use C++ exception handling.
7893 * cli/cli-cmds.c: Use C++ exception handling.
7894 * c-varobj.c: Use C++ exception handling.
7895 * btrace.c: Use C++ exception handling.
7896 * breakpoint.c: Use C++ exception handling.
7897 * break-catch-throw.c: Use C++ exception handling.
7898 * arch-utils.c: Use C++ exception handling.
7899 * amd64-tdep.c: Use C++ exception handling.
7900 * ada-valprint.c: Use C++ exception handling.
7901 * ada-typeprint.c: Use C++ exception handling.
7902 * ada-lang.c: Use C++ exception handling.
7903 * aarch64-tdep.c: Use C++ exception handling.
7904
3d6e9d23
TT
79052019-04-08 Tom Tromey <tom@tromey.com>
7906
7907 * xml-support.c (gdb_xml_parser::parse): Update.
7908 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7909 * value.c (show_convenience): Update.
7910 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7911 (test_parse_flags_qcs): Update.
7912 * thread.c (thr_try_catch_cmd): Update.
7913 * target.c (target_translate_tls_address): Update.
7914 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7915 (info_frame_command_core, frame_apply_command_count): Update.
7916 * rust-exp.y (rust_lex_exception_test): Update.
7917 * riscv-tdep.c (riscv_print_one_register_info): Update.
7918 * remote.c (remote_target::enable_btrace): Update.
7919 * record-btrace.c (record_btrace_enable_warn): Update.
7920 * python/py-utils.c (gdbpy_convert_exception): Update.
7921 * printcmd.c (do_one_display, print_variable_and_value): Update.
7922 * mi/mi-main.c (mi_print_exception): Update.
7923 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7924 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7925 * linux-nat.c (linux_nat_target::attach): Update.
7926 * linux-fork.c (class scoped_switch_fork_info): Update.
7927 * infrun.c (displaced_step_prepare): Update.
7928 * infcall.c (call_function_by_hand_dummy): Update.
7929 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7930 * gnu-v3-abi.c (print_one_vtable): Update.
7931 * frame.c (get_prev_frame_always): Update.
7932 * f-valprint.c (info_common_command_for_block): Update.
7933 * exec.c (try_open_exec_file): Update.
7934 * exceptions.c (print_exception, exception_print)
7935 (exception_fprintf, exception_print_same): Update.
7936 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7937 * dwarf-index-cache.c (index_cache::store)
7938 (index_cache::lookup_gdb_index): Update.
7939 * darwin-nat.c (maybe_cache_shell): Update.
7940 * cp-valprint.c (cp_print_value_fields): Update.
7941 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7942 (gcc_cplus_symbol_address): Update.
7943 * compile/compile-c-symbols.c (gcc_convert_symbol)
7944 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7945 * common/selftest.c: Update.
7946 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7947 a std::string.
7948 (exception_try_scope_entry, exception_try_scope_exit): Don't
7949 declare.
7950 (struct exception_try_scope): Remove.
7951 (TRY): Don't use exception_try_scope.
7952 (struct gdb_exception): Add constructor, operator=.
7953 <what>: New method.
7954 (struct gdb_exception_RETURN_MASK_ALL)
7955 (struct gdb_exception_RETURN_MASK_ERROR)
7956 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7957 (struct gdb_quit_bad_alloc): Update.
7958 * common/common-exceptions.c (exception_none): Change
7959 initializer.
7960 (struct catcher) <state, exception>: Initialize inline.
7961 <prev>: Remove member.
7962 (current_catcher): Remove.
7963 (catchers): New global.
7964 (exceptions_state_mc_init): Simplify.
7965 (catcher_pop): Remove.
7966 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7967 (try_scope_depth, exception_try_scope_entry)
7968 (exception_try_scope_exit): Remove.
7969 (throw_exception_sjlj): Update.
7970 (exception_messages, exception_messages_size): Remove.
7971 (throw_it): Simplify.
7972 (gdb_exception_sliced_copy): Remove.
7973 (throw_exception_cxx): Update.
7974 * cli/cli-script.c (script_from_file): Update.
7975 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7976 Update.
7977 * ada-valprint.c (ada_val_print): Update.
7978 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7979 (create_excep_cond_exprs): Update.
7980
c5c10118
TT
79812019-04-08 Tom Tromey <tom@tromey.com>
7982
7983 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7984 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7985 (TRY, CATCH, END_CATCH): Remove some definitions.
7986 * common/common-exceptions.c: Don't use GDB_XCPT.
7987 (catcher_list_size): Remove.
7988 (throw_exception, throw_it): Simplify.
7989
4de283e4
TT
79902019-04-05 Tom Tromey <tom@tromey.com>
7991
7992 Revert the header-sorting patch.
7993 * ft32-tdep.c: Revert.
7994 * frv-tdep.c: Revert.
7995 * frv-linux-tdep.c: Revert.
7996 * frame.c: Revert.
7997 * frame-unwind.c: Revert.
7998 * frame-base.c: Revert.
7999 * fork-child.c: Revert.
8000 * findvar.c: Revert.
8001 * findcmd.c: Revert.
8002 * filesystem.c: Revert.
8003 * filename-seen-cache.h: Revert.
8004 * filename-seen-cache.c: Revert.
8005 * fbsd-tdep.c: Revert.
8006 * fbsd-nat.h: Revert.
8007 * fbsd-nat.c: Revert.
8008 * f-valprint.c: Revert.
8009 * f-typeprint.c: Revert.
8010 * f-lang.c: Revert.
8011 * extension.h: Revert.
8012 * extension.c: Revert.
8013 * extension-priv.h: Revert.
8014 * expprint.c: Revert.
8015 * exec.h: Revert.
8016 * exec.c: Revert.
8017 * exceptions.c: Revert.
8018 * event-top.c: Revert.
8019 * event-loop.c: Revert.
8020 * eval.c: Revert.
8021 * elfread.c: Revert.
8022 * dwarf2read.h: Revert.
8023 * dwarf2read.c: Revert.
8024 * dwarf2loc.c: Revert.
8025 * dwarf2expr.h: Revert.
8026 * dwarf2expr.c: Revert.
8027 * dwarf2-frame.c: Revert.
8028 * dwarf2-frame-tailcall.c: Revert.
8029 * dwarf-index-write.h: Revert.
8030 * dwarf-index-write.c: Revert.
8031 * dwarf-index-common.c: Revert.
8032 * dwarf-index-cache.h: Revert.
8033 * dwarf-index-cache.c: Revert.
8034 * dummy-frame.c: Revert.
8035 * dtrace-probe.c: Revert.
8036 * disasm.h: Revert.
8037 * disasm.c: Revert.
8038 * disasm-selftests.c: Revert.
8039 * dictionary.c: Revert.
8040 * dicos-tdep.c: Revert.
8041 * demangle.c: Revert.
8042 * dcache.h: Revert.
8043 * dcache.c: Revert.
8044 * darwin-nat.h: Revert.
8045 * darwin-nat.c: Revert.
8046 * darwin-nat-info.c: Revert.
8047 * d-valprint.c: Revert.
8048 * d-namespace.c: Revert.
8049 * d-lang.c: Revert.
8050 * ctf.c: Revert.
8051 * csky-tdep.c: Revert.
8052 * csky-linux-tdep.c: Revert.
8053 * cris-tdep.c: Revert.
8054 * cris-linux-tdep.c: Revert.
8055 * cp-valprint.c: Revert.
8056 * cp-support.c: Revert.
8057 * cp-namespace.c: Revert.
8058 * cp-abi.c: Revert.
8059 * corelow.c: Revert.
8060 * corefile.c: Revert.
8061 * continuations.c: Revert.
8062 * completer.h: Revert.
8063 * completer.c: Revert.
8064 * complaints.c: Revert.
8065 * coffread.c: Revert.
8066 * coff-pe-read.c: Revert.
8067 * cli-out.h: Revert.
8068 * cli-out.c: Revert.
8069 * charset.c: Revert.
8070 * c-varobj.c: Revert.
8071 * c-valprint.c: Revert.
8072 * c-typeprint.c: Revert.
8073 * c-lang.c: Revert.
8074 * buildsym.c: Revert.
8075 * buildsym-legacy.c: Revert.
8076 * build-id.h: Revert.
8077 * build-id.c: Revert.
8078 * btrace.c: Revert.
8079 * bsd-uthread.c: Revert.
8080 * breakpoint.h: Revert.
8081 * breakpoint.c: Revert.
8082 * break-catch-throw.c: Revert.
8083 * break-catch-syscall.c: Revert.
8084 * break-catch-sig.c: Revert.
8085 * blockframe.c: Revert.
8086 * block.c: Revert.
8087 * bfin-tdep.c: Revert.
8088 * bfin-linux-tdep.c: Revert.
8089 * bfd-target.c: Revert.
8090 * bcache.c: Revert.
8091 * ax-general.c: Revert.
8092 * ax-gdb.h: Revert.
8093 * ax-gdb.c: Revert.
8094 * avr-tdep.c: Revert.
8095 * auxv.c: Revert.
8096 * auto-load.c: Revert.
8097 * arm-wince-tdep.c: Revert.
8098 * arm-tdep.c: Revert.
8099 * arm-symbian-tdep.c: Revert.
8100 * arm-pikeos-tdep.c: Revert.
8101 * arm-obsd-tdep.c: Revert.
8102 * arm-nbsd-tdep.c: Revert.
8103 * arm-nbsd-nat.c: Revert.
8104 * arm-linux-tdep.c: Revert.
8105 * arm-linux-nat.c: Revert.
8106 * arm-fbsd-tdep.c: Revert.
8107 * arm-fbsd-nat.c: Revert.
8108 * arm-bsd-tdep.c: Revert.
8109 * arch-utils.c: Revert.
8110 * arc-tdep.c: Revert.
8111 * arc-newlib-tdep.c: Revert.
8112 * annotate.h: Revert.
8113 * annotate.c: Revert.
8114 * amd64-windows-tdep.c: Revert.
8115 * amd64-windows-nat.c: Revert.
8116 * amd64-tdep.c: Revert.
8117 * amd64-sol2-tdep.c: Revert.
8118 * amd64-obsd-tdep.c: Revert.
8119 * amd64-obsd-nat.c: Revert.
8120 * amd64-nbsd-tdep.c: Revert.
8121 * amd64-nbsd-nat.c: Revert.
8122 * amd64-nat.c: Revert.
8123 * amd64-linux-tdep.c: Revert.
8124 * amd64-linux-nat.c: Revert.
8125 * amd64-fbsd-tdep.c: Revert.
8126 * amd64-fbsd-nat.c: Revert.
8127 * amd64-dicos-tdep.c: Revert.
8128 * amd64-darwin-tdep.c: Revert.
8129 * amd64-bsd-nat.c: Revert.
8130 * alpha-tdep.c: Revert.
8131 * alpha-obsd-tdep.c: Revert.
8132 * alpha-nbsd-tdep.c: Revert.
8133 * alpha-mdebug-tdep.c: Revert.
8134 * alpha-linux-tdep.c: Revert.
8135 * alpha-linux-nat.c: Revert.
8136 * alpha-bsd-tdep.c: Revert.
8137 * alpha-bsd-nat.c: Revert.
8138 * aix-thread.c: Revert.
8139 * agent.c: Revert.
8140 * addrmap.c: Revert.
8141 * ada-varobj.c: Revert.
8142 * ada-valprint.c: Revert.
8143 * ada-typeprint.c: Revert.
8144 * ada-tasks.c: Revert.
8145 * ada-lang.c: Revert.
8146 * aarch64-tdep.c: Revert.
8147 * aarch64-ravenscar-thread.c: Revert.
8148 * aarch64-newlib-tdep.c: Revert.
8149 * aarch64-linux-tdep.c: Revert.
8150 * aarch64-linux-nat.c: Revert.
8151 * aarch64-fbsd-tdep.c: Revert.
8152 * aarch64-fbsd-nat.c: Revert.
8153 * aarch32-linux-nat.c: Revert.
8154
d55e5aa6
TT
81552019-04-05 Tom Tromey <tom@tromey.com>
8156
8157 * ft32-tdep.c: Sort headers.
8158 * frv-tdep.c: Sort headers.
8159 * frv-linux-tdep.c: Sort headers.
8160 * frame.c: Sort headers.
8161 * frame-unwind.c: Sort headers.
8162 * frame-base.c: Sort headers.
8163 * fork-child.c: Sort headers.
8164 * findvar.c: Sort headers.
8165 * findcmd.c: Sort headers.
8166 * filesystem.c: Sort headers.
8167 * filename-seen-cache.h: Sort headers.
8168 * filename-seen-cache.c: Sort headers.
8169 * fbsd-tdep.c: Sort headers.
8170 * fbsd-nat.h: Sort headers.
8171 * fbsd-nat.c: Sort headers.
8172 * f-valprint.c: Sort headers.
8173 * f-typeprint.c: Sort headers.
8174 * f-lang.c: Sort headers.
8175 * extension.h: Sort headers.
8176 * extension.c: Sort headers.
8177 * extension-priv.h: Sort headers.
8178 * expprint.c: Sort headers.
8179 * exec.h: Sort headers.
8180 * exec.c: Sort headers.
8181 * exceptions.c: Sort headers.
8182 * event-top.c: Sort headers.
8183 * event-loop.c: Sort headers.
8184 * eval.c: Sort headers.
8185 * elfread.c: Sort headers.
8186 * dwarf2read.h: Sort headers.
8187 * dwarf2read.c: Sort headers.
8188 * dwarf2loc.c: Sort headers.
8189 * dwarf2expr.h: Sort headers.
8190 * dwarf2expr.c: Sort headers.
8191 * dwarf2-frame.c: Sort headers.
8192 * dwarf2-frame-tailcall.c: Sort headers.
8193 * dwarf-index-write.h: Sort headers.
8194 * dwarf-index-write.c: Sort headers.
8195 * dwarf-index-common.c: Sort headers.
8196 * dwarf-index-cache.h: Sort headers.
8197 * dwarf-index-cache.c: Sort headers.
8198 * dummy-frame.c: Sort headers.
8199 * dtrace-probe.c: Sort headers.
8200 * disasm.h: Sort headers.
8201 * disasm.c: Sort headers.
8202 * disasm-selftests.c: Sort headers.
8203 * dictionary.c: Sort headers.
8204 * dicos-tdep.c: Sort headers.
8205 * demangle.c: Sort headers.
8206 * dcache.h: Sort headers.
8207 * dcache.c: Sort headers.
8208 * darwin-nat.h: Sort headers.
8209 * darwin-nat.c: Sort headers.
8210 * darwin-nat-info.c: Sort headers.
8211 * d-valprint.c: Sort headers.
8212 * d-namespace.c: Sort headers.
8213 * d-lang.c: Sort headers.
8214 * ctf.c: Sort headers.
8215 * csky-tdep.c: Sort headers.
8216 * csky-linux-tdep.c: Sort headers.
8217 * cris-tdep.c: Sort headers.
8218 * cris-linux-tdep.c: Sort headers.
8219 * cp-valprint.c: Sort headers.
8220 * cp-support.c: Sort headers.
8221 * cp-namespace.c: Sort headers.
8222 * cp-abi.c: Sort headers.
8223 * corelow.c: Sort headers.
8224 * corefile.c: Sort headers.
8225 * continuations.c: Sort headers.
8226 * completer.h: Sort headers.
8227 * completer.c: Sort headers.
8228 * complaints.c: Sort headers.
8229 * coffread.c: Sort headers.
8230 * coff-pe-read.c: Sort headers.
8231 * cli-out.h: Sort headers.
8232 * cli-out.c: Sort headers.
8233 * charset.c: Sort headers.
8234 * c-varobj.c: Sort headers.
8235 * c-valprint.c: Sort headers.
8236 * c-typeprint.c: Sort headers.
8237 * c-lang.c: Sort headers.
8238 * buildsym.c: Sort headers.
8239 * buildsym-legacy.c: Sort headers.
8240 * build-id.h: Sort headers.
8241 * build-id.c: Sort headers.
8242 * btrace.c: Sort headers.
8243 * bsd-uthread.c: Sort headers.
8244 * breakpoint.h: Sort headers.
8245 * breakpoint.c: Sort headers.
8246 * break-catch-throw.c: Sort headers.
8247 * break-catch-syscall.c: Sort headers.
8248 * break-catch-sig.c: Sort headers.
8249 * blockframe.c: Sort headers.
8250 * block.c: Sort headers.
8251 * bfin-tdep.c: Sort headers.
8252 * bfin-linux-tdep.c: Sort headers.
8253 * bfd-target.c: Sort headers.
8254 * bcache.c: Sort headers.
8255 * ax-general.c: Sort headers.
8256 * ax-gdb.h: Sort headers.
8257 * ax-gdb.c: Sort headers.
8258 * avr-tdep.c: Sort headers.
8259 * auxv.c: Sort headers.
8260 * auto-load.c: Sort headers.
8261 * arm-wince-tdep.c: Sort headers.
8262 * arm-tdep.c: Sort headers.
8263 * arm-symbian-tdep.c: Sort headers.
8264 * arm-pikeos-tdep.c: Sort headers.
8265 * arm-obsd-tdep.c: Sort headers.
8266 * arm-nbsd-tdep.c: Sort headers.
8267 * arm-nbsd-nat.c: Sort headers.
8268 * arm-linux-tdep.c: Sort headers.
8269 * arm-linux-nat.c: Sort headers.
8270 * arm-fbsd-tdep.c: Sort headers.
8271 * arm-fbsd-nat.c: Sort headers.
8272 * arm-bsd-tdep.c: Sort headers.
8273 * arch-utils.c: Sort headers.
8274 * arc-tdep.c: Sort headers.
8275 * arc-newlib-tdep.c: Sort headers.
8276 * annotate.h: Sort headers.
8277 * annotate.c: Sort headers.
8278 * amd64-windows-tdep.c: Sort headers.
8279 * amd64-windows-nat.c: Sort headers.
8280 * amd64-tdep.c: Sort headers.
8281 * amd64-sol2-tdep.c: Sort headers.
8282 * amd64-obsd-tdep.c: Sort headers.
8283 * amd64-obsd-nat.c: Sort headers.
8284 * amd64-nbsd-tdep.c: Sort headers.
8285 * amd64-nbsd-nat.c: Sort headers.
8286 * amd64-nat.c: Sort headers.
8287 * amd64-linux-tdep.c: Sort headers.
8288 * amd64-linux-nat.c: Sort headers.
8289 * amd64-fbsd-tdep.c: Sort headers.
8290 * amd64-fbsd-nat.c: Sort headers.
8291 * amd64-dicos-tdep.c: Sort headers.
8292 * amd64-darwin-tdep.c: Sort headers.
8293 * amd64-bsd-nat.c: Sort headers.
8294 * alpha-tdep.c: Sort headers.
8295 * alpha-obsd-tdep.c: Sort headers.
8296 * alpha-nbsd-tdep.c: Sort headers.
8297 * alpha-mdebug-tdep.c: Sort headers.
8298 * alpha-linux-tdep.c: Sort headers.
8299 * alpha-linux-nat.c: Sort headers.
8300 * alpha-bsd-tdep.c: Sort headers.
8301 * alpha-bsd-nat.c: Sort headers.
8302 * aix-thread.c: Sort headers.
8303 * agent.c: Sort headers.
8304 * addrmap.c: Sort headers.
8305 * ada-varobj.c: Sort headers.
8306 * ada-valprint.c: Sort headers.
8307 * ada-typeprint.c: Sort headers.
8308 * ada-tasks.c: Sort headers.
8309 * ada-lang.c: Sort headers.
8310 * aarch64-tdep.c: Sort headers.
8311 * aarch64-ravenscar-thread.c: Sort headers.
8312 * aarch64-newlib-tdep.c: Sort headers.
8313 * aarch64-linux-tdep.c: Sort headers.
8314 * aarch64-linux-nat.c: Sort headers.
8315 * aarch64-fbsd-tdep.c: Sort headers.
8316 * aarch64-fbsd-nat.c: Sort headers.
8317 * aarch32-linux-nat.c: Sort headers.
8318
699bd4cf
TT
83192019-04-04 Tom Tromey <tom@tromey.com>
8320
8321 * varobj.c (varobj_create): Update.
8322 * rust-exp.y (struct rust_parser) <update_innermost_block,
8323 lookup_symbol>: New methods.
8324 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8325 Rename.
8326 (rust_parser::rust_lookup_type)
8327 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8328 * printcmd.c (display_command, do_one_display): Update.
8329 * parser-defs.h (struct parser_state) <parser_state>: Add
8330 "tracker" parameter.
8331 (block_tracker): New member.
8332 (class innermost_block_tracker) <innermost_block_tracker>: Add
8333 "types" parameter.
8334 <reset>: Remove method.
8335 (innermost_block): Don't declare.
8336 (null_post_parser): Update.
8337 * parse.c (innermost_block): Remove global.
8338 (write_dollar_variable): Update.
8339 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8340 Remove "tracker_types" parameter.
8341 (parse_expression): Add "tracker" parameter.
8342 (parse_expression_for_completion): Update.
8343 (null_post_parser): Add "tracker" parameter.
8344 * p-exp.y: Update rules.
8345 * m2-exp.y: Update rules.
8346 * language.h (struct language_defn) <la_post_parser>: Add
8347 "tracker" parameter.
8348 * go-exp.y: Update rules.
8349 * f-exp.y: Update rules.
8350 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8351 parameter.
8352 * d-exp.y: Update rules.
8353 * c-exp.y: Update rules.
8354 * breakpoint.c (set_breakpoint_condition): Create an
8355 innermost_block_tracker.
8356 (watch_command_1): Likewise.
8357 * ada-lang.c (resolve): Add "tracker" parameter.
8358 (resolve_subexp): Likewise.
8359 * ada-exp.y (write_var_from_sym): Update.
8360
dac43e32
TT
83612019-04-04 Tom Tromey <tom@tromey.com>
8362
8363 * type-stack.h: New file.
8364 * type-stack.c: New file.
8365 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8366 type-stack.h.
8367 (insert_into_type_stack, insert_type, push_type, push_type_int)
8368 (insert_type_address_space, pop_type, pop_type_int)
8369 (pop_typelist, pop_type_stack, append_type_stack)
8370 (push_type_stack, get_type_stack, push_typelist)
8371 (follow_type_instance_flags, follow_types): Don't declare.
8372 * parse.c (type_stack): Remove global.
8373 (parse_exp_in_context): Update.
8374 (insert_into_type_stack, insert_type, push_type, push_type_int)
8375 (insert_type_address_space, pop_type, pop_type_int)
8376 (pop_typelist, pop_type_stack, append_type_stack)
8377 (push_type_stack, get_type_stack, push_typelist)
8378 (follow_type_instance_flags, follow_types): Remove (moved to
8379 type-stack.c).
8380 * f-exp.y (type_stack): New global.
8381 Update rules.
8382 (push_kind_type, f_parse): Update.
8383 * d-exp.y (type_stack): New global.
8384 Update rules.
8385 (d_parse): Update.
8386 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8387 Update rules.
8388 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8389 (HFILES_NO_SRCDIR): Add type-stack.h.
8390
2a612529
TT
83912019-04-04 Tom Tromey <tom@tromey.com>
8392
8393 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8394 (rust_parser::convert_ast_to_expression, rust_parse)
8395 (rust_lex_test_completion, rust_lex_tests): Update.
8396 * parser-defs.h (struct expr_completion_state): New.
8397 (struct parser_state) <parser_state>: Add completion parameter.
8398 <mark_struct_expression, mark_completion_tag>: New methods.
8399 <parse_completion, m_completion_state>: New members.
8400 (prefixify_expression, null_post_parser): Update.
8401 (mark_struct_expression, mark_completion_tag): Don't declare.
8402 * parse.c (parse_completion, expout_last_struct)
8403 (expout_tag_completion_type, expout_completion_name): Remove
8404 globals.
8405 (parser_state::mark_struct_expression)
8406 (parser_state::mark_completion_tag): Now methods.
8407 (prefixify_expression): Add last_struct parameter.
8408 (prefixify_subexp): Likewise.
8409 (parse_exp_1): Update.
8410 (parse_exp_in_context): Add cstate parameter. Update.
8411 (parse_expression_for_completion): Create an
8412 expr_completion_state.
8413 (null_post_parser): Add "completion" parameter.
8414 * p-exp.y: Update rules.
8415 (yylex): Update.
8416 * language.h (struct language_defn) <la_post_parser>: Add
8417 "completing" parameter.
8418 * go-exp.y: Update rules.
8419 (lex_one_token): Update.
8420 * expression.h (parse_completion): Don't declare.
8421 * d-exp.y: Update rules.
8422 (lex_one_token): Update rules.
8423 * c-exp.y: Update rules.
8424 (lex_one_token): Update.
8425 * ada-lang.c (resolve): Add "parse_completion" parameter.
8426 (resolve_subexp): Likewise.
8427 (ada_resolve_function): Likewise.
8428
43476f0b
TT
84292019-04-04 Tom Tromey <tom@tromey.com>
8430
8431 * parser-defs.h (struct parser_state) <start_arglist,
8432 end_arglist>: New methods.
8433 <arglist_len, m_funcall_chain>: New members.
8434 (arglist_len, start_arglist, end_arglist): Don't declare.
8435 * parse.c (arglist_len, funcall_chain): Remove global.
8436 (start_arglist, end_arglist): Remove functions.
8437 (parse_exp_in_context): Update.
8438 * p-exp.y: Update rules.
8439 * m2-exp.y: Update rules.
8440 * go-exp.y: Update rules.
8441 * f-exp.y: Update rules.
8442 * d-exp.y: Update rules.
8443 * c-exp.y: Update rules.
8444
5776fca3
TT
84452019-04-04 Tom Tromey <tom@tromey.com>
8446
8447 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8448 lex_operator, push_back>: New methods.
8449 Update all rules.
8450 (rust_parser::lex_hex, lex_escape): Rename and update.
8451 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8452 (rust_parser::lex_operator): Rename and update.
8453 (rust_parser::lex_number, rustyylex, rustyyerror)
8454 (rust_lex_test_init, rust_lex_test_sequence)
8455 (rust_lex_test_push_back, rust_lex_tests): Update.
8456 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8457 parameter.
8458 <lexptr, prev_lexptr>: New members.
8459 (lexptr, prev_lexptr): Don't declare.
8460 * parse.c (lexptr, prev_lexptr): Remove globals.
8461 (parse_exp_in_context): Update.
8462 * p-exp.y (yylex, yyerror): Update.
8463 * m2-exp.y (parse_number, yylex, yyerror): Update.
8464 * go-exp.y (lex_one_token, yyerror): Update.
8465 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8466 * d-exp.y (lex_one_token, yyerror): Update.
8467 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8468 (lex_one_token, yyerror): Update.
8469 * ada-lex.l (YY_INPUT): Update.
8470 (rewind_to_char): Update.
8471 * ada-exp.y (yyerror): Update.
8472
8621b685
TT
84732019-04-04 Tom Tromey <tom@tromey.com>
8474
8475 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8476 * parser-defs.h (struct parser_state) <parser_state>: Add new
8477 parameter.
8478 <comma_terminates>: New member.
8479 (comma_terminates): Don't declare global.
8480 * parse.c (comma_terminates): Remove global.
8481 (parse_exp_in_context): Update.
8482 * p-exp.y (yylex): Update.
8483 * m2-exp.y (yylex): Update.
8484 * go-exp.y (lex_one_token): Update.
8485 * f-exp.y (yylex): Update.
8486 * d-exp.y (lex_one_token): Update.
8487 * c-exp.y (lex_one_token): Update.
8488 * ada-lex.l: Update.
8489
28aaf3fd
TT
84902019-04-04 Tom Tromey <tom@tromey.com>
8491
8492 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8493 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8494 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8495 * parser-defs.h (paren_depth): Don't declare.
8496 * parse.c (paren_depth): Remove global.
8497 (parse_exp_in_context): Update.
8498 * p-exp.y (paren_depth): New global.
8499 (pascal_parse): Initialize it.
8500 * m2-exp.y (paren_depth): New global.
8501 (m2_parse): Initialize it.
8502 * go-exp.y (paren_depth): New global.
8503 (go_parse): Initialize it.
8504 * f-exp.y (paren_depth): New global.
8505 (f_parse): Initialize it.
8506 * d-exp.y (paren_depth): New global.
8507 (d_parse): Initialize it.
8508 * c-exp.y (paren_depth): New global.
8509 (c_parse): Initialize it.
8510 * ada-lex.l (paren_depth): New global.
8511 (lexer_init): Initialize it.
8512
1e58a4a4
TT
85132019-04-04 Tom Tromey <tom@tromey.com>
8514
8515 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8516 (rust_parser::convert_ast_to_type)
8517 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8518 * parser-defs.h (struct parser_state) <parser_state>: Add
8519 parameters. Initialize new members.
8520 <expression_context_block, expression_context_pc>: New members.
8521 * parse.c (expression_context_block, expression_context_pc):
8522 Remove globals.
8523 (parse_exp_in_context): Update.
8524 * p-exp.y: Update all rules.
8525 (yylex): Update.
8526 * m2-exp.y: Update all rules.
8527 (yylex): Update.
8528 * go-exp.y (yylex): Update.
8529 * f-exp.y (yylex): Update.
8530 * d-exp.y: Update all rules.
8531 (yylex): Update.
8532 * c-exp.y: Update all rules.
8533 (lex_one_token, classify_name, yylex, c_parse): Update.
8534 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8535
37eedb39
TT
85362019-04-04 Tom Tromey <tom@tromey.com>
8537
8538 * gdbarch.h, gdbarch.c: Rebuild.
8539 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8540 * stap-probe.h:
8541 (struct stap_parse_info): Replace "parser_state" with
8542 "expr_builder".
8543 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8544 (parser_state): New class.
8545 * parse.c (expr_builder): Rename.
8546 (expr_builder::release): Rename.
8547 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8548 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8549 (write_exp_elt_longcst, write_exp_elt_floatcst)
8550 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8551 (write_exp_string_vector, write_exp_bitstring)
8552 (write_exp_msymbol, mark_struct_expression)
8553 (write_dollar_variable)
8554 (insert_type_address_space, increase_expout_size): Replace
8555 "parser_state" with "expr_builder".
8556 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8557 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8558 "parser_state" with "expr_builder".
8559
73923d7e
TT
85602019-04-04 Tom Tromey <tom@tromey.com>
8561
8562 * rust-exp.y: Replace "parse_language" with method call.
8563 * p-exp.y:
8564 (yylex): Replace "parse_language" with method call.
8565 * m2-exp.y:
8566 (yylex): Replace "parse_language" with method call.
8567 * go-exp.y (classify_name): Replace "parse_language" with method
8568 call.
8569 * f-exp.y (yylex): Replace "parse_language" with method call.
8570 * d-exp.y (lex_one_token): Replace "parse_language" with method
8571 call.
8572 * c-exp.y:
8573 (lex_one_token, classify_name, yylex): Replace "parse_language"
8574 with method call.
8575 * ada-exp.y (find_primitive_type, type_char)
8576 (type_system_address): Replace "parse_language" with method call.
8577
fa9f5be6
TT
85782019-04-04 Tom Tromey <tom@tromey.com>
8579
8580 * rust-exp.y: Replace "parse_gdbarch" with method call.
8581 * parse.c (write_dollar_variable, insert_type_address_space):
8582 Replace "parse_gdbarch" with method call.
8583 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8584 call.
8585 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8586 call.
8587 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8588 "parse_gdbarch" with method call.
8589 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8590 with method call.
8591 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8592 "parse_gdbarch" with method call.
8593 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8594 "parse_gdbarch" with method call.
8595 * c-exp.y (parse_type, parse_number, classify_name): Replace
8596 "parse_gdbarch" with method call.
8597 * ada-lex.l: Replace "parse_gdbarch" with method call.
8598 * ada-exp.y (parse_type, find_primitive_type, type_char)
8599 (type_system_address): Replace "parse_gdbarch" with method call.
8600
1201a264
TT
86012019-04-04 Tom Tromey <tom@tromey.com>
8602
8603 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8604 * stap-probe.c (stap_parse_argument): Update.
8605 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8606 initial_size parameter.
8607 * rust-exp.y (rust_lex_tests): Update.
8608 * parse.c (parser_state): Update.
8609 (parse_exp_in_context): Update.
8610 * parser-defs.h (struct parser_state) <parser_state>: Remove
8611 "initial_size" parameter.
8612
e3980ce2
TT
86132019-04-04 Tom Tromey <tom@tromey.com>
8614
8615 * parser-defs.h (increase_expout_size): Don't declare.
8616 * parse.c (increase_expout_size): Now static.
8617
e9f8e3f1
TS
86182019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8619
8620 * gnu-nat.c (gnu_nat_target::wait): Fix
8621 target_waitstatus_to_string call.
8622
d7df6549
AB
86232019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8624
8625 * eval.c (evaluate_subexp_standard): Handle internal functions
8626 during Fortran function call handling.
8627
8bdc1658
AB
86282019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8629
8630 * NEWS: Mention new internal functions.
8631 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8632 (read_base_type): Use dwarf2_init_complex_target_type.
8633 * value.c (creal_internal_fn): New function.
8634 (cimag_internal_fn): New function.
8635 (_initialize_values): Register new internal functions.
8636
c29705b7
PW
86372019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8638
8639 * infrun.c (stop_all_threads): If debug_infrun, always
8640 trace the wait status after wait_one, using
8641 target_waitstatus_to_string and target_pid_to_str.
8642 (handle_inferior_event): Replace various trace of
8643 wait status kind by a single trace.
8644 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8645 wait status kind image by target_waitstatus_to_string.
8646 * target/waitstatus.c (target_waitstatus_to_string): Fix
8647 obsolete comment.
8648
05caa1d2
TT
86492019-04-01 Tom Tromey <tromey@adacore.com>
8650
8651 PR symtab/23331:
8652 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8653
9d1447e0
SDJ
86542019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8655 Pedro Alves <palves@redhat.com>
8656
8657 * top.c (quit_force): Call 'finalize_values'.
8658 * value.c (finalize_values): New function.
8659 * value.h (finalize_values): Declare.
8660
7734102d
EZ
86612019-03-30 Eli Zaretskii <eliz@gnu.org>
8662
8663 * NEWS: Announce $_gdb_major and $_gdb_minor.
8664
8665 * top.c (init_gdb_version_vars): New function.
8666 (gdb_init): Call init_gdb_version_vars.
8667
188e1fa9
TT
86682019-03-29 Tom Tromey <tromey@adacore.com>
8669
8670 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8671 help text. Remove dead code.
8672
2880242d
KS
86732019-03-29 Keith Seitz <keiths@redhat.com>
8674
8675 From Siddhesh Poyarekar:
8676 * f-lang.h (f77_get_upperbound): Return LONGEST.
8677 (f77_get_lowerbound): Likewise.
8678 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8679 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8680 print them.
8681 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8682 plongest to format print it.
8683 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8684 (f77_get_upperbound): Likewise.
8685 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8686 LOWER_BOUND to LONGEST.
8687 (f77_create_arrayprint_offset_tbl): Likewise.
8688
cc1defb1
KS
86892019-03-29 Keith Seitz <keiths@redhat.com>
8690
8691 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8692 %s/pulongest for TYPE_LENGTH instead of %d in format
8693 strings.
8694 * ada-typerint.c (ada_print_type): Likewise.
8695 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8696 * compile/compile-c-support.c (generate_register_struct): Likewise.
8697 * gdbtypes.c (recursive_dump_type): Likewise.
8698 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8699 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8700 instead of %d in format strings.
8701 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8702 to std::min to ULONGEST.
8703 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8704 instead of %d in format strings.
8705 * tracepoint.c (info_scope_command): Likewise.
8706 * typeprint.c (print_offset_data::update)
8707 (print_offset_data::finish): Likewise.
8708 * xtensa-tdep.c (xtensa_store_return_value)
8709 (xtensa_push_dummy_call): Likewise.
8710
e432ccf1
JT
87112019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8712
8713 * windows-nat.c (display_selector): Fixed format specifications
8714 for 64-bit Cygwin.
8715
65d2b333
PW
87162019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8717
8718 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8719
f489207e
SL
87202019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8721
8722 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8723 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8724 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8725 (nios2_linux_init_abi): Install it.
8726
bffa1015
AH
87272019-03-28 Alan Hayward <alan.hayward@arm.com>
8728
8729 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8730
fc96163a
AH
87312019-03-28 Alan Hayward <alan.hayward@arm.com>
8732
8733 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8734
20dc7e9b
PW
87352019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8736 Tom Tromey <tromey@adacore.com>
8737
8738 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8739
7f5331a8
JB
87402019-03-26 Joel Brobecker <brobecker@adacore.com>
8741
8742 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8743 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8744 method to compute the bounds of range types. Also print "[evaluated]"
8745 if the bounds' values come from a dynamic evaluation.
8746
18c77628
AB
87472019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8748
8749 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8750 whitespace when pretty printing is on.
8751
53c973f2
AH
87522019-03-26 Alan Hayward <alan.hayward@arm.com>
8753
e79be6e5 8754 * ppc-linux-nat.c: Add include.
53c973f2 8755
d851aa71
AH
87562019-03-26 Alan Hayward <alan.hayward@arm.com>
8757
e79be6e5 8758 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 8759
2fe7bab7
AH
87602019-03-26 Alan Hayward <alan.hayward@arm.com>
8761
e79be6e5 8762 * arm-linux-nat.c: Add include.
2fe7bab7 8763
068ef30e
SM
87642019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8765
8766 * source-cache.c (source_cache::get_source_lines): Re-read
8767 fullname after calling open_source_file.
8768
81a24d04
JB
87692019-03-25 John Baldwin <jhb@FreeBSD.org>
8770
8771 * NEWS: Mention TLS support for FreeBSD.
8772
79e7ae11
TT
87732019-03-25 Tom Tromey <tromey@adacore.com>
8774
8775 * minsyms.c (BUNCH_SIZE): Update comment.
8776 (~minimal_symbol_reader): Remove old comment.
8777 (compact_minimal_symbols): Update comment.
8778 (minimal_symbol_reader::install): Remove old comment. Update
8779 other comments.
8780
d45963c2
AH
87812019-03-25 Alan Hayward <alan.hayward@arm.com>
8782
8783 * s390-linux-nat.c: Add include.
8784
0f83012e
AH
87852019-03-25 Alan Hayward <alan.hayward@arm.com>
8786
8787 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8788 Call linux_get_hwcap.
8789 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8790 Likewise.
8791 (aarch64_linux_get_hwcap): Remove function.
8792 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8793 declaration.
8794 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8795 linux_get_hwcap.
8796 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8797 * linux-tdep.c (linux_get_hwcap): Add function.
8798 (linux_get_hwcap2): Likewise.
8799 * linux-tdep.h (linux_get_hwcap): Add declaration.
8800 (linux_get_hwcap2): Likewise.
8801 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8802 (ppc_linux_get_hwcap2): Likewise.
8803 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8804 linux_get_hwcap.
8805 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8806 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8807 (ppc_linux_nat_target::read_description): Likewise.
8808 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8809 * s390-linux-nat.c: Likewise.
8810 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8811
6640a367
TT
88122019-03-24 Tom Tromey <tom@tromey.com>
8813
8814 * ada-lang.c (standard_lookup): Simplify initialization.
8815 (ada_lookup_symbol_nonlocal): Simplify return.
8816 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8817 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8818 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8819 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8820 initialization.
8821 * solib.c (solib_global_lookup): Simplify.
8822 * symtab.c (null_block_symbol): Remove.
8823 (symbol_cache_lookup): Simplify returns.
8824 (lookup_language_this): Simplify returns.
8825 (lookup_symbol_aux): Simplify return.
8826 (lookup_local_symbol): Simplify returns.
8827 (lookup_global_symbol_from_objfile): Simplify return.
8828 (lookup_symbol_in_objfile_symtabs)
8829 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8830 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8831 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8832 * cp-namespace.c (cp_lookup_bare_symbol)
8833 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8834 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8835 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8836 (cp_lookup_symbol_via_imports): Simplify initialization.
8837 (find_symbol_in_baseclass): Likewise.
8838 * symtab.h (null_block_symbol): Remove.
8839 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8840 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8841 (d_lookup_symbol_module): Likewise.
8842 (find_symbol_in_baseclass): Simplify initialization.
8843
a930ebcd
TT
88442019-03-24 Tom Tromey <tom@tromey.com>
8845
8846 * expression.h: Don't include symtab.h.
8847 (struct block): Forward declare.
8848
582942f4
TT
88492019-03-24 Tom Tromey <tom@tromey.com>
8850
8851 * c-exp.y (typebase): Remove casts.
8852 * gdbtypes.c (lookup_unsigned_typename, )
8853 (lookup_signed_typename): Remove cast.
8854 * eval.c (parse_to_comma_and_eval): Remove cast.
8855 * parse.c (write_dollar_variable): Remove cast.
8856 * block.h (struct block) <superblock>: Now const.
8857 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8858 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8859 (map_block): Make "block" const.
8860 * symfile.h (struct quick_symbol_functions)
8861 <map_matching_symbols>: Constify block argument to "callback".
8862 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8863 const.
8864 (find_pc_sect_compunit_symtab): Make "b" const.
8865 (find_symbol_at_address): Likewise.
8866 (search_symbols): Likewise.
8867 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8868 (dw2_debug_names_lookup_symbol): Likewise.
8869 (dw2_map_matching_symbols): Update.
8870 * p-valprint.c (pascal_val_print): Remove "block".
8871 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8872 (aux_add_nonlocal_symbols): Make "block" const.
8873 (resolve_subexp): Remove cast.
8874 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8875 const.
8876 (iterate_over_file_blocks): Likewise.
8877 * f-exp.y (%union) <bval>: Remove.
8878 * coffread.c (patch_opaque_types): Make "b" const.
8879 * spu-tdep.c (spu_catch_start): Make "block" const.
8880 * c-valprint.c (print_unpacked_pointer): Remove "block".
8881 * symmisc.c (dump_symtab_1): Make "b" const.
8882 (block_depth): Make "block" const.
8883 * d-exp.y (%union) <bval>: Remove.
8884 * cp-support.h (cp_lookup_rtti_type): Update.
8885 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8886 * psymtab.c (psym_lookup_symbol): Make "block" const.
8887 (maintenance_check_psymtabs): Make "b" const.
8888 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8889 (enumerate_locals, enumerate_args): Update.
8890 * python/py-symtab.c (stpy_global_block): Make "block" const.
8891 (stpy_static_block): Likewise.
8892 * inline-frame.c (block_starting_point_at): Make "new_block"
8893 const.
8894 * block.c (find_block_in_blockvector): Make return type const.
8895 (blockvector_for_pc_sect): Make "b" const.
8896 (find_block_in_blockvector): Make "b" const.
8897
7ad417dd
TT
88982019-03-23 Tom Tromey <tom@tromey.com>
8899
8900 * varobj.c (varobj_create): Update.
8901 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8902 * printcmd.c (display_command, do_one_display): Don't reset
8903 innermost_block.
8904 * parser-defs.h (enum innermost_block_tracker_type): Move to
8905 expression.h.
8906 (innermost_block): Update comment.
8907 * parse.c (parse_exp_1): Add tracker_types parameter.
8908 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8909 tracker_types parameter. Reset innermost_block.
8910 (parse_exp_in_context): Remove.
8911 (parse_expression_for_completion): Update.
8912 * objfiles.c (~objfile): Don't reset expression_context_block or
8913 innermost_block.
8914 * expression.h (enum innermost_block_tracker_type): Move from
8915 parser-defs.h.
8916 (parse_exp_1): Add tracker_types parameter.
8917 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8918 reset innermost_block.
8919
b366c208
TT
89202019-03-23 Tom Tromey <tom@tromey.com>
8921
8922 * objfiles.h: Include bcache.h.
8923
9bb9b2f9
TT
89242019-03-23 Tom Tromey <tom@tromey.com>
8925
8926 * linespec.c (get_current_search_block): Use
8927 scoped_restore_current_language.
8928 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8929
59c28372
AH
89302019-03-22 Alan Hayward <alan.hayward@arm.com>
8931 Jiong Wang <jiong.wang@arm.com>
8932
8933 * aarch64-linux-tdep.c
8934 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8935 section.
8936 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8937
17e116a7
AH
89382019-03-22 Alan Hayward <alan.hayward@arm.com>
8939 Jiong Wang <jiong.wang@arm.com>
8940
8941 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8942 instructions.
8943 (aarch64_analyze_prologue_test): Add PACIASP test.
8944 (aarch64_prologue_prev_register): Unmask PC value.
8945
11e1b75f
AH
89462019-03-22 Alan Hayward <alan.hayward@arm.com>
8947 Jiong Wang <jiong.wang@arm.com>
8948
8949 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8950 (aarch64_dwarf2_prev_register): Unmask PC value.
8951 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8952 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8953 DW_CFA_AARCH64_negate_ra_state.
8954 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8955
34dcc7cf
AH
89562019-03-22 Alan Hayward <alan.hayward@arm.com>
8957 Jiong Wang <jiong.wang@arm.com>
8958
8959 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8960 registers.
8961 (aarch64_pseudo_register_name): Likewise.
8962 (aarch64_pseudo_register_type): Likewise.
8963 (aarch64_pseudo_register_reggroup_p): Likewise.
8964 (aarch64_gdbarch_init): Add pauth registers.
8965 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8966 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8967 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8968 (struct gdbarch_tdep): Add regnum for ra_state.
8969
1ef53e6b
AH
89702019-03-22 Alan Hayward <alan.hayward@arm.com>
8971 Jiong Wang <jiong.wang@arm.com>
8972
8973 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8974
76bed0fd
AH
89752019-03-22 Alan Hayward <alan.hayward@arm.com>
8976 Jiong Wang <jiong.wang@arm.com>
8977
8978 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8979 function.
8980 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8981 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8982 (aarch64_gdbarch_init): Add puth registers.
8983 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8984 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8985 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8986
ee4fbcfa
AH
89872019-03-22 Alan Hayward <alan.hayward@arm.com>
8988 Jiong Wang <jiong.wang@arm.com>
8989
8990 * aarch64-linux-nat.c
8991 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8992 * aarch64-linux-tdep.c
8993 (aarch64_linux_core_read_description): Likewise.
8994 (aarch64_linux_get_hwcap): New function.
8995 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8996 (aarch64_linux_get_hwcap): New declaration.
8997
6dc0ebde
AH
89982019-03-22 Alan Hayward <alan.hayward@arm.com>
8999 Jiong Wang <jiong.wang@arm.com>
9000
9001 * aarch64-linux-nat.c
9002 (aarch64_linux_nat_target::read_description): Add pauth param.
9003 * aarch64-linux-tdep.c
9004 (aarch64_linux_core_read_description): Likewise.
9005 * aarch64-tdep.c (struct target_desc): Add in pauth.
9006 (aarch64_read_description): Add pauth param.
9007 (aarch64_gdbarch_init): Likewise.
9008 * aarch64-tdep.h (aarch64_read_description): Likewise.
9009 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9010 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9011 * features/Makefile: Add new files.
9012 * features/aarch64-pauth.c: New file.
9013 * features/aarch64-pauth.xml: New file.
9014
595915c1
TT
90152019-03-20 Tom Tromey <tromey@adacore.com>
9016
9017 * infrun.c (handle_inferior_event): Rename from
9018 handle_inferior_event_1. Create a scoped_value_mark.
9019 (handle_inferior_event): Remove.
9020
4c7d57e7
TT
90212019-03-19 Tom Tromey <tromey@adacore.com>
9022
9023 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9024 * infrun.h (print_stop_event): Add "displays" parameter.
9025 * infrun.c (print_stop_event): Add "displays" parameter.
9026
cb246234
PA
90272019-03-19 Pedro Alves <palves@redhat.com>
9028
9029 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9030 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9031 to -1. Fix TABs vs spaces.
9032 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9033 * tui/tui-out.h (tui_ui_out) Add intro comments.
9034 <m_line, m_start_of_line>: In-class initialize, and add describing
9035 comment.
9036
3a0e45b2
AH
90372019-03-18 Alan Hayward <alan.hayward@arm.com>
9038
9039 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9040 variable names.
9041 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9042
5371b850
PA
90432019-03-18 Pedro Alves <palves@redhat.com>
9044 Eli Zaretskii <eliz@gnu.org>
9045
9046 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9047 m_line and m_start_of_line.
9048
b17c4cd0
EZ
90492019-03-18 Eli Zaretskii <eliz@gnu.org>
9050
9051 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9052 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9053 it returns a newline. This fixes a regression in TU mode, whereby
9054 the next line is output on the same screen line as the user input.
9055
4bd56d18
TT
90562019-03-18 Tom Tromey <tromey@adacore.com>
9057
9058 * minsyms.c (minimal_symbol_reader::install): Remove call to
9059 obstack_blank.
9060
55c10aca
PA
90612019-03-18 Pedro Alves <palves@redhat.com>
9062
9063 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9064 New globals.
9065 (apply_style): New, factored out from ...
9066 (apply_ansi_escape): ... this. Handle reverse video mode.
9067 (tui_set_reverse_mode): New function.
9068 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9069 * tui/tui-winsource.c (tui_show_source_line): Use
9070 tui_set_reverse_mode instead of setting A_STANDOUT.
9071 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9072 New setter methods.
9073
647bb750
HD
90742019-03-18 Hannes Domani <ssbssa@yahoo.de>
9075
9076 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9077 Handle tabs.
9078
bff8c71f
TT
90792019-03-18 Tom Tromey <tromey@adacore.com>
9080
9081 * ada-lang.c (empty_array): Add "high" parameter.
9082 (ada_evaluate_subexp): Update.
9083
58785d98
ST
90842019-03-17 Sergei Trofimovich <siarheit@google.com>
9085
9086 * unittests/string_view-selftests.c: Define
9087 _initialize_string_view_selftests unconditionally.
9088
d4cbef22
ВМ
90892019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9090
9091 PR gdb/24350
9092 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9093
fce4c071
ВМ
90942019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9095
9096 PR gdb/24351
9097 * windows-nat.c (display_selector): Fix format specifiers.
9098
f7f0a123
EZ
90992019-03-17 Eli Zaretskii <eliz@gnu.org>
9100
9101 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9102 tui_refill_source_window instead of tui_refresh_win, to update the
9103 current execution line. This fixes redisplay of the current line
9104 when stepping through the code with "next" or "step".
9105
ab42892f
EZ
91062019-03-16 Eli Zaretskii <eliz@gnu.org>
9107
9108 * source-cache.c (source_cache::get_source_lines): Call
9109 find_source_lines to initialize s->nlines. This fixes vertical
9110 scrolling of TUI source window when the DOWN arrow is pressed.
9111
8d8c087f
PW
91122019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9113
9114 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9115 linux-thread-db.c (_initialize_thread_db): Likewise.
9116
798e1c30
EZ
91172019-03-16 Eli Zaretskii <eliz@gnu.org>
9118
9119 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9120 wclrtoeol in tui_show_source_line". This reverts changes made in
9121 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9122
eefba3da
TT
91232019-03-15 Tom Tromey <tom@tromey.com>
9124
9125 * symtab.h (struct minimal_symbol): Derive from
9126 general_symbol_info.
9127 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9128 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9129 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9130 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9131 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9132 (MSYMBOL_SEARCH_NAME): Update.
9133 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9134 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9135 * minsyms.c (minimal_symbol_reader::record_full): Update.
9136
0de2420c
TT
91372019-03-15 Tom Tromey <tom@tromey.com>
9138
9139 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9140
042d75e4
TT
91412019-03-15 Tom Tromey <tom@tromey.com>
9142
9143 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9144 unique_xmalloc_ptr.
9145 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9146 Update.
9147 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9148 (build_minimal_symbol_hash_tables)
9149 (minimal_symbol_reader::install): Update.
9150
db92718b
TT
91512019-03-15 Tom Tromey <tom@tromey.com>
9152
9153 * symtab.c (create_demangled_names_hash): Update.
9154 (symbol_set_names): Update.
9155 * objfiles.h (struct objfile_per_bfd_storage)
9156 <demangled_names_hash>: Now an htab_up.
9157 * objfiles.c (objfile_per_bfd_storage): Simplify.
9158
d6797f46
TT
91592019-03-15 Tom Tromey <tom@tromey.com>
9160
9161 * objfiles.h (struct objfile_per_bfd_storage): Declare
9162 destructor.
9163 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9164 New.
9165 (get_objfile_bfd_data): Use new. Don't initialize
9166 language_of_main.
9167 (free_objfile_per_bfd_storage): Remove.
9168 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9169
741d7538
TT
91702019-03-15 Tom Tromey <tom@tromey.com>
9171
9172 * symfile.c (reread_symbols): Update.
9173 * objfiles.c (objfile::objfile): Update.
9174 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9175 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9176 comment.
9177 (minimal_symbol_reader::install): Update.
9178 (terminate_minimal_symbol_table): Remove.
9179 * jit.c (jit_object_close_impl): Update.
9180
788c80d1
TT
91812019-03-15 Tom Tromey <tom@tromey.com>
9182
9183 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9184 initializations.
9185
1b7a07cb
TT
91862019-03-15 Tom Tromey <tom@tromey.com>
9187
9188 * objfiles.h (struct objfile_per_bfd_storage)
9189 <demangled_hash_languages>: Now a bitset.
9190 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9191 (lookup_minimal_symbol): Update.
9192
3db066bc
TT
91932019-03-15 Tom Tromey <tom@tromey.com>
9194
9195 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9196 Don't return the symbol.
9197 * coffread.c (record_minimal_symbol): Use record_full.
9198
3fff2c37
EZ
91992019-03-14 Eli Zaretskii <eliz@gnu.org>
9200
9201 The MS-Windows port of ncurses fails to switch to a color pair if
9202 one or both of the colors are the implicit default colors. This
9203 change records the default colors when TUI is initialized, and
9204 then specifies them explicitly when a color pair uses the default
9205 colors. This allows color styling in TUI mode on MS-Windows.
9206
9207 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9208 ncurses_norm_attr.
9209 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9210 colors in ncurses_norm_attr.
9211 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9212 "none", replace it with the default color recorded in
9213 ncurses_norm_attr.
9214
3b336828
TT
92152019-03-14 Tom Tromey <tromey@adacore.com>
9216
9217 * source-cache.h (class source_cache) <get_source_lines>: Return
9218 std::string.
9219 * source-cache.c (source_cache::extract_lines): Handle case where
9220 first_pos==npos. Return std::string.
9221 (source_cache::get_source_lines): Update.
9222
d085f989
TT
92232019-03-14 Tom Tromey <tromey@adacore.com>
9224
9225 * NEWS: Add item for "style sources" commands.
9226 * source-cache.c (source_cache::get_source_lines): Check
9227 source_styling.
9228 * cli/cli-style.c (source_styling): New global.
9229 (_initialize_cli_style): Add "style sources" commands.
9230 (show_style_sources): New function.
9231 * cli/cli-style.h (source_styling): Declare.
9232
6f11e682
TT
92332019-03-14 Pedro Alves <palves@redhat.com>
9234 Tom Tromey <tromey@adacore.com>
9235
9236 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9237 * tui/tui-winsource.c (tui_refill_source_window): New function,
9238 from...
9239 (tui_horizontal_source_scroll): ... here. Move some logic.
9240 * cli/cli-style.c (set_style_enabled): Notify new observable.
9241 * tui/tui-hooks.c (tui_redisplay_source): New function.
9242 (tui_attach_detach_observers): Attach or detach
9243 tui_redisplay_source.
9244 * observable.h (source_styling_changed): New observable.
9245 * observable.c: Define source_styling_changed observable.
9246
a068643d
TT
92472019-03-13 Tom Tromey <tromey@adacore.com>
9248
9249 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9250 (i386_gnu_nat_target::store_registers): Update.
9251 * target-debug.h (target_debug_print_std_string): New macro.
9252 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9253 * windows-tdep.c (display_one_tib): Update.
9254 * tui/tui-stack.c (tui_make_status_line): Update.
9255 * top.c (print_inferior_quit_action): Update.
9256 * thread.c (thr_try_catch_cmd): Update.
9257 (add_thread_with_info): Update.
9258 (thread_target_id_str): Update.
9259 (thr_try_catch_cmd): Update.
9260 (thread_command): Update.
9261 (thread_find_command): Update.
9262 * record-btrace.c (record_btrace_target::info_record)
9263 (record_btrace_resume_thread, record_btrace_target::resume)
9264 (record_btrace_cancel_resume, record_btrace_step_thread)
9265 (record_btrace_target::wait, record_btrace_target::wait)
9266 (record_btrace_target::wait, record_btrace_target::stop): Update.
9267 * progspace.c (print_program_space): Update.
9268 * process-stratum-target.c
9269 (process_stratum_target::thread_address_space): Update.
9270 * linux-fork.c (linux_fork_mourn_inferior)
9271 (detach_checkpoint_command, info_checkpoints_command)
9272 (linux_fork_context): Update.
9273 (linux_fork_detach): Update.
9274 (class scoped_switch_fork_info): Update.
9275 (delete_checkpoint_command): Update.
9276 * infrun.c (follow_fork_inferior): Update.
9277 (follow_fork_inferior): Update.
9278 (proceed_after_vfork_done): Update.
9279 (handle_vfork_child_exec_or_exit): Update.
9280 (follow_exec): Update.
9281 (displaced_step_prepare_throw): Update.
9282 (displaced_step_restore): Update.
9283 (start_step_over): Update.
9284 (resume_1): Update.
9285 (clear_proceed_status_thread): Update.
9286 (proceed): Update.
9287 (print_target_wait_results): Update.
9288 (do_target_wait): Update.
9289 (context_switch): Update.
9290 (stop_all_threads): Update.
9291 (restart_threads): Update.
9292 (finish_step_over): Update.
9293 (handle_signal_stop): Update.
9294 (switch_back_to_stepped_thread): Update.
9295 (keep_going_pass_signal): Update.
9296 (print_exited_reason): Update.
9297 (normal_stop): Update.
9298 * inferior.c (inferior_pid_to_str): Change return type.
9299 (print_selected_inferior): Update.
9300 (add_inferior): Update.
9301 (detach_inferior): Update.
9302 * dummy-frame.c (fprint_dummy_frames): Update.
9303 * dcache.c (dcache_info_1): Update.
9304 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9305 (btrace_fetch, btrace_clear): Update.
9306 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9307 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9308 type.
9309 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9310 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9311 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9312 * gdbarch.c, gdbarch.h: Rebuild.
9313 * gdbarch.sh (core_pid_to_str): Change return type.
9314 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9315 return type.
9316 (windows_nat_target::pid_to_str): Change return type.
9317 (windows_delete_thread): Update.
9318 (windows_nat_target::attach): Update.
9319 (windows_nat_target::files_info): Update.
9320 * target-delegates.c: Rebuild.
9321 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9322 return type.
9323 (sol_thread_target::pid_to_str): Change return type.
9324 * remote.c (class remote_target) <pid_to_str>: Change return
9325 type.
9326 (remote_target::pid_to_str): Change return type.
9327 (extended_remote_target::attach, remote_target::remote_stop_ns)
9328 (remote_target::remote_notif_remove_queued_reply)
9329 (remote_target::push_stop_reply, remote_target::disable_btrace):
9330 Update.
9331 (extended_remote_target::attach): Update.
9332 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9333 type.
9334 (gdbsim_target::pid_to_str): Change return type.
9335 * ravenscar-thread.c (struct ravenscar_thread_target)
9336 <pid_to_str>: Change return type.
9337 (ravenscar_thread_target::pid_to_str): Change return type.
9338 * procfs.c (class procfs_target) <pid_to_str>: Change return
9339 type.
9340 (procfs_target::pid_to_str): Change return type.
9341 (procfs_target::attach): Update.
9342 (procfs_target::detach): Update.
9343 (procfs_target::fetch_registers): Update.
9344 (procfs_target::store_registers): Update.
9345 (procfs_target::wait): Update.
9346 (procfs_target::files_info): Update.
9347 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9348 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9349 return type.
9350 (nto_procfs_target::pid_to_str): Change return type.
9351 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9352 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9353 return type.
9354 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9355 (exit_lwp): Update.
9356 (attach_proc_task_lwp_callback, get_detach_signal)
9357 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9358 (linux_nat_target::resume, wait_lwp, stop_callback)
9359 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9360 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9361 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9362 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9363 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9364 type.
9365 (inf_ptrace_target::attach): Update.
9366 (inf_ptrace_target::files_info): Update.
9367 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9368 type.
9369 (go32_nat_target::pid_to_str): Change return type.
9370 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9371 (gnu_nat_target::wait): Update.
9372 (gnu_nat_target::wait): Update.
9373 (gnu_nat_target::resume): Update.
9374 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9375 (fbsd_nat_target::wait): Update.
9376 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9377 type.
9378 (darwin_nat_target::attach): Update.
9379 * corelow.c (class core_target) <pid_to_str>: Change return type.
9380 (core_target::pid_to_str): Change return type.
9381 * target.c (normal_pid_to_str): Change return type.
9382 (default_pid_to_str): Likewise.
9383 (target_pid_to_str): Change return type.
9384 (target_translate_tls_address): Update.
9385 (target_announce_detach): Update.
9386 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9387 return type.
9388 (bsd_uthread_target::pid_to_str): Change return type.
9389 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9390 type.
9391 (bsd_kvm_target::pid_to_str): Change return type.
9392 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9393 return type.
9394 (aix_thread_target::pid_to_str): Change return type.
9395 * target.h (struct target_ops) <pid_to_str>: Change return type.
9396 (target_pid_to_str, normal_pid_to_str): Likewise.
9397 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9398 type.
9399 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9400 type.
9401 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9402 return type.
9403 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9404 type.
9405 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9406 type.
9407 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9408 return type.
9409
b4be1b06
SM
94102019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9411
9412 * NEWS: Mention that the new default MI version is 3. Mention
9413 changes to the output of commands and events that deal with
9414 multi-location breakpoints.
9415 * breakpoint.c: Include "mi/mi-out.h".
9416 (print_one_breakpoint): Change output syntax if using MI version
9417 >= 3.
9418 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9419 New.
9420 (mi_multi_location_breakpoint_output_fixed): New.
9421 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9422 (mi_cmd_fix_multi_location_breakpoint_output): New.
9423 (mi_multi_location_breakpoint_output_fixed): New.
9424 * mi/mi-cmds.c (mi_cmds): Register command
9425 -fix-multi-location-breakpoint-output.
9426 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9427 interpreter "mi".
9428
8e5e5494
SM
94292019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9430
9431 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9432 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9433 instantiate mi_ui_out based on interpreter name.
9434 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9435 * mi/mi-main.c (mi_load_progress): Likewise.
9436
197df35e
JB
94372019-03-12 John Baldwin <jhb@FreeBSD.org>
9438
9439 * NEWS: Combine separate "New targets" sections for 8.3.
9440
8399425f
JB
94412019-03-12 John Baldwin <jhb@FreeBSD.org>
9442
9443 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9444 (ppcfbsd_init_abi): Install gdbarch
9445 "fetch_tls_load_module_address" and "get_thread_local_address"
9446 methods.
9447
b0f87ed0
JB
94482019-03-12 John Baldwin <jhb@FreeBSD.org>
9449
9450 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9451 (riscv_fbsd_init_abi): Install gdbarch
9452 "fetch_tls_load_module_address" and "get_thread_local_address"
9453 methods.
9454
ce25aa57
JB
94552019-03-12 John Baldwin <jhb@FreeBSD.org>
9456
9457 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9458 (i386fbsd_init_abi): Install gdbarch
9459 "fetch_tls_load_module_address" and "get_thread_local_address"
9460 methods.
9461
f5424cfa
JB
94622019-03-12 John Baldwin <jhb@FreeBSD.org>
9463
9464 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9465 (amd64fbsd_init_abi): Install gdbarch
9466 "fetch_tls_load_module_address" and "get_thread_local_address"
9467 methods.
9468
945f3901
JB
94692019-03-12 John Baldwin <jhb@FreeBSD.org>
9470
9471 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9472 (struct fbsd_pspace_data): New type.
9473 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9474 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9475 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9476 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9477 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9478
ef0bd204
JB
94792019-03-12 John Baldwin <jhb@FreeBSD.org>
9480
9481 * gdbtypes.c (lookup_struct_elt): New function.
9482 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9483 * gdbtypes.h (struct struct_elt): New type.
9484 (lookup_struct_elt): New prototype.
9485
36c53a02
JB
94862019-03-12 John Baldwin <jhb@FreeBSD.org>
9487
9488 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9489 remove disabled code block.
9490
6e056c81
JB
94912019-03-12 John Baldwin <jhb@FreeBSD.org>
9492
9493 * gdbarch.sh (get_thread_local_address): New method.
9494 * gdbarch.h, gdbarch.c: Regenerate.
9495 * target.c (target_translate_tls_address): Use
9496 gdbarch_get_thread_local_address if present instead of
9497 target::get_thread_local_address.
9498
cd250a18
JB
94992019-03-12 John Baldwin <jhb@FreeBSD.org>
9500
9501 * target.h (target::get_thread_local_address): Update comment.
9502
df22c1e5
JB
95032019-03-12 John Baldwin <jhb@FreeBSD.org>
9504
9505 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9506 objfile->separate_debug_objfile_backlink if not NULL.
9507
dd6876c9
JB
95082019-03-12 John Baldwin <jhb@FreeBSD.org>
9509
9510 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9511 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9512 (amd64bsd_store_inferior_registers): Likewise.
9513 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9514 Enable segment base registers.
9515 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9516 PT_GETFSBASE and PT_GETGSBASE.
9517 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9518 PT_SETGSBASE.
9519 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9520 segment base registers.
9521 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9522
1163a4b7
JB
95232019-03-12 John Baldwin <jhb@FreeBSD.org>
9524
9525 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9526 Update calls to i386_target_description to add 'segments'
9527 parameter.
9528 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9529 add segment base registers.
9530 * arch/i386.c (i386_create_target_description): Add 'segments'
9531 parameter to enable segment base registers.
9532 * arch/i386.h (i386_create_target_description): Likewise.
9533 * features/i386/32bit-segments.xml: New file.
9534 * features/i386/32bit-segments.c: Generate.
9535 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9536 call to i386_target_description to add 'segments' parameter.
9537 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9538 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9539 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9540 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9541 if feature is present.
9542 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9543 Add 'segments' parameter to call to i386_target_description.
9544 (i386_target_description): Add 'segments' parameter to enable
9545 segment base registers.
9546 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9547 to call to i386_target_description.
9548 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9549 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9550 Define I386_NUM_REGS.
9551 (i386_target_description): Add 'segments' parameter to enable
9552 segment base registers.
9553
3a350822
EZ
95542019-03-12 Eli Zaretskii <eliz@gnu.org>
9555
9556 PR/24325
9557 * source-cache.c: #undef open and close, to avoid unresolved
9558 externals during linking.
9559
ffdd69cf
TT
95602019-03-12 Tom Tromey <tromey@adacore.com>
9561
9562 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9563 const. Add initializers.
9564 (_initialize_remote): Don't initialize ptid globals.
9565
ec148c57
PA
95662019-03-12 Pedro Alves <palves@redhat.com>
9567
9568 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9569
32764270
PA
95702019-03-12 Pedro Alves <palves@redhat.com>
9571
9572 * cp-name-parser.y (main): Remove unused 'len' variable.
9573
17547186
TT
95742019-03-12 Tom Tromey <tromey@adacore.com>
9575
9576 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9577 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9578
d3a70e03
TT
95792019-03-12 Tom Tromey <tromey@adacore.com>
9580
9581 * linux-nat.c (iterate_over_lwps): Update.
9582 (stop_callback): Remove parameter.
9583 (stop_wait_callback, detach_callback, resume_set_callback)
9584 (select_singlestep_lwp_callback, set_ignore_sigint)
9585 (status_callback, resumed_callback, resume_clear_callback)
9586 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9587 data parameter.
9588 (linux_nat_target::detach, linux_nat_target::resume)
9589 (linux_stop_and_wait_all_lwps, select_event_lwp)
9590 (linux_nat_filter_event, linux_nat_wait_1)
9591 (linux_nat_target::kill, linux_nat_target::stop)
9592 (linux_nat_target::stop): Update.
9593 (linux_nat_resume_callback): Change type.
9594 (resume_stopped_resumed_lwps, count_events_callback)
9595 (select_event_lwp_callback): Likewise.
9596 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9597 * arm-linux-nat.c (struct update_registers_data): Remove.
9598 (update_registers_callback): Change type.
9599 (arm_linux_insert_hw_breakpoint1): Update.
9600 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9601 parameter.
9602 (x86_linux_dr_set_addr): Update.
9603 (x86_linux_dr_set_control): Update.
9604 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9605 (iterate_over_lwps): Use gdb::function_view.
9606 * nat/aarch64-linux-hw-point.c (struct
9607 aarch64_dr_update_callback_param): Remove.
9608 (debug_reg_change_callback): Change type.
9609 (aarch64_notify_debug_reg_change): Update.
9610 * s390-linux-nat.c (s390_refresh_per_info): Update.
9611
82cb27ff
TT
96122019-03-11 Tom Tromey <tromey@adacore.com>
9613
9614 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9615 redundant assignment to "this_cu".
9616
568c0683
SM
96172019-03-08 Simon Marchi <simon.marchi@efficios.com>
9618
9619 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9620
f09ce22d
SM
96212019-03-08 Simon Marchi <simon.marchi@efficios.com>
9622
9623 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9624 from...
9625 (rank_one_type): ... this.
9626
595f96a9
SM
96272019-03-08 Simon Marchi <simon.marchi@efficios.com>
9628
9629 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9630 from...
9631 (rank_one_type): ... this.
9632
2598a94b
SM
96332019-03-08 Simon Marchi <simon.marchi@efficios.com>
9634
9635 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9636 from...
9637 (rank_one_type): ... this.
9638
7f17b20d
SM
96392019-03-08 Simon Marchi <simon.marchi@efficios.com>
9640
9641 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9642 from...
9643 (rank_one_type): ... this.
9644
2c509035
SM
96452019-03-08 Simon Marchi <simon.marchi@efficios.com>
9646
9647 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9648 from...
9649 (rank_one_type): ... this.
9650
0dd322dc
SM
96512019-03-08 Simon Marchi <simon.marchi@efficios.com>
9652
9653 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9654 from...
9655 (rank_one_type): ... this.
9656
41ea4728
SM
96572019-03-08 Simon Marchi <simon.marchi@efficios.com>
9658
9659 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9660 from...
9661 (rank_one_type): ... this.
9662
793cd1d2
SM
96632019-03-08 Simon Marchi <simon.marchi@efficios.com>
9664
9665 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9666 from...
9667 (rank_one_type): ... this.
9668
34910087
SM
96692019-03-08 Simon Marchi <simon.marchi@efficios.com>
9670
9671 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9672 from...
9673 (rank_one_type): ... this.
9674
f1f832d6
SM
96752019-03-08 Simon Marchi <simon.marchi@efficios.com>
9676
9677 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9678 from...
9679 (rank_one_type): ... this.
9680
b9f4512f
SM
96812019-03-08 Simon Marchi <simon.marchi@efficios.com>
9682
9683 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9684 from...
9685 (rank_one_type): ... this.
9686
9293fc63
SM
96872019-03-08 Simon Marchi <simon.marchi@efficios.com>
9688
9689 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9690 from...
9691 (rank_one_type): ... this.
9692
e3abbe7e
PW
96932019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9694
9695 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9696 inferior-events' shows the example events.
9697
e4adb939
EZ
96982019-03-08 Eli Zaretskii <eliz@gnu.org>
9699
9700 Support styling on native MS-Windows console
9701
9702 PR/24315
9703 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9704 on MS-Windows if $TERM is not defined.
9705
9706 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9707
9708 * posix-hdep.c (gdb_console_fputs):
9709 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9710 functions.
9711 * ui-file.h (gdb_console_fputs): Add prototype.
9712
9713 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9714 back to fputs only if the former returns zero.
9715
25629dfd
TT
97162019-03-07 Tom Tromey <tom@tromey.com>
9717
9718 * symmisc.c (print_symbol_bcache_statistics): Update.
9719 (print_objfile_statistics): Update.
9720 * symfile.c (allocate_symtab): Update.
9721 * stabsread.c: Don't include bcache.h.
9722 * psymtab.h (struct psymbol_bcache): Don't declare.
9723 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9724 (psymbol_bcache_init, psymbol_bcache_free)
9725 (psymbol_bcache_get_bcache): Don't declare.
9726 * psymtab.c (struct psymbol_bcache): Remove.
9727 (psymtab_storage::psymtab_storage): Update.
9728 (psymtab_storage::~psymtab_storage): Update.
9729 (psymbol_bcache_init, psymbol_bcache_free)
9730 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9731 (add_psymbol_to_bcache): Update.
9732 (allocate_psymtab): Update.
9733 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9734 macro_cache>: No longer pointers.
9735 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9736 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9737 * macrotab.c (macro_bcache): Update.
9738 * macroexp.c: Don't include bcache.h.
9739 * gdbtypes.c (check_types_worklist): Update.
9740 (types_deeply_equal): Remove TRY/CATCH. Update.
9741 * elfread.c (elf_symtab_read): Update.
9742 * dwarf2read.c: Don't include bcache.h.
9743 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9744 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9745 (print_bcache_statistics, bcache_memory_used): Don't declare.
9746 (struct bcache): Move from bcache.c. Add constructor, destructor,
9747 methods. Rename all data members.
9748 * bcache.c (struct bcache): Move to bcache.h.
9749 (bcache::expand_hash_table): Rename from expand_hash_table.
9750 (bcache): Remove.
9751 (bcache::insert): Rename from bcache_full.
9752 (bcache::compare): Rename from bcache_compare.
9753 (bcache_xmalloc): Remove.
9754 (bcache::~bcache): Rename from bcache_xfree.
9755 (bcache::print_statistics): Rename from print_bcache_statistics.
9756 (bcache::memory_used): Rename from bcache_memory_used.
9757
fe726667
PA
97582019-03-07 Pedro Alves <palves@redhat.com>
9759
9760 * infrun.c (normal_stop): Also check for
9761 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9762
7584bb30
AB
97632019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9764
9765 * f-lang.c (value_from_host_double): Moved to...
9766 * value.c (value_from_host_double): ...here.
9767 * value.h (value_from_host_double): Declare.
9768 * guile/scm-math.c (vlscm_convert_typed_number): Use
9769 value_from_host_double.
9770 (vlscm_convert_number): Likewise.
9771 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9772 * python/py-value.c (convert_value_from_python): Likewise.
9773
a7b1986e
TT
97742019-03-06 Tom Tromey <tom@tromey.com>
9775
9776 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9777
0ccf4211
TT
97782019-03-06 Tom Tromey <tom@tromey.com>
9779
9780 * utils.h (free_current_contents): Don't declare.
9781 * utils.c (free_current_contents): Remove.
9782
fe7b42e5
TT
97832019-03-06 Tom Tromey <tom@tromey.com>
9784
9785 * top.c (quit_force): Update.
9786 * main.c (captured_command_loop): Update.
9787 * common/new-op.c (operator new): Update.
9788 * common/common-exceptions.c (struct catcher)
9789 <save_cleanup_chain>: Remove member.
9790 (exceptions_state_mc_init): Update.
9791 (exception_try_scope_entry): Return nullptr.
9792 (exception_try_scope_exit, exception_rethrow)
9793 (throw_exception_sjlj, throw_exception_cxx): Update.
9794 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9795 (all_cleanups, do_cleanups, discard_cleanups)
9796 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9797 (restore_cleanups, restore_final_cleanups): Don't declare.
9798 (do_final_cleanups): Remove parameter.
9799 * common/cleanups.c (cleanup_chain, make_cleanup)
9800 (make_cleanup_dtor, all_cleanups, do_cleanups)
9801 (discard_my_cleanups, discard_cleanups)
9802 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9803 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9804 (null_cleanup): Remove.
9805 (do_final_cleanups): Remove parameter.
9806
c6321f19
TT
98072019-03-06 Tom Tromey <tom@tromey.com>
9808
9809 * remote.c (remote_target::remote_parse_stop_reply): Use
9810 unique_xmalloc_ptr.
9811
61b30099
TT
98122019-03-06 Tom Tromey <tom@tromey.com>
9813
9814 * stabsread.c (struct stabs_field_info): Rename from field_info.
9815 <list, fnlist>: Add initializers.
9816 <obstack>: New member.
9817 (read_member_functions, read_struct_fields, read_baseclasses):
9818 Allocate on obstack. Don't use cleanups.
9819 (read_one_struct_field, read_member_functions, read_struct_fields)
9820 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9821 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9822 (read_struct_type): Update.
9823
6cceac94
TT
98242019-03-06 Tom Tromey <tom@tromey.com>
9825
9826 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9827 * common/filestuff.h (make_cleanup_close): Don't declare.
9828 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9829 Remove.
9830
72412762
TT
98312019-03-06 Tom Tromey <tom@tromey.com>
9832
9833 * solib-aix.c: Use make_scope_exit.
9834
2b6ff1c0
TT
98352019-03-06 Tom Tromey <tom@tromey.com>
9836
9837 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9838 Use make_scope_exit.
9839
d01c5877
TT
98402019-03-06 Tom Tromey <tom@tromey.com>
9841
9842 * solib-svr4.c (disable_probes_interface): Remove parameter.
9843 (svr4_handle_solib_event): Use make_scope_exit.
9844
32603266
TT
98452019-03-06 Tom Tromey <tom@tromey.com>
9846
9847 * remote.c (struct stop_reply_deleter): Remove.
9848 (stop_reply_up): Update.
9849 (struct stop_reply): Derive from notif_event. Don't typedef.
9850 <regcache>: Now a std::vector.
9851 (stop_reply_xfree): Remove.
9852 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9853 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9854 (remote_target::discard_pending_stop_replies): Use delete.
9855 (remote_target::remote_parse_stop_reply): Update.
9856 (remote_target::process_stop_reply): Update.
9857 * remote-notif.h (struct notif_event): Add virtual destructor.
9858 Remove "dtr" member.
9859 (struct notif_client) <alloc_event>: Return a unique_ptr.
9860 (notif_event_xfree): Don't declare.
9861 (notif_event_up): New typedef.
9862 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9863 (notif_event_xfree, do_notif_event_xfree): Remove.
9864 (remote_notif_state_xfree): Update.
9865
9799571e
TT
98662019-03-06 Tom Tromey <tom@tromey.com>
9867
9868 * infrun.c (displaced_step_clear_cleanup): Now a
9869 forward_scope_exit type.
9870 (displaced_step_prepare_throw): Update.
9871 (displaced_step_fixup): Update.
9872
09e3c4ca
TT
98732019-03-06 Tom Tromey <tom@tromey.com>
9874
9875 * inferior.h (class inferior): Update comment.
9876 * gdbthread.h (class thread_info): Update comment.
9877
e2a03548
TT
98782019-03-06 Joel Brobecker <brobecker@adacore.com>
9879 Tom Tromey <tom@tromey.com>
9880
9881 * stabsread.h (struct stab_section_list): Remove.
9882 (coffstab_build_psymtabs): Update.
9883 * dbxread.c (symbuf_sections): Now a std::vector.
9884 (sect_idx): New global.
9885 (fill_symbuf): Update.
9886 (coffstab_build_psymtabs): Change type of stabsects parameter.
9887 Update.
9888 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9889 std::vector.
9890 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9891 (coff_locate_sections): Update.
9892 (coff_symfile_read): Remove cleanups. Update.
9893 (init_stringtab): Add storage parameter.
9894 (free_stringtab, free_stringtab_cleanup): Remove.
9895 (init_lineno): Add storage parameter.
9896 (free_linetab, free_linetab_cleanup): Remove.
9897
b7e60d85
PA
98982019-03-06 Pedro Alves <palves@redhat.com>
9899
9900 * linux-fork.c (fork_info::clobber_regs): Delete.
9901 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9902 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9903 comment. Adjust.
9904 (scoped_switch_fork_info::scoped_switch_fork_info)
9905 (checkpoint_command, linux_fork_context): Adjust
9906 fork_save_infrun_state calls.
9907
e52c971f
PA
99082019-03-06 Pedro Alves <palves@redhat.com>
9909
9910 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9911 (inf_has_multiple_threads): Return 'bool' and rewrite using
9912 inferior_info::threads().
9913
06974e6c
PA
99142019-03-06 Pedro Alves <palves@redhat.com>
9915
9916 * linux-fork.c: Include <list>.
9917 (fork_list): Now a std::list instance.
9918 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9919 (forks_exist_p, find_last_fork): Adjust.
9920 (new_fork): Delete.
9921 (one_fork_p): New.
9922 (add_fork): Adjust.
9923 (free_fork): Delete, folded into fork_info::~fork_info().
9924 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9925 Adjust.
9926 (init_fork_list): Delete.
9927 (linux_fork_killall, linux_fork_mourn_inferior)
9928 (linux_fork_detach, info_checkpoints_command): Adjust.
9929 (_initialize_linux_fork): No longer call init_fork_list.
9930
72f31aea
PA
99312019-03-06 Pedro Alves <palves@redhat.com>
9932
9933 * linux-fork.c (new_fork): New, split out of ...
9934 (add_fork): ... this. Return void. Move "first fork" special
9935 case from here, to ...
9936 (checkpoint_command): ... here.
9937 * linux-linux.h (add_fork): Return void.
9938
efbecbc1
AB
99392019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9940
9941 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9942
0841c79a
AB
99432019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9944 Chris January <chris.january@arm.com>
9945 David Lecomber <david.lecomber@arm.com>
9946
9947 * f-exp.y: New token, UNOP_INTRINSIC.
9948 (exp): New pattern using UNOP_INTRINSIC token.
9949 (f77_keywords): Add 'abs' keyword.
9950 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9951 (value_from_host_double): New function.
9952 (evaluate_subexp_f): Support UNOP_ABS.
9953
4a270568
AB
99542019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9955
9956 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9957 types.
9958
067630bd
AB
99592019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9960
9961 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9962 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9963 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9964
3be47f7a
AB
99652019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9966
9967 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9968
4d00f5d8
AB
99692019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9970 Chris January <chris.january@arm.com>
9971
9972 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9973 * f-exp.y: Define 'KIND' token.
9974 (exp): New pattern for KIND expressions.
9975 (ptype): Handle types with a kind extension.
9976 (direct_abs_decl): Extend to spot kind extensions.
9977 (f77_keywords): Add 'kind' to the list.
9978 (push_kind_type): New function.
9979 (convert_to_kind_type): New function.
9980 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9981 * parse.c (operator_length_standard): Likewise.
9982 * parser-defs.h (enum type_pieces): Add tp_kind.
9983 * std-operator.def: Add UNOP_KIND.
9984
e454224f
AB
99852019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9986
9987 * f-exp.y (f_parse): Set yydebug.
9988
9dad4a58
AB
99892019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9990
9991 * f-lang.c (evaluate_subexp_f): New function.
9992 (exp_descriptor_f): New global.
9993 (f_language_defn): Use exp_descriptor_f instead of
9994 exp_descriptor_standard.
9995
c8f91604
AB
99962019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9997
9998 * f-exp.y (struct token): Add comments.
9999 (dot_ops): Remove uppercase versions and the end marker.
10000 (f77_keywords): Likewise.
10001 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10002 entries in the dot_ops array are case insensitive, and use
10003 strncasecmp to compare strings. Also some whitespace cleanup in
10004 this area. Similar for the f77_keywords array, except entries in
10005 this list might be case sensitive.
10006
dd9f2c76
AB
100072019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10008
10009 * f-exp.y (struct f77_boolean_val): Add comments.
10010 (boolean_values): Remove uppercase versions, and end marker.
10011 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10012 and use strncasecmp to achieve case insensitivity. Additionally,
10013 perform whitespace cleanup around this code.
10014
67a3048c
TT
100152019-03-06 Tom Tromey <tromey@adacore.com>
10016
10017 * remote-sim.c (gdbsim_target_open): Use result of
10018 gdb_argv::release.
10019
aa3cfbda
RB
100202019-03-06 Richard Bunt <richard.bunt@arm.com>
10021 Dirk Schubert <dirk.schubert@arm.com>
10022 Chris January <chris.january@arm.com>
10023
10024 * eval.c (evaluate_subexp_standard): Call Fortran argument
10025 wrapping logic.
10026 * f-lang.c (struct value): A value which can be passed into a
10027 Fortran function call.
10028 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10029 where appropriate.
10030 (struct type): Value ready for a Fortran function call.
10031 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10032 is needed.
10033 * f-lang.h (fortran_argument_convert): Declaration.
10034 (fortran_preserve_arg_pointer): Declaration.
10035 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10036
ea38e5df
TT
100372019-03-05 Tom Tromey <tromey@adacore.com>
10038
10039 * python/py-prettyprint.c (print_string_repr): Remove #if.
10040 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10041
06b5b831
TT
100422019-03-05 Tom Tromey <tromey@adacore.com>
10043
10044 * target.c (the_dummy_target): Move later. Change type to
10045 "dummy_target".
10046 (initialize_targets): Don't initialize the_dummy_target.
10047
edbd9e45
TT
100482019-03-05 Tom Tromey <tromey@adacore.com>
10049
10050 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10051 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10052
c119e040
TT
100532019-03-05 Tom Tromey <tromey@adacore.com>
10054
10055 * windows-nat.c (windows_nat_target::attach)
10056 (windows_nat_target::detach): Don't call gdb_flush.
10057 * valprint.c (generic_val_print, val_print, val_print_string):
10058 Don't call gdb_flush.
10059 * utils.c (defaulted_query): Don't call gdb_flush.
10060 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10061 * target.c (target_announce_detach): Don't call gdb_flush.
10062 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10063 * remote.c (extended_remote_target::attach): Don't call
10064 gdb_flush.
10065 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10066 * printcmd.c (do_examine): Don't call gdb_flush.
10067 (info_display_command): Don't call gdb_flush.
10068 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10069 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10070 * memattr.c (info_mem_command): Don't call gdb_flush.
10071 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10072 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10073 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10074 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10075 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10076 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10077 (gnu_nat_target::detach): Don't call gdb_flush.
10078 * f-valprint.c (f_val_print): Don't call gdb_flush.
10079 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10080 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10081 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10082 gdb_flush.
10083 * c-valprint.c (c_val_print): Don't call gdb_flush.
10084 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10085
895dafa6
TT
100862019-03-05 Tom Tromey <tromey@adacore.com>
10087
10088 * varobj.c (update_dynamic_varobj_children): Update.
10089 (install_default_visualizer): Use reset, not release.
10090 * value.c (set_internalvar): Update.
10091 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10092 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10093 ATTRIBUTE_UNUSED_RESULT.
10094
88a774b9
TT
100952019-03-05 Tom Tromey <tromey@adacore.com>
10096
10097 * remote.c (class scoped_remote_fd) <release>: Add
10098 ATTRIBUTE_UNUSED_RESULT.
10099
4e4a8b93
TT
101002019-03-05 Tom Tromey <tromey@adacore.com>
10101
10102 * macroexp.c (struct macro_buffer) <release>: Add
10103 ATTRIBUTE_UNUSED_RESULT.
10104
083eef1f
TT
101052019-03-05 Tom Tromey <tromey@adacore.com>
10106
10107 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10108 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10109 ATTRIBUTE_UNUSED_RESULT.
10110
3cabd438
TT
101112019-03-05 Tom Tromey <tromey@adacore.com>
10112
10113 * common/scoped_fd.h (class scoped_fd) <release>: Add
10114 ATTRIBUTE_UNUSED_RESULT.
10115
41e3300a
TT
101162019-03-05 Tom Tromey <tromey@adacore.com>
10117
10118 * parser-defs.h (struct parser_state) <release>: Add
10119 ATTRIBUTE_UNUSED_RESULT.
10120
18cb7c9f
TT
101212019-03-05 Tom Tromey <tromey@adacore.com>
10122
10123 * utils.h (class gdb_argv) <release>: Add
10124 ATTRIBUTE_UNUSED_RESULT.
10125 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10126
41fa577f
EZ
101272019-03-02 Eli Zaretskii <eliz@gnu.org>
10128
a6a4b2c6
EZ
10129 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10130 for-loop range, to avoid compiler warnings.
10131
10132 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10133 avoid compiler warnings about unused variables.
10134
742a7df5
EZ
10135 * NEWS: Mention end of support for native debugging on MS-Windows
10136 before XP.
10137
41fa577f
EZ
10138 PR gdb/24292
10139 * common/netstuff.c:
10140 * gdbserver/gdbreplay.c
10141 * gdbserver/remote-utils.c:
10142 * ser-tcp.c:
10143 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10144 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10145 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10146 'getaddrinfo' and 'freeaddrinfo' were not available before
10147 Windows XP, and mingw.org's MinGW headers by default define
10148 _WIN32_WINNT to 0x500.
10149
827f438f
GB
101502019-03-01 Gary Benson <gbenson@redhat.com>
10151
10152 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10153
92137da0
RO
101542019-02-28 Brian Vandenberg <phantall@gmail.com>
10155 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10156
10157 PR gdb/8527
10158 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10159 set_sigint_trap, clear_sigint_trap.
10160
799efbe8
PW
101612019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10162
10163 * target.c (target_detach): Clear the regcache and the
10164 frame cache.
10165
8ed25214
PA
101662019-02-27 Pedro Alves <palves@redhat.com>
10167
10168 * utils.c (set_screen_size): When we cap the height/width sizes,
10169 tweak the corresponding command variable to show "unlimited":
10170
23031e31
SJ
101712019-02-27 Saagar Jha <saagar@saagarjha.com>
10172 Pedro Alves <palves@redhat.com>
10173
10174 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10175 before calling rl_set_screen_size.
10176
6c28e44a
TT
101772019-02-27 Tom Tromey <tromey@adacore.com>
10178
10179 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10180 define.
10181 * python/py-value.c: Remove Python 2.4 workaround.
10182 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10183 workaround.
10184 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10185 Python 2.4 workaround.
10186 * python/python-internal.h: Remove Python 2.4 comment.
10187 (Py_ssize_t): Don't define.
10188 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10189 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10190 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10191 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10192 * python/python.c (do_start_initialization): Remove Python 2.4
10193 workaround.
10194 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10195 (print_children): Remove Python 2.4 workaround.
10196 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10197 workaround.
10198 (CHARBUFFERPROC_NAME): Remove.
10199 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10200 Python 2.4 workaround.
10201
2c3fc25d 102022019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 10203
2c3fc25d
KB
10204 * NEWS: Note minimum Python version.
10205
6ca62222
KB
102062019-02-27 Kevin Buettner <kevinb@redhat.com>
10207
10208 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10209 code from these functions. Remove corresponding ifdefs. Use
10210 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10211 Remove gotos and target of gotos.
10212 (infpy_search_memory): Likewise.
10213
f4bc7d2c
AB
102142019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10215
10216 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10217 (hppa_gdbarch_init): Don't register deleted functions with
10218 gdbarch.
10219
9734a586
AB
102202019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10221
10222 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10223 (h8300_unwind_sp): Delete.
10224 (h8300_dummy_id): Delete.
10225 (h8300_gdbarch_init): Don't register deleted functions with
10226 gdbarch.
10227
68b867f3
AB
102282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10229
10230 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10231 (ft32_unwind_pc): Delete.
10232 (ft32_unwind_sp): Delete.
10233 (ft32_gdbarch_init): Don't register deleted functions with
10234 gdbarch.
10235
2fbe7ad0
AB
102362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10237
10238 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10239 (frv_unwind_pc): Delete.
10240 (frv_unwind_sp): Delete.
10241 (frv_gdbarch_init): Don't register deleted functions with
10242 gdbarch.
10243
76055cbe
AB
102442019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10245
10246 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10247 (riscv_unwind_pc): Delete.
10248 (riscv_unwind_sp): Delete.
10249 (riscv_gdbarch_init): Don't register deleted functions with
10250 gdbarch.
10251
4133e5a1
AB
102522019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10253
10254 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10255 (csky_unwind_pc): Delete.
10256 (csky_unwind_sp): Delete.
10257 (csky_gdbarch_init): Don't register deleted functions with
10258 gdbarch.
10259
8010f576
AB
102602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10261
10262 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10263 (cris_unwind_pc): Delete.
10264 (cris_unwind_sp): Delete.
10265 (cris_gdbarch_init): Don't register deleted functions with
10266 gdbarch.
10267
b56bf084
AB
102682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10269
10270 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10271 (bfin_unwind_pc): Delete.
10272 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10273
a19a650f
AB
102742019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10275
10276 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10277 (arm_unwind_pc): Delete.
10278 (arm_unwind_sp): Delete.
10279 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10280
f8278c3c
AB
102812019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10282
10283 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10284 (arc_unwind_pc): Delete.
10285 (arc_unwind_sp): Delete.
10286 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10287
480e46cf
AB
102882019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10289
10290 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10291 (alpha_unwind_pc): Delete.
10292 (alpha_gdbarch_init): Don't register deleted functions with
10293 gdbarch.
10294
7a995095
AB
102952019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10296
10297 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10298 (aarch64_unwind_pc): Delete.
10299 (aarch64_unwind_sp): Delete.
10300 (aarch64_gdbarch_init): Don't register deleted functions with
10301 gdbarch.
10302
bf9a735e
AB
103032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10304
10305 * gdbtypes.c (type_align): Don't consider static members when
10306 computing structure alignment.
10307
5561fc30
AB
103082019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10309
10310 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10311 return 0 for other types.
10312 * arch-utils.c (default_type_align): Always return 0.
10313 * gdbarch.h: Regenerate.
10314 * gdbarch.sh (type_align): Extend comment.
10315 * gdbtypes.c (type_align): Add additional comments, always call
10316 gdbarch_type_align before applying the default rules.
10317 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10318 generic code will then apply a suitable default.
10319 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10320 types, return 0 for other types.
10321
9335e75a
JB
103222019-02-27 Joel Brobecker <brobecker@adacore.com>
10323
10324 * NEWS: Create a new section for the next release branch.
10325 Rename the section of the current branch, now that it has
10326 been cut.
10327
3d34d8de
JB
103282019-02-27 Joel Brobecker <brobecker@adacore.com>
10329
10330 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10331 * version.in: Bump version to 8.3.50.DATE-git.
10332
143420fb
SM
103332019-02-26 Simon Marchi <simon.marchi@efficios.com>
10334
10335 * aix-thread.c (ptid_cmp): Remove unused variable.
10336 (get_signaled_thread): Likewise.
10337 (store_regs_user_thread): Likewise.
10338 (store_regs_kernel_thread): Likewise.
10339 (fetch_regs_kernel_thread): Remove shadowed variable.
10340
172fb711
AB
103412019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10342
10343 * features/riscv/32bit-cpu.xml: Add register numbers.
10344 * features/riscv/32bit-fpu.c: Regenerate.
10345 * features/riscv/32bit-fpu.xml: Add register numbers.
10346 * features/riscv/64bit-cpu.xml: Add register numbers.
10347 * features/riscv/64bit-fpu.c: Regenerate.
10348 * features/riscv/64bit-fpu.xml: Add register numbers.
10349
26c89782
KB
103502019-02-26 Kevin Buettner <kevinb@redhat.com>
10351
af54ade9 10352 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
10353 * python/py-value.c (convert_buffer_and_type_to_value): New
10354 function.
10355 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10356 Add support for handling an optional second argument. Call
10357 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
10358 * python/python-internal.h (Py_buffer_deleter): New struct.
10359 (Py_buffer_up): New typedef.
10360
0f58c9e8
JB
103612019-02-25 John Baldwin <jhb@FreeBSD.org>
10362
10363 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10364 instead of releasing ownership.
10365
0a0f4c01
JR
103662019-02-25 Jordan Rupprecht <rupprecht@google.com>
10367
10368 * dwarf2read.c (open_and_init_dwp_file): Call
10369 elf_numsections instead of bfd_count_sections to initialize
10370 dwp_file->num_sections.
10371
cd5a152c
TT
103722019-02-25 Tom Tromey <tromey@adacore.com>
10373
10374 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10375
8a6a8513
SDJ
103762019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10377
10378 * gcore.in: Add '--readnever' option when invoking GDB.
10379
04dcda9c
SM
103802019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10381
10382 * MAINTAINERS: Update my email address.
10383
07bc701d
SM
103842019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10385
10386 * build-id.c (build_id_to_debug_bfd_1): New function.
10387 (build_id_to_debug_bfd): Look for separate debug file in
10388 sysroot.
10389
c6f4a5d0
AB
103902019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10391
10392 * gdbarch.sh: Update the copyright year range that is placed into
10393 generated files.
10394
9600246d
KS
103952019-02-22 Keith Seitz <keiths@redhat.com>
10396
10397 PR symtab/23853
10398 * linespec.c (create_sals_line_offset): Search for the default
10399 symtab's filename instead of its fullname.
10400
7557a514
AH
104012019-02-21 Alan Hayward <alan.hayward@arm.com>
10402
10403 * NEWS: Update style defaults.
10404
ee2bcb0c
AH
104052019-02-21 Alan Hayward <alan.hayward@arm.com>
10406
10407 * main.c (captured_main_1): Disable styling in batch mode.
10408
0c95f9ed
TT
104092019-02-20 Tom Tromey <tom@tromey.com>
10410
10411 * symtab.c (symtab_symbol_info): Fix typos.
10412
c763b894
TT
104132019-02-20 Tom Tromey <tromey@adacore.com>
10414
10415 * findcmd.c (_initialize_mem_search): Use upper case for
10416 metasyntactic variables.
10417
0ef8a082
AH
104182019-02-20 Alan Hayward <alan.hayward@arm.com>
10419
10420 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10421 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10422
6caa91b6
SM
104232019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10424
10425 * top.h (source_file_name): Change to std::string.
10426 * top.c (source_file_name): Likewise.
10427 (command_line_input): Adjust.
10428 * cli/cli-script.c (script_from_file): Adjust.
10429
98814c6c
TT
104302019-02-19 Tom Tromey <tromey@adacore.com>
10431
10432 * ravenscar-thread.c
10433 (ravenscar_thread_target::update_thread_list): Don't call
10434 ada_build_task_list.
10435 * ada-lang.h (ada_build_task_list): Don't declare.
10436 * ada-tasks.c (struct ada_tasks_inferior_data)
10437 <task_list_valid_p>: Now bool.
10438 (read_known_tasks, ada_task_list_changed)
10439 (ada_tasks_invalidate_inferior_data): Update.
10440 (read_known_tasks_array): Return bool.
10441 (read_known_tasks_list): Likewise.
10442 (read_known_tasks): Return void.
10443 (ada_build_task_list): Now static.
10444
70cd633e
AB
104452019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10446
10447 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10448 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10449
040b3e95
PW
104502019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10451
10452 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10453 variant for ada_tasks_pspace_data_handle and
10454 ada_tasks_inferior_data_handle.
10455 (ada_tasks_pspace_data_cleanup): New function.
10456 (ada_tasks_inferior_data_cleanup): New function.
10457
9409233b
TT
104582019-02-17 Tom Tromey <tom@tromey.com>
10459
10460 * macrotab.h (macro_source_fullname): Return a std::string.
10461 * macrotab.c (macro_include, check_for_redefinition)
10462 (macro_undef, macro_lookup_definition, foreach_macro)
10463 (foreach_macro_in_scope): Update.
10464 (macro_source_fullname): Return a std::string.
10465 * macrocmd.c (show_pp_source_pos): Update.
10466
6506371f
TT
104672019-02-17 Tom Tromey <tom@tromey.com>
10468
10469 * macrocmd.c (show_pp_source_pos): Style the file names.
10470
0c820d67
TT
104712019-02-17 Tom Tromey <tom@tromey.com>
10472
10473 PR tui/24197:
10474 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10475
a0087920
TT
104762019-02-17 Tom Tromey <tom@tromey.com>
10477
10478 * ada-lang.c (user_select_syms): Use filtered printing.
10479 * utils.c (wrap_style): New global.
10480 (desired_style): Remove.
10481 (emit_style_escape): Add stream parameter.
10482 (set_output_style, reset_terminal_style, prompt_for_continue):
10483 Update.
10484 (flush_wrap_buffer): Only flush gdb_stdout.
10485 (wrap_here): Set wrap_style.
10486 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10487 treat escape sequences as a character. Change when wrap buffer is
10488 flushed.
10489 (fputs_styled): Do not set the output style when the default is
10490 requested.
10491 * ui-style.h (struct ui_file_style) <is_default>: New method.
10492 * source.c (print_source_lines_base): Emit escape sequences in one
10493 piece.
10494
75ba10dc
JB
104952019-02-17 Joel Brobecker <brobecker@adacore.com>
10496
10497 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10498 integers and enumeration types.
10499
a2cd4f14
JB
105002019-02-17 Joel Brobecker <brobecker@adacore.com>
10501
10502 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10503 instead of lookup_symbol_in_language
10504 (do_exact_match): New function.
10505 (ada_get_symbol_name_matcher): Return do_exact_match when
10506 doing a verbatim match.
10507
485b851b
TT
105082019-02-15 Tom Tromey <tromey@adacore.com>
10509
10510 * ravenscar-thread.c (ravenscar_thread_target::resume)
10511 (ravenscar_thread_target::wait): Special case wildcard requests.
10512
0b790b1e
TT
105132019-02-15 Tom Tromey <tromey@adacore.com>
10514
10515 * ravenscar-thread.c (base_ptid): Remove.
10516 (struct ravenscar_thread_target) <close>: New method.
10517 <m_base_ptid>: New member.
10518 <update_inferior_ptid, active_task, task_is_currently_active,
10519 runtime_initialized>: Declare methods.
10520 <ravenscar_thread_target>: Add constructor.
10521 (ravenscar_thread_target::task_is_currently_active)
10522 (ravenscar_thread_target::update_inferior_ptid)
10523 (ravenscar_runtime_initialized): Rename. Now methods.
10524 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10525 (ravenscar_thread_target::update_thread_list): Update.
10526 (ravenscar_thread_target::active_task): Now method.
10527 (ravenscar_thread_target::store_registers)
10528 (ravenscar_thread_target::prepare_to_store)
10529 (ravenscar_thread_target::prepare_to_store)
10530 (ravenscar_thread_target::mourn_inferior): Update.
10531 (ravenscar_inferior_created): Use "new" to create target.
10532 (ravenscar_thread_target::get_ada_task_ptid): Update.
10533 (_initialize_ravenscar): Don't initialize base_ptid.
10534 (ravenscar_ops): Remove global.
10535
dea57a62
TT
105362019-02-15 Tom Tromey <tromey@adacore.com>
10537
10538 * target.h (push_target): Declare new overload.
10539 * target.c (push_target): New overload, taking an rvalue reference.
10540 * remote.c (remote_target::open_1): Use push_target overload.
10541 * corelow.c (core_target_open): Use push_target overload.
10542
989f3c58
TT
105432019-02-15 Tom Tromey <tromey@adacore.com>
10544
10545 * ravenscar-thread.c (is_ravenscar_task)
10546 (ravenscar_task_is_currently_active): Return bool.
10547 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10548 (_initialize_ravenscar): Remove "(void)".
10549 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10550 Return bool.
10551
6cbcc006
TT
105522019-02-15 Tom Tromey <tromey@adacore.com>
10553
10554 * ravenscar-thread.c (ravenscar_runtime_initializer)
10555 (has_ravenscar_runtime, get_running_thread_id)
10556 (ravenscar_thread_target::resume): Fix indentation.
10557
7657f14d
TT
105582019-02-15 Tom Tromey <tromey@adacore.com>
10559
10560 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10561 from ravenscar_arch_ops.
10562 (sparc_ravenscar_ops::fetch_registers)
10563 (sparc_ravenscar_ops::store_registers): Now methods.
10564 (sparc_ravenscar_prepare_to_store): Remove.
10565 (sparc_ravenscar_ops): Redefine.
10566 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10567 methods and destructor. Remove members.
10568 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10569 (ravenscar_thread_target::store_registers)
10570 (ravenscar_thread_target::prepare_to_store): Update.
10571 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10572 Remove.
10573 (struct ppc_ravenscar_powerpc_ops): Derive from
10574 ravenscar_arch_ops.
10575 (ppc_ravenscar_powerpc_ops::fetch_registers)
10576 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10577 (ppc_ravenscar_powerpc_ops): Redefine.
10578 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10579 (ppc_ravenscar_e500_ops::fetch_registers)
10580 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10581 (ppc_ravenscar_e500_ops): Redefine.
10582 * aarch64-ravenscar-thread.c
10583 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10584 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10585 (aarch64_ravenscar_fetch_registers)
10586 (aarch64_ravenscar_store_registers): Now methods.
10587 (aarch64_ravenscar_ops): Redefine.
10588
5b6ea500
TT
105892019-02-15 Tom Tromey <tromey@adacore.com>
10590
10591 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10592 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10593 (ravenscar_thread_target::stopped_by_watchpoint)
10594 (ravenscar_thread_target::stopped_data_address)
10595 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10596
e397fd39
TT
105972019-02-15 Tom Tromey <tromey@adacore.com>
10598
10599 * ravenscar-thread.c: Fix some typos.
10600
cc12f4a8
TT
106012019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10602 Tom Tromey <tromey@adacore.com>
10603
10604 * ada-lang.c (ada_exception_sal): Change addr_string to a
10605 std::string.
10606 (create_ada_exception_catchpoint): Update.
10607
5f486660
TT
106082019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10609 Tom Tromey <tromey@adacore.com>
10610
10611 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10612 (bp_location_ops): Remove.
10613 (base_breakpoint_allocate_location): Update.
10614 (free_bp_location): Update.
10615 * ada-lang.c (class ada_catchpoint_location)
10616 <ada_catchpoint_location>: Remove ops parameter.
10617 (ada_catchpoint_location_dtor): Remove.
10618 (ada_catchpoint_location_ops): Remove.
10619 (allocate_location_exception): Update.
10620 * breakpoint.h (struct bp_location_ops): Remove.
10621 (class bp_location) <bp_location>: Remove bp_location_ops
10622 parameter.
10623 <~bp_location>: Add destructor.
10624 <ops>: Remove.
10625
b671c7fb
TS
106262019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10627 Pedro Alves <palves@redhat.com>
10628
10629 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10630 'PATH_MAX'.
10631
8071c5ce
DM
106322019-02-14 David Michael <fedora.dm0@gmail.com>
10633 Samuel Thibault <samuel.thibault@gnu.org>
10634 Thomas Schwinge <thomas@codesourcery.com>
10635
10636 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10637 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10638
b1041ae0
TS
106392019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10640
924514e1
TS
10641 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10642 (check_empty): Use "const char *".
10643
c29ee8d4
TS
10644 * gnu-nat.c (gnu_nat_target::detach): Instead of
10645 'detach_inferior (pid)' call
10646 'detach_inferior (find_inferior_pid (pid))'.
10647
6c6ef69f
TS
10648 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10649 'nat/fork-inferior.o'.
10650 * gnu-nat.c: #include "nat/fork-inferior.h".
10651
2d0a338c
TS
10652 * gnu-nat.c (gnu_nat_target::detach): Instead of
10653 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10654 * gnu-nat.h: #include "inf-child.h".
10655 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10656 'i386_gnu_nat_target::fetch_registers'.
10657 (gnu_store_registers): Rename/move to
10658 'i386_gnu_nat_target::store_registers'.
10659
cabb5f06
TS
10660 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10661 * gnu-nat.h (mach_thread_info): New function.
10662 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10663
b1041ae0
TS
10664 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10665
2988d01e
KF
106662019-02-14 Frederic Konrad <konrad@adacore.com>
10667
10668 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10669
c559d709
JB
106702019-02-14 Joel Brobecker <brobecker@adacore.com>
10671
10672 * windows-nat.c (windows_add_thread): Add new parameter
10673 "main_thread_p" with default value set to false. Update
10674 function documentation as well as all callers.
10675 (windows_delete_thread): Likewise.
10676 (fake_create_process): Update call to windows_add_thread.
10677 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10678 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10679 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10680 call to windows_delete_thread.
10681
007024cc
SM
106822019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10683
10684 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10685
f62318e9
JB
106862019-02-12 John Baldwin <jhb@FreeBSD.org>
10687
10688 * symfile.c (find_separate_debug_file): Use canonical path of
10689 sysroot with child_path instead of gdb_sysroot if it is valid.
10690
cd4b7848
JB
106912019-02-12 John Baldwin <jhb@FreeBSD.org>
10692
10693 * symfile.c (find_separate_debug_file): Use child_path to
10694 determine if an object file is under a sysroot.
10695
efac4bfe
JB
106962019-02-12 John Baldwin <jhb@FreeBSD.org>
10697
10698 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10699 unittests/child-path-selftests.c.
10700 * common/pathstuff.c (child_path): New function.
10701 * common/pathstuff.h (child_path): New prototype.
10702 * unittests/child-path-selftests.c: New file.
10703
402d2bfe
JB
107042019-02-12 John Baldwin <jhb@FreeBSD.org>
10705
10706 * symfile.c (find_separate_debug_file): Look for separate debug
10707 files in debug directories under the sysroot.
10708
1ed9f74e
PW
107092019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10710
10711 * symtab.h (struct minimal_symbol data_p): New const method.
10712 (struct minimal_symbol text_p): Likewise.
10713 * symtab.c (output_source_filename): Use file name style
10714 to print file name.
10715 (print_symbol_info): Likewise.
10716 (print_msymbol_info): Use address style to print addresses.
10717 Use function name style to print executable text symbols.
10718 (expand_symtab_containing_pc): Use data_p.
10719 (find_pc_sect_compunit_symtab): Likewise.
10720
2636d81d
PW
107212019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10722
10723 * breakpoint.c (describe_other_breakpoints): Use address style
10724 to print addresses.
10725 (say_where): Likewise.
10726
ac8c53cc
PW
107272019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10728
10729 * ada-typeprint.c (print_func_type): Print function name
10730 style to print function name.
10731 * c-typeprint.c (c_print_type_1): Likewise.
10732
ea638c43
AH
107332019-02-11 Alan Hayward <alan.hayward@arm.com>
10734
10735 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10736 for execve.
10737
ab759ca8
PW
107382019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10739
10740 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10741 type_stack.
10742
aff29d1c
JB
107432019-02-10 Joel Brobecker <brobecker@adacore.com>
10744
10745 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10746 TYPE_CODE_REF types.
10747
617126bc
JW
107482019-02-08 Jim Wilson <jimw@sifive.com>
10749
10750 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10751 (riscv_linux_fregset): New.
10752 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10753
46e3ed7f
TT
107542019-02-07 Tom Tromey <tom@tromey.com>
10755
10756 * thread.c (thread_cancel_execution_command): Update.
10757 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10758 methods.
10759 (struct thread_fsm_ops): Remove.
10760 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10761 (thread_fsm_should_stop, thread_fsm_return_value)
10762 (thread_fsm_set_finished, thread_fsm_finished_p)
10763 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10764 Don't declare.
10765 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10766 * infrun.c (clear_proceed_status_thread)
10767 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10768 (print_stop_event): Update.
10769 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10770 Add constructor.
10771 (step_command_fsm_ops): Remove.
10772 (new_step_command_fsm): Remove.
10773 (step_1): Update.
10774 (step_command_fsm::should_stop): Rename from
10775 step_command_fsm_should_stop.
10776 (step_command_fsm::clean_up): Rename from
10777 step_command_fsm_clean_up.
10778 (step_command_fsm::do_async_reply_reason): Rename from
10779 step_command_fsm_async_reply_reason.
10780 (struct until_next_fsm): Inherit from thread_fsm. Add
10781 constructor.
10782 (until_next_fsm_ops): Remove.
10783 (new_until_next_fsm): Remove.
10784 (until_next_fsm::should_stop): Rename from
10785 until_next_fsm_should_stop.
10786 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10787 (until_next_fsm::do_async_reply_reason): Rename from
10788 until_next_fsm_async_reply_reason.
10789 (struct finish_command_fsm): Inherit from thread_fsm. Add
10790 constructor. Change type of breakpoint.
10791 (finish_command_fsm_ops): Remove.
10792 (new_finish_command_fsm): Remove.
10793 (finish_command_fsm::should_stop): Rename from
10794 finish_command_fsm_should_stop.
10795 (finish_command_fsm::clean_up): Rename from
10796 finish_command_fsm_clean_up.
10797 (finish_command_fsm::return_value): Rename from
10798 finish_command_fsm_return_value.
10799 (finish_command_fsm::do_async_reply_reason): Rename from
10800 finish_command_fsm_async_reply_reason.
10801 (finish_command): Update.
10802 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10803 Add constructor.
10804 (call_thread_fsm_ops): Remove.
10805 (call_thread_fsm::call_thread_fsm): Rename from
10806 new_call_thread_fsm.
10807 (call_thread_fsm::should_stop): Rename from
10808 call_thread_fsm_should_stop.
10809 (call_thread_fsm::should_notify_stop): Rename from
10810 call_thread_fsm_should_notify_stop.
10811 (run_inferior_call, call_function_by_hand_dummy): Update.
10812 * cli/cli-interp.c (should_print_stop_to_console): Update.
10813 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10814 Add constructor. Change type of location_breakpoint,
10815 caller_breakpoint.
10816 (until_break_fsm_ops): Remove.
10817 (new_until_break_fsm): Remove.
10818 (until_break_fsm::should_stop): Rename from
10819 until_break_fsm_should_stop.
10820 (until_break_fsm::clean_up): Rename from
10821 until_break_fsm_clean_up.
10822 (until_break_fsm::do_async_reply_reason): Rename from
10823 until_break_fsm_async_reply_reason.
10824 (until_break_command): Update.
10825 * thread-fsm.c: Remove.
10826 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10827
1a5c2598
TT
108282019-02-07 Tom Tromey <tom@tromey.com>
10829
10830 * yy-remap.h: Add include guard.
10831 * xtensa-tdep.h: Add include guard.
10832 * xcoffread.h: Rename include guard.
10833 * varobj-iter.h: Add include guard.
10834 * tui/tui.h: Rename include guard.
10835 * tui/tui-winsource.h: Rename include guard.
10836 * tui/tui-wingeneral.h: Rename include guard.
10837 * tui/tui-windata.h: Rename include guard.
10838 * tui/tui-win.h: Rename include guard.
10839 * tui/tui-stack.h: Rename include guard.
10840 * tui/tui-source.h: Rename include guard.
10841 * tui/tui-regs.h: Rename include guard.
10842 * tui/tui-out.h: Rename include guard.
10843 * tui/tui-layout.h: Rename include guard.
10844 * tui/tui-io.h: Rename include guard.
10845 * tui/tui-hooks.h: Rename include guard.
10846 * tui/tui-file.h: Rename include guard.
10847 * tui/tui-disasm.h: Rename include guard.
10848 * tui/tui-data.h: Rename include guard.
10849 * tui/tui-command.h: Rename include guard.
10850 * tic6x-tdep.h: Add include guard.
10851 * target/waitstatus.h: Rename include guard.
10852 * target/wait.h: Rename include guard.
10853 * target/target.h: Rename include guard.
10854 * target/resume.h: Rename include guard.
10855 * target-float.h: Rename include guard.
10856 * stabsread.h: Add include guard.
10857 * rs6000-tdep.h: Add include guard.
10858 * riscv-fbsd-tdep.h: Add include guard.
10859 * regformats/regdef.h: Rename include guard.
10860 * record.h: Rename include guard.
10861 * python/python.h: Rename include guard.
10862 * python/python-internal.h: Rename include guard.
10863 * python/py-stopevent.h: Rename include guard.
10864 * python/py-ref.h: Rename include guard.
10865 * python/py-record.h: Rename include guard.
10866 * python/py-record-full.h: Rename include guard.
10867 * python/py-record-btrace.h: Rename include guard.
10868 * python/py-instruction.h: Rename include guard.
10869 * python/py-events.h: Rename include guard.
10870 * python/py-event.h: Rename include guard.
10871 * procfs.h: Add include guard.
10872 * proc-utils.h: Add include guard.
10873 * p-lang.h: Add include guard.
10874 * or1k-tdep.h: Rename include guard.
10875 * observable.h: Rename include guard.
10876 * nto-tdep.h: Rename include guard.
10877 * nat/x86-linux.h: Rename include guard.
10878 * nat/x86-linux-dregs.h: Rename include guard.
10879 * nat/x86-gcc-cpuid.h: Add include guard.
10880 * nat/x86-dregs.h: Rename include guard.
10881 * nat/x86-cpuid.h: Rename include guard.
10882 * nat/ppc-linux.h: Rename include guard.
10883 * nat/mips-linux-watch.h: Rename include guard.
10884 * nat/linux-waitpid.h: Rename include guard.
10885 * nat/linux-ptrace.h: Rename include guard.
10886 * nat/linux-procfs.h: Rename include guard.
10887 * nat/linux-osdata.h: Rename include guard.
10888 * nat/linux-nat.h: Rename include guard.
10889 * nat/linux-namespaces.h: Rename include guard.
10890 * nat/linux-btrace.h: Rename include guard.
10891 * nat/glibc_thread_db.h: Rename include guard.
10892 * nat/gdb_thread_db.h: Rename include guard.
10893 * nat/gdb_ptrace.h: Rename include guard.
10894 * nat/fork-inferior.h: Rename include guard.
10895 * nat/amd64-linux-siginfo.h: Rename include guard.
10896 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10897 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10898 * nat/aarch64-linux.h: Rename include guard.
10899 * nat/aarch64-linux-hw-point.h: Rename include guard.
10900 * mn10300-tdep.h: Add include guard.
10901 * mips-linux-tdep.h: Add include guard.
10902 * mi/mi-parse.h: Rename include guard.
10903 * mi/mi-out.h: Rename include guard.
10904 * mi/mi-main.h: Rename include guard.
10905 * mi/mi-interp.h: Rename include guard.
10906 * mi/mi-getopt.h: Rename include guard.
10907 * mi/mi-console.h: Rename include guard.
10908 * mi/mi-common.h: Rename include guard.
10909 * mi/mi-cmds.h: Rename include guard.
10910 * mi/mi-cmd-break.h: Rename include guard.
10911 * m2-lang.h: Add include guard.
10912 * location.h: Rename include guard.
10913 * linux-record.h: Rename include guard.
10914 * linux-nat.h: Add include guard.
10915 * linux-fork.h: Add include guard.
10916 * i386-darwin-tdep.h: Rename include guard.
10917 * hppa-linux-offsets.h: Add include guard.
10918 * guile/guile.h: Rename include guard.
10919 * guile/guile-internal.h: Rename include guard.
10920 * gnu-nat.h: Rename include guard.
10921 * gdb-stabs.h: Rename include guard.
10922 * frv-tdep.h: Add include guard.
10923 * f-lang.h: Add include guard.
10924 * event-loop.h: Add include guard.
10925 * darwin-nat.h: Rename include guard.
10926 * cp-abi.h: Rename include guard.
10927 * config/sparc/nm-sol2.h: Rename include guard.
10928 * config/nm-nto.h: Rename include guard.
10929 * config/nm-linux.h: Add include guard.
10930 * config/i386/nm-i386gnu.h: Rename include guard.
10931 * config/djgpp/nl_types.h: Rename include guard.
10932 * config/djgpp/langinfo.h: Rename include guard.
10933 * compile/gcc-cp-plugin.h: Add include guard.
10934 * compile/gcc-c-plugin.h: Add include guard.
10935 * compile/compile.h: Rename include guard.
10936 * compile/compile-object-run.h: Rename include guard.
10937 * compile/compile-object-load.h: Rename include guard.
10938 * compile/compile-internal.h: Rename include guard.
10939 * compile/compile-cplus.h: Rename include guard.
10940 * compile/compile-c.h: Rename include guard.
10941 * common/xml-utils.h: Rename include guard.
10942 * common/x86-xstate.h: Rename include guard.
10943 * common/version.h: Rename include guard.
10944 * common/vec.h: Rename include guard.
10945 * common/tdesc.h: Rename include guard.
10946 * common/selftest.h: Rename include guard.
10947 * common/scoped_restore.h: Rename include guard.
10948 * common/scoped_mmap.h: Rename include guard.
10949 * common/scoped_fd.h: Rename include guard.
10950 * common/safe-iterator.h: Rename include guard.
10951 * common/run-time-clock.h: Rename include guard.
10952 * common/refcounted-object.h: Rename include guard.
10953 * common/queue.h: Rename include guard.
10954 * common/ptid.h: Rename include guard.
10955 * common/print-utils.h: Rename include guard.
10956 * common/preprocessor.h: Rename include guard.
10957 * common/pathstuff.h: Rename include guard.
10958 * common/observable.h: Rename include guard.
10959 * common/netstuff.h: Rename include guard.
10960 * common/job-control.h: Rename include guard.
10961 * common/host-defs.h: Rename include guard.
10962 * common/gdb_wait.h: Rename include guard.
10963 * common/gdb_vecs.h: Rename include guard.
10964 * common/gdb_unlinker.h: Rename include guard.
10965 * common/gdb_unique_ptr.h: Rename include guard.
10966 * common/gdb_tilde_expand.h: Rename include guard.
10967 * common/gdb_sys_time.h: Rename include guard.
10968 * common/gdb_string_view.h: Rename include guard.
10969 * common/gdb_splay_tree.h: Rename include guard.
10970 * common/gdb_setjmp.h: Rename include guard.
10971 * common/gdb_ref_ptr.h: Rename include guard.
10972 * common/gdb_optional.h: Rename include guard.
10973 * common/gdb_locale.h: Rename include guard.
10974 * common/gdb_assert.h: Rename include guard.
10975 * common/filtered-iterator.h: Rename include guard.
10976 * common/filestuff.h: Rename include guard.
10977 * common/fileio.h: Rename include guard.
10978 * common/environ.h: Rename include guard.
10979 * common/common-utils.h: Rename include guard.
10980 * common/common-types.h: Rename include guard.
10981 * common/common-regcache.h: Rename include guard.
10982 * common/common-inferior.h: Rename include guard.
10983 * common/common-gdbthread.h: Rename include guard.
10984 * common/common-exceptions.h: Rename include guard.
10985 * common/common-defs.h: Rename include guard.
10986 * common/common-debug.h: Rename include guard.
10987 * common/cleanups.h: Rename include guard.
10988 * common/buffer.h: Rename include guard.
10989 * common/btrace-common.h: Rename include guard.
10990 * common/break-common.h: Rename include guard.
10991 * cli/cli-utils.h: Rename include guard.
10992 * cli/cli-style.h: Rename include guard.
10993 * cli/cli-setshow.h: Rename include guard.
10994 * cli/cli-script.h: Rename include guard.
10995 * cli/cli-interp.h: Rename include guard.
10996 * cli/cli-decode.h: Rename include guard.
10997 * cli/cli-cmds.h: Rename include guard.
10998 * charset-list.h: Add include guard.
10999 * buildsym-legacy.h: Rename include guard.
11000 * bfin-tdep.h: Add include guard.
11001 * ax.h: Rename include guard.
11002 * arm-linux-tdep.h: Add include guard.
11003 * arm-fbsd-tdep.h: Add include guard.
11004 * arch/xtensa.h: Rename include guard.
11005 * arch/tic6x.h: Add include guard.
11006 * arch/i386.h: Add include guard.
11007 * arch/arm.h: Rename include guard.
11008 * arch/arm-linux.h: Rename include guard.
11009 * arch/arm-get-next-pcs.h: Rename include guard.
11010 * arch/amd64.h: Add include guard.
11011 * arch/aarch64-insn.h: Rename include guard.
11012 * arch-utils.h: Rename include guard.
11013 * annotate.h: Add include guard.
11014 * amd64-darwin-tdep.h: Rename include guard.
11015 * aarch64-linux-tdep.h: Add include guard.
11016 * aarch64-fbsd-tdep.h: Add include guard.
11017 * aarch32-linux-nat.h: Add include guard.
11018
ab9268d2
PW
110192019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11020
11021 * macrotab.c (macro_define_internal): New function that
11022 factorizes macro_define_object_internal and macro_define_function
11023 code.
11024 (macro_define_object_internal): Use macro_define_internal.
11025 (macro_define_function): Likewise.
11026
bb0da2b4
PW
110272019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11028
11029 * macrocmd.c (extract_identifier): Return
11030 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11031 callers.
11032
424eb552
JB
110332019-02-06 John Baldwin <jhb@FreeBSD.org>
11034
11035 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11036
1688cb29
TT
110372019-02-05 Tom Tromey <tom@tromey.com>
11038
11039 * target.c (target_stack::unpush): Move assertion earlier.
11040
b5eba2d8
TT
110412019-01-30 Tom Tromey <tom@tromey.com>
11042
11043 PR python/23615:
11044 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11045 (gdbpy_parse_and_eval): Likewise.
11046 * python/python-internal.h (gdbpy_allow_threads): New class.
11047
7054e2ff
JB
110482019-01-28 John Baldwin <jhb@FreeBSD.org>
11049
11050 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11051 (aarch64_fbsd_fpregmap): Move earlier.
11052 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11053 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11054 instead of individual calls to trad_frame_set_reg_addr.
11055 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11056 earlier.
11057 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11058 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11059 instead of individual calls to trad_frame_set_reg_addr.
11060
36c25ffa
AH
110612019-01-28 Alan Hayward <alan.hayward@arm.com>
11062
11063 * CONTRIBUTE: Replace contribution list with wiki link.
11064
a0707f3c
TT
110652019-01-25 Tom Tromey <tom@tromey.com>
11066
11067 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11068
0747795c
TT
110692019-01-25 Tom Tromey <tom@tromey.com>
11070
11071 * xtensa-linux-nat.c: Fix common/ includes.
11072 * xml-support.h: Fix common/ includes.
11073 * xml-support.c: Fix common/ includes.
11074 * x86-linux-nat.c: Fix common/ includes.
11075 * windows-nat.c: Fix common/ includes.
11076 * varobj.h: Fix common/ includes.
11077 * varobj.c: Fix common/ includes.
11078 * value.c: Fix common/ includes.
11079 * valops.c: Fix common/ includes.
11080 * utils.c: Fix common/ includes.
11081 * unittests/xml-utils-selftests.c: Fix common/ includes.
11082 * unittests/utils-selftests.c: Fix common/ includes.
11083 * unittests/unpack-selftests.c: Fix common/ includes.
11084 * unittests/tracepoint-selftests.c: Fix common/ includes.
11085 * unittests/style-selftests.c: Fix common/ includes.
11086 * unittests/string_view-selftests.c: Fix common/ includes.
11087 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11088 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11089 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11090 * unittests/rsp-low-selftests.c: Fix common/ includes.
11091 * unittests/parse-connection-spec-selftests.c: Fix common/
11092 includes.
11093 * unittests/optional-selftests.c: Fix common/ includes.
11094 * unittests/offset-type-selftests.c: Fix common/ includes.
11095 * unittests/observable-selftests.c: Fix common/ includes.
11096 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11097 * unittests/memrange-selftests.c: Fix common/ includes.
11098 * unittests/memory-map-selftests.c: Fix common/ includes.
11099 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11100 * unittests/function-view-selftests.c: Fix common/ includes.
11101 * unittests/environ-selftests.c: Fix common/ includes.
11102 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11103 * unittests/common-utils-selftests.c: Fix common/ includes.
11104 * unittests/cli-utils-selftests.c: Fix common/ includes.
11105 * unittests/array-view-selftests.c: Fix common/ includes.
11106 * ui-file.c: Fix common/ includes.
11107 * tui/tui-io.c: Fix common/ includes.
11108 * tracepoint.h: Fix common/ includes.
11109 * tracepoint.c: Fix common/ includes.
11110 * tracefile-tfile.c: Fix common/ includes.
11111 * top.h: Fix common/ includes.
11112 * top.c: Fix common/ includes.
11113 * thread.c: Fix common/ includes.
11114 * target/waitstatus.h: Fix common/ includes.
11115 * target/waitstatus.c: Fix common/ includes.
11116 * target.h: Fix common/ includes.
11117 * target.c: Fix common/ includes.
11118 * target-memory.c: Fix common/ includes.
11119 * target-descriptions.c: Fix common/ includes.
11120 * symtab.h: Fix common/ includes.
11121 * symfile.c: Fix common/ includes.
11122 * stap-probe.c: Fix common/ includes.
11123 * spu-linux-nat.c: Fix common/ includes.
11124 * sparc-nat.c: Fix common/ includes.
11125 * source.c: Fix common/ includes.
11126 * solib.c: Fix common/ includes.
11127 * solib-target.c: Fix common/ includes.
11128 * ser-unix.c: Fix common/ includes.
11129 * ser-tcp.c: Fix common/ includes.
11130 * ser-pipe.c: Fix common/ includes.
11131 * ser-base.c: Fix common/ includes.
11132 * selftest-arch.c: Fix common/ includes.
11133 * s12z-tdep.c: Fix common/ includes.
11134 * rust-exp.y: Fix common/ includes.
11135 * rs6000-aix-tdep.c: Fix common/ includes.
11136 * riscv-tdep.c: Fix common/ includes.
11137 * remote.c: Fix common/ includes.
11138 * remote-notif.h: Fix common/ includes.
11139 * remote-fileio.h: Fix common/ includes.
11140 * remote-fileio.c: Fix common/ includes.
11141 * regcache.h: Fix common/ includes.
11142 * regcache.c: Fix common/ includes.
11143 * record-btrace.c: Fix common/ includes.
11144 * python/python.c: Fix common/ includes.
11145 * python/py-type.c: Fix common/ includes.
11146 * python/py-inferior.c: Fix common/ includes.
11147 * progspace.h: Fix common/ includes.
11148 * producer.c: Fix common/ includes.
11149 * procfs.c: Fix common/ includes.
11150 * proc-api.c: Fix common/ includes.
11151 * printcmd.c: Fix common/ includes.
11152 * ppc-linux-nat.c: Fix common/ includes.
11153 * parser-defs.h: Fix common/ includes.
11154 * osdata.c: Fix common/ includes.
11155 * obsd-nat.c: Fix common/ includes.
11156 * nat/x86-linux.c: Fix common/ includes.
11157 * nat/x86-linux-dregs.c: Fix common/ includes.
11158 * nat/x86-dregs.h: Fix common/ includes.
11159 * nat/x86-dregs.c: Fix common/ includes.
11160 * nat/ppc-linux.c: Fix common/ includes.
11161 * nat/mips-linux-watch.h: Fix common/ includes.
11162 * nat/mips-linux-watch.c: Fix common/ includes.
11163 * nat/linux-waitpid.c: Fix common/ includes.
11164 * nat/linux-ptrace.h: Fix common/ includes.
11165 * nat/linux-ptrace.c: Fix common/ includes.
11166 * nat/linux-procfs.c: Fix common/ includes.
11167 * nat/linux-personality.c: Fix common/ includes.
11168 * nat/linux-osdata.c: Fix common/ includes.
11169 * nat/linux-namespaces.c: Fix common/ includes.
11170 * nat/linux-btrace.h: Fix common/ includes.
11171 * nat/linux-btrace.c: Fix common/ includes.
11172 * nat/fork-inferior.c: Fix common/ includes.
11173 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11174 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11175 * nat/aarch64-linux.c: Fix common/ includes.
11176 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11177 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11178 * namespace.h: Fix common/ includes.
11179 * mips-linux-tdep.c: Fix common/ includes.
11180 * minsyms.c: Fix common/ includes.
11181 * mi/mi-parse.h: Fix common/ includes.
11182 * mi/mi-main.c: Fix common/ includes.
11183 * mi/mi-cmd-env.c: Fix common/ includes.
11184 * memrange.h: Fix common/ includes.
11185 * memattr.c: Fix common/ includes.
11186 * maint.h: Fix common/ includes.
11187 * maint.c: Fix common/ includes.
11188 * main.c: Fix common/ includes.
11189 * machoread.c: Fix common/ includes.
11190 * location.c: Fix common/ includes.
11191 * linux-thread-db.c: Fix common/ includes.
11192 * linux-nat.c: Fix common/ includes.
11193 * linux-fork.c: Fix common/ includes.
11194 * inline-frame.c: Fix common/ includes.
11195 * infrun.c: Fix common/ includes.
11196 * inflow.c: Fix common/ includes.
11197 * inferior.h: Fix common/ includes.
11198 * inferior.c: Fix common/ includes.
11199 * infcmd.c: Fix common/ includes.
11200 * inf-ptrace.c: Fix common/ includes.
11201 * inf-child.c: Fix common/ includes.
11202 * ia64-linux-nat.c: Fix common/ includes.
11203 * i387-tdep.c: Fix common/ includes.
11204 * i386-tdep.c: Fix common/ includes.
11205 * i386-linux-tdep.c: Fix common/ includes.
11206 * i386-linux-nat.c: Fix common/ includes.
11207 * i386-go32-tdep.c: Fix common/ includes.
11208 * i386-fbsd-tdep.c: Fix common/ includes.
11209 * i386-fbsd-nat.c: Fix common/ includes.
11210 * guile/scm-type.c: Fix common/ includes.
11211 * guile/guile.c: Fix common/ includes.
11212 * go32-nat.c: Fix common/ includes.
11213 * gnu-nat.c: Fix common/ includes.
11214 * gdbthread.h: Fix common/ includes.
11215 * gdbarch-selftests.c: Fix common/ includes.
11216 * gdb_usleep.c: Fix common/ includes.
11217 * gdb_select.h: Fix common/ includes.
11218 * gdb_bfd.c: Fix common/ includes.
11219 * gcore.c: Fix common/ includes.
11220 * fork-child.c: Fix common/ includes.
11221 * findvar.c: Fix common/ includes.
11222 * fbsd-nat.c: Fix common/ includes.
11223 * event-top.c: Fix common/ includes.
11224 * event-loop.c: Fix common/ includes.
11225 * dwarf2read.c: Fix common/ includes.
11226 * dwarf2loc.c: Fix common/ includes.
11227 * dwarf2-frame.c: Fix common/ includes.
11228 * dwarf-index-cache.c: Fix common/ includes.
11229 * dtrace-probe.c: Fix common/ includes.
11230 * disasm-selftests.c: Fix common/ includes.
11231 * defs.h: Fix common/ includes.
11232 * csky-tdep.c: Fix common/ includes.
11233 * cp-valprint.c: Fix common/ includes.
11234 * cp-support.h: Fix common/ includes.
11235 * cp-support.c: Fix common/ includes.
11236 * corelow.c: Fix common/ includes.
11237 * completer.h: Fix common/ includes.
11238 * completer.c: Fix common/ includes.
11239 * compile/compile.c: Fix common/ includes.
11240 * compile/compile-loc2c.c: Fix common/ includes.
11241 * compile/compile-cplus-types.c: Fix common/ includes.
11242 * compile/compile-cplus-symbols.c: Fix common/ includes.
11243 * command.h: Fix common/ includes.
11244 * cli/cli-dump.c: Fix common/ includes.
11245 * cli/cli-cmds.c: Fix common/ includes.
11246 * charset.c: Fix common/ includes.
11247 * build-id.c: Fix common/ includes.
11248 * btrace.h: Fix common/ includes.
11249 * btrace.c: Fix common/ includes.
11250 * breakpoint.h: Fix common/ includes.
11251 * breakpoint.c: Fix common/ includes.
11252 * ax.h:
11253 (enum agent_op): Fix common/ includes.
11254 * ax-general.c (struct aop_map): Fix common/ includes.
11255 * ax-gdb.c: Fix common/ includes.
11256 * auxv.c: Fix common/ includes.
11257 * auto-load.c: Fix common/ includes.
11258 * arm-tdep.c: Fix common/ includes.
11259 * arch/riscv.c: Fix common/ includes.
11260 * arch/ppc-linux-common.c: Fix common/ includes.
11261 * arch/i386.c: Fix common/ includes.
11262 * arch/arm.c: Fix common/ includes.
11263 * arch/arm-linux.c: Fix common/ includes.
11264 * arch/arm-get-next-pcs.c: Fix common/ includes.
11265 * arch/amd64.c: Fix common/ includes.
11266 * arch/aarch64.c: Fix common/ includes.
11267 * arch/aarch64-insn.c: Fix common/ includes.
11268 * arch-utils.c: Fix common/ includes.
11269 * amd64-windows-tdep.c: Fix common/ includes.
11270 * amd64-tdep.c: Fix common/ includes.
11271 * amd64-sol2-tdep.c: Fix common/ includes.
11272 * amd64-obsd-tdep.c: Fix common/ includes.
11273 * amd64-nbsd-tdep.c: Fix common/ includes.
11274 * amd64-linux-tdep.c: Fix common/ includes.
11275 * amd64-linux-nat.c: Fix common/ includes.
11276 * amd64-fbsd-tdep.c: Fix common/ includes.
11277 * amd64-fbsd-nat.c: Fix common/ includes.
11278 * amd64-dicos-tdep.c: Fix common/ includes.
11279 * amd64-darwin-tdep.c: Fix common/ includes.
11280 * agent.c: Fix common/ includes.
11281 * ada-lang.h: Fix common/ includes.
11282 * ada-lang.c: Fix common/ includes.
11283 * aarch64-tdep.c: Fix common/ includes.
11284
2f5c153e
TT
112852019-01-25 Tom Tromey <tom@tromey.com>
11286
11287 * common/create-version.sh: Use common/version.h.
11288
adc6a863
PA
112892019-01-24 Pedro Alves <palves@redhat.com>
11290
11291 * infrun.c (signal_stop, signal_print, signal_program)
11292 (signal_catch, signal_pass): Now arrays instead of pointers.
11293 (update_signals_program_target, do_target_resume)
11294 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11295 * linux-nat.c (linux_nat_target::pass_signals)
11296 (linux_nat_target::create_inferior, linux_nat_target::attach):
11297 Adjust.
11298 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11299 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11300 * procfs.c (procfs_target::pass_signals): Adjust.
11301 * record-full.c (record_full_target::resume): Adjust.
11302 * remote.c (remote_target::pass_signals)
11303 (remote_target::program_signals): Adjust.
11304 * target-debug.h (target_debug_print_signals): Now takes a
11305 gdb::array_view as parameter. Adjust.
11306 * target.h (target_ops) <pass_signals, program_signals>: Replace
11307 pointer and length parameters with gdb::array_view.
11308 (target_pass_signals, target_program_signals): Likewise.
11309 * target-delegates.c: Regenerate.
11310
3046d67a
PA
113112019-01-24 Pedro Alves <palves@redhat.com>
11312
11313 * common/forward-scope-exit.h
11314 (forward_scope_exit::forward_scope_exit): Pass arguments to
11315 m_bind_function directly, instead of creating a std::bind and
11316 copying that.
11317
353229bf
AH
113182019-01-24 Alan Hayward <alan.hayward@arm.com>
11319
11320 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11321 for static members.
11322 (pass_in_v_vfp_candidate): Likewise.
11323
311dc83a
TT
113242019-01-23 Tom Tromey <tom@tromey.com>
11325 Pedro Alves <palves@redhat.com>
11326
11327 * regcache.c (class regcache_invalidator): Remove.
11328 (regcache::raw_write): Use make_scope_exit.
11329
296bd123
TT
113302019-01-23 Tom Tromey <tom@tromey.com>
11331
11332 * ui-out.h (class ui_out_emit_type): Update comment.
11333
979a0d13
TT
113342019-01-23 Tom Tromey <tom@tromey.com>
11335
11336 * infrun.c (fetch_inferior_event): Update comment.
11337
d238133d
TT
113382019-01-23 Tom Tromey <tom@tromey.com>
11339 Pedro Alves <palves@redhat.com>
11340
11341 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11342 parameter.
11343 (fetch_inferior_event): Use SCOPE_EXIT.
11344
11345
9885e6bb
TT
113462019-01-23 Tom Tromey <tom@tromey.com>
11347 Pedro Alves <palves@redhat.com>
11348
11349 * infrun.c (disable_thread_events): Delete.
11350 (stop_all_threads): Use SCOPE_EXIT.
11351
286526c1
TT
113522019-01-23 Tom Tromey <tom@tromey.com>
11353 Pedro Alves <palves@redhat.com>
11354
11355 * symfile.c: Include forward-scope-exit.h.
11356 (clear_symtab_users_cleanup): Replace forward declaration with
11357 a FORWARD_SCOPE_EXIT.
11358 (syms_from_objfile_1): Use the forward_scope_exit and
11359 gdb::optional instead of cleanup_function.
11360 (reread_symbols): Use the forward_scope_exit instead of
11361 cleanup_function.
11362 (clear_symtab_users_cleanup): Remove function.
11363
1db93f14
TT
113642019-01-23 Tom Tromey <tom@tromey.com>
11365 Pedro Alves <palves@redhat.com>
11366
11367 * linux-nat.c: Include scope-exit.h.
11368 (cleanup_target_stop): Remove.
11369 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11370 SCOPE_EXIT.
11371
2cc83d1e
TT
113722019-01-23 Tom Tromey <tom@tromey.com>
11373 Pedro Alves <palves@redhat.com>
11374
11375 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11376 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11377
694c6bf5
TT
113782019-01-23 Tom Tromey <tom@tromey.com>
11379 Andrew Burgess <andrew.burgess@embecosm.com>
11380 Pedro Alves <palves@redhat.com>
11381
11382 * infrun.c (fetch_inferior_event): Use scope_exit.
11383 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11384 * top.c (execute_command): Use scope_exit.
11385 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11386 * utils.c (do_bpstat_clear_actions_cleanup)
11387 (make_bpstat_clear_actions_cleanup): Remove.
11388
4c41382a
TT
113892019-01-23 Tom Tromey <tom@tromey.com>
11390 Pedro Alves <palves@redhat.com>
11391
11392 * infrun.c: Include "common/scope-exit.h"
11393 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11394 (wait_for_inferior): Use SCOPE_EXIT.
11395 (fetch_inferior_event): Use scope_exit.
11396
89f8fb50
TT
113972019-01-23 Tom Tromey <tom@tromey.com>
11398 Pedro Alves <palves@redhat.com>
11399
11400 * breakpoint.c (create_breakpoint): Remove cleanup.
11401
5419bdae
TT
114022019-01-23 Tom Tromey <tom@tromey.com>
11403 Andrew Burgess <andrew.burgess@embecosm.com>
11404 Pedro Alves <palves@redhat.com>
11405
e587ef42
PA
114062019-01-23 Pedro Alves <palves@redhat.com>
11407
11408 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11409
77f0e74c
PA
114102019-01-23 Pedro Alves <palves@redhat.com>
11411 Andrew Burgess <andrew.burgess@embecosm.com>
11412
11413 * gdbthread.h: Include "common/forward-scope-exit.h".
11414 (scoped_finish_thread_state): Redefine custom class in terms of
11415 forward_scope_exit.
11416
5b9b3e53
PA
114172019-01-23 Pedro Alves <palves@redhat.com>
11418 Andrew Burgess <andrew.burgess@embecosm.com>
11419
11420 * common/forward-scope-exit.h: New file.
11421
54b65c9b
PA
114222019-01-23 Pedro Alves <palves@redhat.com>
11423 Andrew Burgess <andrew.burgess@embecosm.com>
11424 Tom Tromey <tom@tromey.com>
11425
11426 * common/scope-exit.h: New file.
11427
cf08fb29
PA
114282019-01-23 Pedro Alves <palves@redhat.com>
11429
11430 * common/preprocessor.h (ESC): Rename to ...
11431 (ESC_PARENS): ... this.
11432 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11433 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11434
ae73e2e2
TT
114352019-01-23 Tom Tromey <tom@tromey.com>
11436
11437 * language.h (class scoped_switch_to_sym_language_if_auto):
11438 Initialize m_lang in both cases.
11439
6594e122
AH
114402019-01-23 Alan Hayward <alan.hayward@arm.com>
11441
11442 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11443 with XCNEW.
11444
a7c9855d
TT
114452019-01-22 Tom Tromey <tom@tromey.com>
11446
11447 * corelow.c: Do not include sys/file.h.
11448
93cc1d53
TT
114492019-01-22 Tom Tromey <tom@tromey.com>
11450
11451 * tui/tui-wingeneral.h: Include gdb_curses.h.
11452
38561778
TT
114532019-01-22 Tom Tromey <tom@tromey.com>
11454
11455 * source-cache.h (class source_cache) <get_source_lines,
11456 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11457
37b3ab5b
TT
114582019-01-22 Tom Tromey <tom@tromey.com>
11459
11460 * remote-fileio.h (struct remote_target): Declare.
11461
3fabc016
TT
114622019-01-22 Tom Tromey <tom@tromey.com>
11463
11464 * python/py-arch.c: Do not include py-ref.h.
11465 * python/py-bpevent.c: Do not include py-ref.h.
11466 * python/py-cmd.c: Do not include py-ref.h.
11467 * python/py-continueevent.c: Do not include py-ref.h.
11468 * python/py-event.h: Do not include py-ref.h.
11469 * python/py-evtregistry.c: Do not include py-ref.h.
11470 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11471 * python/py-frame.c: Do not include py-ref.h.
11472 * python/py-framefilter.c: Do not include py-ref.h.
11473 * python/py-function.c: Do not include py-ref.h.
11474 * python/py-infevents.c: Do not include py-ref.h.
11475 * python/py-linetable.c: Do not include py-ref.h.
11476 * python/py-objfile.c: Do not include py-ref.h.
11477 * python/py-param.c: Do not include py-ref.h.
11478 * python/py-prettyprint.c: Do not include py-ref.h.
11479 * python/py-progspace.c: Do not include py-ref.h.
11480 * python/py-symbol.c: Do not include py-ref.h.
11481 * python/py-symtab.c: Do not include py-ref.h.
11482 * python/py-type.c: Do not include py-ref.h.
11483 * python/py-unwind.c: Do not include py-ref.h.
11484 * python/py-utils.c: Do not include py-ref.h.
11485 * python/py-value.c: Do not include py-ref.h.
11486 * python/py-varobj.c: Do not include py-ref.h.
11487 * python/py-xmethods.c: Do not include py-ref.h.
11488 * python/python.c: Do not include py-ref.h.
11489 * varobj.c: Do not include py-ref.h.
11490
6b4d7774
TT
114912019-01-22 Tom Tromey <tom@tromey.com>
11492
11493 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11494 keyword for bcache.
11495
7af7e9b5
TT
114962019-01-22 Tom Tromey <tom@tromey.com>
11497
11498 * compile/compile-cplus-types.c: Remove a comment by #include.
11499
951d1049
TT
115002019-01-22 Tom Tromey <tom@tromey.com>
11501
11502 * compile/gcc-c-plugin.h: Include compile-internal.h.
11503
d65d5705
TT
115042019-01-22 Tom Tromey <tom@tromey.com>
11505
11506 * stabsread.c (EXTERN): Do not define.
11507 (symnum, next_symbol_text_func, processing_gcc_compilation)
11508 (within_function, global_sym_chain, global_stabs)
11509 (previous_stab_code, this_object_header_files)
11510 (n_this_object_header_files)
11511 (n_allocated_this_object_header_files): Define.
11512 * stabsread.h (EXTERN): Never define. Use "extern".
11513
b6fb1ee5
PW
115142019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11515
11516 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11517 history_value.
11518
be6d4f74
TT
115192019-01-21 Tom Tromey <tom@tromey.com>
11520
11521 * ui-out.c: Fix includes.
11522 * tui/tui-source.c: Fix includes.
11523 * target.c: Fix includes.
11524 * remote.c: Fix includes.
11525 * regcache.c: Fix includes.
11526 * python/py-block.c: Fix includes.
11527 * printcmd.c: Fix includes.
11528 * or1k-tdep.c: Fix includes.
11529 * mi/mi-main.c: Fix includes.
11530 * m32r-tdep.c: Fix includes.
11531 * csky-tdep.c: Fix includes.
11532 * compile/compile-cplus-types.c: Fix includes.
11533 * cli/cli-interp.c: Fix includes.
11534
73021deb
AH
115352019-01-21 Alan Hayward <alan.hayward@arm.com>
11536
11537 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11538 for padding.
11539
7932255d
TT
115402019-01-16 Tom Tromey <tom@tromey.com>
11541
11542 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11543 earlier.
11544 (struct objfile) <msymbols_range>: Move from top level.
11545 <msymbols>: New method.
11546 (class objfile_msymbols): Remove.
11547 * symtab.c (default_collect_symbol_completion_matches_break_on):
11548 Update.
11549 * symmisc.c (dump_msymbols): Update.
11550 * stabsread.c (scan_file_globals): Update.
11551 * objc-lang.c (info_selectors_command, info_classes_command)
11552 (find_methods): Update.
11553 * minsyms.c (find_solib_trampoline_target): Update.
11554 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11555 * coffread.c (coff_symfile_read): Update.
11556 * ada-lang.c (ada_lookup_simple_minsym)
11557 (ada_collect_symbol_completion_matches): Update.
11558
604b1bfb
TT
115592019-01-16 Tom Tromey <tom@tromey.com>
11560
11561 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11562 type. Remove no-argument constructor.
11563 <iterator::operator++>: Simplify.
11564 <begin>: Update.
11565 <end>: Use minimal_symbol_count.
11566
f252c6d5
TT
115672019-01-16 Tom Tromey <tom@tromey.com>
11568
11569 * objfiles.h (struct objfile) <psymtabs>: New method.
11570 (class objfile_psymtabs): Remove.
11571 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11572 typedef.
11573 <range>: New method.
11574 (require_partial_symbols): Change return type.
11575 * psymtab.c (require_partial_symbols)
11576 (psym_expand_symtabs_matching): Update.
11577 * mdebugread.c (parse_partial_symbols): Update.
11578 * dbxread.c (dbx_end_psymtab): Update.
11579
b669c953
TT
115802019-01-15 Tom Tromey <tom@tromey.com>
11581
11582 * symtab.c (lookup_objfile_from_block)
11583 (lookup_symbol_in_objfile_symtabs)
11584 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11585 (find_line_symtab, info_sources_command)
11586 (default_collect_symbol_completion_matches_break_on)
11587 (make_source_files_completion_list): Update.
11588 * symmisc.c (print_objfile_statistics, dump_objfile)
11589 (maintenance_print_symbols, maintenance_info_symtabs)
11590 (maintenance_check_symtabs, maintenance_info_line_tables):
11591 Update.
11592 * source.c (select_source_symtab)
11593 (forget_cached_source_info_for_objfile): Update.
11594 * objfiles.h (class objfile_compunits): Remove.
11595 (struct objfile) <compunits_range>: New typedef.
11596 (compunits): New method.
11597 * objfiles.c (objfile_relocate1): Update.
11598 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11599 * maint.c (count_symtabs_and_blocks): Update.
11600 * linespec.c (iterate_over_all_matching_symtabs): Update.
11601 * cp-support.c (add_symbol_overload_list_qualified): Update.
11602 * coffread.c (coff_symtab_read): Update.
11603 * ada-lang.c (add_nonlocal_symbols)
11604 (ada_collect_symbol_completion_matches)
11605 (ada_add_global_exceptions): Update.
11606
7e955d83
TT
116072019-01-15 Tom Tromey <tom@tromey.com>
11608
11609 * progspace.h (program_space) <objfiles_safe_range>: New
11610 typedef.
11611 <objfiles_safe>: New method.
11612 * objfiles.h (class all_objfiles_safe): Remove.
11613 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11614 * jit.c (jit_inferior_exit_hook): Update.
11615
2030c079
TT
116162019-01-17 Tom Tromey <tom@tromey.com>
11617
11618 * progspace.h (program_space) <objfiles_range>: New typedef.
11619 <objfiles>: New method.
11620 <objfiles_head>: Rename from objfiles.
11621 (object_files): Update.
11622 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11623 * guile/scm-pretty-print.c
11624 (ppscm_find_pretty_printer_from_objfiles): Update.
11625 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11626 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11627 Update.
11628 * python/py-progspace.c (pspy_get_objfiles): Update.
11629 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11630 Update.
11631 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11632 (objfpy_lookup_objfile_by_build_id): Update.
11633 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11634 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11635 Update.
11636 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11637 (expand_symtab_containing_pc, lookup_objfile_from_block)
11638 (lookup_static_symbol, basic_lookup_transparent_type)
11639 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11640 (find_line_symtab, info_sources_command)
11641 (default_collect_symbol_completion_matches_break_on)
11642 (make_source_files_completion_list, find_main_name): Update.
11643 * symmisc.c (print_symbol_bcache_statistics)
11644 (print_objfile_statistics, maintenance_print_symbols)
11645 (maintenance_print_msymbols, maintenance_print_objfiles)
11646 (maintenance_info_symtabs, maintenance_check_symtabs)
11647 (maintenance_expand_symtabs, maintenance_info_line_tables):
11648 Update.
11649 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11650 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11651 (map_overlay_command, unmap_overlay_command)
11652 (simple_overlay_update, expand_symtabs_matching)
11653 (map_symbol_filenames): Update.
11654 * symfile-debug.c (set_debug_symfile): Update.
11655 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11656 Update.
11657 * source.c (select_source_symtab, forget_cached_source_info):
11658 Update.
11659 * solib.c (solib_read_symbols): Update.
11660 * solib-spu.c (append_ocl_sos): Update.
11661 * psymtab.c (maintenance_print_psymbols)
11662 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11663 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11664 * printcmd.c (info_symbol_command): Update.
11665 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11666 Update.
11667 * objfiles.h (class all_objfiles): Remove.
11668 * objfiles.c (have_partial_symbols, have_full_symbols)
11669 (have_minimal_symbols, qsort_cmp, update_section_map)
11670 (shared_objfile_contains_address_p)
11671 (default_iterate_over_objfiles_in_search_order): Update.
11672 * objc-lang.c (info_selectors_command, info_classes_command)
11673 (find_methods): Update.
11674 * minsyms.c (find_solib_trampoline_target): Update.
11675 * maint.c (maintenance_info_sections)
11676 (maintenance_translate_address, count_symtabs_and_blocks):
11677 Update.
11678 * main.c (captured_main_1): Update.
11679 * linux-thread-db.c (try_thread_db_load_from_pdir)
11680 (has_libpthread): Update.
11681 * linespec.c (iterate_over_all_matching_symtabs)
11682 (search_minsyms_for_name): Update.
11683 * jit.c (jit_find_objf_with_entry_addr): Update.
11684 * hppa-tdep.c (find_unwind_entry)
11685 (hppa_lookup_stub_minimal_symbol): Update.
11686 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11687 Update.
11688 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11689 (elf_gnu_ifunc_resolve_by_got): Update.
11690 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11691 * dwarf-index-write.c (save_gdb_index_command): Update.
11692 * cp-support.c (add_symbol_overload_list_qualified): Update.
11693 * breakpoint.c (create_overlay_event_breakpoint)
11694 (create_longjmp_master_breakpoint)
11695 (create_std_terminate_master_breakpoint)
11696 (create_exception_master_breakpoint): Update.
11697 * blockframe.c (find_pc_partial_function): Update.
11698 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11699 (ada_collect_symbol_completion_matches)
11700 (ada_add_global_exceptions): Update.
11701
776489e0
TT
117022019-01-17 Tom Tromey <tom@tromey.com>
11703
11704 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11705 declare VEC.
11706 (solib_target_parse_libraries): Change return type.
11707 (library_list_start_segment, library_list_start_section)
11708 (library_list_end_library, library_list_start_library); Update.
11709 (solib_target_free_library_list): Remove.
11710 (solib_target_parse_libraries): Remove cleanup. Change return
11711 type.
11712 (solib_target_current_sos): Update.
11713
6471e7d2
TT
117142019-01-17 Tom Tromey <tromey@bapiya>
11715
11716 * valprint.c: Replace "the the" with "the".
11717 * symtab.c: Replace "the the" with "the".
11718 * solib.c: Replace "the the" with "the".
11719 * solib-dsbt.c: Replace "the the" with "the".
11720 * linespec.c: Replace "the the" with "the".
11721 * dwarf2loc.h: Replace "the the" with "the".
11722 * amd64-windows-tdep.c: Replace "the the" with "the".
11723 * aarch64-tdep.c: Replace "the the" with "the".
11724
c24bdb02
KS
117252019-01-16 Keith Seitz <keiths@redhat.com>
11726
11727 PR gdb/23773
11728 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11729 <builder>: Rename to ..
11730 <m_builder>: ... this and make private.
11731 (dwarf2_cu::get_builder): New method. Change all users of
11732 `builder' to use this method.
11733 (dwarf2_start_symtab): Move to ...
11734 (dwarf2_cu::start_symtab): ... here. Update all callers
11735 (setup_type_unit_groups): Move to ...
11736 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11737 callers.
11738 (dwarf2_cu::reset_builder): New method.
11739 (process_full_compunit, process_full_type_unit): Use
11740 dwarf2_cu::reset_builder.
11741 (follow_die_offset): Record the ancestor CU if it is different
11742 from the followed DIE's CU.
11743 (follow_die_sig_1): Likewise.
11744
8d64371b
TT
117452019-01-15 Tom Tromey <tom@tromey.com>
11746
11747 * remote.c (class remote_state) <buf>: Now a char_vector.
11748 <buf_size>: Remove.
11749 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11750 parameter.
11751 (remote_target::getpkt_or_notif_sane_1)
11752 (remote_target::getpkt_sane)
11753 (remote_target::getpkt_or_notif_sane): Likewise.
11754 (class remote_target) <putpkt>: New overload.
11755 (remote_target::read_frame): Change type of "buf_p". Remove
11756 sizeof_p parameter.
11757 (packet_ok): New overload.
11758 (packet_check_result): New overload.
11759 Update all uses.
11760
bb277751
TT
117612019-01-14 Tom Tromey <tom@tromey.com>
11762
11763 * remote-notif.c (handle_notification, remote_notif_ack)
11764 (remote_notif_parse): Make "buf" const.
11765 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11766 const.
11767 (remote_notif_parse, remote_notif_ack, handle_notification):
11768 Likewise.
11769 * remote.c (remote_notif_stop_parse): Make "buf" const.
11770 (remote_target::remote_parse_stop_reply): Make "buf" const.
11771 (remote_notif_stop_ack): Make "buf" const.
11772
05be00a8
TT
117732019-01-14 Tom Tromey <tom@tromey.com>
11774
11775 * remote.c (remote_console_output): Make parameter const.
11776
491adeca
TT
117772019-01-14 Tom Tromey <tom@tromey.com>
11778
11779 * target-debug.h (target_debug_print_signals): Constify.
11780 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11781 * procfs.c (procfs_target::pass_signals): Update.
11782 * linux-nat.c (linux_nat_target::pass_signals): Update.
11783 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11784 * target-delegates.c: Rebuild.
11785 * remote.c (remote_target::program_signals): Update.
11786 (remote_target::pass_signals): Update.
11787 * target.c (target_pass_signals): Constify argument.
11788 (target_program_signals): Likewise.
11789 * target.h (struct target_ops) <pass_signals, program_signals>:
11790 Constify argument.
11791 (target_pass_signals, target_program_signals): Constify argument.
11792
bbd94648
TT
117932019-01-14 Tom Tromey <tom@tromey.com>
11794
11795 PR tui/28819:
11796 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11797
6f072a10
PFC
117982019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11799
11800 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11801 field.
11802 * rs6000-tdep.c: Include reggroups.h.
11803 (IS_V_ALIAS_PSEUDOREG): Define.
11804 (rs6000_register_name): Return names for the "vX" aliases.
11805 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11806 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11807 aliases. Call default_register_reggroup_p for all other
11808 pseudo-registers.
11809 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11810 New functions.
11811 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11812 Handle "vX" aliases.
11813 (v_alias_pseudo_register_collect): New function.
11814 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11815 (rs6000_gdbarch_init): Initialize "vX" aliases as
11816 pseudo-registers. Restore registration of
11817 rs6000_pseudo_register_reggroup_p with
11818 set_tdesc_pseudo_register_reggroup_p.
11819
1a782351
MF
118202019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11821
11822 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11823 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11824 set_gdbarch_num_pseudo_regs.
11825
d73cff18
PW
118262019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11827
11828 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11829 Remove arg prefixname, add do_set and do_show.
11830 Add member functions set_list and show_list.
11831 * cli/cli-style.c (class cli_style_option): Update accordingly.
11832 (style_set_list): Move to file scope.
11833 (style_show_list): Likewise.
11834 (set_style): Call help_list.
11835 (show_style): Call cmd_show_list.
11836 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11837 Update to use the new macro.
11838
60a90376
JB
118392019-10-12 Joel Brobecker <brobecker@adacore.com>
11840
11841 * ada-lang.c (_initialize_ada_language): Expand the help text
11842 for the "catch exception" command.
11843
9d7c67bf
PW
118442019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11845
11846 * symtab.c (matching_obj_sections): Initialize obj,
11847 declare it closer to its usage.
11848
7cf47dc4
TT
118492019-01-10 Tom Tromey <tom@tromey.com>
11850
11851 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11852 (basic_inf_threads_range): Remove.
11853 (inf_threads_range, inf_non_exited_threads_range)
11854 (safe_inf_threads_range): Use next_adapter.
11855
d3cb6808
KS
118562019-01-10 Keith Seitz <keiths@redhat.com>
11857
11858 PR gdb/23712
11859 PR symtab/23010
11860 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11861 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11862
63a20375
KS
118632019-01-10 Keith Seitz <keiths@redhat.com>
11864
11865 PR gdb/23712
11866 PR symtab/23010
11867 * dictionary.c (pending_to_vector): Remove.
11868 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11869 Remove _1 suffix, replacing functions of the same name. Update
11870 all callers.
11871 (dict_create_hashed, dict_create_hashed_expandable)
11872 (dict_create_linear, dict_create_linear_expandable, dict_free)
11873 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11874 Make functions static.
11875
b026f593
KS
118762019-01-10 Keith Seitz <keiths@redhat.com>
11877
11878 PR gdb/23712
11879 PR symtab/23010
11880 * dictionary.h (struct dictionary): Replace declaration with
11881 multidictionary.
11882 (dict_create_hashed, dict_create_hashed_expandable)
11883 (dict_create_linear, dict_create_linear_expandable)
11884 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11885 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11886 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11887 taking multidictionary argument.
11888 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11889 * block.h (struct block) <dict>: Change to multidictionary
11890 and rename `multidict'.
11891 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11892 symmisc.c: Update all dictionary references to multidictionary.
11893
c7748ee9
KS
118942019-01-10 Keith Seitz <keiths@redhat.com>
11895
11896 PR gdb/23712
11897 PR symtab/23010
11898 * dictionary.c: Include unordered_map.
11899 (pending_to_vector): New function.
11900 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11901 Rewrite the non-"_1" functions to take vector instead
11902 of linked list.
11903 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11904 "new" _1 versions of the same name.
11905 (multidictionary): Define.
11906 (std::hash<enum language): New definition.
11907 (collate_pending_symbols_by_language, mdict_create_hashed)
11908 (mdict_create_hashed_expandable, mdict_create_linear)
11909 (mdict_create_linear_expandable, mdict_free)
11910 (find_language_dictionary, create_new_language_dictionary)
11911 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11912 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11913 (mdict_size, mdict_empty): New functions.
11914 * dictionary.h (mdict_iterator): Define.
11915
67aa1f3c
PA
119162019-01-10 Pedro Alves <palves@redhat.com>
11917
11918 * breakpoint.c (read_uploaded_action)
11919 (create_tracepoint_from_upload): Adjust to use
11920 gdb::unique_xmalloc_ptr.
11921 * ctf.c (ctf_write_uploaded_tp):
11922 (SET_ARRAY_FIELD): Use emplace_back.
11923 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11924 * tracefile-tfile.c (tfile_write_uploaded_tp):
11925 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11926 gdb::unique_xmalloc_ptr.
11927 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11928 at_string, cond_string, cmd_strings>: Replace char pointers
11929 with gdb::unique_xmalloc_ptr.
11930
2f667667
PA
119312019-01-10 Pedro Alves <palves@redhat.com>
11932
11933 * solib-target.c (library_list_start_library): Don't xstrdup name.
11934
36cb7237
PA
119352019-01-10 Pedro Alves <palves@redhat.com>
11936
11937 * mdebugread.c (parse_partial_symbols): Use
11938 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11939
da584958
AB
119402019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11941
11942 * linux-fork.c (scoped_switch_fork_info)
11943 <~scoped_switch_fork_info>: Fix incorrect variable name.
11944
1ef8573c
AB
119452019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11946
11947 * linux-fork.c (scoped_switch_fork_info)
11948 <scoped_switch_fork_info>: Make explicit.
11949 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11950
8d7bcccb
TT
119512019-01-10 Tom Tromey <tom@tromey.com>
11952
11953 * objfiles.h (objfile::reset_psymtabs): Update.
11954 * objfiles.c (objfile::objfile): Update.
11955 * psymtab.h (psymtab_storage::obstack): Update.
11956 (psymtab_storage::m_obstack): Use gdb::optional.
11957 (class psymtab_storage): Update comment. Remove objfile
11958 parameter.
11959 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11960
b596a3c7
TT
119612019-01-10 Tom Tromey <tom@tromey.com>
11962
11963 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11964 <free_psymtabs>: Now private.
11965 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11966 (allocate_psymtab): Use new method.
11967
a9342b62
TT
119682019-01-10 Tom Tromey <tom@tromey.com>
11969
11970 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11971 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11972 * mdebugread.c (parse_partial_symbols): Use
11973 allocate_dependencies.
11974 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11975 allocate_dependencies.
11976 (process_psymtab_comp_unit_reader)
11977 (build_type_psymtab_dependencies): Likewise.
11978 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11979
5af70966
TT
119802019-01-10 Tom Tromey <tom@tromey.com>
11981
11982 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11983 PSYMBOL_SET_LANGUAGE.
11984 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11985
5923a04c
TT
119862019-01-10 Tom Tromey <tom@tromey.com>
11987
11988 * psymtab.h (psymtab_storage::obstack): New method.
11989 <m_obstack>: Rename from obstack; now private.
11990 * psymtab.c (psymtab_storage): Update.
11991 * dwarf2read.c (create_addrmap_from_index)
11992 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11993 Update.
11994
6d6a12bf
TT
119952019-01-10 Tom Tromey <tom@tromey.com>
11996
11997 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11998 * objfiles.h (objfile::reset_psymtabs): New method.
11999
d320c2b5
TT
120002019-01-10 Tom Tromey <tom@tromey.com>
12001
12002 * symmisc.c (print_symbol_bcache_statistics): Update.
12003 (print_objfile_statistics): Update.
12004 * symfile.c (reread_symbols): Update.
12005 * psymtab.h (class psymtab_storage): New.
12006 * psymtab.c (psymtab_storage): New constructor.
12007 (~psymtab_storage): New destructor.
12008 (require_partial_symbols): Update.
12009 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12010 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12011 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12012 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12013 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12014 (start_psymtab_common, end_psymtab_common)
12015 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12016 (allocate_psymtab): Update.
12017 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12018 Update.
12019 (dump_psymtab_addrmap, maintenance_print_psymbols)
12020 (maintenance_check_psymtabs): Update.
12021 (class objfile_psymtabs): Move to objfiles.h.
12022 * psympriv.h (discard_psymtab): Now inline.
12023 (psymtab_discarder::psymtab_discarder): Update.
12024 (psymtab_discarder::~psymtab_discarder): Update.
12025 (ALL_OBJFILE_PSYMTABS): Rewrite.
12026 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12027 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12028 Remove fields.
12029 <partial_symtabs>: New field.
12030 (class objfile_psymtabs): Move from psymtab.h. Update.
12031 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12032 psymbol_cache.
12033 (objfile::~objfile): Don't destroy psymbol_cache.
12034 * mdebugread.c (parse_partial_symbols): Update.
12035 * dwarf2read.c (create_addrmap_from_index)
12036 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12037 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12038 (add_partial_subprogram, dwarf2_ranges_read): Update.
12039 * dwarf-index-write.c (write_address_map)
12040 (write_one_signatured_type, recursively_write_psymbols)
12041 (class debug_names, class debug_names, write_psymtabs_to_index):
12042 Update.
12043
1d94a5a3
TT
120442019-01-10 Tom Tromey <tom@tromey.com>
12045
12046 * symtab.h (SYMBOL_SET_NAMES): Update.
12047 (symbol_set_names): Update.
12048 (MSYMBOL_SET_NAMES): Update.
12049 * symtab.c (symbol_set_names): Change argument to be an
12050 objfile_per_bfd_storage.
12051 * psymtab.c (add_psymbol_to_bcache): Update.
12052 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12053
0f14768a
TT
120542019-01-10 Tom Tromey <tom@tromey.com>
12055
12056 * symtab.c (create_demangled_names_hash): Change argument to be an
12057 objfile_per_bfd_storage.
12058 (symbol_set_names): Update.
12059
6eee24ce
TT
120602019-01-10 Tom Tromey <tom@tromey.com>
12061
12062 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12063 init_psymbol_list.
12064 * psymtab.c (init_psymbol_list): Do nothing if already called.
12065 * psympriv.h (init_psymbol_list): Add comment.
12066 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12067 init_psymbol_list.
12068 * dbxread.c (dbx_symfile_read): Unconditionally call
12069 init_psymbol_list.
12070
75aedd27
TT
120712019-01-10 Tom Tromey <tom@tromey.com>
12072
12073 * xcoffread.c (scan_xcoff_symtab): Update.
12074 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12075 "where".
12076 * mdebugread.c (parse_partial_symbols)
12077 (handle_psymbol_enumerators): Update.
12078 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12079 * dbxread.c (read_dbx_symtab): Update.
12080 * psympriv.h (psymbol_placement): New enum.
12081 (add_psymbol_to_list): Update.
12082
939652a5
TT
120832019-01-10 Tom Tromey <tom@tromey.com>
12084
12085 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12086 static_psymbols parameters.
12087 (scan_xcoff_symtab): Update.
12088 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12089 static_psymbols parameters.
12090 * psympriv.h (start_psymtab_common): Update.
12091 * mdebugread.c (parse_partial_symbols): Update.
12092 * dwarf2read.c (create_partial_symtab): Update.
12093 * dbxread.c (read_dbx_symtab): Update.
12094 (start_psymtab): Remove global_psymbols and static_psymbols
12095 parameters.
12096
baa62830
TT
120972019-01-10 Tom Tromey <tom@tromey.com>
12098
12099 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12100 * psymtab.c (allocate_psymtab): Add comment.
12101 * psympriv.h (allocate_psymtab): Add comment.
12102 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12103 initializations.
12104 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12105
0e8f53ba
TT
121062019-01-10 Tom Tromey <tom@tromey.com>
12107
12108 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12109 Don't declare.
12110 * mipsread.c: Include mdebugread.h.
12111 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12112 Declare.
12113 * elfread.c: Include mdebugread.h.
12114
b22a7c6a
TT
121152019-01-09 Tom Tromey <tom@tromey.com>
12116
12117 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12118 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12119 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12120 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12121 (psym_lookup_symbol, psym_find_last_source_symtab)
12122 (psym_forget_cached_source_info, psym_print_stats)
12123 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12124 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12125 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12126 (psym_find_compunit_symtab_by_address)
12127 (maintenance_print_psymbols, maintenance_info_psymtabs)
12128 (maintenance_check_psymtabs): Use ranged for.
12129 * psymtab.h (class objfile_psymtabs): New.
12130 (require_partial_symbols): Return objfile_psymtabs.
12131 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12132
3b9d3ac2
TT
121332019-01-09 Tom Tromey <tom@tromey.com>
12134
12135 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12136 (find_pc_mapped_section, list_overlays_command)
12137 (map_overlay_command, unmap_overlay_command)
12138 (simple_overlay_update): Use all_objfiles.
12139 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12140 * printcmd.c (info_symbol_command): Use all_objfiles.
12141 * objfiles.h (ALL_OBJSECTIONS): Remove.
12142 * maint.c (maintenance_translate_address): Use all_objfiles.
12143 * gcore.c (gcore_create_callback): Use all_objfiles.
12144 (objfile_find_memory_regions): Likewise.
12145
8b31193a
TT
121462019-01-09 Tom Tromey <tom@tromey.com>
12147
12148 * symtab.c (find_line_symtab, info_sources_command)
12149 (make_source_files_completion_list): Use objfile_compunits.
12150 * source.c (select_source_symtab): Use objfile_compunits.
12151 * objfiles.h (struct objfile): Update comment.
12152 (ALL_OBJFILES): Remove.
12153 (ALL_FILETABS): Remove.
12154 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12155 objfile_compunits.
12156
d5da8b3c
TT
121572019-01-09 Tom Tromey <tom@tromey.com>
12158
12159 * symmisc.c (print_objfile_statistics, dump_objfile)
12160 (maintenance_print_symbols): Use compunit_filetabs.
12161 * source.c (forget_cached_source_info_for_objfile): Use
12162 compunit_filetabs.
12163 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12164 (ALL_FILETABS): Use compunit_filetabs.
12165 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12166 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12167
5accd1a0
TT
121682019-01-09 Tom Tromey <tom@tromey.com>
12169
12170 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12171 (compunit_filetabs): New.
12172 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12173 compunit_filetabs.
12174 (info_sources_command, make_source_files_completion_list): Remove
12175 declaration.
12176 * symmisc.c (print_objfile_statistics, dump_objfile)
12177 (maintenance_print_symbols): Remove declaration.
12178 (maintenance_info_symtabs): Use compunit_filetabs.
12179 (maintenance_info_line_tables): Likewise.
12180 * source.c (select_source_symtab): Change local variable name.
12181 (forget_cached_source_info_for_objfile): Remove declaration.
12182 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12183 * objfiles.c (objfile_relocate1): Remove declaration.
12184 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12185 declaration.
12186 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12187 * coffread.c (coff_symtab_read): Remove declaration.
12188 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12189 compunit_filetabs.
12190
d8aeb77f
TT
121912019-01-09 Tom Tromey <tom@tromey.com>
12192
12193 * symtab.c (lookup_objfile_from_block)
12194 (find_pc_sect_compunit_symtab, search_symbols)
12195 (default_collect_symbol_completion_matches_break_on): Use
12196 objfile_compunits.
12197 * objfiles.h (ALL_COMPUNITS): Remove.
12198 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12199 * cp-support.c (add_symbol_overload_list_qualified): Use
12200 objfile_compunits.
12201 * ada-lang.c (ada_collect_symbol_completion_matches)
12202 (ada_add_global_exceptions): Use objfile_compunits.
12203
592553c4
TT
122042019-01-09 Tom Tromey <tom@tromey.com>
12205
12206 * source.c (select_source_symtab)
12207 (forget_cached_source_info_for_objfile): Remove declaration.
12208 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12209 declaration.
12210 * maint.c (count_symtabs_and_blocks): Remove declaration.
12211 * cp-support.c (add_symbol_overload_list_qualified): Remove
12212 declaration.
12213 * coffread.c (coff_symtab_read): Remove declaration.
12214 * symtab.c (lookup_symbol_in_objfile_symtabs)
12215 (basic_lookup_transparent_type_1): Use objfile_compunits.
12216 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12217 (info_sources_command, search_symbols)
12218 (default_collect_symbol_completion_matches_break_on)
12219 (make_source_files_completion_list): Remove declaration.
12220 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12221 (ada_collect_symbol_completion_matches)
12222 (ada_add_global_exceptions): Remove declaration.
12223 * linespec.c (iterate_over_all_matching_symtabs): Use
12224 objfile_compunits.
12225 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12226 (class objfile_compunits): New.
12227 (ALL_COMPUNITS): Use objfile_compunits.
12228 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12229 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12230 objfile_compunits.
12231 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12232
5325b9bf
TT
122332019-01-09 Tom Tromey <tom@tromey.com>
12234
12235 * symtab.c (search_symbols)
12236 (default_collect_symbol_completion_matches_break_on): Use
12237 objfile_msymbols.
12238 * ada-lang.c (ada_lookup_simple_minsym)
12239 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12240 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12241 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12242 objfile_msymbols.
12243 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12244 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12245 * objc-lang.c (find_methods): Use objfile_msymbols.
12246 (info_selectors_command, info_classes_command): Likewise.
12247 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12248 * objfiles.h (class objfile_msymbols): New.
12249 (ALL_OBJFILE_MSYMBOLS): Remove.
12250 (ALL_MSYMBOLS): Remove.
12251
cac85af2
TT
122522019-01-09 Tom Tromey <tom@tromey.com>
12253
12254 * common/next-iterator.h (next_adapter): Add Iterator template
12255 parameter.
12256 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12257 (class all_objfiles_safe): New.
12258 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12259 * objfiles.c (put_objfile_before): Update comment.
12260 (add_separate_debug_objfile): Likewise.
12261 (free_all_objfiles): Use all_objfiles_safe.
12262 (objfile_purge_solibs): Likewise.
12263
aed57c53
TT
122642019-01-09 Tom Tromey <tom@tromey.com>
12265
12266 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12267 (expand_symtab_containing_pc, lookup_static_symbol)
12268 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12269 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12270 all_objfiles.
12271 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12272 * breakpoint.c (create_overlay_event_breakpoint)
12273 (create_longjmp_master_breakpoint)
12274 (create_std_terminate_master_breakpoint)
12275 (create_exception_master_breakpoint): Use all_objfiles.
12276 * linux-thread-db.c (try_thread_db_load_from_pdir)
12277 (has_libpthread): Use all_objfiles.
12278 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12279 * linespec.c (iterate_over_all_matching_symtabs)
12280 (search_minsyms_for_name): Use all_objfiles.
12281 * maint.c (maintenance_info_sections): Use all_objfiles.
12282 * main.c (captured_main_1): Use all_objfiles.
12283 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12284 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12285 * guile/scm-pretty-print.c
12286 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12287 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12288 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12289 (maintenance_print_msymbols): Use all_objfiles.
12290 * source.c (select_source_symtab): Use all_objfiles.
12291 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12292 * symfile.c (remove_symbol_file_command)
12293 (expand_symtabs_matching, map_symbol_filenames): Use
12294 all_objfiles.
12295 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12296 all_objfiles.
12297 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12298 * objc-lang.c (find_methods): Use all_objfiles.
12299 * objfiles.c (have_partial_symbols, have_full_symbols)
12300 (have_minimal_symbols, qsort_cmp)
12301 (default_iterate_over_objfiles_in_search_order): Use
12302 all_objfiles.
12303 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12304 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12305 (maintenance_check_psymtabs): Use all_objfiles.
12306 (ALL_PSYMTABS): Remove.
12307 * compile/compile-object-run.c (do_module_cleanup): Use
12308 all_objfiles.
12309 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12310 * cp-support.c (add_symbol_overload_list_qualified): Use
12311 all_objfiles.
12312 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12313 Use all_objfiles.
12314 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12315 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12316 all_objfiles.
12317 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12318 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12319 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12320 Uses all_objfiles.
12321 * solib.c (solib_read_symbols): Use all_objfiles
12322
99d89cde
TT
123232019-01-09 Tom Tromey <tom@tromey.com>
12324
12325 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12326 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12327 all_objfiles.
12328 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12329 * symmisc.c (print_symbol_bcache_statistics)
12330 (print_objfile_statistics, maintenance_print_objfiles)
12331 (maintenance_info_symtabs, maintenance_check_symtabs)
12332 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12333 all_objfiles.
12334 * source.c (forget_cached_source_info): Use all_objfiles.
12335 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12336 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12337 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12338 * objfiles.c (update_section_map): Use all_objfiles.
12339 (shared_objfile_contains_address_p): Likewise.
12340 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12341 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12342
21708325
TT
123432019-01-09 Tom Tromey <tom@tromey.com>
12344
12345 * common/next-iterator.h: New file.
12346 * objfiles.h (class all_objfiles): New.
12347 (struct objfile_iterator): New.
12348
669e09f6
PW
123492019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12350
12351 * NEWS: Move the description of the changed "frame", "select-frame",
12352 and "info frame" commands to the Changed commands section.
12353
041be526
SM
123542019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12355
12356 * gdbtypes.c (check_stub_method_group): Remove handling of old
12357 mangling schemes.
12358 * linespec.c (find_methods): Likewise.
12359 * stabsread.c (read_member_functions): Likewise.
12360 * valops.c (search_struct_method): Likewise.
12361 (value_struct_elt_for_reference): Likewise.
12362 * NEWS: Mention this change.
12363
0e2a2133
AB
123642019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12365
12366 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12367 print_source_lines.
12368 * source.c (print_source_lines_base): Update line number check.
12369 (print_source_lines): New function.
12370 (source_lines_range::source_lines_range): New function.
12371 * source.h (class source_lines_range): New class.
12372 (print_source_lines): New declaration.
12373
1055a3b4
PW
123742019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12375
12376 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12377
cfeadda5
TT
123782019-01-08 Tom Tromey <tom@tromey.com>
12379 Simon Marchi <simon.marchi@ericsson.com>
12380
12381 PR gdb/24060
12382 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12383 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12384 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12385 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12386 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12387 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12388
583068ca
AB
123892019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12390
12391 * source.c (select_source_symtab): Move header comment to
12392 declaration in source.h.
12393 (forget_cached_source_info_for_objfile): Likewise.
12394 (forget_cached_source_info): Likewise.
12395 (identify_source_line): Likewise.
12396 * source.h (identify_source_line): Move declaration from symtab.h
12397 and add comment from source.c
12398 (print_source_lines): Likewise.
12399 (forget_cached_source_info_for_objfile): Likewise.
12400 (forget_cached_source_info): Likewise.
12401 (select_source_symtab): Likewise.
12402 (enum print_source_lines_flag): Move definition from symtab.h.
12403 * symtab.h (identify_source_line): Move declaration to source.h.
12404 (print_source_lines): Likewise.
12405 (forget_cached_source_info_for_objfile): Likewise.
12406 (forget_cached_source_info): Likewise.
12407 (select_source_symtab): Likewise.
12408 (enum print_source_lines_flag): Move definition to source.h.
12409 * tui/tui-hooks.c: Add 'source.h' include.
12410
ec98a4ad
AB
124112019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12412
12413 * source.c (print_source_lines_base): Handle requests to print
12414 reverse line number sequences, and guard against empty lines
12415 string.
12416
62ea19c1
AB
124172019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12418
12419 * source.c (print_source_lines_base): Fix skip of '\r' if next
12420 character is '\n'.
12421
9d30e1fd
TT
124222019-01-06 Tom Tromey <tom@tromey.com>
12423
12424 * c-exp.y (struct c_parse_state) <macro_original_text,
12425 expansion_obstack>: New member.
12426 (macro_original_text, expansion_obstack): Remove globals.
12427 (scan_macro_expansion, scanning_macro_expansion)
12428 (finished_macro_expansion): Update.
12429 (scan_macro_cleanup): Remove.
12430 (yylex, c_parse): Update.
12431
c65bac38
TT
124322019-01-06 Tom Tromey <tom@tromey.com>
12433
12434 * c-exp.y (struct c_parse_state) <strings>: New member.
12435 (operator_stoken): Update.
12436
02e12e38
TT
124372019-01-06 Tom Tromey <tom@tromey.com>
12438
12439 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12440 (union type_stack_elt) <typelist_val>: Now a pointer to
12441 std::vector.
12442 (type_stack_cleanup): Don't declare.
12443 (push_typelist): Update.
12444 * parse.c (pop_typelist): Return a std::vector.
12445 (push_typelist): Take a std::vector.
12446 (follow_types): Update. Do not free args.
12447 (type_stack_cleanup): Remove.
12448 * c-exp.y (struct c_parse_state): New.
12449 (cpstate): New global.
12450 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12451 (nonempty_typelist): Update.
12452 (func_mod): Create a new vector.
12453 (c_parse): Create a c_parse_state.
12454 (check_parameter_typelist): Do not delete params.
12455 (function_method): Update. Do not delete type_list.
12456
f097f5ad
TT
124572019-01-06 Tom Tromey <tom@tromey.com>
12458
12459 PR gdb/28155:
12460 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12461 check_typedef.
12462 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12463 (print_return_value): Likewise.
12464
d2adf9f1
TT
124652019-01-05 Tom Tromey <tom@tromey.com>
12466
12467 * contrib/cleanup_check.py: Remove.
12468 * contrib/gcc-with-excheck: Remove.
12469 * contrib/exsummary.py: Remove.
12470 * contrib/excheck.py: Remove.
12471
2eab46b1
JB
124722019-01-05 Joel Brobecker <brobecker@adacore.com>
12473
12474 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12475 NULL. Initialize tpprev to NULL instead of assigning it
12476 to NULL on the next statement.
12477 * windows-nat.c (windows_delete_thread): Remove check for
12478 main_thread_id before printing thread exit notifications.
12479 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12480 Remove thread ID check against main_thread_id.
12481 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12482 windows_delete_thread.
12483 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12484
48c5e7e2
TT
124852019-01-04 Tom Tromey <tom@tromey.com>
12486
12487 * compile/compile.c (_initialize_compile): Use upper case for
12488 metasyntactic variables.
12489 * symmisc.c (_initialize_symmisc): Use upper case for
12490 metasyntactic variables.
12491 * psymtab.c (_initialize_psymtab): Use upper case for
12492 metasyntactic variables.
12493 * demangle.c (demangle_command): Use upper case for metasyntactic
12494 variables.
12495 (_initialize_demangler): Likewise.
12496 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12497 variables.
12498
986041cd
TT
124992019-01-03 Tom Tromey <tom@tromey.com>
12500
12501 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12502
7c711119
TT
125032019-01-03 Tom Tromey <tom@tromey.com>
12504
12505 * python/py-symtab.c (salpy_str): Update.
12506 (struct salpy_sal_object) <symtab>: Now a PyObject.
12507 (salpy_dealloc): Update.
12508 (del_objfile_sal): Use gdbpy_ref.
12509
1b20edf0
TT
125102019-01-03 Tom Tromey <tom@tromey.com>
12511
12512 * python/py-type.c (convert_field): Use new_reference. Return
12513 gdbpy_ref.
12514 (make_fielditem): Return gdbpy_ref.
12515 (typy_fields): Update.
12516 (typy_getitem): Update.
12517 (field_name): Return gdbpy_ref. Use new_reference.
12518 (typy_iterator_iternext): Update.
12519
ea41325b
TT
125202019-01-03 Tom Tromey <tom@tromey.com>
12521
12522 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12523
2a3c71d6
TT
125242019-01-03 Tom Tromey <tom@tromey.com>
12525
12526 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12527 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12528 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12529 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12530 (pspy_set_type_printers): Likewise.
12531 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12532 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12533 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12534 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12535 (objfpy_set_type_printers): Likewise.
12536
5c329e6a
TT
125372019-01-03 Tom Tromey <tom@tromey.com>
12538
12539 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12540 (gdbpy_print_stack): Use gdbpy_err_fetch.
12541 * python/python-internal.h (class gdbpy_err_fetch): New class.
12542 (class gdbpy_enter) <m_error_type, m_error_value,
12543 m_error_traceback>: Remove.
12544 <m_error>: New member.
12545 (gdbpy_exception_to_string): Don't declare.
12546 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12547 * python/py-value.c (convert_value_from_python): Use
12548 gdbpy_err_fetch.
12549 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12550 gdbpy_exception_to_string.
12551 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12552 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12553 gdbpy_err_fetch.
12554
169bb27b
AB
125552019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12556
12557 * linux-nat.c (delete_lwp_cleanup): Delete.
12558 (struct lwp_deleter): New struct.
12559 (lwp_info_up): New typedef.
12560 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12561 lwp_info_up.
12562
a07c8880
AB
125632019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12564
12565 * linux-fork.c (class scoped_switch_fork_info): New class.
12566 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12567
26089c49
AB
125682019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12569
12570 * valops.c (find_overload_match): Remove use of null_cleanup, and
12571 calls to do_cleanups.
12572
06d3e5b0
AB
125732019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12574
12575 * compile/compile-cplus-types.c
12576 (compile_cplus_instance::decl_name): Handle changes to
12577 cp_func_name.
12578 * cp-support.c (cp_func_name): Update header comment, update
12579 return type.
12580 * cp-support.h (cp_func_name): Update return type in declaration.
12581 * valops.c (find_overload_match): Move temp_func local to top
12582 level of function and change its type. Use temp_func to hold and
12583 delete temporary string obtained from cp_func_name.
12584
66644cd3
AB
125852019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12586
12587 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12588 gdb::char_vector, remove cleanup, and update uses of `msg`.
12589
592d8c0a
JW
125902019-01-03 Jim Wilson <jimw@sifive.com>
12591
12592 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12593
c55d06ec
TT
125942019-01-02 Tom Tromey <tom@tromey.com>
12595
12596 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12597 (tdesc_parse_xml): Remove cleanups.
12598 * target-descriptions.h (make_cleanup_free_target_description):
12599 Don't declare.
12600 (target_desc_deleter): New struct.
12601 (target_desc_up): New typedef.
12602 * target-descriptions.c (target_desc_deleter::operator()): Rename
12603 from free_target_description.
12604 (make_cleanup_free_target_description): Remove.
12605
3a6ae42d
TT
126062019-01-02 Tom Tromey <tom@tromey.com>
12607
12608 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12609 constructor, destructor.
12610 (linespec_parser): Remove typedef.
12611 (~linespec_parser): Rename from linespec_parser_delete.
12612 (linespec_lex_to_end, linespec_complete_label)
12613 (linespec_complete): Update.
12614 (decode_line_full): Remove cleanups.
12615 (decode_line_1): Update.
12616
61fd3e73
TT
126172019-01-02 Tom Tromey <tom@tromey.com>
12618
12619 * python/python-internal.h (inferior_to_inferior_object): Change
12620 return type.
12621 * python/py-exitedevent.c (create_exited_event_object): Update.
12622 * python/py-inferior.c (inferior_to_inferior_object): Return
12623 gdbpy_ref.
12624 (python_new_inferior, python_inferior_deleted)
12625 (thread_to_thread_object, delete_thread_object)
12626 (build_inferior_list, gdbpy_selected_inferior): Update.
12627 * python/py-infthread.c (create_thread_object): Update. Also fail
12628 if inferior_to_inferior_object fails.
12629
d20172fc
SM
126302019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12631
12632 * inferior.h (class inferior) <displaced_step_state>: New field.
12633 * infrun.h (struct displaced_step_state): Move here from
12634 infrun.c. Initialize fields, add constructor.
12635 <inf>: Remove field.
12636 <reset>: New method.
12637 * infrun.c (struct displaced_step_inferior_state): Move to
12638 infrun.h.
12639 (displaced_step_inferior_states): Remove.
12640 (get_displaced_stepping_state): Adust.
12641 (displaced_step_in_progress_any_inferior): Adjust.
12642 (displaced_step_in_progress_thread): Adjust.
12643 (displaced_step_in_progress): Adjust.
12644 (add_displaced_stepping_state): Remove.
12645 (get_displaced_step_closure_by_addr): Adjust.
12646 (remove_displaced_stepping_state): Remove.
12647 (infrun_inferior_exit): Call displaced_step_state.reset.
12648 (use_displaced_stepping): Don't check for NULL.
12649 (displaced_step_prepare_throw): Call
12650 get_displaced_stepping_state.
12651 (displaced_step_fixup): Don't check for NULL.
12652 (prepare_for_detach): Don't check for NULL.
12653
e3319240
PW
126542019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12655
12656 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12657 in case of call that did not complete.
12658
5d36dfb9
AU
126592019-01-02 Andrey Utkin <autkin@undo.io>
12660
12661 * symfile.c (find_separate_debug_file): Fix search of debug files for
12662 remote debuggee.
12663
8833fbf0
TT
126642019-01-02 Tom Tromey <tom@tromey.com>
12665
12666 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12667 indentation.
12668 * python/py-frame.c (frapy_older): Remove cast.
12669 (frapy_newer): Likewise.
12670 * python/py-breakpoint.c (local_setattro): Remove cast.
12671 * python/py-arch.c (archpy_name): Remove local variable.
12672 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12673
4ada3dfd
JB
126742019-01-02 Joel Brobecker <brobecker@adacore.com>
12675
12676 * unittests/basic_string_view/element_access/char/empty.cc:
12677 Fix year range in copyright header.
12678
113b7b81
AB
126792019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12680
12681 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12682 Delete.
12683 <operator==>: Update with for removed field.
12684 <hash>: Likewise.
12685 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12686 <isa_features>: ...this.
12687 <abi_features>: New field.
12688 (riscv_isa_flen): Update comment.
12689 (riscv_abi_xlen): New declaration.
12690 (riscv_abi_flen): New declaration.
12691 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12692 isa_features.
12693 (riscv_abi_xlen): New function.
12694 (riscv_isa_flen): Update to get answer from isa_features.
12695 (riscv_abi_flen): New function.
12696 (riscv_has_fp_abi): Update to get answer from abi_features.
12697 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12698 xlen and flen.
12699 (riscv_call_info) <xlen, flen>: Update comment.
12700 (riscv_call_arg_struct): Remove invalid assertions
12701 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12702 is removed.
12703 (riscv_gdbarch_init): Gather isa features and abi features
12704 separately, ensure both match on the gdbarch when reusing an old
12705 gdbarch. Relax an error check to allow 32-bit abi float to run on
12706 a target with 64-bit float hardware.
12707
b18ca514
PW
127082019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12709
12710 * source.c (search_command_helper): Stop reverse search
12711 when line 1 has been searched.
12712
ec70d8db
PW
127132019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12714
12715 * record-full.c (record_full_base_target::close): Rewrite
12716 record_full_core_buf_list free logic.
12717
5b38f9c1
PW
127182019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12719
12720 * break-catch-syscall.c (print_one_catch_syscall): xfree
12721 the last text.
12722
66d91b39
JB
127232019-01-01 Joel Brobecker <brobecker@adacore.com>
12724
12725 * top.c (print_gdb_version): Update Copyright year in version
12726 message.
12727
42a4f53d
JB
127282019-01-01 Joel Brobecker <brobecker@adacore.com>
12729
12730 Update copyright year range in all GDB files.
12731
7e955d83 127322019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 12733
5bbd631d 12734 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 12735
5bbd631d 12736For older changes see ChangeLog-2018.
c906108c
SS
12737\f
12738Local Variables:
12739mode: change-log
12740left-margin: 8
12741fill-column: 74
12742version-control: never
57da7796 12743coding: utf-8
c906108c 12744End:
5bbd631d 12745
This page took 2.913471 seconds and 4 git commands to generate.