]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Remove some explicit re-rendering from the TUI
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b3b1bde6
TT
12019-09-20 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-layout.c (show_source_disasm_command)
4 (show_source_or_disasm_and_command): Don't call
5 show_source_content.
6
71a25ed2
TT
72019-09-20 Tom Tromey <tom@tromey.com>
8
9 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
10 Declare.
11 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
12 from tui_make_status_line.
13 (tui_locator_window::rerender): Update.
14
f8532154
TT
152019-09-20 Tom Tromey <tom@tromey.com>
16
17 * tui/tui-stack.c (tui_make_status_line): Return std::string.
18 (tui_locator_window::rerender): Update.
19
2d81b349
TT
202019-09-20 Tom Tromey <tom@tromey.com>
21
22 * tui/tui-winsource.h (struct tui_source_window_base)
23 <~tui_source_window_base>: Don't declare.
24 <fullname>: Remove.
25 * tui/tui-winsource.c (~tui_source_window_base): Remove.
26 * tui/tui-source.h (struct tui_source_window) <fullname>: New
27 member.
28 * tui/tui-source.c (tui_source_window::set_contents): Update.
29 (tui_source_window::location_matches_p)
30 (tui_source_window::maybe_update): Update.
31
f14bec58
TT
322019-09-20 Tom Tromey <tom@tromey.com>
33
34 * tui/tui-winsource.h (~tui_source_element): Remove.
35 (tui_source_element): Update.
36 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
37 * tui/tui-winsource.c (tui_show_source_line): Update.
38 * tui/tui-source.c (tui_source_window::set_contents): Update.
39 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
40
78d5933a
TT
412019-09-20 Tom Tromey <tom@tromey.com>
42
43 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
44 declare.
45 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
46 tui_clear_source_windows_detail.
47 * tui/tui-winsource.h (struct tui_source_window_base)
48 <clear_detail>: Don't declare.
49 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
50 Remove.
51 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
52
d4207696
TT
532019-09-20 Tom Tromey <tromey@adacore.com>
54
55 PR ada/24919:
56 * block.c (contained_in): Fix final return value.
57
00f93c44
AM
582019-09-20 Alan Modra <amodra@gmail.com>
59
60 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
61 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
62 (read_indirect_string_from_dwz): Use bfd accessor.
63 * dwarf2read.h (struct dwz_file <filename>): Likewise.
64 * machoread.c (macho_symfile_read_all_oso): Likewise.
65 * solib.c (solib_bfd_open): Likewise.
66
e4153ae6
CB
672019-09-19 Christian Biesinger <cbiesinger@google.com>
68
69 * eval.c: Move declaration of overload_resolution to...
70 * value.h: ...here.
71
c7ae7675
CB
722019-09-19 Christian Biesinger <cbiesinger@google.com>
73
74 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
75 * arm-linux-tdep.c: Likewise.
76 * arm-nbsd-nat.c: Likewise.
77 * arm-tdep.h: Declare arm_apcs_32.
78 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
79
e86f08d2
CB
802019-09-19 Christian Biesinger <cbiesinger@google.com>
81
82 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
83 * dwarf2read.h: Declare dwarf_always_disassemble.
84
f64e2f40
TV
852019-09-19 Tom de Vries <tdevries@suse.de>
86
87 PR gdb/25009
88 * source-cache.c (source_cache::ensure): Catch exception thrown during
89 construction of the highlighter.
90
fd361982
AM
912019-09-18 Alan Modra <amodra@gmail.com>
92
93 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
94 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
95 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
96 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
97 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
98 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
99 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
100 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
101 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
102 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
103 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
104 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
105 * solib-spu.c, * solib-svr4.c, * solib-target.c,
106 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
107 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
108 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
109 * mi/mi-interp.c: Update throughout for bfd section macro and
110 function changes.
111 * gcore (gcore_create_callback): Use bfd_set_section_lma.
112 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
113
11061048
TT
1142019-09-18 Tom Tromey <tom@tromey.com>
115
116 * NEWS: Add entry.
117 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
118 call rl_initialize.
119 (tui_enable): Do not call rl_initialize.
120
7a27b85f
CG
1212019-09-18 Christian Groessler <chris@groessler.org>
122
123 * alpha-linux-nat.c: Include gdbarch.h.
124
f64eea3a
SM
1252019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
126
127 * ui-file.c: Include cli/cli-style.h.
128 (term_cli_styling): Remove cli_styling declaration.
129
e6f7f6d1
AM
1302019-09-18 Alan Modra <amodra@gmail.com>
131
132 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
133 to bfd_asymbol_section.
134
1d38e9d1
AM
1352019-09-18 Alan Modra <amodra@gmail.com>
136
137 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
138 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
139 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
140
90d92a63
AM
1412019-09-18 Alan Modra <amodra@gmail.com>
142
143 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
144 * spu-linux-nat.c (spu_bfd_open): Likewise.
145
a3d181d2
CB
1462019-09-18 Christian Biesinger <cbiesinger@google.com>
147
148 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
149 to bool to match definition in dwarf2read.c.
150
491144b5
CB
1512019-09-17 Christian Biesinger <cbiesinger@google.com>
152
153 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
154 (print_signatures): Likewise.
155 (trust_pad_over_xvs): Likewise.
156 * arch/aarch64-insn.c (aarch64_debug): Likewise.
157 * arch/aarch64-insn.h (aarch64_debug): Likewise.
158 * arm-linux-nat.c (arm_apcs_32): Likewise.
159 * arm-linux-tdep.c (arm_apcs_32): Likewise.
160 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
161 * arm-tdep.c (arm_debug): Likewise.
162 (arm_apcs_32): Likewise.
163 * auto-load.c (debug_auto_load): Likewise.
164 (auto_load_gdb_scripts): Likewise.
165 (global_auto_load): Likewise.
166 (auto_load_local_gdbinit): Likewise.
167 (auto_load_local_gdbinit_loaded): Likewise.
168 * auto-load.h (global_auto_load): Likewise.
169 (auto_load_local_gdbinit): Likewise.
170 (auto_load_local_gdbinit_loaded): Likewise.
171 * breakpoint.c (disconnected_dprintf): Likewise.
172 (breakpoint_proceeded): Likewise.
173 (automatic_hardware_breakpoints): Likewise.
174 (always_inserted_mode): Likewise.
175 (target_exact_watchpoints): Likewise.
176 (_initialize_breakpoint): Update.
177 * breakpoint.h (target_exact_watchpoints): Change to bool.
178 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
179 * cli/cli-cmds.c (trace_commands): Likewise.
180 * cli/cli-cmds.h (trace_commands): Likewise.
181 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
182 to bool*.
183 * cli/cli-logging.c (logging_overwrite): Change to bool.
184 (logging_redirect): Likewise.
185 (debug_redirect): Likewise.
186 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
187 (struct boolean_option_def) <get_var_address_cb_>: Change return type
188 to bool.
189 <boolean_option_def>: Update.
190 (struct flag_option_def): Change default type of Context to bool
191 from int.
192 <flag_option_def>: Change return type of var_address_cb_ to bool*.
193 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
194 (get_setshow_command_value_string): Likewise.
195 * cli/cli-style.c (cli_styling): Change to bool.
196 (source_styling): Likewise.
197 * cli/cli-style.h (source_styling): Likewise.
198 (cli_styling): Likewise.
199 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
200 to bool.
201 * command.h (var_types): Update comment.
202 (add_setshow_boolean_cmd): Change int* var argument to bool*.
203 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
204 bool.
205 (debug_compile_cplus_scopes): Likewise.
206 * compile/compile-internal.h (compile_debug): Likewise.
207 * compile/compile.c (compile_debug): Likewise.
208 (struct compile_options) <raw>: Likewise.
209 * cp-support.c (catch_demangler_crashes): Likewise.
210 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
211 (usr_cmd_cris_dwarf2_cfi): Likewise.
212 * csky-tdep.c (csky_debug): Likewise.
213 * darwin-nat.c (enable_mach_exceptions): Likewise.
214 * dcache.c (dcache_enabled_p): Likewise.
215 * defs.h (info_verbose): Likewise.
216 * demangle.c (demangle): Likewise.
217 (asm_demangle): Likewise.
218 * dwarf-index-cache.c (debug_index_cache): Likewise.
219 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
220 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
221 * dwarf2read.c (check_physname): Likewise.
222 (use_deprecated_index_sections): Likewise.
223 (dwarf_always_disassemble): Likewise.
224 * eval.c (overload_resolution): Likewise.
225 * event-top.c (set_editing_cmd_var): Likewise.
226 (exec_done_display_p): Likewise.
227 * event-top.h (set_editing_cmd_var): Likewise.
228 (exec_done_display_p): Likewise.
229 * exec.c (write_files): Likewise.
230 * fbsd-nat.c (debug_fbsd_lwp): Likewise
231 (debug_fbsd_nat): Likewise.
232 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
233 Likewise.
234 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
235 <backtrace_past_entry> Likewise.
236 * gdb-demangle.h (demangle): Likewise.
237 (asm_demangle): Likewise.
238 * gdb_bfd.c (bfd_sharing): Likewise.
239 * gdbcore.h (write_files): Likewise.
240 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
241 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
242 * gdbthread.h (print_thread_events): Likewise.
243 * gdbtypes.c (opaque_type_resolution): Likewise.
244 (strict_type_checking): Likewise.
245 * gnu-nat.c (gnu_debug_flag): Likewise.
246 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
247 * guile/scm-param.c (pascm_variable): Add boolval.
248 (add_setshow_generic): Update.
249 (pascm_param_value): Update.
250 (pascm_set_param_value_x): Update.
251 * hppa-tdep.c (hppa_debug): Change to bool..
252 * infcall.c (may_call_functions_p): Likewise.
253 (coerce_float_to_double_p): Likewise.
254 (unwind_on_signal_p): Likewise.
255 (unwind_on_terminating_exception_p): Likewise.
256 * infcmd.c (startup_with_shell): Likewise.
257 * inferior.c (print_inferior_events): Likewise.
258 * inferior.h (startup_with_shell): Likewise.
259 (print_inferior_events): Likewise.
260 * infrun.c (step_stop_if_no_debug): Likewise.
261 (detach_fork): Likewise.
262 (debug_displaced): Likewise.
263 (disable_randomization): Likewise.
264 (non_stop): Likewise.
265 (non_stop_1): Likewise.
266 (observer_mode): Likewise.
267 (observer_mode_1): Likewise.
268 (set_observer_mode): Update.
269 (sched_multi): Change to bool.
270 * infrun.h (debug_displaced): Likewise.
271 (sched_multi): Likewise.
272 (step_stop_if_no_debug): Likewise.
273 (non_stop): Likewise.
274 (disable_randomization): Likewise.
275 * linux-tdep.c (use_coredump_filter): Likewise.
276 (dump_excluded_mappings): Likewise.
277 * linux-thread-db.c (auto_load_thread_db): Likewise.
278 (check_thread_db_on_load): Likewise.
279 * main.c (captured_main_1): Update.
280 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
281 xx2_opt, boolean_opt>: Change to bool.
282 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
283 * maint.c (maintenance_profile_p): Likewise.
284 (per_command_time): Likewise.
285 (per_command_space): Likewise.
286 (per_command_symtab): Likewise.
287 * memattr.c (inaccessible_by_default): Likewise.
288 * mi/mi-main.c (mi_async): Likewise.
289 (mi_async_1): Likewise.
290 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
291 * nat/fork-inferior.h (startup_with_shell): Likewise.
292 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
293 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
294 * nios2-tdep.c (nios2_debug): Likewise.
295 * or1k-tdep.c (or1k_debug): Likewise.
296 * parse.c (parser_debug): Likewise.
297 * parser-defs.h (parser_debug): Likewise.
298 * printcmd.c (print_symbol_filename): Likewise.
299 * proc-api.c (procfs_trace): Likewise.
300 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
301 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
302 (set_parameter_value): Update.
303 (add_setshow_generic): Update.
304 * python/py-value.c (copy_py_bool_obj): Change argument from int*
305 to bool*.
306 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
307 int*.
308 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
309 * record-btrace.c (record_btrace_target::store_registers): Update.
310 * record-full.c (record_full_memory_query): Change to bool.
311 (record_full_stop_at_limit): Likewise.
312 * record-full.h (record_full_memory_query): Likewise.
313 * remote-notif.c (notif_debug): Likewise.
314 * remote-notif.h (notif_debug): Likewise.
315 * remote.c (use_range_stepping): Likewise.
316 (interrupt_on_connect): Likewise.
317 (remote_break): Likewise.
318 * ser-tcp.c (tcp_auto_retry): Likewise.
319 * ser-unix.c (serial_hwflow): Likewise.
320 * skip.c (debug_skip): Likewise.
321 * solib-aix.c (solib_aix_debug): Likewise.
322 * spu-tdep.c (spu_stop_on_load_p): Likewise.
323 (spu_auto_flush_cache_p): Likewise.
324 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
325 Likewise.
326 (struct info_print_options) <quiet>: Likewise.
327 * symfile-debug.c (debug_symfile): Likewise.
328 * symfile.c (auto_solib_add): Likewise.
329 (separate_debug_file_debug): Likewise.
330 * symfile.h (auto_solib_add): Likewise.
331 (separate_debug_file_debug): Likewise.
332 * symtab.c (basenames_may_differ): Likewise.
333 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
334 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
335 (struct info_types_options) <quiet>: Likewise.
336 * symtab.h (demangle): Likewise.
337 (basenames_may_differ): Likewise.
338 * target-dcache.c (stack_cache_enabled_1): Likewise.
339 (code_cache_enabled_1): Likewise.
340 * target.c (trust_readonly): Likewise.
341 (may_write_registers): Likewise.
342 (may_write_memory): Likewise.
343 (may_insert_breakpoints): Likewise.
344 (may_insert_tracepoints): Likewise.
345 (may_insert_fast_tracepoints): Likewise.
346 (may_stop): Likewise.
347 (auto_connect_native_target): Likewise.
348 (target_stop_and_wait): Update.
349 (target_async_permitted): Change to bool.
350 (target_async_permitted_1): Likewise.
351 (may_write_registers_1): Likewise.
352 (may_write_memory_1): Likewise.
353 (may_insert_breakpoints_1): Likewise.
354 (may_insert_tracepoints_1): Likewise.
355 (may_insert_fast_tracepoints_1): Likewise.
356 (may_stop_1): Likewise.
357 * target.h (target_async_permitted): Likewise.
358 (may_write_registers): Likewise.
359 (may_write_memory): Likewise.
360 (may_insert_breakpoints): Likewise.
361 (may_insert_tracepoints): Likewise.
362 (may_insert_fast_tracepoints): Likewise.
363 (may_stop): Likewise.
364 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
365 (make_thread_apply_all_options_def_group): Change argument from int*
366 to bool*.
367 (thread_apply_all_command): Update.
368 (print_thread_events): Change to bool.
369 * top.c (confirm): Likewise.
370 (command_editing_p): Likewise.
371 (history_expansion_p): Likewise.
372 (write_history_p): Likewise.
373 (info_verbose): Likewise.
374 * top.h (confirm): Likewise.
375 (history_expansion_p): Likewise.
376 * tracepoint.c (disconnected_tracing): Likewise.
377 (circular_trace_buffer): Likewise.
378 * typeprint.c (print_methods): Likewise.
379 (print_typedefs): Likewise.
380 * utils.c (debug_timestamp): Likewise.
381 (sevenbit_strings): Likewise.
382 (pagination_enabled): Likewise.
383 * utils.h (sevenbit_strings): Likewise.
384 (pagination_enabled): Likewise.
385 * valops.c (overload_resolution): Likewise.
386 * valprint.h (struct value_print_options) <prettyformat_arrays,
387 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
388 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
389 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
390 Likewise.
391 * windows-nat.c (new_console): Likewise.
392 (cygwin_exceptions): Likewise.
393 (new_group): Likewise.
394 (debug_exec): Likewise.
395 (debug_events): Likewise.
396 (debug_memory): Likewise.
397 (debug_exceptions): Likewise.
398 (useshell): Likewise.
399 * windows-tdep.c (maint_display_all_tib): Likewise.
400 * xml-support.c (debug_xml): Likewise.
401
f1b620e9
MG
4022019-09-17 Mike Gulick <mgulick@mathworks.com>
403
404 * source.c (prepare_path_for_appending): New function.
405 (openp): Make use of new function.
406 (find_and_open_source): Search for the compilation directory and
407 source file as a relative path beneath the directory search path.
408
67f3ed6a
AB
4092019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
410
411 * source-cache.c (source_cache::get_line_charpos): Catch
412 exceptions and return false, this matches the behaviour documented
413 in the header file.
414
74332189
JB
4152019-09-17 Joel Brobecker <brobecker@adacore.com>
416
417 * ada-tasks.c (info_task): Remove quoting of the task's name.
418
f2f24aa9
CB
4192019-09-16 Christian Biesinger <cbiesinger@google.com>
420
421 * symfile.c (auto_solib_add): Replace comment with a reference
422 to the header file.
423
6a062a93
CB
4242019-09-14 Christian Biesinger <cbiesinger@google.com>
425
426 * NEWS: Mention that gdb can now be compiled with Python 3
427 on Windows.
428
ec6c8338
AB
4292019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
430
431 * maint.c (maint_print_section_data::maint_print_section_data):
432 Force use of 'float log10 (float)' by casting the argument to
433 float.
434
aa17805f
AB
4352019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
436
437 * maint.c: Add 'cmath' include.
438 (struct maint_print_section_data): New structure.
439 (print_section_index): New function.
440 (print_bfd_section_info): Add header comment, small whitespace
441 cleanup, and update to call new print_section_index function.
442 (print_objfile_section_info): Likewise.
443 (maint_obj_section_from_bfd_section): New function.
444 (print_bfd_section_info_maybe_relocated): New function.
445 (maintenance_info_sections): Add header comment, always use
446 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
447
3dd9bb46
AB
4482019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
449
450 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
451 inner scope, add check that the objfile has psymtabs before
452 checking psymtabs_addrmap.
453 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
454
4993045d
PW
4552019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
456
457 * NEWS: Announce that Ada task names are now shown at more places,
458 and between quotes (except in info task output).
459 * gdb/ada-tasks.c (task_to_str): New function.
460 (display_current_task_id): Call task_to_str.
461 (task_command_1): Likewise.
462 (print_ada_task_info): In non-mi mode, Properly align headers and data
463 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
464
7a289707
RO
4652019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
466
467 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
468 prstatus.pr_lwp.pr_info instead of making it up.
469
f2aec7f6
CB
4702019-09-11 Christian Biesinger <cbiesinger@google.com>
471
472 * auto-load.c (auto_load_expand_dir_vars): Update.
473 * defs.h (gdb_datadir): Change to std::string.
474 (python_libdir): Likewise.
475 (relocate_gdb_directory): Change return type to std::string.
476 * guile/guile.c (gdbscm_data_directory): Update.
477 (initialize_scheme_side): Update.
478 * jit.c (jit_reader_dir): Change to std::string.
479 (jit_reader_load_command): Update.
480 * main.c (gdb_datadir): Change to std::string.
481 (python_libdir): Likewise.
482 (set_gdb_data_directory): Update.
483 (relocate_path): Change to return std::string.
484 (relocate_gdb_directory): Change to return std::string.
485 (relocate_gdbinit_path_maybe_in_datadir): Update.
486 (captured_main_1): Update.
487 * python/python.c (do_start_initialization): Update.
488 * top.c (show_gdb_datadir): Update.
489 * xml-syscall.c (xml_init_syscalls_info): Update.
490 (init_syscalls_info): Update.
491
9224a013
CB
4922019-09-11 Christian Biesinger <cbiesinger@google.com>
493
494 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
495 out of get_init_files.
496 (get_init_files): Update.
497
f48cd836
CB
4982019-09-11 Christian Biesinger <cbiesinger@google.com>
499
500 * main.c (get_init_files): Change to use std::string.
501 (captured_main_1): Update.
502 (print_gdb_help): Update.
503
9cab7ecd
AT
5042019-09-11 Ali Tamur <tamur@google.com>
505
506 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
507 implementation.
508
67547d89
CB
5092019-09-11 Christian Biesinger <cbiesinger@google.com>
510
511 * dbxread.c (read_dbx_symtab): Update.
512 * dwarf2read.c (load_partial_dies): Update.
513 * mdebugread.c (parse_partial_symbols): Update.
514 (handle_psymbol_enumerators): Update.
515 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
516 * psymtab.c (add_psymbol_to_bcache): Likewise.
517 (add_psymbol_to_list): Likewise.
518 * symtab.c (symbol_set_names): Likewise.
519 * symtab.h (symbol_set_names): Likewise.
520 * xcoffread.c (scan_xcoff_symtab): Update.
521
64b2d4a0
TT
5222019-09-11 Tom Tromey <tom@tromey.com>
523
524 * symfile-mem.c (symbol_file_add_from_memory): Use
525 bfd_set_filename.
526 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
527 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
528
3b00ef10
TT
5292019-09-10 Tom Tromey <tromey@adacore.com>
530
531 * dwarf-index-write.c (write_psymbols): Extend error message.
532 (debug_names::insert): Add Ada code.
533 (debug_names::write_psymbols): Remove Ada check.
534 (debug_names) <m_string_obstack>: New member.
535 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
536 (gdb_index_symbol_name_matcher::matches): Remove.
537 (mapped_index_base::find_name_components_bounds): Add "lang"
538 parameter.
539 (mapped_index_base::build_name_components): Also split names
540 according to Ada syntax.
541 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
542 type of "match_callback".
543 (check_match, check_find_bounds_finds)
544 (dw2_expand_symtabs_matching): Update.
545 (dw2_debug_names_iterator): Add new constructor.
546 (dw2_debug_names_map_matching_symbols): New function.
547 (dw2_debug_names_expand_symtabs_matching): Update.
548 (dwarf2_debug_names_functions): Use
549 dw2_debug_names_map_matching_symbols.
550
aa391654
TT
5512019-09-10 Tom Tromey <tromey@adacore.com>
552
553 * dwarf2read.c (dw2_get_file_names_reader): Add the
554 CU's file name to the results.
555
b054970d
TT
5562019-09-10 Tom Tromey <tromey@adacore.com>
557
558 * ada-lang.c (add_nonlocal_symbols): Combine calls to
559 map_matching_symbols. Update.
560 * dwarf2read.c (dw2_map_matching_symbols): Update.
561 * psymtab.c (match_partial_symbol): Change type; update.
562 (psym_map_matching_symbols): Likewise.
563 * symfile-debug.c (debug_qf_map_matching_symbols): Change
564 type; update.
565 * symfile.h (struct quick_symbol_functions)
566 <map_matching_symbols>: Change "name" to be a lookup_name_info.
567 Remove "match".
568
6a3dbf1b
TT
5692019-09-10 Tom Tromey <tromey@adacore.com>
570
571 * psymtab.c (map_block): Remove.
572 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
573 * symtab.c (iterate_over_symbols_terminated): New function.
574 * symtab.c (iterate_over_symbols_terminated): Declare.
575
6969f124
TT
5762019-09-10 Tom Tromey <tromey@adacore.com>
577
578 * ada-lang.c (ada_iterate_over_symbols): Return bool.
579 * language.h (struct language_defn) <la_iterate_over_symbols>:
580 Return bool.
581 * symtab.c (iterate_over_symbols): Return bool.
582 * symtab.h (iterate_over_symbols): Return bool.
583
199b4314
TT
5842019-09-10 Tom Tromey <tromey@adacore.com>
585
586 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
587 (add_nonlocal_symbols): Update.
588 * dwarf2read.c (dw2_map_matching_symbols): Change type.
589 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
590 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
591 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
592 Change type of "callback". Remove "data".
593
a084a2a6
AT
594
5952019-09-09 Ali Tamur <tamur@google.com>
596
597 * dwarf2read.c (comp_unit_head): Update comment.
598 (dwarf2_dwo_name): New function declaration.
599 (dwarf_unit_type_name): New function declaration.
600 (read_comp_unit_head): Add support for new compilation units,
601 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
602 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
603 (currently named as "signature") in their header. Also clarify error
604 messages.
605 (lookup_dwo_id): New function. Returns the dwo id of the given
606 compile unit.
607 (lookup_dwo_unit): Use the new lookup_dwo_id function.
608 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
609 functions.
610 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
611 (dwarf2_dwo_name): Get the dwo name if present.
612 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
613 purposes.
614
25a2915e
TT
6152019-09-09 Tom Tromey <tom@tromey.com>
616
617 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
618
e4df0874
PW
6192019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
620
621 * python/python.c (do_start_initialization): Make progname_copy static,
622 to avoid a leak report.
623
8634b462
TT
6242019-09-08 Tom Tromey <tom@tromey.com>
625
626 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
627
c7f839cb
SM
6282019-09-07 Simon Marchi <simon.marchi@efficios.com>
629
630 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
631 Change type to gdb::optional<block_enum>.
632 (dw2_symtab_iter_init): Change block_index parameter type
633 to gdb::optional<block_enum>.
634 (dw2_lookup_symbol): Change block_index parameter
635 type to block_enum.c
636 (dw2_debug_names_lookup_symbol): Likewise.
637 * psymtab.c (psym_lookup_symbol): Likewise.
638 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
639 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
640 Likewise.
641
ead0e69a
CB
6422019-09-06 Christian Biesinger <cbiesinger@google.com>
643
644 * defs.h (relocate_gdb_directory): Change int to bool in
645 signature and rename flag to relocatable.
646 * main.c (relocate_path): Likewise.
647 (relocate_gdb_directory): Likewise.
648
b16c44de
AM
6492019-09-06 Alan Modra <amodra@gmail.com>
650
651 * coffread.c (coff_symfile_read): Constify filename variable.
652 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
653 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
654 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
655 * solib.c (reload_shared_libraries_1): Likewise.
656 * symfile.c (reread_symbols): Likewise.
657 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
658 * solib-darwin.c (darwin_bfd_open): Likewise.
659 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
660
06ff036e
AB
6612019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
662
663 * psymtab.c (print_partial_symbols): Handle missing domain_enum
664 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
665
4e962e74
TT
6662019-09-03 Tom Tromey <tromey@adacore.com>
667
668 * ada-valprint.c (ada_val_print_num): Don't recurse for range
669 types.
670 (has_negatives): Unbias a range type bound.
671 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
672 * gdbtypes.c (operator==): Handle new field.
673 (create_range_type): Add "bias" parameter.
674 (create_static_range_type, resolve_dynamic_range): Update.
675 * gdbtypes.h (struct range_bounds) <bias>: New member.
676 (create_range_type): Add bias parameter.
677 * printcmd.c (print_scalar_formatted): Unbias range types.
678 * value.c (unpack_long): Unbias range types.
679 (pack_long): Bias range types.
680
d90b8f26
AH
6812019-09-02 Alan Hayward <alan.hayward@arm.com>
682
683 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
684 probe arguments.
685
fe01123e
AH
6862019-09-02 Alan Hayward <alan.hayward@arm.com>
687
688 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
689 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
690 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
691 (compile_probe_arg): Likewise.
692 * probe.h (get_argument_count): Likewise.
693 * solib-svr4.c (solib_event_probe_action): Likewise.
694 * stap-probe.c (stap_probe::get_argument_count): Likewise.
695
e661ef01
AH
6962019-09-02 Alan Hayward <alan.hayward@arm.com>
697
698 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
699 code to here...
700 (svr4_create_solib_event_breakpoints): ...from here.
701
47a536d9
SDJ
7022019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
703
704 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
705 suffix from warning message.
706
d6a00eba
TT
7072019-08-30 Tom Tromey <tom@tromey.com>
708
709 * tui/tui-winsource.h (struct tui_source_window_base)
710 <refresh_all>: Don't declare.
711 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
712 Remove.
713 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
714 tui_show_locator_content.
715 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
716 declare.
717 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
718 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
719 declare.
720
55b2657b
TT
7212019-08-30 Tom Tromey <tom@tromey.com>
722
723 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
724
12a8555a
TT
7252019-08-30 Tom Tromey <tom@tromey.com>
726
727 * tui/tui-stack.c (_initialize_tui_stack): Move later.
728 Remove unnecessary forward declarations.
729
900ac242
TT
7302019-08-30 Tom Tromey <tom@tromey.com>
731
732 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
733 rerender.
734 (tui_update_locator_fullname, tui_show_frame_info): Don't call
735 tui_show_locator_content.
736
99ab33fb
TT
7372019-08-30 Tom Tromey <tom@tromey.com>
738
739 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
740 (tui_locator_window::rerender): Rewrite using body of previous
741 tui_show_locator_content.
742
e594a5d1
TT
7432019-08-30 Tom Tromey <tom@tromey.com>
744
745 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
746 set_locator_fullname>: New methods.
747 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
748 Rename from tui_set_locator_fullname.
749 (tui_locator_window::set_locator_info): Rename from
750 tui_set_locator_info. Return bool.
751 (tui_update_locator_fullname, tui_show_frame_info): Update.
752
715bb467
TT
7532019-08-30 Tom Tromey <tom@tromey.com>
754
755 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
756
772f3f03
TT
7572019-08-30 Tom Tromey <tom@tromey.com>
758
759 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
760 call touchwin.
761
108e13ab
TT
7622019-08-30 Tom Tromey <tom@tromey.com>
763
764 * tui/tui-wingeneral.c (box_win): Assume win_info and
765 win_info->handle cannot be NULL.
766
cdaa6eb4
TT
7672019-08-30 Tom Tromey <tom@tromey.com>
768
769 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
770 refresh_window>: Declare.
771 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
772 resize.
773 (tui_data_item_window::rerender): Rename from
774 tui_display_register.
775 (tui_data_item_window::refresh_window): New method.
776 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
777 no-op.
778
89df7f90
TT
7792019-08-30 Tom Tromey <tom@tromey.com>
780
781 * tui/tui-regs.h (struct tui_data_window) <regs_content,
782 regs_column_count, current_group>: Move later. Now private.
783 <get_current_group>: New method.
784 * tui/tui-regs.c (tui_reg_command): Update.
785 * tui/tui-layout.c (tui_set_layout): Update.
786
1bf2866a
TT
7872019-08-30 Tom Tromey <tom@tromey.com>
788
789 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
790 (tui_data_window::rerender): Don't call
791 check_and_display_highlight_if_needed.
792 (tui_data_window::refresh_all): Remove call to
793 erase_data_content.
794
0670413d
TT
7952019-08-30 Tom Tromey <tom@tromey.com>
796
797 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
798 (tui_data_window::display_registers_from)
799 (tui_data_window::display_reg_element_at_line)
800 (tui_data_window::display_registers_from_line): Remove checks of
801 "empty".
802
18bb55c7
TT
8032019-08-30 Tom Tromey <tom@tromey.com>
804
805 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
806 Don't declare.
807 * tui/tui-regs.c (tui_data_window::show_registers): Call
808 rerender.
809 (tui_data_window::rerender): Rename from display_all_data.
810 (tui_data_window::rerender): Remove old implementation.
811
1f6d2f10
TT
8122019-08-30 Tom Tromey <tom@tromey.com>
813
814 * tui/tui-regs.c (tui_data_window::display_all_data): Change
815 text.
816 * tui/tui-data.h (NO_DATA_STRING): Remove define.
817
16d01f9c
BW
8182019-08-29 Bernhard Wodok <barto@gmx.net>
819 Sergio Durigan Junior <sergiodj@redhat.com>
820
821 PR win32/24284
822 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
823
d8f27c60
AB
8242019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
825
826 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
827 when searching for types.
828
1f20c35e
AB
8292019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
830
831 * f-lang.c (f_language_defn): Use f_print_typedef.
832 * f-lang.h (f_print_typedef): Declare.
833 * f-typeprint.c (f_print_typedef): Define.
834
550105b7
CB
8352019-08-27 Christian Biesinger <cbiesinger@google.com>
836
837 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
838
4acfdd20
AB
8392019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
840
841 * cli/cli-utils.c (info_print_options_defs): Delete.
842 (make_info_print_options_def_group): Delete.
843 (extract_info_print_options): Delete.
844 (info_print_command_completer): Delete.
845 (info_print_args_help): Add extra parameter, and optionally
846 include text about -n flag.
847 * cli/cli-utils.h (struct info_print_options): Delete.
848 (extract_info_print_options): Delete declaration.
849 (info_print_command_completer): Delete declaration.
850 (info_print_args_help): Add extra parameter, extend header
851 comment.
852 * python/python.c (gdbpy_rbreak): Pass additional parameter to
853 search_symbols.
854 * stack.c (struct info_print_options): New type.
855 (info_print_options_defs): New file scoped variable.
856 (make_info_print_options_def_group): New static function.
857 (info_print_command_completer): New static function.
858 (info_locals_command): Update to use new local functions.
859 (info_args_command): Likewise.
860 (_initialize_stack): Add extra parameter to calls to
861 info_print_args_help.
862 * symtab.c (search_symbols): Add extra parameter, use this to
863 possibly excluse non-debug symbols.
864 (symtab_symbol_info): Add extra parameter, which is passed on to
865 search_symbols.
866 (struct info_print_options): New type.
867 (info_print_options_defs): New file scoped variable.
868 (make_info_print_options_def_group): New static function.
869 (info_print_command_completer): New static function.
870 (info_variables_command): Update to use local functions, and pass
871 extra parameter through to symtab_symbol_info.
872 (info_functions_command): Likewise.
873 (info_types_command): Pass additional argument through to
874 symtab_symbol_info.
875 (rbreak_command): Pass extra argument to search_symbols.
876 (_initialize_symtab): Add extra arguments for calls to
877 info_print_args_help, and update help text for 'info variables',
878 'whereis', and 'info functions' commands.
879 * symtab.h (search_symbols): Add extra argument to declaration.
880 * NEWS: Mention new flags.
881
9aa55206
CB
8822019-08-26 Christian Biesinger <cbiesinger@google.com>
883
884 * symtab.c (lookup_static_symbol): Call the new function (and move
885 it down to be next to lookup_global_symbol).
886 (struct global_sym_lookup_data): Add block_enum member and rename to...
887 (struct global_or_static_sym_lookup_data): ...this.
888 (lookup_symbol_global_iterator_cb): Pass block_index instead of
889 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
890 (lookup_symbol_global_or_static_iterator_cb): ...this.
891 (lookup_global_or_static_symbol): New function.
892 (lookup_global_symbol): Call new function.
893
5c31b358
TV
8942019-08-26 Tom de Vries <tdevries@suse.de>
895
896 PR c++/24852
897 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
898 when pc_probe.prob == NULL.
899
23c13d42
SM
9002019-08-25 Simon Marchi <simon.marchi@efficios.com>
901
902 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
903 variable symbol_linkage to symbol_linkage_.
904
beadd3e8
SM
9052019-08-25 Simon Marchi <simon.marchi@efficios.com>
906
907 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
908 represent whether the symbol is static, dynamic, or we don't
909 know.
910
e3ec872f
YS
9112019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
912
913 * gdb/rx-tdep.c (rx_register_names): New.
914 (rx_register_name): Delete.
915 (rx_psw_type): Delete.
916 (rx_fpsw_type): Delete.
917 (rx_register_type): Delete.
918 (rx_gdbarch_init): Convert target-descriptions.
919 (_initialize_rx_tdep): Add initialize_tdesc_rx.
920 * gdb/features/Makefile: Add rx.xml.
921 * gdb/features/rx.xml: New.
922 * gdb/features/rx.c: Generated.
923 * gdb/NEWS: Mention target description support.
924
d0509ba4
CB
9252019-08-22 Christian Biesinger <cbiesinger@google.com>
926
927 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
928 *slot_ptr.
929
2d41fa11
SDJ
9302019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
931
932 * configure.ac: Don't check for 'dlfcn.h' (moved to
933 gdbsupport/common.m4).
934 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
935 'gdbsupport/'.
936 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
937 * compile/compile-c-support.c: Include
938 'gdbsupport/gdb-dlfcn.h'.
939 * gdbsupport/common.m4: Check for 'dlfcn.h'.
940 * gdb-dlfcn.c: Move to...
941 * gdbsupport/gdb-dlfcn.c: ... here.
942 * gdb-dlfcn.h: Move to...
943 * gdbsupport/gdb-dlfcn.h: ... here.
944
de8af808
SL
9452019-08-23 Sandra Loosemore <sandra@codesourcery.com>
946
947 * nios2-tdep.c (struct reg_value): Improve comments. Make
948 the offset field signed.
949
27204489
CB
9502019-08-22 Christian Biesinger <cbiesinger@google.com>
951
952 * python/lib/gdb/__init__.py (_execute_file): New function.
953 * python/python.c (python_run_simple_file): Call gdb._execute_file
954 on Windows.
955
43771869
AB
9562019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
957
958 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
959 all uses as this was never set to anything but a zero value.
960
26c957f1
PA
9612019-08-21 Bogdan Harjoc <harjoc@gmail.com>
962
963 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
964
c07aae6e
CB
9652019-08-21 Christian Biesinger <cbiesinger@google.com>
966
967 * tui/tui-data.h (tui_gen_win_info): Add an =default
968 move constructor, required by some GCC versions.
969
3960cb7a
JF
9702019-08-21 Jinke Fan <fanjinke51@yeah.net>
971
972 * go32-nat.c (go32_sysinfo): Add hygon_p.
973
04c72a68
TT
9742019-08-20 Tom Tromey <tom@tromey.com>
975
976 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
977 line_from_reg_element_no, first_reg_element_no_inline,
978 display_all_data, delete_data_content_windows,
979 erase_data_content>: Now private.
980
072272ce
TT
9812019-08-20 Tom Tromey <tom@tromey.com>
982
983 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
984 (tui_unhighlight_win, tui_highlight_win)
985 (tui_win_info::make_window): Update.
986 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
987
973961bd
TT
9882019-08-20 Tom Tromey <tom@tromey.com>
989
990 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
991 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
992 (MAX_PID_WIDTH): Move to tui-stack.c.
993 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
994 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
995 (MAX_PID_WIDTH): Move from tui-data.h.
996
ab0e1f1a
TT
9972019-08-20 Tom Tromey <tom@tromey.com>
998
999 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1000 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1001 (box_win): Update.
1002 (tui_gen_win_info::make_window): Rename from tui_make_window.
1003 (tui_win_info::make_window): New method.
1004 (tui_gen_win_info::make_visible): Update.
1005 * tui/tui-source.c (tui_source_window::set_contents): Update.
1006 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1007 (tui_data_window::display_registers_from): Update.
1008 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1009 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1010 Declare.
1011 <can_box>: Remove.
1012 <title>: Remove.
1013 (struct tui_win_info) <make_window>: Declare.
1014 <can_box>: Now virtual.
1015 <title>: New member.
1016 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1017 * tui/tui-command.c (tui_cmd_window::resize): Update.
1018
100c2bf3
TT
10192019-08-20 Tom Tromey <tom@tromey.com>
1020
1021 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1022 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1023 (tui_data_window::check_register_values): Update.
1024
fa4dc567
TT
10252019-08-20 Tom Tromey <tom@tromey.com>
1026
1027 * tui/tui-regs.h (struct tui_data_window): Use
1028 DISABLE_COPY_AND_ASSIGN.
1029 <regs_content>: Change type, removing unique_ptr.
1030 <tui_data_window>: Add move constructor.
1031 * tui/tui-regs.c (tui_data_window::show_registers)
1032 (tui_data_window::show_register_group)
1033 (tui_data_window::display_registers_from)
1034 (tui_data_window::display_registers_from)
1035 (tui_data_window::first_data_item_displayed)
1036 (tui_data_window::delete_data_content_windows)
1037 (tui_data_window::rerender, tui_data_window::refresh_window)
1038 (tui_data_window::check_register_values): Update.
1039
ca02d7c8
TT
10402019-08-20 Tom Tromey <tom@tromey.com>
1041
1042 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1043 show_register_group>: Declare.
1044 (tui_show_register_group): Don't declare.
1045 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1046 tui_show_registers.
1047 (tui_data_window::show_register_group): Rename from
1048 tui_show_register_group.
1049 (tui_data_window::check_register_values, tui_reg_command):
1050 Update.
1051 * tui/tui-layout.c (tui_set_layout): Update.
1052
63356bfd
TT
10532019-08-20 Tom Tromey <tom@tromey.com>
1054
1055 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1056 Declare.
1057 (tui_check_register_values): Don't declare.
1058 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1059 from tui_check_register_values.
1060 * tui/tui-hooks.c (tui_register_changed): Update.
1061
42cc14a7
TT
10622019-08-20 Tom Tromey <tom@tromey.com>
1063
1064 * tui/tui-regs.c (tui_reg_layout): Move later.
1065 (tui_show_registers): Don't enable TUI mode or change layout.
1066
b9ad3686
TT
10672019-08-20 Tom Tromey <tom@tromey.com>
1068
1069 * tui/tui-regs.h (struct tui_data_item_window)
1070 <~tui_data_item_window>: Remove.
1071 <content>: Now a unique_xmalloc_ptr.
1072 * tui/tui-regs.c (tui_register_format): Return a
1073 unique_xmalloc_ptr.
1074 (tui_get_register): Update.
1075 (~tui_data_item_window): Remove.
1076 (tui_data_window::display_registers_from, tui_display_register):
1077 Update.
1078 * tui/tui-io.h (tui_expand_tabs): Update.
1079 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1080 Remove "col" parameter.
1081
8e114aab
TT
10822019-08-20 Tom Tromey <tom@tromey.com>
1083
1084 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1085 field.
1086 * tui/tui-regs.c (~tui_data_item_window): Update.
1087
1a4f81dd
TT
10882019-08-20 Tom Tromey <tom@tromey.com>
1089
1090 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1091 earlier.
1092
0f8d8876
TT
10932019-08-20 Tom Tromey <tom@tromey.com>
1094
1095 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1096
605dc2c2
TT
10972019-08-20 Tom Tromey <tom@tromey.com>
1098
1099 * tui/tui-source.h (struct tui_source_window): Update.
1100 * tui/tui-regs.c (tui_show_registers): Update.
1101 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1102 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1103 (NO_REGS_STRING): Remove defines.
1104
aedbe3bb
CM
11052019-08-20 Conrad Meyer <cem@FreeBSD.org>
1106
1107 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1108 unnecessary thread walk if remote doesn't support the packet.
1109
7ce8f214
TT
11102019-08-19 Tom Tromey <tromey@adacore.com>
1111
1112 * python/py-value.c (value_has_field): Fix indentation.
1113
f21c2bd7
TT
11142019-08-19 Tom Tromey <tromey@adacore.com>
1115
1116 * printcmd.c (do_one_display, info_display_command): Update.
1117 * block.h (contained_in): Return bool. Add allow_nested
1118 parameter.
1119 * block.c (contained_in): Return bool. Add allow_nested
1120 parameter.
1121
d806ea2d
TT
11222019-08-19 Tom Tromey <tom@tromey.com>
1123
1124 * configure: Rebuild.
1125 * configure.ac: Disallow the combination of -static-libstdc++ and
1126 source highlight.
1127 * source-cache.c (get_language_name): Handle rust.
1128 (source_cache::get_source_lines): Ignore highlighting exceptions.
1129
398fdd60
TT
11302019-08-16 Tom Tromey <tom@tromey.com>
1131
1132 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1133 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1134 (struct tui_source_window_base) <make_visible, refresh_window,
1135 resize>: Remove methods.
1136 <execution_info>: Remove field.
1137 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1138 (tui_show_source_line, tui_source_window_base)
1139 (~tui_source_window_base): Update.
1140 (tui_source_window_base::resize)
1141 (tui_source_window_base::make_visible)
1142 (tui_source_window_base::refresh_window): Remove.
1143 (tui_source_window_base::update_exec_info): Update.
1144 * tui/tui-source.c (tui_source_window::set_contents): Update.
1145 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1146
e699d331
TT
11472019-08-16 Tom Tromey <tom@tromey.com>
1148
1149 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1150 deprecated_query_hook.
1151
bb01dbfc
TT
11522019-08-16 Tom Tromey <tom@tromey.com>
1153
1154 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1155 (tui_update_source_windows_with_line): Update.
1156 * tui/tui-source.h (struct tui_source_window)
1157 <show_symtab_source>: Declare.
1158 (tui_show_symtab_source): Don't declare.
1159 * tui/tui-source.c (tui_show_symtab_source): Rename from
1160 tui_show_symtab_source.
1161
81c82c4b
TT
11622019-08-16 Tom Tromey <tom@tromey.com>
1163
1164 * tui/tui-winsource.h (struct tui_source_window_base)
1165 <set_contents>: Declare.
1166 * tui/tui-winsource.c
1167 (tui_source_window_base::update_source_window_as_is): Update.
1168 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1169 Declare.
1170 (tui_set_source_content): Don't declare.
1171 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1172 tui_set_source_content.
1173 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1174 Declare.
1175 (tui_set_disassem_content): Don't declare.
1176 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1177 tui_set_disassem_content.
1178
2ddaf614
TT
11792019-08-16 Tom Tromey <tom@tromey.com>
1180
1181 * tui/tui-winsource.h (struct tui_source_window_base)
1182 <update_breakpoint_info>: Declare.
1183 (tui_update_breakpoint_info): Don't declare.
1184 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1185 (tui_update_all_breakpoint_info): Update.
1186 (tui_source_window_base::update_breakpoint_info): Rename from
1187 tui_update_breakpoint_info.
1188 (tui_source_window_base::update_exec_info): Update.
1189
017f9828
TT
11902019-08-16 Tom Tromey <tom@tromey.com>
1191
1192 * tui/tui-winsource.h (struct tui_source_window_base)
1193 <update_source_window>: Declare.
1194 (tui_update_source_window): Don't declare.
1195 * tui/tui-winsource.c
1196 (tui_source_window_base::update_source_window): Rename from
1197 tui_update_source_window.
1198 (tui_source_window_base::rerender): Update.
1199 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1200 * tui/tui-disasm.c (tui_show_disassem)
1201 (tui_show_disassem_and_update_source)
1202 (tui_disasm_window::maybe_update): Update.
1203
ed8358e9
TT
12042019-08-16 Tom Tromey <tom@tromey.com>
1205
1206 * tui/tui-winsource.h (struct tui_source_window_base)
1207 <update_source_window_as_is>: Declare.
1208 (tui_update_source_window_as_is): Don't declare.
1209 * tui/tui-winsource.c (tui_update_source_window): Update
1210 (tui_source_window_base::update_source_window_as_is): Rename from
1211 tui_update_source_window_as_is.
1212 (tui_source_window_base::refill): Update.
1213 * tui/tui-source.c (tui_show_symtab_source): Update.
1214 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1215 Update.
1216
20149b6b
TT
12172019-08-16 Tom Tromey <tom@tromey.com>
1218
1219 * tui/tui-winsource.h (tui_update_source_window)
1220 (tui_update_source_window_as_is): Remove "noerror" parameter.
1221 * tui/tui-winsource.c (tui_update_source_window)
1222 (tui_update_source_window_as_is): Remove "noerror" parameter.
1223 (tui_update_source_windows_with_addr)
1224 (tui_update_source_windows_with_line)
1225 (tui_source_window_base::rerender)
1226 (tui_source_window_base::refill): Update.
1227 * tui/tui-source.h (tui_set_source_content)
1228 (tui_show_symtab_source): Remove "noerror" parameter.
1229 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1230 parameter.
1231 (tui_show_symtab_source): Likewise.
1232 (tui_source_window::maybe_update): Update.
1233 * tui/tui-disasm.c (tui_show_disassem)
1234 (tui_show_disassem_and_update_source)
1235 (tui_disasm_window::do_scroll_vertical)
1236 (tui_disasm_window::maybe_update): Update.
1237
2d83e710
TT
12382019-08-16 Tom Tromey <tom@tromey.com>
1239
1240 * tui/tui.c (tui_is_window_visible): Update.
1241 * tui/tui-wingeneral.c (tui_make_window)
1242 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1243 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1244 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1245 (tui_set_win_height_command, parse_scrolling_args): Update.
1246 * tui/tui-source.c (tui_source_window::style_changed): Update.
1247 * tui/tui-regs.c (tui_show_registers)
1248 (tui_data_window::first_data_item_displayed)
1249 (tui_data_window::delete_data_content_windows)
1250 (tui_check_register_values, tui_reg_command): Update.
1251 * tui/tui-disasm.c (tui_show_disassem): Update.
1252 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1253 method.
1254 <is_visible>: Remove field.
1255 * tui/tui-data.c (tui_next_win, tui_prev_win)
1256 (tui_delete_invisible_windows): Update.
1257
d4ab829a
TT
12582019-08-16 Tom Tromey <tom@tromey.com>
1259
1260 * tui/tui-winsource.h (struct tui_source_window_base)
1261 <m_has_locator>: Remove.
1262 * tui/tui-layout.c (show_source_disasm_command, show_data)
1263 (show_source_or_disasm_and_command): Update.
1264
aa7ca1bb
AH
12652019-08-16 Alan Hayward <alan.hayward@arm.com>
1266
1267 * NEWS (Other MI changes): New subsection.
1268 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1269 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1270 * arch-utils.c (default_get_pc_address_flags): New function.
1271 * arch-utils.h (default_get_pc_address_flags): New declaration.
1272 * gdbarch.sh: Add get_pc_address_flags.
1273 * gdbarch.c: Regenerate.
1274 * gdbarch.h: Likewise.
1275 * stack.c (print_pc): New function.
1276 (print_frame_info) (print_frame): Call print_pc.
1277
6eac171f
TV
12782019-08-16 Tom de Vries <tdevries@suse.de>
1279
1280 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1281 print_objfile_section_info.
1282
3df505f6
TT
12832019-08-15 Tom Tromey <tom@tromey.com>
1284
1285 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1286 calling update_cmdwin_start_line.
1287 * tui/tui-winsource.h (struct tui_source_window_base)
1288 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1289 <rerender>: Declare.
1290 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1291 Call rerender.
1292 (tui_source_window_base::set_new_height): Remove.
1293 (tui_source_window_base::rerender): Rename from
1294 do_make_visible_with_new_height.
1295 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1296 resize method.
1297 (tui_win_info::make_invisible_and_set_new_height)
1298 (tui_win_info::make_visible_with_new_height): Remove.
1299 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1300 Declare.
1301 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1302 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1303 do_make_visible_with_new_height>: Don't declare.
1304 <rerender>: Declare.
1305 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1306 set_new_height.
1307 (tui_data_window::do_make_visible_with_new_height): Remove.
1308 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1309 call tui_show_locator_content.
1310 (tui_gen_win_info::resize): Call rerender.
1311 (show_source_or_disasm_and_command): Don't call
1312 tui_show_locator_content.
1313 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1314 method.
1315 (struct tui_win_info) <rerender>: Declare.
1316 <set_new_height, make_invisible_and_set_new_height,
1317 make_visible_with_new_height>: Don't declare.
1318 * tui/tui-data.c (tui_win_list::rerender): New method.
1319 * tui/tui-command.h (struct tui_cmd_window)
1320 <do_make_visible_with_new_height>: Don't declare.
1321 * tui/tui-command.c
1322 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1323
272560b5
TT
13242019-08-15 Tom Tromey <tromey@adacore.com>
1325
1326 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1327 * ada-lang.c (ada_enum_name): Likewise.
1328
08235187
CB
13292019-08-15 Christian Biesinger <cbiesinger@google.com>
1330
1331 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1332 leading underscore.
1333 (GdbOutputErrorFile): Likewise.
1334 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1335 accordingly.
1336 (execute_unwinders): Rename to have a leading underscore.
1337 (auto_load_packages): Likewise.
1338 (global scope): Adjust call to auto_load_packages accordingly.
1339 (GdbSetPythonDirectory): Likewise.
1340 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1341 instead of execute_unwinders.
1342
db502012
TT
13432019-08-15 Tom Tromey <tom@tromey.com>
1344
1345 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1346 (show_data): Don't change window visibility.
1347 (tui_gen_win_info::resize): Remove special case for command
1348 window. Use wresize, when available.
1349 (show_source_or_disasm_and_command): Don't change window
1350 visibility.
1351 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1352 <make_visible>: New method.
1353 * tui/tui-command.c (tui_cmd_window::resize): New method.
1354
3891b65e
TT
13552019-08-15 Tom Tromey <tom@tromey.com>
1356
1357 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1358 (struct tui_source_windows): New.
1359 * tui/tui-winsource.c (tui_display_main): Update.
1360 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1361 (new_height_ok, parse_scrolling_args): Update.
1362 * tui/tui-layout.c (show_layout, show_data): Update.
1363 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1364 (tui_add_to_source_windows): Don't declare.
1365 * tui/tui-data.c (source_windows, tui_source_windows)
1366 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1367
ee556432
TT
13682019-08-15 Tom Tromey <tom@tromey.com>
1369
1370 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1371 Rename from reset.
1372 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1373 * tui/tui-layout.c (show_source_disasm_command, show_data):
1374 Update.
1375 (tui_gen_win_info::resize): Rename.
1376 (show_source_or_disasm_and_command): Update.
1377 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1378 reset.
1379
46f438e3
TT
13802019-08-15 Tom Tromey <tom@tromey.com>
1381
1382 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1383 * tui/tui-interp.c (tui_interp::init): Don't call
1384 tui_initialize_static_data.
1385 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1386
f4ce562c
TT
13872019-08-15 Tom Tromey <tom@tromey.com>
1388
1389 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1390 examine tui_win_list.
1391
c398c3d0
TT
13922019-08-15 Tom Tromey <tom@tromey.com>
1393
1394 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1395 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1396 tui_clear_source_content.
1397 (tui_clear_source_content): Remove.
1398 (tui_source_window_base::do_erase_source_content): Hoist call to
1399 content.clear().
1400 * tui/tui-stack.c (tui_show_frame_info): Don't call
1401 tui_clear_source_content.
1402
e25d2004
TT
14032019-08-15 Tom Tromey <tom@tromey.com>
1404
1405 * tui/tui-winsource.h (struct tui_source_window_base)
1406 <do_erase_source_content>: New method.
1407 <erase_source_content>: New method.
1408 (tui_erase_source_content): Don't declare.
1409 * tui/tui-winsource.c (tui_clear_source_content): Update.
1410 (tui_source_window_base::do_erase_source_content): Rename from
1411 tui_erase_source_content.
1412 (tui_source_window_base::show_source_content): Update.
1413 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1414 * tui/tui-source.h (struct tui_source_window)
1415 <erase_source_content>: New method.
1416 * tui/tui-disasm.h (struct tui_disasm_window)
1417 <erase_source_content>: New method.
1418
002f15c2
TT
14192019-08-15 Tom Tromey <tom@tromey.com>
1420
1421 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1422 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1423 constructor.
1424 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1425 * tui/tui-source.c (tui_set_source_content): Update.
1426 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1427
c9033fe8
TT
14282019-08-15 Tom Tromey <tom@tromey.com>
1429
1430 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1431 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1432 tui-source.c.
1433 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1434 Declare.
1435 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1436 method.
1437 (tui_source_window::maybe_update): Update.
1438
088f37dd
TT
14392019-08-15 Tom Tromey <tom@tromey.com>
1440
1441 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1442 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1443 tui-disasm.c.
1444 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1445 Declare.
1446 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1447 method.
1448 (tui_disasm_window::maybe_update): Update.
1449
a54700c6
TT
14502019-08-15 Tom Tromey <tom@tromey.com>
1451
1452 * tui/tui-winsource.h (struct tui_source_window_base)
1453 <maybe_update>: Declare.
1454 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1455 method.
1456 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1457 Declare.
1458 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1459 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1460 Declare.
1461 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1462
e2a678a5
TT
14632019-08-15 Tom Tromey <tom@tromey.com>
1464
1465 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1466
f2dda477
TT
14672019-08-15 Tom Tromey <tom@tromey.com>
1468
1469 * tui/tui-wingeneral.c: Include tui-stack.h.
1470 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1471 (struct tui_locator_window): Move from tui-data.h.
1472 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1473 (tui_initialize_static_data): Move from tui-data.c.
1474 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1475 (struct tui_locator_window): Move to tui-stack.c.
1476 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1477 (tui_initialize_static_data): Move to tui-stack.c.
1478
ed4a1084
TT
14792019-08-15 Tom Tromey <tom@tromey.com>
1480
1481 * tui/tui-layout.c (show_source_disasm_command)
1482 (show_source_or_disasm_and_command): Use make_visible method, not
1483 tui_make_window.
1484 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1485 Remove.
1486
65962b20
TT
14872019-08-15 Tom Tromey <tom@tromey.com>
1488
1489 * tui/tui-wingeneral.h (tui_make_window): Update.
1490 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1491 parameter.
1492 (tui_gen_win_info::make_visible): Update.
1493 * tui/tui-regs.c (tui_data_window::display_registers_from):
1494 Update.
1495 * tui/tui-layout.c (show_source_disasm_command)
1496 (show_source_or_disasm_and_command): Update.
1497 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1498 (enum tui_box): Remove.
1499 (struct tui_win_info) <can_box>: New method.
1500 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1501 method.
1502
2208ee91
TV
15032019-08-15 Tom de Vries <tdevries@suse.de>
1504
1505 * linux-nat-trad.c: Include gdbarch.h.
1506
75faf5c4
AH
15072019-08-14 Alan Hayward <alan.hayward@arm.com>
1508
1509 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1510 register sizes.
1511
b1c896b3
TT
15122019-08-14 Tom Tromey <tromey@adacore.com>
1513
1514 * darwin-nat.c: Include gdbarch.h.
1515 * darwin-nat-info.c: Include gdbarch.h.
1516
6405cd73
TT
15172019-08-13 Tom Tromey <tom@tromey.com>
1518
1519 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1520 Remove.
1521 * tui/tui-data.c (tui_initialize_static_data): Update.
1522
5216580d
TT
15232019-08-13 Tom Tromey <tom@tromey.com>
1524
1525 * tui/tui-winsource.h (struct tui_exec_info_window)
1526 <~tui_exec_info_window, maybe_allocate_content, get_content,
1527 m_content>: Remove.
1528 (struct tui_source_window_base) <set_exec_info_content,
1529 show_exec_info_content>: Don't declare.
1530 * tui/tui-winsource.c
1531 (tui_exec_info_window::maybe_allocate_content): Remove.
1532 (tui_source_window_base::update_exec_info): Rename from
1533 set_exec_info_content.
1534 (tui_source_window_base::show_exec_info_content)
1535 (tui_source_window_base::update_exec_info): Remove.
1536
93858ad3
TT
15372019-08-13 Tom Tromey <tom@tromey.com>
1538
1539 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1540 declare.
1541 * tui/tui-winsource.c (tui_update_source_window_as_is)
1542 (tui_update_source_windows_with_addr, tui_erase_source_content):
1543 Update.
1544 (tui_clear_exec_info_content): Remove.
1545
e321e7ce
TT
15462019-08-13 Tom Tromey <tom@tromey.com>
1547
1548 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1549 declare.
1550 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1551 call tui_erase_exec_info_content.
1552 (tui_clear_exec_info_content): Rename from
1553 tui_erase_exec_info_content.
1554 (tui_clear_exec_info_content): Delete.
1555
8270ac62
TT
15562019-08-13 Tom Tromey <tom@tromey.com>
1557
1558 * tui/tui-winsource.h (struct tui_source_window_base)
1559 <show_exec_info_content>: Declare.
1560 (tui_show_exec_info_content): Don't declare.
1561 * tui/tui-winsource.c
1562 (tui_source_window_base::show_exec_info_content): Rename from
1563 tui_show_exec_info_content.
1564 (tui_source_window_base::update_exec_info): Update.
1565
7b56485d
TT
15662019-08-13 Tom Tromey <tom@tromey.com>
1567
1568 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1569 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1570 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1571 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1572 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1573 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1574 ... here.
1575
7ba913dc
TT
15762019-08-13 Tom Tromey <tom@tromey.com>
1577
1578 * tui/tui-winsource.h (struct tui_source_window_base)
1579 <update_exec_info>: Declare.
1580 (tui_update_exec_info): Don't declare.
1581 * tui/tui-winsource.c (tui_update_source_window_as_is)
1582 (tui_source_window_base::refresh_all)
1583 (tui_update_all_breakpoint_info): Update.
1584 (tui_source_window_base::update_exec_info): Rename from
1585 tui_update_exec_info.
1586 * tui/tui-stack.c (tui_show_frame_info): Update.
1587
37a4a131
TT
15882019-08-13 Tom Tromey <tom@tromey.com>
1589
1590 * tui/tui-winsource.h (struct tui_source_window_base)
1591 <set_exec_info_content>: Declare.
1592 (tui_set_exec_info_content): Don't declare.
1593 * tui/tui-winsource.c
1594 (tui_source_window_base::set_exec_info_content): Rename from
1595 tui_set_exec_info_content.
1596 (tui_update_exec_info): Update.
1597
0bd27e07
TT
15982019-08-13 Tom Tromey <tom@tromey.com>
1599
1600 * tui/tui-winsource.h (struct tui_source_window_base)
1601 <show_source_content>: Declare.
1602 (tui_show_source_content): Don't declare.
1603 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1604 (tui_source_window_base::show_source_content): Rename from
1605 tui_show_source_content.
1606 (tui_source_window_base::refresh_all): Update.
1607 * tui/tui-layout.c (show_source_disasm_command)
1608 (show_source_or_disasm_and_command): Update.
1609
b4ef5aeb
TT
16102019-08-13 Tom Tromey <tom@tromey.com>
1611
1612 * tui/tui-winsource.c (tui_erase_source_content)
1613 (tui_show_source_content, tui_source_window_base::refresh_all):
1614 Update.
1615 * tui/tui-wingeneral.h
1616 (tui_check_and_display_highlight_if_needed): Don't declare.
1617 * tui/tui-wingeneral.c
1618 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1619 check_and_display_highlight_if_needed.
1620 * tui/tui-win.c (tui_rehighlight_all)
1621 (tui_win_info::make_visible_with_new_height): Update.
1622 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1623 (tui_data_window::erase_data_content)
1624 (tui_data_window::display_all_data): Update.
1625 * tui/tui-data.h (struct tui_win_info)
1626 <check_and_display_highlight_if_needed>: Declare.
1627
fede5273
TT
16282019-08-13 Tom Tromey <tom@tromey.com>
1629
1630 * tui/tui-win.c (tui_resize_all): Call
1631 tui_delete_invisible_windows.
1632 * tui/tui-layout.c (show_layout): Call
1633 tui_delete_invisible_windows.
1634 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1635 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1636
22c3f490
TT
16372019-08-13 Tom Tromey <tom@tromey.com>
1638
1639 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1640 tui_add_win_to_layout.
1641
16cb7910
TT
16422019-08-13 Tom Tromey <tom@tromey.com>
1643
1644 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1645 * tui/tui-layout.c (tui_default_win_height): Now static.
1646
cc0c3ffb
TT
16472019-08-13 Tom Tromey <tom@tromey.com>
1648
1649 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1650 single switch.
1651 (show_source_disasm_command, show_source_or_disasm_and_command):
1652 Don't check current layout.
1653
3f3ffe54
TT
16542019-08-13 Tom Tromey <tom@tromey.com>
1655
1656 * tui/tui-wingeneral.c (make_all_visible): Remove.
1657 (tui_make_all_invisible): Simplify.
1658 * tui/tui-layout.c (tui_make_all_invisible): Move from
1659 tui-wingeneral.c; simplify.
1660 (show_layout): Hoist call to tui_make_all_invisible.
1661 (show_data): Don't call tui_make_all_invisible.
1662
69258091
TT
16632019-08-13 Tom Tromey <tom@tromey.com>
1664
1665 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1666 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1667
62cf57fe
TT
16682019-08-13 Tom Tromey <tom@tromey.com>
1669
1670 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1671 tui-data.c.
1672 (show_source_disasm_command, show_data)
1673 (show_source_or_disasm_and_command): Don't use
1674 tui_set_current_layout_to.
1675 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1676 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1677 tui-layout.c.
1678 (tui_set_current_layout_to): Remove.
1679
2afade5d
TT
16802019-08-13 Tom Tromey <tom@tromey.com>
1681
1682 * tui/tui-layout.c (tui_set_layout): Update.
1683 * tui/tui-data.h (struct tui_layout_def): Remove.
1684 (tui_layout_def): Don't declare.
1685 * tui/tui-data.c (layout_def): Remove.
1686 (tui_layout_def): Remove.
1687
a3504e96
TT
16882019-08-13 Tom Tromey <tom@tromey.com>
1689
1690 * tui/tui-winsource.h (struct tui_source_window_base)
1691 <clear_detail>: No longer "override".
1692 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1693 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1694 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1695 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1696 Remove.
1697 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1698
29c92911
TT
16992019-08-13 Tom Tromey <tromey@adacore.com>
1700
1701 * tracepoint.c: Don't include readline.h or history.h.
1702
86c6b807
TT
17032019-08-12 Tom Tromey <tom@tromey.com>
1704
1705 * configure: Rebuild.
1706 * configure.ac: Check for readline 7.
1707 * NEWS: Mention readline 7 requirement.
1708 * README: Update.
1709
5db2718c
TT
17102019-08-12 Tom Tromey <tom@tromey.com>
1711
1712 * mingw-hdep.c (gdb_select): Remove readline hack.
1713
dac36daf
PFC
17142019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1715
1716 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1717 when the function fails.
1718
1022c627
AA
17192019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1720
1721 * s390-tdep.c (s390_type_align): New function.
1722 (s390_gdbarch_init): Set it as type_align gdbarch method.
1723
eba4caf2
TV
17242019-08-09 Tom de Vries <tdevries@suse.de>
1725
1726 PR gdb/24591
1727 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1728 pc_low with relocation offset.
1729
123cd851
TT
17302019-08-07 Tom Tromey <tromey@adacore.com>
1731
1732 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1733 (print_frame_args): Update.
1734 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1735 Update.
1736 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1737 * frame.h (struct frame_arg): Add initializers.
1738 <error>: Now a unique_xmalloc_ptr.
1739
3d31bc39
AH
17402019-08-07 Alan Hayward <alan.hayward@arm.com>
1741
1742 * NEWS: Expand the Pointer Authentication entry.
1743 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1744 (aarch64_frame_unmask_lr): ... to this.
1745 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1746 Call aarch64_frame_unmask_lr.
1747 * frame.c (struct frame_info): Add "masked" variable.
1748 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1749 (fprint_frame): Check for masked pc.
1750 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1751 declarations.
1752 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1753 * stack.c (print_frame): Check for masked pc.
1754
0cf9feb9
TT
17552019-08-06 Tom Tromey <tom@tromey.com>
1756
1757 * stabsread.c (patch_block_stabs, read_one_struct_field)
1758 (read_enum_type): Use obstack_strndup.
1759 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1760 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1761 * dwarf2read.c (guess_full_die_structure_name)
1762 (anonymous_struct_prefix): Use obstack_strndup.
1763 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1764 * c-exp.y (yylex): Use obstack_strndup.
1765 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1766 (write_var_or_type): Use obstack_strndup.
1767
efba19b0
TT
17682019-08-06 Tom Tromey <tom@tromey.com>
1769
1770 * symfile.c (reread_symbols): Use obstack_strdup.
1771 * stabsread.c (read_type): Use obstack_strdup.
1772 * gdb_obstack.h (obstack_strdup): New overload.
1773 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1774 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1775 (dwarf2_canonicalize_name): Use obstack_strdup.
1776 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1777 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1778 Use obstack_strdup.
1779
f25102f7
TT
17802019-08-06 Tom Tromey <tom@tromey.com>
1781
1782 * gdb_obstack.h (obstack_strdup): Define.
1783 * gdb_obstack.c (obstack_strdup): Don't define.
1784
021887d8
TT
17852019-08-06 Tom Tromey <tom@tromey.com>
1786
1787 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1788 obstack_strdup.
1789 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1790 obstack_strdup.
1791 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1792 * stabsread.c (common_block_start): Use obstack_strdup.
1793 * objfiles.c (set_objfile_main_name, objfile): Use
1794 obstack_strdup.
1795 * namespace.c (add_using_directive): Use obstack_strdup.
1796 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1797 * jit.c (finalize_symtab): Use obstack_strdup.
1798 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1799 (guess_partial_die_structure_name, partial_die_info::fixup)
1800 (dwarf2_name): Use obstack_strdup.
1801 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1802 obstack_strdup.
1803 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1804 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1805 obstack_strdup.
1806 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1807
d2834edc
PW
18082019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1809
1810 * unittests/help-doc-selftests.c: New file.
1811 * Makefile.in: Add the new file.
1812
590042fc
PW
18132019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1814
1815 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1816 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1817 the full first line, except when FOR_VALUE_PREFIX. In this case,
1818 the trailing '.' is not output, and the first character is uppercased.
1819 (print_help_for_command): Update call to print_doc_line.
1820 (print_doc_of_command): Likewise.
1821 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1822 * cli/cli-option.c (append_indented_doc): Do not append newline.
1823 (build_help_option): Append newline after first appended_indented_doc
1824 only if a second call is done.
1825 (build_help): Append 2 new lines before each option, except the first
1826 one.
1827 * compile/compile.c (_initialize_compile): Add new lines after
1828 %OPTIONS%, when not at the end of the help.
1829 Change help doc or code
1830 producing the help doc to respect the invariants.
1831 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1832 Also removed the new line after 'Options:', as all other commands
1833 do not put an empty line between 'Options:' and the first option.
1834 * printcmd.c (_initialize_printcmd): Likewise.
1835 * stack.c (_initialize_stack): Likewise.
1836 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1837 incorrectly telling COMMAND is optional.
1838 * ada-lang.c (_initialize_ada_language): Change help doc or code
1839 producing the help doc to respect the invariants.
1840 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1841 * breakpoint.c (_initialize_breakpoint): Likewise.
1842 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1843 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1844 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1845 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1846 _initialize_cli_style): Likewise.
1847 * corelow.c (core_target_info): Likewise.
1848 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1849 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1850 * filesystem.c (_initialize_filesystem): Likewise.
1851 * frame.c (_initialize_frame): Likewise.
1852 * gnu-nat.c (add_task_commands): Likewise.
1853 * infcall.c (_initialize_infcall): Likewise.
1854 * infcmd.c (_initialize_infcmd): Likewise.
1855 * interps.c (_initialize_interpreter): Likewise.
1856 * language.c (_initialize_language): Likewise.
1857 * linux-fork.c (_initialize_linux_fork): Likewise.
1858 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1859 * maint.c (_initialize_maint_cmds): Likewise.
1860 * memattr.c (_initialize_mem): Likewise.
1861 * printcmd.c (_initialize_printcmd): Likewise.
1862 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1863 _RegEx): Likewise.
1864 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1865 * record-btrace.c (_initialize_record_btrace): Likewise.
1866 * record-full.c (_initialize_record_full): Likewise.
1867 * record.c (_initialize_record): Likewise.
1868 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1869 * regcache.c (_initialize_regcache): Likewise.
1870 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1871 _initialize_remote): Likewise.
1872 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1873 * serial.c (_initialize_serial): Likewise.
1874 * skip.c (_initialize_step_skip): Likewise.
1875 * source.c (_initialize_source): Likewise.
1876 * stack.c (_initialize_stack): Likewise.
1877 * symfile.c (_initialize_symfile): Likewise.
1878 * symtab.c (_initialize_symtab): Likewise.
1879 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1880 * top.c (init_main): Likewise.
1881 * tracefile-tfile.c (tfile_target_info): Likewise.
1882 * tracepoint.c (_initialize_tracepoint): Likewise.
1883 * tui/tui-win.c (_initialize_tui_win): Likewise.
1884 * utils.c (add_internal_problem_command): Likewise.
1885 * valprint.c (value_print_option_defs): Likewise.
1886
404f2902
FCE
18872019-08-06 Frank Ch. Eigler <fche@redhat.com>
1888
1889 PR build/24886
1890 * configure.ac: Drop enable-libmcheck support.
1891 * configure, config.in: Rebuild.
1892 * libmcheck.m4: Remove.
1893 * acinclude.m4: Don't include it.
1894 * Makefile.in: Don't distribute it.
1895 * top.c (print_gdb_configuration): Don't mention it.
1896
046bebe1
TT
18972019-08-06 Tom Tromey <tom@tromey.com>
1898
1899 * utils.c (set_output_style): Sometimes pass stream to
1900 emit_style_escape.
1901 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1902 * record-btrace.c (btrace_insn_history): Update.
1903 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1904 method.
1905 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1906 Update initializers.
1907 <m_uiout>: New field.
1908 <m_di>: Move lower.
1909 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1910 Remove "uiout" parameter.
1911 (dump_insns): Update.
1912 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1913 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1914
ddbcedf5
CB
19152019-08-06 Christian Biesinger <cbiesinger@google.com>
1916
1917 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1918 (error_in_psymtab_expansion): Likewise.
1919 (lookup_symbol_via_quick_fns): Likewise.
1920 (basic_lookup_transparent_type_quick): Likewise.
1921 (basic_lookup_transparent_type_1): Likewise.
1922
b08b16c8
TT
19232019-08-06 Tom Tromey <tromey@adacore.com>
1924
1925 * source.c (last_source_error): Now bool.
1926 (print_source_lines_base): Make "noprint" bool. Only open
1927 source file when last_source_visited changes.
1928
cb44333d
TT
19292019-08-06 Tom Tromey <tromey@adacore.com>
1930
1931 * annotate.c (annotate_source_line): Use g_source_cache.
1932 * source-cache.c (source_cache::get_plain_source_lines): Change
1933 parameters. Populate m_offset_cache.
1934 (source_cache::ensure): New method.
1935 (source_cache::get_line_charpos): New method.
1936 (extract_lines): Move lower. Change parameters.
1937 (source_cache::get_source_lines): Move lower.
1938 * source-cache.h (class source_cache): Update comment.
1939 <get_line_charpos>: New method.
1940 <get_source_lines>: Update comment.
1941 <clear>: Clear m_offset_cache.
1942 <get_plain_source_lines>: Change parameters.
1943 <ensure>: New method
1944 <m_offset_cache>: New member.
1945 * source.c (forget_cached_source_info_for_objfile): Update.
1946 (info_source_command): Use g_source_cache.
1947 (find_source_lines, open_source_file_with_line_charpos): Remove.
1948 (print_source_lines_base, search_command_helper): Use g_source_cache.
1949 * source.h (open_source_file_with_line_charpos): Don't declare.
1950 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1951 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1952 Use g_source_cache.
1953
872dceaa
TT
19542019-08-06 Tom Tromey <tromey@adacore.com>
1955
1956 * source-cache.c (source_cache::get_plain_source_lines):
1957 Remove "first_line" and "last_line" parameters.
1958 (source_cache::get_source_lines): Cache plain text.
1959 * source-cache.h (class source_cache)
1960 <get_plain_source_lines>: Update.
1961
269249d9
TT
19622019-08-06 Tom Tromey <tromey@adacore.com>
1963
1964 * source-cache.c (extract_lines): No longer a method.
1965 Changed type of parameter. Include final newline.
1966 (selftests::extract_lines_test): New function.
1967 (_initialize_source_cache): Likewise.
1968 * source-cache.h (class source_cache)
1969 <extract_lines>: Don't declare.
1970
c0e8dcd8
TT
19712019-08-06 Tom Tromey <tromey@adacore.com>
1972
1973 * breakpoint.c (init_breakpoint_sal): Update.
1974 (breakpoint): Update.
1975 * breakpoint.h (struct breakpoint) <filter>: Now a
1976 unique_xmalloc_ptr.
1977
0b27c27d
CB
19782019-08-05 Christian Biesinger <cbiesinger@google.com>
1979
1980 * NEWS: Mention dictionary access on blocks.
1981 * python/py-block.c (blpy_getitem): New function.
1982 (block_object_as_mapping): New struct.
1983 (block_object_type): Use new struct for tp_as_mapping field.
1984
4ee94178
CB
19852019-08-05 Christian Biesinger <cbiesinger@google.com>
1986
1987 * objfiles.h (objfile): Add a comment describing partial symbols.
1988
8abfcabc
TT
19892019-08-05 Tom Tromey <tromey@adacore.com>
1990
1991 * compile/compile.c (_initialize_compile): Use _(), not N_().
1992 * thread.c (_initialize_thread): Use _(), not N_().
1993 * stack.c (_initialize_stack): Use _(), not N_().
1994 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1995
2b79f376
SM
19962019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1997
1998 * dwarf2read.c (struct dw2_symtab_iterator):
1999 <want_specific_block>: Remove.
2000 <block_index>: Change type to gdb::optional.
2001 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2002 change type of BLOCK_INDEX parameter to gdb::optional.
2003 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2004 (dw2_lookup_symbol): Don't pass argument for
2005 WANT_SPECIFIC_BLOCK.
2006 (dw2_expand_symtabs_for_function): Don't pass argument for
2007 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2008 (class dw2_debug_names_iterator)
2009 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2010 parameter, change BLOCK_INDEX type to gdb::optional.
2011 <m_want_specific_block>: Remove.
2012 <m_block_index>: Change type to gdb::optional.
2013 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2014 gdb::optional. Re-write in function of gdb::optional.
2015 (dw2_debug_names_lookup_symbol): Don't pass argument for
2016 WANT_SPECIFIC_BLOCK.
2017 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2018 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2019 BLOCK_INDEX.
2020
ae60f04e
PW
20212019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2022
2023 * NEWS: Mention changes to "info sources" command.
2024
28cd9371
PW
20252019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2026
2027 * symtab.c (filename_partial_match_opts): New struct type.
2028 (struct output_source_filename_data): New members
2029 regexp, c_regexp, partial_match.
2030 (output_source_filename): Use new members to decide to print file.
2031 (info_sources_option_defs): New variable.
2032 (make_info_sources_options_def_group, print_info_sources_header,
2033 info_sources_command_completer):
2034 New functions.
2035 (info_sources_command): Read new optional arguments.
2036 (_initialize_symtab): Update info sources help.
2037
ca683e3a
AO
20382019-08-02 Alexandre Oliva <oliva@adacore.com>
2039
2040 * ada-lang.c (exception_support_info_v0): Renamed from...
2041 (default_exception_support_info): ... this. Create new
2042 definition for v1.
2043 (ada_has_this_exception_support): Look up catch_handlers_sym.
2044 (ada_exception_support_info_sniffer): Try v0 after default.
2045
f1264162
TT
20462019-08-01 Tom Tromey <tromey@adacore.com>
2047
2048 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2049 gdbarch.h.
2050
0a7b2485
CB
20512019-08-01 Christian Biesinger <cbiesinger@google.com>
2052
2053 * s12z-tdep.c: Fix include path for s12z-opc.h.
2054
c6bdbeb7
AH
20552019-08-01 Alan Hayward <alan.hayward@arm.com>
2056
2057 * NEWS: Require GNU make 3.82.
2058
a2bd7b82
TT
20592019-07-16 Tom Tromey <tom@tromey.com>
2060
2061 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2062 declare.
2063
aa3b6533
TT
20642019-07-30 Tom Tromey <tromey@adacore.com>
2065
2066 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2067
a1530dc7
KB
20682019-07-30 Kevin Buettner <kevinb@redhat.com>
2069
2070 * printcmd.c (print_address_symbolic): Print negative offsets.
2071 (build_address_symbolic): Force signed arithmetic when computing
2072 offset.
2073
2906593f
CB
20742019-07-30 Christian Biesinger <cbiesinger@google.com>
2075
2076 PR/24474: Add a function to lookup static variables.
2077 * NEWS: Mention this new function.
2078 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2079 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2080 * python/python.c (python_GdbMethods): Add new function.
2081
c620ed88
CB
20822019-07-29 Christian Biesinger <cbiesinger@google.com>
2083
2084 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2085 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2086 (objfpy_lookup_static_symbol): New function.
2087 (objfile_object_methods): Add new functions.
2088
bc4268a5
PW
20892019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2090
2091 * NEWS: Mention 'set|show print frame-info'. Mention new
2092 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2093 backtrace argument. Mention that python frame filtering code
2094 is now consistent with what 'backtrace' command prints.
2095
4b5e8d19
PW
20962019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2097
2098 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2099 comments.
2100 (print_frame_info_auto, print_frame_info_source_line,
2101 print_frame_info_location, print_frame_info_source_and_location,
2102 print_frame_info_location_and_address, print_frame_info_short_location):
2103 New declarations.
2104 (struct frame_print_options): New member print_frame_info.
2105 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2106 * stack.h (get_user_print_what_frame_info): New declaration.
2107 (frame_show_address): New declaration.
2108 * stack.c (print_frame_arguments_choices): New value 'presence'.
2109 (print_frame_info_auto, print_frame_info_source_line,
2110 print_frame_info_location, print_frame_info_source_and_location,
2111 print_frame_info_location_and_address, print_frame_info_short_location,
2112 print_frame_info_choices, print_frame_info_print_what): New definitions.
2113 (print_frame_args): Only print dots for args if print frame-arguments
2114 is 'presence'.
2115 (frame_print_option_defs): New element for "frame-info".
2116 (get_user_print_what_frame_info): New function.
2117 (frame_show_address): Make non static. Move comment to stack.h.
2118 (print_frame_info_to_print_what): New function.
2119 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2120 to decide what to print.
2121 (backtrace_command_1): Handle the new print_frame_arguments_presence
2122 value.
2123 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2124 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2125 (py_print_frame): In non-mi mode, use LOCATION as default for
2126 print_what, similarly to frame information printed directly by
2127 backtrace command. Handle frame-info user option in non MI mode.
2128
6bdfee81
KB
21292019-07-27 Kevin Buettner <kevinb@redhat.com>
2130
2131 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2132 Add case for debugging 32-bit target on 64-bit host. Revise
2133 comment.
2134
98a617f8
KB
21352019-07-27 Kevin Buettner <kevinb@redhat.com>
2136
2137 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2138 instead of find_function_entry_range_from_pc.
2139
567238c9
KB
21402019-07-27 Kevin Buettner <kevinb@redhat.com>
2141
2142 * stack.c (find_frame_funname): Remove code which preferred
2143 minsym over symtab sym in "certain pathological cases".
2144
2dc80cf8
KB
2145 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2146 parameter. Change type of "do_demangle" to bool.
2147 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2148 Pass suitable "prefer_sym_over_minsym" flag to
2149 build_address_symbolic(). Don't output "+" for negative offsets.
2150 * printcmd.c (print_address_symbolic): Update invocation of
2151 build_address_symbolic to include a "prefer_sym_over_minsym"
2152 flag.
2153 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2154 Restrict cases in which use of minimal symbol is preferred to that
2155 of a found symbol. Update comments.
2156
1aff7173
KB
2157 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2158 for entry pc when entry pc is out of range for that FDE.
2159
89b085ac
BC
21602019-07-26 Brian Callahan <bcallah@openbsd.org>
2161
2162 PR gdb/24839:
2163 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2164 type.
2165
f32feb4a
CB
21662019-07-25 Christian Biesinger <cbiesinger@google.com>
2167
2168 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2169 this function's Python signature.
2170
2171
21722019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
2173
2174 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2175 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2176 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2177 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2178 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2179
2180
c54e4253
YS
21812019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2182
2183 * h8300-tdep.c (h8300_register_name_common): New.
2184 h8300_register_name): Use h8300_register_name_common.
2185 (h8300s_register_name): Likewise.
2186 (h8300sx_register_name): Likewise.
2187 (h8300h_register_nam): New.
2188 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2189
2190
40eadf04
SP
21912019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2192
2193 * arm-tdep.c (arm_skip_cmse_entry): New function.
2194 (arm_is_sgstubs_section): New function.
2195 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2196
bfa2a36d
TT
21972019-07-22 Tom Tromey <tom@tromey.com>
2198
2199 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2200 Don't self-assign.
2201
a8e9d247
AB
22022019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2203
2204 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2205 type_print.
2206
eb86c5e2
AB
22072019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2208
2209 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2210 so that GDB doesn't match any msymbols when searching in the
2211 TYPES_DOMAIN.
2212 (print_symbol_info): Print using typedef_print or type_print based
2213 on the type of the symbol. Add updated FIXME comment moved from...
2214 (_initialize_symtab): ... move and update FIXME comment to above.
2215
a8eab7c6
AB
22162019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2217
2218 * NEWS: Mention adding -q option to "info types".
2219 * symtab.c (struct info_types_options): New struct.
2220 (info_types_options_defs): New variable.
2221 (make_info_types_options_def_group): New function.
2222 (info_types_command): Use gdb::option framework to parse options.
2223 (info_types_command_completer): New function.
2224 (_initialize_symtab): Extend the help text on "info types" and
2225 register command completer.
2226
b4603c34
CB
22272019-07-21 Christian Biesinger <cbiesinger@google.com>
2228
2229 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2230 (lookup_symbol_in_objfile): Change int to block_enum and add a
2231 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2232
c8cdc1e0
CB
22332019-07-20 Christian Biesinger <cbiesinger@google.com>
2234
2235 * MAINTAINERS (Write After Approval): Add self.
2236
01e175fe
AB
22372019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2238
2239 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2240 instruction to the dummy code region.
2241
56f79b63
TT
22422019-07-19 Tom Tromey <tromey@adacore.com>
2243
2244 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2245 (ARGSUSED, PARAMS, __func__): Remove rules.
2246
4c5aa8e0
AH
22472019-07-19 Alan Hayward <alan.hayward@arm.com>
2248
2249 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2250 * features/arm/arm-with-iwmmxt.c: Remove.
2251 * features/arm/arm-with-iwmmxt.xml: Remove.
2252 * features/arm/arm-with-m-fpa-layout.c: Remove.
2253 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2254 * features/arm/arm-with-m-vfp-d16.c: Remove.
2255 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2256 * features/arm/arm-with-m.c: Remove.
2257 * features/arm/arm-with-m.xml: Remove.
2258 * features/arm/arm-with-neon.c: Remove.
2259 * features/arm/arm-with-neon.xml: Remove.
2260 * features/arm/arm-with-vfpv2.c: Remove.
2261 * features/arm/arm-with-vfpv2.xml: Remove.
2262 * features/arm/arm-with-vfpv3.c: Remove.
2263 * features/arm/arm-with-vfpv3.xml: Remove.
2264
f42b2617
AH
22652019-07-19 Alan Hayward <alan.hayward@arm.com>
2266
2267 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2268
f29ec966
AH
22692019-07-19 Alan Hayward <alan.hayward@arm.com>
2270
2271 * arch/aarch32.c (aarch32_create_target_description): Create
2272 target descriptions using features.
2273 * arch/arm.c (arm_create_target_description)
2274 (arm_create_mprofile_target_description): Likewise.
2275 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2276
d105cce5
AH
22772019-07-19 Alan Hayward <alan.hayward@arm.com>
2278
2279 * Makefile.in: Add new files.
2280 * aarch32-tdep.c: New file.
2281 * aarch32-tdep.h: New file.
2282 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2283 Call aarch32_read_description.
2284 * arch/aarch32.c: New file.
2285 * arch/aarch32.h: New file.
2286 * arch/arm.c (arm_create_target_description)
2287 (arm_create_mprofile_target_description): New function.
2288 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2289 (arm_create_target_description)
2290 (arm_create_mprofile_target_description): New declaration.
2291 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2292 read_description functions.
2293 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2294 Likewise.
2295 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2296 * arm-tdep.c (tdesc_arm_list): New variable.
2297 (arm_register_g_packet_guesses): Call create description functions.
2298 (arm_read_description) (arm_read_mprofile_description): New
2299 function.
2300 * arm-tdep.h (arm_read_description)
2301 (arm_read_mprofile_description): Add declaration.
2302 * configure.tgt: Add new files.
2303
afe09f0b
GL
23042019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2305
2306 * top.c (new_ui_command): Open specified terminal just once.
2307
cd215b2e
TT
23082019-07-18 Tom Tromey <tromey@adacore.com>
2309
2310 * symtab.c (main_name): Constify return type.
2311 * symfile.c (set_initial_language): Update.
2312 * symtab.h (main_name): Constify return type.
2313
d8f68fcb
TT
23142019-07-17 Tom Tromey <tom@tromey.com>
2315
2316 * tui/tui-winsource.c (tui_update_source_window)
2317 (tui_update_source_window_as_is)
2318 (tui_update_source_windows_with_line): Remove return.
2319 * tui/tui-disasm.c (tui_show_disassem)
2320 (tui_show_disassem_and_update_source): Remove return.
2321 * tui/tui.c (tui_reset): Remove return.
2322 * tui/tui-wingeneral.c
2323 (tui_check_and_display_highlight_if_needed): Remove return.
2324
ca5af91e
TT
23252019-07-17 Tom Tromey <tom@tromey.com>
2326
2327 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2328
5104fe36
TT
23292019-07-17 Tom Tromey <tom@tromey.com>
2330
2331 * tui/tui-winsource.h (struct tui_exec_info_window)
2332 (struct tui_source_window_base): Move from tui-data.h.
2333 * tui/tui-winsource.c: Move many method definitions from
2334 elsewhere. Remove "structuring" comments.
2335 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2336 (tui_source_window_base::refresh_window): Move to
2337 tui-winsource.c.
2338 * tui/tui-win.c (tui_source_window_base::refresh_all)
2339 (tui_source_window_base::update_tab_width)
2340 (tui_source_window_base::set_new_height)
2341 (tui_source_window_base::do_make_visible_with_new_height): Move to
2342 tui-winsource.c.
2343 * tui/tui-source.h: Update.
2344 * tui/tui-source.c (tui_source_window_base::reset): Move to
2345 tui-winsource.c.
2346 * tui/tui-disasm.h: Update.
2347 * tui/tui-data.h (struct tui_exec_info_window): Move to
2348 tui-winsource.h.
2349 (struct tui_source_window_base): Likewise.
2350 * tui/tui-data.c (tui_source_window_base::clear_detail)
2351 (tui_source_window_base, ~tui_source_window_base): Move to
2352 tui-winsource.c.
2353
daa15dde
TT
23542019-07-17 Tom Tromey <tom@tromey.com>
2355
2356 * tui/tui-win.c (tui_resize_all)
2357 (tui_source_window_base::update_tab_width)
2358 (tui_adjust_win_heights): Update.
2359 (tui_win_info::make_invisible_and_set_new_height): Rename from
2360 make_invisible_and_set_new_height.
2361 * tui/tui-data.h (struct tui_win_info)
2362 <make_invisible_and_set_new_height>: New method.
2363
bfad4537
TT
23642019-07-17 Tom Tromey <tom@tromey.com>
2365
2366 * tui/tui.c: Update.
2367 * tui/tui-source.h (struct tui_source_window): Move from
2368 tui-data.h.
2369 * tui/tui-layout.c: Update.
2370 * tui/tui-disasm.c: Update.
2371 * tui/tui-data.h (struct tui_source_window): Move to
2372 tui-source.h.
2373
88f7e873
TT
23742019-07-17 Tom Tromey <tom@tromey.com>
2375
2376 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2377 tui-data.h.
2378 * tui/tui-data.h (struct tui_disasm_window): Move to
2379 tui-disasm.h.
2380
96bd6233
TT
23812019-07-17 Tom Tromey <tom@tromey.com>
2382
2383 * tui/tui-regs.h (struct tui_data_item_window): Move from
2384 tui-data.h.
2385 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2386 * tui/tui-data.h (struct tui_data_item_window): Move to
2387 tui-regs.h.
2388 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2389
ce38393b
TT
23902019-07-17 Tom Tromey <tom@tromey.com>
2391
2392 * tui/tui.c: Update.
2393 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2394 (tui_cmd_window::max_height): Move to tui-command.c.
2395 * tui/tui-layout.c: Update.
2396 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2397 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2398 tui-command.c.
2399 * tui/tui-command.h (struct tui_cmd_window): Move from
2400 tui-data.h.
2401 * tui/tui-command.c: Remove "structuring" comments.
2402 (tui_cmd_window::clear_detail)
2403 (tui_cmd_window::do_make_visible_with_new_height)
2404 (tui_cmd_window::max_height): Move from elsewhere.
2405
2d8b51cb
TT
24062019-07-17 Tom Tromey <tom@tromey.com>
2407
2408 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2409 Now static.
2410 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2411 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2412
18ab23af
TT
24132019-07-17 Tom Tromey <tom@tromey.com>
2414
2415 * tui/tui.c: Update.
2416 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2417 tui-regs.c.
2418 * tui/tui-windata.h: Remove file.
2419 * tui/tui-windata.c: Remove file.
2420 * tui/tui-win.c (tui_data_window::set_new_height)
2421 (tui_data_window::do_make_visible_with_new_height): Move to
2422 tui-regs.c.
2423 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2424 * tui/tui-regs.c: Remove "structuring" comments.
2425 (tui_data_window::first_data_item_displayed)
2426 (tui_data_window::delete_data_content_windows)
2427 (tui_data_window::erase_data_content)
2428 (tui_data_window::display_all_data)
2429 (tui_data_window::refresh_all)
2430 (tui_data_window::do_scroll_vertical)
2431 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2432 (tui_data_window::do_make_visible_with_new_height)
2433 (tui_data_window::refresh_window): Move from elsewhere.
2434 (_initialize_tui_regs): Move to end of file.
2435 * tui/tui-layout.c: Update.
2436 * tui/tui-hooks.c: Update.
2437 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2438 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2439 tui-regs.c.
2440 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2441
88b7e7cc
TT
24422019-07-17 Tom Tromey <tom@tromey.com>
2443
2444 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2445 seen.
2446
0fcd3711
TT
24472019-07-17 Tom Tromey <tom@tromey.com>
2448
2449 * tui/tui-win.c (tui_source_window_base::set_new_height)
2450 (tui_source_window_base::do_make_visible_with_new_height): Use
2451 m_has_locator field directly.
2452 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2453 method.
2454 (struct tui_source_window_base) <has_locator>: Likewise.
2455
4a38112d
TT
24562019-07-17 Tom Tromey <tom@tromey.com>
2457
2458 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2459 Don't declare.
2460 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2461 Remove.
2462 * tui/tui-win.c (tui_source_window_base::set_new_height)
2463 (tui_source_window_base::set_new_height)
2464 (make_invisible_and_set_new_height)
2465 (tui_source_window_base::do_make_visible_with_new_height)
2466 (tui_source_window_base::do_make_visible_with_new_height):
2467 Update.
2468 * tui/tui-layout.c (show_source_disasm_command, show_data)
2469 (show_source_or_disasm_and_command): Update.
2470 * tui/tui-layout.c (show_layout): Update.
2471
09129226
TT
24722019-07-17 Tom Tromey <tom@tromey.com>
2473
2474 * tui/tui-layout.c (make_data_window): Remove.
2475 (show_data): Unify creation and re-initialization cases.
2476
4a8a5e84
TT
24772019-07-17 Tom Tromey <tom@tromey.com>
2478
2479 * tui/tui-layout.c (make_source_window, make_disasm_window):
2480 Remove.
2481 (show_data): Unify creation and re-initialization cases.
2482
76d2be8e
TT
24832019-07-17 Tom Tromey <tom@tromey.com>
2484
2485 * tui/tui-layout.c (make_command_window): Remove.
2486 (show_source_disasm_command, show_source_or_disasm_and_command):
2487 Unify creation and re-initialization cases.
2488
890b8bde
TT
24892019-07-17 Tom Tromey <tom@tromey.com>
2490
2491 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2492 creation and re-initialization cases.
2493
2cdfa113
TT
24942019-07-17 Tom Tromey <tom@tromey.com>
2495
2496 * tui/tui-regs.c (tui_get_register): Return void.
2497
8e3cfd09
TT
24982019-07-17 Tom Tromey <tom@tromey.com>
2499
2500 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2501 Simplify.
2502
f4e04977
TT
25032019-07-17 Tom Tromey <tom@tromey.com>
2504
2505 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2506 resetting.
2507
0379b883
TT
25082019-07-17 Tom Tromey <tom@tromey.com>
2509
2510 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2511 * tui/tui-regs.c (tui_reg_layout): New function.
2512 (tui_show_registers, tui_reg_command): Use it.
2513 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2514 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2515 parameters.
2516 (tui_layout_command): Remove.
2517
b7fbad91
TT
25182019-07-17 Tom Tromey <tom@tromey.com>
2519
2520 * tui/tui-layout.h (tui/tui-layout): Return void.
2521 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2522
4e1e56b9
TT
25232019-07-17 Tom Tromey <tom@tromey.com>
2524
2525 * tui/tui-layout.c (show_source_disasm_command, show_data):
2526 Update.
2527 (reset_locator): Remove.
2528 (show_source_or_disasm_and_command): Update.
2529
1e0c09ba
TT
25302019-07-17 Tom Tromey <tom@tromey.com>
2531
2532 * tui/tui-source.c (tui_source_window_base::reset): Remove
2533 win_type parameter.
2534 * tui/tui-layout.c (make_command_window, make_source_window)
2535 (make_disasm_window, make_data_window)
2536 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2537 (reset_locator, show_source_or_disasm_and_command): Update.
2538 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2539 win_type parameter.
2540 (struct tui_source_window_base) <reset>: Likewise.
2541
1bf605de
TT
25422019-07-17 Tom Tromey <tom@tromey.com>
2543
2544 * tui/tui-layout.c (show_source_disasm_command): Use
2545 reset_locator.
2546 (reset_locator): New function.
2547 (init_and_make_win): Remove.
2548 (show_source_or_disasm_and_command): Use reset_locator.
2549
098f9ed4
TT
25502019-07-17 Tom Tromey <tom@tromey.com>
2551
2552 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2553 condition.
2554 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2555 Remove condition.
2556 * tui/tui-source.c (tui_source_window_base::reset): New method.
2557 * tui/tui-layout.c (make_command_window): Don't call
2558 init_and_make_win.
2559 (make_source_window, make_disasm_window): Don't call
2560 make_source_or_disasm_window.
2561 (make_data_window): Don't call init_and_make_win. Change calling
2562 convention.
2563 (show_source_disasm_command, show_data): Simplify.
2564 (make_source_or_disasm_window): Remove.
2565 (show_source_or_disasm_and_command): Simplify.
2566 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2567 (struct tui_source_window_base) <reset>: Likewise.
2568 <execution_info>: Remove initializer.
2569 * tui/tui-data.c (tui_source_window_base): Initialize
2570 execution_info.
2571
80110957
TT
25722019-07-17 Tom Tromey <tom@tromey.com>
2573
2574 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2575 variable.
2576
cf82af05
TT
25772019-07-17 Tom Tromey <tom@tromey.com>
2578
2579 * tui/tui.c (tui_rl_other_window): Update.
2580 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2581 superclass method first. Always iterate over regs_content.
2582 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2583 method.
2584 * tui/tui-win.c (tui_set_focus_command): Update.
2585
01aeb396
TT
25862019-07-17 Tom Tromey <tom@tromey.com>
2587
2588 * tui/tui-win.c (tui_set_focus_command): Rename from
2589 tui_set_focus. Call tui_enable.
2590 (tui_set_focus_command): Remove.
2591
fd6c75ee
TT
25922019-07-17 Tom Tromey <tom@tromey.com>
2593
2594 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2595 refresh_window.
2596 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2597 touchwin.
2598 (tui_data_window::refresh_window): Call refresh_window on data
2599 items. Always call superclass refresh_window.
2600 (tui_win_info::refresh): Remove.
2601 (tui_source_window_base::refresh_window): Update.
2602 (tui_refresh_all): Update.
2603 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2604 refresh_window.
2605 (show_source_or_disasm_and_command): Likewise.
2606 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2607 (struct tui_source_window_base) <refresh>: Likewise.
2608
f6cc34a9
TT
26092019-07-17 Tom Tromey <tom@tromey.com>
2610
2611 * tui/tui-winsource.c (tui_clear_source_content)
2612 (tui_show_source_content): Update.
2613 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2614 whether content is empty.
2615 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2616 Remove.
2617
f31ec9af
TT
26182019-07-17 Tom Tromey <tom@tromey.com>
2619
2620 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2621 window's contents.
2622 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2623 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2624
d1b6f1e5
TT
26252019-07-17 Tom Tromey <tom@tromey.com>
2626
2627 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2628 (struct tui_data_item_window): Update.
2629
d9743a13
TT
26302019-07-17 Tom Tromey <tom@tromey.com>
2631
2632 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2633 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2634 defines.
2635
caf0bc4e
TT
26362019-07-17 Tom Tromey <tom@tromey.com>
2637
2638 * tui/tui-winsource.h (tui_erase_source_content)
2639 (tui_clear_source_content): Remove "display_prompt" parameter.
2640 * tui/tui-winsource.c (tui_update_source_window_as_is)
2641 (tui_update_source_windows_with_addr): Update.
2642 (tui_clear_source_content): Remove "display_prompt" parameter.
2643 (tui_erase_source_content): Likewise. Simplify.
2644 (tui_show_source_content): Update.
2645 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2646 * tui/tui-stack.c (tui_show_frame_info): Update.
2647 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2648 Remove defines.
2649
9d391078
TT
26502019-07-17 Tom Tromey <tom@tromey.com>
2651
2652 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2653 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2654 parameter.
2655 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2656 parameter.
2657
a38da35d
TT
26582019-07-17 Tom Tromey <tom@tromey.com>
2659
2660 * tui/tui-winsource.c (tui_clear_source_content)
2661 (tui_show_source_content, tui_show_exec_info_content)
2662 (tui_clear_exec_info_content): Update.
2663 * tui/tui-stack.c (tui_show_locator_content): Update.
2664 (tui_show_frame_info): Update.
2665 * tui/tui-source.h (tui_source_window): Don't declare.
2666 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2667 from tui_source_is_displayed.
2668 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2669 Remove field.
2670 (struct tui_source_window_base) <content_in_use>: New field. Now
2671 bool.
2672 (struct tui_source_window) <showing_source_p>: New method.
2673 (TUI_SRC_WIN): Change cast.
2674 * tui/tui-data.c (tui_initialize_static_data): Update.
2675
c2cd8994
TT
26762019-07-17 Tom Tromey <tom@tromey.com>
2677
2678 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2679 location_matches_p.
2680 * tui/tui-source.c (tui_source_window::location_matches_p): New
2681 method.
2682 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2683 method.
2684 * tui/tui-data.h (struct tui_source_window_base)
2685 <location_matches_p>: New method.
2686 (struct tui_source_window, struct tui_disasm_window)
2687 <location_matches_p>: Likewise.
2688
4dde7b34
TT
26892019-07-17 Tom Tromey <tom@tromey.com>
2690
2691 * tui/tui-win.c (tui_set_win_height_command): Rename from
2692 tui_set_win_height.
2693 (tui_set_win_height_command): Remove.
2694
b73dd877
TT
26952019-07-17 Tom Tromey <tom@tromey.com>
2696
2697 * tui/tui-source.c (tui_source_window): New constructor. Add
2698 observer.
2699 (~tui_source_window): New destructor.
2700 (tui_source_window::style_changed): New method.
2701 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2702 (tui_attach_detach_observers): Update.
2703 * tui/tui-data.h (struct tui_source_window): Make constructor not
2704 inline. Add destructor.
2705 (struct tui_source_window) <style_changed>: New method.
2706 <m_observable>: New member.
2707
ae2b5380
TT
27082019-07-17 Tom Tromey <tom@tromey.com>
2709
2710 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2711 * tui/tui-win.c (tui_resize_all): Fix typo.
2712
1ce3e844
TT
27132019-07-17 Tom Tromey <tom@tromey.com>
2714
2715 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2716 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2717 (tui_refresh_all): Remove "list" parameter. Use foreach.
2718 * tui/tui-win.c (window_name_completer): Use foreach.
2719 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2720 (update_tab_width): Likewise.
2721 * tui/tui-layout.c (show_layout): Update.
2722 * tui/tui-data.h (class tui_window_iterator): New.
2723 (struct all_tui_windows): New.
2724 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2725
fe3eaf1c
TT
27262019-07-17 Tom Tromey <tom@tromey.com>
2727
2728 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2729 parameter. Don't reference globals.
2730 (tui_reg_command): Update.
2731
368c1354
TT
27322019-07-17 Tom Tromey <tom@tromey.com>
2733
2734 * tui/tui-regs.c (tui_show_registers): Simplify.
2735
e80cd204
TT
27362019-07-17 Tom Tromey <tom@tromey.com>
2737
2738 * tui/tui-regs.c (tui_show_registers): Update.
2739 (tui_show_register_group): Add win_info parameter.
2740
aca2dd16
TT
27412019-07-17 Tom Tromey <tom@tromey.com>
2742
2743 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2744 Rename from tui_display_reg_element_at_line.
2745 (tui_data_window::display_registers_from_line): Update.
2746 * tui/tui-data.h (struct tui_data_window)
2747 <display_reg_element_at_line>: New method.
2748
517e9505
TT
27492019-07-17 Tom Tromey <tom@tromey.com>
2750
2751 * tui/tui-regs.h (tui_display_registers_from)
2752 (tui_display_registers_from_line): Don't declare.
2753 * tui/tui-windata.c (tui_data_window::display_all_data)
2754 (tui_data_window::refresh_all)
2755 (tui_data_window::do_scroll_vertical): Update.
2756 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2757 from tui_display_registers_from.
2758 (tui_display_reg_element_at_line): Update.
2759 (tui_data_window::display_registers_from_line): Rename from
2760 tui_display_registers_from_line.
2761 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2762 display_registers_from_line>: New methods.
2763
f76d8b19
TT
27642019-07-17 Tom Tromey <tom@tromey.com>
2765
2766 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2767 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2768 from tui_erase_data_content.
2769 (tui_data_window::display_all_data)
2770 (tui_data_window::refresh_all)
2771 (tui_data_window::do_scroll_vertical): Update.
2772 * tui/tui-regs.c (tui_show_registers): Update.
2773 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2774 New method.
2775
b4094625
TT
27762019-07-17 Tom Tromey <tom@tromey.com>
2777
2778 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2779 declare.
2780 * tui/tui-windata.c
2781 (tui_data_window::delete_data_content_windows): Rename from
2782 tui_delete_data_content_windows.
2783 (tui_data_window::display_all_data)
2784 (tui_data_window::do_scroll_vertical): Update.
2785 * tui/tui-data.h (struct tui_data_window)
2786 <delete_data_content_windows>: New method.
2787
c223a729
TT
27882019-07-17 Tom Tromey <tom@tromey.com>
2789
2790 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2791 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2792
50daf268
TT
27932019-07-17 Tom Tromey <tom@tromey.com>
2794
2795 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2796 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2797 from tui_display_all_data.
2798 * tui/tui-win.c
2799 (tui_data_window::do_make_visible_with_new_height): Update.
2800 * tui/tui-regs.c (tui_show_registers): Update.
2801 * tui/tui-layout.c (tui_set_layout): Update.
2802 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2803 method.
2804
df5f8cab
TT
28052019-07-17 Tom Tromey <tom@tromey.com>
2806
2807 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2808 * tui/tui-windata.c (tui_display_data_from): Remove.
2809 (tui_data_window::refresh_all): Update.
2810
80cb6c27
TT
28112019-07-17 Tom Tromey <tom@tromey.com>
2812
2813 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2814 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2815 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2816 tui_display_registers_from_line.
2817 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2818 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2819 "force_display" parameter.
2820
baff0c28
TT
28212019-07-17 Tom Tromey <tom@tromey.com>
2822
2823 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2824 declare.
2825 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2826 Rename from tui_first_reg_element_no_inline.
2827 (tui_display_reg_element_at_line)
2828 (tui_display_registers_from_line): Update.
2829 * tui/tui-data.h (struct tui_data_window)
2830 <first_reg_element_no_inline>: New method.
2831
3b23c5f2
TT
28322019-07-17 Tom Tromey <tom@tromey.com>
2833
2834 * tui/tui-windata.c (tui_display_data_from)
2835 (tui_data_window::do_scroll_vertical): Update.
2836 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2837 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2838 Rename from tui_line_from_reg_element_no.
2839 (tui_display_registers_from_line): Update.
2840 * tui/tui-data.h (struct tui_data_window)
2841 <line_from_reg_element_no>: New method.
2842
0b5ec218
TT
28432019-07-17 Tom Tromey <tom@tromey.com>
2844
2845 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2846 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2847 tui_last_regs_line_no.
2848 (tui_display_reg_element_at_line)
2849 (tui_display_registers_from_line): Update.
2850 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2851 method.
2852
0807ab7b
TT
28532019-07-17 Tom Tromey <tom@tromey.com>
2854
2855 PR tui/24722:
2856 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2857 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2858 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2859 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2860 (tui_update_breakpoint_info): Likewise.
2861 * tui/tui-hooks.c (tui_event_create_breakpoint)
2862 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2863 Update.
2864
9ad7fdef
TT
28652019-07-17 Tom Tromey <tom@tromey.com>
2866
2867 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2868
5813316f
TT
28692019-07-17 Tom Tromey <tom@tromey.com>
2870
2871 * tui/tui-winsource.c (tui_update_source_window_as_is)
2872 (tui_update_source_windows_with_addr): Update.
2873 * tui/tui-source.h (tui_set_source_content)
2874 (tui_show_symtab_source): Add "win_info" parameter.
2875 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2876 parameter.
2877 (tui_show_symtab_source): Likewise.
2878
00e264e7
TT
28792019-07-17 Tom Tromey <tom@tromey.com>
2880
2881 * tui/tui-wingeneral.c
2882 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2883
06210ce4
TT
28842019-07-17 Tom Tromey <tom@tromey.com>
2885
2886 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2887 (struct tui_cmd_window) <can_scroll>: New method.
2888 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2889 method.
2890
381befee
TT
28912019-07-17 Tom Tromey <tromey@adacore.com>
2892
2893 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2894 do_field_signed>: Rename. Change type of "value".
2895 * ui-out.c (ui_out::field_signed): Rename from field_int.
2896 Change type of "value".
2897 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2898 type of "value".
2899 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2900 do_field_int. Change type of "value".
2901 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2902 do_field_int. Change type of "value".
2903 * tracepoint.c (trace_status_mi, tfind_1)
2904 (print_one_static_tracepoint_marker): Update.
2905 * thread.c (print_thread_info_1, print_selected_thread_frame):
2906 Update.
2907 * stack.c (print_frame, print_frame_info): Update.
2908 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2909 Update.
2910 * source.c (print_source_lines_base): Update.
2911 * skip.c (info_skip_command): Update.
2912 * record-btrace.c (btrace_ui_out_decode_error)
2913 (btrace_call_history_src_line): Update.
2914 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2915 Update.
2916 * progspace.c (print_program_space): Update.
2917 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2918 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2919 do_field_int. Change type of "value".
2920 * mi/mi-out.c (mi_ui_out::do_table_begin)
2921 (mi_ui_out::do_table_header): Update.
2922 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2923 type of "value".
2924 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2925 (mi_cmd_data_list_changed_registers, output_register)
2926 (mi_cmd_data_read_memory, mi_load_progress)
2927 (mi_cmd_trace_frame_collected): Update.
2928 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2929 Update.
2930 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2931 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2932 (mi_cmd_var_list_children, varobj_update_one): Update.
2933 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2934 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2935 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2936 * inferior.c (print_inferior): Update.
2937 * gdb_bfd.c (print_one_bfd): Update.
2938 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2939 Update.
2940 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2941 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2942 do_field_int. Change type of "value".
2943 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2944 do_field_int. Change type of "value".
2945 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2946 (print_one_breakpoint_location, print_it_catch_fork)
2947 (print_one_catch_fork, print_it_catch_vfork)
2948 (print_one_catch_vfork, print_it_catch_solib)
2949 (print_it_catch_exec, print_it_ranged_breakpoint)
2950 (print_mention_watchpoint, print_mention_masked_watchpoint)
2951 (bkpt_print_it, update_static_tracepoint): Update.
2952 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2953 * break-catch-syscall.c (print_it_catch_syscall): Update.
2954 * ada-tasks.c (print_ada_task_info): Update.
2955 * ada-lang.c (print_it_exception, print_mention_exception):
2956 Update.
2957
6b78c3f8
AB
29582019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2959
2960 PR breakpoints/24541
2961 * gdbarch.c: Regenerate.
2962 * gdbarch.h: Regenerate.
2963 * gdbarch.sh: Adjust return type and parameter types for
2964 'stap_adjust_register'.
2965 (i386_stap_adjust_register): Adjust signature and return new
2966 register name.
2967 * stap-probe.c (stap_parse_register_operand): Adjust use of
2968 'gdbarch_stap_adjust_register'.
2969
d72a9b85
TT
29702019-07-17 Tom Tromey <tromey@adacore.com>
2971
2972 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2973 declare VEC.
2974 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2975 std::vector.
2976 (struct s390_process_info): Add initializers.
2977 (s390_add_process): Use new.
2978 (s390_linux_nat_target::low_forget_process): Use delete.
2979 (s390_linux_nat_target::low_new_fork)
2980 (s390_linux_nat_target::stopped_by_watchpoint)
2981 (s390_linux_nat_target::low_prepare_to_resume)
2982 (s390_linux_nat_target::insert_watchpoint)
2983 (s390_linux_nat_target::insert_hw_breakpoint)
2984 (s390_linux_nat_target::remove_watchpoint)
2985 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2986
206e6c58
JB
29872019-07-16 John Baldwin <jhb@FreeBSD.org>
2988
2989 * aarch64-fbsd-nat.c: Include regcache.h.
2990 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2991 argument.
2992 (aarch64_fbsd_nat_target::fetch_registers)
2993 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2994 variable.
2995 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2996
cbde90f2
JB
29972019-07-16 John Baldwin <jhb@FreeBSD.org>
2998
2999 * fbsd-nat.c: Include gdbarch.h.
3000
07128006
TT
30012019-07-15 Tom Tromey <tromey@adacore.com>
3002
3003 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3004
1f77b012
TT
30052019-07-15 Tom Tromey <tromey@adacore.com>
3006
3007 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3008 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3009 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3010 * cli-out.c (cli_ui_out::do_field_int): New method.
3011 * ui-out.c (ui_out::field_unsigned): New method.
3012 * symfile.c (generic_load): Use field_unsigned.
3013 (print_transfer_performance): Likewise.
3014 * record-btrace.c (ui_out_field_uint): Remove.
3015 (btrace_call_history_insn_range, btrace_call_history): Use
3016 field_unsigned.
3017 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3018 field_unsigned.
3019 * ui-out.h (class ui_out) <field_unsigned>: New method.
3020 <do_field_unsigned>: Likewise.
3021
33eca680
TT
30222019-07-15 Tom Tromey <tromey@adacore.com>
3023
3024 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3025 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3026 * target.c (flash_erase_command): Use field_string.
3027 * infrun.c (print_signal_received_reason): Use field_string.
3028 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3029 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3030 field_string.
3031 * ada-tasks.c (print_ada_task_info): Use field_string.
3032
ca8d69be
TT
30332019-07-15 Tom Tromey <tromey@adacore.com>
3034
3035 * target.c (flash_erase_command): Use field_core_addr.
3036 * symfile.c (generic_load): Use field_core_addr.
3037 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3038 Use field_core_addr.
3039 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3040 field_core_addr.
3041
0d4e84ed
AB
30422019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3043
3044 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3045 value if its desired type is smaller than a CORE_ADDR and signed.
3046
9a49df9d
AB
30472019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3048
3049 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3050 of changes to field names, and use new is_reference field to
3051 decide if a property is a reference or not.
3052 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3053 field.
3054 (struct dwarf2_property_baton): Update header comment, rename
3055 'referenced_type' to 'property_type' and update comments.
3056 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3057 default property type, store in property baton, update to take
3058 accound of renamed field.
3059 (read_func_scope): Update call to attr_to_dynamic_prop.
3060 (read_array_type): Likewise.
3061 (dwarf2_per_cu_addr_sized_int_type): New function.
3062 (read_subrange_index_type): Move type finding code to
3063 dwarf2_per_cu_addr_sized_int_type.
3064 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3065 (dwarf2_per_cu_addr_type): New function.
3066 (set_die_type): Update calls to attr_to_dynamic_prop.
3067
b86352cf
AB
30682019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3069
3070 * dwarf2read.c (read_subrange_index_type): New function.
3071 (read_subrange_type): Move code into new function and call it.
3072 * gdbtypes.c (create_range_type): Add some asserts.
3073
603490bf
AB
30742019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3075
3076 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3077 update return statements.
3078 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3079 declaration, and update comment to match.
3080 * gdbtypes.c (resolve_dynamic_array): Update call to
3081 dwarf2_evaluate_property to match new return type.
3082
592f9d27
AB
30832019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3084
3085 * valarith.c (value_subscripted_rvalue): Change lowerbound
3086 parameter type from int to LONGEST.
3087 * value.h (value_subscripted_rvalue): Likewise in declaration.
3088
60cfcb20
AB
30892019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3090
3091 * cli/cli-utils.c (info_print_command_completer): New function.
3092 * cli/cli-utils.h: Add 'completer.h' include, and forward
3093 declaration for 'struct cmd_list_element'.
3094 (info_print_command_completer): Declare.
3095 * stack.c (_initialize_stack): Add completer for 'info locals' and
3096 'info args'.
3097 * symtab.c (_initialize_symtab): Add completer for 'info
3098 variables' and 'info functions'.
3099 * NEWS: Mention completion for additional info commands.
3100
b16507e0
AB
31012019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3102
3103 * cli/cli-utils.c (extract_info_print_args): Delete.
3104 (extract_arg_maybe_quoted): Delete.
3105 (info_print_options_defs): New variable.
3106 (make_info_print_options_def_group): New function.
3107 (extract_info_print_options): Define new function.
3108 * cli/cli-utils.h (extract_info_print_args): Delete.
3109 (struct info_print_options): New structure.
3110 (extract_info_print_options): Declare new function.
3111 * stack.c (info_locals_command): Update to use new
3112 extract_info_print_options, also add a header comment.
3113 (info_args_command): Likewise.
3114 * symtab.c (info_variables_command): Likewise.
3115 (info_functions_command): Likewise.
3116
021d8588
AB
31172019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3118
3119 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3120 to extract string arguments.
3121 * common/common-utils.c (extract_string_maybe_quoted): New function.
3122 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3123
b777eb6d
TT
31242019-07-11 Tom Tromey <tromey@adacore.com>
3125
3126 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3127 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3128 * top.h (gdbinit): Don't declare.
3129 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3130 into...
3131 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3132 * top.c (gdb_init): Don't call init_cli_cmds.
3133 (gdbinit): Remove.
3134 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3135
72ee03ff
TT
31362019-07-11 Tom Tromey <tromey@adacore.com>
3137
3138 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3139 after it has been moved.
3140
00db9531
SM
31412019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3142
3143 * valops.c (value_must_coerce_to_target): Change return type to
3144 bool.
3145 * value.h (value_must_coerce_to_target): Likewise.
3146
f2478a7e
SM
31472019-07-10 Simon Marchi <simon.marchi@efficios.com>
3148
3149 * breakpoint.c (is_hardware_watchpoint): Remove
3150 forward-declaration.
3151 (is_masked_watchpoint): Change return type to bool.
3152 (is_tracepoint): Likewise.
3153 (is_breakpoint): Likewise.
3154 (is_hardware_watchpoint): Likewise.
3155 (is_watchpoint): Likewise.
3156 (is_no_memory_software_watchpoint): Likewise.
3157 (is_catchpoint): Likewise.
3158 (breakpoint_1): Make FILTER parameter's return type bool.
3159 is_masked_watchpoint): Change return type to bool.
3160 (save_breakpoints): Make FILTER parameter's return type bool.
3161 * breakpoint.h (is_breakpoint): Change return type to bool.
3162 (is_watchpoint): Likewise.
3163 (is_catchpoint): Likewise.
3164 (is_tracepoint): Likewise.
3165
0d12e84c
TT
31662019-07-10 Tom Tromey <tom@tromey.com>
3167
3168 * defs.h: Don't include gdbarch.h.
3169 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3170 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3171 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3172 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3173 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3174 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3175 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3176 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3177 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3178 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3179 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3180 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3181 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3182 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3183 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3184 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3185 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3186 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3187 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3188 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3189 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3190 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3191 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3192 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3193 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3194 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3195 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3196
f06f1252
TT
31972019-07-10 Tom Tromey <tromey@adacore.com>
3198
3199 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3200 * breakpoint.c (init_ada_exception_breakpoint): Register as
3201 bp_catchpoint.
3202 (print_one_breakpoint_location, print_one_breakpoint): Use
3203 is_ada_exception_catchpoint.
3204 * ada-lang.c (class ada_catchpoint_location): Pass
3205 bp_loc_software_breakpoint to bp_location constructor.
3206 (is_ada_exception_catchpoint): New function.
3207
7a5d944b
TT
32082019-07-10 Tom Tromey <tromey@adacore.com>
3209
3210 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3211 VEC.
3212 (struct arm_exidx_entry): New method operator<.
3213 (struct arm_exidx_data) <section_maps>: Change type.
3214 (arm_exidx_data_free): Remove.
3215 (arm_exidx_data_key): Change type. Move lower.
3216 (arm_exidx_new_objfile): Update.
3217 (arm_compare_exidx_entries): Remove.
3218 (arm_find_exidx_entry, _initialize_arm_tdep)
3219
48c66e1d
TT
32202019-07-10 Tom Tromey <tromey@adacore.com>
3221
3222 * solib-spu.c (ocl_program_data_key): Change type.
3223 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3224 Update.
3225
a269fbf1
TT
32262019-07-10 Tom Tromey <tromey@adacore.com>
3227
3228 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3229 (struct solib_aix_inferior_data) <library_list>: Change type.
3230 (solib_aix_inferior_data_handle): Change type.
3231 (get_solib_aix_inferior_data): Update.
3232 (solib_aix_free_library_list): Remove.
3233 (library_list_start_library): Update.
3234 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3235 return type.
3236 (solib_aix_get_library_list)
3237 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3238 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3239
c294730c
TT
32402019-07-10 Tom Tromey <tromey@adacore.com>
3241
3242 * solib-dsbt.c (struct dsbt_info): Add initializers.
3243 (solib_dsbt_pspace_data): Change type.
3244 (dsbt_pspace_data_cleanup): Remove.
3245 (get_dsbt_info, _initialize_dsbt_solib): Update.
3246
9d52077d
TT
32472019-07-10 Tom Tromey <tromey@adacore.com>
3248
3249 * spu-tdep.c (spu_overlay_data): Change type.
3250 (spu_get_overlay_table, spu_overlay_new_objfile)
3251 (_initialize_spu_tdep): Update.
3252
22a20dca
TT
32532019-07-10 Tom Tromey <tromey@adacore.com>
3254
3255 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3256 destructor.
3257 (dbx_objfile_data_key): Change type and declare later.
3258 (DBX_SYMFILE_INFO): Rewrite.
3259 * dbxread.c (dbx_objfile_data_key): Change type.
3260 (dbx_symfile_init): Update.
3261 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3262 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3263 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3264
cb60f420
TT
32652019-07-10 Tom Tromey <tromey@adacore.com>
3266
3267 * jit.c (jit_program_space_key): Change type. Move lower.
3268 (get_jit_program_space_data): Update.
3269 (jit_program_space_data_cleanup): Remove.
3270 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3271 Update.
3272 (struct jit_program_space_data): Add initializers.
3273
51df2ae3
TT
32742019-07-10 Tom Tromey <tromey@adacore.com>
3275
3276 * solib-darwin.c (struct darwin_info): Add initializers.
3277 (solib_darwin_pspace_data): Change type.
3278 (darwin_pspace_data_cleanup): Remove.
3279 (get_darwin_info, _initialize_darwin_solib): Update.
3280
18101a35
TT
32812019-07-10 Tom Tromey <tromey@adacore.com>
3282
3283 * remote-sim.c (struct sim_inferior_data): Add initializers,
3284 constructor, and destructor.
3285 (sim_inferior_data_key): Change type. Move lower.
3286 (check_for_duplicate_sim_descriptor): Update.
3287 (get_sim_inferior_data): Use new. Update.
3288 (~sim_inferior_data_cleanup): Rename from
3289 sim_inferior_data_cleanup. Simplify.
3290 (gdbsim_close_inferior, simulator_command)
3291 (sim_command_completer, _initialize_remote_sim): Update.
3292 (next_pid, INITIAL_PID): Move earlier.
3293
05b08ac1
TT
32942019-07-10 Tom Tromey <tromey@adacore.com>
3295
3296 * python/python-internal.h (create_thread_object): Return
3297 gdbpy_ref.
3298 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3299 * python/py-inferior.c (struct threadlist_entry): Add
3300 constructor.
3301 <thread_obj>: Now a gdbpy_ref.
3302 (thread_to_thread_object): Update.
3303 (add_thread_object): Use new.
3304 (delete_thread_object): Use delete.
3305 (infpy_threads): Update.
3306 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3307 GIL.
3308
32372d80
TT
33092019-07-10 Tom Tromey <tromey@adacore.com>
3310
3311 * valops.c (value_cast): Specialize error message for Ada.
3312
5c458ae8
SM
33132019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3314
3315 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3316
4c462cb0
SM
33172019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3318
3319 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3320 bpstat_should_step): Return bool, adjust comments.
3321 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3322 bpstat_should_step): Likewise.
3323
89abbcc2
AH
33242019-07-10 Alan Hayward <alan.hayward@arm.com>
3325
3326 * features/Makefile: Use feature target descriptions for Arm.
3327 * features/arm/arm-core.c: Generate new file.
3328 * features/arm/arm-fpa.c: Likewise.
3329 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3330 * features/arm/arm-m-profile.c: Likewise.
3331 * features/arm/arm-vfpv2.c: Likewise.
3332 * features/arm/arm-vfpv3.c: Likewise.
3333 * features/arm/xscale-iwmmxt.c: Likewise.
3334 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3335
166a82be
AH
33362019-07-10 Alan Hayward <alan.hayward@arm.com>
3337
3338 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3339 ptrace earlier.
3340
9fb4c7e9
AH
33412019-07-10 Alan Hayward <alan.hayward@arm.com>
3342
3343 * features/aarch64-pauth.c: Regenerate.
3344
e2d0f980
SM
33452019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3346
3347 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3348 bool.
3349 (bpstat_what): Use false instead of 0.
3350
a38118e5
PA
33512019-07-09 Pedro Alves <palves@redhat.com>
3352
3353 * break-catch-throw.c (is_exception_catchpoint): New.
3354 * breakpoint.c (print_one_breakpoint_location): New parameter
3355 'raw_loc'. Handle it. Use
3356 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3357 looking at the breakpoint's type.
3358 (print_one_breakpoint): If handling "maint info breakpoints", also
3359 print locations of exception catchpoints.
3360 * breakpoint.h (is_exception_catchpoint): Declare.
3361
cb1e4e32
PA
33622019-07-09 Pedro Alves <palves@redhat.com>
3363
3364 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3365 "addr" field.
3366 (allocate_location_exception_catchpoint): New.
3367 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3368 (initialize_throw_catchpoint_ops): Install
3369 allocate_location_exception_catchpoint as allocate_location
3370 method.
3371 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3372 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3373 bp_loc_other.
3374 (breakpoint_address_is_meaningful): Delete.
3375 (bl_address_is_meaningful): New.
3376 (breakpoint_locations_match): Adjust comment.
3377 (bp_location_from_bp_type): New, factored out of...
3378 (bp_location::bp_location(breakpoint *)): ... this.
3379 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3380 factored out of...
3381 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3382 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3383 breakpoint_address_is_meaningful.
3384 (bp_locations_compare): Adjust comment.
3385 (update_global_location_list): Use bl_address_is_meaningful
3386 instead of breakpoint_address_is_meaningful.
3387 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3388 explicit.
3389 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3390 * python/py-breakpoint.c (bppy_get_location): No longer check
3391 whether location is null.
3392
b58a68fe
PA
33932019-07-09 Pedro Alves <palves@redhat.com>
3394
3395 PR c++/15468
3396 * breakpoint.c (print_one_breakpoint_location): Remove
3397 single-location assert.
3398
268a13a5
TT
33992019-07-09 Tom Tromey <tom@tromey.com>
3400
3401 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3402 * configure: Rebuild.
3403 * configure.ac: Change common to gdbsupport.
3404 * gdbsupport: Rename from common.
3405 * acinclude.m4: Change common to gdbsupport.
3406 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3407 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3408 gdbsupport.
3409 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3410 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3411 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3412 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3413 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3414 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3415 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3416 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3417 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3418 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3419 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3420 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3421 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3422 coff-pe-read.c, command.h, compile/compile-c-support.c,
3423 compile/compile-c.h, compile/compile-cplus-symbols.c,
3424 compile/compile-cplus-types.c, compile/compile-cplus.h,
3425 compile/compile-loc2c.c, compile/compile.c, completer.c,
3426 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3427 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3428 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3429 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3430 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3431 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3432 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3433 features/aarch64-core.c, features/aarch64-fpu.c,
3434 features/aarch64-pauth.c, features/aarch64-sve.c,
3435 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3436 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3437 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3438 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3439 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3440 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3441 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3442 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3443 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3444 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3445 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3446 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3447 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3448 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3449 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3450 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3451 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3452 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3453 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3454 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3455 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3456 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3457 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3458 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3459 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3460 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3461 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3462 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3463 minsyms.c, mips-linux-tdep.c, namespace.h,
3464 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3465 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3466 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3467 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3468 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3469 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3470 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3471 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3472 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3473 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3474 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3475 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3476 procfs.c, producer.c, progspace.h, psymtab.h,
3477 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3478 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3479 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3480 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3481 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3482 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3483 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3484 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3485 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3486 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3487 target-memory.c, target.c, target.h, target/waitstatus.c,
3488 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3489 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3490 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3491 unittests/array-view-selftests.c,
3492 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3493 unittests/common-utils-selftests.c,
3494 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3495 unittests/format_pieces-selftests.c,
3496 unittests/function-view-selftests.c,
3497 unittests/lookup_name_info-selftests.c,
3498 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3499 unittests/mkdir-recursive-selftests.c,
3500 unittests/observable-selftests.c,
3501 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3502 unittests/parse-connection-spec-selftests.c,
3503 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3504 unittests/scoped_fd-selftests.c,
3505 unittests/scoped_mmap-selftests.c,
3506 unittests/scoped_restore-selftests.c,
3507 unittests/string_view-selftests.c, unittests/style-selftests.c,
3508 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3509 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3510 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3511 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3512 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3513 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3514
5b0e2db4
AB
35152019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3516
3517 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3518 bool value.
3519 (decode_digits_ordinary): Set explicit_line field in sal.
3520 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3521 symtab_and_line that was set on an explicit line number in
3522 assembler code. Do always update the recorded symtab and line if
3523 we do skip the prologue.
3524
0ba852ab
AB
35252019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3526
3527 * breakpoint.c (set_breakpoint_location_function): Remove
3528 explicit_loc parameter.
3529 (momentary_breakpoint_from_master): Update call to
3530 set_breakpoint_location_function.
3531 (add_location_to_breakpoint): Likewise.
3532
b3a7d171
AB
35332019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3534
3535 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3536 required features based on default bfd type when no specific bfd
3537 is present.
3538
1f6f6e21
PW
35392019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3540
3541 * NEWS: Mention that GDB printf and eval commands can now print
3542 C-style and Ada-style convenience var strings without
3543 calling the inferior.
3544 * printcmd.c (printf_c_string): Locally print GDB internal var
3545 instead of transiting via the inferior.
3546 (printf_wide_c_string): Likewise.
3547
35482019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
3549
3550 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3551
0598af48
TT
35522019-07-04 Tom Tromey <tom@tromey.com>
3553
3554 PR tui/24724:
3555 * tui/tui-winsource.c (tui_clear_source_content): Update.
3556 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3557 (tui_update_breakpoint_info): Update.
3558 (tui_set_exec_info_content): Update.
3559 * tui/tui-source.c (tui_set_source_content_nil): Update.
3560 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3561 has_break.
3562 * tui/tui-data.h (enum tui_bp_flag): New.
3563 (tui_bp_flags): New enum flags type.
3564 (struct tui_source_element) <break_mode>: Change type. Rename
3565 from has_break.
3566 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3567 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3568 constants.
3569 * tui/tui-winsource.h: Fix comment.
3570
350fab54
AH
35712019-07-04 Alan Hayward <alan.hayward@arm.com>
3572
3573 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3574 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3575 (store_fpregs_to_thread)
3576 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3577 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3578 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3579 (IWMMXT_REGS_SIZE): Add define.
3580 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3581 (fetch_vfp_regs, store_vfp_regs)
3582 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3583 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3584
f0452268
AH
35852019-07-04 Alan Hayward <alan.hayward@arm.com>
3586
3587 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3588 defines.
3589 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3590 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3591 (ARM_INT_REGISTER_SIZE): ...to this.
3592 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3593 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3594 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3595 (arm_linux_collect_gregset, supply_nwfpe_register)
3596 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3597 defines.
3598 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3599 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3600 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3601 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3602 (arm_return_in_memory, arm_store_return_value)
3603 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3604 (arm_record_ld_st_multiple): Likewise.
3605 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3606 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3607
e935475c
AH
36082019-07-04 Alan Hayward <alan.hayward@arm.com>
3609
3610 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3611 AARCH64_DISPLACED_MODIFIED_INSNS.
3612 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3613 (aarch64_displaced_step_copy_insn): Likewise.
3614 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3615 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3616 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3617 ARM_DISPLACED_MODIFIED_INSNS.
3618 * arm-tdep.c (arm_gdbarch_init): Likewise.
3619 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3620 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3621 (struct arm_displaced_step_closure): Use
3622 ARM_DISPLACED_MODIFIED_INSNS.
3623
df0bb381
AH
36242019-07-04 Alan Hayward <alan.hayward@arm.com>
3625
3626 * features/Makefile: Remove unused xml files.
3627 * features/aarch64.xml: Remove.
3628 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3629 * features/i386/amd64-avx-avx512.xml: Remove.
3630 * features/i386/amd64-avx-linux.xml: Remove.
3631 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3632 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3633 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3634 * features/i386/amd64-avx-mpx.xml: Remove.
3635 * features/i386/amd64-avx.xml: Remove.
3636 * features/i386/amd64-linux.xml: Remove.
3637 * features/i386/amd64-mpx-linux.xml: Remove.
3638 * features/i386/amd64-mpx.xml: Remove.
3639 * features/i386/amd64.xml: Remove.
3640 * features/i386/i386-avx-avx512-linux.xml: Remove.
3641 * features/i386/i386-avx-avx512.xml: Remove.
3642 * features/i386/i386-avx-linux.xml: Remove.
3643 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3644 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3645 * features/i386/i386-avx-mpx-linux.xml: Remove.
3646 * features/i386/i386-avx-mpx.xml: Remove.
3647 * features/i386/i386-avx.xml: Remove.
3648 * features/i386/i386-linux.xml: Remove.
3649 * features/i386/i386-mmx-linux.xml: Remove.
3650 * features/i386/i386-mmx.xml: Remove.
3651 * features/i386/i386-mpx-linux.xml: Remove.
3652 * features/i386/i386-mpx.xml: Remove.
3653 * features/i386/i386.xml: Remove.
3654 * features/i386/x32-avx-avx512-linux.xml: Remove.
3655 * features/i386/x32-avx-linux.xml: Remove.
3656 * features/i386/x32-linux.xml: Remove.
3657
edd6266a
AH
36582019-07-04 Alan Hayward <alan.hayward@arm.com>
3659
3660 * regformats/aarch64.dat: Remove.
3661 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3662 * regformats/i386/amd64-avx-linux.dat: Remove.
3663 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3664 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3665 * regformats/i386/amd64-linux.dat: Remove.
3666 * regformats/i386/amd64-mpx-linux.dat: Remove.
3667 * regformats/i386/amd64.dat: Remove.
3668 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3669 * regformats/i386/i386-avx-linux.dat: Remove.
3670 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3671 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3672 * regformats/i386/i386-linux.dat: Remove.
3673 * regformats/i386/i386-mmx-linux.dat: Remove.
3674 * regformats/i386/i386-mpx-linux.dat: Remove.
3675 * regformats/i386/i386.dat: Remove.
3676 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3677 * regformats/i386/x32-avx-linux.dat: Remove.
3678 * regformats/i386/x32-linux.dat: Remove.
3679
2b40fda7
AH
36802019-07-04 Alan Hayward <alan.hayward@arm.com>
3681
3682 * aarch64-tdep.c: Remove xml self tests.
3683 * amd64-linux-tdep.c: Likewise.
3684 * amd64-tdep.c: Likewise.
3685 * i386-linux-tdep.c: Likewise.
3686 * i386-tdep.c: Likewise.
3687
5f4ba3e7
PA
36882019-07-03 Pedro Alves <palves@redhat.com>
3689
3690 PR cli/24732
3691 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3692 (pipe_cmd_option_defs): New.
3693 (make_pipe_cmd_options_def_group): New.
3694 (pipe_command): Use gdb::option::process_options.
3695 (pipe_command_completer): New function.
3696 (_initialize_cli_cmds): Install completer for "pipe" command.
3697
3d9be6f5
PA
36982019-07-03 Pedro Alves <palves@redhat.com>
3699
3700 * cli/cli-option.c (union option_value) <string>: New field.
3701 (struct option_def_and_value): Add ctor, move ctor, dtor and
3702 use DISABLE_COPY_AND_ASSIGN.
3703 (option_def_and_value::clear_value): New.
3704 (parse_option, save_option_value_in_ctx, get_val_type_str)
3705 (add_setshow_cmds_for_options): Handle var_string.
3706 * cli-option.h (union option_def::var_address) <string>: New
3707 field.
3708 (struct string_option_def): New.
3709 * maint-test-options.c (struct test_options_opts): Add default
3710 ctor and use DISABLE_COPY_AND_ASSIGN.
3711 <string_opt>: New field.
3712 (test_options_opts::~test_options_opts): New.
3713 (test_options_opts::dump): Also dump "-string".
3714 (test_options_option_defs): Install "string.
3715
41fc454c
PA
37162019-07-03 Pedro Alves <palves@redhat.com>
3717
3718 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3719 option_value with a null enumeration.
3720 (complete_options): Save the option values in the context.
3721 (save_option_value_in_ctx): New, factored out from ...
3722 (process_options): ... here.
3723 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3724 of the function.
3725 * maint-test-options.c (test_options_opts::dump): New, factored
3726 out from ...
3727 (maintenance_test_options_command_mode): ... here.
3728 (maintenance_test_options_command_completion_result): Delete.
3729 (maintenance_test_options_command_completion_text): Update
3730 comment.
3731 (maintenance_show_test_options_completion_result): Change
3732 prototype. Just print
3733 maintenance_test_options_command_completion_text.
3734 (save_completion_result): New.
3735 (maintenance_test_options_completer_mode): Pass options context to
3736 complete_options, and then save a dump.
3737 (_initialize_maint_test_options): Use add_cmd to install "maint
3738 show test-options-completion-result".
3739
fdbc9870
PA
37402019-07-03 Pedro Alves <palves@redhat.com>
3741
3742 * NEWS (New commands): Mention "with" and "maint with".
3743 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3744 (with_command, with_command_completer): New.
3745 (pipe_command): Adjust to new repeat_previous
3746 interface.
3747 (_initialize_cli_cmds): Install the "with" command and its "w"
3748 alias.
3749 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3750 declarations.
3751 * cli/cli-setshow.c (parse_cli_var_uinteger)
3752 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3753 argument strings for all var_types.
3754 (get_setshow_command_value_string): New, factored out from ...
3755 (do_show_command): ... this.
3756 * cli/cli-setshow.h: Include <string>.
3757 (get_setshow_command_value_string): Declare.
3758 * command.h (repeat_previous): Now returns const char *. Adjust
3759 comment.
3760 * maint.c: Include "cli/cli-cmds.h".
3761 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3762 (_initialize_maint_cmds): Register the "maintenance with" command.
3763 * top.c (repeat_previous): Move bits from pipe_command here:
3764 Return the saved command line, if any; error out if there's no
3765 command to relaunch.
3766
c6ac8931
PA
37672019-07-03 Pedro Alves <palves@redhat.com>
3768
3769 * NEWS (New commands): Mention "maint set/show test-settings"
3770 instead of "maint test-settings".
3771 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3772 (maintenance_test_settings_set_list): Rename to ...
3773 (maintenance_set_test_settings_list): ... this.
3774 (maintenance_test_settings_show_list): Rename to ...
3775 (maintenance_show_test_settings_list): ... this.
3776 (maintenance_test_settings_cmd): Delete.
3777 (maintenance_test_settings_set_cmd): ...
3778 (maintenance_set_test_settings_cmd): ... this.
3779 (maintenance_test_settings_show_cmd): ...
3780 (maintenance_show_test_settings_cmd): ... this.
3781 (maintenance_test_settings_show_value_cmd):
3782 (maintenance_show_test_settings_value_cmd): ... this.
3783 (_initialize_maint_test_settings): No longer install the "maint
3784 test-settings" prefix command. Rename "maint test-settings set"
3785 to "maint set test-settings", and "maint test-settings show" to
3786 "maint show test-settings". Adjust all subcommands.
3787
d1fcf2fd
PA
37882019-07-03 Pedro Alves <palves@redhat.com>
3789
3790 * maint-test-settings.c: Fix file's intro comment. Replace all
3791 references to "test-options" with references to "test-settings",
3792 in comments.
3793
970f9d09
PA
37942019-07-03 Pedro Alves <palves@redhat.com>
3795
3796 * maint-test-settings.c (maintenance_test_settings_xxx)
3797 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3798 New.
3799 (maintenance_test_settings_enums): Use them.
3800 (maintenance_test_settings_enum): Default to
3801 maintenance_test_settings_xxx.
3802 (_initialize_maint_test_settings): Initialize
3803 MAINTENANCE_TEST_SETTINGS_FILENAME.
3804
f3869b1a
SM
38052019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3806
3807 * breakpoint.h (remove_breakpoints_inf): Change return type to
3808 void, move function documentation here.
3809 * breakpoint.c (remove_breakpoints_inf): Change return type to
3810 void, move function documentation to header.
3811
54d66006
PA
38122019-07-02 Pedro Alves <palves@redhat.com>
3813
3814 * NEWS (Completion improvements): Mention "info threads".
3815 * thread.c (struct info_threads_opts, info_threads_option_defs)
3816 (make_info_threads_options_def_group): New.
3817 (info_threads_command): Use gdb::option::process_options.
3818 (info_threads_command_completer): New.
3819 (_initialize_thread): Use gdb::option::build_help to build the
3820 help text for "info threads".
3821
854f6088
SM
38222019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3823
3824 * defs.h (generic_load): Move from here...
3825 * symfile.h (generic_load): ... to here. Rename name parameter
3826 to args.
3827 * symfile.c (generic_load): Add comment.
3828
54ee4252
TT
38292019-07-01 Tom Tromey <tromey@adacore.com>
3830
3831 * dwarf2read.c
3832 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3833 declaration of without_params. Fix formatting.
3834
65392b3e
TT
38352019-07-01 Tom Tromey <tromey@adacore.com>
3836
3837 * ada-exp.y (find_primitive_type): Update.
3838 * ada-lang.h (ada_lookup_symbol): Update.
3839 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3840 parameter.
3841 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3842
7d7571f0
SDJ
38432019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3844
3845 PR breakpoints/24541
3846 * gdbarch.c: Regenerate.
3847 * gdbarch.h: Regenerate.
3848 * gdbarch.sh: Add 'stap_adjust_register'.
3849 * i386-tdep.c: Include '<unordered_set>'.
3850 (i386_stap_adjust_register): New function.
3851 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3852 * stap-probe.c (stap_parse_register_operand): Call
3853 'gdbarch_stap_adjust_register'.
3854
5af5392a
SDJ
38552019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3856
3857 PR python/24742
3858 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3859 * python/python.c (do_start_initialization): Use 'xmalloc'
3860 instead of 'PyMem_Malloc'.
3861
10d06d82
TT
38622019-06-28 Tom Tromey <tromey@adacore.com>
3863
3864 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3865 for Ada.
3866
1b7f24cd
TT
38672019-06-27 Tom Tromey <tromey@adacore.com>
3868
3869 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3870 objfile_key.
3871 (arm_find_mapping_symbol, arm_record_special_symbol)
3872 (_initialize_arm_tdep): Update.
3873 (arm_objfile_data_free): Remove.
3874
3d507ff2
TT
38752019-06-27 Tom Tromey <tromey@adacore.com>
3876
3877 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3878 to cp_print_static_field.
3879
762c164d
TT
38802019-06-26 Tom Tromey <tromey@adacore.com>
3881
3882 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3883 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3884 declare.
3885
aa2f9bcf
AH
38862019-06-26 Alan Hayward <alan.hayward@arm.com>
3887
3888 * features/aarch64-core.c (create_feature_aarch64_core):
3889 Regenerate.
3890 * features/aarch64-core.xml: Add cpsr flags.
3891
3426ae57
AH
38922019-06-26 Alan Hayward <alan.hayward@arm.com>
3893
3894 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3895 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3896
4838e44c
SM
38972019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3898
3899 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3900 field.
3901 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3902 use.
3903 (arm_record_special_symbol): Don't insert new symbol in sorted
3904 position, push it at the end.
3905
54cc7474
SM
39062019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3907
3908 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3909 (arm_mapping_symbol_s): Remove.
3910 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3911 (arm_mapping_symbol_vec): New typedef.
3912 (struct arm_per_objfile): Add constructor.
3913 <section_maps>: Change type to
3914 std::unique_ptr<arm_mapping_symbol_vec[]>.
3915 (arm_compare_mapping_symbols): Remove.
3916 (arm_find_mapping_symbol): Adjust to section_maps type change.
3917 (arm_objfile_data_free): Call delete on arm_per_objfile.
3918 (arm_record_special_symbol): Adjust to section_maps type change.
3919 Allocate arm_per_objfile with new.
3920
b65b566c
PW
39212019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3922
3923 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3924 with the command prefix.
3925
c2fc64f5
TT
39262019-06-25 Tom Tromey <tom@tromey.com>
3927
3928 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3929 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3930
fb54fa76
TT
39312019-06-25 Tom Tromey <tom@tromey.com>
3932
3933 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3934 type.
3935 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3936 protected.
3937
f7952c57
TT
39382019-06-25 Tom Tromey <tom@tromey.com>
3939
3940 * tui/tui-winsource.c
3941 (tui_source_window_base::set_is_exec_point_at): Add check against
3942 LOA_ADDRESS.
3943
17568d78
TT
39442019-06-25 Tom Tromey <tom@tromey.com>
3945
3946 * tui/tui-source.c (tui_set_source_content): Don't check before
3947 xfree.
3948 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3949
53e7cdba
TT
39502019-06-25 Tom Tromey <tom@tromey.com>
3951
3952 * tui/tui-winsource.h (tui_update_source_window_as_is)
3953 (tui_alloc_source_buffer, tui_line_is_displayed)
3954 (tui_addr_is_displayed): Change type of win_info.
3955 * tui/tui-winsource.c (tui_update_source_window_as_is)
3956 (tui_clear_source_content, tui_show_source_line)
3957 (tui_show_source_content, tui_source_window_base::refill)
3958 (tui_source_window_base::set_is_exec_point_at)
3959 (tui_source_window_base::set_is_exec_point_at)
3960 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3961 (tui_alloc_source_buffer, tui_line_is_displayed)
3962 (tui_addr_is_displayed): Change type of win_info. Update.
3963 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3964 (tui_source_window_base::do_make_visible_with_new_height):
3965 Update.
3966 * tui/tui-source.c (tui_set_source_content)
3967 (tui_set_source_content_nil)
3968 (tui_source_window::do_scroll_vertical): Update.
3969 * tui/tui-layout.c (show_layout): Update.
3970 * tui/tui-disasm.c (tui_set_disassem_content)
3971 (tui_disasm_window::do_scroll_vertical): Update.
3972 * tui/tui-data.h (tui_win_content): Remove.
3973 (struct tui_gen_win_info) <content, content_size>: Remove.
3974 (struct tui_source_element): Add initializers and destructor.
3975 (union tui_which_element, struct tui_win_element): Remove.
3976 (struct tui_source_window_base) <content>: New field.
3977 (struct tui_data_window): Remove destructor.
3978 (tui_alloc_content, tui_free_win_content)
3979 (tui_free_all_source_wins_content): Don't declare.
3980 * tui/tui-data.c (tui_initialize_static_data): Update.
3981 (init_content_element, tui_alloc_content): Remove.
3982 (~tui_gen_win_info): Update.
3983 (~tui_data_window, tui_free_all_source_wins_content)
3984 (tui_free_win_content, free_content, free_content_elements):
3985 Remove.
3986
7908abbf
TT
39872019-06-25 Tom Tromey <tom@tromey.com>
3988
3989 * tui/tui-winsource.h (tui_clear_source_content)
3990 (tui_erase_source_content, tui_show_source_content): Change type
3991 of win_info.
3992 * tui/tui-winsource.c (tui_clear_source_content)
3993 (tui_erase_source_content, tui_show_source_content): Change type
3994 of win_info.
3995 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3996 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3997 win_info.
3998 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3999 win_info.
4000 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4001
02c28df0
TT
40022019-06-25 Tom Tromey <tom@tromey.com>
4003
4004 * tui/tui-winsource.c (tui_clear_source_content)
4005 (tui_source_window_base::set_is_exec_point_at): Update.
4006 * tui/tui-source.c (tui_set_source_content_nil): Update.
4007 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4008 a bool.
4009 * tui/tui-data.c (init_content_element): Update.
4010
6658b1bf
TT
40112019-06-25 Tom Tromey <tom@tromey.com>
4012
4013 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4014 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4015 * tui/tui-layout.c (init_and_make_win): Update.
4016 * tui/tui.h (enum tui_win_type): Update.
4017 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4018 tui_win_is_auxillary.
4019 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4020 tui_win_is_auxillary.
4021
21e1c91e
TT
40222019-06-25 Tom Tromey <tom@tromey.com>
4023
4024 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4025 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4026 (tui_delete_data_content_windows, tui_display_all_data)
4027 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4028 Update.
4029 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4030 * tui/tui-regs.c (tui_last_regs_line_no)
4031 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4032 (tui_show_registers): Update.
4033 (tui_show_register_group): Return void. Update.
4034 (tui_display_registers_from, tui_display_reg_element_at_line)
4035 (tui_display_registers_from_line, tui_check_register_values):
4036 Update.
4037 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4038 member.
4039 (struct tui_data_window) <regs_content>: Now a std::vector.
4040 <regs_content_count>: Remove.
4041 (tui_add_content_elements, tui_free_data_content): Don't declare.
4042 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4043 (init_content_element): Remove DATA_WIN case. Add assert.
4044 (tui_add_content_elements): Remove.
4045 (tui_data_window): Update.
4046 (tui_free_data_content): Remove.
4047 (free_content_elements): Remove DATA_WIN case.
4048
115ac53b
TT
40492019-06-25 Tom Tromey <tom@tromey.com>
4050
4051 * tui/tui-data.c (tui_data_item_window): Update.
4052 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4053 * tui/tui-windata.c (tui_display_all_data)
4054 (tui_display_data_from_line): Update.
4055 (tui_check_data_values): Remove.
4056 * tui/tui-regs.c (tui_show_register_group)
4057 (tui_display_reg_element_at_line): Update.
4058 * tui/tui-hooks.c (tui_register_changed)
4059 (tui_refresh_frame_and_register_information): Call
4060 tui_check_register_values.
4061 * tui/tui-data.h (struct tui_data_window) <data_content,
4062 data_content_count, data_type>: Remove.
4063 (enum tui_data_type): Remove.
4064
4065 * tui/tui-data.c (tui_data_window::clear_detail)
4066 (~tui_data_window): Update.
4067
eaf9738b
TT
40682019-06-25 Tom Tromey <tom@tromey.com>
4069
4070 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4071 declare.
4072 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4073 Rename from tui_first_data_item_displayed. Update.
4074 (tui_data_window::refresh_all)
4075 (tui_data_window::do_scroll_vertical): Update.
4076 * tui/tui-data.h (struct tui_data_window)
4077 <first_data_item_displayed>: Declare new method.
4078
31ca4723
TT
40792019-06-25 Tom Tromey <tom@tromey.com>
4080
4081 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4082 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4083 contents...
4084 (tui_initialize_static_data): ...here.
4085
41bcff7f
TT
40862019-06-25 Tom Tromey <tom@tromey.com>
4087
4088 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4089 (tui_display_registers_from, tui_check_register_values): Update.
4090 (tui_display_register): Remove win_info parameter; update.
4091 (tui_get_register): Change type of parameters.
4092 * tui/tui-data.h (struct tui_data_element): Remove.
4093 (union tui_which_element) <data>: Remove.
4094 <data_window>: Change type.
4095 (struct tui_data_item_window): New.
4096 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4097 case. Add assert.
4098 (~tui_data_item_window): New destructor.
4099 (free_content_elements): Remove DATA_ITEM_WIN case.
4100
d2802c33
TT
41012019-06-25 Tom Tromey <tom@tromey.com>
4102
4103 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4104 Remove.
4105
dd835f8b
TT
41062019-06-25 Tom Tromey <tom@tromey.com>
4107
4108 * tui/tui-data.h (struct tui_command_element): Remove.
4109 (union tui_which_element) <command>: Remove.
4110 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4111 assert.
4112 (free_content_elements): Remove CMD_WIN case.
4113
bd7db367
TT
41142019-06-25 Tom Tromey <tom@tromey.com>
4115
4116 * tui/tui-layout.c (tui_set_layout): Update.
4117 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4118 * tui/tui-data.c (layout_def): Update.
4119
3add462f
TT
41202019-06-25 Tom Tromey <tom@tromey.com>
4121
4122 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4123 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4124 (tui_source_window_base::set_new_height): Update.
4125 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4126 Update.
4127 (tui_set_locator_fullname, tui_set_locator_info)
4128 (tui_show_frame_info): Update.
4129 * tui/tui-source.c (tui_set_source_content)
4130 (tui_source_is_displayed): Update.
4131 * tui/tui-layout.c (show_source_disasm_command, show_data)
4132 (show_source_or_disasm_and_command): Update.
4133 * tui/tui-disasm.c (tui_set_disassem_content)
4134 (tui_get_begin_asm_address): Update.
4135 * tui/tui-data.h (struct tui_locator_element): Remove.
4136 (union tui_which_element) <locator>: Remove.
4137 (struct tui_locator_window): New.
4138 (tui_locator_win_info_ptr): Change return type.
4139 * tui/tui-data.c (_locator): Change type.
4140 (tui_locator_win_info_ptr): Change return type.
4141 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4142 (tui_alloc_content): Add assert.
4143
489e9d8b
TT
41442019-06-25 Tom Tromey <tom@tromey.com>
4145
4146 * tui/tui-winsource.c
4147 (tui_exec_info_window::maybe_allocate_content): New method.
4148 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4149 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4150 (make_source_or_disasm_window): Add cast.
4151 * tui/tui-data.h (union tui_which_element) <simple_string>:
4152 Remove.
4153 (struct tui_source_info): New.
4154 (struct tui_source_window_base) <execution_info>: Change type.
4155 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4156 case, and add assert.
4157 (tui_alloc_content): Add assert.
4158
c3fabb7d
TT
41592019-06-25 Tom Tromey <tom@tromey.com>
4160
4161 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4162 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4163 * tui/tui-data.c (tui_alloc_win_info): Remove.
4164
bbc228ee
TT
41652019-06-25 Tom Tromey <tom@tromey.com>
4166
4167 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4168 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4169 can_highlight.
4170
5fcee43a
TT
41712019-06-25 Tom Tromey <tom@tromey.com>
4172
4173 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4174 make_visible_with_new_height method.
4175 (tui_win_info::make_visible_with_new_height): New method.
4176 (tui_source_window_base::do_make_visible_with_new_height)
4177 (tui_data_window::do_make_visible_with_new_height)
4178 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4179 (make_visible_with_new_height): Remove.
4180 (tui_resize_all, tui_adjust_win_heights): Use
4181 make_visible_with_new_height method.
4182 * tui/tui-data.h (struct tui_win_info)
4183 <do_make_visible_with_new_height, make_visible_with_new_height>:
4184 New methods.
4185 (struct tui_source_window_base, struct tui_data_window)
4186 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4187 methods.
4188
d83f1fe6
TT
41892019-06-25 Tom Tromey <tom@tromey.com>
4190
4191 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4192 method.
4193 (update_tab_width): Call update_tab_width method.
4194 * tui/tui-data.h (struct tui_win_info)
4195 (struct tui_source_window_base) <update_tab_width>: New methods.
4196
17374de4
TT
41972019-06-25 Tom Tromey <tom@tromey.com>
4198
4199 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4200 parameter.
4201 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4202 parameter.
4203 (tui_gen_win_info::make_visible): Update.
4204 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4205 parameter.
4206 * tui/tui-data.h (enum tui_box): New enum.
4207 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4208
f936bca2
TT
42092019-06-25 Tom Tromey <tom@tromey.com>
4210
4211 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4212 init_and_make_win for EXEC_INFO_WIN.
4213 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4214 longer inline.
4215 (struct tui_win_info) <~tui_win_info>: Inline.
4216 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4217 Don't declare.
4218 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4219 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4220 Remove.
4221 (tui_initialize_static_data): Update.
4222 (~tui_gen_win_info): Handle more cleanup here.
4223 (~tui_source_window_base): Delete "execution_info".
4224 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4225
d6ba6a11
TT
42262019-06-25 Tom Tromey <tom@tromey.com>
4227
4228 * tui/tui-layout.c (make_command_window): Don't set
4229 can_highlight.
4230 (show_source_disasm_command): Call the reset method.
4231 (show_data): Don't set can_highlight. Call the reset method.
4232 (tui_gen_win_info::reset): Rename from init_gen_win_info
4233 (init_and_make_win): Simplify. Return tui_gen_win_info.
4234 (show_source_or_disasm_and_command): Call the reset method.
4235 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4236 (struct tui_cmd_window): Set can_highlight.
4237
48a3bd16
TT
42382019-06-25 Tom Tromey <tom@tromey.com>
4239
4240 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4241 from make_visible.
4242 (tui_make_visible, tui_make_invisible): Rewrite.
4243 (tui_win_info::make_visible): Remove.
4244 (tui_source_window_base::make_visible): Update.
4245 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4246 method. Moved from...
4247 (struct tui_win_info) <make_visible>: ...here.
4248
c3bd716f
TT
42492019-06-25 Tom Tromey <tom@tromey.com>
4250
4251 * tui/tui-winsource.c
4252 (tui_source_window_base::do_scroll_horizontal): Remove direction
4253 parameter.
4254 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4255 direction parameter.
4256 * tui/tui-win.c (tui_win_info::forward_scroll)
4257 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4258 (tui_win_info::right_scroll): Update.
4259 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4260 direction parameter.
4261 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4262 direction parameter.
4263 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4264 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4265 Remove direction parameter.
4266 (struct tui_source_window_base, struct tui_source_window)
4267 (struct tui_disasm_window, struct tui_data_window)
4268 (struct tui_cmd_window): Update.
4269
21c32dca
TT
42702019-06-25 Tom Tromey <tom@tromey.com>
4271
4272 * tui/tui-winsource.h (tui_set_exec_info_content)
4273 (tui_show_exec_info_content, tui_erase_exec_info_content)
4274 (tui_clear_exec_info_content, tui_update_exec_info): Change
4275 argument to tui_source_window_base.
4276 * tui/tui-winsource.c (tui_set_exec_info_content)
4277 (tui_show_exec_info_content, tui_erase_exec_info_content)
4278 (tui_clear_exec_info_content, tui_update_exec_info): Change
4279 argument to tui_source_window_base.
4280
73fbdc65
TT
42812019-06-25 Tom Tromey <tom@tromey.com>
4282
4283 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4284 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4285
33325343
TT
42862019-06-25 Tom Tromey <tom@tromey.com>
4287
4288 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4289 check.
4290
29d2c474
TT
42912019-06-25 Tom Tromey <tom@tromey.com>
4292
4293 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4294 type to void.
4295 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4296 type to void.
4297 * tui/tui-source.c (tui_set_source_content): Update.
4298 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4299
152f3f4b
TT
43002019-06-25 Tom Tromey <tom@tromey.com>
4301
4302 * tui/tui-win.c (window_name_completer, tui_set_focus)
4303 (tui_all_windows_info): Use name method.
4304 * tui/tui-data.h (struct tui_gen_win_info)
4305 (struct tui_source_window, struct tui_disasm_window)
4306 (struct tui_data_window, struct tui_cmd_window) <name>: New
4307 method.
4308 (tui_win_name): Don't declare.
4309 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4310 (tui_win_name): Remove.
4311
be4da588
TT
43122019-06-25 Tom Tromey <tom@tromey.com>
4313
4314 * tui/tui-winsource.h (tui_update_source_window)
4315 (tui_update_source_window_as_is): Change parameter type.
4316 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4317 to be a tui_source_window_base.
4318 (tui_update_source_window_as_is): Likewise.
4319 * tui/tui-win.c (make_visible_with_new_height): Update.
4320
5b81daba
TT
43212019-06-25 Tom Tromey <tom@tromey.com>
4322
4323 * tui/tui-winsource.c (tui_erase_source_content)
4324 (tui_show_source_content, tui_show_exec_info_content)
4325 (tui_erase_exec_info_content): Use refresh_window method.
4326 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4327 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4328 from tui_refresh_win.
4329 (tui_data_window::refresh_window): New method.
4330 (tui_win_info::refresh, tui_source_window_base::refresh)
4331 (tui_refresh_all): Use refresh_window method.
4332 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4333 method.
4334 * tui/tui-regs.c (tui_display_register): Call refresh_window
4335 method.
4336 * tui/tui-layout.c (show_source_disasm_command)
4337 (show_source_or_disasm_and_command): Call refresh_window method.
4338 * tui/tui-data.h (struct tui_gen_win_info)
4339 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4340 New method.
4341
cb2ce893
TT
43422019-06-25 Tom Tromey <tom@tromey.com>
4343
4344 * tui/tui.c (tui_rl_other_window, tui_enable)
4345 (tui_is_window_visible, tui_get_command_dimension): Update.
4346 * tui/tui-winsource.c (tui_update_source_window_as_is)
4347 (tui_clear_source_content, tui_erase_source_content)
4348 (tui_show_source_line, tui_source_window_base::refill)
4349 (tui_source_window_base::do_scroll_horizontal)
4350 (tui_source_window_base::set_is_exec_point_at)
4351 (tui_update_breakpoint_info, tui_set_exec_info_content)
4352 (tui_alloc_source_buffer, tui_line_is_displayed)
4353 (tui_addr_is_displayed): Update.
4354 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4355 (tui_check_and_display_highlight_if_needed)
4356 (tui_win_info::make_visible, tui_win_info::refresh)
4357 (tui_refresh_all): Update.
4358 * tui/tui-windata.c (tui_first_data_item_displayed)
4359 (tui_delete_data_content_windows, tui_erase_data_content)
4360 (tui_display_all_data, tui_data_window::refresh_all)
4361 (tui_check_data_values): Update.
4362 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4363 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4364 (tui_win_info::backward_scroll, tui_refresh_all_win)
4365 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4366 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4367 (tui_source_window_base::set_new_height)
4368 (tui_data_window::set_new_height)
4369 (make_invisible_and_set_new_height)
4370 (make_visible_with_new_height, new_height_ok)
4371 (parse_scrolling_args): Update.
4372 * tui/tui-stack.c (tui_show_frame_info): Update.
4373 * tui/tui-source.c (tui_set_source_content)
4374 (tui_set_source_content_nil, tui_source_is_displayed)
4375 (tui_source_window::do_scroll_vertical): Update.
4376 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4377 (tui_display_registers_from, tui_display_reg_element_at_line)
4378 (tui_check_register_values, tui_reg_command): Update.
4379 * tui/tui-layout.c (tui_default_win_height)
4380 (show_source_disasm_command, show_data, init_and_make_win)
4381 (show_source_or_disasm_and_command): Update.
4382 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4383 (tui_redisplay_readline, tui_mld_flush)
4384 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4385 (tui_getc): Update.
4386 * tui/tui-disasm.c (tui_set_disassem_content)
4387 (tui_disasm_window::do_scroll_vertical): Update.
4388 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4389 Now virtual.
4390 (struct tui_win_info): Derive from tui_gen_win_info.
4391 <~tui_win_info>: Mark as override.
4392 <generic>: Remove member.
4393 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4394 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4395 (~tui_data_window, ~tui_win_info)
4396 (tui_free_all_source_wins_content): Update.
4397 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4398
ab313b35
TT
43992019-06-25 Tom Tromey <tom@tromey.com>
4400
4401 * tui/tui-layout.c (init_and_make_win): Use new.
4402 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4403 destructor, initializers.
4404 (tui_alloc_generic_win_info): Don't declare.
4405 * tui/tui-data.c (_locator): Add argument to constructor.
4406 (source_win, disasm_win): New globals.
4407 (exec_info): Remove.
4408 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4409 Update.
4410 (tui_alloc_generic_win_info): Remove.
4411 (init_content_element): Use new.
4412 (tui_win_info::tui_win_info): Update.
4413 (free_content_elements) <case DATA_WIN>: Use delete.
4414
dc2c33e4
TT
44152019-06-25 Tom Tromey <tom@tromey.com>
4416
4417 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4418 * tui/tui-windata.c (tui_first_data_item_displayed)
4419 (tui_delete_data_content_windows): Update.
4420 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4421 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4422 (tui_display_registers_from, tui_check_register_values): Update.
4423 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4424 pointer.
4425 * tui/tui-data.c (init_content_element): Update. Allocate the new
4426 window.
4427 (tui_free_data_content): Update.
4428 (free_content_elements) <case DATA_WIN>: Free the window.
4429
214a5cbe
TT
44302019-06-25 Tom Tromey <tom@tromey.com>
4431
4432 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4433 Update.
4434 * tui/tui-layout.c (make_command_window)
4435 (show_source_disasm_command, show_data, init_and_make_win)
4436 (show_source_or_disasm_and_command): Update.
4437 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4438 method.
4439 <can_highight, is_highlighted>: Now bool.
4440 (tui_set_win_highlight): Don't declare.
4441 * tui/tui-data.c (tui_set_win_highlight): Remove.
4442
8e2daf15
TT
44432019-06-25 Tom Tromey <tom@tromey.com>
4444
4445 * tui/tui-wingeneral.c (make_visible): Remove check of window
4446 type.
4447
8903bd8a
TT
44482019-06-25 Tom Tromey <tom@tromey.com>
4449
4450 * tui/tui-win.c (tui_win_info::max_height)
4451 (tui_cmd_window::max_height): New methods.
4452 (new_height_ok): Call max_height.
4453 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4454 <max_height>: New method.
4455
3f02ce1e
TT
44562019-06-25 Tom Tromey <tom@tromey.com>
4457
4458 * tui/tui-win.c (tui_source_window_base::set_new_height)
4459 (tui_data_window::set_new_height): New methods.
4460 (make_invisible_and_set_new_height): Call set_new_height method.
4461 * tui/tui-data.h (struct tui_win_info)
4462 (struct tui_source_window_base, struct tui_data_window)
4463 <set_new_height>: New method.
4464
1825f487
TT
44652019-06-25 Tom Tromey <tom@tromey.com>
4466
4467 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4468 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4469 tui_refresh_data_win.
4470 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4471 method.
4472 (tui_refresh_all_win): Call the refresh_all method.
4473 (tui_set_focus): Likewise.
4474 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4475 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4476 Likewise.
4477
ad54d15b
TT
44782019-06-25 Tom Tromey <tom@tromey.com>
4479
4480 * tui/tui-winsource.h (tui_refill_source_window)
4481 (tui_set_is_exec_point_at): Don't declare.
4482 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4483 (tui_source_window_base::refill): Rename from
4484 tui_refill_source_window.
4485 (tui_source_window_base::do_scroll_horizontal): Update.
4486 (tui_source_window_base::set_is_exec_point_at): Rename from
4487 tui_set_is_exec_point_at.
4488 (tui_update_all_breakpoint_info): Update.
4489 * tui/tui-stack.c (tui_show_frame_info): Update.
4490 * tui/tui-layout.c (show_data): Add cast.
4491 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4492 * tui/tui-data.h (struct tui_source_window_base) <refill,
4493 set_is_exec_point_at>: New methods.
4494 (tui_source_windows, tui_add_to_source_windows): Update types.
4495 (tui_add_to_source_windows): Remove redundant declaration.
4496 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4497 (tui_source_windows): Change return type.
4498 (tui_clear_source_windows_detail): Update.
4499 (tui_add_to_source_windows): Change type of parameter.
4500 (tui_free_all_source_wins_content): Update.
4501
2042b506
TT
45022019-06-25 Tom Tromey <tom@tromey.com>
4503
4504 * tui/tui-wingeneral.c (tui_win_info::refresh)
4505 (tui_source_window_base::refresh): New methods.
4506 (tui_refresh_all): Call the refresh method.
4507 * tui/tui-data.h (struct tui_win_info)
4508 (struct tui_source_window_base) <refresh>: New method.
4509
56122977
TT
45102019-06-25 Tom Tromey <tom@tromey.com>
4511
4512 * tui/tui.h (tui_is_window_visible): Return bool.
4513 * tui/tui.c (tui_is_window_visible): Return bool.
4514 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4515 (tui_make_visible, tui_make_invisible)
4516 (tui_win_info::make_visible)
4517 (tui_source_window_base::make_visible, make_all_visible)
4518 (tui_make_all_visible, tui_make_all_invisible): Update.
4519 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4520 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4521 bool.
4522 (struct tui_win_info, struct tui_source_window_base)
4523 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4524 * tui/tui-data.c (tui_init_generic_part): Update.
4525
cda37efb
TT
45262019-06-25 Tom Tromey <tom@tromey.com>
4527
4528 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4529 (tui_source_window_base::make_visible): New methods.
4530 (make_all_visible): Make method call.
4531 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4532 (struct tui_source_window_base, struct tui_cmd_window): Override
4533 make_visible.
4534 (tui_win_is_source_type): Don't declare.
4535 * tui/tui-data.c (tui_win_is_source_type): Remove.
4536
6a0ee02c
TT
45372019-06-25 Tom Tromey <tom@tromey.com>
4538
4539 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4540 NULL check.
4541
63901aec
TT
45422019-06-25 Tom Tromey <tom@tromey.com>
4543
4544 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4545 Inline constructor. Add initializers for members.
4546 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4547 constructors; now inline in class.
4548
ceb13a13
TT
45492019-06-25 Tom Tromey <tom@tromey.com>
4550
4551 * tui/tui-regs.c (tui_show_registers): Update.
4552 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4553 bool.
4554 * tui/tui-data.c (tui_data_window::clear_detail)
4555 (tui_data_window): Update.
4556
238eb706
TT
45572019-06-25 Tom Tromey <tom@tromey.com>
4558
4559 * tui/tui-windata.c (tui_display_all_data)
4560 (tui_display_data_from_line, tui_display_data_from)
4561 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4562 Update.
4563 * tui/tui-regs.c (tui_last_regs_line_no)
4564 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4565 (tui_show_registers, tui_show_register_group)
4566 (tui_display_registers_from, tui_display_reg_element_at_line)
4567 (tui_display_registers_from_line, tui_check_register_values)
4568 (tui_reg_next, tui_reg_prev): Update.
4569 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4570 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4571 tui_data_window.
4572 (struct tui_win_info) <detail>: Remove. Add new fields from
4573 tui_data_info.
4574 (TUI_DATA_WIN): Add cast.
4575 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4576 (~tui_data_window): Simplify.
4577
81491aa0
TT
45782019-06-25 Tom Tromey <tom@tromey.com>
4579
4580 * tui/tui-layout.c (show_source_disasm_command)
4581 (show_source_or_disasm_and_command): Update.
4582 * tui/tui-io.c (update_cmdwin_start_line)
4583 (tui_redisplay_readline): Update.
4584 * tui/tui-data.h (struct tui_command_info): Remove.
4585 (struct tui_win_info) <detail>: Remove command_info member.
4586 (struct tui_data_window) <start_line>: New member, from
4587 tui_command_info.
4588 (TUI_CMD_WIN): Add casts.
4589
e6e41501
TT
45902019-06-25 Tom Tromey <tom@tromey.com>
4591
4592 * tui/tui-winsource.c (tui_update_source_window)
4593 (tui_refill_source_window)
4594 (tui_source_window_base::do_scroll_horizontal)
4595 (tui_update_breakpoint_info, tui_set_exec_info_content)
4596 (tui_show_exec_info_content, tui_erase_exec_info_content)
4597 (tui_clear_exec_info_content): Update.
4598 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4599 Update.
4600 * tui/tui-win.c (make_invisible_and_set_new_height)
4601 (make_visible_with_new_height): Update.
4602 * tui/tui-source.c (tui_set_source_content)
4603 (tui_show_symtab_source): Update.
4604 * tui/tui-layout.c (extract_display_start_addr)
4605 (show_source_disasm_command, show_data)
4606 (make_source_or_disasm_window)
4607 (show_source_or_disasm_and_command): Update.
4608 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4609 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4610 "gdbarch".
4611 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4612 to tui_source_window_base.
4613 (struct tui_win_info) <detail>: Remove source_info member.
4614 (struct tui_source_window_base) <has_locator>: Inline.
4615 Move contents from tui_source_info; rename has_locator member to
4616 m_has_locator.
4617 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4618 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4619 header file.
4620 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4621 Simplify.
4622 (tui_free_all_source_wins_content): Cast to
4623 tui_source_window_base.
4624
44f0e208
TT
46252019-06-25 Tom Tromey <tom@tromey.com>
4626
4627 * tui/tui-win.c (make_invisible_and_set_new_height)
4628 (make_visible_with_new_height): Call has_locator method.
4629 * tui/tui-layout.c (show_source_disasm_command, show_data)
4630 (show_source_or_disasm_and_command): Update for bool change.
4631 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4632 (tui_win_info) <has_locator>: New method.
4633 (struct tui_source_window_base) <has_locator>: New method.
4634 (tui_win_has_locator): Don't declare.
4635 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4636 from tui_win_has_locator.
4637 (tui_source_window_base): Use false, not FALSE.
4638
7778b912
TT
46392019-06-25 Tom Tromey <tom@tromey.com>
4640
4641 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4642 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4643 clear_detail method directly.
4644 (tui_clear_win_detail): Remove.
4645
f83d391c
TT
46462019-06-25 Tom Tromey <tom@tromey.com>
4647
4648 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4649 "this", not TUI_DISASM_WIN.
4650
13446e05
TT
46512019-06-25 Tom Tromey <tom@tromey.com>
4652
4653 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4654 declare.
4655 * tui/tui-winsource.c
4656 (tui_source_window_base::do_scroll_horizontal): Rename from
4657 tui_horizontal_source_scroll.
4658 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4659 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4660 from tui_vertical_data_scroll.
4661 * tui/tui-win.h (tui_scroll): Don't declare.
4662 * tui/tui-win.c (tui_win_info::forward_scroll)
4663 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4664 (tui_win_info::right_scroll): Rename and update.
4665 (tui_scroll_forward_command, tui_scroll_backward_command)
4666 (tui_scroll_left_command, tui_scroll_right_command): Update.
4667 (tui_scroll): Remove.
4668 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4669 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4670 from tui_vertical_source_scroll.
4671 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4672 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4673 from tui_vertical_disassem_scroll.
4674 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4675 do_scroll_horizontal>: New methods.
4676 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4677 Likewise.
4678 (struct tui_source_window_base): Add do_scroll_horizontal.
4679 (struct tui_source_window, struct tui_disasm_window): Add
4680 do_scroll_vertical.
4681 (struct tui_data_window, struct tui_cmd_window): Add
4682 do_scroll_horizontal and do_scroll_vertical.
4683 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4684
5cf82909
TT
46852019-06-25 Tom Tromey <tom@tromey.com>
4686
4687 * tui/tui-data.h (struct tui_source_window_base): New struct.
4688 (struct tui_source_window): Derive from tui_source_window_base.
4689 (struct tui_disasm_window): New struct.
4690 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4691 from tui_source_window::clear_detail.
4692 (tui_source_window_base): Rename from tui_source_window.
4693 (~tui_source_window_base): Rename from ~tui_source_window.
4694 (tui_alloc_win_info): Create a tui_disasm_window.
4695
ee1d42d6
TT
46962019-06-25 Tom Tromey <tom@tromey.com>
4697
4698 * tui/tui-data.h (struct tui_source_window)
4699 (struct tui_data_window): Declare destructors.
4700 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4701 destructors.
4702 (tui_win_info): Simplify.
4703
b4eb2452
TT
47042019-06-25 Tom Tromey <tom@tromey.com>
4705
4706 * tui/tui-winsource.c (tui_display_main)
4707 (tui_update_source_windows_with_addr)
4708 (tui_update_all_breakpoint_info): Update.
4709 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4710 (new_height_ok, parse_scrolling_args): Update.
4711 * tui/tui-stack.c (tui_show_frame_info): Update.
4712 * tui/tui-data.h (struct tui_list): Remove.
4713 (tui_source_windows): Return a reference to a std::vector.
4714 * tui/tui-data.c (source_windows): Now a std::vector.
4715 (tui_source_windows): Change return type.
4716 (tui_clear_source_windows): Rewrite.
4717 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4718 (tui_free_all_source_wins_content): Rewrite.
4719
8761a91b
TT
47202019-06-25 Tom Tromey <tom@tromey.com>
4721
4722 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4723 (struct tui_data_window, struct tui_cmd_window): Declare
4724 clear_detail method.
4725 * tui/tui-data.c (tui_source_window::clear_detail)
4726 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4727 methods.
4728 (tui_clear_win_detail): Simplify.
4729
0ed69eda
TT
47302019-06-25 Tom Tromey <tom@tromey.com>
4731
4732 * tui/tui-layout.c (make_source_window, make_disasm_window)
4733 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4734 Return the new window.
4735 (show_source_disasm_command, show_data)
4736 (show_source_or_disasm_and_command): Update.
4737
82432e10
TT
47382019-06-25 Tom Tromey <tom@tromey.com>
4739
4740 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4741 parameter. Return the new window.
4742 (show_source_disasm_command): Update and remove NULL check.
4743 (show_source_or_disasm_and_command): Update.
4744
ec328aa5
TT
47452019-06-25 Tom Tromey <tom@tromey.com>
4746
4747 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4748
33b906ab
TT
47492019-06-25 Tom Tromey <tom@tromey.com>
4750
4751 * tui/tui-data.h (struct tui_win_info): Make constructor
4752 protected. Make destructor virtual. Add initializers.
4753 (tui_source_window, tui_data_window, tui_cmd_window): New
4754 classes.
4755 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4756 constructor. Add "type" parameter.
4757 (tui_source_window, tui_data_window, tui_cmd_window): New
4758 constructors.
4759 (tui_alloc_win_info): Instantiate the appropriate subclass.
4760
e7e11af4
TT
47612019-06-25 Tom Tromey <tom@tromey.com>
4762
4763 * tui/tui-win.c (tui_resize_all): Use delete.
4764 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4765 destructor.
4766 (tui_free_window): Don't declare.
4767 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4768 Update.
4769
6792b55e
TT
47702019-06-25 Tom Tromey <tom@tromey.com>
4771
4772 * tui/tui-data.h (struct tui_win_info): Add constructor.
4773 * tui/tui-data.c (tui_alloc_win_info): Use new.
4774 (tui_free_window): Use delete.
4775
f95675e1
TT
47762019-06-22 Tom Tromey <tom@tromey.com>
4777
4778 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4779 declare.
4780 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4781
5bff081c
TT
47822019-06-22 Tom Tromey <tom@tromey.com>
4783
4784 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4785 declare.
4786 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4787
47e3f474
TV
47882019-06-22 Tom de Vries <tdevries@suse.de>
4789
4790 * dwarf2read.c (create_addrmap_from_aranges)
4791 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4792 instead of '%zu'.
4793
fd5866f6
SM
47942019-06-21 Simon Marchi <simon.marchi@efficios.com>
4795
4796 * dwarf2read.h (dwarf2_section_info_def): Remove.
4797 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4798 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4799 std::vector<dwarf2_section_info>.
4800 (struct dwo_file) <~dwo_file>: Remove.
4801 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4802 types field.
4803 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4804 (dwarf2_read_debug_names): Likewise.
4805 (create_debug_types_hash_table): Change parameter type to
4806 array_view, adjust code accordingly.
4807 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4808 (partial_die_info::fixup): Likewise.
4809 (determine_prefix): Likewise.
4810 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4811
fb1eb2f9
SM
48122019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4813
4814 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4815 gdb_bfd_ref_ptr.
4816 <~dwo_file>: Remove call to gdb_bfd_unref.
4817 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4818 gdb_bfd_ref_ptr::get.
4819
51ac9db5
SM
48202019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4821
4822 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4823 type to htab_up.
4824 * dwarf2read.c (struct dwo_file): Initialize fields.
4825 <~dwo_file>: New.
4826 (free_dwo_file): Remove, move content to ~dwo_file.
4827 (struct dwo_file_deleter): Remove.
4828 (dwo_file_up>: Remove custom deleter.
4829 (free_dwo_files): Remove.
4830 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4831 dwo_files.
4832 (process_skeletonless_type_units): Call unique_ptr::get.
4833 (allocate_dwo_file_hash_table): Add deleter to created hash
4834 table. Change return type to htab_up.
4835 (lookup_dwo_file_slot): Don't memset dwo_file, call
4836 unique_ptr::get.
4837 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4838 (create_dwo_unit_in_dwp_v2): Likewise.
4839 (open_and_init_dwo_file): Likewise.
4840 (free_dwo_file_from_slot): Remove.
4841
dc4ccb6f
SM
48422019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4843
4844 * dwarf2read.h (struct dwarf2_section_info) <readin,
4845 is_virtual>: Change type to bool.
4846 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4847 true instead of 1.
4848
e6a1c5cb
TT
48492019-06-19 Tom Tromey <tom@tromey.com>
4850
4851 * tui/tui-data.h (tui_init_content_element): Don't declare.
4852
6f6ffbeb
TT
48532019-06-19 Tom Tromey <tom@tromey.com>
4854
4855 * tui/tui-data.h (tui_init_win_info): Don't declare.
4856
f23f598e
TV
48572019-06-19 Tom de Vries <tdevries@suse.de>
4858
4859 * dwarf2read.h (abstract_to_concrete): Change type to
4860 std::unordered_map<sect_offset, std::vector<sect_offset>,
4861 gdb::hash_enum<sect_offset>>.
4862
680e1bee
TT
48632019-06-19 Tom Tromey <tromey@adacore.com>
4864
4865 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4866 EVAL_AVOID_SIDE_EFFECTS specially.
4867
dcf37923
TT
48682019-06-19 Tom Tromey <tromey@adacore.com>
4869
4870 * source-cache.c (highlighter): New global.
4871 (source_cache::get_source_lines): Create a highlighter on demand.
4872
494986d5
AB
48732019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4874
4875 * defs.h (deprecated_interactive_hook): Delete declaration.
4876 * interps.c (clear_interpreter_hooks): Remove use of
4877 deprecated_interactive_hook.
4878 * top.c (deprecated_interactive_hook): Delete definition.
4879 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4880
3360b6e7
TV
48812019-06-18 Tom de Vries <tdevries@suse.de>
4882
4883 PR gdb/24515
4884 * dwarf2read.h (abstract_to_concrete): Change type from
4885 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4886 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4887 * dwarf2read.c (read_variable): Update.
4888 (dwarf2_fetch_die_loc_sect_off): Update.
4889
310b3441
TV
48902019-06-17 Tom de Vries <tdevries@suse.de>
4891
4892 PR gdb/24617
4893 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4894 accessing parent[parent_len - 1].
4895
ba9777be
PP
48962019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4897
4898 PR gdb/24364
4899 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4900 call dtrace_process_dof with NULL dof.
4901
2b9f6e89
TV
49022019-06-16 Tom de Vries <tdevries@suse.de>
4903
4904 PR gdb/24445
4905 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4906
431b3ead
TT
49072019-06-16 Tom Tromey <tom@tromey.com>
4908
4909 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4910 (make_all_visible): Use address of member.
4911
d04b44a1
TT
49122019-06-16 Tom Tromey <tom@tromey.com>
4913
4914 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4915 (tui_free_window, free_content, free_content_elements): Remove
4916 unnecessary cast.
4917 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4918 cast.
4919 * tui/tui-regs.c (tui_show_register_group)
4920 (tui_display_registers_from, tui_display_reg_element_at_line):
4921 Remove unnecessary cast.
4922
bf5142e7
AB
49232019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4924
4925 * linux-nat.c (normal_mask): Delete.
4926 (_initialize_linux_nat): Don't initialise normal_mask.
4927
c4973306
SM
49282019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4929
4930 PR gdb/24445
4931 * dwarf-index-write.h (write_psymtabs_to_index): Add
4932 dwz_basename parameter.
4933 * dwarf-index-write.c (write_gdbindex): Move file writing to
4934 write_gdbindex_1. Change return type void.
4935 (assert_file_size): Move up, remove filename parameter.
4936 (write_gdbindex_1): New function.
4937 (write_debug_names): Change return type to void, call
4938 assert_file_size.
4939 (struct index_wip_file): New struct.
4940 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4941 file logic to index_wip_file. Write index for dwz file if
4942 needed.
4943 (save_gdb_index_command): Pass basename of dwz file, if present.
4944 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4945 build-id of dwz file, if present.
4946 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4947 (dwarf2_get_dwz_file): Likewise.
4948 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4949 (dwarf2_get_dwz_file): Likewise.
4950
395f9c91
TT
49512019-06-16 Tom Tromey <tom@tromey.com>
4952
4953 * coffread.c (process_coff_symbol): Use xstrdup.
4954 * value.c (create_internalvar): Use xstrdup.
4955
cafb3438
TT
49562019-06-16 Tom Tromey <tom@tromey.com>
4957
4958 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4959 * breakpoint.c (stopin_command, stopat_command)
4960 (until_break_command, decode_location_default): Remove unnecessary
4961 cast.
4962 * utils.c (subset_compare): Remove unnecessary cast.
4963 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4964 cast.
4965 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4966 cast.
4967 * infcmd.c (path_command): Remove unnecessary cast.
4968 * coffread.c (decode_type): Remove unnecessary cast.
4969 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4970 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4971 * tui/tui-stack.c (tui_show_locator_content)
4972 (tui_show_frame_info): Remove unnecessary cast.
4973 * tui/tui-win.c (tui_scroll_forward_command)
4974 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4975 (parse_scrolling_args): Remove unnecessary cast.
4976 * tui/tui-data.c (init_win_info, tui_del_window)
4977 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4978 (free_content_elements): Remove unnecessary cast.
4979 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4980 unnecessary cast.
4981 * tui/tui-source.c (tui_set_source_content)
4982 (tui_vertical_source_scroll): Remove unnecessary cast.
4983 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4984 cast.
4985 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4986 * tui/tui-regs.c (tui_display_registers_from)
4987 (tui_display_register): Remove unnecessary cast.
4988 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4989 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4990 (make_visible): Remove unnecessary cast.
4991 * tui/tui-winsource.c (tui_erase_source_content)
4992 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4993 unnecessary cast.
4994 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4995 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4996 * stabsread.c (read_type, read_array_type, read_range_type):
4997 Remove unnecessary cast.
4998 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4999 (parse_symbol, parse_type, upgrade_type, parse_external)
5000 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5001 unnecessary cast.
5002 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5003
730ead81
TT
50042019-06-16 Tom Tromey <tom@tromey.com>
5005
5006 * tui/tui-data.c (tui_alloc_generic_win_info)
5007 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5008 checks.
5009
584a927c
AB
50102019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5011 Andrew Burgess <andrew.burgess@embecosm.com>
5012
5013 * f-typeprint.c (f_print_type): Don't return early for not
5014 associated or not allocated types.
5015 (f_type_print_varspec_suffix): Add print_rank parameter and print
5016 ranks of array types in case they dangling.
5017 (f_type_print_base): Add print_rank parameter.
5018
30056ea0
AB
50192019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5020
5021 * NEWS: Mention new MI commands.
5022 * break-catch-throw.c (enum exception_event_kind): Move to
5023 breakpoint.h.
5024 (print_mention_exception_catchpoint): Output text as a single
5025 message.
5026 (catch_exception_command_1): Rename to...
5027 (catch_exception_event): ...this, make non-static, update header
5028 command, and change some parameter types.
5029 (catch_catch_command): Update for changes to
5030 catch_exception_command_1.
5031 (catch_throw_command): Likewise.
5032 (catch_rethrow_command): Likewise.
5033 * breakpoint.c (enum exception_event_kind): Delete.
5034 * breakpoint.h (enum exception_event_kind): Moved here from
5035 break-catch-throw.c.
5036 (catch_exception_event): Declare.
5037 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5038 (mi_cmd_catch_throw): New function.
5039 (mi_cmd_catch_rethrow): New function.
5040 (mi_cmd_catch_catch): New function.
5041 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5042 'catch-catch' entries.
5043 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5044 (mi_cmd_catch_rethrow): Declare.
5045 (mi_cmd_catch_catch): Declare.
5046
ec8e2b6d
AB
50472019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5048
5049 * annotate.c (annotate_source_line): Change return type to void,
5050 update implementation to match.
5051 * annotate.h (annotate_source_line): Change return type to void,
5052 update header comment.
5053 * stack.c (print_frame_info): Don't change what frame information
5054 is printed based on whether annotations are on or not.
5055
0d3abd8c
AB
50562019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5057
5058 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5059 (annotate_source): Make static.
5060 (annotate_source_line): Moved from source.c and renamed from
5061 identify_source_line. Update the return type.
5062 * annotate.h (annotate_source): Delete declaration.
5063 (annotate_source_line): Declaration moved from source.h, and
5064 renamed from identify_source_line. Return type updated.
5065 * source.c (identify_source_line): Moved to annotate.c and renamed
5066 to annotate_source_line.
5067 (info_line_command): Remove check of annotation_level.
5068 * source.h (identify_source_line): Move declaration to annotate.h
5069 and rename to annotate_source_line.
5070 * stack.c: Add 'annotate.h' include.
5071 (print_frame_info): Remove check of annotation_level before
5072 calling annotate_source_line.
5073
00df30ae
AB
50742019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5075
5076 * source-cache.c (source_cache::get_plain_source_lines): Use
5077 open_source_file_with_line_charpos instead of just
5078 open_source_file, remove call to find_source_lines.
5079 (source_cache::get_source_lines): Likewise.
5080 * source.c (find_source_lines): Make static.
5081 (get_filename_and_charpos): Renamed into...
5082 (open_source_file_with_line_charpos): ..this along with changes to
5083 return a scoped_fd, and some other minor clean ups.
5084 (identify_source_line): Use open_source_file_with_line_charpos.
5085 (search_command_helper): Use open_source_file_with_line_charpos
5086 instead of just open_source_file, remove call to
5087 find_source_lines.
5088 * source.h (open_source_file_with_line_charpos): Declare new
5089 function.
5090 (find_source_lines): Delete declaration.
5091
afda45a2
AB
50922019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5093
5094 * source.c (get_filename_and_charpos): Remove fullname
5095 parameter.
5096 (identify_source_line): Update call to get_filename_and_charpos.
5097
0735b091
TT
50982019-06-14 Tom Tromey <tromey@adacore.com>
5099
5100 PR gdb/24502:
5101 * ui-style.h (skip_ansi_escape): Update comment.
5102 * ui-file.h (class no_terminal_escape_file): New class.
5103 * ui-file.c (no_terminal_escape_file::write)
5104 (no_terminal_escape_file::puts): New methods.
5105 * cli/cli-logging.c (handle_redirections): Use
5106 no_terminal_escape_file.
5107
52ce35e2
TT
51082019-06-14 Tom Tromey <tromey@adacore.com>
5109
5110 * NEWS: Move convenience variable news above Python news.
5111
73cc7272
TT
51122019-06-14 Tom Tromey <tom@tromey.com>
5113
5114 * gnulib: Move directory to top-level.
5115 * configure.ac: Don't configure gnulib.
5116 * configure: Rebuild.
5117 * common/common-defs.h: Use new path to gnulib.
5118 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5119 (GNULIB_H): Remove.
5120 (INCGNU): Look in new gnulib location.
5121 (HFILES_NO_SRCDIR): Remove gnulib files.
5122 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5123 (generated_files): Remove GNULIB_H.
5124 ($(LIBGNU), all-lib): Remove targets.
5125 (distclean): Don't mention GNULIB_BUILDDIR.
5126 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5127
f5686554
TT
51282019-06-14 Tom Tromey <tromey@adacore.com>
5129
5130 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5131 Warn if symbol file does not provide any symbols.
5132
a0c1ffed
TT
51332019-06-14 Tom Tromey <tromey@adacore.com>
5134
5135 * source.c (find_and_open_source): Respect basenames_may_differ.
5136
7c39e397
AB
51372019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5138
5139 * annotate.c (annotate_breakpoints_invalid): Make use of
5140 scoped_restore_terminal_state.
5141 (annotate_frames_invalid): Likewise.
5142
f411722c
TT
51432019-06-14 Tom Tromey <tromey@adacore.com>
5144
5145 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5146 allow assignment to an internalvar.
5147
4268ec18
TT
51482019-06-14 Tom Tromey <tromey@adacore.com>
5149
5150 * ada-lex.l: Allow "_" in attribute names.
5151
abdb711e
TT
51522019-06-14 Tom Tromey <tromey@adacore.com>
5153
5154 PR gdb/24653:
5155 * regcache.c (registers_changed): Don't call alloca.
5156 * top.c (execute_command): Don't call alloca.
5157
4c048731
PA
51582019-06-13 Pedro Alves <palves@redhat.com>
5159
5160 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5161 'expression'. When parsing an expression, error out if there's
5162 junk after "unlimited".
5163 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5164 (do_set_command): Adjust calls to is_unlimited_literal.
5165
66eb1ed3
PA
51662019-06-13 Pedro Alves <palves@redhat.com>
5167
5168 * compile/compile.c (make_compile_options_def_group): Add braces
5169 around array_view initializer.
5170 * thread.c (make_thread_apply_all_options_def_group)
5171 (make_thread_apply_all_options_def_group): Likewise.
5172
3345721a
PA
51732019-06-13 Pedro Alves <palves@redhat.com>
5174
5175 * NEWS (New commands): Mention "maint test-options
5176 require-delimiter", "maint test-options unknown-is-error", "maint
5177 test-options unknown-is-operand" and "maint show
5178 test-options-completion-result".
5179 (New command options, command completion): New section.
5180 (Completion improvements): New section.
5181 Mention that you can abbreviate "unlimited".
5182
6206060d
PA
51832019-06-13 Pedro Alves <palves@redhat.com>
5184
5185 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5186 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5187 * unittests/cli-utils-selftests.c (test_parse_flags)
5188 (test_parse_flags_qcs): Delete.
5189 (test_cli_utils): Don't call deleted functions.
5190
6665660a
PA
51912019-06-13 Pedro Alves <palves@redhat.com>
5192
5193 * thread.c: Include "cli/cli-option.h".
5194 (tp_array_compar_ascending): Global.
5195 (tp_array_compar): Delete function.
5196 (tp_array_compar_ascending, tp_array_compar_descending): New
5197 functions.
5198 (ascending_option_def, qcs_flag_option_def)
5199 (thr_qcs_flags_option_defs)
5200 (make_thread_apply_all_options_def_group)
5201 (make_thread_apply_options_def_group): New.
5202 (thread_apply_all_command): Use gdb::option::process_options.
5203 (thread_apply_command_completer)
5204 (thread_apply_all_command_completer): New.
5205 (thread_apply_command): Use gdb::option::process_options.
5206 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5207 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5208 to generate help text of "thread apply". Adjust "taas"'s help.
5209 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5210 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5211
f7e13587
PA
52122019-06-13 Pedro Alves <palves@redhat.com>
5213
5214 * thread.c (thread_apply_command): Check for invalid TID with
5215 isdigit instead of !isalpha.
5216
5d707134
PA
52172019-06-13 Pedro Alves <palves@redhat.com>
5218
5219 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5220 (validate_flags_qcs): New.
5221 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5222 (validate_flags_qcs): Declare.
5223 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5224 (make_frame_apply_options_def_group): New.
5225 (frame_apply_command_count): Process options with
5226 gdb::option::process_options.
5227 (frame_apply_completer): New.
5228 (frame_apply_level_completer, frame_apply_all_completer)
5229 (frame_apply_completer): New.
5230 (_initialize_stack): Update help of "frame apply", "frame apply
5231 level", "frame apply all" and "faas" to mention supported options
5232 and install command completers.
5233 * stack.h (frame_apply_all_completer): Declare.
5234 * thread.c: Include "stack.h".
5235 (tfaas_command): Add "--".
5236 (_initialize_thread): Update help "tfaas" to mention supported
5237 options and install command completer.
5238
272d4594
PA
52392019-06-13 Pedro Alves <palves@redhat.com>
5240
5241 * completer.c (complete_nested_command_line): New.
5242 (gdb_completion_word_break_characters_throw): Add assertion.
5243 * completer.h (complete_nested_command_line): Declare.
5244
90a1ef87
PA
52452019-06-13 Pedro Alves <palves@redhat.com>
5246
5247 * stack.c (parse_backtrace_qualifiers): New.
5248 (backtrace_command): Use it.
5249 (backtrace_command_completer): Complete on qualifiers.
5250
d4c16835
PA
52512019-06-13 Pedro Alves <palves@redhat.com>
5252
5253 * frame.c: Include "cli/cli-option.h.
5254 (user_set_backtrace_options): New.
5255 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5256 Delete.
5257 (get_prev_frame): Adjust.
5258 (boolean_option_def, uinteger_option_def)
5259 (set_backtrace_option_defs): New.
5260 (_initialize_frame): Adjust and use
5261 gdb::option::add_setshow_cmds_for_options to install "set
5262 backtrace past-main" and "set backtrace past-entry".
5263 * frame.h: Include "cli/cli-option.h".
5264 (struct frame_print_options): Forward declare.
5265 (print_frame_arguments_all, print_frame_arguments_scalars)
5266 (print_frame_arguments_none): Declare.
5267 (print_entry_values): Delete declaration.
5268 (struct frame_print_options, user_frame_print_options): New.
5269 (struct set_backtrace_options): New.
5270 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5271 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5272 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5273 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5274 (list_args_or_locals): Add frame_print_options parameter.
5275 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5276 * python/py-framefilter.c (enumerate_args): Pass down
5277 USER_FRAME_PRINT_OPTIONS.
5278 * stack.c: Include "cli/cli-option.h".
5279 (print_frame_arguments_all, print_frame_arguments_scalars)
5280 (print_frame_arguments_none): Declare.
5281 (print_raw_frame_arguments, print_entry_values): Delete.
5282 (user_frame_print_options): New.
5283 (boolean_option_def, enum_option_def, frame_print_option_defs):
5284 New.
5285 (struct backtrace_cmd_options): New.
5286 (bt_flag_option_def): New.
5287 (backtrace_command_option_defs): New.
5288 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5289 (print_frame_arg, read_frame_arg, print_frame_args)
5290 (print_frame_info, print_frame): Add frame_print_options parameter
5291 and use it.
5292 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5293 (backtrace_command_1): Add frame_print_options and
5294 backtrace_cmd_options parameters and use them.
5295 (make_backtrace_options_def_group): New.
5296 (backtrace_command): Process command options with
5297 gdb::option::process_options.
5298 (backtrace_command_completer): New.
5299 (_initialize_stack): Extend "backtrace"'s help to mention
5300 supported options. Install completer for "backtrace".
5301 Install some settings commands with add_setshow_cmds_for_options.
5302
2daf894e
PA
53032019-06-13 Pedro Alves <palves@redhat.com>
5304
5305 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5306 and that "set/show print raw frame-arguments" are now deprecated.
5307
5308 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5309 command.
5310 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5311 * stack.c (_initialize_stack): Install "set/show print
5312 raw-frame-arguments", and deprecate "set/show print raw
5313 frame-arguments".
5314 * valprint.c (_initialize_valprint): Deprecate "set/show print
5315 raw".
5316
e6ed716c
PA
53172019-06-13 Pedro Alves <palves@redhat.com>
5318
5319 * compile/compile.c (struct compile_options): New.
5320 (compile_flag_option_def, compile_command_option_defs)
5321 (make_compile_options_def_group): New.
5322 (compile_file_command): Handle options with
5323 gdb::option::process_options.
5324 (compile_file_command_completer): New function.
5325 (compile_code_command): Handle options with
5326 gdb::option::process_options.
5327 (compile_code_command_completer): New function.
5328 (_initialize_compiler): Install completers for "compile code" and
5329 "compile file". Mention available options in "compile code" and
5330 "compile code"'s help.
5331 * completer.c (advance_to_completion_word): New, factored out from
5332 ...
5333 (advance_to_expression_complete_word_point): ... this.
5334 (advance_to_filename_complete_word_point): New.
5335 * completer.h (advance_to_filename_complete_word_point): New
5336 declaration.
5337
7d8062de
PA
53382019-06-13 Pedro Alves <palves@redhat.com>
5339
5340 * compile/compile.c: Include "cli/cli-option.h".
5341 (compile_print_value): Scope data pointer is now a
5342 value_print_options pointer; adjust.
5343 (compile_print_command): Process options. Scope data pointer is
5344 now a value_print_options pointer; adjust.
5345 (_initialize_compile): Update "compile print"'s help to include
5346 supported options. Install a completer for "compile print".
5347 * cp-valprint.c (show_vtblprint, show_objectprint)
5348 (show_static_field_print): Delete.
5349 (_initialize_cp_valprint): Don't install "set print
5350 static-members", "set print vtbl", "set print object" here.
5351 * printcmd.c: Include "cli/cli-option.h" and
5352 "common/gdb_optional.h".
5353 (print_command_parse_format): Rework to fill in a
5354 value_print_options instead of a format_data.
5355 (print_value): Change parameter type from format_data pointer to
5356 value_print_options reference. Adjust.
5357 (print_command_1): Process options. Adjust to pass down a
5358 value_print_options.
5359 (print_command_completer): New.
5360 (_initialize_printcmd): Install print_command_completer as
5361 handle_brkchars completer for the "print" command. Update
5362 "print"'s help to include supported options.
5363 * valprint.c: Include "cli/cli-option.h".
5364 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5365 here from cp-valprint.c.
5366 (boolean_option_def, uinteger_option_def)
5367 (value_print_option_defs, make_value_print_options_def_group):
5368 New. Use gdb::option::add_setshow_cmds_for_options to install
5369 "set print elements", "set print null-stop", "set print repeats",
5370 "set print pretty", "set print union", "set print array", "set
5371 print address", "set print symbol", "set print array-indexes".
5372 * valprint.h: Include <string> and "cli/cli-option.h".
5373 (make_value_print_options_def_group): Declare.
5374 (print_value): Change parameter type from format_data pointer to
5375 value_print_options reference.
5376 (print_command_completer): Declare.
5377
9d0faba9
PA
53782019-06-13 Pedro Alves <palves@redhat.com>
5379
5380 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5381 (COMMON_SFILES): Add maint-test-settings.c.
5382 * cli/cli-decode.c (boolean_enums): New global, factored out from
5383 ...
5384 (add_setshow_boolean_cmd): ... here.
5385 * cli/cli-decode.h (boolean_enums): Declare.
5386 * cli/cli-option.c: New file.
5387 * cli/cli-option.h: New file.
5388 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5389 factored out from ...
5390 (parse_cli_boolean_value(const char *)): ... this.
5391 (is_unlimited_literal): Change parameter type to pointer to
5392 pointer. Adjust and advance ARG pointer.
5393 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5394 (parse_cli_var_enum): New, factored out from ...
5395 (do_set_command): ... this. Adjust.
5396 * cli/cli-setshow.h (parse_cli_boolean_value)
5397 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5398 (parse_cli_var_enum): Declare.
5399 * cli/cli-utils.c: Include "cli/cli-option.h".
5400 (get_ulongest): New.
5401 * cli/cli-utils.h (get_ulongest): Declare.
5402 (check_for_argument): New overloads.
5403 * maint-test-options.c: New file.
5404
2c722807
PA
54052019-06-13 Pedro Alves <palves@redhat.com>
5406
5407 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5408 parse a range if "-" is at the end of the string.
5409
dee7b4c8
PA
54102019-06-13 Pedro Alves <palves@redhat.com>
5411
5412 * cli/cli-setshow.c (parse_auto_binary_operation)
5413 (parse_cli_boolean_value): Don't allow "o".
5414
dca0f6c0
PA
54152019-06-13 Pedro Alves <palves@redhat.com>
5416
5417 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5418 * NEWS: Mention maint test-settings KIND.
5419 * maint-test-settings.c: New file.
5420
597bf39d
PA
54212019-06-13 Pedro Alves <palves@redhat.com>
5422
5423 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5424 completer.
5425 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5426 "set" completers.
5427
48c410fb
PA
54282019-06-13 Pedro Alves <palves@redhat.com>
5429
5430 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5431 after item.
5432
93bcb043
PA
54332019-06-13 Pedro Alves <palves@redhat.com>
5434
5435 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5436
cbba3ecd
PA
54372019-06-13 Pedro Alves <palves@redhat.com>
5438
5439 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5440 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5441 call.
5442 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5443 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5444 calls.
5445 (check_for_argument): Skip spaces after argument.
5446
b9a3f842
PA
54472019-06-13 Pedro Alves <palves@redhat.com>
5448
5449 * thread.c (thread_apply_command): Adjust TID parsing.
5450 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5451 detected before end of string.
5452 (tid_is_in_list): Error out if LIST is invalid.
5453
3844e605
PA
54542019-06-13 Pedro Alves <palves@redhat.com>
5455
5456 * completer.c (complete_line_internal_1): Rewind completion word
5457 point.
5458 (completion_tracker::advance_custom_word_point_by): Change
5459 parameter type to int.
5460 * completer.h (completion_tracker::advance_custom_word_point_by):
5461 Likewise.
5462
00b56dbe
PA
54632019-06-13 Pedro Alves <palves@redhat.com>
5464
5465 * completer.c (advance_to_completion_word): Handle delimiters.
5466
d106773e
PA
54672019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5468
5469 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5470
08f10e02
TT
54712019-06-11 Tom Tromey <tom@tromey.com>
5472
5473 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5474 (xmalloc_failed): Move to alloc.c.
5475 * alloc.c: New file.
5476 * Makefile.in (COMMON_SFILES): Add alloc.c.
5477
1c7fe951
TT
54782019-06-11 Tom Tromey <tom@tromey.com>
5479
5480 * nat/linux-waitpid.c: Don't include server.h.
5481 (linux_debug): Remove.
5482 (my_waitpid): Update.
5483
89549d7f
TT
54842019-06-11 Tom Tromey <tromey@adacore.com>
5485
5486 * infcall.c (_initialize_infcall): Remove trailing newline from
5487 help.
5488 * user-regs.c (_initialize_user_regs): Remove trailing newline
5489 from help.
5490 * typeprint.c (_initialize_typeprint): Remove trailing newline
5491 from help.
5492 * reverse.c (_initialize_reverse): Remove trailing newlines from
5493 help.
5494 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5495 from help.
5496 * language.c (add_set_language_command): Remove trailing newline
5497 from help.
5498 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5499 help.
5500 * disasm.c (_initialize_disasm): Remove trailing newline from
5501 help.
5502 * top.c (init_main): Remove trailing newline from help.
5503 * interps.c (_initialize_interpreter): Remove trailing newline
5504 from help.
5505 * btrace.c (_initialize_btrace): Remove trailing newlines from
5506 help.
5507 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5508 from help.
5509 * python/python.c (_initialize_python): Remove trailing newline
5510 from help.
5511 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5512 help.
5513 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5514 from help. Reformat some text.
5515 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5516 from help.
5517 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5518 newline from help.
5519
86108c13
TT
55202019-06-11 Tom Tromey <tromey@adacore.com>
5521
5522 * darwin-nat.c (darwin_decode_exception_message)
5523 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5524
a7067863
AB
55252019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5526
5527 * valops.c (value_slice): Check for not allocated or not
5528 associated values.
5529
9ab08412
TV
55302019-06-10 Tom de Vries <tdevries@suse.de>
5531
5532 PR gdb/24618
5533 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5534 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5535 invalid.
5536
f19e22e9
TV
55372019-06-10 Tom de Vries <tdevries@suse.de>
5538
5539 PR gdb/24611
5540 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5541 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5542
e99f9db0
TV
55432019-06-10 Tom de Vries <tdevries@suse.de>
5544
5545 PR symtab/24545
5546 * symtab.c (struct demangled_name_entry): Add language field.
5547 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5548 static minimal symbol". Set and use language field.
5549
9bf7038b
TT
55502019-06-10 Tom Tromey <tromey@adacore.com>
5551
5552 * ada-lang.c (_initialize_ada_language): Update help text.
5553
422186a9
TT
55542019-06-10 Tom Tromey <tromey@adacore.com>
5555
5556 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5557 with a newline.
5558 * guile/guile.c (handle_boot_error): Don't end warning with a
5559 newline.
5560 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5561 warning with a newline.
5562 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5563 newline.
5564 (s12z_frame_cache): Likewise.
5565 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5566 a newline.
5567 * solib-svr4.c (disable_probes_interface): Don't end warning with
5568 a newline.
5569 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5570 newline.
5571 * python/python.c (do_finish_initialization): Don't end warning
5572 with a newline.
5573
25ce02ee
TT
55742019-06-10 Tom Tromey <tom@tromey.com>
5575
5576 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5577 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5578 gdbpy_enter.
5579
caa429d8
TT
55802019-06-10 Tom Tromey <tromey@adacore.com>
5581
5582 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5583 data.
5584 (elf_new_init): Don't call stabsread_new_init.
5585 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5586 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5587 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5588
81873cc8
TV
55892019-06-10 Tom de Vries <tdevries@suse.de>
5590
5591 PR symtab/16264
5592 PR symtab/24517
5593 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5594
4fa0265e
РИ
55952019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5596
5597 * source.c (find_and_open_source): Also rewrite relative file
5598 names.
5599
1a3da2cd
AB
56002019-04-26 Amos Bird <amosbird@gmail.com>
5601
5602 * annotate.c (annotate_thread_exited): Add "thread-exited"
5603 annotation.
5604
3847a7bf
TT
56052019-06-06 Tom Tromey <tromey@adacore.com>
5606
5607 * maint.h (class scoped_command_stats): Use
5608 DISABLE_COPY_AND_ASSIGN.
5609 <print_time>: New method.
5610 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5611 print_time.
5612 (scoped_command_stats::print_time): New method.
5613
312617a3
AB
56142019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5615
5616 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5617 instructions of lengths 6 or 8 bytes.
5618
b02f78f9
PA
56192019-06-04 Pedro Alves <palves@redhat.com>
5620
5621 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5622
5623 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5624 * breakpoint.c (condition_completer): Likewise.
5625 * cli/cli-dump.c (scan_expression): Likewise.
5626 * common/filestuff.c (mkdir_recursive): Likewise.
5627 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5628 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5629 (gdb_abspath): Likewise.
5630 * compile/compile-cplus-types.c
5631 (compile_cplus_instance::decl_name): Likewise.
5632 * completer.c (complete_explicit_location):
5633 (signal_completer, reg_or_group_completer_1): Likewise.
5634 * cp-support.c (cp_remove_params_if_any): Likewise.
5635 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5636 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5637 * infcmd.c (strip_bg_char): Likewise.
5638 * linespec.c (copy_token_string): Likewise.
5639 * mi/mi-main.c (output_cores): Likewise.
5640 * psymtab.c (psymtab_search_name):
5641 * symfile.c (test_set_ext_lang_command): Likewise.
5642 * target.c (target_fileio_read_stralloc): Likewise.
5643 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5644 * value.c (complete_internalvar): Likewise.
5645
e1f2e1a2
CB
56462019-06-04 Christian Biesinger <cbiesinger@google.com>
5647
5648 Add objfile property to gdb.Type.
d3238f7d
PA
5649 * NEWS: Mention Python API addition.
5650 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 5651
e664d728
PW
56522019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5653
5654 * NEWS: Mention the new set|show style [title|highlight].
5655 Mention changes to "show style", "help" and "apropos".
5656
66d8c862
PW
56572019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5658
5659 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5660 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5661 instead of print_help_for_command.
5662 (print_doc_of_command): New function.
5663 (help_list): Add 'apropos -v word' suggestion.
5664 (print_help_for_command): Style the command name using title style.
5665 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5666 (_initialize_cli_cmds): Describe -v in apropos_command help.
5667
9303eb2f
PW
56682019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5669
5670 * cli/cli-style.h (cli_style_option): Add name in constructor,
5671 add m_name class member, add constructor with intensity,
5672 add name class function.
5673 (cli_style_option::add_setshow_commands): Remove name argument.
5674 (highlight_style, title_style): New styles.
5675 * cli/cli-style.c (do_show): New function that shows a style
5676 characteristic styling the style name with itself.
5677 (set_style_name): New function.
5678 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5679 Update all callers according to the changes in cli/cli-style.h.
5680 * utils.h (fputs_highlighted): New function.
5681 * utils.c (fputs_highlighted): Likewise.
5682
e2c52041
PW
56832019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5684
5685 * NEWS: Mention new pipe command and new convenience variables.
5686
947d3946
PW
56872019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5688
5689 * cli/cli-cmds.c (pipe_command): New function.
5690 (_initialize_cli_cmds): Call add_com for pipe_command.
5691 Define | as an alias for pipe.
5692 (exit_status_set_internal_vars): New function.
5693 (shell_escape): Call exit_status_set_internal_vars.
5694 cli/cli-decode.c (find_command_name_length): Recognize | as
5695 a single character command.
5696
b8fd0918
PW
56972019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5698
5699 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5700 top.c (execute_command_to_ui_file): New function, mostly a copy
5701 of execute_command_to_string.
5702 (execute_command_to_string): Implement by calling
5703 execute_command_to_ui_file.
5704
68bb5386
PW
57052019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5706
5707 * top.h (saved_command_line): Remove declaration.
5708 * top.c (previous_saved_command_line, previous_repeat_arguments):
5709 New variables.
5710 (saved_command_line): Make static, define together with other
5711 'repeat variables'.
5712 (dont_repeat): Clear repeat_arguments.
5713 (repeat_previous, get_saved_command_line, save_command_line):
5714 New functions.
5715 (gdb_init): Initialize saved_command_line
5716 and previous_saved_command_line.
5717 * main.c (captured_main_1): Remove saved_command_line initialization.
5718 * event-top.c (handle_line_of_input): Update to use
5719 the new 'repeat' related functions instead of direct access to
5720 saved_command_line.
5721 * command.h (repeat_previous, get_saved_command_line,
5722 save_command_line): New declarations.
5723 (dont_repeat): Add comment.
5724
bfcdb852
TT
57252019-05-30 Tom Tromey <tromey@adacore.com>
5726
5727 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5728 Fix comment.
5729 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5730
0ef209f2
JV
57312019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5732
5733 PR cli/24587
5734 * completer.c (complete): Initialize variable word.
5735
955b06fa
SDJ
57362019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5737
5738 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5739 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5740 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5741 'body' is NULL to the outter 'if', protecting the '!is_define'
5742 situation as well.
5743
fa9c3fa0
TT
57442019-05-29 Tom Tromey <tromey@adacore.com>
5745
5746 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5747 (dwarf_unknown): New function.
5748 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5749 (dwarf_type_encoding_name): Use dwarf_unknown.
5750
4330d61d
TT
57512019-05-29 Tom Tromey <tromey@adacore.com>
5752
5753 PR c++/20020:
5754 * cp-valprint.c (cp_print_value_fields): Call
5755 cp_print_static_field inside "try".
5756
33a6bc35
TT
57572019-05-29 Tom Tromey <tromey@adacore.com>
5758
5759 * inflow.c (struct terminal_info): Add default operator=.
5760 * configure: Rebuild.
5761 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5762 -Wdeprecated-copy-dtor, -Wredundant-move.
5763
000439d5
TT
57642019-05-29 Tom Tromey <tromey@adacore.com>
5765
5766 * NEWS: Add entry.
5767 * infcmd.c (print_return_value_1): Handle finish_print
5768 option.
5769 (show_print_finish): New function.
5770 (_initialize_infcmd): Add "set/show print finish" commands.
5771 * valprint.c (user_print_options): Initialize new member.
5772 * valprint.h (struct value_print_options) <finish_print>: New
5773 member.
5774
c0e70c62
TT
57752019-05-28 Tom Tromey <tromey@adacore.com>
5776
5777 * ada-lang.c (ada_remove_Xbn_suffix)
5778 (find_old_style_renaming_symbol)
5779 (parse_old_style_renaming): Remove.
5780 (ada_find_renaming_symbol): Don't call
5781 find_old_style_renaming_symbol.
5782 (ada_is_renaming_symbol): Rename from
5783 ada_find_renaming_symbol. Remove "block" parameter. Return
5784 bool. Now static.
5785 (ada_read_var_value): Update and simplify.
5786 * ada-exp.y (write_var_or_type): Remove old code.
5787
766f8836
AH
57882019-05-28 Alan Hayward <alan.hayward@arm.com>
5789
5790 * event-top.c: Remove include comment.
5791 * inflow.c (class scoped_ignore_sigttou): Move from here...
5792 * inflow.h (class scoped_ignore_sigttou): ...to here.
5793 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5794 * top.c: Remove include comment.
5795
eb41253a
TT
57962019-05-27 Tom Tromey <tom@tromey.com>
5797
5798 * NEWS: Fix typo.
5799
4ca51187
TT
58002019-05-22 Tom Tromey <tromey@adacore.com>
5801
5802 * target.c (target_follow_exec): Constify parameter.
5803 * target-delegates.c: Rebuild.
5804 * remote.c (remote_target::follow_exec): Constify parameter.
5805 * infrun.c (follow_exec): Constify parameter.
5806 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5807 (target_follow_exec): Likewise.
5808
8fca4da0
AH
58092019-05-22 Alan Hayward <alan.hayward@arm.com>
5810
5811 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5812 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5813
b7060614
AH
58142019-05-22 Alan Hayward <alan.hayward@arm.com>
5815
5816 * NEWS: Add debugredirect and testsuite sections.
5817
0a5954bd
SC
58182019-05-22 Simon Cook <simon.cook@embecosm.com>
5819
5820 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5821 target descriptions using exclusively floating point register name
5822 aliases.
5823
dc42e902
AB
58242019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5825
5826 PR gdb/18644:
5827 * f-lang.c (build_fortran_types): Handle the case where
5828 gdbarch_floatformat_for_type returns a nullptr.
5829
fb7806c7
TV
58302019-05-21 Tom de Vries <tdevries@suse.de>
5831
5832 PR cli/24587
5833 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5834
34d11c68
AB
58352019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5836
5837 PR gdb/18644:
5838 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5839 16-byte floats.
5840 * i386-tdep.c (i386_floatformat_for_type): Use
5841 floatformats_ia64_quad for the 16-byte floating point component
5842 within a fortran 32-byte complex number.
5843
122cf0f2
AB
58442019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5845
5846 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5847 delete default constructor.
5848 (find_partial_die): Update to return const struct.
5849 (partial_die_parent_scope): Move variable declaration into scope
5850 of its use and change its type to auto.
5851 (guess_partial_die_structure_name): Likewise.
5852 (partial_die_info::fixup): Likewise.
5853
33d0e35a
TT
58542019-05-17 Tom Tromey <tromey@adacore.com>
5855
5856 * source.c (find_and_open_source): Remove cast.
5857
a45575b0
TT
58582019-05-17 Tom Tromey <tromey@adacore.com>
5859
5860 * annotate.c (annotate_source): Make "filename" const.
5861 * annotate.h (annotate_source): Use const.
5862
81f47ac2
AH
58632019-05-17 Alan Hayward <alan.hayward@arm.com>
5864
5865 * disasm.c (set_disassembler_options): Send errors to stderr.
5866
ca1285d1
AH
58672019-05-17 Alan Hayward <alan.hayward@arm.com>
5868
5869 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5870 (cli_interp_base::set_logging): Check debug_redirect.
5871 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5872 * cli/cli-logging.c (debug_redirect): Add static variable.
5873 (pop_output_files): Add default param.
5874 (handle_redirections): Print debug setting.
5875 (show_logging_command): Likewise.
5876 (_initialize_cli_logging): Add debugredirect command.
5877 * interps.c (current_interp_set_logging): Add debug_redirect
5878 parameter.
5879 * interps.h (set_logging): Add debug_redirect parameter.
5880 (current_interp_set_logging): Likewise.
5881 * mi/mi-common.h: Likewise.
5882 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5883
58842019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
5885 Tom Tromey <tromey@adacore.com>
5886
5887 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5888 directly.
5889 * cli/cli-interp.h (make_logging_output): Remove declaration.
5890 * cli/cli-logging.c (make_logging_output): Remove function.
5891 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5892 directly.
5893 * ui-file.c (tee_file::tee_file): Remove bools.
5894 (tee_file::~tee_file): Remove deletes.
5895 * ui-file.h (tee_file): Remove bools.
5896
26648588
JV
58972019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5898
5899 * mi/mi-cmds.h (mi_cmd_complete): New function.
5900 * mi/mi-main.c (mi_cmd_complete): Likewise.
5901 * mi/mi-cmds.c: Define new MI command -complete.
5902 * NEWS: Mention new -complete command.
5903
6e035501
JV
59042019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5905
5906 * completer.h (complete): New function.
5907 * completer.c (complete): Likewise.
5908 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5909 function defined in completer.h.
5910
7d0e2ece
JV
59112019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5912
e79be6e5 5913 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 5914
fb816e8b
TV
59152019-05-17 Tom de Vries <tdevries@suse.de>
5916
5917 PR gdb/24094
5918 * dwarf2read.c (struct cu_partial_die_info): New struct.
5919 (find_partial_die): Return cu_partial_die_info.
5920 (partial_die_parent_scope, guess_partial_die_structure_name)
5921 (partial_die_info::fixup): Handle new return type of find_partial_die.
5922
677052f2
SDJ
59232019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5924
a1726c38 5925 PR breakpoints/24541
677052f2
SDJ
5926 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5927 "std::string", simplifying the algorithm.
5928
f3da9116
SDJ
59292019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5930
5931 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5932 (stap_static_probe_ops::get_probes): Likewise.
5933
f1bb75ab
SDJ
59342019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5935
5936 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5937 '-')" and "else if".
5938 (stap_parse_single_operand): Join checks for
5939 "gdbarch_stap_parse_special_token_p" and
5940 "gdbarch_stap_parse_special_token" in the same "if" statement.
5941 Invert check when verifying for operation on register
5942 displacement.
5943
3ca58cde
SDJ
59442019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5945
5946 * stap-probe.c (stap_get_opcode): Update comment.
5947 (stap_get_expected_argument_type): Likewise.
5948 (handle_stap_probe): Likewise.
5949
af2d9bee
SDJ
59502019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5951
5952 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5953 return type to 'bool'. Adjust comment. Use 'bool' when
5954 appropriate.
5955 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5956 * stap-probe.c (stap_parse_argument_1): Likewise.
5957 (stap_is_operator): Likewise.
5958 (stap_is_generic_prefix): Likewise.
5959 (stap_is_register_prefix): Likewise.
5960 (stap_is_register_indirection_prefix): Likewise.
5961 (stap_is_integer_prefix): Likewise.
5962 (stap_generic_check_suffix): Likewise.
5963 (stap_check_integer_suffix): Likewise.
5964 (stap_check_register_suffix): Likewise.
5965 (stap_check_register_indirection_suffix): Likewise.
5966 (stap_parse_register_operand): Likewise.
5967 (stap_parse_single_operand): Likewise.
5968 (stap_parse_argument_1): Likewise.
5969 (stap_probe::get_argument_count): Likewise.
5970 (stap_is_operator): Likewise.
5971
61c9c421
TT
59722019-05-16 Tom Tromey <tromey@adacore.com>
5973
5974 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5975 keyword to foreach.
5976
9ddc1af1
SM
59772019-05-15 Simon Marchi <simon.marchi@efficios.com>
5978
5979 * linux-thread-db.c (try_thread_db_load_1): Change return type
5980 to bool.
5981 (try_thread_db_load): Likewise.
5982 (try_thread_db_load_from_pdir_1): Likewise.
5983 (try_thread_db_load_from_pdir): Likewise.
5984 (try_thread_db_load_from_sdir): Likewise.
5985 (try_thread_db_load_from_dir): Likewise.
5986 (thread_db_load_search): Likewise.
5987 (has_libpthread): Likewise.
5988 (thread_db_load): Likewise.
5989
7bede828
SDJ
59902019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5991
5992 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5993 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5994 NULL, and complain/return if that's the case.
5995
c5358db4
JD
59962019-05-15 John Darrington <john@darrington.wattle.id.au>
5997
5998 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5999 (advance, posn, abstract_read_memory): New functions.
6000 [struct mem_read_abstraction]: New struct.
6001 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6002
c408a94f
TT
60032019-05-14 Tom Tromey <tromey@adacore.com>
6004
6005 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6006 value is not lval_memory.
6007
e7bd7fba
TT
60082019-05-14 Tom Tromey <tromey@adacore.com>
6009
6010 * solib.c (info_sharedlibrary_command): Style the file name.
6011
a6d0f249
AH
60122019-05-14 Alan Hayward <alan.hayward@arm.com>
6013
6014 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6015 (aarch64_vnv_type): Likewise.
6016 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6017 * common/tdesc.c: Likewise.
6018 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6019 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6020 * features/aarch64-fpu.xml: Add ieee half view.
6021 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6022 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6023 * gdbtypes.h (struct builtin_type): Likewise.
6024 (struct objfile_type): Likewise.
6025
66b8bb74
SM
60262019-05-12 Paul Naert <paul.naert@polymtl.ca>
6027
6028 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6029 typo.
6030 * location.h (string_to_event_location): Likewise.
6031
21c219fd
JB
60322019-05-11 Joel Brobecker <brobecker@adacore.com>
6033
6034 GDB 8.3 released.
6035
13674803
SM
60362019-05-10 Simon Marchi <simon.marchi@efficios.com>
6037
6038 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6039 New variable declaration.
6040 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6041 New variable.
6042 (print_one_breakpoint): Use ui_out::test_flags and new global
6043 variable to compute use_fixed_output.
6044 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6045 Remove.
6046 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6047 (mi_multi_location_breakpoint_output_fixed): Remove.
6048 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6049 new variable.
6050 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6051 fix_multi_location_breakpoint_output flag if version >= 3.
6052 * ui-out.h (enum ui_out_flag)
6053 <fix_multi_location_breakpoint_output>: New enumerator.
6054
a9eac7f9
SM
60552019-05-10 Simon Marchi <simon.marchi@efficios.com>
6056
6057 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6058
71bed2db
TT
60592019-05-10 Tom Tromey <tromey@adacore.com>
6060
6061 * ada-lang.c (catch_ada_completer): New function.
6062 (_initialize_ada_language): Use it.
6063
24c54127
TT
60642019-05-10 Tom Tromey <tromey@adacore.com>
6065
6066 * thread.c (print_thread_info): Make "requested_threads" const.
6067 * gdbthread.h (print_thread_info): Make "requested_threads"
6068 const.
6069 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6070 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6071
7a102139
TT
60722019-05-08 Tom Tromey <tom@tromey.com>
6073
6074 * gdbtypes.c (objfile_type_data): Change type.
6075 (objfile_type, _initialize_gdbtypes): Update.
6076
924d79e2
TT
60772019-05-08 Tom Tromey <tom@tromey.com>
6078
6079 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6080 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6081 (_initialize_dwarf2_frame): Update.
6082
4c58e337
TT
60832019-05-08 Tom Tromey <tom@tromey.com>
6084
6085 * objc-lang.c (objc_objfile_data): Change type.
6086 (find_methods): Update.
6087 (_initialize_objc_lang): Remove.
6088
d772d2ab
TT
60892019-05-08 Tom Tromey <tom@tromey.com>
6090
6091 * stabsread.c (rs6000_builtin_type_data): Change type.
6092 (rs6000_builtin_type, _initialize_stabsread): Update.
6093
d11d83f4
TT
60942019-05-08 Tom Tromey <tom@tromey.com>
6095
6096 * mips-tdep.c (mips_pdr_data): Remove.
6097 (_initialize_mips_tdep): Update.
6098
9a73f0ad
TT
60992019-05-08 Tom Tromey <tom@tromey.com>
6100
6101 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6102 (hppa_init_objfile_priv_data, read_unwind_info)
6103 (find_unwind_entry, _initialize_hppa_tdep): Update.
6104
8127a2fa
TT
61052019-05-08 Tom Tromey <tom@tromey.com>
6106
6107 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6108 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6109 on obstack.
6110 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6111
91d3055d
TT
61122019-05-08 Tom Tromey <tom@tromey.com>
6113
6114 * mdebugread.c (basic_type_data): Change type.
6115 (basic_type, _initialize_mdebugread): Update.
6116
31930bd3
TT
61172019-05-08 Tom Tromey <tom@tromey.com>
6118
6119 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6120
bdb3ed9e
TT
61212019-05-08 Tom Tromey <tom@tromey.com>
6122
6123 * nto-tdep.c (nto_inferior_data_reg): Change type.
6124 (nto_inferior_data): Update.
6125 (nto_inferior_data_cleanup, nto_new_inferior_data)
6126 (_initialize_nto_tdep): Remove.
6127 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6128
f37b313d
TT
61292019-05-08 Tom Tromey <tom@tromey.com>
6130
6131 * ada-lang.c (struct ada_inferior_data): Add initializers.
6132 (ada_inferior_data): Change type.
6133 (ada_inferior_data_cleanup): Remove.
6134 (get_ada_inferior_data, ada_inferior_exit)
6135 (struct ada_pspace_data): Add initializers, destructor.
6136 (ada_pspace_data_handle): Change type.
6137 (get_ada_pspace_data): Update.
6138 (ada_pspace_data_cleanup): Remove.
6139
24699405
TT
61402019-05-08 Tom Tromey <tom@tromey.com>
6141
6142 * coffread.c (struct coff_symfile_info): Add initializers.
6143 (coff_objfile_data_key): Move lower. Change type.
6144 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6145 Update.
6146 (coff_free_info): Remove.
6147
d4e05d2f
TT
61482019-05-08 Tom Tromey <tom@tromey.com>
6149
6150 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6151 (fbsd_pspace_data_handle): Move lower. Change type.
6152 (get_fbsd_pspace_data): Update.
6153 (fbsd_pspace_data_cleanup): Remove.
6154 (_initialize_fbsd_tdep): Update.
6155
14ef6690
TT
61562019-05-08 Tom Tromey <tom@tromey.com>
6157
6158 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6159 (get_ada_tasks_pspace_data): Update.
6160 (ada_tasks_pspace_data_cleanup): Remove.
6161 (_initialize_tasks): Update.
6162 (ada_tasks_inferior_data_handle): Change type.
6163 (get_ada_tasks_inferior_data): Update.
6164 (ada_tasks_inferior_data_cleanup): Remove.
6165 (struct ada_tasks_pspace_data): Add initializers.
6166
814cf43a
TT
61672019-05-08 Tom Tromey <tom@tromey.com>
6168
6169 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6170 * symfile-debug.c (debug_sym_get_probes): Change type.
6171 * stap-probe.c (handle_stap_probe):
6172 (stap_static_probe_ops::get_probes): Change type.
6173 * probe.h (class static_probe_ops) <get_probes>: Change type.
6174 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6175 (parse_probes_in_pspace): Update.
6176 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6177 Update.
6178 (any_static_probe_ops::get_probes): Change type.
6179 * elfread.c (elfread_data): New typedef.
6180 (probe_key): Change type.
6181 (elf_get_probes): Likewise. Update.
6182 (probe_key_free): Remove.
6183 (_initialize_elfread): Update.
6184 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6185 Change type.
6186 (dtrace_process_dof_probe, dtrace_process_dof)
6187 (dtrace_static_probe_ops::get_probe): Change type.
6188
02dc647e
TT
61892019-05-08 Tom Tromey <tom@tromey.com>
6190
6191 * xcoffread.c (struct xcoff_symfile_info): Rename from
6192 coff_symfile_info. Add initializers.
6193 (xcoff_objfile_data_key): Move lower. Change type.
6194 (XCOFF_DATA): Rewrite.
6195 (xcoff_free_info): Remove.
6196 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6197 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6198 (xcoff_initial_scan): Update.
6199
09232438
TT
62002019-05-08 Tom Tromey <tom@tromey.com>
6201
6202 * solib-svr4.c (struct svr4_info): Add initializers and
6203 destructor.
6204 <probes_table>: Now an htab_up.
6205 (solib_svr4_pspace_data): Change type.
6206 (free_probes_table): Simplify.
6207 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6208 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6209 (probes_table_remove_objfile_probes, register_solib_event_probe)
6210 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6211 (_initialize_svr4_solib): Update.
6212
7b4a314f
TT
62132019-05-08 Tom Tromey <tom@tromey.com>
6214
6215 * remote.c (remote_pspace_data): Change type.
6216 (remote_pspace_data_cleanup): Remove.
6217 (get_remote_exec_file, set_pspace_remote_exec_file)
6218 (_initialize_remote): Update.
6219
51d3063a
TT
62202019-05-08 Tom Tromey <tom@tromey.com>
6221
6222 * breakpoint.c (breakpoint_objfile_key): Change type.
6223 (get_breakpoint_objfile_data): Update.
6224 (free_breakpoint_objfile_data): Remove.
6225 (_initialize_breakpoint): Update.
6226
89fb8848
TT
62272019-05-08 Tom Tromey <tom@tromey.com>
6228
6229 * linux-tdep.c (struct linux_info): Add initializers.
6230 (linux_inferior_data): Move. Change type.
6231 (invalidate_linux_cache_inf): Update.
6232 (linux_inferior_data_cleanup): Remove.
6233 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6234
e9b89e2d
TT
62352019-05-08 Tom Tromey <tom@tromey.com>
6236
6237 * auxv.c (auxv_inferior_data): Move. Change type.
6238 (auxv_inferior_data_cleanup): Remove.
6239 (invalidate_auxv_cache_inf): Rewrite.
6240 (get_auxv_inferior_data, _initialize_auxv): Update.
6241
8c42777c
TT
62422019-05-08 Tom Tromey <tom@tromey.com>
6243
6244 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6245 (symfile_debug_objfile_data_key): Change type.
6246 (symfile_debug_installed, debug_qf_has_symbols)
6247 (debug_qf_find_last_source_symtab)
6248 (debug_qf_forget_cached_source_info)
6249 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6250 (debug_qf_print_stats, debug_qf_dump)
6251 (debug_qf_expand_symtabs_for_function)
6252 (debug_qf_expand_all_symtabs)
6253 (debug_qf_expand_symtabs_with_fullname)
6254 (debug_qf_map_matching_symbols)
6255 (debug_qf_expand_symtabs_matching)
6256 (debug_qf_find_pc_sect_compunit_symtab)
6257 (debug_qf_map_symbol_filenames)
6258 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6259 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6260 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6261 (debug_sym_read_linetable, debug_sym_relocate): Update.
6262 (symfile_debug_free_objfile): Remove.
6263 (install_symfile_debug_logging, _initialize_symfile_debug):
6264 Update.
6265
5bfd760d
TT
62662019-05-08 Tom Tromey <tom@tromey.com>
6267
6268 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6269 allocate_on_obstack.
6270 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6271 (get_dwarf2_per_objfile): Update.
6272 (set_dwarf2_per_objfile): Remove.
6273 (dwarf2_has_info, dwarf2_get_section_info): Update.
6274 (dwarf2_free_objfile): Remove.
6275 (_initialize_dwarf2_read): Update.
6276
e85e19b4
TT
62772019-05-08 Tom Tromey <tom@tromey.com>
6278
6279 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6280 initializers.
6281 <unsupported_script_warning_printed,
6282 script_not_found_warning_printed>: Now bool.
6283 (auto_load_pspace_data): Change type.
6284 (~auto_load_pspace_info): Rename from
6285 auto_load_pspace_data_cleanup.
6286 (get_auto_load_pspace_data, init_loaded_scripts_info)
6287 (clear_section_scripts, maybe_print_unsupported_script_warning)
6288 (maybe_print_script_not_found_warning, _initialize_auto_load):
6289 Update.
6290
f6aa7436
TT
62912019-05-08 Tom Tromey <tom@tromey.com>
6292
6293 * objfiles.c (objfile_pspace_info): Add destructor and
6294 initializers.
6295 (objfiles_pspace_data): Change type.
6296 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6297 (get_objfile_pspace_data): Update.
6298 (objfiles_bfd_data): Change type.
6299 (get_objfile_bfd_data): Update.
6300 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6301
6ae614f6
TT
63022019-05-08 Tom Tromey <tom@tromey.com>
6303
6304 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6305 Change type.
6306 (get_catch_syscall_inferior_data): Update.
6307 (catch_syscall_inferior_data_cleanup): Remove.
6308 (_initialize_break_catch_syscall): Update.
6309
6509b8eb
TT
63102019-05-08 Tom Tromey <tom@tromey.com>
6311
6312 * inflow.c (struct terminal_info): Add destructor and
6313 initializers.
6314 (inflow_inferior_data): Change type.
6315 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6316 (get_inflow_inferior_data, inflow_inferior_exit)
6317 (swap_terminal_info, _initialize_inflow): Update.
6318
35632941
TT
63192019-05-08 Tom Tromey <tom@tromey.com>
6320
6321 * target-dcache.c (target_dcache_cleanup): Remove.
6322 (target_dcache_aspace_key): Change type.
6323 (target_dcache_init_p, target_dcache_invalidate)
6324 (target_dcache_get, target_dcache_get_or_init)
6325 (_initialize_target_dcache): Update.
6326 * dcache.h (struct dcache_deleter): New.
6327
3017b94d
TT
63282019-05-08 Tom Tromey <tom@tromey.com>
6329
6330 * symtab.c (struct symbol_cache): Add destructor and
6331 initializers.
6332 (symbol_cache_key): Move. Change type.
6333 (make_symbol_cache, free_symbol_cache): Remove.
6334 (get_symbol_cache): Update.
6335 (symbol_cache_cleanup): Remove.
6336 (ALL_PSPACES, symbol_cache_flush)
6337 (maintenance_print_symbol_cache)
6338 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6339 Update.
6340
a32ad8c5
TT
63412019-05-08 Tom Tromey <tom@tromey.com>
6342
6343 * symtab.c (struct main_info): Add destructor and initializers.
6344 (main_progspace_key): Move. Change type.
6345 (get_main_info): Update.
6346 (main_info_cleanup): Remove.
6347 (_initialize_symtab): Update.
6348
5f6e90a0
TT
63492019-05-08 Tom Tromey <tom@tromey.com>
6350
6351 * registry.h (DECLARE_REGISTRY): Define the _key class.
6352
1bd0c6e4
AB
63532019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6354
6355 * NEWS: Merge two 'New commands' sections.
6356
2228ef77
XR
63572019-05-08 Joel Brobecker <brobecker@adacore.com>
6358
6359 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6360 parameter and use Ada language definition instead.
6361 (ada_val_print_ptr): Remove unused language parameter.
6362 (ada_val_print_num): Remove language parameter and use Ada language
6363 definition instead.
6364 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6365 parameter.
6366 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6367 parameter and use Ada language definition instead.
6368 (ada_val_print_1): Update all ada_val_print_xxx calls.
6369 Remove language parameter.
6370 (ada_val_print): Update ada_val_print_1 call.
6371
60fcc1c3
TT
63722019-05-08 Tom Tromey <tromey@adacore.com>
6373
6374 * remote.c (remote_hw_watchpoint_limit)
6375 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6376 Now static.
6377
ed2b7c17
TT
63782019-05-08 Tom Tromey <tromey@adacore.com>
6379
6380 * maint.c (_initialize_maint_cmds): Move initialization code to
6381 remote.c.
6382 (watchdog, show_watchdog): Move to remote.c.
6383 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6384 "watchdog" static.
6385 (_initialize_remote): Move initialization code from maint.c.
6386 * defs.h (watchdog): Don't declare.
6387
b0be6c91
TT
63882019-05-08 Tom Tromey <tromey@adacore.com>
6389
6390 * tui/tui-interp.c: Include main.h.
6391 * interps.c: Include main.h.
6392 * main.h (interpreter_p): Declare.
6393 * defs.h (interpreter_p): Don't declare.
6394
587ee17b
TT
63952019-05-08 Tom Tromey <tromey@adacore.com>
6396
6397 * dwarf2loc.c: Include dwarf2read.h.
6398 * defs.h (read_unsigned_leb128): Don't declare.
6399 * dwarf2read.h (read_unsigned_leb128): Declare.
6400
ca1df239
TT
64012019-05-08 Tom Tromey <tromey@adacore.com>
6402
6403 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6404 method.
6405
99f20f08
TT
64062019-05-08 Tom Tromey <tromey@adacore.com>
6407
6408 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6409 when no wrap column is set.
6410
80e55b13
TT
64112019-05-08 Tom Tromey <tromey@adacore.com>
6412
6413 * c-lang.c (c_get_string): Handle non-C-style arrays.
6414
9d3421af
TT
64152019-05-08 Tom Tromey <tromey@adacore.com>
6416
6417 * typeprint.c (print_offset_data::update): Print the bit offset,
6418 not the number of bits remaining.
6419
844333e2
TT
64202019-05-08 Tom Tromey <tromey@adacore.com>
6421
6422 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6423 padding at end of comment.
6424
988915ee
TT
64252019-05-08 Tom Tromey <tromey@adacore.com>
6426
6427 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6428 Compare main types.
6429
26bfd823
TT
64302019-05-06 Tom Tromey <tom@tromey.com>
6431
6432 * common/scoped_mmap.c: Include common-defs.h.
6433 * common/scoped_mmap.h: Don't include config.h.
6434
89055eaa
TT
64352019-05-04 Tom Tromey <tom@tromey.com>
6436
6437 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6438 (struct aarch64_call_info): Add initializers.
6439 <si>: Now a std::vector.
6440 (pass_on_stack, aarch64_push_dummy_call): Update.
6441
5da01df5
TT
64422019-05-04 Simon Marchi <simon.marchi@efficios.com>
6443 Tom Tromey <tom@tromey.com>
6444
6445 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6446 (ppc_threads): Now a std::vector. Now static.
6447 (hwdebug_find_thread_points_by_tid)
6448 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6449 Update.
6450
fbdf05a1
TT
64512019-05-04 Tom Tromey <tom@tromey.com>
6452
6453 * arc-tdep.c (arc_tdesc_init): Return bool.
6454
06d16ec9
TT
64552019-05-04 Tom Tromey <tom@tromey.com>
6456
6457 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6458 Use gdb_assert_not_reached.
6459
9c056022
TT
64602019-05-04 Tom Tromey <tom@tromey.com>
6461
6462 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6463 "false".
6464
fa9c2a59
TT
64652019-05-04 Tom Tromey <tom@tromey.com>
6466
6467 * arc-tdep.c (arc_tdesc_init): Use bool.
6468
e2eb806a
TT
64692019-05-04 Tom Tromey <tom@tromey.com>
6470
6471 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6472
6fe87677
TT
64732019-05-04 Tom Tromey <tom@tromey.com>
6474
6475 * cli/cli-cmds.c (valid_command_p): Return bool.
6476
7f008c9e
TT
64772019-05-04 Tom Tromey <tom@tromey.com>
6478
6479 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6480 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6481
b6484282
RT
64822019-05-04 Raul Tambre <raul@tambre.ee>
6483
6484 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6485 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6486 operator for comparison.
6487
af97b416
TT
64882019-05-04 Tom Tromey <tom@tromey.com>
6489
6490 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6491 (lookup_partial_symbol, print_partial_symbols)
6492 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6493 (psymbol_compare): Update.
6494 (add_psymbol_to_bcache): Clear the entire psymbol.
6495 (maintenance_check_psymtabs): Update.
6496 * psympriv.h (struct partial_symbol): Don't derive from
6497 general_symbol_info.
6498 <obj_section, unrelocated_address, address,
6499 set_unrelocated_address>: Update.
6500 <ginfo>: New member.
6501 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6502 (debug_names::write_psymbols): Update.
6503
9d6d4be8
TV
65042019-05-04 Tom de Vries <tdevries@suse.de>
6505
6506 * contrib/cc-with-tweaks.sh: Support -n arg.
6507
66452beb
PW
65082019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6509
6510 * corelow.c (core_target::detach): Ensure frame cache and
6511 register caches are cleared.
6512 inferior.c (exit_inferior_1): Likewise.
6513
bde09ab7
TT
65142019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6515 Tom Tromey <tom@tromey.com>
6516
6517 * dictionary.c (collate_pending_symbols_by_language): Remove
6518 "struct" from foreach.
6519 * symtab.c (lookup_global_symbol_from_objfile)
6520 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6521 foreach.
6522 * ser-tcp.c (net_open): Remove "struct" from foreach.
6523 * objfiles.c (objfile_relocate, objfile_rebase)
6524 (objfile_has_symbols): Remove "struct" from foreach.
6525 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6526 from foreach.
6527 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6528 foreach.
6529 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6530 "struct" from foreach.
6531 * ada-lang.c (create_excep_cond_exprs)
6532 (ada_exception_catchpoint_cond_string): Remove "struct" from
6533 foreach.
6534
222a8d25
TT
65352019-05-03 Tom Tromey <tromey@adacore.com>
6536
6537 * ada-exp.y (convert_char_literal): Check suffix of each
6538 enumerator.
6539
fcd60b84
DP
65402019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6541
6542 PR ada/21406:
6543 * ada-exp.y (yywrap): Don't define.
6544 * ada-lex.l (%option): Add noyywrap
6545 (yywrap): Remove.
6546
5f2459c2
EZ
65472019-05-03 Eli Zaretskii <eliz@gnu.org>
6548
353ea2d1
EZ
6549 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6550 _WIN32_WINNT to the XP level, unless already defined to a higher
6551 level.
6552
6553 * unittests/parse-connection-spec-selftests.c:
6554 * ser-tcp.c:
6555 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6556 override.
6557
5f2459c2
EZ
6558 * symfile.c (find_separate_debug_file): Remove colon from the
6559 drive spec of DOS/Windows file names of the target, so that the
6560 file name produced from DEBUGDIR and the target's directory will
6561 be valid on DOS/Windows systems.
6562
80062eb9
AB
65632019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6564
6565 * rust-lang.c (val_print_struct): Handle printing structures
6566 containing strings.
6567
b8c05e85
TT
65682019-05-02 Tom Tromey <tromey@adacore.com>
6569
6570 * valarith.c (_initialize_valarith): Remove.
6571
4504bbde
TT
65722019-05-01 Tom Tromey <tromey@adacore.com>
6573
6574 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6575 bitfields.
6576
d48e62f4
TT
65772019-05-01 Tom Tromey <tromey@adacore.com>
6578
6579 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6580 for big-endian copies.
6581
15f18d14
AT
65822019-04-30 Ali Tamur <tamur@google.com>
6583 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6584 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6585 (read_3_bytes): New function.
6586
ab4ee614
JB
65872019-04-30 Joel Brobecker <brobecker@adacore.com>
6588
6589 * windows-nat.c (main_thread_id): Delete.
6590 (handle_output_debug_string): Replace main_thread_id by
6591 current_event.dwThreadId.
6592 (fake_create_process): Likewise.
6593 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6594 Do not set main_thread_id.
6595 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6596 current_event.dwThreadId.
6597 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6598
8ed5b76e
JB
65992019-04-30 Joel Brobecker <brobecker@adacore.com>
6600
6601 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6602 Use current_event.dwThreadId instead of main_thread_id.
6603
2ff0a947
TT
66042019-04-30 Tom Tromey <tromey@adacore.com>
6605
6606 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6607 (create_excep_cond_exprs): Iterate over program spaces.
6608 (ada_exception_catchpoint_cond_string): Examine all minimal
6609 symbols for exception types.
6610
a776957c
TT
66112019-04-30 Tom Tromey <tromey@adacore.com>
6612
6613 PR c++/24470:
6614 * dwarf2read.c (process_structure_scope): Handle case where type
6615 has template parameters but no symbol was created.
6616
bc68014d
AB
66172019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6618 Chris January <chris.january@arm.com>
6619
6620 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6621 qualifier.
6622 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6623
f1fdc960
AB
66242019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6625
6626 * f-typeprint.c (f_print_type): Update rules for printing
6627 whitespace.
6628 (f_type_print_varspec_suffix): Likewise.
6629
bf7a4de1
AB
66302019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6631 Chris January <chris.january@arm.com>
6632
6633 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6634 function arguments.
6635
bbe75b9d
AB
66362019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6637
6638 * f-lang.c (build_fortran_types): Change name of void type to
6639 lower case.
6640 * f-typeprint.c (f_type_print_base): Print the name of the void
6641 type, rather than a fixed string.
6642 * f-valprint.c (f_decorations): Use lower case void string.
6643
1db455a7
AB
66442019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6645 Chris January <chris.january@arm.com>
6646
6647 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6648 types for Fortran.
6649
b6d03bb2
AB
66502019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6651 Chris January <chris.january@arm.com>
6652 David Lecomber <david.lecomber@arm.com>
6653
6654 * f-exp.y (BINOP_INTRINSIC): New token.
6655 (exp): New parser rule handling BINOP_INTRINSIC.
6656 (f77_keywords): Add new builtin procedures.
6657 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6658 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6659 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6660 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6661 (print_unop_subexp_f): New function.
6662 (print_binop_subexp_f): New function.
6663 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6664 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6665 (dump_subexp_body_f): Likewise.
6666 (operator_check_f): Likewise.
6667 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6668 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6669
83228e93
AB
66702019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6671
6672 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6673 UNOP_KIND.
6674 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6675 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6676 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6677 (operator_length_f): New fuction.
6678 (print_subexp_f): New function.
6679 (op_name_f): New function.
6680 (dump_subexp_body_f): New function.
6681 (operator_check_f): New function.
6682 (exp_descriptor_f): Replace standard expression handling functions
6683 with new functions.
6684 * gdb/fortran-operator.def: New file.
6685 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6686 * gdb/std-operator.def: Remove UNOP_KIND.
6687
6fdcd7cc
AB
66882019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6689
6690 * std-operator.def: Remove unbalanced, stray double quote
6691 character.
6692
2e62ab40
AB
66932019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6694 Chris January <chris.january@arm.com>
6695 Daniel Everett <daniel.everett@arm.com>
6696 Nick Forrington <nick.forrington@arm.com>
6697 Richard Bunt <richard.bunt@arm.com>
6698
6699 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6700 of depth when printing anonymous structs or unions.
6701 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6702 Don't print either the top-level value, or the children if the
6703 max-depth is exceeded.
6704 (ppscm_print_children): When printing the key of a map, allow one
6705 extra level of depth.
6706 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6707 print either the top-level value, or the children if the max-depth
6708 is exceeded.
6709 (print_children): When printing the key of a map, allow one extra
6710 level of depth.
6711 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6712 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6713 (user_print_options): Initialise max_depth field.
6714 (val_print_scalar_or_string_type_p): New function.
6715 (val_print): Check to see if the max depth has been reached.
6716 (val_print_check_max_depth): Define new function.
6717 (show_print_max_depth): New function.
6718 (_initialize_valprint): Add 'print max-depth' option.
6719 * valprint.h (struct value_print_options) <max_depth>: New field.
6720 (val_print_check_max_depth): Declare new function.
6721 * NEWS: Document new feature.
6722
4be290b2
AB
67232019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6724
6725 * ada-lang.c (ada_language_defn): Initialise new field.
6726 * c-lang.c (c_is_string_type_p): New function.
6727 (c_language_defn): Initialise new field.
6728 (cplus_language_defn): Initialise new field.
6729 (asm_language_defn): Initialise new field.
6730 (minimal_language_defn): Initialise new field.
6731 * c-lang.h (c_is_string_type_p): Declare new function.
6732 * d-lang.c (d_language_defn): Initialise new field.
6733 * f-lang.c (f_is_string_type_p): New function.
6734 (f_language_defn): Initialise new field.
6735 * go-lang.c (go_is_string_type_p): New function.
6736 (go_language_defn): Initialise new field.
6737 * language.c (default_is_string_type_p): New function.
6738 (unknown_language_defn): Initialise new field.
6739 (auto_language_defn): Initialise new field.
6740 * language.h (struct language_defn) <la_is_string_type_p>: New
6741 member variable.
6742 (default_is_string_type_p): Declare new function.
6743 * m2-lang.c (m2_language_defn): Initialise new field.
6744 * objc-lang.c (objc_language_defn): Initialise new field.
6745 * opencl-lang.c (opencl_language_defn): Initialise new field.
6746 * p-lang.c (pascal_is_string_type_p): New function.
6747 (pascal_language_defn): Initialise new field.
6748 * rust-lang.c (rust_is_string_type_p): New function.
6749 (rust_language_defn): Initialise new field.
6750
721b08c6
AB
67512019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6752
6753 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6754 New field.
6755 * ada-lang.c (ada_language_defn): Initialise new field.
6756 * c-lang.c (c_language_defn): Likewise.
6757 (cplus_language_defn): Likewise.
6758 (asm_language_defn): Likewise.
6759 (minimal_language_defn): Likewise.
6760 * d-lang.c (d_language_defn): Likewise.
6761 * f-lang.c (f_language_defn): Likewise.
6762 * go-lang.c (go_language_defn): Likewise.
6763 * language.c (unknown_language_defn): Likewise.
6764 (auto_language_defn): Likewise.
6765 * m2-lang.c (m2_language_defn): Likewise.
6766 * objc-lang.c (objc_language_defn): Likewise.
6767 * opencl-lang.c (opencl_language_defn): Likewise.
6768 * p-lang.c (pascal_language_defn): Likewise.
6769 * rust-lang.c (rust_language_defn): Likewise.
6770
fc913e53
AB
67712019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6772
6773 * ada-lang.c (ada_is_character_type): Change return type to bool.
6774 (ada_is_string_type): Likewise.
6775 * ada-lang.h (ada_is_character_type): Update declaration
6776 (ada_is_string_type): Likewise.
6777
fa731fa0
PW
67782019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6779
6780 Support style in 'frame|thread apply'
6781
6782 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6783 * record.c (record_start, record_stop): Update callers of
6784 execute_command_to_string with false.
6785 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6786 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6787 methods.
6788 (class string_file): New constructor with term_out parameter.
6789 Override methods term_out and can_emit_style_escape. New member
6790 term_out.
6791 (class stdio_file): Override can_emit_style_escape.
6792 (class tee_file): Override term_out and can_emit_style_escape.
6793 * utils.h (can_emit_style_escape): Remove.
6794 * utils.c (can_emit_style_escape): Likewise.
6795 Update all callers of can_emit_style_escape (SOMESTREAM) to
6796 SOMESTREAM->can_emit_style_escape.
6797 * source-cache.c (source_cache::get_source_lines): Likewise.
6798 * stack.c (frame_apply_command_count): Call execute_command_to_string
6799 passing the term_out characteristic of the current gdb_stdout.
6800 * thread.c (thr_try_catch_cmd): Likewise.
6801 * top.c (execute_command_to_string): pass term_out parameter
6802 to construct the string_file for the command output.
6803 * ui-file.c (term_cli_styling): New function (most code moved
6804 from utils.c can_emit_style_escape).
6805 (string_file::string_file, string_file::can_emit_style_escape,
6806 stdio_file::can_emit_style_escape, tee_file::term_out,
6807 tee_file::can_emit_style_escape): New functions.
6808
136afab8
PW
68092019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6810
6811 * NEWS: Mention the new set|show may-call-functions.
6812 * infcall.c (may_call_functions_p): New variable.
6813 (show_may_call_functions_p): New function.
6814 (call_function_by_hand_dummy): Throws an error if not
6815 may-call-functions.
6816 (_initialize_infcall): Call add_setshow_boolean_cmd for
6817 may-call-functions.
6818
725cbb63
KS
68192019-04-25 Keith Seitz <keiths@redhat.com>
6820
6821 PR c++/24367
6822 * cp-support.c (inspect_type): Don't attempt substitutions
6823 of symbol with the same name.
6824
3d1cbb78
TT
68252019-04-25 Tom Tromey <tromey@adacore.com>
6826
6827 PR gdb/24475:
6828 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6829 static.
6830
94aeb44b
TT
68312019-04-25 Tom Tromey <tromey@adacore.com>
6832
6833 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6834 rvalue reference.
6835 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6836 (gdb_xml_parser::parse): Use std::move.
6837 * python/python-internal.h (gdbpy_convert_exception): Take a const
6838 reference.
6839 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6840 std::move.
6841 * python/py-utils.c (gdbpy_convert_exception): Take a const
6842 reference.
6843 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6844 Use std::move.
6845 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6846 Use std::move.
6847 * mi/mi-main.c (mi_print_exception): Take a const reference.
6848 * main.c (handle_command_errors): Take a const reference.
6849 * linespec.c (parse_linespec): Use std::move.
6850 * infcall.c (run_inferior_call): Use std::move.
6851 (call_function_by_hand_dummy): Use std::move.
6852 * exec.c (try_open_exec_file): Use std::move.
6853 * exceptions.h (exception_print, exception_fprintf)
6854 (exception_print_same): Update.
6855 * exceptions.c (print_exception, exception_print)
6856 (exception_fprintf, exception_print_same): Change parameters to
6857 const reference.
6858 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6859 * common/new-op.c: Use std::move.
6860 * common/common-exceptions.h (struct gdb_exception): Add move
6861 constructor.
6862 (struct gdb_exception_error, struct gdb_exception_quit, struct
6863 gdb_quit_bad_alloc): Change constructor to move constructor.
6864 (throw_exception): Change parameter to rvalue reference.
6865 * common/common-exceptions.c (throw_exception): Take rvalue
6866 reference.
6867 * cli/cli-interp.c (safe_execute_command): Use std::move.
6868 * breakpoint.c (insert_bp_location, location_to_sals): Use
6869 std::move.
6870
680d7fd5
TT
68712019-04-25 Tom Tromey <tromey@adacore.com>
6872
6873 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6874 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6875 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6876 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6877 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6878 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6879 guile/scm-value.c: Use unpack.
6880 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6881 gdbscm_gdb_exception.
6882 (gdbscm_throw_gdb_exception): Likewise.
6883 (struct gdbscm_gdb_exception): New.
6884 (unpack): New function.
6885 (gdbscm_wrap): Use unpack.
6886
c6fdd8b2
TT
68872019-04-25 Tom Tromey <tromey@adacore.com>
6888
6889 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6890 (gdb_rl_callback_handler): Use std::move.
6891 * common/common-exceptions.h (struct gdb_exception): Add move
6892 assignment operator.
6893 (throw_exception_sjlj): Change "exception" to const reference.
6894 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6895 (throw_exception_sjlj): Change "exception" to const reference.
6896
cc06b668
TT
68972019-04-25 Tom Tromey <tromey@adacore.com>
6898
6899 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6900 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6901 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6902 Update.
6903 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6904 Update.
6905 * mi/mi-interp.c (mi_interp::exec): Update.
6906 * linespec.c (parse_linespec): Update.
6907 * infcall.c (run_inferior_call): Update.
6908 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6909 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6910 (gdbscm_lookup_global_symbol): Update.
6911 * guile/scm-param.c (gdbscm_parameter_value): Update.
6912 * guile/scm-frame.c (gdbscm_frame_read_register)
6913 (gdbscm_frame_read_var): Update.
6914 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6915 * exec.c (try_open_exec_file): Update.
6916 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6917 (gdb_rl_callback_handler): Update.
6918 * common/common-exceptions.h (exception_none): Don't declare.
6919 * common/common-exceptions.c (exception_none): Don't define.
6920 (struct catcher) <exception>: Update.
6921 * cli/cli-interp.c (safe_execute_command): Update.
6922 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6923
cf532bd1
AT
69242019-04-25 Ali Tamur <tamur@google.com>
6925
6926 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6927 (read_attribute_value): Likewise.
6928 (dwarf2_read_addr_index): Update comment.
6929 (read_str_index): Add DW_FORM_strx.
6930 (dwarf2_string_attr): Likewise.
6931 (dwarf2_const_value_attr): Likewise.
6932 (dump_die_shallow): Likewise.
6933 (dwarf2_fetch_constant_bytes): Likewise.
6934 (skip_form_bytes): Likewise.
6935 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6936
82433e3e
SDJ
69372019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6938
6939 PR corefiles/11608
6940 PR corefiles/18187
6941 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6942 OFFSET. Verify if current mapping contains an ELF header.
6943 (linux_find_memory_regions_full): Adjust call to
6944 dump_mapping_p.
6945
723adb65
SL
69462019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6947 Kang Li <kanglictf@gmail.com>
6948
6949 PR gdb/21600
6950
6951 * dwarf2-frame.c (read_initial_length): Be consistent about using
6952 unsigned representation of length.
6953 (decode_frame_entry_1): Likewise. Check for wraparound of
6954 end pointer as well as buffer overflow.
6955
596179f7
SDJ
69562019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6957
6958 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6959 "vq".
6960
a59240a4
TT
69612019-04-24 Tom Tromey <tromey@adacore.com>
6962
6963 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6964
f872fdbb
AB
69652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6966
6967 * s12z-tdep.c (s12z_unwind_pc): Delete.
6968 (s12z_unwind_sp): Delete.
6969 (s12z_gdbarch_init): Don't register deleted functions with
6970 gdbarch.
6971
b614e6f3
AB
69722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6973
6974 * rl78-tdep.c (rl78_unwind_sp): Delete.
6975 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6976
14faed38
AB
69772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6978
6979 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6980 (xstormy16_unwind_pc): Delete.
6981 (xstormy16_dummy_id): Delete.
6982 (xstormy16_gdbarch_init): Don't register deleted functions with
6983 gdbarch.
6984
541aad8a
AB
69852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6986
6987 * vax-tdep.c (vax_unwind_pc): Delete.
6988 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6989
29222070
AB
69902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6991
6992 * v850-tdep.c (v850_unwind_sp): Delete.
6993 (v850_unwind_pc): Delete.
6994 (v850_dummy_id): Delete.
6995 (v850_gdbarch_init): Don't register deleted functions with
6996 gdbarch.
6997
0f534d76
AB
69982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6999
7000 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7001 (tilegx_unwind_pc): Delete.
7002 (tilegx_unwind_dummy_id): Delete.
7003 (tilegx_gdbarch_init): Don't register deleted functions with
7004 gdbarch.
7005
1ba7b7f9
AB
70062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7007
7008 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7009 (tic6x_dummy_id): Delete.
7010 (tic6x_gdbarch_init): Don't register deleted functions with
7011 gdbarch.
7012
d31f262c
AB
70132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7014
7015 * sparc-tdep.c (sparc_unwind_pc): Delete.
7016 (sparc32_gdbarch_init): Don't register deleted function with
7017 gdbarch.
7018
6d14d64d
AB
70192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7020
7021 * sh-tdep.c (sh_unwind_sp): Delete.
7022 (sh_unwind_pc): Delete.
7023 (sh_dummy_id): Delete.
7024 (sh_gdbarch_init): Don't register deleted functions with
7025 gdbarch.
7026
a40dde9d
AB
70272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7028
7029 * score-tdep.c (score_unwind_sp): Delete.
7030 (score_unwind_pc): Delete.
7031 (score_dummy_id): Delete.
7032 (score_gdbarch_init): Don't register deleted functions with
7033 gdbarch.
7034
47c47d69
AB
70352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7036
7037 * rx-tdep.c (rx_unwind_pc): Delete.
7038 (rx_unwind_sp): Delete.
7039 (rx_dummy_id): Delete.
7040 (rx_gdbarch_init): Don't register deleted functions with
7041 gdbarch. Update comment.
7042
833a4480
AB
70432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7044
7045 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7046 (rs6000_dummy_id): Delete.
7047 (rs6000_gdbarch_init): Don't register deleted functions with
7048 gdbarch.
7049
3f2cef49
AB
70502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7051
7052 * or1k-tdep.c (or1k_dummy_id): Delete.
7053 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7054
96acf884
AB
70552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7056
7057 * nios2-tdep.c (nios2_dummy_id): Delete.
7058 (nios2_unwind_sp): Delete.
7059 (nios2_gdbarch_init): Don't register deleted functions with
7060 gdbarch.
7061
ca0ab0aa
AB
70622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7063
7064 * nds32-tdep.c (nds32_dummy_id): Delete.
7065 (nds32_unwind_pc): Delete.
7066 (nds32_unwind_sp): Delete.
7067 (nds32_gdbarch_init): Don't register deleted functions with
7068 gdbarch.
7069
c8259044
AB
70702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7071
7072 * msp430-tdep.c (msp430_unwind_pc): Delete.
7073 (msp430_unwind_sp): Delete.
7074 (msp430_dummy_id): Delete.
7075 (msp430_gdbarch_init): Don't register deleted functions with
7076 gdbarch.
7077
27f113c8
AB
70782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7079
7080 * moxie-tdep.c (moxie_unwind_sp): Delete.
7081 (moxie_unwind_pc): Delete.
7082 (moxie_dummy_id): Delete.
7083 (moxie_gdbarch_init): Don't register deleted functions with
7084 gdbarch.
7085
aee6c3cd
AB
70862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7087
7088 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7089 (mn10300_unwind_pc): Delete.
7090 (mn10300_unwind_sp): Delete.
7091 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7092 mn10300_unwind_sp.
7093 (mn10300_frame_unwind_init): Don't register deleted functions with
7094 gdbarch.
7095
8e2b5aea
AB
70962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7097
7098 * mep-tdep.c (mep_unwind_pc): Delete.
7099 (mep_unwind_sp): Delete.
7100 (mep_dummy_id): Delete.
7101 (mep_gdbarch_init): Don't register deleted functions with
7102 gdbarch.
7103
43cf3ede
AB
71042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7105
7106 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7107 (m68hc11_unwind_sp): Delete.
7108 (m68hc11_gdbarch_init): Don't register deleted functions with
7109 gdbarch.
7110
5e79b7bb
AB
71112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7112
7113 * m32r-tdep.c (m32r_unwind_sp): Delete.
7114 (m32r_unwind_pc): Delete.
7115 (m32r_dummy_id): Delete.
7116 (m32r_gdbarch_init): Don't register deleted functions with
7117 gdbarch.
7118
89b268d8
AB
71192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7120
7121 * m32c-tdep.c (m32c_unwind_pc): Delete.
7122 (m32c_unwind_sp): Delete.
7123 (m32c_dummy_id): Delete.
7124 (m32c_gdbarch_init): Don't register deleted functions with
7125 gdbarch.
7126
946c28d2
AB
71272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7128
7129 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7130 (lm32_unwind_pc): Delete.
7131 (lm32_dummy_id): Delete.
7132 (lm32_gdbarch_init): Don't register deleted functions with
7133 gdbarch.
7134
bf12844a
AB
71352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7136
7137 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7138 (iq2000_unwind_pc): Delete.
7139 (iq2000_dummy_id): Delete.
7140 (iq2000_gdbarch_init): Don't register deleted functions with
7141 gdbarch.
7142
ecbc06d2
AB
71432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7144
7145 * nds32-tdep.c (nds32_type_align): Delete.
7146 (nds32_push_dummy_call): Use type_align instead.
7147
030197b4
AB
71482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7149
7150 * arm-tdep.c (arm_type_align): Only handle vector override case.
7151 (arm_push_dummy_call): Use type_align.
7152 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7153
b907456c
AB
71542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7155
7156 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7157 case.
7158 (pass_on_stack): Use type_align.
7159 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7160 function.
7161
9e97ba43
TT
71622019-04-23 Tom Tromey <tromey@adacore.com>
7163
7164 * dwarf2read.c (line_header::file_name_at): Remove unused
7165 overload.
7166
6892f601
TV
71672019-04-23 Tom de Vries <tdevries@suse.de>
7168
7169 PR gdb/24438
7170 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7171 invocation.
7172
336d760d
AT
7173
71742019-03-27 Ali Tamur <tamur@google.com>
7175
7176 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7177 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7178 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7179 (dwarf_expr_context::get_addr_index): Likewise
7180 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7181 (symbol_needs_eval_context::get_addr_index): Likewise
7182 (disassemble_dwarf_expression): Add DW_OP_addrx
7183 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7184 (read_cutu_die_from_dwo): Update comment
7185 (skip_one_die): Add DW_FORM_addrx
7186 (read_attribute_value): Likewise
7187 (var_decode_location): Add DW_OP_addrx
7188 (dwarf2_const_value_attr): Add DW_FORM_addrx
7189 (dump_die_shallow): Likewise
7190 (dwarf2_fetch_constant_bytes): Likewise
7191 (decode_locdesc): Add DW_OP_addrx
7192 (skip_form_bytes): Add DW_FORM_addrx
7193
ad9d13f8
AT
71942019-04-22 Ali Tamur <tamur@google.com>
7195
7196 * MAINTAINERS (Write After Approval): Add self.
7197
d70cc3ba
SM
71982019-04-22 Simon Marchi <simon.marchi@efficios.com>
7199
7200 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7201 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7202 (open_symbol_file_object): Likewise.
7203 (svr4_default_sos): Add info parameter.
7204 (svr4_read_so_list): Likewise.
7205 (svr4_current_sos_direct): Adjust functions calls to pass down
7206 info.
7207 (svr4_current_sos_1): Add info parameter.
7208 (svr4_current_sos): Call get_svr4_info, pass info down to
7209 svr4_current_sos_1.
7210 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7211 get_svr4_info.
7212 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7213 get_svr4_info.
7214 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7215 to get_svr4_info.
7216 (probes_table_remove_objfile_probes): Likewise.
7217 (register_solib_event_probe): Add info parameter.
7218 (solist_update_incremental): Pass info parameter down to
7219 svr4_read_so_list.
7220 (disable_probes_interface): Add info parameter.
7221 (svr4_handle_solib_event): Pass current_program_space to
7222 get_svr4_info. Adjust disable_probes_interface cleanup.
7223 (svr4_create_probe_breakpoints): Add info parameter, pass it
7224 down to register_solib_event_probe.
7225 (svr4_create_solib_event_breakpoints): Add info parameter,
7226 pass it down to svr4_create_probe_breakpoints.
7227 (enable_break): Pass info down to
7228 svr4_create_solib_event_breakpoints.
7229 (svr4_solib_create_inferior_hook): Pass current_program_space to
7230 get_svr4_info.
7231 (svr4_clear_solib): Likewise.
7232
7905fc35
PA
72332019-04-22 Pedro Alves <palves@redhat.com>
7234
7235 * solib-svr4.c (svr4_free_objfile_observer): New.
7236 (probe_and_action::objfile): New field.
7237 (probes_table_htab_remove_objfile_probes)
7238 (probes_table_remove_objfile_probes): New functions.
7239 (register_solib_event_probe): Add 'objfile' parameter. Store it
7240 in the new probe_and_action. Don't store the probe in 'lookup'.
7241 (svr4_create_probe_breakpoints): Pass objfile to
7242 register_solib_event_probe.
7243 (_initialize_svr4_solib): Register a free_objfile observer.
7244
fb881986
TT
72452019-04-19 Tom Tromey <tom@tromey.com>
7246
7247 * common/queue.h: Remove.
7248
8732db6c
TT
72492019-04-19 Tom Tromey <tom@tromey.com>
7250
7251 * event-loop.c: Don't include "common/queue.h".
7252
97dfbadd
TT
72532019-04-19 Tom Tromey <tom@tromey.com>
7254
7255 * remote.c (remote_target): Use delete.
7256 * remote-notif.h: Include <list>, not "common/queue.h".
7257 (notif_client_p): Remove typedef.
7258 (remote_notif_state): Add constructor, destructor, initializer.
7259 <notif_queue>: Now a std::list.
7260 (remote_notif_state_xfree): Don't declare.
7261 * remote-notif.c (remote_notif_process, handle_notification)
7262 (remote_notif_state_allocate): Update.
7263 (~remote_notif_state): Rename from remote_notif_state_xfree.
7264
cf250e36
TT
72652019-04-19 Tom Tromey <tom@tromey.com>
7266
7267 * symfile.c (reread_symbols): Update.
7268 * objfiles.c (objfile_register_static_link)
7269 (objfile_lookup_static_link): Update
7270 (~objfile) Don't delete static_links.
7271 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7272
61f4b350
TT
72732019-04-19 Tom Tromey <tom@tromey.com>
7274
7275 * type-stack.h (struct type_stack) <insert>: Constify string.
7276 * type-stack.c (type_stack::insert): Constify string.
7277 * gdbtypes.h (lookup_template_type): Update.
7278 (address_space_name_to_int): Update.
7279 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7280 const.
7281 (lookup_template_type): Make name const.
7282 * c-exp.y: Update rules.
7283 (lex_one_token, classify_name, classify_inner_name)
7284 (c_print_token): Update.
7285 * p-exp.y: Update rules.
7286 (yylex): Update.
7287 * f-exp.y: Update rules.
7288 (yylex): Update.
7289 * d-exp.y: Update rules.
7290 (lex_one_token, classify_name, classify_inner_name): Update.
7291 * parse.c (write_dollar_variable, copy_name): Return std::string.
7292 * parser-defs.h (copy_name): Change return type.
7293 * m2-exp.y: Update rules.
7294 (yylex): Update.
7295 * go-exp.y (lex_one_token): Update.
7296 Update rules.
7297 (classify_unsafe_function, classify_packaged_name)
7298 (classify_name, yylex): Update.
7299
189b8c2e
ST
73002019-04-19 Sergei Trofimovich <siarheit@google.com>
7301
7302 * configure.ac: add --enable-source-highlight switch.
7303 * configure: Regenerate.
7304 * top.c (print_gdb_version): plumb --enable-source-highlight
7305 status to "show configuration".
7306
8ecb59f8
TT
73072019-04-19 Tom Tromey <tromey@adacore.com>
7308
7309 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7310 Check ADA_TYPE_P.
7311 (empty_record, ada_template_to_fixed_record_type_1)
7312 (template_to_static_fixed_type)
7313 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7314 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7315 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7316 macros.
7317
62160ec9
TT
73182019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7319
7320 PR symtab/24423:
7321 * source.c (print_source_lines_base): Advance "iter" when a
7322 control character is seen.
7323
f2ae8bc8
PW
73242019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7325
7326 * inferior.h (struct infcall_suspend_state_deleter):
7327 Catch exception in destructor to avoid crash.
7328
d563b953
PW
73292019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7330
7331 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7332 close to the add_com "shell".
7333
dc34c897
TT
73342019-04-18 Tom Tromey <tromey@adacore.com>
7335
7336 * process-stratum-target.h (class process_stratum_target)
7337 <stratum>: Add "final".
7338
a12e5744
TT
73392019-04-17 Tom Tromey <tromey@adacore.com>
7340
7341 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7342 against nullptr before use.
7343
a7e559cc
AH
73442019-04-17 Alan Hayward <alan.hayward@arm.com>
7345
7346 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7347
c01660c6
AB
73482019-04-17 Jim Wilson <jimw@sifive.com>
7349 Andrew Burgess <andrew.burgess@embecosm.com>
7350
7351 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7352 code read might fail, assume 4-byte breakpoint in that case.
7353
4aa866af
LS
73542019-04-15 Leszek Swirski <leszeks@google.com>
7355
7356 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7357 rather than a hand-rolled POD check when checking for forced MEMORY
7358 classification.
7359
48574d91
AH
73602019-04-15 Alan Hayward <alan.hayward@arm.com>
7361
7362 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7363 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7364 function.
7365 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7366 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7367 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7368 declaration.
7369
4da037ef
AH
73702019-04-15 Alan Hayward <alan.hayward@arm.com>
7371
7372 * aarch64-linux-nat.c
7373 (aarch64_linux_nat_target::thread_architecture): Add override.
7374 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7375 each VQ.
7376
ccb8d7e8
AH
73772019-04-15 Alan Hayward <alan.hayward@arm.com>
7378
7379 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7380
35add35e
AB
73812019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7382
7383 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7384 target types of size 96-bits, add some additional comments, and
7385 check that the builtin type we found was the correct size.
7386
51196bbc
EZ
73872019-04-12 Eli Zaretskii <eliz@gnu.org>
7388
7389 * utils.c (prompt_for_continue): Don't restore the styling at the
7390 end, as applied_style has the wrong value. This fixes styling in
7391 long lists of file names that are interrupted by the "Continue?"
7392 prompt.
7393
62253a61
AB
73942019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7395
7396 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7397 * c-lang.c (c_language_defn): Likewise.
7398 (cplus_language_defn): Likewise.
7399 (asm_language_defn): Likewise.
7400 (minimal_language_defn): Likewise.
7401 * d-lang.c (d_language_defn): Likewise.
7402 * f-lang.c (f_language_defn): Likewise.
7403 * go-lang.c (go_language_defn): Likewise.
7404 * language.c (unknown_language_defn): Likewise.
7405 (auto_language_defn): Likewise.
7406 * language.h (struct language_defn): Remove la_magic field.
7407 (LANG_MAGIC): Delete.
7408 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7409 * objc-lang.c (objc_language_defn): Likewise.
7410 * opencl-lang.c (opencl_language_defn): Likewise.
7411 * p-lang.c (pascal_language_defn): Likewise.
7412 * rust-lang.c (rust_language_defn): Likewise.
7413
a9158a86
AB
74142019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7415
7416 * riscv-tdep.c (riscv_type_align): New function.
7417 (riscv_type_alignment): Delete.
7418 (riscv_arg_location): Use 'type_align'.
7419 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7420
41077b66
AB
74212019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7422
7423 * gdbtypes.c (type_align): A struct with no non-static fields also
7424 has alignment of 1.
7425
9f0272f8
AB
74262019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7427
7428 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7429 component to 0.
7430 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7431 member.
7432 (riscv_struct_info::analyse): New implementation using new
7433 analyse_inner member function.
7434 (riscv_struct_info::field_offset): New member function.
7435 (riscv_struct_info::m_offsets): New member variable.
7436 (riscv_struct_info::analyse_inner): New private member function,
7437 takes the old implementation of riscv_struct_info::analyse but
7438 extended to track field offsets.
7439 (riscv_call_arg_struct): Update the struct folding special cases
7440 to handle cases where empty C++ structs, which are non-zero
7441 length, are found.
7442 (riscv_arg_location): Initialise the length of each location, a
7443 non-zero length now indicates the location is in use.
7444 (riscv_push_dummy_call): Allow for the first location having a
7445 non-zero offset when setting up arguments.
7446 (riscv_return_value): Likewise, but for return values.
7447
02cf60c7
TT
74482019-04-11 Tom Tromey <tromey@adacore.com>
7449
7450 * utils.c (internal_vproblem): Make "msg" const.
7451
68811f8f
AH
74522019-04-11 Alan Hayward <alan.hayward@arm.com>
7453
7454 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7455 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7456 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7457 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7458
3f52fdbc
KB
74592019-04-10 Kevin Buettner <kevinb@redhat.com>
7460
7461 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7462 function.
7463 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7464 of amd64_collect_native_gregset.
7465 (amd64_linux_nat_target::store_registers): Likewise.
7466
e9ad22ee
TT
74672019-04-10 Tom Tromey <tom@tromey.com>
7468
7469 * symtab.c (lookup_global_symbol_from_objfile)
7470 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7471 * objfiles.h (class separate_debug_iterator): New.
7472 (class separate_debug_range): New.
7473 (struct objfile) <separate_debug_objfiles>: New method.
7474 (objfile_separate_debug_iterate): Don't declare.
7475 * objfiles.c (separate_debug_iterator::operator++): Rename from
7476 objfile_separate_debug_iterate.
7477 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7478 iterator.
7479 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7480 iterator.
7481
ee371134
TT
74822019-04-10 Tom Tromey <tom@tromey.com>
7483
7484 * symfile.c (reread_symbols): Remove old comment.
7485 * objfiles.c (free_all_objfiles): Fix a typo.
7486
bf227d61
TT
74872019-04-10 Tom Tromey <tom@tromey.com>
7488
7489 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7490 * minsyms.c (lookup_minimal_symbol): Use foreach.
7491 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7492 (lookup_minimal_symbol_solib_trampoline): Likewise.
7493 * symfile.c (reread_symbols): Use foreach.
7494
8dc433a0
TT
74952019-04-09 Ivan Begert <ivanbegert@gmail.com>
7496 Tom Tromey <tromey@adacore.com>
7497
7498 PR rust/24414:
7499 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7500 (rust_lex_int_test): Change "value" to be LONGEST.
7501 (rust_lex_tests): Add test for long integer literal.
7502
9ab8741a
TT
75032019-04-09 Tom Tromey <tromey@adacore.com>
7504
7505 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7506 to bool.
7507 (extended_remote_target::attach): Update.
7508 (remote_target::remote_notice_new_inferior): Update.
7509 (remote_target::add_current_inferior_and_thread): Update.
7510 * inferior.c (exit_inferior_1): Use "false".
7511 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7512
e242fd12
SM
75132019-04-09 Simon Marchi <simon.marchi@efficios.com>
7514
9ca1957f 7515 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
7516 the "start" command.
7517
2b0c8b01
KB
75182019-04-08 Kevin Buettner <kevinb@redhat.com>
7519
7520 * python/py-inferior.c (infpy_thread_from_thread_handle):
7521 Adjust comments to reflect renaming of thread_from_thread_handle
7522 to thread_from_handle. Adjust keywords. Fix type error message.
7523 (inferior_object_methods): Add thread_from_handle. Retain
7524 thread_from_thread_handle, but mark it as deprecated.
7525
50a82723
KB
75262019-04-08 Kevin Buettner <kevinb@redhat.com>
7527
7528 * gdbthread.h (find_thread_by_handle): Revise declaration.
7529 * thread.c (find_thread_by_handle): Likewise. Adjust
7530 implementation too.
7531 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7532 support for buffer objects as handles.
7533
cf63b016
KB
75342019-04-08 Kevin Buettner <kevinb@redhat.com>
7535
7536 * python/py-infthread.c (thpy_thread_handle): New function.
7537 (thread_object_methods): Register thpy_thread_handle.
7538
3d6c6204
KB
75392019-04-08 Kevin Buettner <kevinb@redhat.com>
7540
7541 * gdbthread.h (thread_to_thread_handle): Declare.
7542 * thread.c (gdbtypes.h): Include.
7543 (thread_to_thread_handle): New function.
7544
7545 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7546 (target_thread_info_to_thread_handle): Declare.
7547 * target.c (target_thread_info_to_thread_handle): New function.
7548 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7549 * target-delegates.c: Regenerate.
7550
7551 * linux-thread-db.c (class thread_db_target): Add method
7552 thread_info_to_thread_handle.
7553 (thread_db_target::thread_info_to_thread_handle): Define.
7554 * remote.c (class remote_target): Add new method
7555 thread_info_to_thread_handle.
7556 (remote_target::thread_info_to_thread_handle): Define.
7557
56be6ea8
PA
75582019-04-08 Pedro Alves <palves@redhat.com>
7559
7560 * common/common-exceptions.c (throw_exception): Don't create
7561 named object to throw; throw directly.
7562 (throw_it): Likewise. Don't initialize gdb_exception::message
7563 here, with new; pass FMT and AP to the ctor instead.
7564 * common/common-exceptions.h: Include <string>.
7565 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7566 const char *, va_list)): New ctor. Use std::make_shared.
7567 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7568 errors)): Delete.
7569 (gdb_exception_error::gdb_exception_error(enum errors, const char
7570 *, va_list)): New.
7571 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7572 Add assertion.
7573 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7574 errors)): Delete.
7575 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7576 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7577 Add assertion.
7578
eedc3f4f
TT
75792019-04-08 Tom Tromey <tom@tromey.com>
7580
7581 * valops.c (value_rtti_indirect_type): Replace throw_exception
7582 with throw.
7583 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7584 with throw.
7585 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7586 throw.
7587 * target.c (target_translate_tls_address): Replace throw_exception
7588 with throw.
7589 * stack.c (frame_apply_command_count): Replace throw_exception
7590 with throw.
7591 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7592 throw.
7593 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7594 with throw.
7595 * rs6000-tdep.c (rs6000_frame_cache)
7596 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7597 * remote.c: Replace throw_exception with throw.
7598 * record-full.c (record_full_message, record_full_wait_1)
7599 (record_full_restore): Replace throw_exception with throw.
7600 * record-btrace.c:
7601 (get_thread_current_frame_id, record_btrace_start_replaying)
7602 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7603 (cmd_record_btrace_start): Replace throw_exception with throw.
7604 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7605 throw.
7606 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7607 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7608 * linespec.c:
7609 (find_linespec_symbols): Replace throw_exception with throw.
7610 * infrun.c (displaced_step_prepare, resume): Replace
7611 throw_exception with throw.
7612 * infcmd.c (post_create_inferior): Replace throw_exception with
7613 throw.
7614 * inf-loop.c (inferior_event_handler): Replace throw_exception
7615 with throw.
7616 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7617 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7618 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7619 (get_prev_frame_always, get_frame_pc_if_available)
7620 (get_frame_address_in_block_if_available, get_frame_language):
7621 Replace throw_exception with throw.
7622 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7623 throw_exception with throw.
7624 * eval.c (fetch_subexp_value, evaluate_var_value)
7625 (evaluate_funcall, evaluate_subexp_standard): Replace
7626 throw_exception with throw.
7627 * dwarf2loc.c (call_site_find_chain)
7628 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7629 Replace throw_exception with throw.
7630 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7631 with throw.
7632 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7633 throw.
7634 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7635 * completer.c (complete_line_internal): Replace throw_exception
7636 with throw.
7637 * compile/compile-object-run.c (compile_object_run): Replace
7638 throw_exception with throw.
7639 * cli/cli-script.c (process_next_line): Replace throw_exception
7640 with throw.
7641 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7642 (btrace_enable, btrace_maint_update_pt_packets): Replace
7643 throw_exception with throw.
7644 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7645 throw_exception with throw.
7646 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7647 throw_exception with throw.
7648 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7649 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7650 * aarch64-tdep.c (aarch64_make_prologue_cache)
7651 (aarch64_make_stub_cache): Replace throw_exception with throw.
7652
26003a20
TT
76532019-04-08 Tom Tromey <tom@tromey.com>
7654
7655 * common/common-exceptions.c (throw_exception): Rename from
7656 throw_exception_cxx. Remove old copy. Make argument const.
7657 (throw_it): Create and throw exception objects directly.
7658 * common/common-exceptions.h (throw_exception): Make argument
7659 const.
7660 (struct gdb_exception_error): Add constructor.
7661 (struct gdb_exception_quit): Add constructor.
7662
d272eb37
TT
76632019-04-08 Tom Tromey <tom@tromey.com>
7664
7665 * common/common-exceptions.h (exception_rethrow): Don't declare.
7666 (TRY_SJLJ): Update comment.
7667 (TRY, CATCH, END_CATCH): Remove.
7668 * common/common-exceptions.c (exception_rethrow): Remove.
7669
230d2906
TT
76702019-04-08 Tom Tromey <tom@tromey.com>
7671
7672 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7673 Remove.
7674 (gdb_exception_error): Rename from
7675 gdb_exception_RETURN_MASK_ERROR.
7676 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7677 (gdb_quit_bad_alloc): Update.
7678 * aarch64-tdep.c: Update.
7679 * ada-lang.c: Update.
7680 * ada-typeprint.c: Update.
7681 * ada-valprint.c: Update.
7682 * amd64-tdep.c: Update.
7683 * arch-utils.c: Update.
7684 * break-catch-throw.c: Update.
7685 * breakpoint.c: Update.
7686 * btrace.c: Update.
7687 * c-varobj.c: Update.
7688 * cli/cli-cmds.c: Update.
7689 * cli/cli-interp.c: Update.
7690 * cli/cli-script.c: Update.
7691 * common/common-exceptions.c: Update.
7692 * common/new-op.c: Update.
7693 * common/selftest.c: Update.
7694 * compile/compile-c-symbols.c: Update.
7695 * compile/compile-cplus-symbols.c: Update.
7696 * compile/compile-object-load.c: Update.
7697 * compile/compile-object-run.c: Update.
7698 * completer.c: Update.
7699 * corelow.c: Update.
7700 * cp-abi.c: Update.
7701 * cp-support.c: Update.
7702 * cp-valprint.c: Update.
7703 * darwin-nat.c: Update.
7704 * disasm-selftests.c: Update.
7705 * dtrace-probe.c: Update.
7706 * dwarf-index-cache.c: Update.
7707 * dwarf-index-write.c: Update.
7708 * dwarf2-frame-tailcall.c: Update.
7709 * dwarf2-frame.c: Update.
7710 * dwarf2loc.c: Update.
7711 * dwarf2read.c: Update.
7712 * eval.c: Update.
7713 * event-loop.c: Update.
7714 * event-top.c: Update.
7715 * exec.c: Update.
7716 * f-valprint.c: Update.
7717 * fbsd-tdep.c: Update.
7718 * frame-unwind.c: Update.
7719 * frame.c: Update.
7720 * gdbtypes.c: Update.
7721 * gnu-v3-abi.c: Update.
7722 * guile/guile-internal.h: Update.
7723 * guile/scm-block.c: Update.
7724 * guile/scm-breakpoint.c: Update.
7725 * guile/scm-cmd.c: Update.
7726 * guile/scm-disasm.c: Update.
7727 * guile/scm-frame.c: Update.
7728 * guile/scm-lazy-string.c: Update.
7729 * guile/scm-math.c: Update.
7730 * guile/scm-param.c: Update.
7731 * guile/scm-ports.c: Update.
7732 * guile/scm-pretty-print.c: Update.
7733 * guile/scm-symbol.c: Update.
7734 * guile/scm-symtab.c: Update.
7735 * guile/scm-type.c: Update.
7736 * guile/scm-value.c: Update.
7737 * i386-linux-tdep.c: Update.
7738 * i386-tdep.c: Update.
7739 * inf-loop.c: Update.
7740 * infcall.c: Update.
7741 * infcmd.c: Update.
7742 * infrun.c: Update.
7743 * jit.c: Update.
7744 * language.c: Update.
7745 * linespec.c: Update.
7746 * linux-fork.c: Update.
7747 * linux-nat.c: Update.
7748 * linux-tdep.c: Update.
7749 * linux-thread-db.c: Update.
7750 * main.c: Update.
7751 * mi/mi-cmd-break.c: Update.
7752 * mi/mi-cmd-stack.c: Update.
7753 * mi/mi-interp.c: Update.
7754 * mi/mi-main.c: Update.
7755 * objc-lang.c: Update.
7756 * p-valprint.c: Update.
7757 * parse.c: Update.
7758 * ppc-linux-tdep.c: Update.
7759 * printcmd.c: Update.
7760 * python/py-arch.c: Update.
7761 * python/py-breakpoint.c: Update.
7762 * python/py-cmd.c: Update.
7763 * python/py-finishbreakpoint.c: Update.
7764 * python/py-frame.c: Update.
7765 * python/py-framefilter.c: Update.
7766 * python/py-gdb-readline.c: Update.
7767 * python/py-inferior.c: Update.
7768 * python/py-infthread.c: Update.
7769 * python/py-lazy-string.c: Update.
7770 * python/py-linetable.c: Update.
7771 * python/py-objfile.c: Update.
7772 * python/py-param.c: Update.
7773 * python/py-prettyprint.c: Update.
7774 * python/py-progspace.c: Update.
7775 * python/py-record-btrace.c: Update.
7776 * python/py-record.c: Update.
7777 * python/py-symbol.c: Update.
7778 * python/py-type.c: Update.
7779 * python/py-unwind.c: Update.
7780 * python/py-utils.c: Update.
7781 * python/py-value.c: Update.
7782 * python/python.c: Update.
7783 * record-btrace.c: Update.
7784 * record-full.c: Update.
7785 * remote-fileio.c: Update.
7786 * remote.c: Update.
7787 * riscv-tdep.c: Update.
7788 * rs6000-aix-tdep.c: Update.
7789 * rs6000-tdep.c: Update.
7790 * rust-exp.y: Update.
7791 * rust-lang.c: Update.
7792 * s390-tdep.c: Update.
7793 * selftest-arch.c: Update.
7794 * solib-dsbt.c: Update.
7795 * solib-frv.c: Update.
7796 * solib-spu.c: Update.
7797 * solib-svr4.c: Update.
7798 * solib.c: Update.
7799 * sparc64-linux-tdep.c: Update.
7800 * stack.c: Update.
7801 * symfile-mem.c: Update.
7802 * symmisc.c: Update.
7803 * target.c: Update.
7804 * thread.c: Update.
7805 * top.c: Update.
7806 * tracefile-tfile.c: Update.
7807 * tui/tui.c: Update.
7808 * typeprint.c: Update.
7809 * unittests/cli-utils-selftests.c: Update.
7810 * unittests/parse-connection-spec-selftests.c: Update.
7811 * valops.c: Update.
7812 * valprint.c: Update.
7813 * value.c: Update.
7814 * varobj.c: Update.
7815 * windows-nat.c: Update.
7816 * x86-linux-nat.c: Update.
7817 * xml-support.c: Update.
7818
a70b8144
TT
78192019-04-08 Tom Tromey <tom@tromey.com>
7820
7821 * xml-support.c: Use C++ exception handling.
7822 * x86-linux-nat.c: Use C++ exception handling.
7823 * windows-nat.c: Use C++ exception handling.
7824 * varobj.c: Use C++ exception handling.
7825 * value.c: Use C++ exception handling.
7826 * valprint.c: Use C++ exception handling.
7827 * valops.c: Use C++ exception handling.
7828 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7829 handling.
7830 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7831 * typeprint.c: Use C++ exception handling.
7832 * tui/tui.c: Use C++ exception handling.
7833 * tracefile-tfile.c: Use C++ exception handling.
7834 * top.c: Use C++ exception handling.
7835 * thread.c: Use C++ exception handling.
7836 * target.c: Use C++ exception handling.
7837 * symmisc.c: Use C++ exception handling.
7838 * symfile-mem.c: Use C++ exception handling.
7839 * stack.c: Use C++ exception handling.
7840 * sparc64-linux-tdep.c: Use C++ exception handling.
7841 * solib.c: Use C++ exception handling.
7842 * solib-svr4.c: Use C++ exception handling.
7843 * solib-spu.c: Use C++ exception handling.
7844 * solib-frv.c: Use C++ exception handling.
7845 * solib-dsbt.c: Use C++ exception handling.
7846 * selftest-arch.c: Use C++ exception handling.
7847 * s390-tdep.c: Use C++ exception handling.
7848 * rust-lang.c: Use C++ exception handling.
7849 * rust-exp.y: Use C++ exception handling.
7850 * rs6000-tdep.c: Use C++ exception handling.
7851 * rs6000-aix-tdep.c: Use C++ exception handling.
7852 * riscv-tdep.c: Use C++ exception handling.
7853 * remote.c: Use C++ exception handling.
7854 * remote-fileio.c: Use C++ exception handling.
7855 * record-full.c: Use C++ exception handling.
7856 * record-btrace.c: Use C++ exception handling.
7857 * python/python.c: Use C++ exception handling.
7858 * python/py-value.c: Use C++ exception handling.
7859 * python/py-utils.c: Use C++ exception handling.
7860 * python/py-unwind.c: Use C++ exception handling.
7861 * python/py-type.c: Use C++ exception handling.
7862 * python/py-symbol.c: Use C++ exception handling.
7863 * python/py-record.c: Use C++ exception handling.
7864 * python/py-record-btrace.c: Use C++ exception handling.
7865 * python/py-progspace.c: Use C++ exception handling.
7866 * python/py-prettyprint.c: Use C++ exception handling.
7867 * python/py-param.c: Use C++ exception handling.
7868 * python/py-objfile.c: Use C++ exception handling.
7869 * python/py-linetable.c: Use C++ exception handling.
7870 * python/py-lazy-string.c: Use C++ exception handling.
7871 * python/py-infthread.c: Use C++ exception handling.
7872 * python/py-inferior.c: Use C++ exception handling.
7873 * python/py-gdb-readline.c: Use C++ exception handling.
7874 * python/py-framefilter.c: Use C++ exception handling.
7875 * python/py-frame.c: Use C++ exception handling.
7876 * python/py-finishbreakpoint.c: Use C++ exception handling.
7877 * python/py-cmd.c: Use C++ exception handling.
7878 * python/py-breakpoint.c: Use C++ exception handling.
7879 * python/py-arch.c: Use C++ exception handling.
7880 * printcmd.c: Use C++ exception handling.
7881 * ppc-linux-tdep.c: Use C++ exception handling.
7882 * parse.c: Use C++ exception handling.
7883 * p-valprint.c: Use C++ exception handling.
7884 * objc-lang.c: Use C++ exception handling.
7885 * mi/mi-main.c: Use C++ exception handling.
7886 * mi/mi-interp.c: Use C++ exception handling.
7887 * mi/mi-cmd-stack.c: Use C++ exception handling.
7888 * mi/mi-cmd-break.c: Use C++ exception handling.
7889 * main.c: Use C++ exception handling.
7890 * linux-thread-db.c: Use C++ exception handling.
7891 * linux-tdep.c: Use C++ exception handling.
7892 * linux-nat.c: Use C++ exception handling.
7893 * linux-fork.c: Use C++ exception handling.
7894 * linespec.c: Use C++ exception handling.
7895 * language.c: Use C++ exception handling.
7896 * jit.c: Use C++ exception handling.
7897 * infrun.c: Use C++ exception handling.
7898 * infcmd.c: Use C++ exception handling.
7899 * infcall.c: Use C++ exception handling.
7900 * inf-loop.c: Use C++ exception handling.
7901 * i386-tdep.c: Use C++ exception handling.
7902 * i386-linux-tdep.c: Use C++ exception handling.
7903 * guile/scm-value.c: Use C++ exception handling.
7904 * guile/scm-type.c: Use C++ exception handling.
7905 * guile/scm-symtab.c: Use C++ exception handling.
7906 * guile/scm-symbol.c: Use C++ exception handling.
7907 * guile/scm-pretty-print.c: Use C++ exception handling.
7908 * guile/scm-ports.c: Use C++ exception handling.
7909 * guile/scm-param.c: Use C++ exception handling.
7910 * guile/scm-math.c: Use C++ exception handling.
7911 * guile/scm-lazy-string.c: Use C++ exception handling.
7912 * guile/scm-frame.c: Use C++ exception handling.
7913 * guile/scm-disasm.c: Use C++ exception handling.
7914 * guile/scm-cmd.c: Use C++ exception handling.
7915 * guile/scm-breakpoint.c: Use C++ exception handling.
7916 * guile/scm-block.c: Use C++ exception handling.
7917 * guile/guile-internal.h: Use C++ exception handling.
7918 * gnu-v3-abi.c: Use C++ exception handling.
7919 * gdbtypes.c: Use C++ exception handling.
7920 * frame.c: Use C++ exception handling.
7921 * frame-unwind.c: Use C++ exception handling.
7922 * fbsd-tdep.c: Use C++ exception handling.
7923 * f-valprint.c: Use C++ exception handling.
7924 * exec.c: Use C++ exception handling.
7925 * event-top.c: Use C++ exception handling.
7926 * event-loop.c: Use C++ exception handling.
7927 * eval.c: Use C++ exception handling.
7928 * dwarf2read.c: Use C++ exception handling.
7929 * dwarf2loc.c: Use C++ exception handling.
7930 * dwarf2-frame.c: Use C++ exception handling.
7931 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7932 * dwarf-index-write.c: Use C++ exception handling.
7933 * dwarf-index-cache.c: Use C++ exception handling.
7934 * dtrace-probe.c: Use C++ exception handling.
7935 * disasm-selftests.c: Use C++ exception handling.
7936 * darwin-nat.c: Use C++ exception handling.
7937 * cp-valprint.c: Use C++ exception handling.
7938 * cp-support.c: Use C++ exception handling.
7939 * cp-abi.c: Use C++ exception handling.
7940 * corelow.c: Use C++ exception handling.
7941 * completer.c: Use C++ exception handling.
7942 * compile/compile-object-run.c: Use C++ exception handling.
7943 * compile/compile-object-load.c: Use C++ exception handling.
7944 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7945 * compile/compile-c-symbols.c: Use C++ exception handling.
7946 * common/selftest.c: Use C++ exception handling.
7947 * common/new-op.c: Use C++ exception handling.
7948 * cli/cli-script.c: Use C++ exception handling.
7949 * cli/cli-interp.c: Use C++ exception handling.
7950 * cli/cli-cmds.c: Use C++ exception handling.
7951 * c-varobj.c: Use C++ exception handling.
7952 * btrace.c: Use C++ exception handling.
7953 * breakpoint.c: Use C++ exception handling.
7954 * break-catch-throw.c: Use C++ exception handling.
7955 * arch-utils.c: Use C++ exception handling.
7956 * amd64-tdep.c: Use C++ exception handling.
7957 * ada-valprint.c: Use C++ exception handling.
7958 * ada-typeprint.c: Use C++ exception handling.
7959 * ada-lang.c: Use C++ exception handling.
7960 * aarch64-tdep.c: Use C++ exception handling.
7961
3d6e9d23
TT
79622019-04-08 Tom Tromey <tom@tromey.com>
7963
7964 * xml-support.c (gdb_xml_parser::parse): Update.
7965 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7966 * value.c (show_convenience): Update.
7967 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7968 (test_parse_flags_qcs): Update.
7969 * thread.c (thr_try_catch_cmd): Update.
7970 * target.c (target_translate_tls_address): Update.
7971 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7972 (info_frame_command_core, frame_apply_command_count): Update.
7973 * rust-exp.y (rust_lex_exception_test): Update.
7974 * riscv-tdep.c (riscv_print_one_register_info): Update.
7975 * remote.c (remote_target::enable_btrace): Update.
7976 * record-btrace.c (record_btrace_enable_warn): Update.
7977 * python/py-utils.c (gdbpy_convert_exception): Update.
7978 * printcmd.c (do_one_display, print_variable_and_value): Update.
7979 * mi/mi-main.c (mi_print_exception): Update.
7980 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7981 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7982 * linux-nat.c (linux_nat_target::attach): Update.
7983 * linux-fork.c (class scoped_switch_fork_info): Update.
7984 * infrun.c (displaced_step_prepare): Update.
7985 * infcall.c (call_function_by_hand_dummy): Update.
7986 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7987 * gnu-v3-abi.c (print_one_vtable): Update.
7988 * frame.c (get_prev_frame_always): Update.
7989 * f-valprint.c (info_common_command_for_block): Update.
7990 * exec.c (try_open_exec_file): Update.
7991 * exceptions.c (print_exception, exception_print)
7992 (exception_fprintf, exception_print_same): Update.
7993 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7994 * dwarf-index-cache.c (index_cache::store)
7995 (index_cache::lookup_gdb_index): Update.
7996 * darwin-nat.c (maybe_cache_shell): Update.
7997 * cp-valprint.c (cp_print_value_fields): Update.
7998 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7999 (gcc_cplus_symbol_address): Update.
8000 * compile/compile-c-symbols.c (gcc_convert_symbol)
8001 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8002 * common/selftest.c: Update.
8003 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8004 a std::string.
8005 (exception_try_scope_entry, exception_try_scope_exit): Don't
8006 declare.
8007 (struct exception_try_scope): Remove.
8008 (TRY): Don't use exception_try_scope.
8009 (struct gdb_exception): Add constructor, operator=.
8010 <what>: New method.
8011 (struct gdb_exception_RETURN_MASK_ALL)
8012 (struct gdb_exception_RETURN_MASK_ERROR)
8013 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8014 (struct gdb_quit_bad_alloc): Update.
8015 * common/common-exceptions.c (exception_none): Change
8016 initializer.
8017 (struct catcher) <state, exception>: Initialize inline.
8018 <prev>: Remove member.
8019 (current_catcher): Remove.
8020 (catchers): New global.
8021 (exceptions_state_mc_init): Simplify.
8022 (catcher_pop): Remove.
8023 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8024 (try_scope_depth, exception_try_scope_entry)
8025 (exception_try_scope_exit): Remove.
8026 (throw_exception_sjlj): Update.
8027 (exception_messages, exception_messages_size): Remove.
8028 (throw_it): Simplify.
8029 (gdb_exception_sliced_copy): Remove.
8030 (throw_exception_cxx): Update.
8031 * cli/cli-script.c (script_from_file): Update.
8032 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8033 Update.
8034 * ada-valprint.c (ada_val_print): Update.
8035 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8036 (create_excep_cond_exprs): Update.
8037
c5c10118
TT
80382019-04-08 Tom Tromey <tom@tromey.com>
8039
8040 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8041 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8042 (TRY, CATCH, END_CATCH): Remove some definitions.
8043 * common/common-exceptions.c: Don't use GDB_XCPT.
8044 (catcher_list_size): Remove.
8045 (throw_exception, throw_it): Simplify.
8046
4de283e4
TT
80472019-04-05 Tom Tromey <tom@tromey.com>
8048
8049 Revert the header-sorting patch.
8050 * ft32-tdep.c: Revert.
8051 * frv-tdep.c: Revert.
8052 * frv-linux-tdep.c: Revert.
8053 * frame.c: Revert.
8054 * frame-unwind.c: Revert.
8055 * frame-base.c: Revert.
8056 * fork-child.c: Revert.
8057 * findvar.c: Revert.
8058 * findcmd.c: Revert.
8059 * filesystem.c: Revert.
8060 * filename-seen-cache.h: Revert.
8061 * filename-seen-cache.c: Revert.
8062 * fbsd-tdep.c: Revert.
8063 * fbsd-nat.h: Revert.
8064 * fbsd-nat.c: Revert.
8065 * f-valprint.c: Revert.
8066 * f-typeprint.c: Revert.
8067 * f-lang.c: Revert.
8068 * extension.h: Revert.
8069 * extension.c: Revert.
8070 * extension-priv.h: Revert.
8071 * expprint.c: Revert.
8072 * exec.h: Revert.
8073 * exec.c: Revert.
8074 * exceptions.c: Revert.
8075 * event-top.c: Revert.
8076 * event-loop.c: Revert.
8077 * eval.c: Revert.
8078 * elfread.c: Revert.
8079 * dwarf2read.h: Revert.
8080 * dwarf2read.c: Revert.
8081 * dwarf2loc.c: Revert.
8082 * dwarf2expr.h: Revert.
8083 * dwarf2expr.c: Revert.
8084 * dwarf2-frame.c: Revert.
8085 * dwarf2-frame-tailcall.c: Revert.
8086 * dwarf-index-write.h: Revert.
8087 * dwarf-index-write.c: Revert.
8088 * dwarf-index-common.c: Revert.
8089 * dwarf-index-cache.h: Revert.
8090 * dwarf-index-cache.c: Revert.
8091 * dummy-frame.c: Revert.
8092 * dtrace-probe.c: Revert.
8093 * disasm.h: Revert.
8094 * disasm.c: Revert.
8095 * disasm-selftests.c: Revert.
8096 * dictionary.c: Revert.
8097 * dicos-tdep.c: Revert.
8098 * demangle.c: Revert.
8099 * dcache.h: Revert.
8100 * dcache.c: Revert.
8101 * darwin-nat.h: Revert.
8102 * darwin-nat.c: Revert.
8103 * darwin-nat-info.c: Revert.
8104 * d-valprint.c: Revert.
8105 * d-namespace.c: Revert.
8106 * d-lang.c: Revert.
8107 * ctf.c: Revert.
8108 * csky-tdep.c: Revert.
8109 * csky-linux-tdep.c: Revert.
8110 * cris-tdep.c: Revert.
8111 * cris-linux-tdep.c: Revert.
8112 * cp-valprint.c: Revert.
8113 * cp-support.c: Revert.
8114 * cp-namespace.c: Revert.
8115 * cp-abi.c: Revert.
8116 * corelow.c: Revert.
8117 * corefile.c: Revert.
8118 * continuations.c: Revert.
8119 * completer.h: Revert.
8120 * completer.c: Revert.
8121 * complaints.c: Revert.
8122 * coffread.c: Revert.
8123 * coff-pe-read.c: Revert.
8124 * cli-out.h: Revert.
8125 * cli-out.c: Revert.
8126 * charset.c: Revert.
8127 * c-varobj.c: Revert.
8128 * c-valprint.c: Revert.
8129 * c-typeprint.c: Revert.
8130 * c-lang.c: Revert.
8131 * buildsym.c: Revert.
8132 * buildsym-legacy.c: Revert.
8133 * build-id.h: Revert.
8134 * build-id.c: Revert.
8135 * btrace.c: Revert.
8136 * bsd-uthread.c: Revert.
8137 * breakpoint.h: Revert.
8138 * breakpoint.c: Revert.
8139 * break-catch-throw.c: Revert.
8140 * break-catch-syscall.c: Revert.
8141 * break-catch-sig.c: Revert.
8142 * blockframe.c: Revert.
8143 * block.c: Revert.
8144 * bfin-tdep.c: Revert.
8145 * bfin-linux-tdep.c: Revert.
8146 * bfd-target.c: Revert.
8147 * bcache.c: Revert.
8148 * ax-general.c: Revert.
8149 * ax-gdb.h: Revert.
8150 * ax-gdb.c: Revert.
8151 * avr-tdep.c: Revert.
8152 * auxv.c: Revert.
8153 * auto-load.c: Revert.
8154 * arm-wince-tdep.c: Revert.
8155 * arm-tdep.c: Revert.
8156 * arm-symbian-tdep.c: Revert.
8157 * arm-pikeos-tdep.c: Revert.
8158 * arm-obsd-tdep.c: Revert.
8159 * arm-nbsd-tdep.c: Revert.
8160 * arm-nbsd-nat.c: Revert.
8161 * arm-linux-tdep.c: Revert.
8162 * arm-linux-nat.c: Revert.
8163 * arm-fbsd-tdep.c: Revert.
8164 * arm-fbsd-nat.c: Revert.
8165 * arm-bsd-tdep.c: Revert.
8166 * arch-utils.c: Revert.
8167 * arc-tdep.c: Revert.
8168 * arc-newlib-tdep.c: Revert.
8169 * annotate.h: Revert.
8170 * annotate.c: Revert.
8171 * amd64-windows-tdep.c: Revert.
8172 * amd64-windows-nat.c: Revert.
8173 * amd64-tdep.c: Revert.
8174 * amd64-sol2-tdep.c: Revert.
8175 * amd64-obsd-tdep.c: Revert.
8176 * amd64-obsd-nat.c: Revert.
8177 * amd64-nbsd-tdep.c: Revert.
8178 * amd64-nbsd-nat.c: Revert.
8179 * amd64-nat.c: Revert.
8180 * amd64-linux-tdep.c: Revert.
8181 * amd64-linux-nat.c: Revert.
8182 * amd64-fbsd-tdep.c: Revert.
8183 * amd64-fbsd-nat.c: Revert.
8184 * amd64-dicos-tdep.c: Revert.
8185 * amd64-darwin-tdep.c: Revert.
8186 * amd64-bsd-nat.c: Revert.
8187 * alpha-tdep.c: Revert.
8188 * alpha-obsd-tdep.c: Revert.
8189 * alpha-nbsd-tdep.c: Revert.
8190 * alpha-mdebug-tdep.c: Revert.
8191 * alpha-linux-tdep.c: Revert.
8192 * alpha-linux-nat.c: Revert.
8193 * alpha-bsd-tdep.c: Revert.
8194 * alpha-bsd-nat.c: Revert.
8195 * aix-thread.c: Revert.
8196 * agent.c: Revert.
8197 * addrmap.c: Revert.
8198 * ada-varobj.c: Revert.
8199 * ada-valprint.c: Revert.
8200 * ada-typeprint.c: Revert.
8201 * ada-tasks.c: Revert.
8202 * ada-lang.c: Revert.
8203 * aarch64-tdep.c: Revert.
8204 * aarch64-ravenscar-thread.c: Revert.
8205 * aarch64-newlib-tdep.c: Revert.
8206 * aarch64-linux-tdep.c: Revert.
8207 * aarch64-linux-nat.c: Revert.
8208 * aarch64-fbsd-tdep.c: Revert.
8209 * aarch64-fbsd-nat.c: Revert.
8210 * aarch32-linux-nat.c: Revert.
8211
d55e5aa6
TT
82122019-04-05 Tom Tromey <tom@tromey.com>
8213
8214 * ft32-tdep.c: Sort headers.
8215 * frv-tdep.c: Sort headers.
8216 * frv-linux-tdep.c: Sort headers.
8217 * frame.c: Sort headers.
8218 * frame-unwind.c: Sort headers.
8219 * frame-base.c: Sort headers.
8220 * fork-child.c: Sort headers.
8221 * findvar.c: Sort headers.
8222 * findcmd.c: Sort headers.
8223 * filesystem.c: Sort headers.
8224 * filename-seen-cache.h: Sort headers.
8225 * filename-seen-cache.c: Sort headers.
8226 * fbsd-tdep.c: Sort headers.
8227 * fbsd-nat.h: Sort headers.
8228 * fbsd-nat.c: Sort headers.
8229 * f-valprint.c: Sort headers.
8230 * f-typeprint.c: Sort headers.
8231 * f-lang.c: Sort headers.
8232 * extension.h: Sort headers.
8233 * extension.c: Sort headers.
8234 * extension-priv.h: Sort headers.
8235 * expprint.c: Sort headers.
8236 * exec.h: Sort headers.
8237 * exec.c: Sort headers.
8238 * exceptions.c: Sort headers.
8239 * event-top.c: Sort headers.
8240 * event-loop.c: Sort headers.
8241 * eval.c: Sort headers.
8242 * elfread.c: Sort headers.
8243 * dwarf2read.h: Sort headers.
8244 * dwarf2read.c: Sort headers.
8245 * dwarf2loc.c: Sort headers.
8246 * dwarf2expr.h: Sort headers.
8247 * dwarf2expr.c: Sort headers.
8248 * dwarf2-frame.c: Sort headers.
8249 * dwarf2-frame-tailcall.c: Sort headers.
8250 * dwarf-index-write.h: Sort headers.
8251 * dwarf-index-write.c: Sort headers.
8252 * dwarf-index-common.c: Sort headers.
8253 * dwarf-index-cache.h: Sort headers.
8254 * dwarf-index-cache.c: Sort headers.
8255 * dummy-frame.c: Sort headers.
8256 * dtrace-probe.c: Sort headers.
8257 * disasm.h: Sort headers.
8258 * disasm.c: Sort headers.
8259 * disasm-selftests.c: Sort headers.
8260 * dictionary.c: Sort headers.
8261 * dicos-tdep.c: Sort headers.
8262 * demangle.c: Sort headers.
8263 * dcache.h: Sort headers.
8264 * dcache.c: Sort headers.
8265 * darwin-nat.h: Sort headers.
8266 * darwin-nat.c: Sort headers.
8267 * darwin-nat-info.c: Sort headers.
8268 * d-valprint.c: Sort headers.
8269 * d-namespace.c: Sort headers.
8270 * d-lang.c: Sort headers.
8271 * ctf.c: Sort headers.
8272 * csky-tdep.c: Sort headers.
8273 * csky-linux-tdep.c: Sort headers.
8274 * cris-tdep.c: Sort headers.
8275 * cris-linux-tdep.c: Sort headers.
8276 * cp-valprint.c: Sort headers.
8277 * cp-support.c: Sort headers.
8278 * cp-namespace.c: Sort headers.
8279 * cp-abi.c: Sort headers.
8280 * corelow.c: Sort headers.
8281 * corefile.c: Sort headers.
8282 * continuations.c: Sort headers.
8283 * completer.h: Sort headers.
8284 * completer.c: Sort headers.
8285 * complaints.c: Sort headers.
8286 * coffread.c: Sort headers.
8287 * coff-pe-read.c: Sort headers.
8288 * cli-out.h: Sort headers.
8289 * cli-out.c: Sort headers.
8290 * charset.c: Sort headers.
8291 * c-varobj.c: Sort headers.
8292 * c-valprint.c: Sort headers.
8293 * c-typeprint.c: Sort headers.
8294 * c-lang.c: Sort headers.
8295 * buildsym.c: Sort headers.
8296 * buildsym-legacy.c: Sort headers.
8297 * build-id.h: Sort headers.
8298 * build-id.c: Sort headers.
8299 * btrace.c: Sort headers.
8300 * bsd-uthread.c: Sort headers.
8301 * breakpoint.h: Sort headers.
8302 * breakpoint.c: Sort headers.
8303 * break-catch-throw.c: Sort headers.
8304 * break-catch-syscall.c: Sort headers.
8305 * break-catch-sig.c: Sort headers.
8306 * blockframe.c: Sort headers.
8307 * block.c: Sort headers.
8308 * bfin-tdep.c: Sort headers.
8309 * bfin-linux-tdep.c: Sort headers.
8310 * bfd-target.c: Sort headers.
8311 * bcache.c: Sort headers.
8312 * ax-general.c: Sort headers.
8313 * ax-gdb.h: Sort headers.
8314 * ax-gdb.c: Sort headers.
8315 * avr-tdep.c: Sort headers.
8316 * auxv.c: Sort headers.
8317 * auto-load.c: Sort headers.
8318 * arm-wince-tdep.c: Sort headers.
8319 * arm-tdep.c: Sort headers.
8320 * arm-symbian-tdep.c: Sort headers.
8321 * arm-pikeos-tdep.c: Sort headers.
8322 * arm-obsd-tdep.c: Sort headers.
8323 * arm-nbsd-tdep.c: Sort headers.
8324 * arm-nbsd-nat.c: Sort headers.
8325 * arm-linux-tdep.c: Sort headers.
8326 * arm-linux-nat.c: Sort headers.
8327 * arm-fbsd-tdep.c: Sort headers.
8328 * arm-fbsd-nat.c: Sort headers.
8329 * arm-bsd-tdep.c: Sort headers.
8330 * arch-utils.c: Sort headers.
8331 * arc-tdep.c: Sort headers.
8332 * arc-newlib-tdep.c: Sort headers.
8333 * annotate.h: Sort headers.
8334 * annotate.c: Sort headers.
8335 * amd64-windows-tdep.c: Sort headers.
8336 * amd64-windows-nat.c: Sort headers.
8337 * amd64-tdep.c: Sort headers.
8338 * amd64-sol2-tdep.c: Sort headers.
8339 * amd64-obsd-tdep.c: Sort headers.
8340 * amd64-obsd-nat.c: Sort headers.
8341 * amd64-nbsd-tdep.c: Sort headers.
8342 * amd64-nbsd-nat.c: Sort headers.
8343 * amd64-nat.c: Sort headers.
8344 * amd64-linux-tdep.c: Sort headers.
8345 * amd64-linux-nat.c: Sort headers.
8346 * amd64-fbsd-tdep.c: Sort headers.
8347 * amd64-fbsd-nat.c: Sort headers.
8348 * amd64-dicos-tdep.c: Sort headers.
8349 * amd64-darwin-tdep.c: Sort headers.
8350 * amd64-bsd-nat.c: Sort headers.
8351 * alpha-tdep.c: Sort headers.
8352 * alpha-obsd-tdep.c: Sort headers.
8353 * alpha-nbsd-tdep.c: Sort headers.
8354 * alpha-mdebug-tdep.c: Sort headers.
8355 * alpha-linux-tdep.c: Sort headers.
8356 * alpha-linux-nat.c: Sort headers.
8357 * alpha-bsd-tdep.c: Sort headers.
8358 * alpha-bsd-nat.c: Sort headers.
8359 * aix-thread.c: Sort headers.
8360 * agent.c: Sort headers.
8361 * addrmap.c: Sort headers.
8362 * ada-varobj.c: Sort headers.
8363 * ada-valprint.c: Sort headers.
8364 * ada-typeprint.c: Sort headers.
8365 * ada-tasks.c: Sort headers.
8366 * ada-lang.c: Sort headers.
8367 * aarch64-tdep.c: Sort headers.
8368 * aarch64-ravenscar-thread.c: Sort headers.
8369 * aarch64-newlib-tdep.c: Sort headers.
8370 * aarch64-linux-tdep.c: Sort headers.
8371 * aarch64-linux-nat.c: Sort headers.
8372 * aarch64-fbsd-tdep.c: Sort headers.
8373 * aarch64-fbsd-nat.c: Sort headers.
8374 * aarch32-linux-nat.c: Sort headers.
8375
699bd4cf
TT
83762019-04-04 Tom Tromey <tom@tromey.com>
8377
8378 * varobj.c (varobj_create): Update.
8379 * rust-exp.y (struct rust_parser) <update_innermost_block,
8380 lookup_symbol>: New methods.
8381 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8382 Rename.
8383 (rust_parser::rust_lookup_type)
8384 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8385 * printcmd.c (display_command, do_one_display): Update.
8386 * parser-defs.h (struct parser_state) <parser_state>: Add
8387 "tracker" parameter.
8388 (block_tracker): New member.
8389 (class innermost_block_tracker) <innermost_block_tracker>: Add
8390 "types" parameter.
8391 <reset>: Remove method.
8392 (innermost_block): Don't declare.
8393 (null_post_parser): Update.
8394 * parse.c (innermost_block): Remove global.
8395 (write_dollar_variable): Update.
8396 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8397 Remove "tracker_types" parameter.
8398 (parse_expression): Add "tracker" parameter.
8399 (parse_expression_for_completion): Update.
8400 (null_post_parser): Add "tracker" parameter.
8401 * p-exp.y: Update rules.
8402 * m2-exp.y: Update rules.
8403 * language.h (struct language_defn) <la_post_parser>: Add
8404 "tracker" parameter.
8405 * go-exp.y: Update rules.
8406 * f-exp.y: Update rules.
8407 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8408 parameter.
8409 * d-exp.y: Update rules.
8410 * c-exp.y: Update rules.
8411 * breakpoint.c (set_breakpoint_condition): Create an
8412 innermost_block_tracker.
8413 (watch_command_1): Likewise.
8414 * ada-lang.c (resolve): Add "tracker" parameter.
8415 (resolve_subexp): Likewise.
8416 * ada-exp.y (write_var_from_sym): Update.
8417
dac43e32
TT
84182019-04-04 Tom Tromey <tom@tromey.com>
8419
8420 * type-stack.h: New file.
8421 * type-stack.c: New file.
8422 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8423 type-stack.h.
8424 (insert_into_type_stack, insert_type, push_type, push_type_int)
8425 (insert_type_address_space, pop_type, pop_type_int)
8426 (pop_typelist, pop_type_stack, append_type_stack)
8427 (push_type_stack, get_type_stack, push_typelist)
8428 (follow_type_instance_flags, follow_types): Don't declare.
8429 * parse.c (type_stack): Remove global.
8430 (parse_exp_in_context): Update.
8431 (insert_into_type_stack, insert_type, push_type, push_type_int)
8432 (insert_type_address_space, pop_type, pop_type_int)
8433 (pop_typelist, pop_type_stack, append_type_stack)
8434 (push_type_stack, get_type_stack, push_typelist)
8435 (follow_type_instance_flags, follow_types): Remove (moved to
8436 type-stack.c).
8437 * f-exp.y (type_stack): New global.
8438 Update rules.
8439 (push_kind_type, f_parse): Update.
8440 * d-exp.y (type_stack): New global.
8441 Update rules.
8442 (d_parse): Update.
8443 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8444 Update rules.
8445 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8446 (HFILES_NO_SRCDIR): Add type-stack.h.
8447
2a612529
TT
84482019-04-04 Tom Tromey <tom@tromey.com>
8449
8450 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8451 (rust_parser::convert_ast_to_expression, rust_parse)
8452 (rust_lex_test_completion, rust_lex_tests): Update.
8453 * parser-defs.h (struct expr_completion_state): New.
8454 (struct parser_state) <parser_state>: Add completion parameter.
8455 <mark_struct_expression, mark_completion_tag>: New methods.
8456 <parse_completion, m_completion_state>: New members.
8457 (prefixify_expression, null_post_parser): Update.
8458 (mark_struct_expression, mark_completion_tag): Don't declare.
8459 * parse.c (parse_completion, expout_last_struct)
8460 (expout_tag_completion_type, expout_completion_name): Remove
8461 globals.
8462 (parser_state::mark_struct_expression)
8463 (parser_state::mark_completion_tag): Now methods.
8464 (prefixify_expression): Add last_struct parameter.
8465 (prefixify_subexp): Likewise.
8466 (parse_exp_1): Update.
8467 (parse_exp_in_context): Add cstate parameter. Update.
8468 (parse_expression_for_completion): Create an
8469 expr_completion_state.
8470 (null_post_parser): Add "completion" parameter.
8471 * p-exp.y: Update rules.
8472 (yylex): Update.
8473 * language.h (struct language_defn) <la_post_parser>: Add
8474 "completing" parameter.
8475 * go-exp.y: Update rules.
8476 (lex_one_token): Update.
8477 * expression.h (parse_completion): Don't declare.
8478 * d-exp.y: Update rules.
8479 (lex_one_token): Update rules.
8480 * c-exp.y: Update rules.
8481 (lex_one_token): Update.
8482 * ada-lang.c (resolve): Add "parse_completion" parameter.
8483 (resolve_subexp): Likewise.
8484 (ada_resolve_function): Likewise.
8485
43476f0b
TT
84862019-04-04 Tom Tromey <tom@tromey.com>
8487
8488 * parser-defs.h (struct parser_state) <start_arglist,
8489 end_arglist>: New methods.
8490 <arglist_len, m_funcall_chain>: New members.
8491 (arglist_len, start_arglist, end_arglist): Don't declare.
8492 * parse.c (arglist_len, funcall_chain): Remove global.
8493 (start_arglist, end_arglist): Remove functions.
8494 (parse_exp_in_context): Update.
8495 * p-exp.y: Update rules.
8496 * m2-exp.y: Update rules.
8497 * go-exp.y: Update rules.
8498 * f-exp.y: Update rules.
8499 * d-exp.y: Update rules.
8500 * c-exp.y: Update rules.
8501
5776fca3
TT
85022019-04-04 Tom Tromey <tom@tromey.com>
8503
8504 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8505 lex_operator, push_back>: New methods.
8506 Update all rules.
8507 (rust_parser::lex_hex, lex_escape): Rename and update.
8508 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8509 (rust_parser::lex_operator): Rename and update.
8510 (rust_parser::lex_number, rustyylex, rustyyerror)
8511 (rust_lex_test_init, rust_lex_test_sequence)
8512 (rust_lex_test_push_back, rust_lex_tests): Update.
8513 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8514 parameter.
8515 <lexptr, prev_lexptr>: New members.
8516 (lexptr, prev_lexptr): Don't declare.
8517 * parse.c (lexptr, prev_lexptr): Remove globals.
8518 (parse_exp_in_context): Update.
8519 * p-exp.y (yylex, yyerror): Update.
8520 * m2-exp.y (parse_number, yylex, yyerror): Update.
8521 * go-exp.y (lex_one_token, yyerror): Update.
8522 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8523 * d-exp.y (lex_one_token, yyerror): Update.
8524 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8525 (lex_one_token, yyerror): Update.
8526 * ada-lex.l (YY_INPUT): Update.
8527 (rewind_to_char): Update.
8528 * ada-exp.y (yyerror): Update.
8529
8621b685
TT
85302019-04-04 Tom Tromey <tom@tromey.com>
8531
8532 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8533 * parser-defs.h (struct parser_state) <parser_state>: Add new
8534 parameter.
8535 <comma_terminates>: New member.
8536 (comma_terminates): Don't declare global.
8537 * parse.c (comma_terminates): Remove global.
8538 (parse_exp_in_context): Update.
8539 * p-exp.y (yylex): Update.
8540 * m2-exp.y (yylex): Update.
8541 * go-exp.y (lex_one_token): Update.
8542 * f-exp.y (yylex): Update.
8543 * d-exp.y (lex_one_token): Update.
8544 * c-exp.y (lex_one_token): Update.
8545 * ada-lex.l: Update.
8546
28aaf3fd
TT
85472019-04-04 Tom Tromey <tom@tromey.com>
8548
8549 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8550 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8551 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8552 * parser-defs.h (paren_depth): Don't declare.
8553 * parse.c (paren_depth): Remove global.
8554 (parse_exp_in_context): Update.
8555 * p-exp.y (paren_depth): New global.
8556 (pascal_parse): Initialize it.
8557 * m2-exp.y (paren_depth): New global.
8558 (m2_parse): Initialize it.
8559 * go-exp.y (paren_depth): New global.
8560 (go_parse): Initialize it.
8561 * f-exp.y (paren_depth): New global.
8562 (f_parse): Initialize it.
8563 * d-exp.y (paren_depth): New global.
8564 (d_parse): Initialize it.
8565 * c-exp.y (paren_depth): New global.
8566 (c_parse): Initialize it.
8567 * ada-lex.l (paren_depth): New global.
8568 (lexer_init): Initialize it.
8569
1e58a4a4
TT
85702019-04-04 Tom Tromey <tom@tromey.com>
8571
8572 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8573 (rust_parser::convert_ast_to_type)
8574 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8575 * parser-defs.h (struct parser_state) <parser_state>: Add
8576 parameters. Initialize new members.
8577 <expression_context_block, expression_context_pc>: New members.
8578 * parse.c (expression_context_block, expression_context_pc):
8579 Remove globals.
8580 (parse_exp_in_context): Update.
8581 * p-exp.y: Update all rules.
8582 (yylex): Update.
8583 * m2-exp.y: Update all rules.
8584 (yylex): Update.
8585 * go-exp.y (yylex): Update.
8586 * f-exp.y (yylex): Update.
8587 * d-exp.y: Update all rules.
8588 (yylex): Update.
8589 * c-exp.y: Update all rules.
8590 (lex_one_token, classify_name, yylex, c_parse): Update.
8591 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8592
37eedb39
TT
85932019-04-04 Tom Tromey <tom@tromey.com>
8594
8595 * gdbarch.h, gdbarch.c: Rebuild.
8596 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8597 * stap-probe.h:
8598 (struct stap_parse_info): Replace "parser_state" with
8599 "expr_builder".
8600 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8601 (parser_state): New class.
8602 * parse.c (expr_builder): Rename.
8603 (expr_builder::release): Rename.
8604 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8605 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8606 (write_exp_elt_longcst, write_exp_elt_floatcst)
8607 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8608 (write_exp_string_vector, write_exp_bitstring)
8609 (write_exp_msymbol, mark_struct_expression)
8610 (write_dollar_variable)
8611 (insert_type_address_space, increase_expout_size): Replace
8612 "parser_state" with "expr_builder".
8613 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8614 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8615 "parser_state" with "expr_builder".
8616
73923d7e
TT
86172019-04-04 Tom Tromey <tom@tromey.com>
8618
8619 * rust-exp.y: Replace "parse_language" with method call.
8620 * p-exp.y:
8621 (yylex): Replace "parse_language" with method call.
8622 * m2-exp.y:
8623 (yylex): Replace "parse_language" with method call.
8624 * go-exp.y (classify_name): Replace "parse_language" with method
8625 call.
8626 * f-exp.y (yylex): Replace "parse_language" with method call.
8627 * d-exp.y (lex_one_token): Replace "parse_language" with method
8628 call.
8629 * c-exp.y:
8630 (lex_one_token, classify_name, yylex): Replace "parse_language"
8631 with method call.
8632 * ada-exp.y (find_primitive_type, type_char)
8633 (type_system_address): Replace "parse_language" with method call.
8634
fa9f5be6
TT
86352019-04-04 Tom Tromey <tom@tromey.com>
8636
8637 * rust-exp.y: Replace "parse_gdbarch" with method call.
8638 * parse.c (write_dollar_variable, insert_type_address_space):
8639 Replace "parse_gdbarch" with method call.
8640 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8641 call.
8642 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8643 call.
8644 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8645 "parse_gdbarch" with method call.
8646 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8647 with method call.
8648 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8649 "parse_gdbarch" with method call.
8650 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8651 "parse_gdbarch" with method call.
8652 * c-exp.y (parse_type, parse_number, classify_name): Replace
8653 "parse_gdbarch" with method call.
8654 * ada-lex.l: Replace "parse_gdbarch" with method call.
8655 * ada-exp.y (parse_type, find_primitive_type, type_char)
8656 (type_system_address): Replace "parse_gdbarch" with method call.
8657
1201a264
TT
86582019-04-04 Tom Tromey <tom@tromey.com>
8659
8660 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8661 * stap-probe.c (stap_parse_argument): Update.
8662 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8663 initial_size parameter.
8664 * rust-exp.y (rust_lex_tests): Update.
8665 * parse.c (parser_state): Update.
8666 (parse_exp_in_context): Update.
8667 * parser-defs.h (struct parser_state) <parser_state>: Remove
8668 "initial_size" parameter.
8669
e3980ce2
TT
86702019-04-04 Tom Tromey <tom@tromey.com>
8671
8672 * parser-defs.h (increase_expout_size): Don't declare.
8673 * parse.c (increase_expout_size): Now static.
8674
e9f8e3f1
TS
86752019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8676
8677 * gnu-nat.c (gnu_nat_target::wait): Fix
8678 target_waitstatus_to_string call.
8679
d7df6549
AB
86802019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8681
8682 * eval.c (evaluate_subexp_standard): Handle internal functions
8683 during Fortran function call handling.
8684
8bdc1658
AB
86852019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8686
8687 * NEWS: Mention new internal functions.
8688 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8689 (read_base_type): Use dwarf2_init_complex_target_type.
8690 * value.c (creal_internal_fn): New function.
8691 (cimag_internal_fn): New function.
8692 (_initialize_values): Register new internal functions.
8693
c29705b7
PW
86942019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8695
8696 * infrun.c (stop_all_threads): If debug_infrun, always
8697 trace the wait status after wait_one, using
8698 target_waitstatus_to_string and target_pid_to_str.
8699 (handle_inferior_event): Replace various trace of
8700 wait status kind by a single trace.
8701 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8702 wait status kind image by target_waitstatus_to_string.
8703 * target/waitstatus.c (target_waitstatus_to_string): Fix
8704 obsolete comment.
8705
05caa1d2
TT
87062019-04-01 Tom Tromey <tromey@adacore.com>
8707
8708 PR symtab/23331:
8709 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8710
9d1447e0
SDJ
87112019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8712 Pedro Alves <palves@redhat.com>
8713
8714 * top.c (quit_force): Call 'finalize_values'.
8715 * value.c (finalize_values): New function.
8716 * value.h (finalize_values): Declare.
8717
7734102d
EZ
87182019-03-30 Eli Zaretskii <eliz@gnu.org>
8719
8720 * NEWS: Announce $_gdb_major and $_gdb_minor.
8721
8722 * top.c (init_gdb_version_vars): New function.
8723 (gdb_init): Call init_gdb_version_vars.
8724
188e1fa9
TT
87252019-03-29 Tom Tromey <tromey@adacore.com>
8726
8727 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8728 help text. Remove dead code.
8729
2880242d
KS
87302019-03-29 Keith Seitz <keiths@redhat.com>
8731
8732 From Siddhesh Poyarekar:
8733 * f-lang.h (f77_get_upperbound): Return LONGEST.
8734 (f77_get_lowerbound): Likewise.
8735 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8736 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8737 print them.
8738 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8739 plongest to format print it.
8740 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8741 (f77_get_upperbound): Likewise.
8742 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8743 LOWER_BOUND to LONGEST.
8744 (f77_create_arrayprint_offset_tbl): Likewise.
8745
cc1defb1
KS
87462019-03-29 Keith Seitz <keiths@redhat.com>
8747
8748 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8749 %s/pulongest for TYPE_LENGTH instead of %d in format
8750 strings.
8751 * ada-typerint.c (ada_print_type): Likewise.
8752 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8753 * compile/compile-c-support.c (generate_register_struct): Likewise.
8754 * gdbtypes.c (recursive_dump_type): Likewise.
8755 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8756 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8757 instead of %d in format strings.
8758 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8759 to std::min to ULONGEST.
8760 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8761 instead of %d in format strings.
8762 * tracepoint.c (info_scope_command): Likewise.
8763 * typeprint.c (print_offset_data::update)
8764 (print_offset_data::finish): Likewise.
8765 * xtensa-tdep.c (xtensa_store_return_value)
8766 (xtensa_push_dummy_call): Likewise.
8767
e432ccf1
JT
87682019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8769
8770 * windows-nat.c (display_selector): Fixed format specifications
8771 for 64-bit Cygwin.
8772
65d2b333
PW
87732019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8774
8775 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8776
f489207e
SL
87772019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8778
8779 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8780 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8781 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8782 (nios2_linux_init_abi): Install it.
8783
bffa1015
AH
87842019-03-28 Alan Hayward <alan.hayward@arm.com>
8785
8786 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8787
fc96163a
AH
87882019-03-28 Alan Hayward <alan.hayward@arm.com>
8789
8790 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8791
20dc7e9b
PW
87922019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8793 Tom Tromey <tromey@adacore.com>
8794
8795 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8796
7f5331a8
JB
87972019-03-26 Joel Brobecker <brobecker@adacore.com>
8798
8799 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8800 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8801 method to compute the bounds of range types. Also print "[evaluated]"
8802 if the bounds' values come from a dynamic evaluation.
8803
18c77628
AB
88042019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8805
8806 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8807 whitespace when pretty printing is on.
8808
53c973f2
AH
88092019-03-26 Alan Hayward <alan.hayward@arm.com>
8810
e79be6e5 8811 * ppc-linux-nat.c: Add include.
53c973f2 8812
d851aa71
AH
88132019-03-26 Alan Hayward <alan.hayward@arm.com>
8814
e79be6e5 8815 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 8816
2fe7bab7
AH
88172019-03-26 Alan Hayward <alan.hayward@arm.com>
8818
e79be6e5 8819 * arm-linux-nat.c: Add include.
2fe7bab7 8820
068ef30e
SM
88212019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8822
8823 * source-cache.c (source_cache::get_source_lines): Re-read
8824 fullname after calling open_source_file.
8825
81a24d04
JB
88262019-03-25 John Baldwin <jhb@FreeBSD.org>
8827
8828 * NEWS: Mention TLS support for FreeBSD.
8829
79e7ae11
TT
88302019-03-25 Tom Tromey <tromey@adacore.com>
8831
8832 * minsyms.c (BUNCH_SIZE): Update comment.
8833 (~minimal_symbol_reader): Remove old comment.
8834 (compact_minimal_symbols): Update comment.
8835 (minimal_symbol_reader::install): Remove old comment. Update
8836 other comments.
8837
d45963c2
AH
88382019-03-25 Alan Hayward <alan.hayward@arm.com>
8839
8840 * s390-linux-nat.c: Add include.
8841
0f83012e
AH
88422019-03-25 Alan Hayward <alan.hayward@arm.com>
8843
8844 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8845 Call linux_get_hwcap.
8846 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8847 Likewise.
8848 (aarch64_linux_get_hwcap): Remove function.
8849 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8850 declaration.
8851 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8852 linux_get_hwcap.
8853 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8854 * linux-tdep.c (linux_get_hwcap): Add function.
8855 (linux_get_hwcap2): Likewise.
8856 * linux-tdep.h (linux_get_hwcap): Add declaration.
8857 (linux_get_hwcap2): Likewise.
8858 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8859 (ppc_linux_get_hwcap2): Likewise.
8860 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8861 linux_get_hwcap.
8862 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8863 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8864 (ppc_linux_nat_target::read_description): Likewise.
8865 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8866 * s390-linux-nat.c: Likewise.
8867 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8868
6640a367
TT
88692019-03-24 Tom Tromey <tom@tromey.com>
8870
8871 * ada-lang.c (standard_lookup): Simplify initialization.
8872 (ada_lookup_symbol_nonlocal): Simplify return.
8873 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8874 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8875 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8876 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8877 initialization.
8878 * solib.c (solib_global_lookup): Simplify.
8879 * symtab.c (null_block_symbol): Remove.
8880 (symbol_cache_lookup): Simplify returns.
8881 (lookup_language_this): Simplify returns.
8882 (lookup_symbol_aux): Simplify return.
8883 (lookup_local_symbol): Simplify returns.
8884 (lookup_global_symbol_from_objfile): Simplify return.
8885 (lookup_symbol_in_objfile_symtabs)
8886 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8887 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8888 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8889 * cp-namespace.c (cp_lookup_bare_symbol)
8890 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8891 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8892 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8893 (cp_lookup_symbol_via_imports): Simplify initialization.
8894 (find_symbol_in_baseclass): Likewise.
8895 * symtab.h (null_block_symbol): Remove.
8896 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8897 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8898 (d_lookup_symbol_module): Likewise.
8899 (find_symbol_in_baseclass): Simplify initialization.
8900
a930ebcd
TT
89012019-03-24 Tom Tromey <tom@tromey.com>
8902
8903 * expression.h: Don't include symtab.h.
8904 (struct block): Forward declare.
8905
582942f4
TT
89062019-03-24 Tom Tromey <tom@tromey.com>
8907
8908 * c-exp.y (typebase): Remove casts.
8909 * gdbtypes.c (lookup_unsigned_typename, )
8910 (lookup_signed_typename): Remove cast.
8911 * eval.c (parse_to_comma_and_eval): Remove cast.
8912 * parse.c (write_dollar_variable): Remove cast.
8913 * block.h (struct block) <superblock>: Now const.
8914 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8915 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8916 (map_block): Make "block" const.
8917 * symfile.h (struct quick_symbol_functions)
8918 <map_matching_symbols>: Constify block argument to "callback".
8919 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8920 const.
8921 (find_pc_sect_compunit_symtab): Make "b" const.
8922 (find_symbol_at_address): Likewise.
8923 (search_symbols): Likewise.
8924 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8925 (dw2_debug_names_lookup_symbol): Likewise.
8926 (dw2_map_matching_symbols): Update.
8927 * p-valprint.c (pascal_val_print): Remove "block".
8928 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8929 (aux_add_nonlocal_symbols): Make "block" const.
8930 (resolve_subexp): Remove cast.
8931 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8932 const.
8933 (iterate_over_file_blocks): Likewise.
8934 * f-exp.y (%union) <bval>: Remove.
8935 * coffread.c (patch_opaque_types): Make "b" const.
8936 * spu-tdep.c (spu_catch_start): Make "block" const.
8937 * c-valprint.c (print_unpacked_pointer): Remove "block".
8938 * symmisc.c (dump_symtab_1): Make "b" const.
8939 (block_depth): Make "block" const.
8940 * d-exp.y (%union) <bval>: Remove.
8941 * cp-support.h (cp_lookup_rtti_type): Update.
8942 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8943 * psymtab.c (psym_lookup_symbol): Make "block" const.
8944 (maintenance_check_psymtabs): Make "b" const.
8945 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8946 (enumerate_locals, enumerate_args): Update.
8947 * python/py-symtab.c (stpy_global_block): Make "block" const.
8948 (stpy_static_block): Likewise.
8949 * inline-frame.c (block_starting_point_at): Make "new_block"
8950 const.
8951 * block.c (find_block_in_blockvector): Make return type const.
8952 (blockvector_for_pc_sect): Make "b" const.
8953 (find_block_in_blockvector): Make "b" const.
8954
7ad417dd
TT
89552019-03-23 Tom Tromey <tom@tromey.com>
8956
8957 * varobj.c (varobj_create): Update.
8958 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8959 * printcmd.c (display_command, do_one_display): Don't reset
8960 innermost_block.
8961 * parser-defs.h (enum innermost_block_tracker_type): Move to
8962 expression.h.
8963 (innermost_block): Update comment.
8964 * parse.c (parse_exp_1): Add tracker_types parameter.
8965 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8966 tracker_types parameter. Reset innermost_block.
8967 (parse_exp_in_context): Remove.
8968 (parse_expression_for_completion): Update.
8969 * objfiles.c (~objfile): Don't reset expression_context_block or
8970 innermost_block.
8971 * expression.h (enum innermost_block_tracker_type): Move from
8972 parser-defs.h.
8973 (parse_exp_1): Add tracker_types parameter.
8974 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8975 reset innermost_block.
8976
b366c208
TT
89772019-03-23 Tom Tromey <tom@tromey.com>
8978
8979 * objfiles.h: Include bcache.h.
8980
9bb9b2f9
TT
89812019-03-23 Tom Tromey <tom@tromey.com>
8982
8983 * linespec.c (get_current_search_block): Use
8984 scoped_restore_current_language.
8985 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8986
59c28372
AH
89872019-03-22 Alan Hayward <alan.hayward@arm.com>
8988 Jiong Wang <jiong.wang@arm.com>
8989
8990 * aarch64-linux-tdep.c
8991 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8992 section.
8993 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8994
17e116a7
AH
89952019-03-22 Alan Hayward <alan.hayward@arm.com>
8996 Jiong Wang <jiong.wang@arm.com>
8997
8998 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8999 instructions.
9000 (aarch64_analyze_prologue_test): Add PACIASP test.
9001 (aarch64_prologue_prev_register): Unmask PC value.
9002
11e1b75f
AH
90032019-03-22 Alan Hayward <alan.hayward@arm.com>
9004 Jiong Wang <jiong.wang@arm.com>
9005
9006 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9007 (aarch64_dwarf2_prev_register): Unmask PC value.
9008 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9009 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9010 DW_CFA_AARCH64_negate_ra_state.
9011 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9012
34dcc7cf
AH
90132019-03-22 Alan Hayward <alan.hayward@arm.com>
9014 Jiong Wang <jiong.wang@arm.com>
9015
9016 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9017 registers.
9018 (aarch64_pseudo_register_name): Likewise.
9019 (aarch64_pseudo_register_type): Likewise.
9020 (aarch64_pseudo_register_reggroup_p): Likewise.
9021 (aarch64_gdbarch_init): Add pauth registers.
9022 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9023 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9024 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9025 (struct gdbarch_tdep): Add regnum for ra_state.
9026
1ef53e6b
AH
90272019-03-22 Alan Hayward <alan.hayward@arm.com>
9028 Jiong Wang <jiong.wang@arm.com>
9029
9030 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9031
76bed0fd
AH
90322019-03-22 Alan Hayward <alan.hayward@arm.com>
9033 Jiong Wang <jiong.wang@arm.com>
9034
9035 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9036 function.
9037 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9038 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9039 (aarch64_gdbarch_init): Add puth registers.
9040 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9041 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9042 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9043
ee4fbcfa
AH
90442019-03-22 Alan Hayward <alan.hayward@arm.com>
9045 Jiong Wang <jiong.wang@arm.com>
9046
9047 * aarch64-linux-nat.c
9048 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9049 * aarch64-linux-tdep.c
9050 (aarch64_linux_core_read_description): Likewise.
9051 (aarch64_linux_get_hwcap): New function.
9052 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9053 (aarch64_linux_get_hwcap): New declaration.
9054
6dc0ebde
AH
90552019-03-22 Alan Hayward <alan.hayward@arm.com>
9056 Jiong Wang <jiong.wang@arm.com>
9057
9058 * aarch64-linux-nat.c
9059 (aarch64_linux_nat_target::read_description): Add pauth param.
9060 * aarch64-linux-tdep.c
9061 (aarch64_linux_core_read_description): Likewise.
9062 * aarch64-tdep.c (struct target_desc): Add in pauth.
9063 (aarch64_read_description): Add pauth param.
9064 (aarch64_gdbarch_init): Likewise.
9065 * aarch64-tdep.h (aarch64_read_description): Likewise.
9066 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9067 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9068 * features/Makefile: Add new files.
9069 * features/aarch64-pauth.c: New file.
9070 * features/aarch64-pauth.xml: New file.
9071
595915c1
TT
90722019-03-20 Tom Tromey <tromey@adacore.com>
9073
9074 * infrun.c (handle_inferior_event): Rename from
9075 handle_inferior_event_1. Create a scoped_value_mark.
9076 (handle_inferior_event): Remove.
9077
4c7d57e7
TT
90782019-03-19 Tom Tromey <tromey@adacore.com>
9079
9080 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9081 * infrun.h (print_stop_event): Add "displays" parameter.
9082 * infrun.c (print_stop_event): Add "displays" parameter.
9083
cb246234
PA
90842019-03-19 Pedro Alves <palves@redhat.com>
9085
9086 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9087 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9088 to -1. Fix TABs vs spaces.
9089 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9090 * tui/tui-out.h (tui_ui_out) Add intro comments.
9091 <m_line, m_start_of_line>: In-class initialize, and add describing
9092 comment.
9093
3a0e45b2
AH
90942019-03-18 Alan Hayward <alan.hayward@arm.com>
9095
9096 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9097 variable names.
9098 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9099
5371b850
PA
91002019-03-18 Pedro Alves <palves@redhat.com>
9101 Eli Zaretskii <eliz@gnu.org>
9102
9103 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9104 m_line and m_start_of_line.
9105
b17c4cd0
EZ
91062019-03-18 Eli Zaretskii <eliz@gnu.org>
9107
9108 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9109 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9110 it returns a newline. This fixes a regression in TU mode, whereby
9111 the next line is output on the same screen line as the user input.
9112
4bd56d18
TT
91132019-03-18 Tom Tromey <tromey@adacore.com>
9114
9115 * minsyms.c (minimal_symbol_reader::install): Remove call to
9116 obstack_blank.
9117
55c10aca
PA
91182019-03-18 Pedro Alves <palves@redhat.com>
9119
9120 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9121 New globals.
9122 (apply_style): New, factored out from ...
9123 (apply_ansi_escape): ... this. Handle reverse video mode.
9124 (tui_set_reverse_mode): New function.
9125 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9126 * tui/tui-winsource.c (tui_show_source_line): Use
9127 tui_set_reverse_mode instead of setting A_STANDOUT.
9128 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9129 New setter methods.
9130
647bb750
HD
91312019-03-18 Hannes Domani <ssbssa@yahoo.de>
9132
9133 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9134 Handle tabs.
9135
bff8c71f
TT
91362019-03-18 Tom Tromey <tromey@adacore.com>
9137
9138 * ada-lang.c (empty_array): Add "high" parameter.
9139 (ada_evaluate_subexp): Update.
9140
58785d98
ST
91412019-03-17 Sergei Trofimovich <siarheit@google.com>
9142
9143 * unittests/string_view-selftests.c: Define
9144 _initialize_string_view_selftests unconditionally.
9145
d4cbef22
ВМ
91462019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9147
9148 PR gdb/24350
9149 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9150
fce4c071
ВМ
91512019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9152
9153 PR gdb/24351
9154 * windows-nat.c (display_selector): Fix format specifiers.
9155
f7f0a123
EZ
91562019-03-17 Eli Zaretskii <eliz@gnu.org>
9157
9158 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9159 tui_refill_source_window instead of tui_refresh_win, to update the
9160 current execution line. This fixes redisplay of the current line
9161 when stepping through the code with "next" or "step".
9162
ab42892f
EZ
91632019-03-16 Eli Zaretskii <eliz@gnu.org>
9164
9165 * source-cache.c (source_cache::get_source_lines): Call
9166 find_source_lines to initialize s->nlines. This fixes vertical
9167 scrolling of TUI source window when the DOWN arrow is pressed.
9168
8d8c087f
PW
91692019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9170
9171 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9172 linux-thread-db.c (_initialize_thread_db): Likewise.
9173
798e1c30
EZ
91742019-03-16 Eli Zaretskii <eliz@gnu.org>
9175
9176 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9177 wclrtoeol in tui_show_source_line". This reverts changes made in
9178 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9179
eefba3da
TT
91802019-03-15 Tom Tromey <tom@tromey.com>
9181
9182 * symtab.h (struct minimal_symbol): Derive from
9183 general_symbol_info.
9184 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9185 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9186 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9187 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9188 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9189 (MSYMBOL_SEARCH_NAME): Update.
9190 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9191 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9192 * minsyms.c (minimal_symbol_reader::record_full): Update.
9193
0de2420c
TT
91942019-03-15 Tom Tromey <tom@tromey.com>
9195
9196 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9197
042d75e4
TT
91982019-03-15 Tom Tromey <tom@tromey.com>
9199
9200 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9201 unique_xmalloc_ptr.
9202 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9203 Update.
9204 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9205 (build_minimal_symbol_hash_tables)
9206 (minimal_symbol_reader::install): Update.
9207
db92718b
TT
92082019-03-15 Tom Tromey <tom@tromey.com>
9209
9210 * symtab.c (create_demangled_names_hash): Update.
9211 (symbol_set_names): Update.
9212 * objfiles.h (struct objfile_per_bfd_storage)
9213 <demangled_names_hash>: Now an htab_up.
9214 * objfiles.c (objfile_per_bfd_storage): Simplify.
9215
d6797f46
TT
92162019-03-15 Tom Tromey <tom@tromey.com>
9217
9218 * objfiles.h (struct objfile_per_bfd_storage): Declare
9219 destructor.
9220 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9221 New.
9222 (get_objfile_bfd_data): Use new. Don't initialize
9223 language_of_main.
9224 (free_objfile_per_bfd_storage): Remove.
9225 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9226
741d7538
TT
92272019-03-15 Tom Tromey <tom@tromey.com>
9228
9229 * symfile.c (reread_symbols): Update.
9230 * objfiles.c (objfile::objfile): Update.
9231 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9232 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9233 comment.
9234 (minimal_symbol_reader::install): Update.
9235 (terminate_minimal_symbol_table): Remove.
9236 * jit.c (jit_object_close_impl): Update.
9237
788c80d1
TT
92382019-03-15 Tom Tromey <tom@tromey.com>
9239
9240 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9241 initializations.
9242
1b7a07cb
TT
92432019-03-15 Tom Tromey <tom@tromey.com>
9244
9245 * objfiles.h (struct objfile_per_bfd_storage)
9246 <demangled_hash_languages>: Now a bitset.
9247 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9248 (lookup_minimal_symbol): Update.
9249
3db066bc
TT
92502019-03-15 Tom Tromey <tom@tromey.com>
9251
9252 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9253 Don't return the symbol.
9254 * coffread.c (record_minimal_symbol): Use record_full.
9255
3fff2c37
EZ
92562019-03-14 Eli Zaretskii <eliz@gnu.org>
9257
9258 The MS-Windows port of ncurses fails to switch to a color pair if
9259 one or both of the colors are the implicit default colors. This
9260 change records the default colors when TUI is initialized, and
9261 then specifies them explicitly when a color pair uses the default
9262 colors. This allows color styling in TUI mode on MS-Windows.
9263
9264 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9265 ncurses_norm_attr.
9266 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9267 colors in ncurses_norm_attr.
9268 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9269 "none", replace it with the default color recorded in
9270 ncurses_norm_attr.
9271
3b336828
TT
92722019-03-14 Tom Tromey <tromey@adacore.com>
9273
9274 * source-cache.h (class source_cache) <get_source_lines>: Return
9275 std::string.
9276 * source-cache.c (source_cache::extract_lines): Handle case where
9277 first_pos==npos. Return std::string.
9278 (source_cache::get_source_lines): Update.
9279
d085f989
TT
92802019-03-14 Tom Tromey <tromey@adacore.com>
9281
9282 * NEWS: Add item for "style sources" commands.
9283 * source-cache.c (source_cache::get_source_lines): Check
9284 source_styling.
9285 * cli/cli-style.c (source_styling): New global.
9286 (_initialize_cli_style): Add "style sources" commands.
9287 (show_style_sources): New function.
9288 * cli/cli-style.h (source_styling): Declare.
9289
6f11e682
TT
92902019-03-14 Pedro Alves <palves@redhat.com>
9291 Tom Tromey <tromey@adacore.com>
9292
9293 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9294 * tui/tui-winsource.c (tui_refill_source_window): New function,
9295 from...
9296 (tui_horizontal_source_scroll): ... here. Move some logic.
9297 * cli/cli-style.c (set_style_enabled): Notify new observable.
9298 * tui/tui-hooks.c (tui_redisplay_source): New function.
9299 (tui_attach_detach_observers): Attach or detach
9300 tui_redisplay_source.
9301 * observable.h (source_styling_changed): New observable.
9302 * observable.c: Define source_styling_changed observable.
9303
a068643d
TT
93042019-03-13 Tom Tromey <tromey@adacore.com>
9305
9306 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9307 (i386_gnu_nat_target::store_registers): Update.
9308 * target-debug.h (target_debug_print_std_string): New macro.
9309 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9310 * windows-tdep.c (display_one_tib): Update.
9311 * tui/tui-stack.c (tui_make_status_line): Update.
9312 * top.c (print_inferior_quit_action): Update.
9313 * thread.c (thr_try_catch_cmd): Update.
9314 (add_thread_with_info): Update.
9315 (thread_target_id_str): Update.
9316 (thr_try_catch_cmd): Update.
9317 (thread_command): Update.
9318 (thread_find_command): Update.
9319 * record-btrace.c (record_btrace_target::info_record)
9320 (record_btrace_resume_thread, record_btrace_target::resume)
9321 (record_btrace_cancel_resume, record_btrace_step_thread)
9322 (record_btrace_target::wait, record_btrace_target::wait)
9323 (record_btrace_target::wait, record_btrace_target::stop): Update.
9324 * progspace.c (print_program_space): Update.
9325 * process-stratum-target.c
9326 (process_stratum_target::thread_address_space): Update.
9327 * linux-fork.c (linux_fork_mourn_inferior)
9328 (detach_checkpoint_command, info_checkpoints_command)
9329 (linux_fork_context): Update.
9330 (linux_fork_detach): Update.
9331 (class scoped_switch_fork_info): Update.
9332 (delete_checkpoint_command): Update.
9333 * infrun.c (follow_fork_inferior): Update.
9334 (follow_fork_inferior): Update.
9335 (proceed_after_vfork_done): Update.
9336 (handle_vfork_child_exec_or_exit): Update.
9337 (follow_exec): Update.
9338 (displaced_step_prepare_throw): Update.
9339 (displaced_step_restore): Update.
9340 (start_step_over): Update.
9341 (resume_1): Update.
9342 (clear_proceed_status_thread): Update.
9343 (proceed): Update.
9344 (print_target_wait_results): Update.
9345 (do_target_wait): Update.
9346 (context_switch): Update.
9347 (stop_all_threads): Update.
9348 (restart_threads): Update.
9349 (finish_step_over): Update.
9350 (handle_signal_stop): Update.
9351 (switch_back_to_stepped_thread): Update.
9352 (keep_going_pass_signal): Update.
9353 (print_exited_reason): Update.
9354 (normal_stop): Update.
9355 * inferior.c (inferior_pid_to_str): Change return type.
9356 (print_selected_inferior): Update.
9357 (add_inferior): Update.
9358 (detach_inferior): Update.
9359 * dummy-frame.c (fprint_dummy_frames): Update.
9360 * dcache.c (dcache_info_1): Update.
9361 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9362 (btrace_fetch, btrace_clear): Update.
9363 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9364 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9365 type.
9366 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9367 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9368 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9369 * gdbarch.c, gdbarch.h: Rebuild.
9370 * gdbarch.sh (core_pid_to_str): Change return type.
9371 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9372 return type.
9373 (windows_nat_target::pid_to_str): Change return type.
9374 (windows_delete_thread): Update.
9375 (windows_nat_target::attach): Update.
9376 (windows_nat_target::files_info): Update.
9377 * target-delegates.c: Rebuild.
9378 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9379 return type.
9380 (sol_thread_target::pid_to_str): Change return type.
9381 * remote.c (class remote_target) <pid_to_str>: Change return
9382 type.
9383 (remote_target::pid_to_str): Change return type.
9384 (extended_remote_target::attach, remote_target::remote_stop_ns)
9385 (remote_target::remote_notif_remove_queued_reply)
9386 (remote_target::push_stop_reply, remote_target::disable_btrace):
9387 Update.
9388 (extended_remote_target::attach): Update.
9389 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9390 type.
9391 (gdbsim_target::pid_to_str): Change return type.
9392 * ravenscar-thread.c (struct ravenscar_thread_target)
9393 <pid_to_str>: Change return type.
9394 (ravenscar_thread_target::pid_to_str): Change return type.
9395 * procfs.c (class procfs_target) <pid_to_str>: Change return
9396 type.
9397 (procfs_target::pid_to_str): Change return type.
9398 (procfs_target::attach): Update.
9399 (procfs_target::detach): Update.
9400 (procfs_target::fetch_registers): Update.
9401 (procfs_target::store_registers): Update.
9402 (procfs_target::wait): Update.
9403 (procfs_target::files_info): Update.
9404 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9405 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9406 return type.
9407 (nto_procfs_target::pid_to_str): Change return type.
9408 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9409 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9410 return type.
9411 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9412 (exit_lwp): Update.
9413 (attach_proc_task_lwp_callback, get_detach_signal)
9414 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9415 (linux_nat_target::resume, wait_lwp, stop_callback)
9416 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9417 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9418 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9419 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9420 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9421 type.
9422 (inf_ptrace_target::attach): Update.
9423 (inf_ptrace_target::files_info): Update.
9424 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9425 type.
9426 (go32_nat_target::pid_to_str): Change return type.
9427 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9428 (gnu_nat_target::wait): Update.
9429 (gnu_nat_target::wait): Update.
9430 (gnu_nat_target::resume): Update.
9431 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9432 (fbsd_nat_target::wait): Update.
9433 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9434 type.
9435 (darwin_nat_target::attach): Update.
9436 * corelow.c (class core_target) <pid_to_str>: Change return type.
9437 (core_target::pid_to_str): Change return type.
9438 * target.c (normal_pid_to_str): Change return type.
9439 (default_pid_to_str): Likewise.
9440 (target_pid_to_str): Change return type.
9441 (target_translate_tls_address): Update.
9442 (target_announce_detach): Update.
9443 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9444 return type.
9445 (bsd_uthread_target::pid_to_str): Change return type.
9446 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9447 type.
9448 (bsd_kvm_target::pid_to_str): Change return type.
9449 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9450 return type.
9451 (aix_thread_target::pid_to_str): Change return type.
9452 * target.h (struct target_ops) <pid_to_str>: Change return type.
9453 (target_pid_to_str, normal_pid_to_str): Likewise.
9454 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9455 type.
9456 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9457 type.
9458 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9459 return type.
9460 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9461 type.
9462 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9463 type.
9464 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9465 return type.
9466
b4be1b06
SM
94672019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9468
9469 * NEWS: Mention that the new default MI version is 3. Mention
9470 changes to the output of commands and events that deal with
9471 multi-location breakpoints.
9472 * breakpoint.c: Include "mi/mi-out.h".
9473 (print_one_breakpoint): Change output syntax if using MI version
9474 >= 3.
9475 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9476 New.
9477 (mi_multi_location_breakpoint_output_fixed): New.
9478 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9479 (mi_cmd_fix_multi_location_breakpoint_output): New.
9480 (mi_multi_location_breakpoint_output_fixed): New.
9481 * mi/mi-cmds.c (mi_cmds): Register command
9482 -fix-multi-location-breakpoint-output.
9483 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9484 interpreter "mi".
9485
8e5e5494
SM
94862019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9487
9488 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9489 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9490 instantiate mi_ui_out based on interpreter name.
9491 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9492 * mi/mi-main.c (mi_load_progress): Likewise.
9493
197df35e
JB
94942019-03-12 John Baldwin <jhb@FreeBSD.org>
9495
9496 * NEWS: Combine separate "New targets" sections for 8.3.
9497
8399425f
JB
94982019-03-12 John Baldwin <jhb@FreeBSD.org>
9499
9500 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9501 (ppcfbsd_init_abi): Install gdbarch
9502 "fetch_tls_load_module_address" and "get_thread_local_address"
9503 methods.
9504
b0f87ed0
JB
95052019-03-12 John Baldwin <jhb@FreeBSD.org>
9506
9507 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9508 (riscv_fbsd_init_abi): Install gdbarch
9509 "fetch_tls_load_module_address" and "get_thread_local_address"
9510 methods.
9511
ce25aa57
JB
95122019-03-12 John Baldwin <jhb@FreeBSD.org>
9513
9514 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9515 (i386fbsd_init_abi): Install gdbarch
9516 "fetch_tls_load_module_address" and "get_thread_local_address"
9517 methods.
9518
f5424cfa
JB
95192019-03-12 John Baldwin <jhb@FreeBSD.org>
9520
9521 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9522 (amd64fbsd_init_abi): Install gdbarch
9523 "fetch_tls_load_module_address" and "get_thread_local_address"
9524 methods.
9525
945f3901
JB
95262019-03-12 John Baldwin <jhb@FreeBSD.org>
9527
9528 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9529 (struct fbsd_pspace_data): New type.
9530 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9531 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9532 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9533 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9534 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9535
ef0bd204
JB
95362019-03-12 John Baldwin <jhb@FreeBSD.org>
9537
9538 * gdbtypes.c (lookup_struct_elt): New function.
9539 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9540 * gdbtypes.h (struct struct_elt): New type.
9541 (lookup_struct_elt): New prototype.
9542
36c53a02
JB
95432019-03-12 John Baldwin <jhb@FreeBSD.org>
9544
9545 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9546 remove disabled code block.
9547
6e056c81
JB
95482019-03-12 John Baldwin <jhb@FreeBSD.org>
9549
9550 * gdbarch.sh (get_thread_local_address): New method.
9551 * gdbarch.h, gdbarch.c: Regenerate.
9552 * target.c (target_translate_tls_address): Use
9553 gdbarch_get_thread_local_address if present instead of
9554 target::get_thread_local_address.
9555
cd250a18
JB
95562019-03-12 John Baldwin <jhb@FreeBSD.org>
9557
9558 * target.h (target::get_thread_local_address): Update comment.
9559
df22c1e5
JB
95602019-03-12 John Baldwin <jhb@FreeBSD.org>
9561
9562 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9563 objfile->separate_debug_objfile_backlink if not NULL.
9564
dd6876c9
JB
95652019-03-12 John Baldwin <jhb@FreeBSD.org>
9566
9567 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9568 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9569 (amd64bsd_store_inferior_registers): Likewise.
9570 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9571 Enable segment base registers.
9572 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9573 PT_GETFSBASE and PT_GETGSBASE.
9574 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9575 PT_SETGSBASE.
9576 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9577 segment base registers.
9578 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9579
1163a4b7
JB
95802019-03-12 John Baldwin <jhb@FreeBSD.org>
9581
9582 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9583 Update calls to i386_target_description to add 'segments'
9584 parameter.
9585 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9586 add segment base registers.
9587 * arch/i386.c (i386_create_target_description): Add 'segments'
9588 parameter to enable segment base registers.
9589 * arch/i386.h (i386_create_target_description): Likewise.
9590 * features/i386/32bit-segments.xml: New file.
9591 * features/i386/32bit-segments.c: Generate.
9592 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9593 call to i386_target_description to add 'segments' parameter.
9594 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9595 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9596 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9597 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9598 if feature is present.
9599 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9600 Add 'segments' parameter to call to i386_target_description.
9601 (i386_target_description): Add 'segments' parameter to enable
9602 segment base registers.
9603 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9604 to call to i386_target_description.
9605 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9606 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9607 Define I386_NUM_REGS.
9608 (i386_target_description): Add 'segments' parameter to enable
9609 segment base registers.
9610
3a350822
EZ
96112019-03-12 Eli Zaretskii <eliz@gnu.org>
9612
9613 PR/24325
9614 * source-cache.c: #undef open and close, to avoid unresolved
9615 externals during linking.
9616
ffdd69cf
TT
96172019-03-12 Tom Tromey <tromey@adacore.com>
9618
9619 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9620 const. Add initializers.
9621 (_initialize_remote): Don't initialize ptid globals.
9622
ec148c57
PA
96232019-03-12 Pedro Alves <palves@redhat.com>
9624
9625 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9626
32764270
PA
96272019-03-12 Pedro Alves <palves@redhat.com>
9628
9629 * cp-name-parser.y (main): Remove unused 'len' variable.
9630
17547186
TT
96312019-03-12 Tom Tromey <tromey@adacore.com>
9632
9633 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9634 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9635
d3a70e03
TT
96362019-03-12 Tom Tromey <tromey@adacore.com>
9637
9638 * linux-nat.c (iterate_over_lwps): Update.
9639 (stop_callback): Remove parameter.
9640 (stop_wait_callback, detach_callback, resume_set_callback)
9641 (select_singlestep_lwp_callback, set_ignore_sigint)
9642 (status_callback, resumed_callback, resume_clear_callback)
9643 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9644 data parameter.
9645 (linux_nat_target::detach, linux_nat_target::resume)
9646 (linux_stop_and_wait_all_lwps, select_event_lwp)
9647 (linux_nat_filter_event, linux_nat_wait_1)
9648 (linux_nat_target::kill, linux_nat_target::stop)
9649 (linux_nat_target::stop): Update.
9650 (linux_nat_resume_callback): Change type.
9651 (resume_stopped_resumed_lwps, count_events_callback)
9652 (select_event_lwp_callback): Likewise.
9653 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9654 * arm-linux-nat.c (struct update_registers_data): Remove.
9655 (update_registers_callback): Change type.
9656 (arm_linux_insert_hw_breakpoint1): Update.
9657 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9658 parameter.
9659 (x86_linux_dr_set_addr): Update.
9660 (x86_linux_dr_set_control): Update.
9661 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9662 (iterate_over_lwps): Use gdb::function_view.
9663 * nat/aarch64-linux-hw-point.c (struct
9664 aarch64_dr_update_callback_param): Remove.
9665 (debug_reg_change_callback): Change type.
9666 (aarch64_notify_debug_reg_change): Update.
9667 * s390-linux-nat.c (s390_refresh_per_info): Update.
9668
82cb27ff
TT
96692019-03-11 Tom Tromey <tromey@adacore.com>
9670
9671 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9672 redundant assignment to "this_cu".
9673
568c0683
SM
96742019-03-08 Simon Marchi <simon.marchi@efficios.com>
9675
9676 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9677
f09ce22d
SM
96782019-03-08 Simon Marchi <simon.marchi@efficios.com>
9679
9680 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9681 from...
9682 (rank_one_type): ... this.
9683
595f96a9
SM
96842019-03-08 Simon Marchi <simon.marchi@efficios.com>
9685
9686 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9687 from...
9688 (rank_one_type): ... this.
9689
2598a94b
SM
96902019-03-08 Simon Marchi <simon.marchi@efficios.com>
9691
9692 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9693 from...
9694 (rank_one_type): ... this.
9695
7f17b20d
SM
96962019-03-08 Simon Marchi <simon.marchi@efficios.com>
9697
9698 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9699 from...
9700 (rank_one_type): ... this.
9701
2c509035
SM
97022019-03-08 Simon Marchi <simon.marchi@efficios.com>
9703
9704 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9705 from...
9706 (rank_one_type): ... this.
9707
0dd322dc
SM
97082019-03-08 Simon Marchi <simon.marchi@efficios.com>
9709
9710 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9711 from...
9712 (rank_one_type): ... this.
9713
41ea4728
SM
97142019-03-08 Simon Marchi <simon.marchi@efficios.com>
9715
9716 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9717 from...
9718 (rank_one_type): ... this.
9719
793cd1d2
SM
97202019-03-08 Simon Marchi <simon.marchi@efficios.com>
9721
9722 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9723 from...
9724 (rank_one_type): ... this.
9725
34910087
SM
97262019-03-08 Simon Marchi <simon.marchi@efficios.com>
9727
9728 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9729 from...
9730 (rank_one_type): ... this.
9731
f1f832d6
SM
97322019-03-08 Simon Marchi <simon.marchi@efficios.com>
9733
9734 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9735 from...
9736 (rank_one_type): ... this.
9737
b9f4512f
SM
97382019-03-08 Simon Marchi <simon.marchi@efficios.com>
9739
9740 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9741 from...
9742 (rank_one_type): ... this.
9743
9293fc63
SM
97442019-03-08 Simon Marchi <simon.marchi@efficios.com>
9745
9746 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9747 from...
9748 (rank_one_type): ... this.
9749
e3abbe7e
PW
97502019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9751
9752 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9753 inferior-events' shows the example events.
9754
e4adb939
EZ
97552019-03-08 Eli Zaretskii <eliz@gnu.org>
9756
9757 Support styling on native MS-Windows console
9758
9759 PR/24315
9760 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9761 on MS-Windows if $TERM is not defined.
9762
9763 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9764
9765 * posix-hdep.c (gdb_console_fputs):
9766 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9767 functions.
9768 * ui-file.h (gdb_console_fputs): Add prototype.
9769
9770 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9771 back to fputs only if the former returns zero.
9772
25629dfd
TT
97732019-03-07 Tom Tromey <tom@tromey.com>
9774
9775 * symmisc.c (print_symbol_bcache_statistics): Update.
9776 (print_objfile_statistics): Update.
9777 * symfile.c (allocate_symtab): Update.
9778 * stabsread.c: Don't include bcache.h.
9779 * psymtab.h (struct psymbol_bcache): Don't declare.
9780 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9781 (psymbol_bcache_init, psymbol_bcache_free)
9782 (psymbol_bcache_get_bcache): Don't declare.
9783 * psymtab.c (struct psymbol_bcache): Remove.
9784 (psymtab_storage::psymtab_storage): Update.
9785 (psymtab_storage::~psymtab_storage): Update.
9786 (psymbol_bcache_init, psymbol_bcache_free)
9787 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9788 (add_psymbol_to_bcache): Update.
9789 (allocate_psymtab): Update.
9790 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9791 macro_cache>: No longer pointers.
9792 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9793 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9794 * macrotab.c (macro_bcache): Update.
9795 * macroexp.c: Don't include bcache.h.
9796 * gdbtypes.c (check_types_worklist): Update.
9797 (types_deeply_equal): Remove TRY/CATCH. Update.
9798 * elfread.c (elf_symtab_read): Update.
9799 * dwarf2read.c: Don't include bcache.h.
9800 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9801 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9802 (print_bcache_statistics, bcache_memory_used): Don't declare.
9803 (struct bcache): Move from bcache.c. Add constructor, destructor,
9804 methods. Rename all data members.
9805 * bcache.c (struct bcache): Move to bcache.h.
9806 (bcache::expand_hash_table): Rename from expand_hash_table.
9807 (bcache): Remove.
9808 (bcache::insert): Rename from bcache_full.
9809 (bcache::compare): Rename from bcache_compare.
9810 (bcache_xmalloc): Remove.
9811 (bcache::~bcache): Rename from bcache_xfree.
9812 (bcache::print_statistics): Rename from print_bcache_statistics.
9813 (bcache::memory_used): Rename from bcache_memory_used.
9814
fe726667
PA
98152019-03-07 Pedro Alves <palves@redhat.com>
9816
9817 * infrun.c (normal_stop): Also check for
9818 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9819
7584bb30
AB
98202019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9821
9822 * f-lang.c (value_from_host_double): Moved to...
9823 * value.c (value_from_host_double): ...here.
9824 * value.h (value_from_host_double): Declare.
9825 * guile/scm-math.c (vlscm_convert_typed_number): Use
9826 value_from_host_double.
9827 (vlscm_convert_number): Likewise.
9828 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9829 * python/py-value.c (convert_value_from_python): Likewise.
9830
a7b1986e
TT
98312019-03-06 Tom Tromey <tom@tromey.com>
9832
9833 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9834
0ccf4211
TT
98352019-03-06 Tom Tromey <tom@tromey.com>
9836
9837 * utils.h (free_current_contents): Don't declare.
9838 * utils.c (free_current_contents): Remove.
9839
fe7b42e5
TT
98402019-03-06 Tom Tromey <tom@tromey.com>
9841
9842 * top.c (quit_force): Update.
9843 * main.c (captured_command_loop): Update.
9844 * common/new-op.c (operator new): Update.
9845 * common/common-exceptions.c (struct catcher)
9846 <save_cleanup_chain>: Remove member.
9847 (exceptions_state_mc_init): Update.
9848 (exception_try_scope_entry): Return nullptr.
9849 (exception_try_scope_exit, exception_rethrow)
9850 (throw_exception_sjlj, throw_exception_cxx): Update.
9851 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9852 (all_cleanups, do_cleanups, discard_cleanups)
9853 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9854 (restore_cleanups, restore_final_cleanups): Don't declare.
9855 (do_final_cleanups): Remove parameter.
9856 * common/cleanups.c (cleanup_chain, make_cleanup)
9857 (make_cleanup_dtor, all_cleanups, do_cleanups)
9858 (discard_my_cleanups, discard_cleanups)
9859 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9860 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9861 (null_cleanup): Remove.
9862 (do_final_cleanups): Remove parameter.
9863
c6321f19
TT
98642019-03-06 Tom Tromey <tom@tromey.com>
9865
9866 * remote.c (remote_target::remote_parse_stop_reply): Use
9867 unique_xmalloc_ptr.
9868
61b30099
TT
98692019-03-06 Tom Tromey <tom@tromey.com>
9870
9871 * stabsread.c (struct stabs_field_info): Rename from field_info.
9872 <list, fnlist>: Add initializers.
9873 <obstack>: New member.
9874 (read_member_functions, read_struct_fields, read_baseclasses):
9875 Allocate on obstack. Don't use cleanups.
9876 (read_one_struct_field, read_member_functions, read_struct_fields)
9877 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9878 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9879 (read_struct_type): Update.
9880
6cceac94
TT
98812019-03-06 Tom Tromey <tom@tromey.com>
9882
9883 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9884 * common/filestuff.h (make_cleanup_close): Don't declare.
9885 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9886 Remove.
9887
72412762
TT
98882019-03-06 Tom Tromey <tom@tromey.com>
9889
9890 * solib-aix.c: Use make_scope_exit.
9891
2b6ff1c0
TT
98922019-03-06 Tom Tromey <tom@tromey.com>
9893
9894 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9895 Use make_scope_exit.
9896
d01c5877
TT
98972019-03-06 Tom Tromey <tom@tromey.com>
9898
9899 * solib-svr4.c (disable_probes_interface): Remove parameter.
9900 (svr4_handle_solib_event): Use make_scope_exit.
9901
32603266
TT
99022019-03-06 Tom Tromey <tom@tromey.com>
9903
9904 * remote.c (struct stop_reply_deleter): Remove.
9905 (stop_reply_up): Update.
9906 (struct stop_reply): Derive from notif_event. Don't typedef.
9907 <regcache>: Now a std::vector.
9908 (stop_reply_xfree): Remove.
9909 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9910 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9911 (remote_target::discard_pending_stop_replies): Use delete.
9912 (remote_target::remote_parse_stop_reply): Update.
9913 (remote_target::process_stop_reply): Update.
9914 * remote-notif.h (struct notif_event): Add virtual destructor.
9915 Remove "dtr" member.
9916 (struct notif_client) <alloc_event>: Return a unique_ptr.
9917 (notif_event_xfree): Don't declare.
9918 (notif_event_up): New typedef.
9919 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9920 (notif_event_xfree, do_notif_event_xfree): Remove.
9921 (remote_notif_state_xfree): Update.
9922
9799571e
TT
99232019-03-06 Tom Tromey <tom@tromey.com>
9924
9925 * infrun.c (displaced_step_clear_cleanup): Now a
9926 forward_scope_exit type.
9927 (displaced_step_prepare_throw): Update.
9928 (displaced_step_fixup): Update.
9929
09e3c4ca
TT
99302019-03-06 Tom Tromey <tom@tromey.com>
9931
9932 * inferior.h (class inferior): Update comment.
9933 * gdbthread.h (class thread_info): Update comment.
9934
e2a03548
TT
99352019-03-06 Joel Brobecker <brobecker@adacore.com>
9936 Tom Tromey <tom@tromey.com>
9937
9938 * stabsread.h (struct stab_section_list): Remove.
9939 (coffstab_build_psymtabs): Update.
9940 * dbxread.c (symbuf_sections): Now a std::vector.
9941 (sect_idx): New global.
9942 (fill_symbuf): Update.
9943 (coffstab_build_psymtabs): Change type of stabsects parameter.
9944 Update.
9945 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9946 std::vector.
9947 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9948 (coff_locate_sections): Update.
9949 (coff_symfile_read): Remove cleanups. Update.
9950 (init_stringtab): Add storage parameter.
9951 (free_stringtab, free_stringtab_cleanup): Remove.
9952 (init_lineno): Add storage parameter.
9953 (free_linetab, free_linetab_cleanup): Remove.
9954
b7e60d85
PA
99552019-03-06 Pedro Alves <palves@redhat.com>
9956
9957 * linux-fork.c (fork_info::clobber_regs): Delete.
9958 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9959 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9960 comment. Adjust.
9961 (scoped_switch_fork_info::scoped_switch_fork_info)
9962 (checkpoint_command, linux_fork_context): Adjust
9963 fork_save_infrun_state calls.
9964
e52c971f
PA
99652019-03-06 Pedro Alves <palves@redhat.com>
9966
9967 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9968 (inf_has_multiple_threads): Return 'bool' and rewrite using
9969 inferior_info::threads().
9970
06974e6c
PA
99712019-03-06 Pedro Alves <palves@redhat.com>
9972
9973 * linux-fork.c: Include <list>.
9974 (fork_list): Now a std::list instance.
9975 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9976 (forks_exist_p, find_last_fork): Adjust.
9977 (new_fork): Delete.
9978 (one_fork_p): New.
9979 (add_fork): Adjust.
9980 (free_fork): Delete, folded into fork_info::~fork_info().
9981 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9982 Adjust.
9983 (init_fork_list): Delete.
9984 (linux_fork_killall, linux_fork_mourn_inferior)
9985 (linux_fork_detach, info_checkpoints_command): Adjust.
9986 (_initialize_linux_fork): No longer call init_fork_list.
9987
72f31aea
PA
99882019-03-06 Pedro Alves <palves@redhat.com>
9989
9990 * linux-fork.c (new_fork): New, split out of ...
9991 (add_fork): ... this. Return void. Move "first fork" special
9992 case from here, to ...
9993 (checkpoint_command): ... here.
9994 * linux-linux.h (add_fork): Return void.
9995
efbecbc1
AB
99962019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9997
9998 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9999
0841c79a
AB
100002019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10001 Chris January <chris.january@arm.com>
10002 David Lecomber <david.lecomber@arm.com>
10003
10004 * f-exp.y: New token, UNOP_INTRINSIC.
10005 (exp): New pattern using UNOP_INTRINSIC token.
10006 (f77_keywords): Add 'abs' keyword.
10007 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10008 (value_from_host_double): New function.
10009 (evaluate_subexp_f): Support UNOP_ABS.
10010
4a270568
AB
100112019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10012
10013 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10014 types.
10015
067630bd
AB
100162019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10017
10018 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10019 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10020 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10021
3be47f7a
AB
100222019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10023
10024 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10025
4d00f5d8
AB
100262019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10027 Chris January <chris.january@arm.com>
10028
10029 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10030 * f-exp.y: Define 'KIND' token.
10031 (exp): New pattern for KIND expressions.
10032 (ptype): Handle types with a kind extension.
10033 (direct_abs_decl): Extend to spot kind extensions.
10034 (f77_keywords): Add 'kind' to the list.
10035 (push_kind_type): New function.
10036 (convert_to_kind_type): New function.
10037 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10038 * parse.c (operator_length_standard): Likewise.
10039 * parser-defs.h (enum type_pieces): Add tp_kind.
10040 * std-operator.def: Add UNOP_KIND.
10041
e454224f
AB
100422019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10043
10044 * f-exp.y (f_parse): Set yydebug.
10045
9dad4a58
AB
100462019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10047
10048 * f-lang.c (evaluate_subexp_f): New function.
10049 (exp_descriptor_f): New global.
10050 (f_language_defn): Use exp_descriptor_f instead of
10051 exp_descriptor_standard.
10052
c8f91604
AB
100532019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10054
10055 * f-exp.y (struct token): Add comments.
10056 (dot_ops): Remove uppercase versions and the end marker.
10057 (f77_keywords): Likewise.
10058 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10059 entries in the dot_ops array are case insensitive, and use
10060 strncasecmp to compare strings. Also some whitespace cleanup in
10061 this area. Similar for the f77_keywords array, except entries in
10062 this list might be case sensitive.
10063
dd9f2c76
AB
100642019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10065
10066 * f-exp.y (struct f77_boolean_val): Add comments.
10067 (boolean_values): Remove uppercase versions, and end marker.
10068 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10069 and use strncasecmp to achieve case insensitivity. Additionally,
10070 perform whitespace cleanup around this code.
10071
67a3048c
TT
100722019-03-06 Tom Tromey <tromey@adacore.com>
10073
10074 * remote-sim.c (gdbsim_target_open): Use result of
10075 gdb_argv::release.
10076
aa3cfbda
RB
100772019-03-06 Richard Bunt <richard.bunt@arm.com>
10078 Dirk Schubert <dirk.schubert@arm.com>
10079 Chris January <chris.january@arm.com>
10080
10081 * eval.c (evaluate_subexp_standard): Call Fortran argument
10082 wrapping logic.
10083 * f-lang.c (struct value): A value which can be passed into a
10084 Fortran function call.
10085 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10086 where appropriate.
10087 (struct type): Value ready for a Fortran function call.
10088 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10089 is needed.
10090 * f-lang.h (fortran_argument_convert): Declaration.
10091 (fortran_preserve_arg_pointer): Declaration.
10092 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10093
ea38e5df
TT
100942019-03-05 Tom Tromey <tromey@adacore.com>
10095
10096 * python/py-prettyprint.c (print_string_repr): Remove #if.
10097 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10098
06b5b831
TT
100992019-03-05 Tom Tromey <tromey@adacore.com>
10100
10101 * target.c (the_dummy_target): Move later. Change type to
10102 "dummy_target".
10103 (initialize_targets): Don't initialize the_dummy_target.
10104
edbd9e45
TT
101052019-03-05 Tom Tromey <tromey@adacore.com>
10106
10107 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10108 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10109
c119e040
TT
101102019-03-05 Tom Tromey <tromey@adacore.com>
10111
10112 * windows-nat.c (windows_nat_target::attach)
10113 (windows_nat_target::detach): Don't call gdb_flush.
10114 * valprint.c (generic_val_print, val_print, val_print_string):
10115 Don't call gdb_flush.
10116 * utils.c (defaulted_query): Don't call gdb_flush.
10117 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10118 * target.c (target_announce_detach): Don't call gdb_flush.
10119 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10120 * remote.c (extended_remote_target::attach): Don't call
10121 gdb_flush.
10122 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10123 * printcmd.c (do_examine): Don't call gdb_flush.
10124 (info_display_command): Don't call gdb_flush.
10125 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10126 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10127 * memattr.c (info_mem_command): Don't call gdb_flush.
10128 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10129 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10130 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10131 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10132 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10133 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10134 (gnu_nat_target::detach): Don't call gdb_flush.
10135 * f-valprint.c (f_val_print): Don't call gdb_flush.
10136 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10137 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10138 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10139 gdb_flush.
10140 * c-valprint.c (c_val_print): Don't call gdb_flush.
10141 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10142
895dafa6
TT
101432019-03-05 Tom Tromey <tromey@adacore.com>
10144
10145 * varobj.c (update_dynamic_varobj_children): Update.
10146 (install_default_visualizer): Use reset, not release.
10147 * value.c (set_internalvar): Update.
10148 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10149 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10150 ATTRIBUTE_UNUSED_RESULT.
10151
88a774b9
TT
101522019-03-05 Tom Tromey <tromey@adacore.com>
10153
10154 * remote.c (class scoped_remote_fd) <release>: Add
10155 ATTRIBUTE_UNUSED_RESULT.
10156
4e4a8b93
TT
101572019-03-05 Tom Tromey <tromey@adacore.com>
10158
10159 * macroexp.c (struct macro_buffer) <release>: Add
10160 ATTRIBUTE_UNUSED_RESULT.
10161
083eef1f
TT
101622019-03-05 Tom Tromey <tromey@adacore.com>
10163
10164 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10165 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10166 ATTRIBUTE_UNUSED_RESULT.
10167
3cabd438
TT
101682019-03-05 Tom Tromey <tromey@adacore.com>
10169
10170 * common/scoped_fd.h (class scoped_fd) <release>: Add
10171 ATTRIBUTE_UNUSED_RESULT.
10172
41e3300a
TT
101732019-03-05 Tom Tromey <tromey@adacore.com>
10174
10175 * parser-defs.h (struct parser_state) <release>: Add
10176 ATTRIBUTE_UNUSED_RESULT.
10177
18cb7c9f
TT
101782019-03-05 Tom Tromey <tromey@adacore.com>
10179
10180 * utils.h (class gdb_argv) <release>: Add
10181 ATTRIBUTE_UNUSED_RESULT.
10182 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10183
41fa577f
EZ
101842019-03-02 Eli Zaretskii <eliz@gnu.org>
10185
a6a4b2c6
EZ
10186 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10187 for-loop range, to avoid compiler warnings.
10188
10189 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10190 avoid compiler warnings about unused variables.
10191
742a7df5
EZ
10192 * NEWS: Mention end of support for native debugging on MS-Windows
10193 before XP.
10194
41fa577f
EZ
10195 PR gdb/24292
10196 * common/netstuff.c:
10197 * gdbserver/gdbreplay.c
10198 * gdbserver/remote-utils.c:
10199 * ser-tcp.c:
10200 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10201 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10202 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10203 'getaddrinfo' and 'freeaddrinfo' were not available before
10204 Windows XP, and mingw.org's MinGW headers by default define
10205 _WIN32_WINNT to 0x500.
10206
827f438f
GB
102072019-03-01 Gary Benson <gbenson@redhat.com>
10208
10209 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10210
92137da0
RO
102112019-02-28 Brian Vandenberg <phantall@gmail.com>
10212 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10213
10214 PR gdb/8527
10215 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10216 set_sigint_trap, clear_sigint_trap.
10217
799efbe8
PW
102182019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10219
10220 * target.c (target_detach): Clear the regcache and the
10221 frame cache.
10222
8ed25214
PA
102232019-02-27 Pedro Alves <palves@redhat.com>
10224
10225 * utils.c (set_screen_size): When we cap the height/width sizes,
10226 tweak the corresponding command variable to show "unlimited":
10227
23031e31
SJ
102282019-02-27 Saagar Jha <saagar@saagarjha.com>
10229 Pedro Alves <palves@redhat.com>
10230
10231 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10232 before calling rl_set_screen_size.
10233
6c28e44a
TT
102342019-02-27 Tom Tromey <tromey@adacore.com>
10235
10236 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10237 define.
10238 * python/py-value.c: Remove Python 2.4 workaround.
10239 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10240 workaround.
10241 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10242 Python 2.4 workaround.
10243 * python/python-internal.h: Remove Python 2.4 comment.
10244 (Py_ssize_t): Don't define.
10245 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10246 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10247 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10248 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10249 * python/python.c (do_start_initialization): Remove Python 2.4
10250 workaround.
10251 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10252 (print_children): Remove Python 2.4 workaround.
10253 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10254 workaround.
10255 (CHARBUFFERPROC_NAME): Remove.
10256 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10257 Python 2.4 workaround.
10258
2c3fc25d 102592019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 10260
2c3fc25d
KB
10261 * NEWS: Note minimum Python version.
10262
6ca62222
KB
102632019-02-27 Kevin Buettner <kevinb@redhat.com>
10264
10265 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10266 code from these functions. Remove corresponding ifdefs. Use
10267 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10268 Remove gotos and target of gotos.
10269 (infpy_search_memory): Likewise.
10270
f4bc7d2c
AB
102712019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10272
10273 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10274 (hppa_gdbarch_init): Don't register deleted functions with
10275 gdbarch.
10276
9734a586
AB
102772019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10278
10279 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10280 (h8300_unwind_sp): Delete.
10281 (h8300_dummy_id): Delete.
10282 (h8300_gdbarch_init): Don't register deleted functions with
10283 gdbarch.
10284
68b867f3
AB
102852019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10286
10287 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10288 (ft32_unwind_pc): Delete.
10289 (ft32_unwind_sp): Delete.
10290 (ft32_gdbarch_init): Don't register deleted functions with
10291 gdbarch.
10292
2fbe7ad0
AB
102932019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10294
10295 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10296 (frv_unwind_pc): Delete.
10297 (frv_unwind_sp): Delete.
10298 (frv_gdbarch_init): Don't register deleted functions with
10299 gdbarch.
10300
76055cbe
AB
103012019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10302
10303 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10304 (riscv_unwind_pc): Delete.
10305 (riscv_unwind_sp): Delete.
10306 (riscv_gdbarch_init): Don't register deleted functions with
10307 gdbarch.
10308
4133e5a1
AB
103092019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10310
10311 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10312 (csky_unwind_pc): Delete.
10313 (csky_unwind_sp): Delete.
10314 (csky_gdbarch_init): Don't register deleted functions with
10315 gdbarch.
10316
8010f576
AB
103172019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10318
10319 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10320 (cris_unwind_pc): Delete.
10321 (cris_unwind_sp): Delete.
10322 (cris_gdbarch_init): Don't register deleted functions with
10323 gdbarch.
10324
b56bf084
AB
103252019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10326
10327 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10328 (bfin_unwind_pc): Delete.
10329 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10330
a19a650f
AB
103312019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10332
10333 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10334 (arm_unwind_pc): Delete.
10335 (arm_unwind_sp): Delete.
10336 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10337
f8278c3c
AB
103382019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10339
10340 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10341 (arc_unwind_pc): Delete.
10342 (arc_unwind_sp): Delete.
10343 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10344
480e46cf
AB
103452019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10346
10347 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10348 (alpha_unwind_pc): Delete.
10349 (alpha_gdbarch_init): Don't register deleted functions with
10350 gdbarch.
10351
7a995095
AB
103522019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10353
10354 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10355 (aarch64_unwind_pc): Delete.
10356 (aarch64_unwind_sp): Delete.
10357 (aarch64_gdbarch_init): Don't register deleted functions with
10358 gdbarch.
10359
bf9a735e
AB
103602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10361
10362 * gdbtypes.c (type_align): Don't consider static members when
10363 computing structure alignment.
10364
5561fc30
AB
103652019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10366
10367 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10368 return 0 for other types.
10369 * arch-utils.c (default_type_align): Always return 0.
10370 * gdbarch.h: Regenerate.
10371 * gdbarch.sh (type_align): Extend comment.
10372 * gdbtypes.c (type_align): Add additional comments, always call
10373 gdbarch_type_align before applying the default rules.
10374 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10375 generic code will then apply a suitable default.
10376 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10377 types, return 0 for other types.
10378
9335e75a
JB
103792019-02-27 Joel Brobecker <brobecker@adacore.com>
10380
10381 * NEWS: Create a new section for the next release branch.
10382 Rename the section of the current branch, now that it has
10383 been cut.
10384
3d34d8de
JB
103852019-02-27 Joel Brobecker <brobecker@adacore.com>
10386
10387 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10388 * version.in: Bump version to 8.3.50.DATE-git.
10389
143420fb
SM
103902019-02-26 Simon Marchi <simon.marchi@efficios.com>
10391
10392 * aix-thread.c (ptid_cmp): Remove unused variable.
10393 (get_signaled_thread): Likewise.
10394 (store_regs_user_thread): Likewise.
10395 (store_regs_kernel_thread): Likewise.
10396 (fetch_regs_kernel_thread): Remove shadowed variable.
10397
172fb711
AB
103982019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10399
10400 * features/riscv/32bit-cpu.xml: Add register numbers.
10401 * features/riscv/32bit-fpu.c: Regenerate.
10402 * features/riscv/32bit-fpu.xml: Add register numbers.
10403 * features/riscv/64bit-cpu.xml: Add register numbers.
10404 * features/riscv/64bit-fpu.c: Regenerate.
10405 * features/riscv/64bit-fpu.xml: Add register numbers.
10406
26c89782
KB
104072019-02-26 Kevin Buettner <kevinb@redhat.com>
10408
af54ade9 10409 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
10410 * python/py-value.c (convert_buffer_and_type_to_value): New
10411 function.
10412 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10413 Add support for handling an optional second argument. Call
10414 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
10415 * python/python-internal.h (Py_buffer_deleter): New struct.
10416 (Py_buffer_up): New typedef.
10417
0f58c9e8
JB
104182019-02-25 John Baldwin <jhb@FreeBSD.org>
10419
10420 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10421 instead of releasing ownership.
10422
0a0f4c01
JR
104232019-02-25 Jordan Rupprecht <rupprecht@google.com>
10424
10425 * dwarf2read.c (open_and_init_dwp_file): Call
10426 elf_numsections instead of bfd_count_sections to initialize
10427 dwp_file->num_sections.
10428
cd5a152c
TT
104292019-02-25 Tom Tromey <tromey@adacore.com>
10430
10431 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10432
8a6a8513
SDJ
104332019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10434
10435 * gcore.in: Add '--readnever' option when invoking GDB.
10436
04dcda9c
SM
104372019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10438
10439 * MAINTAINERS: Update my email address.
10440
07bc701d
SM
104412019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10442
10443 * build-id.c (build_id_to_debug_bfd_1): New function.
10444 (build_id_to_debug_bfd): Look for separate debug file in
10445 sysroot.
10446
c6f4a5d0
AB
104472019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10448
10449 * gdbarch.sh: Update the copyright year range that is placed into
10450 generated files.
10451
9600246d
KS
104522019-02-22 Keith Seitz <keiths@redhat.com>
10453
10454 PR symtab/23853
10455 * linespec.c (create_sals_line_offset): Search for the default
10456 symtab's filename instead of its fullname.
10457
7557a514
AH
104582019-02-21 Alan Hayward <alan.hayward@arm.com>
10459
10460 * NEWS: Update style defaults.
10461
ee2bcb0c
AH
104622019-02-21 Alan Hayward <alan.hayward@arm.com>
10463
10464 * main.c (captured_main_1): Disable styling in batch mode.
10465
0c95f9ed
TT
104662019-02-20 Tom Tromey <tom@tromey.com>
10467
10468 * symtab.c (symtab_symbol_info): Fix typos.
10469
c763b894
TT
104702019-02-20 Tom Tromey <tromey@adacore.com>
10471
10472 * findcmd.c (_initialize_mem_search): Use upper case for
10473 metasyntactic variables.
10474
0ef8a082
AH
104752019-02-20 Alan Hayward <alan.hayward@arm.com>
10476
10477 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10478 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10479
6caa91b6
SM
104802019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10481
10482 * top.h (source_file_name): Change to std::string.
10483 * top.c (source_file_name): Likewise.
10484 (command_line_input): Adjust.
10485 * cli/cli-script.c (script_from_file): Adjust.
10486
98814c6c
TT
104872019-02-19 Tom Tromey <tromey@adacore.com>
10488
10489 * ravenscar-thread.c
10490 (ravenscar_thread_target::update_thread_list): Don't call
10491 ada_build_task_list.
10492 * ada-lang.h (ada_build_task_list): Don't declare.
10493 * ada-tasks.c (struct ada_tasks_inferior_data)
10494 <task_list_valid_p>: Now bool.
10495 (read_known_tasks, ada_task_list_changed)
10496 (ada_tasks_invalidate_inferior_data): Update.
10497 (read_known_tasks_array): Return bool.
10498 (read_known_tasks_list): Likewise.
10499 (read_known_tasks): Return void.
10500 (ada_build_task_list): Now static.
10501
70cd633e
AB
105022019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10503
10504 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10505 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10506
040b3e95
PW
105072019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10508
10509 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10510 variant for ada_tasks_pspace_data_handle and
10511 ada_tasks_inferior_data_handle.
10512 (ada_tasks_pspace_data_cleanup): New function.
10513 (ada_tasks_inferior_data_cleanup): New function.
10514
9409233b
TT
105152019-02-17 Tom Tromey <tom@tromey.com>
10516
10517 * macrotab.h (macro_source_fullname): Return a std::string.
10518 * macrotab.c (macro_include, check_for_redefinition)
10519 (macro_undef, macro_lookup_definition, foreach_macro)
10520 (foreach_macro_in_scope): Update.
10521 (macro_source_fullname): Return a std::string.
10522 * macrocmd.c (show_pp_source_pos): Update.
10523
6506371f
TT
105242019-02-17 Tom Tromey <tom@tromey.com>
10525
10526 * macrocmd.c (show_pp_source_pos): Style the file names.
10527
0c820d67
TT
105282019-02-17 Tom Tromey <tom@tromey.com>
10529
10530 PR tui/24197:
10531 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10532
a0087920
TT
105332019-02-17 Tom Tromey <tom@tromey.com>
10534
10535 * ada-lang.c (user_select_syms): Use filtered printing.
10536 * utils.c (wrap_style): New global.
10537 (desired_style): Remove.
10538 (emit_style_escape): Add stream parameter.
10539 (set_output_style, reset_terminal_style, prompt_for_continue):
10540 Update.
10541 (flush_wrap_buffer): Only flush gdb_stdout.
10542 (wrap_here): Set wrap_style.
10543 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10544 treat escape sequences as a character. Change when wrap buffer is
10545 flushed.
10546 (fputs_styled): Do not set the output style when the default is
10547 requested.
10548 * ui-style.h (struct ui_file_style) <is_default>: New method.
10549 * source.c (print_source_lines_base): Emit escape sequences in one
10550 piece.
10551
75ba10dc
JB
105522019-02-17 Joel Brobecker <brobecker@adacore.com>
10553
10554 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10555 integers and enumeration types.
10556
a2cd4f14
JB
105572019-02-17 Joel Brobecker <brobecker@adacore.com>
10558
10559 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10560 instead of lookup_symbol_in_language
10561 (do_exact_match): New function.
10562 (ada_get_symbol_name_matcher): Return do_exact_match when
10563 doing a verbatim match.
10564
485b851b
TT
105652019-02-15 Tom Tromey <tromey@adacore.com>
10566
10567 * ravenscar-thread.c (ravenscar_thread_target::resume)
10568 (ravenscar_thread_target::wait): Special case wildcard requests.
10569
0b790b1e
TT
105702019-02-15 Tom Tromey <tromey@adacore.com>
10571
10572 * ravenscar-thread.c (base_ptid): Remove.
10573 (struct ravenscar_thread_target) <close>: New method.
10574 <m_base_ptid>: New member.
10575 <update_inferior_ptid, active_task, task_is_currently_active,
10576 runtime_initialized>: Declare methods.
10577 <ravenscar_thread_target>: Add constructor.
10578 (ravenscar_thread_target::task_is_currently_active)
10579 (ravenscar_thread_target::update_inferior_ptid)
10580 (ravenscar_runtime_initialized): Rename. Now methods.
10581 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10582 (ravenscar_thread_target::update_thread_list): Update.
10583 (ravenscar_thread_target::active_task): Now method.
10584 (ravenscar_thread_target::store_registers)
10585 (ravenscar_thread_target::prepare_to_store)
10586 (ravenscar_thread_target::prepare_to_store)
10587 (ravenscar_thread_target::mourn_inferior): Update.
10588 (ravenscar_inferior_created): Use "new" to create target.
10589 (ravenscar_thread_target::get_ada_task_ptid): Update.
10590 (_initialize_ravenscar): Don't initialize base_ptid.
10591 (ravenscar_ops): Remove global.
10592
dea57a62
TT
105932019-02-15 Tom Tromey <tromey@adacore.com>
10594
10595 * target.h (push_target): Declare new overload.
10596 * target.c (push_target): New overload, taking an rvalue reference.
10597 * remote.c (remote_target::open_1): Use push_target overload.
10598 * corelow.c (core_target_open): Use push_target overload.
10599
989f3c58
TT
106002019-02-15 Tom Tromey <tromey@adacore.com>
10601
10602 * ravenscar-thread.c (is_ravenscar_task)
10603 (ravenscar_task_is_currently_active): Return bool.
10604 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10605 (_initialize_ravenscar): Remove "(void)".
10606 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10607 Return bool.
10608
6cbcc006
TT
106092019-02-15 Tom Tromey <tromey@adacore.com>
10610
10611 * ravenscar-thread.c (ravenscar_runtime_initializer)
10612 (has_ravenscar_runtime, get_running_thread_id)
10613 (ravenscar_thread_target::resume): Fix indentation.
10614
7657f14d
TT
106152019-02-15 Tom Tromey <tromey@adacore.com>
10616
10617 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10618 from ravenscar_arch_ops.
10619 (sparc_ravenscar_ops::fetch_registers)
10620 (sparc_ravenscar_ops::store_registers): Now methods.
10621 (sparc_ravenscar_prepare_to_store): Remove.
10622 (sparc_ravenscar_ops): Redefine.
10623 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10624 methods and destructor. Remove members.
10625 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10626 (ravenscar_thread_target::store_registers)
10627 (ravenscar_thread_target::prepare_to_store): Update.
10628 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10629 Remove.
10630 (struct ppc_ravenscar_powerpc_ops): Derive from
10631 ravenscar_arch_ops.
10632 (ppc_ravenscar_powerpc_ops::fetch_registers)
10633 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10634 (ppc_ravenscar_powerpc_ops): Redefine.
10635 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10636 (ppc_ravenscar_e500_ops::fetch_registers)
10637 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10638 (ppc_ravenscar_e500_ops): Redefine.
10639 * aarch64-ravenscar-thread.c
10640 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10641 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10642 (aarch64_ravenscar_fetch_registers)
10643 (aarch64_ravenscar_store_registers): Now methods.
10644 (aarch64_ravenscar_ops): Redefine.
10645
5b6ea500
TT
106462019-02-15 Tom Tromey <tromey@adacore.com>
10647
10648 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10649 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10650 (ravenscar_thread_target::stopped_by_watchpoint)
10651 (ravenscar_thread_target::stopped_data_address)
10652 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10653
e397fd39
TT
106542019-02-15 Tom Tromey <tromey@adacore.com>
10655
10656 * ravenscar-thread.c: Fix some typos.
10657
cc12f4a8
TT
106582019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10659 Tom Tromey <tromey@adacore.com>
10660
10661 * ada-lang.c (ada_exception_sal): Change addr_string to a
10662 std::string.
10663 (create_ada_exception_catchpoint): Update.
10664
5f486660
TT
106652019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10666 Tom Tromey <tromey@adacore.com>
10667
10668 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10669 (bp_location_ops): Remove.
10670 (base_breakpoint_allocate_location): Update.
10671 (free_bp_location): Update.
10672 * ada-lang.c (class ada_catchpoint_location)
10673 <ada_catchpoint_location>: Remove ops parameter.
10674 (ada_catchpoint_location_dtor): Remove.
10675 (ada_catchpoint_location_ops): Remove.
10676 (allocate_location_exception): Update.
10677 * breakpoint.h (struct bp_location_ops): Remove.
10678 (class bp_location) <bp_location>: Remove bp_location_ops
10679 parameter.
10680 <~bp_location>: Add destructor.
10681 <ops>: Remove.
10682
b671c7fb
TS
106832019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10684 Pedro Alves <palves@redhat.com>
10685
10686 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10687 'PATH_MAX'.
10688
8071c5ce
DM
106892019-02-14 David Michael <fedora.dm0@gmail.com>
10690 Samuel Thibault <samuel.thibault@gnu.org>
10691 Thomas Schwinge <thomas@codesourcery.com>
10692
10693 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10694 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10695
b1041ae0
TS
106962019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10697
924514e1
TS
10698 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10699 (check_empty): Use "const char *".
10700
c29ee8d4
TS
10701 * gnu-nat.c (gnu_nat_target::detach): Instead of
10702 'detach_inferior (pid)' call
10703 'detach_inferior (find_inferior_pid (pid))'.
10704
6c6ef69f
TS
10705 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10706 'nat/fork-inferior.o'.
10707 * gnu-nat.c: #include "nat/fork-inferior.h".
10708
2d0a338c
TS
10709 * gnu-nat.c (gnu_nat_target::detach): Instead of
10710 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10711 * gnu-nat.h: #include "inf-child.h".
10712 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10713 'i386_gnu_nat_target::fetch_registers'.
10714 (gnu_store_registers): Rename/move to
10715 'i386_gnu_nat_target::store_registers'.
10716
cabb5f06
TS
10717 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10718 * gnu-nat.h (mach_thread_info): New function.
10719 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10720
b1041ae0
TS
10721 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10722
2988d01e
KF
107232019-02-14 Frederic Konrad <konrad@adacore.com>
10724
10725 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10726
c559d709
JB
107272019-02-14 Joel Brobecker <brobecker@adacore.com>
10728
10729 * windows-nat.c (windows_add_thread): Add new parameter
10730 "main_thread_p" with default value set to false. Update
10731 function documentation as well as all callers.
10732 (windows_delete_thread): Likewise.
10733 (fake_create_process): Update call to windows_add_thread.
10734 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10735 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10736 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10737 call to windows_delete_thread.
10738
007024cc
SM
107392019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10740
10741 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10742
f62318e9
JB
107432019-02-12 John Baldwin <jhb@FreeBSD.org>
10744
10745 * symfile.c (find_separate_debug_file): Use canonical path of
10746 sysroot with child_path instead of gdb_sysroot if it is valid.
10747
cd4b7848
JB
107482019-02-12 John Baldwin <jhb@FreeBSD.org>
10749
10750 * symfile.c (find_separate_debug_file): Use child_path to
10751 determine if an object file is under a sysroot.
10752
efac4bfe
JB
107532019-02-12 John Baldwin <jhb@FreeBSD.org>
10754
10755 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10756 unittests/child-path-selftests.c.
10757 * common/pathstuff.c (child_path): New function.
10758 * common/pathstuff.h (child_path): New prototype.
10759 * unittests/child-path-selftests.c: New file.
10760
402d2bfe
JB
107612019-02-12 John Baldwin <jhb@FreeBSD.org>
10762
10763 * symfile.c (find_separate_debug_file): Look for separate debug
10764 files in debug directories under the sysroot.
10765
1ed9f74e
PW
107662019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10767
10768 * symtab.h (struct minimal_symbol data_p): New const method.
10769 (struct minimal_symbol text_p): Likewise.
10770 * symtab.c (output_source_filename): Use file name style
10771 to print file name.
10772 (print_symbol_info): Likewise.
10773 (print_msymbol_info): Use address style to print addresses.
10774 Use function name style to print executable text symbols.
10775 (expand_symtab_containing_pc): Use data_p.
10776 (find_pc_sect_compunit_symtab): Likewise.
10777
2636d81d
PW
107782019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10779
10780 * breakpoint.c (describe_other_breakpoints): Use address style
10781 to print addresses.
10782 (say_where): Likewise.
10783
ac8c53cc
PW
107842019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10785
10786 * ada-typeprint.c (print_func_type): Print function name
10787 style to print function name.
10788 * c-typeprint.c (c_print_type_1): Likewise.
10789
ea638c43
AH
107902019-02-11 Alan Hayward <alan.hayward@arm.com>
10791
10792 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10793 for execve.
10794
ab759ca8
PW
107952019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10796
10797 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10798 type_stack.
10799
aff29d1c
JB
108002019-02-10 Joel Brobecker <brobecker@adacore.com>
10801
10802 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10803 TYPE_CODE_REF types.
10804
617126bc
JW
108052019-02-08 Jim Wilson <jimw@sifive.com>
10806
10807 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10808 (riscv_linux_fregset): New.
10809 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10810
46e3ed7f
TT
108112019-02-07 Tom Tromey <tom@tromey.com>
10812
10813 * thread.c (thread_cancel_execution_command): Update.
10814 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10815 methods.
10816 (struct thread_fsm_ops): Remove.
10817 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10818 (thread_fsm_should_stop, thread_fsm_return_value)
10819 (thread_fsm_set_finished, thread_fsm_finished_p)
10820 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10821 Don't declare.
10822 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10823 * infrun.c (clear_proceed_status_thread)
10824 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10825 (print_stop_event): Update.
10826 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10827 Add constructor.
10828 (step_command_fsm_ops): Remove.
10829 (new_step_command_fsm): Remove.
10830 (step_1): Update.
10831 (step_command_fsm::should_stop): Rename from
10832 step_command_fsm_should_stop.
10833 (step_command_fsm::clean_up): Rename from
10834 step_command_fsm_clean_up.
10835 (step_command_fsm::do_async_reply_reason): Rename from
10836 step_command_fsm_async_reply_reason.
10837 (struct until_next_fsm): Inherit from thread_fsm. Add
10838 constructor.
10839 (until_next_fsm_ops): Remove.
10840 (new_until_next_fsm): Remove.
10841 (until_next_fsm::should_stop): Rename from
10842 until_next_fsm_should_stop.
10843 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10844 (until_next_fsm::do_async_reply_reason): Rename from
10845 until_next_fsm_async_reply_reason.
10846 (struct finish_command_fsm): Inherit from thread_fsm. Add
10847 constructor. Change type of breakpoint.
10848 (finish_command_fsm_ops): Remove.
10849 (new_finish_command_fsm): Remove.
10850 (finish_command_fsm::should_stop): Rename from
10851 finish_command_fsm_should_stop.
10852 (finish_command_fsm::clean_up): Rename from
10853 finish_command_fsm_clean_up.
10854 (finish_command_fsm::return_value): Rename from
10855 finish_command_fsm_return_value.
10856 (finish_command_fsm::do_async_reply_reason): Rename from
10857 finish_command_fsm_async_reply_reason.
10858 (finish_command): Update.
10859 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10860 Add constructor.
10861 (call_thread_fsm_ops): Remove.
10862 (call_thread_fsm::call_thread_fsm): Rename from
10863 new_call_thread_fsm.
10864 (call_thread_fsm::should_stop): Rename from
10865 call_thread_fsm_should_stop.
10866 (call_thread_fsm::should_notify_stop): Rename from
10867 call_thread_fsm_should_notify_stop.
10868 (run_inferior_call, call_function_by_hand_dummy): Update.
10869 * cli/cli-interp.c (should_print_stop_to_console): Update.
10870 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10871 Add constructor. Change type of location_breakpoint,
10872 caller_breakpoint.
10873 (until_break_fsm_ops): Remove.
10874 (new_until_break_fsm): Remove.
10875 (until_break_fsm::should_stop): Rename from
10876 until_break_fsm_should_stop.
10877 (until_break_fsm::clean_up): Rename from
10878 until_break_fsm_clean_up.
10879 (until_break_fsm::do_async_reply_reason): Rename from
10880 until_break_fsm_async_reply_reason.
10881 (until_break_command): Update.
10882 * thread-fsm.c: Remove.
10883 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10884
1a5c2598
TT
108852019-02-07 Tom Tromey <tom@tromey.com>
10886
10887 * yy-remap.h: Add include guard.
10888 * xtensa-tdep.h: Add include guard.
10889 * xcoffread.h: Rename include guard.
10890 * varobj-iter.h: Add include guard.
10891 * tui/tui.h: Rename include guard.
10892 * tui/tui-winsource.h: Rename include guard.
10893 * tui/tui-wingeneral.h: Rename include guard.
10894 * tui/tui-windata.h: Rename include guard.
10895 * tui/tui-win.h: Rename include guard.
10896 * tui/tui-stack.h: Rename include guard.
10897 * tui/tui-source.h: Rename include guard.
10898 * tui/tui-regs.h: Rename include guard.
10899 * tui/tui-out.h: Rename include guard.
10900 * tui/tui-layout.h: Rename include guard.
10901 * tui/tui-io.h: Rename include guard.
10902 * tui/tui-hooks.h: Rename include guard.
10903 * tui/tui-file.h: Rename include guard.
10904 * tui/tui-disasm.h: Rename include guard.
10905 * tui/tui-data.h: Rename include guard.
10906 * tui/tui-command.h: Rename include guard.
10907 * tic6x-tdep.h: Add include guard.
10908 * target/waitstatus.h: Rename include guard.
10909 * target/wait.h: Rename include guard.
10910 * target/target.h: Rename include guard.
10911 * target/resume.h: Rename include guard.
10912 * target-float.h: Rename include guard.
10913 * stabsread.h: Add include guard.
10914 * rs6000-tdep.h: Add include guard.
10915 * riscv-fbsd-tdep.h: Add include guard.
10916 * regformats/regdef.h: Rename include guard.
10917 * record.h: Rename include guard.
10918 * python/python.h: Rename include guard.
10919 * python/python-internal.h: Rename include guard.
10920 * python/py-stopevent.h: Rename include guard.
10921 * python/py-ref.h: Rename include guard.
10922 * python/py-record.h: Rename include guard.
10923 * python/py-record-full.h: Rename include guard.
10924 * python/py-record-btrace.h: Rename include guard.
10925 * python/py-instruction.h: Rename include guard.
10926 * python/py-events.h: Rename include guard.
10927 * python/py-event.h: Rename include guard.
10928 * procfs.h: Add include guard.
10929 * proc-utils.h: Add include guard.
10930 * p-lang.h: Add include guard.
10931 * or1k-tdep.h: Rename include guard.
10932 * observable.h: Rename include guard.
10933 * nto-tdep.h: Rename include guard.
10934 * nat/x86-linux.h: Rename include guard.
10935 * nat/x86-linux-dregs.h: Rename include guard.
10936 * nat/x86-gcc-cpuid.h: Add include guard.
10937 * nat/x86-dregs.h: Rename include guard.
10938 * nat/x86-cpuid.h: Rename include guard.
10939 * nat/ppc-linux.h: Rename include guard.
10940 * nat/mips-linux-watch.h: Rename include guard.
10941 * nat/linux-waitpid.h: Rename include guard.
10942 * nat/linux-ptrace.h: Rename include guard.
10943 * nat/linux-procfs.h: Rename include guard.
10944 * nat/linux-osdata.h: Rename include guard.
10945 * nat/linux-nat.h: Rename include guard.
10946 * nat/linux-namespaces.h: Rename include guard.
10947 * nat/linux-btrace.h: Rename include guard.
10948 * nat/glibc_thread_db.h: Rename include guard.
10949 * nat/gdb_thread_db.h: Rename include guard.
10950 * nat/gdb_ptrace.h: Rename include guard.
10951 * nat/fork-inferior.h: Rename include guard.
10952 * nat/amd64-linux-siginfo.h: Rename include guard.
10953 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10954 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10955 * nat/aarch64-linux.h: Rename include guard.
10956 * nat/aarch64-linux-hw-point.h: Rename include guard.
10957 * mn10300-tdep.h: Add include guard.
10958 * mips-linux-tdep.h: Add include guard.
10959 * mi/mi-parse.h: Rename include guard.
10960 * mi/mi-out.h: Rename include guard.
10961 * mi/mi-main.h: Rename include guard.
10962 * mi/mi-interp.h: Rename include guard.
10963 * mi/mi-getopt.h: Rename include guard.
10964 * mi/mi-console.h: Rename include guard.
10965 * mi/mi-common.h: Rename include guard.
10966 * mi/mi-cmds.h: Rename include guard.
10967 * mi/mi-cmd-break.h: Rename include guard.
10968 * m2-lang.h: Add include guard.
10969 * location.h: Rename include guard.
10970 * linux-record.h: Rename include guard.
10971 * linux-nat.h: Add include guard.
10972 * linux-fork.h: Add include guard.
10973 * i386-darwin-tdep.h: Rename include guard.
10974 * hppa-linux-offsets.h: Add include guard.
10975 * guile/guile.h: Rename include guard.
10976 * guile/guile-internal.h: Rename include guard.
10977 * gnu-nat.h: Rename include guard.
10978 * gdb-stabs.h: Rename include guard.
10979 * frv-tdep.h: Add include guard.
10980 * f-lang.h: Add include guard.
10981 * event-loop.h: Add include guard.
10982 * darwin-nat.h: Rename include guard.
10983 * cp-abi.h: Rename include guard.
10984 * config/sparc/nm-sol2.h: Rename include guard.
10985 * config/nm-nto.h: Rename include guard.
10986 * config/nm-linux.h: Add include guard.
10987 * config/i386/nm-i386gnu.h: Rename include guard.
10988 * config/djgpp/nl_types.h: Rename include guard.
10989 * config/djgpp/langinfo.h: Rename include guard.
10990 * compile/gcc-cp-plugin.h: Add include guard.
10991 * compile/gcc-c-plugin.h: Add include guard.
10992 * compile/compile.h: Rename include guard.
10993 * compile/compile-object-run.h: Rename include guard.
10994 * compile/compile-object-load.h: Rename include guard.
10995 * compile/compile-internal.h: Rename include guard.
10996 * compile/compile-cplus.h: Rename include guard.
10997 * compile/compile-c.h: Rename include guard.
10998 * common/xml-utils.h: Rename include guard.
10999 * common/x86-xstate.h: Rename include guard.
11000 * common/version.h: Rename include guard.
11001 * common/vec.h: Rename include guard.
11002 * common/tdesc.h: Rename include guard.
11003 * common/selftest.h: Rename include guard.
11004 * common/scoped_restore.h: Rename include guard.
11005 * common/scoped_mmap.h: Rename include guard.
11006 * common/scoped_fd.h: Rename include guard.
11007 * common/safe-iterator.h: Rename include guard.
11008 * common/run-time-clock.h: Rename include guard.
11009 * common/refcounted-object.h: Rename include guard.
11010 * common/queue.h: Rename include guard.
11011 * common/ptid.h: Rename include guard.
11012 * common/print-utils.h: Rename include guard.
11013 * common/preprocessor.h: Rename include guard.
11014 * common/pathstuff.h: Rename include guard.
11015 * common/observable.h: Rename include guard.
11016 * common/netstuff.h: Rename include guard.
11017 * common/job-control.h: Rename include guard.
11018 * common/host-defs.h: Rename include guard.
11019 * common/gdb_wait.h: Rename include guard.
11020 * common/gdb_vecs.h: Rename include guard.
11021 * common/gdb_unlinker.h: Rename include guard.
11022 * common/gdb_unique_ptr.h: Rename include guard.
11023 * common/gdb_tilde_expand.h: Rename include guard.
11024 * common/gdb_sys_time.h: Rename include guard.
11025 * common/gdb_string_view.h: Rename include guard.
11026 * common/gdb_splay_tree.h: Rename include guard.
11027 * common/gdb_setjmp.h: Rename include guard.
11028 * common/gdb_ref_ptr.h: Rename include guard.
11029 * common/gdb_optional.h: Rename include guard.
11030 * common/gdb_locale.h: Rename include guard.
11031 * common/gdb_assert.h: Rename include guard.
11032 * common/filtered-iterator.h: Rename include guard.
11033 * common/filestuff.h: Rename include guard.
11034 * common/fileio.h: Rename include guard.
11035 * common/environ.h: Rename include guard.
11036 * common/common-utils.h: Rename include guard.
11037 * common/common-types.h: Rename include guard.
11038 * common/common-regcache.h: Rename include guard.
11039 * common/common-inferior.h: Rename include guard.
11040 * common/common-gdbthread.h: Rename include guard.
11041 * common/common-exceptions.h: Rename include guard.
11042 * common/common-defs.h: Rename include guard.
11043 * common/common-debug.h: Rename include guard.
11044 * common/cleanups.h: Rename include guard.
11045 * common/buffer.h: Rename include guard.
11046 * common/btrace-common.h: Rename include guard.
11047 * common/break-common.h: Rename include guard.
11048 * cli/cli-utils.h: Rename include guard.
11049 * cli/cli-style.h: Rename include guard.
11050 * cli/cli-setshow.h: Rename include guard.
11051 * cli/cli-script.h: Rename include guard.
11052 * cli/cli-interp.h: Rename include guard.
11053 * cli/cli-decode.h: Rename include guard.
11054 * cli/cli-cmds.h: Rename include guard.
11055 * charset-list.h: Add include guard.
11056 * buildsym-legacy.h: Rename include guard.
11057 * bfin-tdep.h: Add include guard.
11058 * ax.h: Rename include guard.
11059 * arm-linux-tdep.h: Add include guard.
11060 * arm-fbsd-tdep.h: Add include guard.
11061 * arch/xtensa.h: Rename include guard.
11062 * arch/tic6x.h: Add include guard.
11063 * arch/i386.h: Add include guard.
11064 * arch/arm.h: Rename include guard.
11065 * arch/arm-linux.h: Rename include guard.
11066 * arch/arm-get-next-pcs.h: Rename include guard.
11067 * arch/amd64.h: Add include guard.
11068 * arch/aarch64-insn.h: Rename include guard.
11069 * arch-utils.h: Rename include guard.
11070 * annotate.h: Add include guard.
11071 * amd64-darwin-tdep.h: Rename include guard.
11072 * aarch64-linux-tdep.h: Add include guard.
11073 * aarch64-fbsd-tdep.h: Add include guard.
11074 * aarch32-linux-nat.h: Add include guard.
11075
ab9268d2
PW
110762019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11077
11078 * macrotab.c (macro_define_internal): New function that
11079 factorizes macro_define_object_internal and macro_define_function
11080 code.
11081 (macro_define_object_internal): Use macro_define_internal.
11082 (macro_define_function): Likewise.
11083
bb0da2b4
PW
110842019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11085
11086 * macrocmd.c (extract_identifier): Return
11087 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11088 callers.
11089
424eb552
JB
110902019-02-06 John Baldwin <jhb@FreeBSD.org>
11091
11092 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11093
1688cb29
TT
110942019-02-05 Tom Tromey <tom@tromey.com>
11095
11096 * target.c (target_stack::unpush): Move assertion earlier.
11097
b5eba2d8
TT
110982019-01-30 Tom Tromey <tom@tromey.com>
11099
11100 PR python/23615:
11101 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11102 (gdbpy_parse_and_eval): Likewise.
11103 * python/python-internal.h (gdbpy_allow_threads): New class.
11104
7054e2ff
JB
111052019-01-28 John Baldwin <jhb@FreeBSD.org>
11106
11107 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11108 (aarch64_fbsd_fpregmap): Move earlier.
11109 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11110 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11111 instead of individual calls to trad_frame_set_reg_addr.
11112 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11113 earlier.
11114 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11115 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11116 instead of individual calls to trad_frame_set_reg_addr.
11117
36c25ffa
AH
111182019-01-28 Alan Hayward <alan.hayward@arm.com>
11119
11120 * CONTRIBUTE: Replace contribution list with wiki link.
11121
a0707f3c
TT
111222019-01-25 Tom Tromey <tom@tromey.com>
11123
11124 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11125
0747795c
TT
111262019-01-25 Tom Tromey <tom@tromey.com>
11127
11128 * xtensa-linux-nat.c: Fix common/ includes.
11129 * xml-support.h: Fix common/ includes.
11130 * xml-support.c: Fix common/ includes.
11131 * x86-linux-nat.c: Fix common/ includes.
11132 * windows-nat.c: Fix common/ includes.
11133 * varobj.h: Fix common/ includes.
11134 * varobj.c: Fix common/ includes.
11135 * value.c: Fix common/ includes.
11136 * valops.c: Fix common/ includes.
11137 * utils.c: Fix common/ includes.
11138 * unittests/xml-utils-selftests.c: Fix common/ includes.
11139 * unittests/utils-selftests.c: Fix common/ includes.
11140 * unittests/unpack-selftests.c: Fix common/ includes.
11141 * unittests/tracepoint-selftests.c: Fix common/ includes.
11142 * unittests/style-selftests.c: Fix common/ includes.
11143 * unittests/string_view-selftests.c: Fix common/ includes.
11144 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11145 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11146 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11147 * unittests/rsp-low-selftests.c: Fix common/ includes.
11148 * unittests/parse-connection-spec-selftests.c: Fix common/
11149 includes.
11150 * unittests/optional-selftests.c: Fix common/ includes.
11151 * unittests/offset-type-selftests.c: Fix common/ includes.
11152 * unittests/observable-selftests.c: Fix common/ includes.
11153 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11154 * unittests/memrange-selftests.c: Fix common/ includes.
11155 * unittests/memory-map-selftests.c: Fix common/ includes.
11156 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11157 * unittests/function-view-selftests.c: Fix common/ includes.
11158 * unittests/environ-selftests.c: Fix common/ includes.
11159 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11160 * unittests/common-utils-selftests.c: Fix common/ includes.
11161 * unittests/cli-utils-selftests.c: Fix common/ includes.
11162 * unittests/array-view-selftests.c: Fix common/ includes.
11163 * ui-file.c: Fix common/ includes.
11164 * tui/tui-io.c: Fix common/ includes.
11165 * tracepoint.h: Fix common/ includes.
11166 * tracepoint.c: Fix common/ includes.
11167 * tracefile-tfile.c: Fix common/ includes.
11168 * top.h: Fix common/ includes.
11169 * top.c: Fix common/ includes.
11170 * thread.c: Fix common/ includes.
11171 * target/waitstatus.h: Fix common/ includes.
11172 * target/waitstatus.c: Fix common/ includes.
11173 * target.h: Fix common/ includes.
11174 * target.c: Fix common/ includes.
11175 * target-memory.c: Fix common/ includes.
11176 * target-descriptions.c: Fix common/ includes.
11177 * symtab.h: Fix common/ includes.
11178 * symfile.c: Fix common/ includes.
11179 * stap-probe.c: Fix common/ includes.
11180 * spu-linux-nat.c: Fix common/ includes.
11181 * sparc-nat.c: Fix common/ includes.
11182 * source.c: Fix common/ includes.
11183 * solib.c: Fix common/ includes.
11184 * solib-target.c: Fix common/ includes.
11185 * ser-unix.c: Fix common/ includes.
11186 * ser-tcp.c: Fix common/ includes.
11187 * ser-pipe.c: Fix common/ includes.
11188 * ser-base.c: Fix common/ includes.
11189 * selftest-arch.c: Fix common/ includes.
11190 * s12z-tdep.c: Fix common/ includes.
11191 * rust-exp.y: Fix common/ includes.
11192 * rs6000-aix-tdep.c: Fix common/ includes.
11193 * riscv-tdep.c: Fix common/ includes.
11194 * remote.c: Fix common/ includes.
11195 * remote-notif.h: Fix common/ includes.
11196 * remote-fileio.h: Fix common/ includes.
11197 * remote-fileio.c: Fix common/ includes.
11198 * regcache.h: Fix common/ includes.
11199 * regcache.c: Fix common/ includes.
11200 * record-btrace.c: Fix common/ includes.
11201 * python/python.c: Fix common/ includes.
11202 * python/py-type.c: Fix common/ includes.
11203 * python/py-inferior.c: Fix common/ includes.
11204 * progspace.h: Fix common/ includes.
11205 * producer.c: Fix common/ includes.
11206 * procfs.c: Fix common/ includes.
11207 * proc-api.c: Fix common/ includes.
11208 * printcmd.c: Fix common/ includes.
11209 * ppc-linux-nat.c: Fix common/ includes.
11210 * parser-defs.h: Fix common/ includes.
11211 * osdata.c: Fix common/ includes.
11212 * obsd-nat.c: Fix common/ includes.
11213 * nat/x86-linux.c: Fix common/ includes.
11214 * nat/x86-linux-dregs.c: Fix common/ includes.
11215 * nat/x86-dregs.h: Fix common/ includes.
11216 * nat/x86-dregs.c: Fix common/ includes.
11217 * nat/ppc-linux.c: Fix common/ includes.
11218 * nat/mips-linux-watch.h: Fix common/ includes.
11219 * nat/mips-linux-watch.c: Fix common/ includes.
11220 * nat/linux-waitpid.c: Fix common/ includes.
11221 * nat/linux-ptrace.h: Fix common/ includes.
11222 * nat/linux-ptrace.c: Fix common/ includes.
11223 * nat/linux-procfs.c: Fix common/ includes.
11224 * nat/linux-personality.c: Fix common/ includes.
11225 * nat/linux-osdata.c: Fix common/ includes.
11226 * nat/linux-namespaces.c: Fix common/ includes.
11227 * nat/linux-btrace.h: Fix common/ includes.
11228 * nat/linux-btrace.c: Fix common/ includes.
11229 * nat/fork-inferior.c: Fix common/ includes.
11230 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11231 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11232 * nat/aarch64-linux.c: Fix common/ includes.
11233 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11234 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11235 * namespace.h: Fix common/ includes.
11236 * mips-linux-tdep.c: Fix common/ includes.
11237 * minsyms.c: Fix common/ includes.
11238 * mi/mi-parse.h: Fix common/ includes.
11239 * mi/mi-main.c: Fix common/ includes.
11240 * mi/mi-cmd-env.c: Fix common/ includes.
11241 * memrange.h: Fix common/ includes.
11242 * memattr.c: Fix common/ includes.
11243 * maint.h: Fix common/ includes.
11244 * maint.c: Fix common/ includes.
11245 * main.c: Fix common/ includes.
11246 * machoread.c: Fix common/ includes.
11247 * location.c: Fix common/ includes.
11248 * linux-thread-db.c: Fix common/ includes.
11249 * linux-nat.c: Fix common/ includes.
11250 * linux-fork.c: Fix common/ includes.
11251 * inline-frame.c: Fix common/ includes.
11252 * infrun.c: Fix common/ includes.
11253 * inflow.c: Fix common/ includes.
11254 * inferior.h: Fix common/ includes.
11255 * inferior.c: Fix common/ includes.
11256 * infcmd.c: Fix common/ includes.
11257 * inf-ptrace.c: Fix common/ includes.
11258 * inf-child.c: Fix common/ includes.
11259 * ia64-linux-nat.c: Fix common/ includes.
11260 * i387-tdep.c: Fix common/ includes.
11261 * i386-tdep.c: Fix common/ includes.
11262 * i386-linux-tdep.c: Fix common/ includes.
11263 * i386-linux-nat.c: Fix common/ includes.
11264 * i386-go32-tdep.c: Fix common/ includes.
11265 * i386-fbsd-tdep.c: Fix common/ includes.
11266 * i386-fbsd-nat.c: Fix common/ includes.
11267 * guile/scm-type.c: Fix common/ includes.
11268 * guile/guile.c: Fix common/ includes.
11269 * go32-nat.c: Fix common/ includes.
11270 * gnu-nat.c: Fix common/ includes.
11271 * gdbthread.h: Fix common/ includes.
11272 * gdbarch-selftests.c: Fix common/ includes.
11273 * gdb_usleep.c: Fix common/ includes.
11274 * gdb_select.h: Fix common/ includes.
11275 * gdb_bfd.c: Fix common/ includes.
11276 * gcore.c: Fix common/ includes.
11277 * fork-child.c: Fix common/ includes.
11278 * findvar.c: Fix common/ includes.
11279 * fbsd-nat.c: Fix common/ includes.
11280 * event-top.c: Fix common/ includes.
11281 * event-loop.c: Fix common/ includes.
11282 * dwarf2read.c: Fix common/ includes.
11283 * dwarf2loc.c: Fix common/ includes.
11284 * dwarf2-frame.c: Fix common/ includes.
11285 * dwarf-index-cache.c: Fix common/ includes.
11286 * dtrace-probe.c: Fix common/ includes.
11287 * disasm-selftests.c: Fix common/ includes.
11288 * defs.h: Fix common/ includes.
11289 * csky-tdep.c: Fix common/ includes.
11290 * cp-valprint.c: Fix common/ includes.
11291 * cp-support.h: Fix common/ includes.
11292 * cp-support.c: Fix common/ includes.
11293 * corelow.c: Fix common/ includes.
11294 * completer.h: Fix common/ includes.
11295 * completer.c: Fix common/ includes.
11296 * compile/compile.c: Fix common/ includes.
11297 * compile/compile-loc2c.c: Fix common/ includes.
11298 * compile/compile-cplus-types.c: Fix common/ includes.
11299 * compile/compile-cplus-symbols.c: Fix common/ includes.
11300 * command.h: Fix common/ includes.
11301 * cli/cli-dump.c: Fix common/ includes.
11302 * cli/cli-cmds.c: Fix common/ includes.
11303 * charset.c: Fix common/ includes.
11304 * build-id.c: Fix common/ includes.
11305 * btrace.h: Fix common/ includes.
11306 * btrace.c: Fix common/ includes.
11307 * breakpoint.h: Fix common/ includes.
11308 * breakpoint.c: Fix common/ includes.
11309 * ax.h:
11310 (enum agent_op): Fix common/ includes.
11311 * ax-general.c (struct aop_map): Fix common/ includes.
11312 * ax-gdb.c: Fix common/ includes.
11313 * auxv.c: Fix common/ includes.
11314 * auto-load.c: Fix common/ includes.
11315 * arm-tdep.c: Fix common/ includes.
11316 * arch/riscv.c: Fix common/ includes.
11317 * arch/ppc-linux-common.c: Fix common/ includes.
11318 * arch/i386.c: Fix common/ includes.
11319 * arch/arm.c: Fix common/ includes.
11320 * arch/arm-linux.c: Fix common/ includes.
11321 * arch/arm-get-next-pcs.c: Fix common/ includes.
11322 * arch/amd64.c: Fix common/ includes.
11323 * arch/aarch64.c: Fix common/ includes.
11324 * arch/aarch64-insn.c: Fix common/ includes.
11325 * arch-utils.c: Fix common/ includes.
11326 * amd64-windows-tdep.c: Fix common/ includes.
11327 * amd64-tdep.c: Fix common/ includes.
11328 * amd64-sol2-tdep.c: Fix common/ includes.
11329 * amd64-obsd-tdep.c: Fix common/ includes.
11330 * amd64-nbsd-tdep.c: Fix common/ includes.
11331 * amd64-linux-tdep.c: Fix common/ includes.
11332 * amd64-linux-nat.c: Fix common/ includes.
11333 * amd64-fbsd-tdep.c: Fix common/ includes.
11334 * amd64-fbsd-nat.c: Fix common/ includes.
11335 * amd64-dicos-tdep.c: Fix common/ includes.
11336 * amd64-darwin-tdep.c: Fix common/ includes.
11337 * agent.c: Fix common/ includes.
11338 * ada-lang.h: Fix common/ includes.
11339 * ada-lang.c: Fix common/ includes.
11340 * aarch64-tdep.c: Fix common/ includes.
11341
2f5c153e
TT
113422019-01-25 Tom Tromey <tom@tromey.com>
11343
11344 * common/create-version.sh: Use common/version.h.
11345
adc6a863
PA
113462019-01-24 Pedro Alves <palves@redhat.com>
11347
11348 * infrun.c (signal_stop, signal_print, signal_program)
11349 (signal_catch, signal_pass): Now arrays instead of pointers.
11350 (update_signals_program_target, do_target_resume)
11351 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11352 * linux-nat.c (linux_nat_target::pass_signals)
11353 (linux_nat_target::create_inferior, linux_nat_target::attach):
11354 Adjust.
11355 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11356 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11357 * procfs.c (procfs_target::pass_signals): Adjust.
11358 * record-full.c (record_full_target::resume): Adjust.
11359 * remote.c (remote_target::pass_signals)
11360 (remote_target::program_signals): Adjust.
11361 * target-debug.h (target_debug_print_signals): Now takes a
11362 gdb::array_view as parameter. Adjust.
11363 * target.h (target_ops) <pass_signals, program_signals>: Replace
11364 pointer and length parameters with gdb::array_view.
11365 (target_pass_signals, target_program_signals): Likewise.
11366 * target-delegates.c: Regenerate.
11367
3046d67a
PA
113682019-01-24 Pedro Alves <palves@redhat.com>
11369
11370 * common/forward-scope-exit.h
11371 (forward_scope_exit::forward_scope_exit): Pass arguments to
11372 m_bind_function directly, instead of creating a std::bind and
11373 copying that.
11374
353229bf
AH
113752019-01-24 Alan Hayward <alan.hayward@arm.com>
11376
11377 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11378 for static members.
11379 (pass_in_v_vfp_candidate): Likewise.
11380
311dc83a
TT
113812019-01-23 Tom Tromey <tom@tromey.com>
11382 Pedro Alves <palves@redhat.com>
11383
11384 * regcache.c (class regcache_invalidator): Remove.
11385 (regcache::raw_write): Use make_scope_exit.
11386
296bd123
TT
113872019-01-23 Tom Tromey <tom@tromey.com>
11388
11389 * ui-out.h (class ui_out_emit_type): Update comment.
11390
979a0d13
TT
113912019-01-23 Tom Tromey <tom@tromey.com>
11392
11393 * infrun.c (fetch_inferior_event): Update comment.
11394
d238133d
TT
113952019-01-23 Tom Tromey <tom@tromey.com>
11396 Pedro Alves <palves@redhat.com>
11397
11398 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11399 parameter.
11400 (fetch_inferior_event): Use SCOPE_EXIT.
11401
11402
9885e6bb
TT
114032019-01-23 Tom Tromey <tom@tromey.com>
11404 Pedro Alves <palves@redhat.com>
11405
11406 * infrun.c (disable_thread_events): Delete.
11407 (stop_all_threads): Use SCOPE_EXIT.
11408
286526c1
TT
114092019-01-23 Tom Tromey <tom@tromey.com>
11410 Pedro Alves <palves@redhat.com>
11411
11412 * symfile.c: Include forward-scope-exit.h.
11413 (clear_symtab_users_cleanup): Replace forward declaration with
11414 a FORWARD_SCOPE_EXIT.
11415 (syms_from_objfile_1): Use the forward_scope_exit and
11416 gdb::optional instead of cleanup_function.
11417 (reread_symbols): Use the forward_scope_exit instead of
11418 cleanup_function.
11419 (clear_symtab_users_cleanup): Remove function.
11420
1db93f14
TT
114212019-01-23 Tom Tromey <tom@tromey.com>
11422 Pedro Alves <palves@redhat.com>
11423
11424 * linux-nat.c: Include scope-exit.h.
11425 (cleanup_target_stop): Remove.
11426 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11427 SCOPE_EXIT.
11428
2cc83d1e
TT
114292019-01-23 Tom Tromey <tom@tromey.com>
11430 Pedro Alves <palves@redhat.com>
11431
11432 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11433 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11434
694c6bf5
TT
114352019-01-23 Tom Tromey <tom@tromey.com>
11436 Andrew Burgess <andrew.burgess@embecosm.com>
11437 Pedro Alves <palves@redhat.com>
11438
11439 * infrun.c (fetch_inferior_event): Use scope_exit.
11440 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11441 * top.c (execute_command): Use scope_exit.
11442 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11443 * utils.c (do_bpstat_clear_actions_cleanup)
11444 (make_bpstat_clear_actions_cleanup): Remove.
11445
4c41382a
TT
114462019-01-23 Tom Tromey <tom@tromey.com>
11447 Pedro Alves <palves@redhat.com>
11448
11449 * infrun.c: Include "common/scope-exit.h"
11450 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11451 (wait_for_inferior): Use SCOPE_EXIT.
11452 (fetch_inferior_event): Use scope_exit.
11453
89f8fb50
TT
114542019-01-23 Tom Tromey <tom@tromey.com>
11455 Pedro Alves <palves@redhat.com>
11456
11457 * breakpoint.c (create_breakpoint): Remove cleanup.
11458
5419bdae
TT
114592019-01-23 Tom Tromey <tom@tromey.com>
11460 Andrew Burgess <andrew.burgess@embecosm.com>
11461 Pedro Alves <palves@redhat.com>
11462
e587ef42
PA
114632019-01-23 Pedro Alves <palves@redhat.com>
11464
11465 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11466
77f0e74c
PA
114672019-01-23 Pedro Alves <palves@redhat.com>
11468 Andrew Burgess <andrew.burgess@embecosm.com>
11469
11470 * gdbthread.h: Include "common/forward-scope-exit.h".
11471 (scoped_finish_thread_state): Redefine custom class in terms of
11472 forward_scope_exit.
11473
5b9b3e53
PA
114742019-01-23 Pedro Alves <palves@redhat.com>
11475 Andrew Burgess <andrew.burgess@embecosm.com>
11476
11477 * common/forward-scope-exit.h: New file.
11478
54b65c9b
PA
114792019-01-23 Pedro Alves <palves@redhat.com>
11480 Andrew Burgess <andrew.burgess@embecosm.com>
11481 Tom Tromey <tom@tromey.com>
11482
11483 * common/scope-exit.h: New file.
11484
cf08fb29
PA
114852019-01-23 Pedro Alves <palves@redhat.com>
11486
11487 * common/preprocessor.h (ESC): Rename to ...
11488 (ESC_PARENS): ... this.
11489 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11490 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11491
ae73e2e2
TT
114922019-01-23 Tom Tromey <tom@tromey.com>
11493
11494 * language.h (class scoped_switch_to_sym_language_if_auto):
11495 Initialize m_lang in both cases.
11496
6594e122
AH
114972019-01-23 Alan Hayward <alan.hayward@arm.com>
11498
11499 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11500 with XCNEW.
11501
a7c9855d
TT
115022019-01-22 Tom Tromey <tom@tromey.com>
11503
11504 * corelow.c: Do not include sys/file.h.
11505
93cc1d53
TT
115062019-01-22 Tom Tromey <tom@tromey.com>
11507
11508 * tui/tui-wingeneral.h: Include gdb_curses.h.
11509
38561778
TT
115102019-01-22 Tom Tromey <tom@tromey.com>
11511
11512 * source-cache.h (class source_cache) <get_source_lines,
11513 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11514
37b3ab5b
TT
115152019-01-22 Tom Tromey <tom@tromey.com>
11516
11517 * remote-fileio.h (struct remote_target): Declare.
11518
3fabc016
TT
115192019-01-22 Tom Tromey <tom@tromey.com>
11520
11521 * python/py-arch.c: Do not include py-ref.h.
11522 * python/py-bpevent.c: Do not include py-ref.h.
11523 * python/py-cmd.c: Do not include py-ref.h.
11524 * python/py-continueevent.c: Do not include py-ref.h.
11525 * python/py-event.h: Do not include py-ref.h.
11526 * python/py-evtregistry.c: Do not include py-ref.h.
11527 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11528 * python/py-frame.c: Do not include py-ref.h.
11529 * python/py-framefilter.c: Do not include py-ref.h.
11530 * python/py-function.c: Do not include py-ref.h.
11531 * python/py-infevents.c: Do not include py-ref.h.
11532 * python/py-linetable.c: Do not include py-ref.h.
11533 * python/py-objfile.c: Do not include py-ref.h.
11534 * python/py-param.c: Do not include py-ref.h.
11535 * python/py-prettyprint.c: Do not include py-ref.h.
11536 * python/py-progspace.c: Do not include py-ref.h.
11537 * python/py-symbol.c: Do not include py-ref.h.
11538 * python/py-symtab.c: Do not include py-ref.h.
11539 * python/py-type.c: Do not include py-ref.h.
11540 * python/py-unwind.c: Do not include py-ref.h.
11541 * python/py-utils.c: Do not include py-ref.h.
11542 * python/py-value.c: Do not include py-ref.h.
11543 * python/py-varobj.c: Do not include py-ref.h.
11544 * python/py-xmethods.c: Do not include py-ref.h.
11545 * python/python.c: Do not include py-ref.h.
11546 * varobj.c: Do not include py-ref.h.
11547
6b4d7774
TT
115482019-01-22 Tom Tromey <tom@tromey.com>
11549
11550 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11551 keyword for bcache.
11552
7af7e9b5
TT
115532019-01-22 Tom Tromey <tom@tromey.com>
11554
11555 * compile/compile-cplus-types.c: Remove a comment by #include.
11556
951d1049
TT
115572019-01-22 Tom Tromey <tom@tromey.com>
11558
11559 * compile/gcc-c-plugin.h: Include compile-internal.h.
11560
d65d5705
TT
115612019-01-22 Tom Tromey <tom@tromey.com>
11562
11563 * stabsread.c (EXTERN): Do not define.
11564 (symnum, next_symbol_text_func, processing_gcc_compilation)
11565 (within_function, global_sym_chain, global_stabs)
11566 (previous_stab_code, this_object_header_files)
11567 (n_this_object_header_files)
11568 (n_allocated_this_object_header_files): Define.
11569 * stabsread.h (EXTERN): Never define. Use "extern".
11570
b6fb1ee5
PW
115712019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11572
11573 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11574 history_value.
11575
be6d4f74
TT
115762019-01-21 Tom Tromey <tom@tromey.com>
11577
11578 * ui-out.c: Fix includes.
11579 * tui/tui-source.c: Fix includes.
11580 * target.c: Fix includes.
11581 * remote.c: Fix includes.
11582 * regcache.c: Fix includes.
11583 * python/py-block.c: Fix includes.
11584 * printcmd.c: Fix includes.
11585 * or1k-tdep.c: Fix includes.
11586 * mi/mi-main.c: Fix includes.
11587 * m32r-tdep.c: Fix includes.
11588 * csky-tdep.c: Fix includes.
11589 * compile/compile-cplus-types.c: Fix includes.
11590 * cli/cli-interp.c: Fix includes.
11591
73021deb
AH
115922019-01-21 Alan Hayward <alan.hayward@arm.com>
11593
11594 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11595 for padding.
11596
7932255d
TT
115972019-01-16 Tom Tromey <tom@tromey.com>
11598
11599 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11600 earlier.
11601 (struct objfile) <msymbols_range>: Move from top level.
11602 <msymbols>: New method.
11603 (class objfile_msymbols): Remove.
11604 * symtab.c (default_collect_symbol_completion_matches_break_on):
11605 Update.
11606 * symmisc.c (dump_msymbols): Update.
11607 * stabsread.c (scan_file_globals): Update.
11608 * objc-lang.c (info_selectors_command, info_classes_command)
11609 (find_methods): Update.
11610 * minsyms.c (find_solib_trampoline_target): Update.
11611 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11612 * coffread.c (coff_symfile_read): Update.
11613 * ada-lang.c (ada_lookup_simple_minsym)
11614 (ada_collect_symbol_completion_matches): Update.
11615
604b1bfb
TT
116162019-01-16 Tom Tromey <tom@tromey.com>
11617
11618 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11619 type. Remove no-argument constructor.
11620 <iterator::operator++>: Simplify.
11621 <begin>: Update.
11622 <end>: Use minimal_symbol_count.
11623
f252c6d5
TT
116242019-01-16 Tom Tromey <tom@tromey.com>
11625
11626 * objfiles.h (struct objfile) <psymtabs>: New method.
11627 (class objfile_psymtabs): Remove.
11628 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11629 typedef.
11630 <range>: New method.
11631 (require_partial_symbols): Change return type.
11632 * psymtab.c (require_partial_symbols)
11633 (psym_expand_symtabs_matching): Update.
11634 * mdebugread.c (parse_partial_symbols): Update.
11635 * dbxread.c (dbx_end_psymtab): Update.
11636
b669c953
TT
116372019-01-15 Tom Tromey <tom@tromey.com>
11638
11639 * symtab.c (lookup_objfile_from_block)
11640 (lookup_symbol_in_objfile_symtabs)
11641 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11642 (find_line_symtab, info_sources_command)
11643 (default_collect_symbol_completion_matches_break_on)
11644 (make_source_files_completion_list): Update.
11645 * symmisc.c (print_objfile_statistics, dump_objfile)
11646 (maintenance_print_symbols, maintenance_info_symtabs)
11647 (maintenance_check_symtabs, maintenance_info_line_tables):
11648 Update.
11649 * source.c (select_source_symtab)
11650 (forget_cached_source_info_for_objfile): Update.
11651 * objfiles.h (class objfile_compunits): Remove.
11652 (struct objfile) <compunits_range>: New typedef.
11653 (compunits): New method.
11654 * objfiles.c (objfile_relocate1): Update.
11655 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11656 * maint.c (count_symtabs_and_blocks): Update.
11657 * linespec.c (iterate_over_all_matching_symtabs): Update.
11658 * cp-support.c (add_symbol_overload_list_qualified): Update.
11659 * coffread.c (coff_symtab_read): Update.
11660 * ada-lang.c (add_nonlocal_symbols)
11661 (ada_collect_symbol_completion_matches)
11662 (ada_add_global_exceptions): Update.
11663
7e955d83
TT
116642019-01-15 Tom Tromey <tom@tromey.com>
11665
11666 * progspace.h (program_space) <objfiles_safe_range>: New
11667 typedef.
11668 <objfiles_safe>: New method.
11669 * objfiles.h (class all_objfiles_safe): Remove.
11670 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11671 * jit.c (jit_inferior_exit_hook): Update.
11672
2030c079
TT
116732019-01-17 Tom Tromey <tom@tromey.com>
11674
11675 * progspace.h (program_space) <objfiles_range>: New typedef.
11676 <objfiles>: New method.
11677 <objfiles_head>: Rename from objfiles.
11678 (object_files): Update.
11679 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11680 * guile/scm-pretty-print.c
11681 (ppscm_find_pretty_printer_from_objfiles): Update.
11682 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11683 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11684 Update.
11685 * python/py-progspace.c (pspy_get_objfiles): Update.
11686 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11687 Update.
11688 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11689 (objfpy_lookup_objfile_by_build_id): Update.
11690 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11691 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11692 Update.
11693 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11694 (expand_symtab_containing_pc, lookup_objfile_from_block)
11695 (lookup_static_symbol, basic_lookup_transparent_type)
11696 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11697 (find_line_symtab, info_sources_command)
11698 (default_collect_symbol_completion_matches_break_on)
11699 (make_source_files_completion_list, find_main_name): Update.
11700 * symmisc.c (print_symbol_bcache_statistics)
11701 (print_objfile_statistics, maintenance_print_symbols)
11702 (maintenance_print_msymbols, maintenance_print_objfiles)
11703 (maintenance_info_symtabs, maintenance_check_symtabs)
11704 (maintenance_expand_symtabs, maintenance_info_line_tables):
11705 Update.
11706 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11707 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11708 (map_overlay_command, unmap_overlay_command)
11709 (simple_overlay_update, expand_symtabs_matching)
11710 (map_symbol_filenames): Update.
11711 * symfile-debug.c (set_debug_symfile): Update.
11712 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11713 Update.
11714 * source.c (select_source_symtab, forget_cached_source_info):
11715 Update.
11716 * solib.c (solib_read_symbols): Update.
11717 * solib-spu.c (append_ocl_sos): Update.
11718 * psymtab.c (maintenance_print_psymbols)
11719 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11720 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11721 * printcmd.c (info_symbol_command): Update.
11722 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11723 Update.
11724 * objfiles.h (class all_objfiles): Remove.
11725 * objfiles.c (have_partial_symbols, have_full_symbols)
11726 (have_minimal_symbols, qsort_cmp, update_section_map)
11727 (shared_objfile_contains_address_p)
11728 (default_iterate_over_objfiles_in_search_order): Update.
11729 * objc-lang.c (info_selectors_command, info_classes_command)
11730 (find_methods): Update.
11731 * minsyms.c (find_solib_trampoline_target): Update.
11732 * maint.c (maintenance_info_sections)
11733 (maintenance_translate_address, count_symtabs_and_blocks):
11734 Update.
11735 * main.c (captured_main_1): Update.
11736 * linux-thread-db.c (try_thread_db_load_from_pdir)
11737 (has_libpthread): Update.
11738 * linespec.c (iterate_over_all_matching_symtabs)
11739 (search_minsyms_for_name): Update.
11740 * jit.c (jit_find_objf_with_entry_addr): Update.
11741 * hppa-tdep.c (find_unwind_entry)
11742 (hppa_lookup_stub_minimal_symbol): Update.
11743 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11744 Update.
11745 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11746 (elf_gnu_ifunc_resolve_by_got): Update.
11747 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11748 * dwarf-index-write.c (save_gdb_index_command): Update.
11749 * cp-support.c (add_symbol_overload_list_qualified): Update.
11750 * breakpoint.c (create_overlay_event_breakpoint)
11751 (create_longjmp_master_breakpoint)
11752 (create_std_terminate_master_breakpoint)
11753 (create_exception_master_breakpoint): Update.
11754 * blockframe.c (find_pc_partial_function): Update.
11755 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11756 (ada_collect_symbol_completion_matches)
11757 (ada_add_global_exceptions): Update.
11758
776489e0
TT
117592019-01-17 Tom Tromey <tom@tromey.com>
11760
11761 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11762 declare VEC.
11763 (solib_target_parse_libraries): Change return type.
11764 (library_list_start_segment, library_list_start_section)
11765 (library_list_end_library, library_list_start_library); Update.
11766 (solib_target_free_library_list): Remove.
11767 (solib_target_parse_libraries): Remove cleanup. Change return
11768 type.
11769 (solib_target_current_sos): Update.
11770
6471e7d2
TT
117712019-01-17 Tom Tromey <tromey@bapiya>
11772
11773 * valprint.c: Replace "the the" with "the".
11774 * symtab.c: Replace "the the" with "the".
11775 * solib.c: Replace "the the" with "the".
11776 * solib-dsbt.c: Replace "the the" with "the".
11777 * linespec.c: Replace "the the" with "the".
11778 * dwarf2loc.h: Replace "the the" with "the".
11779 * amd64-windows-tdep.c: Replace "the the" with "the".
11780 * aarch64-tdep.c: Replace "the the" with "the".
11781
c24bdb02
KS
117822019-01-16 Keith Seitz <keiths@redhat.com>
11783
11784 PR gdb/23773
11785 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11786 <builder>: Rename to ..
11787 <m_builder>: ... this and make private.
11788 (dwarf2_cu::get_builder): New method. Change all users of
11789 `builder' to use this method.
11790 (dwarf2_start_symtab): Move to ...
11791 (dwarf2_cu::start_symtab): ... here. Update all callers
11792 (setup_type_unit_groups): Move to ...
11793 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11794 callers.
11795 (dwarf2_cu::reset_builder): New method.
11796 (process_full_compunit, process_full_type_unit): Use
11797 dwarf2_cu::reset_builder.
11798 (follow_die_offset): Record the ancestor CU if it is different
11799 from the followed DIE's CU.
11800 (follow_die_sig_1): Likewise.
11801
8d64371b
TT
118022019-01-15 Tom Tromey <tom@tromey.com>
11803
11804 * remote.c (class remote_state) <buf>: Now a char_vector.
11805 <buf_size>: Remove.
11806 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11807 parameter.
11808 (remote_target::getpkt_or_notif_sane_1)
11809 (remote_target::getpkt_sane)
11810 (remote_target::getpkt_or_notif_sane): Likewise.
11811 (class remote_target) <putpkt>: New overload.
11812 (remote_target::read_frame): Change type of "buf_p". Remove
11813 sizeof_p parameter.
11814 (packet_ok): New overload.
11815 (packet_check_result): New overload.
11816 Update all uses.
11817
bb277751
TT
118182019-01-14 Tom Tromey <tom@tromey.com>
11819
11820 * remote-notif.c (handle_notification, remote_notif_ack)
11821 (remote_notif_parse): Make "buf" const.
11822 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11823 const.
11824 (remote_notif_parse, remote_notif_ack, handle_notification):
11825 Likewise.
11826 * remote.c (remote_notif_stop_parse): Make "buf" const.
11827 (remote_target::remote_parse_stop_reply): Make "buf" const.
11828 (remote_notif_stop_ack): Make "buf" const.
11829
05be00a8
TT
118302019-01-14 Tom Tromey <tom@tromey.com>
11831
11832 * remote.c (remote_console_output): Make parameter const.
11833
491adeca
TT
118342019-01-14 Tom Tromey <tom@tromey.com>
11835
11836 * target-debug.h (target_debug_print_signals): Constify.
11837 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11838 * procfs.c (procfs_target::pass_signals): Update.
11839 * linux-nat.c (linux_nat_target::pass_signals): Update.
11840 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11841 * target-delegates.c: Rebuild.
11842 * remote.c (remote_target::program_signals): Update.
11843 (remote_target::pass_signals): Update.
11844 * target.c (target_pass_signals): Constify argument.
11845 (target_program_signals): Likewise.
11846 * target.h (struct target_ops) <pass_signals, program_signals>:
11847 Constify argument.
11848 (target_pass_signals, target_program_signals): Constify argument.
11849
bbd94648
TT
118502019-01-14 Tom Tromey <tom@tromey.com>
11851
11852 PR tui/28819:
11853 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11854
6f072a10
PFC
118552019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11856
11857 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11858 field.
11859 * rs6000-tdep.c: Include reggroups.h.
11860 (IS_V_ALIAS_PSEUDOREG): Define.
11861 (rs6000_register_name): Return names for the "vX" aliases.
11862 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11863 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11864 aliases. Call default_register_reggroup_p for all other
11865 pseudo-registers.
11866 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11867 New functions.
11868 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11869 Handle "vX" aliases.
11870 (v_alias_pseudo_register_collect): New function.
11871 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11872 (rs6000_gdbarch_init): Initialize "vX" aliases as
11873 pseudo-registers. Restore registration of
11874 rs6000_pseudo_register_reggroup_p with
11875 set_tdesc_pseudo_register_reggroup_p.
11876
1a782351
MF
118772019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11878
11879 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11880 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11881 set_gdbarch_num_pseudo_regs.
11882
d73cff18
PW
118832019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11884
11885 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11886 Remove arg prefixname, add do_set and do_show.
11887 Add member functions set_list and show_list.
11888 * cli/cli-style.c (class cli_style_option): Update accordingly.
11889 (style_set_list): Move to file scope.
11890 (style_show_list): Likewise.
11891 (set_style): Call help_list.
11892 (show_style): Call cmd_show_list.
11893 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11894 Update to use the new macro.
11895
60a90376
JB
118962019-10-12 Joel Brobecker <brobecker@adacore.com>
11897
11898 * ada-lang.c (_initialize_ada_language): Expand the help text
11899 for the "catch exception" command.
11900
9d7c67bf
PW
119012019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11902
11903 * symtab.c (matching_obj_sections): Initialize obj,
11904 declare it closer to its usage.
11905
7cf47dc4
TT
119062019-01-10 Tom Tromey <tom@tromey.com>
11907
11908 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11909 (basic_inf_threads_range): Remove.
11910 (inf_threads_range, inf_non_exited_threads_range)
11911 (safe_inf_threads_range): Use next_adapter.
11912
d3cb6808
KS
119132019-01-10 Keith Seitz <keiths@redhat.com>
11914
11915 PR gdb/23712
11916 PR symtab/23010
11917 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11918 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11919
63a20375
KS
119202019-01-10 Keith Seitz <keiths@redhat.com>
11921
11922 PR gdb/23712
11923 PR symtab/23010
11924 * dictionary.c (pending_to_vector): Remove.
11925 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11926 Remove _1 suffix, replacing functions of the same name. Update
11927 all callers.
11928 (dict_create_hashed, dict_create_hashed_expandable)
11929 (dict_create_linear, dict_create_linear_expandable, dict_free)
11930 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11931 Make functions static.
11932
b026f593
KS
119332019-01-10 Keith Seitz <keiths@redhat.com>
11934
11935 PR gdb/23712
11936 PR symtab/23010
11937 * dictionary.h (struct dictionary): Replace declaration with
11938 multidictionary.
11939 (dict_create_hashed, dict_create_hashed_expandable)
11940 (dict_create_linear, dict_create_linear_expandable)
11941 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11942 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11943 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11944 taking multidictionary argument.
11945 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11946 * block.h (struct block) <dict>: Change to multidictionary
11947 and rename `multidict'.
11948 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11949 symmisc.c: Update all dictionary references to multidictionary.
11950
c7748ee9
KS
119512019-01-10 Keith Seitz <keiths@redhat.com>
11952
11953 PR gdb/23712
11954 PR symtab/23010
11955 * dictionary.c: Include unordered_map.
11956 (pending_to_vector): New function.
11957 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11958 Rewrite the non-"_1" functions to take vector instead
11959 of linked list.
11960 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11961 "new" _1 versions of the same name.
11962 (multidictionary): Define.
11963 (std::hash<enum language): New definition.
11964 (collate_pending_symbols_by_language, mdict_create_hashed)
11965 (mdict_create_hashed_expandable, mdict_create_linear)
11966 (mdict_create_linear_expandable, mdict_free)
11967 (find_language_dictionary, create_new_language_dictionary)
11968 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11969 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11970 (mdict_size, mdict_empty): New functions.
11971 * dictionary.h (mdict_iterator): Define.
11972
67aa1f3c
PA
119732019-01-10 Pedro Alves <palves@redhat.com>
11974
11975 * breakpoint.c (read_uploaded_action)
11976 (create_tracepoint_from_upload): Adjust to use
11977 gdb::unique_xmalloc_ptr.
11978 * ctf.c (ctf_write_uploaded_tp):
11979 (SET_ARRAY_FIELD): Use emplace_back.
11980 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11981 * tracefile-tfile.c (tfile_write_uploaded_tp):
11982 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11983 gdb::unique_xmalloc_ptr.
11984 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11985 at_string, cond_string, cmd_strings>: Replace char pointers
11986 with gdb::unique_xmalloc_ptr.
11987
2f667667
PA
119882019-01-10 Pedro Alves <palves@redhat.com>
11989
11990 * solib-target.c (library_list_start_library): Don't xstrdup name.
11991
36cb7237
PA
119922019-01-10 Pedro Alves <palves@redhat.com>
11993
11994 * mdebugread.c (parse_partial_symbols): Use
11995 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11996
da584958
AB
119972019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11998
11999 * linux-fork.c (scoped_switch_fork_info)
12000 <~scoped_switch_fork_info>: Fix incorrect variable name.
12001
1ef8573c
AB
120022019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12003
12004 * linux-fork.c (scoped_switch_fork_info)
12005 <scoped_switch_fork_info>: Make explicit.
12006 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12007
8d7bcccb
TT
120082019-01-10 Tom Tromey <tom@tromey.com>
12009
12010 * objfiles.h (objfile::reset_psymtabs): Update.
12011 * objfiles.c (objfile::objfile): Update.
12012 * psymtab.h (psymtab_storage::obstack): Update.
12013 (psymtab_storage::m_obstack): Use gdb::optional.
12014 (class psymtab_storage): Update comment. Remove objfile
12015 parameter.
12016 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12017
b596a3c7
TT
120182019-01-10 Tom Tromey <tom@tromey.com>
12019
12020 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12021 <free_psymtabs>: Now private.
12022 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12023 (allocate_psymtab): Use new method.
12024
a9342b62
TT
120252019-01-10 Tom Tromey <tom@tromey.com>
12026
12027 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12028 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12029 * mdebugread.c (parse_partial_symbols): Use
12030 allocate_dependencies.
12031 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12032 allocate_dependencies.
12033 (process_psymtab_comp_unit_reader)
12034 (build_type_psymtab_dependencies): Likewise.
12035 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12036
5af70966
TT
120372019-01-10 Tom Tromey <tom@tromey.com>
12038
12039 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12040 PSYMBOL_SET_LANGUAGE.
12041 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12042
5923a04c
TT
120432019-01-10 Tom Tromey <tom@tromey.com>
12044
12045 * psymtab.h (psymtab_storage::obstack): New method.
12046 <m_obstack>: Rename from obstack; now private.
12047 * psymtab.c (psymtab_storage): Update.
12048 * dwarf2read.c (create_addrmap_from_index)
12049 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12050 Update.
12051
6d6a12bf
TT
120522019-01-10 Tom Tromey <tom@tromey.com>
12053
12054 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12055 * objfiles.h (objfile::reset_psymtabs): New method.
12056
d320c2b5
TT
120572019-01-10 Tom Tromey <tom@tromey.com>
12058
12059 * symmisc.c (print_symbol_bcache_statistics): Update.
12060 (print_objfile_statistics): Update.
12061 * symfile.c (reread_symbols): Update.
12062 * psymtab.h (class psymtab_storage): New.
12063 * psymtab.c (psymtab_storage): New constructor.
12064 (~psymtab_storage): New destructor.
12065 (require_partial_symbols): Update.
12066 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12067 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12068 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12069 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12070 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12071 (start_psymtab_common, end_psymtab_common)
12072 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12073 (allocate_psymtab): Update.
12074 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12075 Update.
12076 (dump_psymtab_addrmap, maintenance_print_psymbols)
12077 (maintenance_check_psymtabs): Update.
12078 (class objfile_psymtabs): Move to objfiles.h.
12079 * psympriv.h (discard_psymtab): Now inline.
12080 (psymtab_discarder::psymtab_discarder): Update.
12081 (psymtab_discarder::~psymtab_discarder): Update.
12082 (ALL_OBJFILE_PSYMTABS): Rewrite.
12083 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12084 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12085 Remove fields.
12086 <partial_symtabs>: New field.
12087 (class objfile_psymtabs): Move from psymtab.h. Update.
12088 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12089 psymbol_cache.
12090 (objfile::~objfile): Don't destroy psymbol_cache.
12091 * mdebugread.c (parse_partial_symbols): Update.
12092 * dwarf2read.c (create_addrmap_from_index)
12093 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12094 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12095 (add_partial_subprogram, dwarf2_ranges_read): Update.
12096 * dwarf-index-write.c (write_address_map)
12097 (write_one_signatured_type, recursively_write_psymbols)
12098 (class debug_names, class debug_names, write_psymtabs_to_index):
12099 Update.
12100
1d94a5a3
TT
121012019-01-10 Tom Tromey <tom@tromey.com>
12102
12103 * symtab.h (SYMBOL_SET_NAMES): Update.
12104 (symbol_set_names): Update.
12105 (MSYMBOL_SET_NAMES): Update.
12106 * symtab.c (symbol_set_names): Change argument to be an
12107 objfile_per_bfd_storage.
12108 * psymtab.c (add_psymbol_to_bcache): Update.
12109 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12110
0f14768a
TT
121112019-01-10 Tom Tromey <tom@tromey.com>
12112
12113 * symtab.c (create_demangled_names_hash): Change argument to be an
12114 objfile_per_bfd_storage.
12115 (symbol_set_names): Update.
12116
6eee24ce
TT
121172019-01-10 Tom Tromey <tom@tromey.com>
12118
12119 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12120 init_psymbol_list.
12121 * psymtab.c (init_psymbol_list): Do nothing if already called.
12122 * psympriv.h (init_psymbol_list): Add comment.
12123 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12124 init_psymbol_list.
12125 * dbxread.c (dbx_symfile_read): Unconditionally call
12126 init_psymbol_list.
12127
75aedd27
TT
121282019-01-10 Tom Tromey <tom@tromey.com>
12129
12130 * xcoffread.c (scan_xcoff_symtab): Update.
12131 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12132 "where".
12133 * mdebugread.c (parse_partial_symbols)
12134 (handle_psymbol_enumerators): Update.
12135 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12136 * dbxread.c (read_dbx_symtab): Update.
12137 * psympriv.h (psymbol_placement): New enum.
12138 (add_psymbol_to_list): Update.
12139
939652a5
TT
121402019-01-10 Tom Tromey <tom@tromey.com>
12141
12142 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12143 static_psymbols parameters.
12144 (scan_xcoff_symtab): Update.
12145 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12146 static_psymbols parameters.
12147 * psympriv.h (start_psymtab_common): Update.
12148 * mdebugread.c (parse_partial_symbols): Update.
12149 * dwarf2read.c (create_partial_symtab): Update.
12150 * dbxread.c (read_dbx_symtab): Update.
12151 (start_psymtab): Remove global_psymbols and static_psymbols
12152 parameters.
12153
baa62830
TT
121542019-01-10 Tom Tromey <tom@tromey.com>
12155
12156 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12157 * psymtab.c (allocate_psymtab): Add comment.
12158 * psympriv.h (allocate_psymtab): Add comment.
12159 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12160 initializations.
12161 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12162
0e8f53ba
TT
121632019-01-10 Tom Tromey <tom@tromey.com>
12164
12165 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12166 Don't declare.
12167 * mipsread.c: Include mdebugread.h.
12168 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12169 Declare.
12170 * elfread.c: Include mdebugread.h.
12171
b22a7c6a
TT
121722019-01-09 Tom Tromey <tom@tromey.com>
12173
12174 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12175 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12176 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12177 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12178 (psym_lookup_symbol, psym_find_last_source_symtab)
12179 (psym_forget_cached_source_info, psym_print_stats)
12180 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12181 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12182 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12183 (psym_find_compunit_symtab_by_address)
12184 (maintenance_print_psymbols, maintenance_info_psymtabs)
12185 (maintenance_check_psymtabs): Use ranged for.
12186 * psymtab.h (class objfile_psymtabs): New.
12187 (require_partial_symbols): Return objfile_psymtabs.
12188 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12189
3b9d3ac2
TT
121902019-01-09 Tom Tromey <tom@tromey.com>
12191
12192 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12193 (find_pc_mapped_section, list_overlays_command)
12194 (map_overlay_command, unmap_overlay_command)
12195 (simple_overlay_update): Use all_objfiles.
12196 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12197 * printcmd.c (info_symbol_command): Use all_objfiles.
12198 * objfiles.h (ALL_OBJSECTIONS): Remove.
12199 * maint.c (maintenance_translate_address): Use all_objfiles.
12200 * gcore.c (gcore_create_callback): Use all_objfiles.
12201 (objfile_find_memory_regions): Likewise.
12202
8b31193a
TT
122032019-01-09 Tom Tromey <tom@tromey.com>
12204
12205 * symtab.c (find_line_symtab, info_sources_command)
12206 (make_source_files_completion_list): Use objfile_compunits.
12207 * source.c (select_source_symtab): Use objfile_compunits.
12208 * objfiles.h (struct objfile): Update comment.
12209 (ALL_OBJFILES): Remove.
12210 (ALL_FILETABS): Remove.
12211 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12212 objfile_compunits.
12213
d5da8b3c
TT
122142019-01-09 Tom Tromey <tom@tromey.com>
12215
12216 * symmisc.c (print_objfile_statistics, dump_objfile)
12217 (maintenance_print_symbols): Use compunit_filetabs.
12218 * source.c (forget_cached_source_info_for_objfile): Use
12219 compunit_filetabs.
12220 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12221 (ALL_FILETABS): Use compunit_filetabs.
12222 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12223 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12224
5accd1a0
TT
122252019-01-09 Tom Tromey <tom@tromey.com>
12226
12227 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12228 (compunit_filetabs): New.
12229 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12230 compunit_filetabs.
12231 (info_sources_command, make_source_files_completion_list): Remove
12232 declaration.
12233 * symmisc.c (print_objfile_statistics, dump_objfile)
12234 (maintenance_print_symbols): Remove declaration.
12235 (maintenance_info_symtabs): Use compunit_filetabs.
12236 (maintenance_info_line_tables): Likewise.
12237 * source.c (select_source_symtab): Change local variable name.
12238 (forget_cached_source_info_for_objfile): Remove declaration.
12239 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12240 * objfiles.c (objfile_relocate1): Remove declaration.
12241 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12242 declaration.
12243 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12244 * coffread.c (coff_symtab_read): Remove declaration.
12245 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12246 compunit_filetabs.
12247
d8aeb77f
TT
122482019-01-09 Tom Tromey <tom@tromey.com>
12249
12250 * symtab.c (lookup_objfile_from_block)
12251 (find_pc_sect_compunit_symtab, search_symbols)
12252 (default_collect_symbol_completion_matches_break_on): Use
12253 objfile_compunits.
12254 * objfiles.h (ALL_COMPUNITS): Remove.
12255 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12256 * cp-support.c (add_symbol_overload_list_qualified): Use
12257 objfile_compunits.
12258 * ada-lang.c (ada_collect_symbol_completion_matches)
12259 (ada_add_global_exceptions): Use objfile_compunits.
12260
592553c4
TT
122612019-01-09 Tom Tromey <tom@tromey.com>
12262
12263 * source.c (select_source_symtab)
12264 (forget_cached_source_info_for_objfile): Remove declaration.
12265 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12266 declaration.
12267 * maint.c (count_symtabs_and_blocks): Remove declaration.
12268 * cp-support.c (add_symbol_overload_list_qualified): Remove
12269 declaration.
12270 * coffread.c (coff_symtab_read): Remove declaration.
12271 * symtab.c (lookup_symbol_in_objfile_symtabs)
12272 (basic_lookup_transparent_type_1): Use objfile_compunits.
12273 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12274 (info_sources_command, search_symbols)
12275 (default_collect_symbol_completion_matches_break_on)
12276 (make_source_files_completion_list): Remove declaration.
12277 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12278 (ada_collect_symbol_completion_matches)
12279 (ada_add_global_exceptions): Remove declaration.
12280 * linespec.c (iterate_over_all_matching_symtabs): Use
12281 objfile_compunits.
12282 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12283 (class objfile_compunits): New.
12284 (ALL_COMPUNITS): Use objfile_compunits.
12285 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12286 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12287 objfile_compunits.
12288 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12289
5325b9bf
TT
122902019-01-09 Tom Tromey <tom@tromey.com>
12291
12292 * symtab.c (search_symbols)
12293 (default_collect_symbol_completion_matches_break_on): Use
12294 objfile_msymbols.
12295 * ada-lang.c (ada_lookup_simple_minsym)
12296 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12297 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12298 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12299 objfile_msymbols.
12300 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12301 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12302 * objc-lang.c (find_methods): Use objfile_msymbols.
12303 (info_selectors_command, info_classes_command): Likewise.
12304 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12305 * objfiles.h (class objfile_msymbols): New.
12306 (ALL_OBJFILE_MSYMBOLS): Remove.
12307 (ALL_MSYMBOLS): Remove.
12308
cac85af2
TT
123092019-01-09 Tom Tromey <tom@tromey.com>
12310
12311 * common/next-iterator.h (next_adapter): Add Iterator template
12312 parameter.
12313 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12314 (class all_objfiles_safe): New.
12315 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12316 * objfiles.c (put_objfile_before): Update comment.
12317 (add_separate_debug_objfile): Likewise.
12318 (free_all_objfiles): Use all_objfiles_safe.
12319 (objfile_purge_solibs): Likewise.
12320
aed57c53
TT
123212019-01-09 Tom Tromey <tom@tromey.com>
12322
12323 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12324 (expand_symtab_containing_pc, lookup_static_symbol)
12325 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12326 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12327 all_objfiles.
12328 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12329 * breakpoint.c (create_overlay_event_breakpoint)
12330 (create_longjmp_master_breakpoint)
12331 (create_std_terminate_master_breakpoint)
12332 (create_exception_master_breakpoint): Use all_objfiles.
12333 * linux-thread-db.c (try_thread_db_load_from_pdir)
12334 (has_libpthread): Use all_objfiles.
12335 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12336 * linespec.c (iterate_over_all_matching_symtabs)
12337 (search_minsyms_for_name): Use all_objfiles.
12338 * maint.c (maintenance_info_sections): Use all_objfiles.
12339 * main.c (captured_main_1): Use all_objfiles.
12340 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12341 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12342 * guile/scm-pretty-print.c
12343 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12344 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12345 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12346 (maintenance_print_msymbols): Use all_objfiles.
12347 * source.c (select_source_symtab): Use all_objfiles.
12348 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12349 * symfile.c (remove_symbol_file_command)
12350 (expand_symtabs_matching, map_symbol_filenames): Use
12351 all_objfiles.
12352 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12353 all_objfiles.
12354 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12355 * objc-lang.c (find_methods): Use all_objfiles.
12356 * objfiles.c (have_partial_symbols, have_full_symbols)
12357 (have_minimal_symbols, qsort_cmp)
12358 (default_iterate_over_objfiles_in_search_order): Use
12359 all_objfiles.
12360 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12361 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12362 (maintenance_check_psymtabs): Use all_objfiles.
12363 (ALL_PSYMTABS): Remove.
12364 * compile/compile-object-run.c (do_module_cleanup): Use
12365 all_objfiles.
12366 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12367 * cp-support.c (add_symbol_overload_list_qualified): Use
12368 all_objfiles.
12369 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12370 Use all_objfiles.
12371 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12372 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12373 all_objfiles.
12374 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12375 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12376 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12377 Uses all_objfiles.
12378 * solib.c (solib_read_symbols): Use all_objfiles
12379
99d89cde
TT
123802019-01-09 Tom Tromey <tom@tromey.com>
12381
12382 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12383 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12384 all_objfiles.
12385 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12386 * symmisc.c (print_symbol_bcache_statistics)
12387 (print_objfile_statistics, maintenance_print_objfiles)
12388 (maintenance_info_symtabs, maintenance_check_symtabs)
12389 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12390 all_objfiles.
12391 * source.c (forget_cached_source_info): Use all_objfiles.
12392 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12393 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12394 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12395 * objfiles.c (update_section_map): Use all_objfiles.
12396 (shared_objfile_contains_address_p): Likewise.
12397 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12398 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12399
21708325
TT
124002019-01-09 Tom Tromey <tom@tromey.com>
12401
12402 * common/next-iterator.h: New file.
12403 * objfiles.h (class all_objfiles): New.
12404 (struct objfile_iterator): New.
12405
669e09f6
PW
124062019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12407
12408 * NEWS: Move the description of the changed "frame", "select-frame",
12409 and "info frame" commands to the Changed commands section.
12410
041be526
SM
124112019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12412
12413 * gdbtypes.c (check_stub_method_group): Remove handling of old
12414 mangling schemes.
12415 * linespec.c (find_methods): Likewise.
12416 * stabsread.c (read_member_functions): Likewise.
12417 * valops.c (search_struct_method): Likewise.
12418 (value_struct_elt_for_reference): Likewise.
12419 * NEWS: Mention this change.
12420
0e2a2133
AB
124212019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12422
12423 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12424 print_source_lines.
12425 * source.c (print_source_lines_base): Update line number check.
12426 (print_source_lines): New function.
12427 (source_lines_range::source_lines_range): New function.
12428 * source.h (class source_lines_range): New class.
12429 (print_source_lines): New declaration.
12430
1055a3b4
PW
124312019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12432
12433 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12434
cfeadda5
TT
124352019-01-08 Tom Tromey <tom@tromey.com>
12436 Simon Marchi <simon.marchi@ericsson.com>
12437
12438 PR gdb/24060
12439 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12440 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12441 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12442 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12443 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12444 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12445
583068ca
AB
124462019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12447
12448 * source.c (select_source_symtab): Move header comment to
12449 declaration in source.h.
12450 (forget_cached_source_info_for_objfile): Likewise.
12451 (forget_cached_source_info): Likewise.
12452 (identify_source_line): Likewise.
12453 * source.h (identify_source_line): Move declaration from symtab.h
12454 and add comment from source.c
12455 (print_source_lines): Likewise.
12456 (forget_cached_source_info_for_objfile): Likewise.
12457 (forget_cached_source_info): Likewise.
12458 (select_source_symtab): Likewise.
12459 (enum print_source_lines_flag): Move definition from symtab.h.
12460 * symtab.h (identify_source_line): Move declaration to source.h.
12461 (print_source_lines): Likewise.
12462 (forget_cached_source_info_for_objfile): Likewise.
12463 (forget_cached_source_info): Likewise.
12464 (select_source_symtab): Likewise.
12465 (enum print_source_lines_flag): Move definition to source.h.
12466 * tui/tui-hooks.c: Add 'source.h' include.
12467
ec98a4ad
AB
124682019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12469
12470 * source.c (print_source_lines_base): Handle requests to print
12471 reverse line number sequences, and guard against empty lines
12472 string.
12473
62ea19c1
AB
124742019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12475
12476 * source.c (print_source_lines_base): Fix skip of '\r' if next
12477 character is '\n'.
12478
9d30e1fd
TT
124792019-01-06 Tom Tromey <tom@tromey.com>
12480
12481 * c-exp.y (struct c_parse_state) <macro_original_text,
12482 expansion_obstack>: New member.
12483 (macro_original_text, expansion_obstack): Remove globals.
12484 (scan_macro_expansion, scanning_macro_expansion)
12485 (finished_macro_expansion): Update.
12486 (scan_macro_cleanup): Remove.
12487 (yylex, c_parse): Update.
12488
c65bac38
TT
124892019-01-06 Tom Tromey <tom@tromey.com>
12490
12491 * c-exp.y (struct c_parse_state) <strings>: New member.
12492 (operator_stoken): Update.
12493
02e12e38
TT
124942019-01-06 Tom Tromey <tom@tromey.com>
12495
12496 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12497 (union type_stack_elt) <typelist_val>: Now a pointer to
12498 std::vector.
12499 (type_stack_cleanup): Don't declare.
12500 (push_typelist): Update.
12501 * parse.c (pop_typelist): Return a std::vector.
12502 (push_typelist): Take a std::vector.
12503 (follow_types): Update. Do not free args.
12504 (type_stack_cleanup): Remove.
12505 * c-exp.y (struct c_parse_state): New.
12506 (cpstate): New global.
12507 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12508 (nonempty_typelist): Update.
12509 (func_mod): Create a new vector.
12510 (c_parse): Create a c_parse_state.
12511 (check_parameter_typelist): Do not delete params.
12512 (function_method): Update. Do not delete type_list.
12513
f097f5ad
TT
125142019-01-06 Tom Tromey <tom@tromey.com>
12515
12516 PR gdb/28155:
12517 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12518 check_typedef.
12519 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12520 (print_return_value): Likewise.
12521
d2adf9f1
TT
125222019-01-05 Tom Tromey <tom@tromey.com>
12523
12524 * contrib/cleanup_check.py: Remove.
12525 * contrib/gcc-with-excheck: Remove.
12526 * contrib/exsummary.py: Remove.
12527 * contrib/excheck.py: Remove.
12528
2eab46b1
JB
125292019-01-05 Joel Brobecker <brobecker@adacore.com>
12530
12531 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12532 NULL. Initialize tpprev to NULL instead of assigning it
12533 to NULL on the next statement.
12534 * windows-nat.c (windows_delete_thread): Remove check for
12535 main_thread_id before printing thread exit notifications.
12536 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12537 Remove thread ID check against main_thread_id.
12538 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12539 windows_delete_thread.
12540 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12541
48c5e7e2
TT
125422019-01-04 Tom Tromey <tom@tromey.com>
12543
12544 * compile/compile.c (_initialize_compile): Use upper case for
12545 metasyntactic variables.
12546 * symmisc.c (_initialize_symmisc): Use upper case for
12547 metasyntactic variables.
12548 * psymtab.c (_initialize_psymtab): Use upper case for
12549 metasyntactic variables.
12550 * demangle.c (demangle_command): Use upper case for metasyntactic
12551 variables.
12552 (_initialize_demangler): Likewise.
12553 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12554 variables.
12555
986041cd
TT
125562019-01-03 Tom Tromey <tom@tromey.com>
12557
12558 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12559
7c711119
TT
125602019-01-03 Tom Tromey <tom@tromey.com>
12561
12562 * python/py-symtab.c (salpy_str): Update.
12563 (struct salpy_sal_object) <symtab>: Now a PyObject.
12564 (salpy_dealloc): Update.
12565 (del_objfile_sal): Use gdbpy_ref.
12566
1b20edf0
TT
125672019-01-03 Tom Tromey <tom@tromey.com>
12568
12569 * python/py-type.c (convert_field): Use new_reference. Return
12570 gdbpy_ref.
12571 (make_fielditem): Return gdbpy_ref.
12572 (typy_fields): Update.
12573 (typy_getitem): Update.
12574 (field_name): Return gdbpy_ref. Use new_reference.
12575 (typy_iterator_iternext): Update.
12576
ea41325b
TT
125772019-01-03 Tom Tromey <tom@tromey.com>
12578
12579 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12580
2a3c71d6
TT
125812019-01-03 Tom Tromey <tom@tromey.com>
12582
12583 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12584 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12585 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12586 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12587 (pspy_set_type_printers): Likewise.
12588 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12589 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12590 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12591 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12592 (objfpy_set_type_printers): Likewise.
12593
5c329e6a
TT
125942019-01-03 Tom Tromey <tom@tromey.com>
12595
12596 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12597 (gdbpy_print_stack): Use gdbpy_err_fetch.
12598 * python/python-internal.h (class gdbpy_err_fetch): New class.
12599 (class gdbpy_enter) <m_error_type, m_error_value,
12600 m_error_traceback>: Remove.
12601 <m_error>: New member.
12602 (gdbpy_exception_to_string): Don't declare.
12603 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12604 * python/py-value.c (convert_value_from_python): Use
12605 gdbpy_err_fetch.
12606 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12607 gdbpy_exception_to_string.
12608 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12609 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12610 gdbpy_err_fetch.
12611
169bb27b
AB
126122019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12613
12614 * linux-nat.c (delete_lwp_cleanup): Delete.
12615 (struct lwp_deleter): New struct.
12616 (lwp_info_up): New typedef.
12617 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12618 lwp_info_up.
12619
a07c8880
AB
126202019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12621
12622 * linux-fork.c (class scoped_switch_fork_info): New class.
12623 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12624
26089c49
AB
126252019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12626
12627 * valops.c (find_overload_match): Remove use of null_cleanup, and
12628 calls to do_cleanups.
12629
06d3e5b0
AB
126302019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12631
12632 * compile/compile-cplus-types.c
12633 (compile_cplus_instance::decl_name): Handle changes to
12634 cp_func_name.
12635 * cp-support.c (cp_func_name): Update header comment, update
12636 return type.
12637 * cp-support.h (cp_func_name): Update return type in declaration.
12638 * valops.c (find_overload_match): Move temp_func local to top
12639 level of function and change its type. Use temp_func to hold and
12640 delete temporary string obtained from cp_func_name.
12641
66644cd3
AB
126422019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12643
12644 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12645 gdb::char_vector, remove cleanup, and update uses of `msg`.
12646
592d8c0a
JW
126472019-01-03 Jim Wilson <jimw@sifive.com>
12648
12649 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12650
c55d06ec
TT
126512019-01-02 Tom Tromey <tom@tromey.com>
12652
12653 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12654 (tdesc_parse_xml): Remove cleanups.
12655 * target-descriptions.h (make_cleanup_free_target_description):
12656 Don't declare.
12657 (target_desc_deleter): New struct.
12658 (target_desc_up): New typedef.
12659 * target-descriptions.c (target_desc_deleter::operator()): Rename
12660 from free_target_description.
12661 (make_cleanup_free_target_description): Remove.
12662
3a6ae42d
TT
126632019-01-02 Tom Tromey <tom@tromey.com>
12664
12665 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12666 constructor, destructor.
12667 (linespec_parser): Remove typedef.
12668 (~linespec_parser): Rename from linespec_parser_delete.
12669 (linespec_lex_to_end, linespec_complete_label)
12670 (linespec_complete): Update.
12671 (decode_line_full): Remove cleanups.
12672 (decode_line_1): Update.
12673
61fd3e73
TT
126742019-01-02 Tom Tromey <tom@tromey.com>
12675
12676 * python/python-internal.h (inferior_to_inferior_object): Change
12677 return type.
12678 * python/py-exitedevent.c (create_exited_event_object): Update.
12679 * python/py-inferior.c (inferior_to_inferior_object): Return
12680 gdbpy_ref.
12681 (python_new_inferior, python_inferior_deleted)
12682 (thread_to_thread_object, delete_thread_object)
12683 (build_inferior_list, gdbpy_selected_inferior): Update.
12684 * python/py-infthread.c (create_thread_object): Update. Also fail
12685 if inferior_to_inferior_object fails.
12686
d20172fc
SM
126872019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12688
12689 * inferior.h (class inferior) <displaced_step_state>: New field.
12690 * infrun.h (struct displaced_step_state): Move here from
12691 infrun.c. Initialize fields, add constructor.
12692 <inf>: Remove field.
12693 <reset>: New method.
12694 * infrun.c (struct displaced_step_inferior_state): Move to
12695 infrun.h.
12696 (displaced_step_inferior_states): Remove.
12697 (get_displaced_stepping_state): Adust.
12698 (displaced_step_in_progress_any_inferior): Adjust.
12699 (displaced_step_in_progress_thread): Adjust.
12700 (displaced_step_in_progress): Adjust.
12701 (add_displaced_stepping_state): Remove.
12702 (get_displaced_step_closure_by_addr): Adjust.
12703 (remove_displaced_stepping_state): Remove.
12704 (infrun_inferior_exit): Call displaced_step_state.reset.
12705 (use_displaced_stepping): Don't check for NULL.
12706 (displaced_step_prepare_throw): Call
12707 get_displaced_stepping_state.
12708 (displaced_step_fixup): Don't check for NULL.
12709 (prepare_for_detach): Don't check for NULL.
12710
e3319240
PW
127112019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12712
12713 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12714 in case of call that did not complete.
12715
5d36dfb9
AU
127162019-01-02 Andrey Utkin <autkin@undo.io>
12717
12718 * symfile.c (find_separate_debug_file): Fix search of debug files for
12719 remote debuggee.
12720
8833fbf0
TT
127212019-01-02 Tom Tromey <tom@tromey.com>
12722
12723 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12724 indentation.
12725 * python/py-frame.c (frapy_older): Remove cast.
12726 (frapy_newer): Likewise.
12727 * python/py-breakpoint.c (local_setattro): Remove cast.
12728 * python/py-arch.c (archpy_name): Remove local variable.
12729 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12730
4ada3dfd
JB
127312019-01-02 Joel Brobecker <brobecker@adacore.com>
12732
12733 * unittests/basic_string_view/element_access/char/empty.cc:
12734 Fix year range in copyright header.
12735
113b7b81
AB
127362019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12737
12738 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12739 Delete.
12740 <operator==>: Update with for removed field.
12741 <hash>: Likewise.
12742 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12743 <isa_features>: ...this.
12744 <abi_features>: New field.
12745 (riscv_isa_flen): Update comment.
12746 (riscv_abi_xlen): New declaration.
12747 (riscv_abi_flen): New declaration.
12748 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12749 isa_features.
12750 (riscv_abi_xlen): New function.
12751 (riscv_isa_flen): Update to get answer from isa_features.
12752 (riscv_abi_flen): New function.
12753 (riscv_has_fp_abi): Update to get answer from abi_features.
12754 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12755 xlen and flen.
12756 (riscv_call_info) <xlen, flen>: Update comment.
12757 (riscv_call_arg_struct): Remove invalid assertions
12758 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12759 is removed.
12760 (riscv_gdbarch_init): Gather isa features and abi features
12761 separately, ensure both match on the gdbarch when reusing an old
12762 gdbarch. Relax an error check to allow 32-bit abi float to run on
12763 a target with 64-bit float hardware.
12764
b18ca514
PW
127652019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12766
12767 * source.c (search_command_helper): Stop reverse search
12768 when line 1 has been searched.
12769
ec70d8db
PW
127702019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12771
12772 * record-full.c (record_full_base_target::close): Rewrite
12773 record_full_core_buf_list free logic.
12774
5b38f9c1
PW
127752019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12776
12777 * break-catch-syscall.c (print_one_catch_syscall): xfree
12778 the last text.
12779
66d91b39
JB
127802019-01-01 Joel Brobecker <brobecker@adacore.com>
12781
12782 * top.c (print_gdb_version): Update Copyright year in version
12783 message.
12784
42a4f53d
JB
127852019-01-01 Joel Brobecker <brobecker@adacore.com>
12786
12787 Update copyright year range in all GDB files.
12788
7e955d83 127892019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 12790
5bbd631d 12791 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 12792
5bbd631d 12793For older changes see ChangeLog-2018.
c906108c
SS
12794\f
12795Local Variables:
12796mode: change-log
12797left-margin: 8
12798fill-column: 74
12799version-control: never
57da7796 12800coding: utf-8
c906108c 12801End:
5bbd631d 12802