]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Update ChangeLog entry of commit 677052f2a5c67f1d9b2e6d1b2a2149b5f0c20cd0...
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
11061048
TT
12019-09-18 Tom Tromey <tom@tromey.com>
2
3 * NEWS: Add entry.
4 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
5 call rl_initialize.
6 (tui_enable): Do not call rl_initialize.
7
7a27b85f
CG
82019-09-18 Christian Groessler <chris@groessler.org>
9
10 * alpha-linux-nat.c: Include gdbarch.h.
11
f64eea3a
SM
122019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
13
14 * ui-file.c: Include cli/cli-style.h.
15 (term_cli_styling): Remove cli_styling declaration.
16
e6f7f6d1
AM
172019-09-18 Alan Modra <amodra@gmail.com>
18
19 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
20 to bfd_asymbol_section.
21
1d38e9d1
AM
222019-09-18 Alan Modra <amodra@gmail.com>
23
24 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
25 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
26 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
27
90d92a63
AM
282019-09-18 Alan Modra <amodra@gmail.com>
29
30 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
31 * spu-linux-nat.c (spu_bfd_open): Likewise.
32
a3d181d2
CB
332019-09-18 Christian Biesinger <cbiesinger@google.com>
34
35 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
36 to bool to match definition in dwarf2read.c.
37
491144b5
CB
382019-09-17 Christian Biesinger <cbiesinger@google.com>
39
40 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
41 (print_signatures): Likewise.
42 (trust_pad_over_xvs): Likewise.
43 * arch/aarch64-insn.c (aarch64_debug): Likewise.
44 * arch/aarch64-insn.h (aarch64_debug): Likewise.
45 * arm-linux-nat.c (arm_apcs_32): Likewise.
46 * arm-linux-tdep.c (arm_apcs_32): Likewise.
47 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
48 * arm-tdep.c (arm_debug): Likewise.
49 (arm_apcs_32): Likewise.
50 * auto-load.c (debug_auto_load): Likewise.
51 (auto_load_gdb_scripts): Likewise.
52 (global_auto_load): Likewise.
53 (auto_load_local_gdbinit): Likewise.
54 (auto_load_local_gdbinit_loaded): Likewise.
55 * auto-load.h (global_auto_load): Likewise.
56 (auto_load_local_gdbinit): Likewise.
57 (auto_load_local_gdbinit_loaded): Likewise.
58 * breakpoint.c (disconnected_dprintf): Likewise.
59 (breakpoint_proceeded): Likewise.
60 (automatic_hardware_breakpoints): Likewise.
61 (always_inserted_mode): Likewise.
62 (target_exact_watchpoints): Likewise.
63 (_initialize_breakpoint): Update.
64 * breakpoint.h (target_exact_watchpoints): Change to bool.
65 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
66 * cli/cli-cmds.c (trace_commands): Likewise.
67 * cli/cli-cmds.h (trace_commands): Likewise.
68 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
69 to bool*.
70 * cli/cli-logging.c (logging_overwrite): Change to bool.
71 (logging_redirect): Likewise.
72 (debug_redirect): Likewise.
73 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
74 (struct boolean_option_def) <get_var_address_cb_>: Change return type
75 to bool.
76 <boolean_option_def>: Update.
77 (struct flag_option_def): Change default type of Context to bool
78 from int.
79 <flag_option_def>: Change return type of var_address_cb_ to bool*.
80 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
81 (get_setshow_command_value_string): Likewise.
82 * cli/cli-style.c (cli_styling): Change to bool.
83 (source_styling): Likewise.
84 * cli/cli-style.h (source_styling): Likewise.
85 (cli_styling): Likewise.
86 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
87 to bool.
88 * command.h (var_types): Update comment.
89 (add_setshow_boolean_cmd): Change int* var argument to bool*.
90 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
91 bool.
92 (debug_compile_cplus_scopes): Likewise.
93 * compile/compile-internal.h (compile_debug): Likewise.
94 * compile/compile.c (compile_debug): Likewise.
95 (struct compile_options) <raw>: Likewise.
96 * cp-support.c (catch_demangler_crashes): Likewise.
97 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
98 (usr_cmd_cris_dwarf2_cfi): Likewise.
99 * csky-tdep.c (csky_debug): Likewise.
100 * darwin-nat.c (enable_mach_exceptions): Likewise.
101 * dcache.c (dcache_enabled_p): Likewise.
102 * defs.h (info_verbose): Likewise.
103 * demangle.c (demangle): Likewise.
104 (asm_demangle): Likewise.
105 * dwarf-index-cache.c (debug_index_cache): Likewise.
106 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
107 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
108 * dwarf2read.c (check_physname): Likewise.
109 (use_deprecated_index_sections): Likewise.
110 (dwarf_always_disassemble): Likewise.
111 * eval.c (overload_resolution): Likewise.
112 * event-top.c (set_editing_cmd_var): Likewise.
113 (exec_done_display_p): Likewise.
114 * event-top.h (set_editing_cmd_var): Likewise.
115 (exec_done_display_p): Likewise.
116 * exec.c (write_files): Likewise.
117 * fbsd-nat.c (debug_fbsd_lwp): Likewise
118 (debug_fbsd_nat): Likewise.
119 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
120 Likewise.
121 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
122 <backtrace_past_entry> Likewise.
123 * gdb-demangle.h (demangle): Likewise.
124 (asm_demangle): Likewise.
125 * gdb_bfd.c (bfd_sharing): Likewise.
126 * gdbcore.h (write_files): Likewise.
127 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
128 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
129 * gdbthread.h (print_thread_events): Likewise.
130 * gdbtypes.c (opaque_type_resolution): Likewise.
131 (strict_type_checking): Likewise.
132 * gnu-nat.c (gnu_debug_flag): Likewise.
133 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
134 * guile/scm-param.c (pascm_variable): Add boolval.
135 (add_setshow_generic): Update.
136 (pascm_param_value): Update.
137 (pascm_set_param_value_x): Update.
138 * hppa-tdep.c (hppa_debug): Change to bool..
139 * infcall.c (may_call_functions_p): Likewise.
140 (coerce_float_to_double_p): Likewise.
141 (unwind_on_signal_p): Likewise.
142 (unwind_on_terminating_exception_p): Likewise.
143 * infcmd.c (startup_with_shell): Likewise.
144 * inferior.c (print_inferior_events): Likewise.
145 * inferior.h (startup_with_shell): Likewise.
146 (print_inferior_events): Likewise.
147 * infrun.c (step_stop_if_no_debug): Likewise.
148 (detach_fork): Likewise.
149 (debug_displaced): Likewise.
150 (disable_randomization): Likewise.
151 (non_stop): Likewise.
152 (non_stop_1): Likewise.
153 (observer_mode): Likewise.
154 (observer_mode_1): Likewise.
155 (set_observer_mode): Update.
156 (sched_multi): Change to bool.
157 * infrun.h (debug_displaced): Likewise.
158 (sched_multi): Likewise.
159 (step_stop_if_no_debug): Likewise.
160 (non_stop): Likewise.
161 (disable_randomization): Likewise.
162 * linux-tdep.c (use_coredump_filter): Likewise.
163 (dump_excluded_mappings): Likewise.
164 * linux-thread-db.c (auto_load_thread_db): Likewise.
165 (check_thread_db_on_load): Likewise.
166 * main.c (captured_main_1): Update.
167 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
168 xx2_opt, boolean_opt>: Change to bool.
169 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
170 * maint.c (maintenance_profile_p): Likewise.
171 (per_command_time): Likewise.
172 (per_command_space): Likewise.
173 (per_command_symtab): Likewise.
174 * memattr.c (inaccessible_by_default): Likewise.
175 * mi/mi-main.c (mi_async): Likewise.
176 (mi_async_1): Likewise.
177 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
178 * nat/fork-inferior.h (startup_with_shell): Likewise.
179 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
180 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
181 * nios2-tdep.c (nios2_debug): Likewise.
182 * or1k-tdep.c (or1k_debug): Likewise.
183 * parse.c (parser_debug): Likewise.
184 * parser-defs.h (parser_debug): Likewise.
185 * printcmd.c (print_symbol_filename): Likewise.
186 * proc-api.c (procfs_trace): Likewise.
187 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
188 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
189 (set_parameter_value): Update.
190 (add_setshow_generic): Update.
191 * python/py-value.c (copy_py_bool_obj): Change argument from int*
192 to bool*.
193 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
194 int*.
195 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
196 * record-btrace.c (record_btrace_target::store_registers): Update.
197 * record-full.c (record_full_memory_query): Change to bool.
198 (record_full_stop_at_limit): Likewise.
199 * record-full.h (record_full_memory_query): Likewise.
200 * remote-notif.c (notif_debug): Likewise.
201 * remote-notif.h (notif_debug): Likewise.
202 * remote.c (use_range_stepping): Likewise.
203 (interrupt_on_connect): Likewise.
204 (remote_break): Likewise.
205 * ser-tcp.c (tcp_auto_retry): Likewise.
206 * ser-unix.c (serial_hwflow): Likewise.
207 * skip.c (debug_skip): Likewise.
208 * solib-aix.c (solib_aix_debug): Likewise.
209 * spu-tdep.c (spu_stop_on_load_p): Likewise.
210 (spu_auto_flush_cache_p): Likewise.
211 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
212 Likewise.
213 (struct info_print_options) <quiet>: Likewise.
214 * symfile-debug.c (debug_symfile): Likewise.
215 * symfile.c (auto_solib_add): Likewise.
216 (separate_debug_file_debug): Likewise.
217 * symfile.h (auto_solib_add): Likewise.
218 (separate_debug_file_debug): Likewise.
219 * symtab.c (basenames_may_differ): Likewise.
220 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
221 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
222 (struct info_types_options) <quiet>: Likewise.
223 * symtab.h (demangle): Likewise.
224 (basenames_may_differ): Likewise.
225 * target-dcache.c (stack_cache_enabled_1): Likewise.
226 (code_cache_enabled_1): Likewise.
227 * target.c (trust_readonly): Likewise.
228 (may_write_registers): Likewise.
229 (may_write_memory): Likewise.
230 (may_insert_breakpoints): Likewise.
231 (may_insert_tracepoints): Likewise.
232 (may_insert_fast_tracepoints): Likewise.
233 (may_stop): Likewise.
234 (auto_connect_native_target): Likewise.
235 (target_stop_and_wait): Update.
236 (target_async_permitted): Change to bool.
237 (target_async_permitted_1): Likewise.
238 (may_write_registers_1): Likewise.
239 (may_write_memory_1): Likewise.
240 (may_insert_breakpoints_1): Likewise.
241 (may_insert_tracepoints_1): Likewise.
242 (may_insert_fast_tracepoints_1): Likewise.
243 (may_stop_1): Likewise.
244 * target.h (target_async_permitted): Likewise.
245 (may_write_registers): Likewise.
246 (may_write_memory): Likewise.
247 (may_insert_breakpoints): Likewise.
248 (may_insert_tracepoints): Likewise.
249 (may_insert_fast_tracepoints): Likewise.
250 (may_stop): Likewise.
251 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
252 (make_thread_apply_all_options_def_group): Change argument from int*
253 to bool*.
254 (thread_apply_all_command): Update.
255 (print_thread_events): Change to bool.
256 * top.c (confirm): Likewise.
257 (command_editing_p): Likewise.
258 (history_expansion_p): Likewise.
259 (write_history_p): Likewise.
260 (info_verbose): Likewise.
261 * top.h (confirm): Likewise.
262 (history_expansion_p): Likewise.
263 * tracepoint.c (disconnected_tracing): Likewise.
264 (circular_trace_buffer): Likewise.
265 * typeprint.c (print_methods): Likewise.
266 (print_typedefs): Likewise.
267 * utils.c (debug_timestamp): Likewise.
268 (sevenbit_strings): Likewise.
269 (pagination_enabled): Likewise.
270 * utils.h (sevenbit_strings): Likewise.
271 (pagination_enabled): Likewise.
272 * valops.c (overload_resolution): Likewise.
273 * valprint.h (struct value_print_options) <prettyformat_arrays,
274 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
275 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
276 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
277 Likewise.
278 * windows-nat.c (new_console): Likewise.
279 (cygwin_exceptions): Likewise.
280 (new_group): Likewise.
281 (debug_exec): Likewise.
282 (debug_events): Likewise.
283 (debug_memory): Likewise.
284 (debug_exceptions): Likewise.
285 (useshell): Likewise.
286 * windows-tdep.c (maint_display_all_tib): Likewise.
287 * xml-support.c (debug_xml): Likewise.
288
f1b620e9
MG
2892019-09-17 Mike Gulick <mgulick@mathworks.com>
290
291 * source.c (prepare_path_for_appending): New function.
292 (openp): Make use of new function.
293 (find_and_open_source): Search for the compilation directory and
294 source file as a relative path beneath the directory search path.
295
67f3ed6a
AB
2962019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
297
298 * source-cache.c (source_cache::get_line_charpos): Catch
299 exceptions and return false, this matches the behaviour documented
300 in the header file.
301
74332189
JB
3022019-09-17 Joel Brobecker <brobecker@adacore.com>
303
304 * ada-tasks.c (info_task): Remove quoting of the task's name.
305
f2f24aa9
CB
3062019-09-16 Christian Biesinger <cbiesinger@google.com>
307
308 * symfile.c (auto_solib_add): Replace comment with a reference
309 to the header file.
310
6a062a93
CB
3112019-09-14 Christian Biesinger <cbiesinger@google.com>
312
313 * NEWS: Mention that gdb can now be compiled with Python 3
314 on Windows.
315
ec6c8338
AB
3162019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
317
318 * maint.c (maint_print_section_data::maint_print_section_data):
319 Force use of 'float log10 (float)' by casting the argument to
320 float.
321
aa17805f
AB
3222019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
323
324 * maint.c: Add 'cmath' include.
325 (struct maint_print_section_data): New structure.
326 (print_section_index): New function.
327 (print_bfd_section_info): Add header comment, small whitespace
328 cleanup, and update to call new print_section_index function.
329 (print_objfile_section_info): Likewise.
330 (maint_obj_section_from_bfd_section): New function.
331 (print_bfd_section_info_maybe_relocated): New function.
332 (maintenance_info_sections): Add header comment, always use
333 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
334
3dd9bb46
AB
3352019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
336
337 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
338 inner scope, add check that the objfile has psymtabs before
339 checking psymtabs_addrmap.
340 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
341
4993045d
PW
3422019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
343
344 * NEWS: Announce that Ada task names are now shown at more places,
345 and between quotes (except in info task output).
346 * gdb/ada-tasks.c (task_to_str): New function.
347 (display_current_task_id): Call task_to_str.
348 (task_command_1): Likewise.
349 (print_ada_task_info): In non-mi mode, Properly align headers and data
350 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
351
7a289707
RO
3522019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
353
354 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
355 prstatus.pr_lwp.pr_info instead of making it up.
356
f2aec7f6
CB
3572019-09-11 Christian Biesinger <cbiesinger@google.com>
358
359 * auto-load.c (auto_load_expand_dir_vars): Update.
360 * defs.h (gdb_datadir): Change to std::string.
361 (python_libdir): Likewise.
362 (relocate_gdb_directory): Change return type to std::string.
363 * guile/guile.c (gdbscm_data_directory): Update.
364 (initialize_scheme_side): Update.
365 * jit.c (jit_reader_dir): Change to std::string.
366 (jit_reader_load_command): Update.
367 * main.c (gdb_datadir): Change to std::string.
368 (python_libdir): Likewise.
369 (set_gdb_data_directory): Update.
370 (relocate_path): Change to return std::string.
371 (relocate_gdb_directory): Change to return std::string.
372 (relocate_gdbinit_path_maybe_in_datadir): Update.
373 (captured_main_1): Update.
374 * python/python.c (do_start_initialization): Update.
375 * top.c (show_gdb_datadir): Update.
376 * xml-syscall.c (xml_init_syscalls_info): Update.
377 (init_syscalls_info): Update.
378
9224a013
CB
3792019-09-11 Christian Biesinger <cbiesinger@google.com>
380
381 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
382 out of get_init_files.
383 (get_init_files): Update.
384
f48cd836
CB
3852019-09-11 Christian Biesinger <cbiesinger@google.com>
386
387 * main.c (get_init_files): Change to use std::string.
388 (captured_main_1): Update.
389 (print_gdb_help): Update.
390
9cab7ecd
AT
3912019-09-11 Ali Tamur <tamur@google.com>
392
393 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
394 implementation.
395
67547d89
CB
3962019-09-11 Christian Biesinger <cbiesinger@google.com>
397
398 * dbxread.c (read_dbx_symtab): Update.
399 * dwarf2read.c (load_partial_dies): Update.
400 * mdebugread.c (parse_partial_symbols): Update.
401 (handle_psymbol_enumerators): Update.
402 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
403 * psymtab.c (add_psymbol_to_bcache): Likewise.
404 (add_psymbol_to_list): Likewise.
405 * symtab.c (symbol_set_names): Likewise.
406 * symtab.h (symbol_set_names): Likewise.
407 * xcoffread.c (scan_xcoff_symtab): Update.
408
64b2d4a0
TT
4092019-09-11 Tom Tromey <tom@tromey.com>
410
411 * symfile-mem.c (symbol_file_add_from_memory): Use
412 bfd_set_filename.
413 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
414 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
415
3b00ef10
TT
4162019-09-10 Tom Tromey <tromey@adacore.com>
417
418 * dwarf-index-write.c (write_psymbols): Extend error message.
419 (debug_names::insert): Add Ada code.
420 (debug_names::write_psymbols): Remove Ada check.
421 (debug_names) <m_string_obstack>: New member.
422 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
423 (gdb_index_symbol_name_matcher::matches): Remove.
424 (mapped_index_base::find_name_components_bounds): Add "lang"
425 parameter.
426 (mapped_index_base::build_name_components): Also split names
427 according to Ada syntax.
428 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
429 type of "match_callback".
430 (check_match, check_find_bounds_finds)
431 (dw2_expand_symtabs_matching): Update.
432 (dw2_debug_names_iterator): Add new constructor.
433 (dw2_debug_names_map_matching_symbols): New function.
434 (dw2_debug_names_expand_symtabs_matching): Update.
435 (dwarf2_debug_names_functions): Use
436 dw2_debug_names_map_matching_symbols.
437
aa391654
TT
4382019-09-10 Tom Tromey <tromey@adacore.com>
439
440 * dwarf2read.c (dw2_get_file_names_reader): Add the
441 CU's file name to the results.
442
b054970d
TT
4432019-09-10 Tom Tromey <tromey@adacore.com>
444
445 * ada-lang.c (add_nonlocal_symbols): Combine calls to
446 map_matching_symbols. Update.
447 * dwarf2read.c (dw2_map_matching_symbols): Update.
448 * psymtab.c (match_partial_symbol): Change type; update.
449 (psym_map_matching_symbols): Likewise.
450 * symfile-debug.c (debug_qf_map_matching_symbols): Change
451 type; update.
452 * symfile.h (struct quick_symbol_functions)
453 <map_matching_symbols>: Change "name" to be a lookup_name_info.
454 Remove "match".
455
6a3dbf1b
TT
4562019-09-10 Tom Tromey <tromey@adacore.com>
457
458 * psymtab.c (map_block): Remove.
459 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
460 * symtab.c (iterate_over_symbols_terminated): New function.
461 * symtab.c (iterate_over_symbols_terminated): Declare.
462
6969f124
TT
4632019-09-10 Tom Tromey <tromey@adacore.com>
464
465 * ada-lang.c (ada_iterate_over_symbols): Return bool.
466 * language.h (struct language_defn) <la_iterate_over_symbols>:
467 Return bool.
468 * symtab.c (iterate_over_symbols): Return bool.
469 * symtab.h (iterate_over_symbols): Return bool.
470
199b4314
TT
4712019-09-10 Tom Tromey <tromey@adacore.com>
472
473 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
474 (add_nonlocal_symbols): Update.
475 * dwarf2read.c (dw2_map_matching_symbols): Change type.
476 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
477 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
478 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
479 Change type of "callback". Remove "data".
480
a084a2a6
AT
481
4822019-09-09 Ali Tamur <tamur@google.com>
483
484 * dwarf2read.c (comp_unit_head): Update comment.
485 (dwarf2_dwo_name): New function declaration.
486 (dwarf_unit_type_name): New function declaration.
487 (read_comp_unit_head): Add support for new compilation units,
488 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
489 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
490 (currently named as "signature") in their header. Also clarify error
491 messages.
492 (lookup_dwo_id): New function. Returns the dwo id of the given
493 compile unit.
494 (lookup_dwo_unit): Use the new lookup_dwo_id function.
495 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
496 functions.
497 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
498 (dwarf2_dwo_name): Get the dwo name if present.
499 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
500 purposes.
501
25a2915e
TT
5022019-09-09 Tom Tromey <tom@tromey.com>
503
504 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
505
e4df0874
PW
5062019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
507
508 * python/python.c (do_start_initialization): Make progname_copy static,
509 to avoid a leak report.
510
8634b462
TT
5112019-09-08 Tom Tromey <tom@tromey.com>
512
513 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
514
c7f839cb
SM
5152019-09-07 Simon Marchi <simon.marchi@efficios.com>
516
517 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
518 Change type to gdb::optional<block_enum>.
519 (dw2_symtab_iter_init): Change block_index parameter type
520 to gdb::optional<block_enum>.
521 (dw2_lookup_symbol): Change block_index parameter
522 type to block_enum.c
523 (dw2_debug_names_lookup_symbol): Likewise.
524 * psymtab.c (psym_lookup_symbol): Likewise.
525 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
526 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
527 Likewise.
528
ead0e69a
CB
5292019-09-06 Christian Biesinger <cbiesinger@google.com>
530
531 * defs.h (relocate_gdb_directory): Change int to bool in
532 signature and rename flag to relocatable.
533 * main.c (relocate_path): Likewise.
534 (relocate_gdb_directory): Likewise.
535
b16c44de
AM
5362019-09-06 Alan Modra <amodra@gmail.com>
537
538 * coffread.c (coff_symfile_read): Constify filename variable.
539 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
540 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
541 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
542 * solib.c (reload_shared_libraries_1): Likewise.
543 * symfile.c (reread_symbols): Likewise.
544 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
545 * solib-darwin.c (darwin_bfd_open): Likewise.
546 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
547
06ff036e
AB
5482019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
549
550 * psymtab.c (print_partial_symbols): Handle missing domain_enum
551 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
552
4e962e74
TT
5532019-09-03 Tom Tromey <tromey@adacore.com>
554
555 * ada-valprint.c (ada_val_print_num): Don't recurse for range
556 types.
557 (has_negatives): Unbias a range type bound.
558 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
559 * gdbtypes.c (operator==): Handle new field.
560 (create_range_type): Add "bias" parameter.
561 (create_static_range_type, resolve_dynamic_range): Update.
562 * gdbtypes.h (struct range_bounds) <bias>: New member.
563 (create_range_type): Add bias parameter.
564 * printcmd.c (print_scalar_formatted): Unbias range types.
565 * value.c (unpack_long): Unbias range types.
566 (pack_long): Bias range types.
567
d90b8f26
AH
5682019-09-02 Alan Hayward <alan.hayward@arm.com>
569
570 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
571 probe arguments.
572
fe01123e
AH
5732019-09-02 Alan Hayward <alan.hayward@arm.com>
574
575 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
576 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
577 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
578 (compile_probe_arg): Likewise.
579 * probe.h (get_argument_count): Likewise.
580 * solib-svr4.c (solib_event_probe_action): Likewise.
581 * stap-probe.c (stap_probe::get_argument_count): Likewise.
582
e661ef01
AH
5832019-09-02 Alan Hayward <alan.hayward@arm.com>
584
585 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
586 code to here...
587 (svr4_create_solib_event_breakpoints): ...from here.
588
47a536d9
SDJ
5892019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
590
591 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
592 suffix from warning message.
593
d6a00eba
TT
5942019-08-30 Tom Tromey <tom@tromey.com>
595
596 * tui/tui-winsource.h (struct tui_source_window_base)
597 <refresh_all>: Don't declare.
598 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
599 Remove.
600 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
601 tui_show_locator_content.
602 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
603 declare.
604 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
605 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
606 declare.
607
55b2657b
TT
6082019-08-30 Tom Tromey <tom@tromey.com>
609
610 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
611
12a8555a
TT
6122019-08-30 Tom Tromey <tom@tromey.com>
613
614 * tui/tui-stack.c (_initialize_tui_stack): Move later.
615 Remove unnecessary forward declarations.
616
900ac242
TT
6172019-08-30 Tom Tromey <tom@tromey.com>
618
619 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
620 rerender.
621 (tui_update_locator_fullname, tui_show_frame_info): Don't call
622 tui_show_locator_content.
623
99ab33fb
TT
6242019-08-30 Tom Tromey <tom@tromey.com>
625
626 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
627 (tui_locator_window::rerender): Rewrite using body of previous
628 tui_show_locator_content.
629
e594a5d1
TT
6302019-08-30 Tom Tromey <tom@tromey.com>
631
632 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
633 set_locator_fullname>: New methods.
634 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
635 Rename from tui_set_locator_fullname.
636 (tui_locator_window::set_locator_info): Rename from
637 tui_set_locator_info. Return bool.
638 (tui_update_locator_fullname, tui_show_frame_info): Update.
639
715bb467
TT
6402019-08-30 Tom Tromey <tom@tromey.com>
641
642 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
643
772f3f03
TT
6442019-08-30 Tom Tromey <tom@tromey.com>
645
646 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
647 call touchwin.
648
108e13ab
TT
6492019-08-30 Tom Tromey <tom@tromey.com>
650
651 * tui/tui-wingeneral.c (box_win): Assume win_info and
652 win_info->handle cannot be NULL.
653
cdaa6eb4
TT
6542019-08-30 Tom Tromey <tom@tromey.com>
655
656 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
657 refresh_window>: Declare.
658 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
659 resize.
660 (tui_data_item_window::rerender): Rename from
661 tui_display_register.
662 (tui_data_item_window::refresh_window): New method.
663 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
664 no-op.
665
89df7f90
TT
6662019-08-30 Tom Tromey <tom@tromey.com>
667
668 * tui/tui-regs.h (struct tui_data_window) <regs_content,
669 regs_column_count, current_group>: Move later. Now private.
670 <get_current_group>: New method.
671 * tui/tui-regs.c (tui_reg_command): Update.
672 * tui/tui-layout.c (tui_set_layout): Update.
673
1bf2866a
TT
6742019-08-30 Tom Tromey <tom@tromey.com>
675
676 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
677 (tui_data_window::rerender): Don't call
678 check_and_display_highlight_if_needed.
679 (tui_data_window::refresh_all): Remove call to
680 erase_data_content.
681
0670413d
TT
6822019-08-30 Tom Tromey <tom@tromey.com>
683
684 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
685 (tui_data_window::display_registers_from)
686 (tui_data_window::display_reg_element_at_line)
687 (tui_data_window::display_registers_from_line): Remove checks of
688 "empty".
689
18bb55c7
TT
6902019-08-30 Tom Tromey <tom@tromey.com>
691
692 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
693 Don't declare.
694 * tui/tui-regs.c (tui_data_window::show_registers): Call
695 rerender.
696 (tui_data_window::rerender): Rename from display_all_data.
697 (tui_data_window::rerender): Remove old implementation.
698
1f6d2f10
TT
6992019-08-30 Tom Tromey <tom@tromey.com>
700
701 * tui/tui-regs.c (tui_data_window::display_all_data): Change
702 text.
703 * tui/tui-data.h (NO_DATA_STRING): Remove define.
704
16d01f9c
BW
7052019-08-29 Bernhard Wodok <barto@gmx.net>
706 Sergio Durigan Junior <sergiodj@redhat.com>
707
708 PR win32/24284
709 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
710
d8f27c60
AB
7112019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
712
713 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
714 when searching for types.
715
1f20c35e
AB
7162019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
717
718 * f-lang.c (f_language_defn): Use f_print_typedef.
719 * f-lang.h (f_print_typedef): Declare.
720 * f-typeprint.c (f_print_typedef): Define.
721
550105b7
CB
7222019-08-27 Christian Biesinger <cbiesinger@google.com>
723
724 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
725
4acfdd20
AB
7262019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
727
728 * cli/cli-utils.c (info_print_options_defs): Delete.
729 (make_info_print_options_def_group): Delete.
730 (extract_info_print_options): Delete.
731 (info_print_command_completer): Delete.
732 (info_print_args_help): Add extra parameter, and optionally
733 include text about -n flag.
734 * cli/cli-utils.h (struct info_print_options): Delete.
735 (extract_info_print_options): Delete declaration.
736 (info_print_command_completer): Delete declaration.
737 (info_print_args_help): Add extra parameter, extend header
738 comment.
739 * python/python.c (gdbpy_rbreak): Pass additional parameter to
740 search_symbols.
741 * stack.c (struct info_print_options): New type.
742 (info_print_options_defs): New file scoped variable.
743 (make_info_print_options_def_group): New static function.
744 (info_print_command_completer): New static function.
745 (info_locals_command): Update to use new local functions.
746 (info_args_command): Likewise.
747 (_initialize_stack): Add extra parameter to calls to
748 info_print_args_help.
749 * symtab.c (search_symbols): Add extra parameter, use this to
750 possibly excluse non-debug symbols.
751 (symtab_symbol_info): Add extra parameter, which is passed on to
752 search_symbols.
753 (struct info_print_options): New type.
754 (info_print_options_defs): New file scoped variable.
755 (make_info_print_options_def_group): New static function.
756 (info_print_command_completer): New static function.
757 (info_variables_command): Update to use local functions, and pass
758 extra parameter through to symtab_symbol_info.
759 (info_functions_command): Likewise.
760 (info_types_command): Pass additional argument through to
761 symtab_symbol_info.
762 (rbreak_command): Pass extra argument to search_symbols.
763 (_initialize_symtab): Add extra arguments for calls to
764 info_print_args_help, and update help text for 'info variables',
765 'whereis', and 'info functions' commands.
766 * symtab.h (search_symbols): Add extra argument to declaration.
767 * NEWS: Mention new flags.
768
9aa55206
CB
7692019-08-26 Christian Biesinger <cbiesinger@google.com>
770
771 * symtab.c (lookup_static_symbol): Call the new function (and move
772 it down to be next to lookup_global_symbol).
773 (struct global_sym_lookup_data): Add block_enum member and rename to...
774 (struct global_or_static_sym_lookup_data): ...this.
775 (lookup_symbol_global_iterator_cb): Pass block_index instead of
776 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
777 (lookup_symbol_global_or_static_iterator_cb): ...this.
778 (lookup_global_or_static_symbol): New function.
779 (lookup_global_symbol): Call new function.
780
5c31b358
TV
7812019-08-26 Tom de Vries <tdevries@suse.de>
782
783 PR c++/24852
784 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
785 when pc_probe.prob == NULL.
786
23c13d42
SM
7872019-08-25 Simon Marchi <simon.marchi@efficios.com>
788
789 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
790 variable symbol_linkage to symbol_linkage_.
791
beadd3e8
SM
7922019-08-25 Simon Marchi <simon.marchi@efficios.com>
793
794 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
795 represent whether the symbol is static, dynamic, or we don't
796 know.
797
e3ec872f
YS
7982019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
799
800 * gdb/rx-tdep.c (rx_register_names): New.
801 (rx_register_name): Delete.
802 (rx_psw_type): Delete.
803 (rx_fpsw_type): Delete.
804 (rx_register_type): Delete.
805 (rx_gdbarch_init): Convert target-descriptions.
806 (_initialize_rx_tdep): Add initialize_tdesc_rx.
807 * gdb/features/Makefile: Add rx.xml.
808 * gdb/features/rx.xml: New.
809 * gdb/features/rx.c: Generated.
810 * gdb/NEWS: Mention target description support.
811
d0509ba4
CB
8122019-08-22 Christian Biesinger <cbiesinger@google.com>
813
814 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
815 *slot_ptr.
816
2d41fa11
SDJ
8172019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
818
819 * configure.ac: Don't check for 'dlfcn.h' (moved to
820 gdbsupport/common.m4).
821 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
822 'gdbsupport/'.
823 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
824 * compile/compile-c-support.c: Include
825 'gdbsupport/gdb-dlfcn.h'.
826 * gdbsupport/common.m4: Check for 'dlfcn.h'.
827 * gdb-dlfcn.c: Move to...
828 * gdbsupport/gdb-dlfcn.c: ... here.
829 * gdb-dlfcn.h: Move to...
830 * gdbsupport/gdb-dlfcn.h: ... here.
831
de8af808
SL
8322019-08-23 Sandra Loosemore <sandra@codesourcery.com>
833
834 * nios2-tdep.c (struct reg_value): Improve comments. Make
835 the offset field signed.
836
27204489
CB
8372019-08-22 Christian Biesinger <cbiesinger@google.com>
838
839 * python/lib/gdb/__init__.py (_execute_file): New function.
840 * python/python.c (python_run_simple_file): Call gdb._execute_file
841 on Windows.
842
43771869
AB
8432019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
844
845 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
846 all uses as this was never set to anything but a zero value.
847
26c957f1
PA
8482019-08-21 Bogdan Harjoc <harjoc@gmail.com>
849
850 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
851
c07aae6e
CB
8522019-08-21 Christian Biesinger <cbiesinger@google.com>
853
854 * tui/tui-data.h (tui_gen_win_info): Add an =default
855 move constructor, required by some GCC versions.
856
3960cb7a
JF
8572019-08-21 Jinke Fan <fanjinke51@yeah.net>
858
859 * go32-nat.c (go32_sysinfo): Add hygon_p.
860
04c72a68
TT
8612019-08-20 Tom Tromey <tom@tromey.com>
862
863 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
864 line_from_reg_element_no, first_reg_element_no_inline,
865 display_all_data, delete_data_content_windows,
866 erase_data_content>: Now private.
867
072272ce
TT
8682019-08-20 Tom Tromey <tom@tromey.com>
869
870 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
871 (tui_unhighlight_win, tui_highlight_win)
872 (tui_win_info::make_window): Update.
873 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
874
973961bd
TT
8752019-08-20 Tom Tromey <tom@tromey.com>
876
877 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
878 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
879 (MAX_PID_WIDTH): Move to tui-stack.c.
880 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
881 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
882 (MAX_PID_WIDTH): Move from tui-data.h.
883
ab0e1f1a
TT
8842019-08-20 Tom Tromey <tom@tromey.com>
885
886 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
887 * tui/tui-wingeneral.c (box_win): Change type of win_info.
888 (box_win): Update.
889 (tui_gen_win_info::make_window): Rename from tui_make_window.
890 (tui_win_info::make_window): New method.
891 (tui_gen_win_info::make_visible): Update.
892 * tui/tui-source.c (tui_source_window::set_contents): Update.
893 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
894 (tui_data_window::display_registers_from): Update.
895 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
896 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
897 Declare.
898 <can_box>: Remove.
899 <title>: Remove.
900 (struct tui_win_info) <make_window>: Declare.
901 <can_box>: Now virtual.
902 <title>: New member.
903 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
904 * tui/tui-command.c (tui_cmd_window::resize): Update.
905
100c2bf3
TT
9062019-08-20 Tom Tromey <tom@tromey.com>
907
908 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
909 * tui/tui-regs.c (tui_data_window::show_registers): Update.
910 (tui_data_window::check_register_values): Update.
911
fa4dc567
TT
9122019-08-20 Tom Tromey <tom@tromey.com>
913
914 * tui/tui-regs.h (struct tui_data_window): Use
915 DISABLE_COPY_AND_ASSIGN.
916 <regs_content>: Change type, removing unique_ptr.
917 <tui_data_window>: Add move constructor.
918 * tui/tui-regs.c (tui_data_window::show_registers)
919 (tui_data_window::show_register_group)
920 (tui_data_window::display_registers_from)
921 (tui_data_window::display_registers_from)
922 (tui_data_window::first_data_item_displayed)
923 (tui_data_window::delete_data_content_windows)
924 (tui_data_window::rerender, tui_data_window::refresh_window)
925 (tui_data_window::check_register_values): Update.
926
ca02d7c8
TT
9272019-08-20 Tom Tromey <tom@tromey.com>
928
929 * tui/tui-regs.h (struct tui_data_window) <show_registers,
930 show_register_group>: Declare.
931 (tui_show_register_group): Don't declare.
932 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
933 tui_show_registers.
934 (tui_data_window::show_register_group): Rename from
935 tui_show_register_group.
936 (tui_data_window::check_register_values, tui_reg_command):
937 Update.
938 * tui/tui-layout.c (tui_set_layout): Update.
939
63356bfd
TT
9402019-08-20 Tom Tromey <tom@tromey.com>
941
942 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
943 Declare.
944 (tui_check_register_values): Don't declare.
945 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
946 from tui_check_register_values.
947 * tui/tui-hooks.c (tui_register_changed): Update.
948
42cc14a7
TT
9492019-08-20 Tom Tromey <tom@tromey.com>
950
951 * tui/tui-regs.c (tui_reg_layout): Move later.
952 (tui_show_registers): Don't enable TUI mode or change layout.
953
b9ad3686
TT
9542019-08-20 Tom Tromey <tom@tromey.com>
955
956 * tui/tui-regs.h (struct tui_data_item_window)
957 <~tui_data_item_window>: Remove.
958 <content>: Now a unique_xmalloc_ptr.
959 * tui/tui-regs.c (tui_register_format): Return a
960 unique_xmalloc_ptr.
961 (tui_get_register): Update.
962 (~tui_data_item_window): Remove.
963 (tui_data_window::display_registers_from, tui_display_register):
964 Update.
965 * tui/tui-io.h (tui_expand_tabs): Update.
966 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
967 Remove "col" parameter.
968
8e114aab
TT
9692019-08-20 Tom Tromey <tom@tromey.com>
970
971 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
972 field.
973 * tui/tui-regs.c (~tui_data_item_window): Update.
974
1a4f81dd
TT
9752019-08-20 Tom Tromey <tom@tromey.com>
976
977 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
978 earlier.
979
0f8d8876
TT
9802019-08-20 Tom Tromey <tom@tromey.com>
981
982 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
983
605dc2c2
TT
9842019-08-20 Tom Tromey <tom@tromey.com>
985
986 * tui/tui-source.h (struct tui_source_window): Update.
987 * tui/tui-regs.c (tui_show_registers): Update.
988 * tui/tui-disasm.h (struct tui_disasm_window): Update.
989 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
990 (NO_REGS_STRING): Remove defines.
991
aedbe3bb
CM
9922019-08-20 Conrad Meyer <cem@FreeBSD.org>
993
994 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
995 unnecessary thread walk if remote doesn't support the packet.
996
7ce8f214
TT
9972019-08-19 Tom Tromey <tromey@adacore.com>
998
999 * python/py-value.c (value_has_field): Fix indentation.
1000
f21c2bd7
TT
10012019-08-19 Tom Tromey <tromey@adacore.com>
1002
1003 * printcmd.c (do_one_display, info_display_command): Update.
1004 * block.h (contained_in): Return bool. Add allow_nested
1005 parameter.
1006 * block.c (contained_in): Return bool. Add allow_nested
1007 parameter.
1008
d806ea2d
TT
10092019-08-19 Tom Tromey <tom@tromey.com>
1010
1011 * configure: Rebuild.
1012 * configure.ac: Disallow the combination of -static-libstdc++ and
1013 source highlight.
1014 * source-cache.c (get_language_name): Handle rust.
1015 (source_cache::get_source_lines): Ignore highlighting exceptions.
1016
398fdd60
TT
10172019-08-16 Tom Tromey <tom@tromey.com>
1018
1019 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1020 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1021 (struct tui_source_window_base) <make_visible, refresh_window,
1022 resize>: Remove methods.
1023 <execution_info>: Remove field.
1024 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1025 (tui_show_source_line, tui_source_window_base)
1026 (~tui_source_window_base): Update.
1027 (tui_source_window_base::resize)
1028 (tui_source_window_base::make_visible)
1029 (tui_source_window_base::refresh_window): Remove.
1030 (tui_source_window_base::update_exec_info): Update.
1031 * tui/tui-source.c (tui_source_window::set_contents): Update.
1032 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1033
e699d331
TT
10342019-08-16 Tom Tromey <tom@tromey.com>
1035
1036 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1037 deprecated_query_hook.
1038
bb01dbfc
TT
10392019-08-16 Tom Tromey <tom@tromey.com>
1040
1041 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1042 (tui_update_source_windows_with_line): Update.
1043 * tui/tui-source.h (struct tui_source_window)
1044 <show_symtab_source>: Declare.
1045 (tui_show_symtab_source): Don't declare.
1046 * tui/tui-source.c (tui_show_symtab_source): Rename from
1047 tui_show_symtab_source.
1048
81c82c4b
TT
10492019-08-16 Tom Tromey <tom@tromey.com>
1050
1051 * tui/tui-winsource.h (struct tui_source_window_base)
1052 <set_contents>: Declare.
1053 * tui/tui-winsource.c
1054 (tui_source_window_base::update_source_window_as_is): Update.
1055 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1056 Declare.
1057 (tui_set_source_content): Don't declare.
1058 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1059 tui_set_source_content.
1060 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1061 Declare.
1062 (tui_set_disassem_content): Don't declare.
1063 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1064 tui_set_disassem_content.
1065
2ddaf614
TT
10662019-08-16 Tom Tromey <tom@tromey.com>
1067
1068 * tui/tui-winsource.h (struct tui_source_window_base)
1069 <update_breakpoint_info>: Declare.
1070 (tui_update_breakpoint_info): Don't declare.
1071 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1072 (tui_update_all_breakpoint_info): Update.
1073 (tui_source_window_base::update_breakpoint_info): Rename from
1074 tui_update_breakpoint_info.
1075 (tui_source_window_base::update_exec_info): Update.
1076
017f9828
TT
10772019-08-16 Tom Tromey <tom@tromey.com>
1078
1079 * tui/tui-winsource.h (struct tui_source_window_base)
1080 <update_source_window>: Declare.
1081 (tui_update_source_window): Don't declare.
1082 * tui/tui-winsource.c
1083 (tui_source_window_base::update_source_window): Rename from
1084 tui_update_source_window.
1085 (tui_source_window_base::rerender): Update.
1086 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1087 * tui/tui-disasm.c (tui_show_disassem)
1088 (tui_show_disassem_and_update_source)
1089 (tui_disasm_window::maybe_update): Update.
1090
ed8358e9
TT
10912019-08-16 Tom Tromey <tom@tromey.com>
1092
1093 * tui/tui-winsource.h (struct tui_source_window_base)
1094 <update_source_window_as_is>: Declare.
1095 (tui_update_source_window_as_is): Don't declare.
1096 * tui/tui-winsource.c (tui_update_source_window): Update
1097 (tui_source_window_base::update_source_window_as_is): Rename from
1098 tui_update_source_window_as_is.
1099 (tui_source_window_base::refill): Update.
1100 * tui/tui-source.c (tui_show_symtab_source): Update.
1101 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1102 Update.
1103
20149b6b
TT
11042019-08-16 Tom Tromey <tom@tromey.com>
1105
1106 * tui/tui-winsource.h (tui_update_source_window)
1107 (tui_update_source_window_as_is): Remove "noerror" parameter.
1108 * tui/tui-winsource.c (tui_update_source_window)
1109 (tui_update_source_window_as_is): Remove "noerror" parameter.
1110 (tui_update_source_windows_with_addr)
1111 (tui_update_source_windows_with_line)
1112 (tui_source_window_base::rerender)
1113 (tui_source_window_base::refill): Update.
1114 * tui/tui-source.h (tui_set_source_content)
1115 (tui_show_symtab_source): Remove "noerror" parameter.
1116 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1117 parameter.
1118 (tui_show_symtab_source): Likewise.
1119 (tui_source_window::maybe_update): Update.
1120 * tui/tui-disasm.c (tui_show_disassem)
1121 (tui_show_disassem_and_update_source)
1122 (tui_disasm_window::do_scroll_vertical)
1123 (tui_disasm_window::maybe_update): Update.
1124
2d83e710
TT
11252019-08-16 Tom Tromey <tom@tromey.com>
1126
1127 * tui/tui.c (tui_is_window_visible): Update.
1128 * tui/tui-wingeneral.c (tui_make_window)
1129 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1130 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1131 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1132 (tui_set_win_height_command, parse_scrolling_args): Update.
1133 * tui/tui-source.c (tui_source_window::style_changed): Update.
1134 * tui/tui-regs.c (tui_show_registers)
1135 (tui_data_window::first_data_item_displayed)
1136 (tui_data_window::delete_data_content_windows)
1137 (tui_check_register_values, tui_reg_command): Update.
1138 * tui/tui-disasm.c (tui_show_disassem): Update.
1139 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1140 method.
1141 <is_visible>: Remove field.
1142 * tui/tui-data.c (tui_next_win, tui_prev_win)
1143 (tui_delete_invisible_windows): Update.
1144
d4ab829a
TT
11452019-08-16 Tom Tromey <tom@tromey.com>
1146
1147 * tui/tui-winsource.h (struct tui_source_window_base)
1148 <m_has_locator>: Remove.
1149 * tui/tui-layout.c (show_source_disasm_command, show_data)
1150 (show_source_or_disasm_and_command): Update.
1151
aa7ca1bb
AH
11522019-08-16 Alan Hayward <alan.hayward@arm.com>
1153
1154 * NEWS (Other MI changes): New subsection.
1155 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1156 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1157 * arch-utils.c (default_get_pc_address_flags): New function.
1158 * arch-utils.h (default_get_pc_address_flags): New declaration.
1159 * gdbarch.sh: Add get_pc_address_flags.
1160 * gdbarch.c: Regenerate.
1161 * gdbarch.h: Likewise.
1162 * stack.c (print_pc): New function.
1163 (print_frame_info) (print_frame): Call print_pc.
1164
6eac171f
TV
11652019-08-16 Tom de Vries <tdevries@suse.de>
1166
1167 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1168 print_objfile_section_info.
1169
3df505f6
TT
11702019-08-15 Tom Tromey <tom@tromey.com>
1171
1172 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1173 calling update_cmdwin_start_line.
1174 * tui/tui-winsource.h (struct tui_source_window_base)
1175 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1176 <rerender>: Declare.
1177 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1178 Call rerender.
1179 (tui_source_window_base::set_new_height): Remove.
1180 (tui_source_window_base::rerender): Rename from
1181 do_make_visible_with_new_height.
1182 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1183 resize method.
1184 (tui_win_info::make_invisible_and_set_new_height)
1185 (tui_win_info::make_visible_with_new_height): Remove.
1186 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1187 Declare.
1188 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1189 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1190 do_make_visible_with_new_height>: Don't declare.
1191 <rerender>: Declare.
1192 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1193 set_new_height.
1194 (tui_data_window::do_make_visible_with_new_height): Remove.
1195 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1196 call tui_show_locator_content.
1197 (tui_gen_win_info::resize): Call rerender.
1198 (show_source_or_disasm_and_command): Don't call
1199 tui_show_locator_content.
1200 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1201 method.
1202 (struct tui_win_info) <rerender>: Declare.
1203 <set_new_height, make_invisible_and_set_new_height,
1204 make_visible_with_new_height>: Don't declare.
1205 * tui/tui-data.c (tui_win_list::rerender): New method.
1206 * tui/tui-command.h (struct tui_cmd_window)
1207 <do_make_visible_with_new_height>: Don't declare.
1208 * tui/tui-command.c
1209 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1210
272560b5
TT
12112019-08-15 Tom Tromey <tromey@adacore.com>
1212
1213 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1214 * ada-lang.c (ada_enum_name): Likewise.
1215
08235187
CB
12162019-08-15 Christian Biesinger <cbiesinger@google.com>
1217
1218 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1219 leading underscore.
1220 (GdbOutputErrorFile): Likewise.
1221 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1222 accordingly.
1223 (execute_unwinders): Rename to have a leading underscore.
1224 (auto_load_packages): Likewise.
1225 (global scope): Adjust call to auto_load_packages accordingly.
1226 (GdbSetPythonDirectory): Likewise.
1227 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1228 instead of execute_unwinders.
1229
db502012
TT
12302019-08-15 Tom Tromey <tom@tromey.com>
1231
1232 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1233 (show_data): Don't change window visibility.
1234 (tui_gen_win_info::resize): Remove special case for command
1235 window. Use wresize, when available.
1236 (show_source_or_disasm_and_command): Don't change window
1237 visibility.
1238 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1239 <make_visible>: New method.
1240 * tui/tui-command.c (tui_cmd_window::resize): New method.
1241
3891b65e
TT
12422019-08-15 Tom Tromey <tom@tromey.com>
1243
1244 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1245 (struct tui_source_windows): New.
1246 * tui/tui-winsource.c (tui_display_main): Update.
1247 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1248 (new_height_ok, parse_scrolling_args): Update.
1249 * tui/tui-layout.c (show_layout, show_data): Update.
1250 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1251 (tui_add_to_source_windows): Don't declare.
1252 * tui/tui-data.c (source_windows, tui_source_windows)
1253 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1254
ee556432
TT
12552019-08-15 Tom Tromey <tom@tromey.com>
1256
1257 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1258 Rename from reset.
1259 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1260 * tui/tui-layout.c (show_source_disasm_command, show_data):
1261 Update.
1262 (tui_gen_win_info::resize): Rename.
1263 (show_source_or_disasm_and_command): Update.
1264 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1265 reset.
1266
46f438e3
TT
12672019-08-15 Tom Tromey <tom@tromey.com>
1268
1269 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1270 * tui/tui-interp.c (tui_interp::init): Don't call
1271 tui_initialize_static_data.
1272 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1273
f4ce562c
TT
12742019-08-15 Tom Tromey <tom@tromey.com>
1275
1276 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1277 examine tui_win_list.
1278
c398c3d0
TT
12792019-08-15 Tom Tromey <tom@tromey.com>
1280
1281 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1282 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1283 tui_clear_source_content.
1284 (tui_clear_source_content): Remove.
1285 (tui_source_window_base::do_erase_source_content): Hoist call to
1286 content.clear().
1287 * tui/tui-stack.c (tui_show_frame_info): Don't call
1288 tui_clear_source_content.
1289
e25d2004
TT
12902019-08-15 Tom Tromey <tom@tromey.com>
1291
1292 * tui/tui-winsource.h (struct tui_source_window_base)
1293 <do_erase_source_content>: New method.
1294 <erase_source_content>: New method.
1295 (tui_erase_source_content): Don't declare.
1296 * tui/tui-winsource.c (tui_clear_source_content): Update.
1297 (tui_source_window_base::do_erase_source_content): Rename from
1298 tui_erase_source_content.
1299 (tui_source_window_base::show_source_content): Update.
1300 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1301 * tui/tui-source.h (struct tui_source_window)
1302 <erase_source_content>: New method.
1303 * tui/tui-disasm.h (struct tui_disasm_window)
1304 <erase_source_content>: New method.
1305
002f15c2
TT
13062019-08-15 Tom Tromey <tom@tromey.com>
1307
1308 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1309 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1310 constructor.
1311 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1312 * tui/tui-source.c (tui_set_source_content): Update.
1313 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1314
c9033fe8
TT
13152019-08-15 Tom Tromey <tom@tromey.com>
1316
1317 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1318 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1319 tui-source.c.
1320 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1321 Declare.
1322 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1323 method.
1324 (tui_source_window::maybe_update): Update.
1325
088f37dd
TT
13262019-08-15 Tom Tromey <tom@tromey.com>
1327
1328 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1329 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1330 tui-disasm.c.
1331 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1332 Declare.
1333 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1334 method.
1335 (tui_disasm_window::maybe_update): Update.
1336
a54700c6
TT
13372019-08-15 Tom Tromey <tom@tromey.com>
1338
1339 * tui/tui-winsource.h (struct tui_source_window_base)
1340 <maybe_update>: Declare.
1341 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1342 method.
1343 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1344 Declare.
1345 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1346 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1347 Declare.
1348 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1349
e2a678a5
TT
13502019-08-15 Tom Tromey <tom@tromey.com>
1351
1352 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1353
f2dda477
TT
13542019-08-15 Tom Tromey <tom@tromey.com>
1355
1356 * tui/tui-wingeneral.c: Include tui-stack.h.
1357 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1358 (struct tui_locator_window): Move from tui-data.h.
1359 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1360 (tui_initialize_static_data): Move from tui-data.c.
1361 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1362 (struct tui_locator_window): Move to tui-stack.c.
1363 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1364 (tui_initialize_static_data): Move to tui-stack.c.
1365
ed4a1084
TT
13662019-08-15 Tom Tromey <tom@tromey.com>
1367
1368 * tui/tui-layout.c (show_source_disasm_command)
1369 (show_source_or_disasm_and_command): Use make_visible method, not
1370 tui_make_window.
1371 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1372 Remove.
1373
65962b20
TT
13742019-08-15 Tom Tromey <tom@tromey.com>
1375
1376 * tui/tui-wingeneral.h (tui_make_window): Update.
1377 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1378 parameter.
1379 (tui_gen_win_info::make_visible): Update.
1380 * tui/tui-regs.c (tui_data_window::display_registers_from):
1381 Update.
1382 * tui/tui-layout.c (show_source_disasm_command)
1383 (show_source_or_disasm_and_command): Update.
1384 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1385 (enum tui_box): Remove.
1386 (struct tui_win_info) <can_box>: New method.
1387 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1388 method.
1389
2208ee91
TV
13902019-08-15 Tom de Vries <tdevries@suse.de>
1391
1392 * linux-nat-trad.c: Include gdbarch.h.
1393
75faf5c4
AH
13942019-08-14 Alan Hayward <alan.hayward@arm.com>
1395
1396 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1397 register sizes.
1398
b1c896b3
TT
13992019-08-14 Tom Tromey <tromey@adacore.com>
1400
1401 * darwin-nat.c: Include gdbarch.h.
1402 * darwin-nat-info.c: Include gdbarch.h.
1403
6405cd73
TT
14042019-08-13 Tom Tromey <tom@tromey.com>
1405
1406 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1407 Remove.
1408 * tui/tui-data.c (tui_initialize_static_data): Update.
1409
5216580d
TT
14102019-08-13 Tom Tromey <tom@tromey.com>
1411
1412 * tui/tui-winsource.h (struct tui_exec_info_window)
1413 <~tui_exec_info_window, maybe_allocate_content, get_content,
1414 m_content>: Remove.
1415 (struct tui_source_window_base) <set_exec_info_content,
1416 show_exec_info_content>: Don't declare.
1417 * tui/tui-winsource.c
1418 (tui_exec_info_window::maybe_allocate_content): Remove.
1419 (tui_source_window_base::update_exec_info): Rename from
1420 set_exec_info_content.
1421 (tui_source_window_base::show_exec_info_content)
1422 (tui_source_window_base::update_exec_info): Remove.
1423
93858ad3
TT
14242019-08-13 Tom Tromey <tom@tromey.com>
1425
1426 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1427 declare.
1428 * tui/tui-winsource.c (tui_update_source_window_as_is)
1429 (tui_update_source_windows_with_addr, tui_erase_source_content):
1430 Update.
1431 (tui_clear_exec_info_content): Remove.
1432
e321e7ce
TT
14332019-08-13 Tom Tromey <tom@tromey.com>
1434
1435 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1436 declare.
1437 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1438 call tui_erase_exec_info_content.
1439 (tui_clear_exec_info_content): Rename from
1440 tui_erase_exec_info_content.
1441 (tui_clear_exec_info_content): Delete.
1442
8270ac62
TT
14432019-08-13 Tom Tromey <tom@tromey.com>
1444
1445 * tui/tui-winsource.h (struct tui_source_window_base)
1446 <show_exec_info_content>: Declare.
1447 (tui_show_exec_info_content): Don't declare.
1448 * tui/tui-winsource.c
1449 (tui_source_window_base::show_exec_info_content): Rename from
1450 tui_show_exec_info_content.
1451 (tui_source_window_base::update_exec_info): Update.
1452
7b56485d
TT
14532019-08-13 Tom Tromey <tom@tromey.com>
1454
1455 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1456 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1457 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1458 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1459 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1460 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1461 ... here.
1462
7ba913dc
TT
14632019-08-13 Tom Tromey <tom@tromey.com>
1464
1465 * tui/tui-winsource.h (struct tui_source_window_base)
1466 <update_exec_info>: Declare.
1467 (tui_update_exec_info): Don't declare.
1468 * tui/tui-winsource.c (tui_update_source_window_as_is)
1469 (tui_source_window_base::refresh_all)
1470 (tui_update_all_breakpoint_info): Update.
1471 (tui_source_window_base::update_exec_info): Rename from
1472 tui_update_exec_info.
1473 * tui/tui-stack.c (tui_show_frame_info): Update.
1474
37a4a131
TT
14752019-08-13 Tom Tromey <tom@tromey.com>
1476
1477 * tui/tui-winsource.h (struct tui_source_window_base)
1478 <set_exec_info_content>: Declare.
1479 (tui_set_exec_info_content): Don't declare.
1480 * tui/tui-winsource.c
1481 (tui_source_window_base::set_exec_info_content): Rename from
1482 tui_set_exec_info_content.
1483 (tui_update_exec_info): Update.
1484
0bd27e07
TT
14852019-08-13 Tom Tromey <tom@tromey.com>
1486
1487 * tui/tui-winsource.h (struct tui_source_window_base)
1488 <show_source_content>: Declare.
1489 (tui_show_source_content): Don't declare.
1490 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1491 (tui_source_window_base::show_source_content): Rename from
1492 tui_show_source_content.
1493 (tui_source_window_base::refresh_all): Update.
1494 * tui/tui-layout.c (show_source_disasm_command)
1495 (show_source_or_disasm_and_command): Update.
1496
b4ef5aeb
TT
14972019-08-13 Tom Tromey <tom@tromey.com>
1498
1499 * tui/tui-winsource.c (tui_erase_source_content)
1500 (tui_show_source_content, tui_source_window_base::refresh_all):
1501 Update.
1502 * tui/tui-wingeneral.h
1503 (tui_check_and_display_highlight_if_needed): Don't declare.
1504 * tui/tui-wingeneral.c
1505 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1506 check_and_display_highlight_if_needed.
1507 * tui/tui-win.c (tui_rehighlight_all)
1508 (tui_win_info::make_visible_with_new_height): Update.
1509 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1510 (tui_data_window::erase_data_content)
1511 (tui_data_window::display_all_data): Update.
1512 * tui/tui-data.h (struct tui_win_info)
1513 <check_and_display_highlight_if_needed>: Declare.
1514
fede5273
TT
15152019-08-13 Tom Tromey <tom@tromey.com>
1516
1517 * tui/tui-win.c (tui_resize_all): Call
1518 tui_delete_invisible_windows.
1519 * tui/tui-layout.c (show_layout): Call
1520 tui_delete_invisible_windows.
1521 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1522 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1523
22c3f490
TT
15242019-08-13 Tom Tromey <tom@tromey.com>
1525
1526 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1527 tui_add_win_to_layout.
1528
16cb7910
TT
15292019-08-13 Tom Tromey <tom@tromey.com>
1530
1531 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1532 * tui/tui-layout.c (tui_default_win_height): Now static.
1533
cc0c3ffb
TT
15342019-08-13 Tom Tromey <tom@tromey.com>
1535
1536 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1537 single switch.
1538 (show_source_disasm_command, show_source_or_disasm_and_command):
1539 Don't check current layout.
1540
3f3ffe54
TT
15412019-08-13 Tom Tromey <tom@tromey.com>
1542
1543 * tui/tui-wingeneral.c (make_all_visible): Remove.
1544 (tui_make_all_invisible): Simplify.
1545 * tui/tui-layout.c (tui_make_all_invisible): Move from
1546 tui-wingeneral.c; simplify.
1547 (show_layout): Hoist call to tui_make_all_invisible.
1548 (show_data): Don't call tui_make_all_invisible.
1549
69258091
TT
15502019-08-13 Tom Tromey <tom@tromey.com>
1551
1552 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1553 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1554
62cf57fe
TT
15552019-08-13 Tom Tromey <tom@tromey.com>
1556
1557 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1558 tui-data.c.
1559 (show_source_disasm_command, show_data)
1560 (show_source_or_disasm_and_command): Don't use
1561 tui_set_current_layout_to.
1562 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1563 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1564 tui-layout.c.
1565 (tui_set_current_layout_to): Remove.
1566
2afade5d
TT
15672019-08-13 Tom Tromey <tom@tromey.com>
1568
1569 * tui/tui-layout.c (tui_set_layout): Update.
1570 * tui/tui-data.h (struct tui_layout_def): Remove.
1571 (tui_layout_def): Don't declare.
1572 * tui/tui-data.c (layout_def): Remove.
1573 (tui_layout_def): Remove.
1574
a3504e96
TT
15752019-08-13 Tom Tromey <tom@tromey.com>
1576
1577 * tui/tui-winsource.h (struct tui_source_window_base)
1578 <clear_detail>: No longer "override".
1579 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1580 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1581 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1582 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1583 Remove.
1584 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1585
29c92911
TT
15862019-08-13 Tom Tromey <tromey@adacore.com>
1587
1588 * tracepoint.c: Don't include readline.h or history.h.
1589
86c6b807
TT
15902019-08-12 Tom Tromey <tom@tromey.com>
1591
1592 * configure: Rebuild.
1593 * configure.ac: Check for readline 7.
1594 * NEWS: Mention readline 7 requirement.
1595 * README: Update.
1596
5db2718c
TT
15972019-08-12 Tom Tromey <tom@tromey.com>
1598
1599 * mingw-hdep.c (gdb_select): Remove readline hack.
1600
dac36daf
PFC
16012019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1602
1603 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1604 when the function fails.
1605
1022c627
AA
16062019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1607
1608 * s390-tdep.c (s390_type_align): New function.
1609 (s390_gdbarch_init): Set it as type_align gdbarch method.
1610
eba4caf2
TV
16112019-08-09 Tom de Vries <tdevries@suse.de>
1612
1613 PR gdb/24591
1614 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1615 pc_low with relocation offset.
1616
123cd851
TT
16172019-08-07 Tom Tromey <tromey@adacore.com>
1618
1619 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1620 (print_frame_args): Update.
1621 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1622 Update.
1623 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1624 * frame.h (struct frame_arg): Add initializers.
1625 <error>: Now a unique_xmalloc_ptr.
1626
3d31bc39
AH
16272019-08-07 Alan Hayward <alan.hayward@arm.com>
1628
1629 * NEWS: Expand the Pointer Authentication entry.
1630 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1631 (aarch64_frame_unmask_lr): ... to this.
1632 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1633 Call aarch64_frame_unmask_lr.
1634 * frame.c (struct frame_info): Add "masked" variable.
1635 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1636 (fprint_frame): Check for masked pc.
1637 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1638 declarations.
1639 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1640 * stack.c (print_frame): Check for masked pc.
1641
0cf9feb9
TT
16422019-08-06 Tom Tromey <tom@tromey.com>
1643
1644 * stabsread.c (patch_block_stabs, read_one_struct_field)
1645 (read_enum_type): Use obstack_strndup.
1646 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1647 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1648 * dwarf2read.c (guess_full_die_structure_name)
1649 (anonymous_struct_prefix): Use obstack_strndup.
1650 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1651 * c-exp.y (yylex): Use obstack_strndup.
1652 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1653 (write_var_or_type): Use obstack_strndup.
1654
efba19b0
TT
16552019-08-06 Tom Tromey <tom@tromey.com>
1656
1657 * symfile.c (reread_symbols): Use obstack_strdup.
1658 * stabsread.c (read_type): Use obstack_strdup.
1659 * gdb_obstack.h (obstack_strdup): New overload.
1660 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1661 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1662 (dwarf2_canonicalize_name): Use obstack_strdup.
1663 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1664 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1665 Use obstack_strdup.
1666
f25102f7
TT
16672019-08-06 Tom Tromey <tom@tromey.com>
1668
1669 * gdb_obstack.h (obstack_strdup): Define.
1670 * gdb_obstack.c (obstack_strdup): Don't define.
1671
021887d8
TT
16722019-08-06 Tom Tromey <tom@tromey.com>
1673
1674 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1675 obstack_strdup.
1676 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1677 obstack_strdup.
1678 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1679 * stabsread.c (common_block_start): Use obstack_strdup.
1680 * objfiles.c (set_objfile_main_name, objfile): Use
1681 obstack_strdup.
1682 * namespace.c (add_using_directive): Use obstack_strdup.
1683 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1684 * jit.c (finalize_symtab): Use obstack_strdup.
1685 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1686 (guess_partial_die_structure_name, partial_die_info::fixup)
1687 (dwarf2_name): Use obstack_strdup.
1688 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1689 obstack_strdup.
1690 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1691 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1692 obstack_strdup.
1693 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1694
d2834edc
PW
16952019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1696
1697 * unittests/help-doc-selftests.c: New file.
1698 * Makefile.in: Add the new file.
1699
590042fc
PW
17002019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1701
1702 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1703 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1704 the full first line, except when FOR_VALUE_PREFIX. In this case,
1705 the trailing '.' is not output, and the first character is uppercased.
1706 (print_help_for_command): Update call to print_doc_line.
1707 (print_doc_of_command): Likewise.
1708 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1709 * cli/cli-option.c (append_indented_doc): Do not append newline.
1710 (build_help_option): Append newline after first appended_indented_doc
1711 only if a second call is done.
1712 (build_help): Append 2 new lines before each option, except the first
1713 one.
1714 * compile/compile.c (_initialize_compile): Add new lines after
1715 %OPTIONS%, when not at the end of the help.
1716 Change help doc or code
1717 producing the help doc to respect the invariants.
1718 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1719 Also removed the new line after 'Options:', as all other commands
1720 do not put an empty line between 'Options:' and the first option.
1721 * printcmd.c (_initialize_printcmd): Likewise.
1722 * stack.c (_initialize_stack): Likewise.
1723 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1724 incorrectly telling COMMAND is optional.
1725 * ada-lang.c (_initialize_ada_language): Change help doc or code
1726 producing the help doc to respect the invariants.
1727 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1728 * breakpoint.c (_initialize_breakpoint): Likewise.
1729 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1730 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1731 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1732 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1733 _initialize_cli_style): Likewise.
1734 * corelow.c (core_target_info): Likewise.
1735 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1736 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1737 * filesystem.c (_initialize_filesystem): Likewise.
1738 * frame.c (_initialize_frame): Likewise.
1739 * gnu-nat.c (add_task_commands): Likewise.
1740 * infcall.c (_initialize_infcall): Likewise.
1741 * infcmd.c (_initialize_infcmd): Likewise.
1742 * interps.c (_initialize_interpreter): Likewise.
1743 * language.c (_initialize_language): Likewise.
1744 * linux-fork.c (_initialize_linux_fork): Likewise.
1745 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1746 * maint.c (_initialize_maint_cmds): Likewise.
1747 * memattr.c (_initialize_mem): Likewise.
1748 * printcmd.c (_initialize_printcmd): Likewise.
1749 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1750 _RegEx): Likewise.
1751 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1752 * record-btrace.c (_initialize_record_btrace): Likewise.
1753 * record-full.c (_initialize_record_full): Likewise.
1754 * record.c (_initialize_record): Likewise.
1755 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1756 * regcache.c (_initialize_regcache): Likewise.
1757 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1758 _initialize_remote): Likewise.
1759 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1760 * serial.c (_initialize_serial): Likewise.
1761 * skip.c (_initialize_step_skip): Likewise.
1762 * source.c (_initialize_source): Likewise.
1763 * stack.c (_initialize_stack): Likewise.
1764 * symfile.c (_initialize_symfile): Likewise.
1765 * symtab.c (_initialize_symtab): Likewise.
1766 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1767 * top.c (init_main): Likewise.
1768 * tracefile-tfile.c (tfile_target_info): Likewise.
1769 * tracepoint.c (_initialize_tracepoint): Likewise.
1770 * tui/tui-win.c (_initialize_tui_win): Likewise.
1771 * utils.c (add_internal_problem_command): Likewise.
1772 * valprint.c (value_print_option_defs): Likewise.
1773
404f2902
FCE
17742019-08-06 Frank Ch. Eigler <fche@redhat.com>
1775
1776 PR build/24886
1777 * configure.ac: Drop enable-libmcheck support.
1778 * configure, config.in: Rebuild.
1779 * libmcheck.m4: Remove.
1780 * acinclude.m4: Don't include it.
1781 * Makefile.in: Don't distribute it.
1782 * top.c (print_gdb_configuration): Don't mention it.
1783
046bebe1
TT
17842019-08-06 Tom Tromey <tom@tromey.com>
1785
1786 * utils.c (set_output_style): Sometimes pass stream to
1787 emit_style_escape.
1788 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1789 * record-btrace.c (btrace_insn_history): Update.
1790 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1791 method.
1792 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1793 Update initializers.
1794 <m_uiout>: New field.
1795 <m_di>: Move lower.
1796 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1797 Remove "uiout" parameter.
1798 (dump_insns): Update.
1799 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1800 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1801
ddbcedf5
CB
18022019-08-06 Christian Biesinger <cbiesinger@google.com>
1803
1804 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1805 (error_in_psymtab_expansion): Likewise.
1806 (lookup_symbol_via_quick_fns): Likewise.
1807 (basic_lookup_transparent_type_quick): Likewise.
1808 (basic_lookup_transparent_type_1): Likewise.
1809
b08b16c8
TT
18102019-08-06 Tom Tromey <tromey@adacore.com>
1811
1812 * source.c (last_source_error): Now bool.
1813 (print_source_lines_base): Make "noprint" bool. Only open
1814 source file when last_source_visited changes.
1815
cb44333d
TT
18162019-08-06 Tom Tromey <tromey@adacore.com>
1817
1818 * annotate.c (annotate_source_line): Use g_source_cache.
1819 * source-cache.c (source_cache::get_plain_source_lines): Change
1820 parameters. Populate m_offset_cache.
1821 (source_cache::ensure): New method.
1822 (source_cache::get_line_charpos): New method.
1823 (extract_lines): Move lower. Change parameters.
1824 (source_cache::get_source_lines): Move lower.
1825 * source-cache.h (class source_cache): Update comment.
1826 <get_line_charpos>: New method.
1827 <get_source_lines>: Update comment.
1828 <clear>: Clear m_offset_cache.
1829 <get_plain_source_lines>: Change parameters.
1830 <ensure>: New method
1831 <m_offset_cache>: New member.
1832 * source.c (forget_cached_source_info_for_objfile): Update.
1833 (info_source_command): Use g_source_cache.
1834 (find_source_lines, open_source_file_with_line_charpos): Remove.
1835 (print_source_lines_base, search_command_helper): Use g_source_cache.
1836 * source.h (open_source_file_with_line_charpos): Don't declare.
1837 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1838 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1839 Use g_source_cache.
1840
872dceaa
TT
18412019-08-06 Tom Tromey <tromey@adacore.com>
1842
1843 * source-cache.c (source_cache::get_plain_source_lines):
1844 Remove "first_line" and "last_line" parameters.
1845 (source_cache::get_source_lines): Cache plain text.
1846 * source-cache.h (class source_cache)
1847 <get_plain_source_lines>: Update.
1848
269249d9
TT
18492019-08-06 Tom Tromey <tromey@adacore.com>
1850
1851 * source-cache.c (extract_lines): No longer a method.
1852 Changed type of parameter. Include final newline.
1853 (selftests::extract_lines_test): New function.
1854 (_initialize_source_cache): Likewise.
1855 * source-cache.h (class source_cache)
1856 <extract_lines>: Don't declare.
1857
c0e8dcd8
TT
18582019-08-06 Tom Tromey <tromey@adacore.com>
1859
1860 * breakpoint.c (init_breakpoint_sal): Update.
1861 (breakpoint): Update.
1862 * breakpoint.h (struct breakpoint) <filter>: Now a
1863 unique_xmalloc_ptr.
1864
0b27c27d
CB
18652019-08-05 Christian Biesinger <cbiesinger@google.com>
1866
1867 * NEWS: Mention dictionary access on blocks.
1868 * python/py-block.c (blpy_getitem): New function.
1869 (block_object_as_mapping): New struct.
1870 (block_object_type): Use new struct for tp_as_mapping field.
1871
4ee94178
CB
18722019-08-05 Christian Biesinger <cbiesinger@google.com>
1873
1874 * objfiles.h (objfile): Add a comment describing partial symbols.
1875
8abfcabc
TT
18762019-08-05 Tom Tromey <tromey@adacore.com>
1877
1878 * compile/compile.c (_initialize_compile): Use _(), not N_().
1879 * thread.c (_initialize_thread): Use _(), not N_().
1880 * stack.c (_initialize_stack): Use _(), not N_().
1881 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1882
2b79f376
SM
18832019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1884
1885 * dwarf2read.c (struct dw2_symtab_iterator):
1886 <want_specific_block>: Remove.
1887 <block_index>: Change type to gdb::optional.
1888 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1889 change type of BLOCK_INDEX parameter to gdb::optional.
1890 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1891 (dw2_lookup_symbol): Don't pass argument for
1892 WANT_SPECIFIC_BLOCK.
1893 (dw2_expand_symtabs_for_function): Don't pass argument for
1894 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1895 (class dw2_debug_names_iterator)
1896 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1897 parameter, change BLOCK_INDEX type to gdb::optional.
1898 <m_want_specific_block>: Remove.
1899 <m_block_index>: Change type to gdb::optional.
1900 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1901 gdb::optional. Re-write in function of gdb::optional.
1902 (dw2_debug_names_lookup_symbol): Don't pass argument for
1903 WANT_SPECIFIC_BLOCK.
1904 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1905 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1906 BLOCK_INDEX.
1907
ae60f04e
PW
19082019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1909
1910 * NEWS: Mention changes to "info sources" command.
1911
28cd9371
PW
19122019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1913
1914 * symtab.c (filename_partial_match_opts): New struct type.
1915 (struct output_source_filename_data): New members
1916 regexp, c_regexp, partial_match.
1917 (output_source_filename): Use new members to decide to print file.
1918 (info_sources_option_defs): New variable.
1919 (make_info_sources_options_def_group, print_info_sources_header,
1920 info_sources_command_completer):
1921 New functions.
1922 (info_sources_command): Read new optional arguments.
1923 (_initialize_symtab): Update info sources help.
1924
ca683e3a
AO
19252019-08-02 Alexandre Oliva <oliva@adacore.com>
1926
1927 * ada-lang.c (exception_support_info_v0): Renamed from...
1928 (default_exception_support_info): ... this. Create new
1929 definition for v1.
1930 (ada_has_this_exception_support): Look up catch_handlers_sym.
1931 (ada_exception_support_info_sniffer): Try v0 after default.
1932
f1264162
TT
19332019-08-01 Tom Tromey <tromey@adacore.com>
1934
1935 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1936 gdbarch.h.
1937
0a7b2485
CB
19382019-08-01 Christian Biesinger <cbiesinger@google.com>
1939
1940 * s12z-tdep.c: Fix include path for s12z-opc.h.
1941
c6bdbeb7
AH
19422019-08-01 Alan Hayward <alan.hayward@arm.com>
1943
1944 * NEWS: Require GNU make 3.82.
1945
a2bd7b82
TT
19462019-07-16 Tom Tromey <tom@tromey.com>
1947
1948 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1949 declare.
1950
aa3b6533
TT
19512019-07-30 Tom Tromey <tromey@adacore.com>
1952
1953 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1954
a1530dc7
KB
19552019-07-30 Kevin Buettner <kevinb@redhat.com>
1956
1957 * printcmd.c (print_address_symbolic): Print negative offsets.
1958 (build_address_symbolic): Force signed arithmetic when computing
1959 offset.
1960
2906593f
CB
19612019-07-30 Christian Biesinger <cbiesinger@google.com>
1962
1963 PR/24474: Add a function to lookup static variables.
1964 * NEWS: Mention this new function.
1965 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1966 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1967 * python/python.c (python_GdbMethods): Add new function.
1968
c620ed88
CB
19692019-07-29 Christian Biesinger <cbiesinger@google.com>
1970
1971 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1972 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1973 (objfpy_lookup_static_symbol): New function.
1974 (objfile_object_methods): Add new functions.
1975
bc4268a5
PW
19762019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1977
1978 * NEWS: Mention 'set|show print frame-info'. Mention new
1979 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1980 backtrace argument. Mention that python frame filtering code
1981 is now consistent with what 'backtrace' command prints.
1982
4b5e8d19
PW
19832019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1984
1985 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1986 comments.
1987 (print_frame_info_auto, print_frame_info_source_line,
1988 print_frame_info_location, print_frame_info_source_and_location,
1989 print_frame_info_location_and_address, print_frame_info_short_location):
1990 New declarations.
1991 (struct frame_print_options): New member print_frame_info.
1992 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1993 * stack.h (get_user_print_what_frame_info): New declaration.
1994 (frame_show_address): New declaration.
1995 * stack.c (print_frame_arguments_choices): New value 'presence'.
1996 (print_frame_info_auto, print_frame_info_source_line,
1997 print_frame_info_location, print_frame_info_source_and_location,
1998 print_frame_info_location_and_address, print_frame_info_short_location,
1999 print_frame_info_choices, print_frame_info_print_what): New definitions.
2000 (print_frame_args): Only print dots for args if print frame-arguments
2001 is 'presence'.
2002 (frame_print_option_defs): New element for "frame-info".
2003 (get_user_print_what_frame_info): New function.
2004 (frame_show_address): Make non static. Move comment to stack.h.
2005 (print_frame_info_to_print_what): New function.
2006 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2007 to decide what to print.
2008 (backtrace_command_1): Handle the new print_frame_arguments_presence
2009 value.
2010 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2011 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2012 (py_print_frame): In non-mi mode, use LOCATION as default for
2013 print_what, similarly to frame information printed directly by
2014 backtrace command. Handle frame-info user option in non MI mode.
2015
6bdfee81
KB
20162019-07-27 Kevin Buettner <kevinb@redhat.com>
2017
2018 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2019 Add case for debugging 32-bit target on 64-bit host. Revise
2020 comment.
2021
98a617f8
KB
20222019-07-27 Kevin Buettner <kevinb@redhat.com>
2023
2024 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2025 instead of find_function_entry_range_from_pc.
2026
567238c9
KB
20272019-07-27 Kevin Buettner <kevinb@redhat.com>
2028
2029 * stack.c (find_frame_funname): Remove code which preferred
2030 minsym over symtab sym in "certain pathological cases".
2031
2dc80cf8
KB
2032 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2033 parameter. Change type of "do_demangle" to bool.
2034 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2035 Pass suitable "prefer_sym_over_minsym" flag to
2036 build_address_symbolic(). Don't output "+" for negative offsets.
2037 * printcmd.c (print_address_symbolic): Update invocation of
2038 build_address_symbolic to include a "prefer_sym_over_minsym"
2039 flag.
2040 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2041 Restrict cases in which use of minimal symbol is preferred to that
2042 of a found symbol. Update comments.
2043
1aff7173
KB
2044 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2045 for entry pc when entry pc is out of range for that FDE.
2046
89b085ac
BC
20472019-07-26 Brian Callahan <bcallah@openbsd.org>
2048
2049 PR gdb/24839:
2050 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2051 type.
2052
f32feb4a
CB
20532019-07-25 Christian Biesinger <cbiesinger@google.com>
2054
2055 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2056 this function's Python signature.
2057
2058
20592019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
2060
2061 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2062 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2063 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2064 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2065 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2066
2067
c54e4253
YS
20682019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2069
2070 * h8300-tdep.c (h8300_register_name_common): New.
2071 h8300_register_name): Use h8300_register_name_common.
2072 (h8300s_register_name): Likewise.
2073 (h8300sx_register_name): Likewise.
2074 (h8300h_register_nam): New.
2075 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2076
2077
40eadf04
SP
20782019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2079
2080 * arm-tdep.c (arm_skip_cmse_entry): New function.
2081 (arm_is_sgstubs_section): New function.
2082 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2083
bfa2a36d
TT
20842019-07-22 Tom Tromey <tom@tromey.com>
2085
2086 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2087 Don't self-assign.
2088
a8e9d247
AB
20892019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2090
2091 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2092 type_print.
2093
eb86c5e2
AB
20942019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2095
2096 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2097 so that GDB doesn't match any msymbols when searching in the
2098 TYPES_DOMAIN.
2099 (print_symbol_info): Print using typedef_print or type_print based
2100 on the type of the symbol. Add updated FIXME comment moved from...
2101 (_initialize_symtab): ... move and update FIXME comment to above.
2102
a8eab7c6
AB
21032019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2104
2105 * NEWS: Mention adding -q option to "info types".
2106 * symtab.c (struct info_types_options): New struct.
2107 (info_types_options_defs): New variable.
2108 (make_info_types_options_def_group): New function.
2109 (info_types_command): Use gdb::option framework to parse options.
2110 (info_types_command_completer): New function.
2111 (_initialize_symtab): Extend the help text on "info types" and
2112 register command completer.
2113
b4603c34
CB
21142019-07-21 Christian Biesinger <cbiesinger@google.com>
2115
2116 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2117 (lookup_symbol_in_objfile): Change int to block_enum and add a
2118 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2119
c8cdc1e0
CB
21202019-07-20 Christian Biesinger <cbiesinger@google.com>
2121
2122 * MAINTAINERS (Write After Approval): Add self.
2123
01e175fe
AB
21242019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2125
2126 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2127 instruction to the dummy code region.
2128
56f79b63
TT
21292019-07-19 Tom Tromey <tromey@adacore.com>
2130
2131 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2132 (ARGSUSED, PARAMS, __func__): Remove rules.
2133
4c5aa8e0
AH
21342019-07-19 Alan Hayward <alan.hayward@arm.com>
2135
2136 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2137 * features/arm/arm-with-iwmmxt.c: Remove.
2138 * features/arm/arm-with-iwmmxt.xml: Remove.
2139 * features/arm/arm-with-m-fpa-layout.c: Remove.
2140 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2141 * features/arm/arm-with-m-vfp-d16.c: Remove.
2142 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2143 * features/arm/arm-with-m.c: Remove.
2144 * features/arm/arm-with-m.xml: Remove.
2145 * features/arm/arm-with-neon.c: Remove.
2146 * features/arm/arm-with-neon.xml: Remove.
2147 * features/arm/arm-with-vfpv2.c: Remove.
2148 * features/arm/arm-with-vfpv2.xml: Remove.
2149 * features/arm/arm-with-vfpv3.c: Remove.
2150 * features/arm/arm-with-vfpv3.xml: Remove.
2151
f42b2617
AH
21522019-07-19 Alan Hayward <alan.hayward@arm.com>
2153
2154 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2155
f29ec966
AH
21562019-07-19 Alan Hayward <alan.hayward@arm.com>
2157
2158 * arch/aarch32.c (aarch32_create_target_description): Create
2159 target descriptions using features.
2160 * arch/arm.c (arm_create_target_description)
2161 (arm_create_mprofile_target_description): Likewise.
2162 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2163
d105cce5
AH
21642019-07-19 Alan Hayward <alan.hayward@arm.com>
2165
2166 * Makefile.in: Add new files.
2167 * aarch32-tdep.c: New file.
2168 * aarch32-tdep.h: New file.
2169 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2170 Call aarch32_read_description.
2171 * arch/aarch32.c: New file.
2172 * arch/aarch32.h: New file.
2173 * arch/arm.c (arm_create_target_description)
2174 (arm_create_mprofile_target_description): New function.
2175 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2176 (arm_create_target_description)
2177 (arm_create_mprofile_target_description): New declaration.
2178 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2179 read_description functions.
2180 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2181 Likewise.
2182 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2183 * arm-tdep.c (tdesc_arm_list): New variable.
2184 (arm_register_g_packet_guesses): Call create description functions.
2185 (arm_read_description) (arm_read_mprofile_description): New
2186 function.
2187 * arm-tdep.h (arm_read_description)
2188 (arm_read_mprofile_description): Add declaration.
2189 * configure.tgt: Add new files.
2190
afe09f0b
GL
21912019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2192
2193 * top.c (new_ui_command): Open specified terminal just once.
2194
cd215b2e
TT
21952019-07-18 Tom Tromey <tromey@adacore.com>
2196
2197 * symtab.c (main_name): Constify return type.
2198 * symfile.c (set_initial_language): Update.
2199 * symtab.h (main_name): Constify return type.
2200
d8f68fcb
TT
22012019-07-17 Tom Tromey <tom@tromey.com>
2202
2203 * tui/tui-winsource.c (tui_update_source_window)
2204 (tui_update_source_window_as_is)
2205 (tui_update_source_windows_with_line): Remove return.
2206 * tui/tui-disasm.c (tui_show_disassem)
2207 (tui_show_disassem_and_update_source): Remove return.
2208 * tui/tui.c (tui_reset): Remove return.
2209 * tui/tui-wingeneral.c
2210 (tui_check_and_display_highlight_if_needed): Remove return.
2211
ca5af91e
TT
22122019-07-17 Tom Tromey <tom@tromey.com>
2213
2214 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2215
5104fe36
TT
22162019-07-17 Tom Tromey <tom@tromey.com>
2217
2218 * tui/tui-winsource.h (struct tui_exec_info_window)
2219 (struct tui_source_window_base): Move from tui-data.h.
2220 * tui/tui-winsource.c: Move many method definitions from
2221 elsewhere. Remove "structuring" comments.
2222 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2223 (tui_source_window_base::refresh_window): Move to
2224 tui-winsource.c.
2225 * tui/tui-win.c (tui_source_window_base::refresh_all)
2226 (tui_source_window_base::update_tab_width)
2227 (tui_source_window_base::set_new_height)
2228 (tui_source_window_base::do_make_visible_with_new_height): Move to
2229 tui-winsource.c.
2230 * tui/tui-source.h: Update.
2231 * tui/tui-source.c (tui_source_window_base::reset): Move to
2232 tui-winsource.c.
2233 * tui/tui-disasm.h: Update.
2234 * tui/tui-data.h (struct tui_exec_info_window): Move to
2235 tui-winsource.h.
2236 (struct tui_source_window_base): Likewise.
2237 * tui/tui-data.c (tui_source_window_base::clear_detail)
2238 (tui_source_window_base, ~tui_source_window_base): Move to
2239 tui-winsource.c.
2240
daa15dde
TT
22412019-07-17 Tom Tromey <tom@tromey.com>
2242
2243 * tui/tui-win.c (tui_resize_all)
2244 (tui_source_window_base::update_tab_width)
2245 (tui_adjust_win_heights): Update.
2246 (tui_win_info::make_invisible_and_set_new_height): Rename from
2247 make_invisible_and_set_new_height.
2248 * tui/tui-data.h (struct tui_win_info)
2249 <make_invisible_and_set_new_height>: New method.
2250
bfad4537
TT
22512019-07-17 Tom Tromey <tom@tromey.com>
2252
2253 * tui/tui.c: Update.
2254 * tui/tui-source.h (struct tui_source_window): Move from
2255 tui-data.h.
2256 * tui/tui-layout.c: Update.
2257 * tui/tui-disasm.c: Update.
2258 * tui/tui-data.h (struct tui_source_window): Move to
2259 tui-source.h.
2260
88f7e873
TT
22612019-07-17 Tom Tromey <tom@tromey.com>
2262
2263 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2264 tui-data.h.
2265 * tui/tui-data.h (struct tui_disasm_window): Move to
2266 tui-disasm.h.
2267
96bd6233
TT
22682019-07-17 Tom Tromey <tom@tromey.com>
2269
2270 * tui/tui-regs.h (struct tui_data_item_window): Move from
2271 tui-data.h.
2272 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2273 * tui/tui-data.h (struct tui_data_item_window): Move to
2274 tui-regs.h.
2275 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2276
ce38393b
TT
22772019-07-17 Tom Tromey <tom@tromey.com>
2278
2279 * tui/tui.c: Update.
2280 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2281 (tui_cmd_window::max_height): Move to tui-command.c.
2282 * tui/tui-layout.c: Update.
2283 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2284 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2285 tui-command.c.
2286 * tui/tui-command.h (struct tui_cmd_window): Move from
2287 tui-data.h.
2288 * tui/tui-command.c: Remove "structuring" comments.
2289 (tui_cmd_window::clear_detail)
2290 (tui_cmd_window::do_make_visible_with_new_height)
2291 (tui_cmd_window::max_height): Move from elsewhere.
2292
2d8b51cb
TT
22932019-07-17 Tom Tromey <tom@tromey.com>
2294
2295 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2296 Now static.
2297 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2298 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2299
18ab23af
TT
23002019-07-17 Tom Tromey <tom@tromey.com>
2301
2302 * tui/tui.c: Update.
2303 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2304 tui-regs.c.
2305 * tui/tui-windata.h: Remove file.
2306 * tui/tui-windata.c: Remove file.
2307 * tui/tui-win.c (tui_data_window::set_new_height)
2308 (tui_data_window::do_make_visible_with_new_height): Move to
2309 tui-regs.c.
2310 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2311 * tui/tui-regs.c: Remove "structuring" comments.
2312 (tui_data_window::first_data_item_displayed)
2313 (tui_data_window::delete_data_content_windows)
2314 (tui_data_window::erase_data_content)
2315 (tui_data_window::display_all_data)
2316 (tui_data_window::refresh_all)
2317 (tui_data_window::do_scroll_vertical)
2318 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2319 (tui_data_window::do_make_visible_with_new_height)
2320 (tui_data_window::refresh_window): Move from elsewhere.
2321 (_initialize_tui_regs): Move to end of file.
2322 * tui/tui-layout.c: Update.
2323 * tui/tui-hooks.c: Update.
2324 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2325 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2326 tui-regs.c.
2327 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2328
88b7e7cc
TT
23292019-07-17 Tom Tromey <tom@tromey.com>
2330
2331 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2332 seen.
2333
0fcd3711
TT
23342019-07-17 Tom Tromey <tom@tromey.com>
2335
2336 * tui/tui-win.c (tui_source_window_base::set_new_height)
2337 (tui_source_window_base::do_make_visible_with_new_height): Use
2338 m_has_locator field directly.
2339 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2340 method.
2341 (struct tui_source_window_base) <has_locator>: Likewise.
2342
4a38112d
TT
23432019-07-17 Tom Tromey <tom@tromey.com>
2344
2345 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2346 Don't declare.
2347 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2348 Remove.
2349 * tui/tui-win.c (tui_source_window_base::set_new_height)
2350 (tui_source_window_base::set_new_height)
2351 (make_invisible_and_set_new_height)
2352 (tui_source_window_base::do_make_visible_with_new_height)
2353 (tui_source_window_base::do_make_visible_with_new_height):
2354 Update.
2355 * tui/tui-layout.c (show_source_disasm_command, show_data)
2356 (show_source_or_disasm_and_command): Update.
2357 * tui/tui-layout.c (show_layout): Update.
2358
09129226
TT
23592019-07-17 Tom Tromey <tom@tromey.com>
2360
2361 * tui/tui-layout.c (make_data_window): Remove.
2362 (show_data): Unify creation and re-initialization cases.
2363
4a8a5e84
TT
23642019-07-17 Tom Tromey <tom@tromey.com>
2365
2366 * tui/tui-layout.c (make_source_window, make_disasm_window):
2367 Remove.
2368 (show_data): Unify creation and re-initialization cases.
2369
76d2be8e
TT
23702019-07-17 Tom Tromey <tom@tromey.com>
2371
2372 * tui/tui-layout.c (make_command_window): Remove.
2373 (show_source_disasm_command, show_source_or_disasm_and_command):
2374 Unify creation and re-initialization cases.
2375
890b8bde
TT
23762019-07-17 Tom Tromey <tom@tromey.com>
2377
2378 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2379 creation and re-initialization cases.
2380
2cdfa113
TT
23812019-07-17 Tom Tromey <tom@tromey.com>
2382
2383 * tui/tui-regs.c (tui_get_register): Return void.
2384
8e3cfd09
TT
23852019-07-17 Tom Tromey <tom@tromey.com>
2386
2387 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2388 Simplify.
2389
f4e04977
TT
23902019-07-17 Tom Tromey <tom@tromey.com>
2391
2392 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2393 resetting.
2394
0379b883
TT
23952019-07-17 Tom Tromey <tom@tromey.com>
2396
2397 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2398 * tui/tui-regs.c (tui_reg_layout): New function.
2399 (tui_show_registers, tui_reg_command): Use it.
2400 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2401 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2402 parameters.
2403 (tui_layout_command): Remove.
2404
b7fbad91
TT
24052019-07-17 Tom Tromey <tom@tromey.com>
2406
2407 * tui/tui-layout.h (tui/tui-layout): Return void.
2408 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2409
4e1e56b9
TT
24102019-07-17 Tom Tromey <tom@tromey.com>
2411
2412 * tui/tui-layout.c (show_source_disasm_command, show_data):
2413 Update.
2414 (reset_locator): Remove.
2415 (show_source_or_disasm_and_command): Update.
2416
1e0c09ba
TT
24172019-07-17 Tom Tromey <tom@tromey.com>
2418
2419 * tui/tui-source.c (tui_source_window_base::reset): Remove
2420 win_type parameter.
2421 * tui/tui-layout.c (make_command_window, make_source_window)
2422 (make_disasm_window, make_data_window)
2423 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2424 (reset_locator, show_source_or_disasm_and_command): Update.
2425 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2426 win_type parameter.
2427 (struct tui_source_window_base) <reset>: Likewise.
2428
1bf605de
TT
24292019-07-17 Tom Tromey <tom@tromey.com>
2430
2431 * tui/tui-layout.c (show_source_disasm_command): Use
2432 reset_locator.
2433 (reset_locator): New function.
2434 (init_and_make_win): Remove.
2435 (show_source_or_disasm_and_command): Use reset_locator.
2436
098f9ed4
TT
24372019-07-17 Tom Tromey <tom@tromey.com>
2438
2439 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2440 condition.
2441 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2442 Remove condition.
2443 * tui/tui-source.c (tui_source_window_base::reset): New method.
2444 * tui/tui-layout.c (make_command_window): Don't call
2445 init_and_make_win.
2446 (make_source_window, make_disasm_window): Don't call
2447 make_source_or_disasm_window.
2448 (make_data_window): Don't call init_and_make_win. Change calling
2449 convention.
2450 (show_source_disasm_command, show_data): Simplify.
2451 (make_source_or_disasm_window): Remove.
2452 (show_source_or_disasm_and_command): Simplify.
2453 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2454 (struct tui_source_window_base) <reset>: Likewise.
2455 <execution_info>: Remove initializer.
2456 * tui/tui-data.c (tui_source_window_base): Initialize
2457 execution_info.
2458
80110957
TT
24592019-07-17 Tom Tromey <tom@tromey.com>
2460
2461 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2462 variable.
2463
cf82af05
TT
24642019-07-17 Tom Tromey <tom@tromey.com>
2465
2466 * tui/tui.c (tui_rl_other_window): Update.
2467 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2468 superclass method first. Always iterate over regs_content.
2469 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2470 method.
2471 * tui/tui-win.c (tui_set_focus_command): Update.
2472
01aeb396
TT
24732019-07-17 Tom Tromey <tom@tromey.com>
2474
2475 * tui/tui-win.c (tui_set_focus_command): Rename from
2476 tui_set_focus. Call tui_enable.
2477 (tui_set_focus_command): Remove.
2478
fd6c75ee
TT
24792019-07-17 Tom Tromey <tom@tromey.com>
2480
2481 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2482 refresh_window.
2483 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2484 touchwin.
2485 (tui_data_window::refresh_window): Call refresh_window on data
2486 items. Always call superclass refresh_window.
2487 (tui_win_info::refresh): Remove.
2488 (tui_source_window_base::refresh_window): Update.
2489 (tui_refresh_all): Update.
2490 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2491 refresh_window.
2492 (show_source_or_disasm_and_command): Likewise.
2493 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2494 (struct tui_source_window_base) <refresh>: Likewise.
2495
f6cc34a9
TT
24962019-07-17 Tom Tromey <tom@tromey.com>
2497
2498 * tui/tui-winsource.c (tui_clear_source_content)
2499 (tui_show_source_content): Update.
2500 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2501 whether content is empty.
2502 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2503 Remove.
2504
f31ec9af
TT
25052019-07-17 Tom Tromey <tom@tromey.com>
2506
2507 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2508 window's contents.
2509 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2510 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2511
d1b6f1e5
TT
25122019-07-17 Tom Tromey <tom@tromey.com>
2513
2514 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2515 (struct tui_data_item_window): Update.
2516
d9743a13
TT
25172019-07-17 Tom Tromey <tom@tromey.com>
2518
2519 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2520 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2521 defines.
2522
caf0bc4e
TT
25232019-07-17 Tom Tromey <tom@tromey.com>
2524
2525 * tui/tui-winsource.h (tui_erase_source_content)
2526 (tui_clear_source_content): Remove "display_prompt" parameter.
2527 * tui/tui-winsource.c (tui_update_source_window_as_is)
2528 (tui_update_source_windows_with_addr): Update.
2529 (tui_clear_source_content): Remove "display_prompt" parameter.
2530 (tui_erase_source_content): Likewise. Simplify.
2531 (tui_show_source_content): Update.
2532 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2533 * tui/tui-stack.c (tui_show_frame_info): Update.
2534 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2535 Remove defines.
2536
9d391078
TT
25372019-07-17 Tom Tromey <tom@tromey.com>
2538
2539 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2540 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2541 parameter.
2542 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2543 parameter.
2544
a38da35d
TT
25452019-07-17 Tom Tromey <tom@tromey.com>
2546
2547 * tui/tui-winsource.c (tui_clear_source_content)
2548 (tui_show_source_content, tui_show_exec_info_content)
2549 (tui_clear_exec_info_content): Update.
2550 * tui/tui-stack.c (tui_show_locator_content): Update.
2551 (tui_show_frame_info): Update.
2552 * tui/tui-source.h (tui_source_window): Don't declare.
2553 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2554 from tui_source_is_displayed.
2555 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2556 Remove field.
2557 (struct tui_source_window_base) <content_in_use>: New field. Now
2558 bool.
2559 (struct tui_source_window) <showing_source_p>: New method.
2560 (TUI_SRC_WIN): Change cast.
2561 * tui/tui-data.c (tui_initialize_static_data): Update.
2562
c2cd8994
TT
25632019-07-17 Tom Tromey <tom@tromey.com>
2564
2565 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2566 location_matches_p.
2567 * tui/tui-source.c (tui_source_window::location_matches_p): New
2568 method.
2569 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2570 method.
2571 * tui/tui-data.h (struct tui_source_window_base)
2572 <location_matches_p>: New method.
2573 (struct tui_source_window, struct tui_disasm_window)
2574 <location_matches_p>: Likewise.
2575
4dde7b34
TT
25762019-07-17 Tom Tromey <tom@tromey.com>
2577
2578 * tui/tui-win.c (tui_set_win_height_command): Rename from
2579 tui_set_win_height.
2580 (tui_set_win_height_command): Remove.
2581
b73dd877
TT
25822019-07-17 Tom Tromey <tom@tromey.com>
2583
2584 * tui/tui-source.c (tui_source_window): New constructor. Add
2585 observer.
2586 (~tui_source_window): New destructor.
2587 (tui_source_window::style_changed): New method.
2588 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2589 (tui_attach_detach_observers): Update.
2590 * tui/tui-data.h (struct tui_source_window): Make constructor not
2591 inline. Add destructor.
2592 (struct tui_source_window) <style_changed>: New method.
2593 <m_observable>: New member.
2594
ae2b5380
TT
25952019-07-17 Tom Tromey <tom@tromey.com>
2596
2597 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2598 * tui/tui-win.c (tui_resize_all): Fix typo.
2599
1ce3e844
TT
26002019-07-17 Tom Tromey <tom@tromey.com>
2601
2602 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2603 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2604 (tui_refresh_all): Remove "list" parameter. Use foreach.
2605 * tui/tui-win.c (window_name_completer): Use foreach.
2606 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2607 (update_tab_width): Likewise.
2608 * tui/tui-layout.c (show_layout): Update.
2609 * tui/tui-data.h (class tui_window_iterator): New.
2610 (struct all_tui_windows): New.
2611 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2612
fe3eaf1c
TT
26132019-07-17 Tom Tromey <tom@tromey.com>
2614
2615 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2616 parameter. Don't reference globals.
2617 (tui_reg_command): Update.
2618
368c1354
TT
26192019-07-17 Tom Tromey <tom@tromey.com>
2620
2621 * tui/tui-regs.c (tui_show_registers): Simplify.
2622
e80cd204
TT
26232019-07-17 Tom Tromey <tom@tromey.com>
2624
2625 * tui/tui-regs.c (tui_show_registers): Update.
2626 (tui_show_register_group): Add win_info parameter.
2627
aca2dd16
TT
26282019-07-17 Tom Tromey <tom@tromey.com>
2629
2630 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2631 Rename from tui_display_reg_element_at_line.
2632 (tui_data_window::display_registers_from_line): Update.
2633 * tui/tui-data.h (struct tui_data_window)
2634 <display_reg_element_at_line>: New method.
2635
517e9505
TT
26362019-07-17 Tom Tromey <tom@tromey.com>
2637
2638 * tui/tui-regs.h (tui_display_registers_from)
2639 (tui_display_registers_from_line): Don't declare.
2640 * tui/tui-windata.c (tui_data_window::display_all_data)
2641 (tui_data_window::refresh_all)
2642 (tui_data_window::do_scroll_vertical): Update.
2643 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2644 from tui_display_registers_from.
2645 (tui_display_reg_element_at_line): Update.
2646 (tui_data_window::display_registers_from_line): Rename from
2647 tui_display_registers_from_line.
2648 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2649 display_registers_from_line>: New methods.
2650
f76d8b19
TT
26512019-07-17 Tom Tromey <tom@tromey.com>
2652
2653 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2654 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2655 from tui_erase_data_content.
2656 (tui_data_window::display_all_data)
2657 (tui_data_window::refresh_all)
2658 (tui_data_window::do_scroll_vertical): Update.
2659 * tui/tui-regs.c (tui_show_registers): Update.
2660 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2661 New method.
2662
b4094625
TT
26632019-07-17 Tom Tromey <tom@tromey.com>
2664
2665 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2666 declare.
2667 * tui/tui-windata.c
2668 (tui_data_window::delete_data_content_windows): Rename from
2669 tui_delete_data_content_windows.
2670 (tui_data_window::display_all_data)
2671 (tui_data_window::do_scroll_vertical): Update.
2672 * tui/tui-data.h (struct tui_data_window)
2673 <delete_data_content_windows>: New method.
2674
c223a729
TT
26752019-07-17 Tom Tromey <tom@tromey.com>
2676
2677 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2678 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2679
50daf268
TT
26802019-07-17 Tom Tromey <tom@tromey.com>
2681
2682 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2683 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2684 from tui_display_all_data.
2685 * tui/tui-win.c
2686 (tui_data_window::do_make_visible_with_new_height): Update.
2687 * tui/tui-regs.c (tui_show_registers): Update.
2688 * tui/tui-layout.c (tui_set_layout): Update.
2689 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2690 method.
2691
df5f8cab
TT
26922019-07-17 Tom Tromey <tom@tromey.com>
2693
2694 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2695 * tui/tui-windata.c (tui_display_data_from): Remove.
2696 (tui_data_window::refresh_all): Update.
2697
80cb6c27
TT
26982019-07-17 Tom Tromey <tom@tromey.com>
2699
2700 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2701 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2702 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2703 tui_display_registers_from_line.
2704 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2705 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2706 "force_display" parameter.
2707
baff0c28
TT
27082019-07-17 Tom Tromey <tom@tromey.com>
2709
2710 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2711 declare.
2712 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2713 Rename from tui_first_reg_element_no_inline.
2714 (tui_display_reg_element_at_line)
2715 (tui_display_registers_from_line): Update.
2716 * tui/tui-data.h (struct tui_data_window)
2717 <first_reg_element_no_inline>: New method.
2718
3b23c5f2
TT
27192019-07-17 Tom Tromey <tom@tromey.com>
2720
2721 * tui/tui-windata.c (tui_display_data_from)
2722 (tui_data_window::do_scroll_vertical): Update.
2723 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2724 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2725 Rename from tui_line_from_reg_element_no.
2726 (tui_display_registers_from_line): Update.
2727 * tui/tui-data.h (struct tui_data_window)
2728 <line_from_reg_element_no>: New method.
2729
0b5ec218
TT
27302019-07-17 Tom Tromey <tom@tromey.com>
2731
2732 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2733 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2734 tui_last_regs_line_no.
2735 (tui_display_reg_element_at_line)
2736 (tui_display_registers_from_line): Update.
2737 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2738 method.
2739
0807ab7b
TT
27402019-07-17 Tom Tromey <tom@tromey.com>
2741
2742 PR tui/24722:
2743 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2744 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2745 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2746 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2747 (tui_update_breakpoint_info): Likewise.
2748 * tui/tui-hooks.c (tui_event_create_breakpoint)
2749 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2750 Update.
2751
9ad7fdef
TT
27522019-07-17 Tom Tromey <tom@tromey.com>
2753
2754 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2755
5813316f
TT
27562019-07-17 Tom Tromey <tom@tromey.com>
2757
2758 * tui/tui-winsource.c (tui_update_source_window_as_is)
2759 (tui_update_source_windows_with_addr): Update.
2760 * tui/tui-source.h (tui_set_source_content)
2761 (tui_show_symtab_source): Add "win_info" parameter.
2762 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2763 parameter.
2764 (tui_show_symtab_source): Likewise.
2765
00e264e7
TT
27662019-07-17 Tom Tromey <tom@tromey.com>
2767
2768 * tui/tui-wingeneral.c
2769 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2770
06210ce4
TT
27712019-07-17 Tom Tromey <tom@tromey.com>
2772
2773 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2774 (struct tui_cmd_window) <can_scroll>: New method.
2775 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2776 method.
2777
381befee
TT
27782019-07-17 Tom Tromey <tromey@adacore.com>
2779
2780 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2781 do_field_signed>: Rename. Change type of "value".
2782 * ui-out.c (ui_out::field_signed): Rename from field_int.
2783 Change type of "value".
2784 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2785 type of "value".
2786 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2787 do_field_int. Change type of "value".
2788 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2789 do_field_int. Change type of "value".
2790 * tracepoint.c (trace_status_mi, tfind_1)
2791 (print_one_static_tracepoint_marker): Update.
2792 * thread.c (print_thread_info_1, print_selected_thread_frame):
2793 Update.
2794 * stack.c (print_frame, print_frame_info): Update.
2795 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2796 Update.
2797 * source.c (print_source_lines_base): Update.
2798 * skip.c (info_skip_command): Update.
2799 * record-btrace.c (btrace_ui_out_decode_error)
2800 (btrace_call_history_src_line): Update.
2801 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2802 Update.
2803 * progspace.c (print_program_space): Update.
2804 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2805 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2806 do_field_int. Change type of "value".
2807 * mi/mi-out.c (mi_ui_out::do_table_begin)
2808 (mi_ui_out::do_table_header): Update.
2809 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2810 type of "value".
2811 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2812 (mi_cmd_data_list_changed_registers, output_register)
2813 (mi_cmd_data_read_memory, mi_load_progress)
2814 (mi_cmd_trace_frame_collected): Update.
2815 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2816 Update.
2817 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2818 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2819 (mi_cmd_var_list_children, varobj_update_one): Update.
2820 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2821 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2822 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2823 * inferior.c (print_inferior): Update.
2824 * gdb_bfd.c (print_one_bfd): Update.
2825 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2826 Update.
2827 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2828 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2829 do_field_int. Change type of "value".
2830 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2831 do_field_int. Change type of "value".
2832 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2833 (print_one_breakpoint_location, print_it_catch_fork)
2834 (print_one_catch_fork, print_it_catch_vfork)
2835 (print_one_catch_vfork, print_it_catch_solib)
2836 (print_it_catch_exec, print_it_ranged_breakpoint)
2837 (print_mention_watchpoint, print_mention_masked_watchpoint)
2838 (bkpt_print_it, update_static_tracepoint): Update.
2839 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2840 * break-catch-syscall.c (print_it_catch_syscall): Update.
2841 * ada-tasks.c (print_ada_task_info): Update.
2842 * ada-lang.c (print_it_exception, print_mention_exception):
2843 Update.
2844
6b78c3f8
AB
28452019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2846
2847 PR breakpoints/24541
2848 * gdbarch.c: Regenerate.
2849 * gdbarch.h: Regenerate.
2850 * gdbarch.sh: Adjust return type and parameter types for
2851 'stap_adjust_register'.
2852 (i386_stap_adjust_register): Adjust signature and return new
2853 register name.
2854 * stap-probe.c (stap_parse_register_operand): Adjust use of
2855 'gdbarch_stap_adjust_register'.
2856
d72a9b85
TT
28572019-07-17 Tom Tromey <tromey@adacore.com>
2858
2859 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2860 declare VEC.
2861 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2862 std::vector.
2863 (struct s390_process_info): Add initializers.
2864 (s390_add_process): Use new.
2865 (s390_linux_nat_target::low_forget_process): Use delete.
2866 (s390_linux_nat_target::low_new_fork)
2867 (s390_linux_nat_target::stopped_by_watchpoint)
2868 (s390_linux_nat_target::low_prepare_to_resume)
2869 (s390_linux_nat_target::insert_watchpoint)
2870 (s390_linux_nat_target::insert_hw_breakpoint)
2871 (s390_linux_nat_target::remove_watchpoint)
2872 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2873
206e6c58
JB
28742019-07-16 John Baldwin <jhb@FreeBSD.org>
2875
2876 * aarch64-fbsd-nat.c: Include regcache.h.
2877 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2878 argument.
2879 (aarch64_fbsd_nat_target::fetch_registers)
2880 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2881 variable.
2882 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2883
cbde90f2
JB
28842019-07-16 John Baldwin <jhb@FreeBSD.org>
2885
2886 * fbsd-nat.c: Include gdbarch.h.
2887
07128006
TT
28882019-07-15 Tom Tromey <tromey@adacore.com>
2889
2890 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2891
1f77b012
TT
28922019-07-15 Tom Tromey <tromey@adacore.com>
2893
2894 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2895 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2896 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2897 * cli-out.c (cli_ui_out::do_field_int): New method.
2898 * ui-out.c (ui_out::field_unsigned): New method.
2899 * symfile.c (generic_load): Use field_unsigned.
2900 (print_transfer_performance): Likewise.
2901 * record-btrace.c (ui_out_field_uint): Remove.
2902 (btrace_call_history_insn_range, btrace_call_history): Use
2903 field_unsigned.
2904 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2905 field_unsigned.
2906 * ui-out.h (class ui_out) <field_unsigned>: New method.
2907 <do_field_unsigned>: Likewise.
2908
33eca680
TT
29092019-07-15 Tom Tromey <tromey@adacore.com>
2910
2911 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2912 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2913 * target.c (flash_erase_command): Use field_string.
2914 * infrun.c (print_signal_received_reason): Use field_string.
2915 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2916 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2917 field_string.
2918 * ada-tasks.c (print_ada_task_info): Use field_string.
2919
ca8d69be
TT
29202019-07-15 Tom Tromey <tromey@adacore.com>
2921
2922 * target.c (flash_erase_command): Use field_core_addr.
2923 * symfile.c (generic_load): Use field_core_addr.
2924 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2925 Use field_core_addr.
2926 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2927 field_core_addr.
2928
0d4e84ed
AB
29292019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2930
2931 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2932 value if its desired type is smaller than a CORE_ADDR and signed.
2933
9a49df9d
AB
29342019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2935
2936 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2937 of changes to field names, and use new is_reference field to
2938 decide if a property is a reference or not.
2939 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2940 field.
2941 (struct dwarf2_property_baton): Update header comment, rename
2942 'referenced_type' to 'property_type' and update comments.
2943 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2944 default property type, store in property baton, update to take
2945 accound of renamed field.
2946 (read_func_scope): Update call to attr_to_dynamic_prop.
2947 (read_array_type): Likewise.
2948 (dwarf2_per_cu_addr_sized_int_type): New function.
2949 (read_subrange_index_type): Move type finding code to
2950 dwarf2_per_cu_addr_sized_int_type.
2951 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2952 (dwarf2_per_cu_addr_type): New function.
2953 (set_die_type): Update calls to attr_to_dynamic_prop.
2954
b86352cf
AB
29552019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2956
2957 * dwarf2read.c (read_subrange_index_type): New function.
2958 (read_subrange_type): Move code into new function and call it.
2959 * gdbtypes.c (create_range_type): Add some asserts.
2960
603490bf
AB
29612019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2962
2963 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2964 update return statements.
2965 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2966 declaration, and update comment to match.
2967 * gdbtypes.c (resolve_dynamic_array): Update call to
2968 dwarf2_evaluate_property to match new return type.
2969
592f9d27
AB
29702019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2971
2972 * valarith.c (value_subscripted_rvalue): Change lowerbound
2973 parameter type from int to LONGEST.
2974 * value.h (value_subscripted_rvalue): Likewise in declaration.
2975
60cfcb20
AB
29762019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2977
2978 * cli/cli-utils.c (info_print_command_completer): New function.
2979 * cli/cli-utils.h: Add 'completer.h' include, and forward
2980 declaration for 'struct cmd_list_element'.
2981 (info_print_command_completer): Declare.
2982 * stack.c (_initialize_stack): Add completer for 'info locals' and
2983 'info args'.
2984 * symtab.c (_initialize_symtab): Add completer for 'info
2985 variables' and 'info functions'.
2986 * NEWS: Mention completion for additional info commands.
2987
b16507e0
AB
29882019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2989
2990 * cli/cli-utils.c (extract_info_print_args): Delete.
2991 (extract_arg_maybe_quoted): Delete.
2992 (info_print_options_defs): New variable.
2993 (make_info_print_options_def_group): New function.
2994 (extract_info_print_options): Define new function.
2995 * cli/cli-utils.h (extract_info_print_args): Delete.
2996 (struct info_print_options): New structure.
2997 (extract_info_print_options): Declare new function.
2998 * stack.c (info_locals_command): Update to use new
2999 extract_info_print_options, also add a header comment.
3000 (info_args_command): Likewise.
3001 * symtab.c (info_variables_command): Likewise.
3002 (info_functions_command): Likewise.
3003
021d8588
AB
30042019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3005
3006 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3007 to extract string arguments.
3008 * common/common-utils.c (extract_string_maybe_quoted): New function.
3009 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3010
b777eb6d
TT
30112019-07-11 Tom Tromey <tromey@adacore.com>
3012
3013 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3014 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3015 * top.h (gdbinit): Don't declare.
3016 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3017 into...
3018 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3019 * top.c (gdb_init): Don't call init_cli_cmds.
3020 (gdbinit): Remove.
3021 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3022
72ee03ff
TT
30232019-07-11 Tom Tromey <tromey@adacore.com>
3024
3025 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3026 after it has been moved.
3027
00db9531
SM
30282019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3029
3030 * valops.c (value_must_coerce_to_target): Change return type to
3031 bool.
3032 * value.h (value_must_coerce_to_target): Likewise.
3033
f2478a7e
SM
30342019-07-10 Simon Marchi <simon.marchi@efficios.com>
3035
3036 * breakpoint.c (is_hardware_watchpoint): Remove
3037 forward-declaration.
3038 (is_masked_watchpoint): Change return type to bool.
3039 (is_tracepoint): Likewise.
3040 (is_breakpoint): Likewise.
3041 (is_hardware_watchpoint): Likewise.
3042 (is_watchpoint): Likewise.
3043 (is_no_memory_software_watchpoint): Likewise.
3044 (is_catchpoint): Likewise.
3045 (breakpoint_1): Make FILTER parameter's return type bool.
3046 is_masked_watchpoint): Change return type to bool.
3047 (save_breakpoints): Make FILTER parameter's return type bool.
3048 * breakpoint.h (is_breakpoint): Change return type to bool.
3049 (is_watchpoint): Likewise.
3050 (is_catchpoint): Likewise.
3051 (is_tracepoint): Likewise.
3052
0d12e84c
TT
30532019-07-10 Tom Tromey <tom@tromey.com>
3054
3055 * defs.h: Don't include gdbarch.h.
3056 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3057 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3058 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3059 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3060 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3061 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3062 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3063 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3064 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3065 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3066 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3067 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3068 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3069 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3070 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3071 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3072 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3073 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3074 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3075 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3076 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3077 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3078 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3079 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3080 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3081 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3082 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3083
f06f1252
TT
30842019-07-10 Tom Tromey <tromey@adacore.com>
3085
3086 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3087 * breakpoint.c (init_ada_exception_breakpoint): Register as
3088 bp_catchpoint.
3089 (print_one_breakpoint_location, print_one_breakpoint): Use
3090 is_ada_exception_catchpoint.
3091 * ada-lang.c (class ada_catchpoint_location): Pass
3092 bp_loc_software_breakpoint to bp_location constructor.
3093 (is_ada_exception_catchpoint): New function.
3094
7a5d944b
TT
30952019-07-10 Tom Tromey <tromey@adacore.com>
3096
3097 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3098 VEC.
3099 (struct arm_exidx_entry): New method operator<.
3100 (struct arm_exidx_data) <section_maps>: Change type.
3101 (arm_exidx_data_free): Remove.
3102 (arm_exidx_data_key): Change type. Move lower.
3103 (arm_exidx_new_objfile): Update.
3104 (arm_compare_exidx_entries): Remove.
3105 (arm_find_exidx_entry, _initialize_arm_tdep)
3106
48c66e1d
TT
31072019-07-10 Tom Tromey <tromey@adacore.com>
3108
3109 * solib-spu.c (ocl_program_data_key): Change type.
3110 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3111 Update.
3112
a269fbf1
TT
31132019-07-10 Tom Tromey <tromey@adacore.com>
3114
3115 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3116 (struct solib_aix_inferior_data) <library_list>: Change type.
3117 (solib_aix_inferior_data_handle): Change type.
3118 (get_solib_aix_inferior_data): Update.
3119 (solib_aix_free_library_list): Remove.
3120 (library_list_start_library): Update.
3121 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3122 return type.
3123 (solib_aix_get_library_list)
3124 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3125 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3126
c294730c
TT
31272019-07-10 Tom Tromey <tromey@adacore.com>
3128
3129 * solib-dsbt.c (struct dsbt_info): Add initializers.
3130 (solib_dsbt_pspace_data): Change type.
3131 (dsbt_pspace_data_cleanup): Remove.
3132 (get_dsbt_info, _initialize_dsbt_solib): Update.
3133
9d52077d
TT
31342019-07-10 Tom Tromey <tromey@adacore.com>
3135
3136 * spu-tdep.c (spu_overlay_data): Change type.
3137 (spu_get_overlay_table, spu_overlay_new_objfile)
3138 (_initialize_spu_tdep): Update.
3139
22a20dca
TT
31402019-07-10 Tom Tromey <tromey@adacore.com>
3141
3142 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3143 destructor.
3144 (dbx_objfile_data_key): Change type and declare later.
3145 (DBX_SYMFILE_INFO): Rewrite.
3146 * dbxread.c (dbx_objfile_data_key): Change type.
3147 (dbx_symfile_init): Update.
3148 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3149 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3150 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3151
cb60f420
TT
31522019-07-10 Tom Tromey <tromey@adacore.com>
3153
3154 * jit.c (jit_program_space_key): Change type. Move lower.
3155 (get_jit_program_space_data): Update.
3156 (jit_program_space_data_cleanup): Remove.
3157 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3158 Update.
3159 (struct jit_program_space_data): Add initializers.
3160
51df2ae3
TT
31612019-07-10 Tom Tromey <tromey@adacore.com>
3162
3163 * solib-darwin.c (struct darwin_info): Add initializers.
3164 (solib_darwin_pspace_data): Change type.
3165 (darwin_pspace_data_cleanup): Remove.
3166 (get_darwin_info, _initialize_darwin_solib): Update.
3167
18101a35
TT
31682019-07-10 Tom Tromey <tromey@adacore.com>
3169
3170 * remote-sim.c (struct sim_inferior_data): Add initializers,
3171 constructor, and destructor.
3172 (sim_inferior_data_key): Change type. Move lower.
3173 (check_for_duplicate_sim_descriptor): Update.
3174 (get_sim_inferior_data): Use new. Update.
3175 (~sim_inferior_data_cleanup): Rename from
3176 sim_inferior_data_cleanup. Simplify.
3177 (gdbsim_close_inferior, simulator_command)
3178 (sim_command_completer, _initialize_remote_sim): Update.
3179 (next_pid, INITIAL_PID): Move earlier.
3180
05b08ac1
TT
31812019-07-10 Tom Tromey <tromey@adacore.com>
3182
3183 * python/python-internal.h (create_thread_object): Return
3184 gdbpy_ref.
3185 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3186 * python/py-inferior.c (struct threadlist_entry): Add
3187 constructor.
3188 <thread_obj>: Now a gdbpy_ref.
3189 (thread_to_thread_object): Update.
3190 (add_thread_object): Use new.
3191 (delete_thread_object): Use delete.
3192 (infpy_threads): Update.
3193 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3194 GIL.
3195
32372d80
TT
31962019-07-10 Tom Tromey <tromey@adacore.com>
3197
3198 * valops.c (value_cast): Specialize error message for Ada.
3199
5c458ae8
SM
32002019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3201
3202 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3203
4c462cb0
SM
32042019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3205
3206 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3207 bpstat_should_step): Return bool, adjust comments.
3208 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3209 bpstat_should_step): Likewise.
3210
89abbcc2
AH
32112019-07-10 Alan Hayward <alan.hayward@arm.com>
3212
3213 * features/Makefile: Use feature target descriptions for Arm.
3214 * features/arm/arm-core.c: Generate new file.
3215 * features/arm/arm-fpa.c: Likewise.
3216 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3217 * features/arm/arm-m-profile.c: Likewise.
3218 * features/arm/arm-vfpv2.c: Likewise.
3219 * features/arm/arm-vfpv3.c: Likewise.
3220 * features/arm/xscale-iwmmxt.c: Likewise.
3221 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3222
166a82be
AH
32232019-07-10 Alan Hayward <alan.hayward@arm.com>
3224
3225 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3226 ptrace earlier.
3227
9fb4c7e9
AH
32282019-07-10 Alan Hayward <alan.hayward@arm.com>
3229
3230 * features/aarch64-pauth.c: Regenerate.
3231
e2d0f980
SM
32322019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3233
3234 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3235 bool.
3236 (bpstat_what): Use false instead of 0.
3237
a38118e5
PA
32382019-07-09 Pedro Alves <palves@redhat.com>
3239
3240 * break-catch-throw.c (is_exception_catchpoint): New.
3241 * breakpoint.c (print_one_breakpoint_location): New parameter
3242 'raw_loc'. Handle it. Use
3243 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3244 looking at the breakpoint's type.
3245 (print_one_breakpoint): If handling "maint info breakpoints", also
3246 print locations of exception catchpoints.
3247 * breakpoint.h (is_exception_catchpoint): Declare.
3248
cb1e4e32
PA
32492019-07-09 Pedro Alves <palves@redhat.com>
3250
3251 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3252 "addr" field.
3253 (allocate_location_exception_catchpoint): New.
3254 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3255 (initialize_throw_catchpoint_ops): Install
3256 allocate_location_exception_catchpoint as allocate_location
3257 method.
3258 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3259 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3260 bp_loc_other.
3261 (breakpoint_address_is_meaningful): Delete.
3262 (bl_address_is_meaningful): New.
3263 (breakpoint_locations_match): Adjust comment.
3264 (bp_location_from_bp_type): New, factored out of...
3265 (bp_location::bp_location(breakpoint *)): ... this.
3266 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3267 factored out of...
3268 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3269 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3270 breakpoint_address_is_meaningful.
3271 (bp_locations_compare): Adjust comment.
3272 (update_global_location_list): Use bl_address_is_meaningful
3273 instead of breakpoint_address_is_meaningful.
3274 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3275 explicit.
3276 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3277 * python/py-breakpoint.c (bppy_get_location): No longer check
3278 whether location is null.
3279
b58a68fe
PA
32802019-07-09 Pedro Alves <palves@redhat.com>
3281
3282 PR c++/15468
3283 * breakpoint.c (print_one_breakpoint_location): Remove
3284 single-location assert.
3285
268a13a5
TT
32862019-07-09 Tom Tromey <tom@tromey.com>
3287
3288 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3289 * configure: Rebuild.
3290 * configure.ac: Change common to gdbsupport.
3291 * gdbsupport: Rename from common.
3292 * acinclude.m4: Change common to gdbsupport.
3293 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3294 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3295 gdbsupport.
3296 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3297 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3298 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3299 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3300 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3301 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3302 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3303 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3304 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3305 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3306 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3307 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3308 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3309 coff-pe-read.c, command.h, compile/compile-c-support.c,
3310 compile/compile-c.h, compile/compile-cplus-symbols.c,
3311 compile/compile-cplus-types.c, compile/compile-cplus.h,
3312 compile/compile-loc2c.c, compile/compile.c, completer.c,
3313 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3314 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3315 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3316 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3317 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3318 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3319 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3320 features/aarch64-core.c, features/aarch64-fpu.c,
3321 features/aarch64-pauth.c, features/aarch64-sve.c,
3322 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3323 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3324 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3325 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3326 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3327 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3328 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3329 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3330 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3331 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3332 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3333 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3334 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3335 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3336 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3337 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3338 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3339 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3340 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3341 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3342 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3343 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3344 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3345 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3346 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3347 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3348 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3349 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3350 minsyms.c, mips-linux-tdep.c, namespace.h,
3351 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3352 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3353 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3354 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3355 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3356 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3357 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3358 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3359 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3360 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3361 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3362 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3363 procfs.c, producer.c, progspace.h, psymtab.h,
3364 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3365 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3366 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3367 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3368 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3369 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3370 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3371 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3372 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3373 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3374 target-memory.c, target.c, target.h, target/waitstatus.c,
3375 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3376 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3377 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3378 unittests/array-view-selftests.c,
3379 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3380 unittests/common-utils-selftests.c,
3381 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3382 unittests/format_pieces-selftests.c,
3383 unittests/function-view-selftests.c,
3384 unittests/lookup_name_info-selftests.c,
3385 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3386 unittests/mkdir-recursive-selftests.c,
3387 unittests/observable-selftests.c,
3388 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3389 unittests/parse-connection-spec-selftests.c,
3390 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3391 unittests/scoped_fd-selftests.c,
3392 unittests/scoped_mmap-selftests.c,
3393 unittests/scoped_restore-selftests.c,
3394 unittests/string_view-selftests.c, unittests/style-selftests.c,
3395 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3396 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3397 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3398 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3399 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3400 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3401
5b0e2db4
AB
34022019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3403
3404 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3405 bool value.
3406 (decode_digits_ordinary): Set explicit_line field in sal.
3407 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3408 symtab_and_line that was set on an explicit line number in
3409 assembler code. Do always update the recorded symtab and line if
3410 we do skip the prologue.
3411
0ba852ab
AB
34122019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3413
3414 * breakpoint.c (set_breakpoint_location_function): Remove
3415 explicit_loc parameter.
3416 (momentary_breakpoint_from_master): Update call to
3417 set_breakpoint_location_function.
3418 (add_location_to_breakpoint): Likewise.
3419
b3a7d171
AB
34202019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3421
3422 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3423 required features based on default bfd type when no specific bfd
3424 is present.
3425
1f6f6e21
PW
34262019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3427
3428 * NEWS: Mention that GDB printf and eval commands can now print
3429 C-style and Ada-style convenience var strings without
3430 calling the inferior.
3431 * printcmd.c (printf_c_string): Locally print GDB internal var
3432 instead of transiting via the inferior.
3433 (printf_wide_c_string): Likewise.
3434
34352019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
3436
3437 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3438
0598af48
TT
34392019-07-04 Tom Tromey <tom@tromey.com>
3440
3441 PR tui/24724:
3442 * tui/tui-winsource.c (tui_clear_source_content): Update.
3443 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3444 (tui_update_breakpoint_info): Update.
3445 (tui_set_exec_info_content): Update.
3446 * tui/tui-source.c (tui_set_source_content_nil): Update.
3447 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3448 has_break.
3449 * tui/tui-data.h (enum tui_bp_flag): New.
3450 (tui_bp_flags): New enum flags type.
3451 (struct tui_source_element) <break_mode>: Change type. Rename
3452 from has_break.
3453 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3454 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3455 constants.
3456 * tui/tui-winsource.h: Fix comment.
3457
350fab54
AH
34582019-07-04 Alan Hayward <alan.hayward@arm.com>
3459
3460 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3461 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3462 (store_fpregs_to_thread)
3463 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3464 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3465 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3466 (IWMMXT_REGS_SIZE): Add define.
3467 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3468 (fetch_vfp_regs, store_vfp_regs)
3469 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3470 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3471
f0452268
AH
34722019-07-04 Alan Hayward <alan.hayward@arm.com>
3473
3474 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3475 defines.
3476 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3477 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3478 (ARM_INT_REGISTER_SIZE): ...to this.
3479 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3480 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3481 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3482 (arm_linux_collect_gregset, supply_nwfpe_register)
3483 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3484 defines.
3485 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3486 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3487 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3488 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3489 (arm_return_in_memory, arm_store_return_value)
3490 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3491 (arm_record_ld_st_multiple): Likewise.
3492 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3493 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3494
e935475c
AH
34952019-07-04 Alan Hayward <alan.hayward@arm.com>
3496
3497 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3498 AARCH64_DISPLACED_MODIFIED_INSNS.
3499 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3500 (aarch64_displaced_step_copy_insn): Likewise.
3501 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3502 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3503 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3504 ARM_DISPLACED_MODIFIED_INSNS.
3505 * arm-tdep.c (arm_gdbarch_init): Likewise.
3506 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3507 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3508 (struct arm_displaced_step_closure): Use
3509 ARM_DISPLACED_MODIFIED_INSNS.
3510
df0bb381
AH
35112019-07-04 Alan Hayward <alan.hayward@arm.com>
3512
3513 * features/Makefile: Remove unused xml files.
3514 * features/aarch64.xml: Remove.
3515 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3516 * features/i386/amd64-avx-avx512.xml: Remove.
3517 * features/i386/amd64-avx-linux.xml: Remove.
3518 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3519 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3520 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3521 * features/i386/amd64-avx-mpx.xml: Remove.
3522 * features/i386/amd64-avx.xml: Remove.
3523 * features/i386/amd64-linux.xml: Remove.
3524 * features/i386/amd64-mpx-linux.xml: Remove.
3525 * features/i386/amd64-mpx.xml: Remove.
3526 * features/i386/amd64.xml: Remove.
3527 * features/i386/i386-avx-avx512-linux.xml: Remove.
3528 * features/i386/i386-avx-avx512.xml: Remove.
3529 * features/i386/i386-avx-linux.xml: Remove.
3530 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3531 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3532 * features/i386/i386-avx-mpx-linux.xml: Remove.
3533 * features/i386/i386-avx-mpx.xml: Remove.
3534 * features/i386/i386-avx.xml: Remove.
3535 * features/i386/i386-linux.xml: Remove.
3536 * features/i386/i386-mmx-linux.xml: Remove.
3537 * features/i386/i386-mmx.xml: Remove.
3538 * features/i386/i386-mpx-linux.xml: Remove.
3539 * features/i386/i386-mpx.xml: Remove.
3540 * features/i386/i386.xml: Remove.
3541 * features/i386/x32-avx-avx512-linux.xml: Remove.
3542 * features/i386/x32-avx-linux.xml: Remove.
3543 * features/i386/x32-linux.xml: Remove.
3544
edd6266a
AH
35452019-07-04 Alan Hayward <alan.hayward@arm.com>
3546
3547 * regformats/aarch64.dat: Remove.
3548 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3549 * regformats/i386/amd64-avx-linux.dat: Remove.
3550 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3551 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3552 * regformats/i386/amd64-linux.dat: Remove.
3553 * regformats/i386/amd64-mpx-linux.dat: Remove.
3554 * regformats/i386/amd64.dat: Remove.
3555 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3556 * regformats/i386/i386-avx-linux.dat: Remove.
3557 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3558 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3559 * regformats/i386/i386-linux.dat: Remove.
3560 * regformats/i386/i386-mmx-linux.dat: Remove.
3561 * regformats/i386/i386-mpx-linux.dat: Remove.
3562 * regformats/i386/i386.dat: Remove.
3563 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3564 * regformats/i386/x32-avx-linux.dat: Remove.
3565 * regformats/i386/x32-linux.dat: Remove.
3566
2b40fda7
AH
35672019-07-04 Alan Hayward <alan.hayward@arm.com>
3568
3569 * aarch64-tdep.c: Remove xml self tests.
3570 * amd64-linux-tdep.c: Likewise.
3571 * amd64-tdep.c: Likewise.
3572 * i386-linux-tdep.c: Likewise.
3573 * i386-tdep.c: Likewise.
3574
5f4ba3e7
PA
35752019-07-03 Pedro Alves <palves@redhat.com>
3576
3577 PR cli/24732
3578 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3579 (pipe_cmd_option_defs): New.
3580 (make_pipe_cmd_options_def_group): New.
3581 (pipe_command): Use gdb::option::process_options.
3582 (pipe_command_completer): New function.
3583 (_initialize_cli_cmds): Install completer for "pipe" command.
3584
3d9be6f5
PA
35852019-07-03 Pedro Alves <palves@redhat.com>
3586
3587 * cli/cli-option.c (union option_value) <string>: New field.
3588 (struct option_def_and_value): Add ctor, move ctor, dtor and
3589 use DISABLE_COPY_AND_ASSIGN.
3590 (option_def_and_value::clear_value): New.
3591 (parse_option, save_option_value_in_ctx, get_val_type_str)
3592 (add_setshow_cmds_for_options): Handle var_string.
3593 * cli-option.h (union option_def::var_address) <string>: New
3594 field.
3595 (struct string_option_def): New.
3596 * maint-test-options.c (struct test_options_opts): Add default
3597 ctor and use DISABLE_COPY_AND_ASSIGN.
3598 <string_opt>: New field.
3599 (test_options_opts::~test_options_opts): New.
3600 (test_options_opts::dump): Also dump "-string".
3601 (test_options_option_defs): Install "string.
3602
41fc454c
PA
36032019-07-03 Pedro Alves <palves@redhat.com>
3604
3605 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3606 option_value with a null enumeration.
3607 (complete_options): Save the option values in the context.
3608 (save_option_value_in_ctx): New, factored out from ...
3609 (process_options): ... here.
3610 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3611 of the function.
3612 * maint-test-options.c (test_options_opts::dump): New, factored
3613 out from ...
3614 (maintenance_test_options_command_mode): ... here.
3615 (maintenance_test_options_command_completion_result): Delete.
3616 (maintenance_test_options_command_completion_text): Update
3617 comment.
3618 (maintenance_show_test_options_completion_result): Change
3619 prototype. Just print
3620 maintenance_test_options_command_completion_text.
3621 (save_completion_result): New.
3622 (maintenance_test_options_completer_mode): Pass options context to
3623 complete_options, and then save a dump.
3624 (_initialize_maint_test_options): Use add_cmd to install "maint
3625 show test-options-completion-result".
3626
fdbc9870
PA
36272019-07-03 Pedro Alves <palves@redhat.com>
3628
3629 * NEWS (New commands): Mention "with" and "maint with".
3630 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3631 (with_command, with_command_completer): New.
3632 (pipe_command): Adjust to new repeat_previous
3633 interface.
3634 (_initialize_cli_cmds): Install the "with" command and its "w"
3635 alias.
3636 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3637 declarations.
3638 * cli/cli-setshow.c (parse_cli_var_uinteger)
3639 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3640 argument strings for all var_types.
3641 (get_setshow_command_value_string): New, factored out from ...
3642 (do_show_command): ... this.
3643 * cli/cli-setshow.h: Include <string>.
3644 (get_setshow_command_value_string): Declare.
3645 * command.h (repeat_previous): Now returns const char *. Adjust
3646 comment.
3647 * maint.c: Include "cli/cli-cmds.h".
3648 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3649 (_initialize_maint_cmds): Register the "maintenance with" command.
3650 * top.c (repeat_previous): Move bits from pipe_command here:
3651 Return the saved command line, if any; error out if there's no
3652 command to relaunch.
3653
c6ac8931
PA
36542019-07-03 Pedro Alves <palves@redhat.com>
3655
3656 * NEWS (New commands): Mention "maint set/show test-settings"
3657 instead of "maint test-settings".
3658 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3659 (maintenance_test_settings_set_list): Rename to ...
3660 (maintenance_set_test_settings_list): ... this.
3661 (maintenance_test_settings_show_list): Rename to ...
3662 (maintenance_show_test_settings_list): ... this.
3663 (maintenance_test_settings_cmd): Delete.
3664 (maintenance_test_settings_set_cmd): ...
3665 (maintenance_set_test_settings_cmd): ... this.
3666 (maintenance_test_settings_show_cmd): ...
3667 (maintenance_show_test_settings_cmd): ... this.
3668 (maintenance_test_settings_show_value_cmd):
3669 (maintenance_show_test_settings_value_cmd): ... this.
3670 (_initialize_maint_test_settings): No longer install the "maint
3671 test-settings" prefix command. Rename "maint test-settings set"
3672 to "maint set test-settings", and "maint test-settings show" to
3673 "maint show test-settings". Adjust all subcommands.
3674
d1fcf2fd
PA
36752019-07-03 Pedro Alves <palves@redhat.com>
3676
3677 * maint-test-settings.c: Fix file's intro comment. Replace all
3678 references to "test-options" with references to "test-settings",
3679 in comments.
3680
970f9d09
PA
36812019-07-03 Pedro Alves <palves@redhat.com>
3682
3683 * maint-test-settings.c (maintenance_test_settings_xxx)
3684 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3685 New.
3686 (maintenance_test_settings_enums): Use them.
3687 (maintenance_test_settings_enum): Default to
3688 maintenance_test_settings_xxx.
3689 (_initialize_maint_test_settings): Initialize
3690 MAINTENANCE_TEST_SETTINGS_FILENAME.
3691
f3869b1a
SM
36922019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3693
3694 * breakpoint.h (remove_breakpoints_inf): Change return type to
3695 void, move function documentation here.
3696 * breakpoint.c (remove_breakpoints_inf): Change return type to
3697 void, move function documentation to header.
3698
54d66006
PA
36992019-07-02 Pedro Alves <palves@redhat.com>
3700
3701 * NEWS (Completion improvements): Mention "info threads".
3702 * thread.c (struct info_threads_opts, info_threads_option_defs)
3703 (make_info_threads_options_def_group): New.
3704 (info_threads_command): Use gdb::option::process_options.
3705 (info_threads_command_completer): New.
3706 (_initialize_thread): Use gdb::option::build_help to build the
3707 help text for "info threads".
3708
854f6088
SM
37092019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3710
3711 * defs.h (generic_load): Move from here...
3712 * symfile.h (generic_load): ... to here. Rename name parameter
3713 to args.
3714 * symfile.c (generic_load): Add comment.
3715
54ee4252
TT
37162019-07-01 Tom Tromey <tromey@adacore.com>
3717
3718 * dwarf2read.c
3719 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3720 declaration of without_params. Fix formatting.
3721
65392b3e
TT
37222019-07-01 Tom Tromey <tromey@adacore.com>
3723
3724 * ada-exp.y (find_primitive_type): Update.
3725 * ada-lang.h (ada_lookup_symbol): Update.
3726 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3727 parameter.
3728 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3729
7d7571f0
SDJ
37302019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3731
3732 PR breakpoints/24541
3733 * gdbarch.c: Regenerate.
3734 * gdbarch.h: Regenerate.
3735 * gdbarch.sh: Add 'stap_adjust_register'.
3736 * i386-tdep.c: Include '<unordered_set>'.
3737 (i386_stap_adjust_register): New function.
3738 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3739 * stap-probe.c (stap_parse_register_operand): Call
3740 'gdbarch_stap_adjust_register'.
3741
5af5392a
SDJ
37422019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3743
3744 PR python/24742
3745 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3746 * python/python.c (do_start_initialization): Use 'xmalloc'
3747 instead of 'PyMem_Malloc'.
3748
10d06d82
TT
37492019-06-28 Tom Tromey <tromey@adacore.com>
3750
3751 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3752 for Ada.
3753
1b7f24cd
TT
37542019-06-27 Tom Tromey <tromey@adacore.com>
3755
3756 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3757 objfile_key.
3758 (arm_find_mapping_symbol, arm_record_special_symbol)
3759 (_initialize_arm_tdep): Update.
3760 (arm_objfile_data_free): Remove.
3761
3d507ff2
TT
37622019-06-27 Tom Tromey <tromey@adacore.com>
3763
3764 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3765 to cp_print_static_field.
3766
762c164d
TT
37672019-06-26 Tom Tromey <tromey@adacore.com>
3768
3769 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3770 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3771 declare.
3772
aa2f9bcf
AH
37732019-06-26 Alan Hayward <alan.hayward@arm.com>
3774
3775 * features/aarch64-core.c (create_feature_aarch64_core):
3776 Regenerate.
3777 * features/aarch64-core.xml: Add cpsr flags.
3778
3426ae57
AH
37792019-06-26 Alan Hayward <alan.hayward@arm.com>
3780
3781 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3782 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3783
4838e44c
SM
37842019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3785
3786 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3787 field.
3788 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3789 use.
3790 (arm_record_special_symbol): Don't insert new symbol in sorted
3791 position, push it at the end.
3792
54cc7474
SM
37932019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3794
3795 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3796 (arm_mapping_symbol_s): Remove.
3797 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3798 (arm_mapping_symbol_vec): New typedef.
3799 (struct arm_per_objfile): Add constructor.
3800 <section_maps>: Change type to
3801 std::unique_ptr<arm_mapping_symbol_vec[]>.
3802 (arm_compare_mapping_symbols): Remove.
3803 (arm_find_mapping_symbol): Adjust to section_maps type change.
3804 (arm_objfile_data_free): Call delete on arm_per_objfile.
3805 (arm_record_special_symbol): Adjust to section_maps type change.
3806 Allocate arm_per_objfile with new.
3807
b65b566c
PW
38082019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3809
3810 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3811 with the command prefix.
3812
c2fc64f5
TT
38132019-06-25 Tom Tromey <tom@tromey.com>
3814
3815 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3816 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3817
fb54fa76
TT
38182019-06-25 Tom Tromey <tom@tromey.com>
3819
3820 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3821 type.
3822 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3823 protected.
3824
f7952c57
TT
38252019-06-25 Tom Tromey <tom@tromey.com>
3826
3827 * tui/tui-winsource.c
3828 (tui_source_window_base::set_is_exec_point_at): Add check against
3829 LOA_ADDRESS.
3830
17568d78
TT
38312019-06-25 Tom Tromey <tom@tromey.com>
3832
3833 * tui/tui-source.c (tui_set_source_content): Don't check before
3834 xfree.
3835 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3836
53e7cdba
TT
38372019-06-25 Tom Tromey <tom@tromey.com>
3838
3839 * tui/tui-winsource.h (tui_update_source_window_as_is)
3840 (tui_alloc_source_buffer, tui_line_is_displayed)
3841 (tui_addr_is_displayed): Change type of win_info.
3842 * tui/tui-winsource.c (tui_update_source_window_as_is)
3843 (tui_clear_source_content, tui_show_source_line)
3844 (tui_show_source_content, tui_source_window_base::refill)
3845 (tui_source_window_base::set_is_exec_point_at)
3846 (tui_source_window_base::set_is_exec_point_at)
3847 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3848 (tui_alloc_source_buffer, tui_line_is_displayed)
3849 (tui_addr_is_displayed): Change type of win_info. Update.
3850 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3851 (tui_source_window_base::do_make_visible_with_new_height):
3852 Update.
3853 * tui/tui-source.c (tui_set_source_content)
3854 (tui_set_source_content_nil)
3855 (tui_source_window::do_scroll_vertical): Update.
3856 * tui/tui-layout.c (show_layout): Update.
3857 * tui/tui-disasm.c (tui_set_disassem_content)
3858 (tui_disasm_window::do_scroll_vertical): Update.
3859 * tui/tui-data.h (tui_win_content): Remove.
3860 (struct tui_gen_win_info) <content, content_size>: Remove.
3861 (struct tui_source_element): Add initializers and destructor.
3862 (union tui_which_element, struct tui_win_element): Remove.
3863 (struct tui_source_window_base) <content>: New field.
3864 (struct tui_data_window): Remove destructor.
3865 (tui_alloc_content, tui_free_win_content)
3866 (tui_free_all_source_wins_content): Don't declare.
3867 * tui/tui-data.c (tui_initialize_static_data): Update.
3868 (init_content_element, tui_alloc_content): Remove.
3869 (~tui_gen_win_info): Update.
3870 (~tui_data_window, tui_free_all_source_wins_content)
3871 (tui_free_win_content, free_content, free_content_elements):
3872 Remove.
3873
7908abbf
TT
38742019-06-25 Tom Tromey <tom@tromey.com>
3875
3876 * tui/tui-winsource.h (tui_clear_source_content)
3877 (tui_erase_source_content, tui_show_source_content): Change type
3878 of win_info.
3879 * tui/tui-winsource.c (tui_clear_source_content)
3880 (tui_erase_source_content, tui_show_source_content): Change type
3881 of win_info.
3882 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3883 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3884 win_info.
3885 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3886 win_info.
3887 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3888
02c28df0
TT
38892019-06-25 Tom Tromey <tom@tromey.com>
3890
3891 * tui/tui-winsource.c (tui_clear_source_content)
3892 (tui_source_window_base::set_is_exec_point_at): Update.
3893 * tui/tui-source.c (tui_set_source_content_nil): Update.
3894 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3895 a bool.
3896 * tui/tui-data.c (init_content_element): Update.
3897
6658b1bf
TT
38982019-06-25 Tom Tromey <tom@tromey.com>
3899
3900 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3901 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3902 * tui/tui-layout.c (init_and_make_win): Update.
3903 * tui/tui.h (enum tui_win_type): Update.
3904 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3905 tui_win_is_auxillary.
3906 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3907 tui_win_is_auxillary.
3908
21e1c91e
TT
39092019-06-25 Tom Tromey <tom@tromey.com>
3910
3911 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3912 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3913 (tui_delete_data_content_windows, tui_display_all_data)
3914 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3915 Update.
3916 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3917 * tui/tui-regs.c (tui_last_regs_line_no)
3918 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3919 (tui_show_registers): Update.
3920 (tui_show_register_group): Return void. Update.
3921 (tui_display_registers_from, tui_display_reg_element_at_line)
3922 (tui_display_registers_from_line, tui_check_register_values):
3923 Update.
3924 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3925 member.
3926 (struct tui_data_window) <regs_content>: Now a std::vector.
3927 <regs_content_count>: Remove.
3928 (tui_add_content_elements, tui_free_data_content): Don't declare.
3929 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3930 (init_content_element): Remove DATA_WIN case. Add assert.
3931 (tui_add_content_elements): Remove.
3932 (tui_data_window): Update.
3933 (tui_free_data_content): Remove.
3934 (free_content_elements): Remove DATA_WIN case.
3935
115ac53b
TT
39362019-06-25 Tom Tromey <tom@tromey.com>
3937
3938 * tui/tui-data.c (tui_data_item_window): Update.
3939 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3940 * tui/tui-windata.c (tui_display_all_data)
3941 (tui_display_data_from_line): Update.
3942 (tui_check_data_values): Remove.
3943 * tui/tui-regs.c (tui_show_register_group)
3944 (tui_display_reg_element_at_line): Update.
3945 * tui/tui-hooks.c (tui_register_changed)
3946 (tui_refresh_frame_and_register_information): Call
3947 tui_check_register_values.
3948 * tui/tui-data.h (struct tui_data_window) <data_content,
3949 data_content_count, data_type>: Remove.
3950 (enum tui_data_type): Remove.
3951
3952 * tui/tui-data.c (tui_data_window::clear_detail)
3953 (~tui_data_window): Update.
3954
eaf9738b
TT
39552019-06-25 Tom Tromey <tom@tromey.com>
3956
3957 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3958 declare.
3959 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3960 Rename from tui_first_data_item_displayed. Update.
3961 (tui_data_window::refresh_all)
3962 (tui_data_window::do_scroll_vertical): Update.
3963 * tui/tui-data.h (struct tui_data_window)
3964 <first_data_item_displayed>: Declare new method.
3965
31ca4723
TT
39662019-06-25 Tom Tromey <tom@tromey.com>
3967
3968 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3969 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3970 contents...
3971 (tui_initialize_static_data): ...here.
3972
41bcff7f
TT
39732019-06-25 Tom Tromey <tom@tromey.com>
3974
3975 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3976 (tui_display_registers_from, tui_check_register_values): Update.
3977 (tui_display_register): Remove win_info parameter; update.
3978 (tui_get_register): Change type of parameters.
3979 * tui/tui-data.h (struct tui_data_element): Remove.
3980 (union tui_which_element) <data>: Remove.
3981 <data_window>: Change type.
3982 (struct tui_data_item_window): New.
3983 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3984 case. Add assert.
3985 (~tui_data_item_window): New destructor.
3986 (free_content_elements): Remove DATA_ITEM_WIN case.
3987
d2802c33
TT
39882019-06-25 Tom Tromey <tom@tromey.com>
3989
3990 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3991 Remove.
3992
dd835f8b
TT
39932019-06-25 Tom Tromey <tom@tromey.com>
3994
3995 * tui/tui-data.h (struct tui_command_element): Remove.
3996 (union tui_which_element) <command>: Remove.
3997 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3998 assert.
3999 (free_content_elements): Remove CMD_WIN case.
4000
bd7db367
TT
40012019-06-25 Tom Tromey <tom@tromey.com>
4002
4003 * tui/tui-layout.c (tui_set_layout): Update.
4004 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4005 * tui/tui-data.c (layout_def): Update.
4006
3add462f
TT
40072019-06-25 Tom Tromey <tom@tromey.com>
4008
4009 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4010 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4011 (tui_source_window_base::set_new_height): Update.
4012 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4013 Update.
4014 (tui_set_locator_fullname, tui_set_locator_info)
4015 (tui_show_frame_info): Update.
4016 * tui/tui-source.c (tui_set_source_content)
4017 (tui_source_is_displayed): Update.
4018 * tui/tui-layout.c (show_source_disasm_command, show_data)
4019 (show_source_or_disasm_and_command): Update.
4020 * tui/tui-disasm.c (tui_set_disassem_content)
4021 (tui_get_begin_asm_address): Update.
4022 * tui/tui-data.h (struct tui_locator_element): Remove.
4023 (union tui_which_element) <locator>: Remove.
4024 (struct tui_locator_window): New.
4025 (tui_locator_win_info_ptr): Change return type.
4026 * tui/tui-data.c (_locator): Change type.
4027 (tui_locator_win_info_ptr): Change return type.
4028 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4029 (tui_alloc_content): Add assert.
4030
489e9d8b
TT
40312019-06-25 Tom Tromey <tom@tromey.com>
4032
4033 * tui/tui-winsource.c
4034 (tui_exec_info_window::maybe_allocate_content): New method.
4035 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4036 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4037 (make_source_or_disasm_window): Add cast.
4038 * tui/tui-data.h (union tui_which_element) <simple_string>:
4039 Remove.
4040 (struct tui_source_info): New.
4041 (struct tui_source_window_base) <execution_info>: Change type.
4042 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4043 case, and add assert.
4044 (tui_alloc_content): Add assert.
4045
c3fabb7d
TT
40462019-06-25 Tom Tromey <tom@tromey.com>
4047
4048 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4049 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4050 * tui/tui-data.c (tui_alloc_win_info): Remove.
4051
bbc228ee
TT
40522019-06-25 Tom Tromey <tom@tromey.com>
4053
4054 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4055 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4056 can_highlight.
4057
5fcee43a
TT
40582019-06-25 Tom Tromey <tom@tromey.com>
4059
4060 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4061 make_visible_with_new_height method.
4062 (tui_win_info::make_visible_with_new_height): New method.
4063 (tui_source_window_base::do_make_visible_with_new_height)
4064 (tui_data_window::do_make_visible_with_new_height)
4065 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4066 (make_visible_with_new_height): Remove.
4067 (tui_resize_all, tui_adjust_win_heights): Use
4068 make_visible_with_new_height method.
4069 * tui/tui-data.h (struct tui_win_info)
4070 <do_make_visible_with_new_height, make_visible_with_new_height>:
4071 New methods.
4072 (struct tui_source_window_base, struct tui_data_window)
4073 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4074 methods.
4075
d83f1fe6
TT
40762019-06-25 Tom Tromey <tom@tromey.com>
4077
4078 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4079 method.
4080 (update_tab_width): Call update_tab_width method.
4081 * tui/tui-data.h (struct tui_win_info)
4082 (struct tui_source_window_base) <update_tab_width>: New methods.
4083
17374de4
TT
40842019-06-25 Tom Tromey <tom@tromey.com>
4085
4086 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4087 parameter.
4088 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4089 parameter.
4090 (tui_gen_win_info::make_visible): Update.
4091 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4092 parameter.
4093 * tui/tui-data.h (enum tui_box): New enum.
4094 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4095
f936bca2
TT
40962019-06-25 Tom Tromey <tom@tromey.com>
4097
4098 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4099 init_and_make_win for EXEC_INFO_WIN.
4100 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4101 longer inline.
4102 (struct tui_win_info) <~tui_win_info>: Inline.
4103 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4104 Don't declare.
4105 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4106 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4107 Remove.
4108 (tui_initialize_static_data): Update.
4109 (~tui_gen_win_info): Handle more cleanup here.
4110 (~tui_source_window_base): Delete "execution_info".
4111 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4112
d6ba6a11
TT
41132019-06-25 Tom Tromey <tom@tromey.com>
4114
4115 * tui/tui-layout.c (make_command_window): Don't set
4116 can_highlight.
4117 (show_source_disasm_command): Call the reset method.
4118 (show_data): Don't set can_highlight. Call the reset method.
4119 (tui_gen_win_info::reset): Rename from init_gen_win_info
4120 (init_and_make_win): Simplify. Return tui_gen_win_info.
4121 (show_source_or_disasm_and_command): Call the reset method.
4122 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4123 (struct tui_cmd_window): Set can_highlight.
4124
48a3bd16
TT
41252019-06-25 Tom Tromey <tom@tromey.com>
4126
4127 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4128 from make_visible.
4129 (tui_make_visible, tui_make_invisible): Rewrite.
4130 (tui_win_info::make_visible): Remove.
4131 (tui_source_window_base::make_visible): Update.
4132 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4133 method. Moved from...
4134 (struct tui_win_info) <make_visible>: ...here.
4135
c3bd716f
TT
41362019-06-25 Tom Tromey <tom@tromey.com>
4137
4138 * tui/tui-winsource.c
4139 (tui_source_window_base::do_scroll_horizontal): Remove direction
4140 parameter.
4141 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4142 direction parameter.
4143 * tui/tui-win.c (tui_win_info::forward_scroll)
4144 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4145 (tui_win_info::right_scroll): Update.
4146 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4147 direction parameter.
4148 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4149 direction parameter.
4150 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4151 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4152 Remove direction parameter.
4153 (struct tui_source_window_base, struct tui_source_window)
4154 (struct tui_disasm_window, struct tui_data_window)
4155 (struct tui_cmd_window): Update.
4156
21c32dca
TT
41572019-06-25 Tom Tromey <tom@tromey.com>
4158
4159 * tui/tui-winsource.h (tui_set_exec_info_content)
4160 (tui_show_exec_info_content, tui_erase_exec_info_content)
4161 (tui_clear_exec_info_content, tui_update_exec_info): Change
4162 argument to tui_source_window_base.
4163 * tui/tui-winsource.c (tui_set_exec_info_content)
4164 (tui_show_exec_info_content, tui_erase_exec_info_content)
4165 (tui_clear_exec_info_content, tui_update_exec_info): Change
4166 argument to tui_source_window_base.
4167
73fbdc65
TT
41682019-06-25 Tom Tromey <tom@tromey.com>
4169
4170 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4171 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4172
33325343
TT
41732019-06-25 Tom Tromey <tom@tromey.com>
4174
4175 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4176 check.
4177
29d2c474
TT
41782019-06-25 Tom Tromey <tom@tromey.com>
4179
4180 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4181 type to void.
4182 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4183 type to void.
4184 * tui/tui-source.c (tui_set_source_content): Update.
4185 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4186
152f3f4b
TT
41872019-06-25 Tom Tromey <tom@tromey.com>
4188
4189 * tui/tui-win.c (window_name_completer, tui_set_focus)
4190 (tui_all_windows_info): Use name method.
4191 * tui/tui-data.h (struct tui_gen_win_info)
4192 (struct tui_source_window, struct tui_disasm_window)
4193 (struct tui_data_window, struct tui_cmd_window) <name>: New
4194 method.
4195 (tui_win_name): Don't declare.
4196 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4197 (tui_win_name): Remove.
4198
be4da588
TT
41992019-06-25 Tom Tromey <tom@tromey.com>
4200
4201 * tui/tui-winsource.h (tui_update_source_window)
4202 (tui_update_source_window_as_is): Change parameter type.
4203 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4204 to be a tui_source_window_base.
4205 (tui_update_source_window_as_is): Likewise.
4206 * tui/tui-win.c (make_visible_with_new_height): Update.
4207
5b81daba
TT
42082019-06-25 Tom Tromey <tom@tromey.com>
4209
4210 * tui/tui-winsource.c (tui_erase_source_content)
4211 (tui_show_source_content, tui_show_exec_info_content)
4212 (tui_erase_exec_info_content): Use refresh_window method.
4213 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4214 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4215 from tui_refresh_win.
4216 (tui_data_window::refresh_window): New method.
4217 (tui_win_info::refresh, tui_source_window_base::refresh)
4218 (tui_refresh_all): Use refresh_window method.
4219 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4220 method.
4221 * tui/tui-regs.c (tui_display_register): Call refresh_window
4222 method.
4223 * tui/tui-layout.c (show_source_disasm_command)
4224 (show_source_or_disasm_and_command): Call refresh_window method.
4225 * tui/tui-data.h (struct tui_gen_win_info)
4226 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4227 New method.
4228
cb2ce893
TT
42292019-06-25 Tom Tromey <tom@tromey.com>
4230
4231 * tui/tui.c (tui_rl_other_window, tui_enable)
4232 (tui_is_window_visible, tui_get_command_dimension): Update.
4233 * tui/tui-winsource.c (tui_update_source_window_as_is)
4234 (tui_clear_source_content, tui_erase_source_content)
4235 (tui_show_source_line, tui_source_window_base::refill)
4236 (tui_source_window_base::do_scroll_horizontal)
4237 (tui_source_window_base::set_is_exec_point_at)
4238 (tui_update_breakpoint_info, tui_set_exec_info_content)
4239 (tui_alloc_source_buffer, tui_line_is_displayed)
4240 (tui_addr_is_displayed): Update.
4241 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4242 (tui_check_and_display_highlight_if_needed)
4243 (tui_win_info::make_visible, tui_win_info::refresh)
4244 (tui_refresh_all): Update.
4245 * tui/tui-windata.c (tui_first_data_item_displayed)
4246 (tui_delete_data_content_windows, tui_erase_data_content)
4247 (tui_display_all_data, tui_data_window::refresh_all)
4248 (tui_check_data_values): Update.
4249 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4250 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4251 (tui_win_info::backward_scroll, tui_refresh_all_win)
4252 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4253 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4254 (tui_source_window_base::set_new_height)
4255 (tui_data_window::set_new_height)
4256 (make_invisible_and_set_new_height)
4257 (make_visible_with_new_height, new_height_ok)
4258 (parse_scrolling_args): Update.
4259 * tui/tui-stack.c (tui_show_frame_info): Update.
4260 * tui/tui-source.c (tui_set_source_content)
4261 (tui_set_source_content_nil, tui_source_is_displayed)
4262 (tui_source_window::do_scroll_vertical): Update.
4263 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4264 (tui_display_registers_from, tui_display_reg_element_at_line)
4265 (tui_check_register_values, tui_reg_command): Update.
4266 * tui/tui-layout.c (tui_default_win_height)
4267 (show_source_disasm_command, show_data, init_and_make_win)
4268 (show_source_or_disasm_and_command): Update.
4269 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4270 (tui_redisplay_readline, tui_mld_flush)
4271 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4272 (tui_getc): Update.
4273 * tui/tui-disasm.c (tui_set_disassem_content)
4274 (tui_disasm_window::do_scroll_vertical): Update.
4275 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4276 Now virtual.
4277 (struct tui_win_info): Derive from tui_gen_win_info.
4278 <~tui_win_info>: Mark as override.
4279 <generic>: Remove member.
4280 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4281 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4282 (~tui_data_window, ~tui_win_info)
4283 (tui_free_all_source_wins_content): Update.
4284 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4285
ab313b35
TT
42862019-06-25 Tom Tromey <tom@tromey.com>
4287
4288 * tui/tui-layout.c (init_and_make_win): Use new.
4289 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4290 destructor, initializers.
4291 (tui_alloc_generic_win_info): Don't declare.
4292 * tui/tui-data.c (_locator): Add argument to constructor.
4293 (source_win, disasm_win): New globals.
4294 (exec_info): Remove.
4295 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4296 Update.
4297 (tui_alloc_generic_win_info): Remove.
4298 (init_content_element): Use new.
4299 (tui_win_info::tui_win_info): Update.
4300 (free_content_elements) <case DATA_WIN>: Use delete.
4301
dc2c33e4
TT
43022019-06-25 Tom Tromey <tom@tromey.com>
4303
4304 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4305 * tui/tui-windata.c (tui_first_data_item_displayed)
4306 (tui_delete_data_content_windows): Update.
4307 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4308 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4309 (tui_display_registers_from, tui_check_register_values): Update.
4310 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4311 pointer.
4312 * tui/tui-data.c (init_content_element): Update. Allocate the new
4313 window.
4314 (tui_free_data_content): Update.
4315 (free_content_elements) <case DATA_WIN>: Free the window.
4316
214a5cbe
TT
43172019-06-25 Tom Tromey <tom@tromey.com>
4318
4319 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4320 Update.
4321 * tui/tui-layout.c (make_command_window)
4322 (show_source_disasm_command, show_data, init_and_make_win)
4323 (show_source_or_disasm_and_command): Update.
4324 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4325 method.
4326 <can_highight, is_highlighted>: Now bool.
4327 (tui_set_win_highlight): Don't declare.
4328 * tui/tui-data.c (tui_set_win_highlight): Remove.
4329
8e2daf15
TT
43302019-06-25 Tom Tromey <tom@tromey.com>
4331
4332 * tui/tui-wingeneral.c (make_visible): Remove check of window
4333 type.
4334
8903bd8a
TT
43352019-06-25 Tom Tromey <tom@tromey.com>
4336
4337 * tui/tui-win.c (tui_win_info::max_height)
4338 (tui_cmd_window::max_height): New methods.
4339 (new_height_ok): Call max_height.
4340 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4341 <max_height>: New method.
4342
3f02ce1e
TT
43432019-06-25 Tom Tromey <tom@tromey.com>
4344
4345 * tui/tui-win.c (tui_source_window_base::set_new_height)
4346 (tui_data_window::set_new_height): New methods.
4347 (make_invisible_and_set_new_height): Call set_new_height method.
4348 * tui/tui-data.h (struct tui_win_info)
4349 (struct tui_source_window_base, struct tui_data_window)
4350 <set_new_height>: New method.
4351
1825f487
TT
43522019-06-25 Tom Tromey <tom@tromey.com>
4353
4354 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4355 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4356 tui_refresh_data_win.
4357 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4358 method.
4359 (tui_refresh_all_win): Call the refresh_all method.
4360 (tui_set_focus): Likewise.
4361 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4362 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4363 Likewise.
4364
ad54d15b
TT
43652019-06-25 Tom Tromey <tom@tromey.com>
4366
4367 * tui/tui-winsource.h (tui_refill_source_window)
4368 (tui_set_is_exec_point_at): Don't declare.
4369 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4370 (tui_source_window_base::refill): Rename from
4371 tui_refill_source_window.
4372 (tui_source_window_base::do_scroll_horizontal): Update.
4373 (tui_source_window_base::set_is_exec_point_at): Rename from
4374 tui_set_is_exec_point_at.
4375 (tui_update_all_breakpoint_info): Update.
4376 * tui/tui-stack.c (tui_show_frame_info): Update.
4377 * tui/tui-layout.c (show_data): Add cast.
4378 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4379 * tui/tui-data.h (struct tui_source_window_base) <refill,
4380 set_is_exec_point_at>: New methods.
4381 (tui_source_windows, tui_add_to_source_windows): Update types.
4382 (tui_add_to_source_windows): Remove redundant declaration.
4383 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4384 (tui_source_windows): Change return type.
4385 (tui_clear_source_windows_detail): Update.
4386 (tui_add_to_source_windows): Change type of parameter.
4387 (tui_free_all_source_wins_content): Update.
4388
2042b506
TT
43892019-06-25 Tom Tromey <tom@tromey.com>
4390
4391 * tui/tui-wingeneral.c (tui_win_info::refresh)
4392 (tui_source_window_base::refresh): New methods.
4393 (tui_refresh_all): Call the refresh method.
4394 * tui/tui-data.h (struct tui_win_info)
4395 (struct tui_source_window_base) <refresh>: New method.
4396
56122977
TT
43972019-06-25 Tom Tromey <tom@tromey.com>
4398
4399 * tui/tui.h (tui_is_window_visible): Return bool.
4400 * tui/tui.c (tui_is_window_visible): Return bool.
4401 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4402 (tui_make_visible, tui_make_invisible)
4403 (tui_win_info::make_visible)
4404 (tui_source_window_base::make_visible, make_all_visible)
4405 (tui_make_all_visible, tui_make_all_invisible): Update.
4406 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4407 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4408 bool.
4409 (struct tui_win_info, struct tui_source_window_base)
4410 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4411 * tui/tui-data.c (tui_init_generic_part): Update.
4412
cda37efb
TT
44132019-06-25 Tom Tromey <tom@tromey.com>
4414
4415 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4416 (tui_source_window_base::make_visible): New methods.
4417 (make_all_visible): Make method call.
4418 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4419 (struct tui_source_window_base, struct tui_cmd_window): Override
4420 make_visible.
4421 (tui_win_is_source_type): Don't declare.
4422 * tui/tui-data.c (tui_win_is_source_type): Remove.
4423
6a0ee02c
TT
44242019-06-25 Tom Tromey <tom@tromey.com>
4425
4426 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4427 NULL check.
4428
63901aec
TT
44292019-06-25 Tom Tromey <tom@tromey.com>
4430
4431 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4432 Inline constructor. Add initializers for members.
4433 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4434 constructors; now inline in class.
4435
ceb13a13
TT
44362019-06-25 Tom Tromey <tom@tromey.com>
4437
4438 * tui/tui-regs.c (tui_show_registers): Update.
4439 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4440 bool.
4441 * tui/tui-data.c (tui_data_window::clear_detail)
4442 (tui_data_window): Update.
4443
238eb706
TT
44442019-06-25 Tom Tromey <tom@tromey.com>
4445
4446 * tui/tui-windata.c (tui_display_all_data)
4447 (tui_display_data_from_line, tui_display_data_from)
4448 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4449 Update.
4450 * tui/tui-regs.c (tui_last_regs_line_no)
4451 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4452 (tui_show_registers, tui_show_register_group)
4453 (tui_display_registers_from, tui_display_reg_element_at_line)
4454 (tui_display_registers_from_line, tui_check_register_values)
4455 (tui_reg_next, tui_reg_prev): Update.
4456 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4457 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4458 tui_data_window.
4459 (struct tui_win_info) <detail>: Remove. Add new fields from
4460 tui_data_info.
4461 (TUI_DATA_WIN): Add cast.
4462 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4463 (~tui_data_window): Simplify.
4464
81491aa0
TT
44652019-06-25 Tom Tromey <tom@tromey.com>
4466
4467 * tui/tui-layout.c (show_source_disasm_command)
4468 (show_source_or_disasm_and_command): Update.
4469 * tui/tui-io.c (update_cmdwin_start_line)
4470 (tui_redisplay_readline): Update.
4471 * tui/tui-data.h (struct tui_command_info): Remove.
4472 (struct tui_win_info) <detail>: Remove command_info member.
4473 (struct tui_data_window) <start_line>: New member, from
4474 tui_command_info.
4475 (TUI_CMD_WIN): Add casts.
4476
e6e41501
TT
44772019-06-25 Tom Tromey <tom@tromey.com>
4478
4479 * tui/tui-winsource.c (tui_update_source_window)
4480 (tui_refill_source_window)
4481 (tui_source_window_base::do_scroll_horizontal)
4482 (tui_update_breakpoint_info, tui_set_exec_info_content)
4483 (tui_show_exec_info_content, tui_erase_exec_info_content)
4484 (tui_clear_exec_info_content): Update.
4485 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4486 Update.
4487 * tui/tui-win.c (make_invisible_and_set_new_height)
4488 (make_visible_with_new_height): Update.
4489 * tui/tui-source.c (tui_set_source_content)
4490 (tui_show_symtab_source): Update.
4491 * tui/tui-layout.c (extract_display_start_addr)
4492 (show_source_disasm_command, show_data)
4493 (make_source_or_disasm_window)
4494 (show_source_or_disasm_and_command): Update.
4495 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4496 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4497 "gdbarch".
4498 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4499 to tui_source_window_base.
4500 (struct tui_win_info) <detail>: Remove source_info member.
4501 (struct tui_source_window_base) <has_locator>: Inline.
4502 Move contents from tui_source_info; rename has_locator member to
4503 m_has_locator.
4504 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4505 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4506 header file.
4507 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4508 Simplify.
4509 (tui_free_all_source_wins_content): Cast to
4510 tui_source_window_base.
4511
44f0e208
TT
45122019-06-25 Tom Tromey <tom@tromey.com>
4513
4514 * tui/tui-win.c (make_invisible_and_set_new_height)
4515 (make_visible_with_new_height): Call has_locator method.
4516 * tui/tui-layout.c (show_source_disasm_command, show_data)
4517 (show_source_or_disasm_and_command): Update for bool change.
4518 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4519 (tui_win_info) <has_locator>: New method.
4520 (struct tui_source_window_base) <has_locator>: New method.
4521 (tui_win_has_locator): Don't declare.
4522 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4523 from tui_win_has_locator.
4524 (tui_source_window_base): Use false, not FALSE.
4525
7778b912
TT
45262019-06-25 Tom Tromey <tom@tromey.com>
4527
4528 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4529 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4530 clear_detail method directly.
4531 (tui_clear_win_detail): Remove.
4532
f83d391c
TT
45332019-06-25 Tom Tromey <tom@tromey.com>
4534
4535 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4536 "this", not TUI_DISASM_WIN.
4537
13446e05
TT
45382019-06-25 Tom Tromey <tom@tromey.com>
4539
4540 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4541 declare.
4542 * tui/tui-winsource.c
4543 (tui_source_window_base::do_scroll_horizontal): Rename from
4544 tui_horizontal_source_scroll.
4545 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4546 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4547 from tui_vertical_data_scroll.
4548 * tui/tui-win.h (tui_scroll): Don't declare.
4549 * tui/tui-win.c (tui_win_info::forward_scroll)
4550 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4551 (tui_win_info::right_scroll): Rename and update.
4552 (tui_scroll_forward_command, tui_scroll_backward_command)
4553 (tui_scroll_left_command, tui_scroll_right_command): Update.
4554 (tui_scroll): Remove.
4555 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4556 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4557 from tui_vertical_source_scroll.
4558 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4559 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4560 from tui_vertical_disassem_scroll.
4561 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4562 do_scroll_horizontal>: New methods.
4563 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4564 Likewise.
4565 (struct tui_source_window_base): Add do_scroll_horizontal.
4566 (struct tui_source_window, struct tui_disasm_window): Add
4567 do_scroll_vertical.
4568 (struct tui_data_window, struct tui_cmd_window): Add
4569 do_scroll_horizontal and do_scroll_vertical.
4570 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4571
5cf82909
TT
45722019-06-25 Tom Tromey <tom@tromey.com>
4573
4574 * tui/tui-data.h (struct tui_source_window_base): New struct.
4575 (struct tui_source_window): Derive from tui_source_window_base.
4576 (struct tui_disasm_window): New struct.
4577 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4578 from tui_source_window::clear_detail.
4579 (tui_source_window_base): Rename from tui_source_window.
4580 (~tui_source_window_base): Rename from ~tui_source_window.
4581 (tui_alloc_win_info): Create a tui_disasm_window.
4582
ee1d42d6
TT
45832019-06-25 Tom Tromey <tom@tromey.com>
4584
4585 * tui/tui-data.h (struct tui_source_window)
4586 (struct tui_data_window): Declare destructors.
4587 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4588 destructors.
4589 (tui_win_info): Simplify.
4590
b4eb2452
TT
45912019-06-25 Tom Tromey <tom@tromey.com>
4592
4593 * tui/tui-winsource.c (tui_display_main)
4594 (tui_update_source_windows_with_addr)
4595 (tui_update_all_breakpoint_info): Update.
4596 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4597 (new_height_ok, parse_scrolling_args): Update.
4598 * tui/tui-stack.c (tui_show_frame_info): Update.
4599 * tui/tui-data.h (struct tui_list): Remove.
4600 (tui_source_windows): Return a reference to a std::vector.
4601 * tui/tui-data.c (source_windows): Now a std::vector.
4602 (tui_source_windows): Change return type.
4603 (tui_clear_source_windows): Rewrite.
4604 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4605 (tui_free_all_source_wins_content): Rewrite.
4606
8761a91b
TT
46072019-06-25 Tom Tromey <tom@tromey.com>
4608
4609 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4610 (struct tui_data_window, struct tui_cmd_window): Declare
4611 clear_detail method.
4612 * tui/tui-data.c (tui_source_window::clear_detail)
4613 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4614 methods.
4615 (tui_clear_win_detail): Simplify.
4616
0ed69eda
TT
46172019-06-25 Tom Tromey <tom@tromey.com>
4618
4619 * tui/tui-layout.c (make_source_window, make_disasm_window)
4620 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4621 Return the new window.
4622 (show_source_disasm_command, show_data)
4623 (show_source_or_disasm_and_command): Update.
4624
82432e10
TT
46252019-06-25 Tom Tromey <tom@tromey.com>
4626
4627 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4628 parameter. Return the new window.
4629 (show_source_disasm_command): Update and remove NULL check.
4630 (show_source_or_disasm_and_command): Update.
4631
ec328aa5
TT
46322019-06-25 Tom Tromey <tom@tromey.com>
4633
4634 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4635
33b906ab
TT
46362019-06-25 Tom Tromey <tom@tromey.com>
4637
4638 * tui/tui-data.h (struct tui_win_info): Make constructor
4639 protected. Make destructor virtual. Add initializers.
4640 (tui_source_window, tui_data_window, tui_cmd_window): New
4641 classes.
4642 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4643 constructor. Add "type" parameter.
4644 (tui_source_window, tui_data_window, tui_cmd_window): New
4645 constructors.
4646 (tui_alloc_win_info): Instantiate the appropriate subclass.
4647
e7e11af4
TT
46482019-06-25 Tom Tromey <tom@tromey.com>
4649
4650 * tui/tui-win.c (tui_resize_all): Use delete.
4651 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4652 destructor.
4653 (tui_free_window): Don't declare.
4654 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4655 Update.
4656
6792b55e
TT
46572019-06-25 Tom Tromey <tom@tromey.com>
4658
4659 * tui/tui-data.h (struct tui_win_info): Add constructor.
4660 * tui/tui-data.c (tui_alloc_win_info): Use new.
4661 (tui_free_window): Use delete.
4662
f95675e1
TT
46632019-06-22 Tom Tromey <tom@tromey.com>
4664
4665 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4666 declare.
4667 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4668
5bff081c
TT
46692019-06-22 Tom Tromey <tom@tromey.com>
4670
4671 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4672 declare.
4673 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4674
47e3f474
TV
46752019-06-22 Tom de Vries <tdevries@suse.de>
4676
4677 * dwarf2read.c (create_addrmap_from_aranges)
4678 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4679 instead of '%zu'.
4680
fd5866f6
SM
46812019-06-21 Simon Marchi <simon.marchi@efficios.com>
4682
4683 * dwarf2read.h (dwarf2_section_info_def): Remove.
4684 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4685 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4686 std::vector<dwarf2_section_info>.
4687 (struct dwo_file) <~dwo_file>: Remove.
4688 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4689 types field.
4690 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4691 (dwarf2_read_debug_names): Likewise.
4692 (create_debug_types_hash_table): Change parameter type to
4693 array_view, adjust code accordingly.
4694 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4695 (partial_die_info::fixup): Likewise.
4696 (determine_prefix): Likewise.
4697 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4698
fb1eb2f9
SM
46992019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4700
4701 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4702 gdb_bfd_ref_ptr.
4703 <~dwo_file>: Remove call to gdb_bfd_unref.
4704 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4705 gdb_bfd_ref_ptr::get.
4706
51ac9db5
SM
47072019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4708
4709 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4710 type to htab_up.
4711 * dwarf2read.c (struct dwo_file): Initialize fields.
4712 <~dwo_file>: New.
4713 (free_dwo_file): Remove, move content to ~dwo_file.
4714 (struct dwo_file_deleter): Remove.
4715 (dwo_file_up>: Remove custom deleter.
4716 (free_dwo_files): Remove.
4717 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4718 dwo_files.
4719 (process_skeletonless_type_units): Call unique_ptr::get.
4720 (allocate_dwo_file_hash_table): Add deleter to created hash
4721 table. Change return type to htab_up.
4722 (lookup_dwo_file_slot): Don't memset dwo_file, call
4723 unique_ptr::get.
4724 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4725 (create_dwo_unit_in_dwp_v2): Likewise.
4726 (open_and_init_dwo_file): Likewise.
4727 (free_dwo_file_from_slot): Remove.
4728
dc4ccb6f
SM
47292019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4730
4731 * dwarf2read.h (struct dwarf2_section_info) <readin,
4732 is_virtual>: Change type to bool.
4733 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4734 true instead of 1.
4735
e6a1c5cb
TT
47362019-06-19 Tom Tromey <tom@tromey.com>
4737
4738 * tui/tui-data.h (tui_init_content_element): Don't declare.
4739
6f6ffbeb
TT
47402019-06-19 Tom Tromey <tom@tromey.com>
4741
4742 * tui/tui-data.h (tui_init_win_info): Don't declare.
4743
f23f598e
TV
47442019-06-19 Tom de Vries <tdevries@suse.de>
4745
4746 * dwarf2read.h (abstract_to_concrete): Change type to
4747 std::unordered_map<sect_offset, std::vector<sect_offset>,
4748 gdb::hash_enum<sect_offset>>.
4749
680e1bee
TT
47502019-06-19 Tom Tromey <tromey@adacore.com>
4751
4752 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4753 EVAL_AVOID_SIDE_EFFECTS specially.
4754
dcf37923
TT
47552019-06-19 Tom Tromey <tromey@adacore.com>
4756
4757 * source-cache.c (highlighter): New global.
4758 (source_cache::get_source_lines): Create a highlighter on demand.
4759
494986d5
AB
47602019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4761
4762 * defs.h (deprecated_interactive_hook): Delete declaration.
4763 * interps.c (clear_interpreter_hooks): Remove use of
4764 deprecated_interactive_hook.
4765 * top.c (deprecated_interactive_hook): Delete definition.
4766 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4767
3360b6e7
TV
47682019-06-18 Tom de Vries <tdevries@suse.de>
4769
4770 PR gdb/24515
4771 * dwarf2read.h (abstract_to_concrete): Change type from
4772 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4773 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4774 * dwarf2read.c (read_variable): Update.
4775 (dwarf2_fetch_die_loc_sect_off): Update.
4776
310b3441
TV
47772019-06-17 Tom de Vries <tdevries@suse.de>
4778
4779 PR gdb/24617
4780 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4781 accessing parent[parent_len - 1].
4782
ba9777be
PP
47832019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4784
4785 PR gdb/24364
4786 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4787 call dtrace_process_dof with NULL dof.
4788
2b9f6e89
TV
47892019-06-16 Tom de Vries <tdevries@suse.de>
4790
4791 PR gdb/24445
4792 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4793
431b3ead
TT
47942019-06-16 Tom Tromey <tom@tromey.com>
4795
4796 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4797 (make_all_visible): Use address of member.
4798
d04b44a1
TT
47992019-06-16 Tom Tromey <tom@tromey.com>
4800
4801 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4802 (tui_free_window, free_content, free_content_elements): Remove
4803 unnecessary cast.
4804 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4805 cast.
4806 * tui/tui-regs.c (tui_show_register_group)
4807 (tui_display_registers_from, tui_display_reg_element_at_line):
4808 Remove unnecessary cast.
4809
bf5142e7
AB
48102019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4811
4812 * linux-nat.c (normal_mask): Delete.
4813 (_initialize_linux_nat): Don't initialise normal_mask.
4814
c4973306
SM
48152019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4816
4817 PR gdb/24445
4818 * dwarf-index-write.h (write_psymtabs_to_index): Add
4819 dwz_basename parameter.
4820 * dwarf-index-write.c (write_gdbindex): Move file writing to
4821 write_gdbindex_1. Change return type void.
4822 (assert_file_size): Move up, remove filename parameter.
4823 (write_gdbindex_1): New function.
4824 (write_debug_names): Change return type to void, call
4825 assert_file_size.
4826 (struct index_wip_file): New struct.
4827 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4828 file logic to index_wip_file. Write index for dwz file if
4829 needed.
4830 (save_gdb_index_command): Pass basename of dwz file, if present.
4831 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4832 build-id of dwz file, if present.
4833 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4834 (dwarf2_get_dwz_file): Likewise.
4835 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4836 (dwarf2_get_dwz_file): Likewise.
4837
395f9c91
TT
48382019-06-16 Tom Tromey <tom@tromey.com>
4839
4840 * coffread.c (process_coff_symbol): Use xstrdup.
4841 * value.c (create_internalvar): Use xstrdup.
4842
cafb3438
TT
48432019-06-16 Tom Tromey <tom@tromey.com>
4844
4845 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4846 * breakpoint.c (stopin_command, stopat_command)
4847 (until_break_command, decode_location_default): Remove unnecessary
4848 cast.
4849 * utils.c (subset_compare): Remove unnecessary cast.
4850 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4851 cast.
4852 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4853 cast.
4854 * infcmd.c (path_command): Remove unnecessary cast.
4855 * coffread.c (decode_type): Remove unnecessary cast.
4856 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4857 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4858 * tui/tui-stack.c (tui_show_locator_content)
4859 (tui_show_frame_info): Remove unnecessary cast.
4860 * tui/tui-win.c (tui_scroll_forward_command)
4861 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4862 (parse_scrolling_args): Remove unnecessary cast.
4863 * tui/tui-data.c (init_win_info, tui_del_window)
4864 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4865 (free_content_elements): Remove unnecessary cast.
4866 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4867 unnecessary cast.
4868 * tui/tui-source.c (tui_set_source_content)
4869 (tui_vertical_source_scroll): Remove unnecessary cast.
4870 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4871 cast.
4872 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4873 * tui/tui-regs.c (tui_display_registers_from)
4874 (tui_display_register): Remove unnecessary cast.
4875 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4876 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4877 (make_visible): Remove unnecessary cast.
4878 * tui/tui-winsource.c (tui_erase_source_content)
4879 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4880 unnecessary cast.
4881 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4882 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4883 * stabsread.c (read_type, read_array_type, read_range_type):
4884 Remove unnecessary cast.
4885 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4886 (parse_symbol, parse_type, upgrade_type, parse_external)
4887 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4888 unnecessary cast.
4889 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4890
730ead81
TT
48912019-06-16 Tom Tromey <tom@tromey.com>
4892
4893 * tui/tui-data.c (tui_alloc_generic_win_info)
4894 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4895 checks.
4896
584a927c
AB
48972019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4898 Andrew Burgess <andrew.burgess@embecosm.com>
4899
4900 * f-typeprint.c (f_print_type): Don't return early for not
4901 associated or not allocated types.
4902 (f_type_print_varspec_suffix): Add print_rank parameter and print
4903 ranks of array types in case they dangling.
4904 (f_type_print_base): Add print_rank parameter.
4905
30056ea0
AB
49062019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4907
4908 * NEWS: Mention new MI commands.
4909 * break-catch-throw.c (enum exception_event_kind): Move to
4910 breakpoint.h.
4911 (print_mention_exception_catchpoint): Output text as a single
4912 message.
4913 (catch_exception_command_1): Rename to...
4914 (catch_exception_event): ...this, make non-static, update header
4915 command, and change some parameter types.
4916 (catch_catch_command): Update for changes to
4917 catch_exception_command_1.
4918 (catch_throw_command): Likewise.
4919 (catch_rethrow_command): Likewise.
4920 * breakpoint.c (enum exception_event_kind): Delete.
4921 * breakpoint.h (enum exception_event_kind): Moved here from
4922 break-catch-throw.c.
4923 (catch_exception_event): Declare.
4924 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4925 (mi_cmd_catch_throw): New function.
4926 (mi_cmd_catch_rethrow): New function.
4927 (mi_cmd_catch_catch): New function.
4928 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4929 'catch-catch' entries.
4930 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4931 (mi_cmd_catch_rethrow): Declare.
4932 (mi_cmd_catch_catch): Declare.
4933
ec8e2b6d
AB
49342019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4935
4936 * annotate.c (annotate_source_line): Change return type to void,
4937 update implementation to match.
4938 * annotate.h (annotate_source_line): Change return type to void,
4939 update header comment.
4940 * stack.c (print_frame_info): Don't change what frame information
4941 is printed based on whether annotations are on or not.
4942
0d3abd8c
AB
49432019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4944
4945 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4946 (annotate_source): Make static.
4947 (annotate_source_line): Moved from source.c and renamed from
4948 identify_source_line. Update the return type.
4949 * annotate.h (annotate_source): Delete declaration.
4950 (annotate_source_line): Declaration moved from source.h, and
4951 renamed from identify_source_line. Return type updated.
4952 * source.c (identify_source_line): Moved to annotate.c and renamed
4953 to annotate_source_line.
4954 (info_line_command): Remove check of annotation_level.
4955 * source.h (identify_source_line): Move declaration to annotate.h
4956 and rename to annotate_source_line.
4957 * stack.c: Add 'annotate.h' include.
4958 (print_frame_info): Remove check of annotation_level before
4959 calling annotate_source_line.
4960
00df30ae
AB
49612019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4962
4963 * source-cache.c (source_cache::get_plain_source_lines): Use
4964 open_source_file_with_line_charpos instead of just
4965 open_source_file, remove call to find_source_lines.
4966 (source_cache::get_source_lines): Likewise.
4967 * source.c (find_source_lines): Make static.
4968 (get_filename_and_charpos): Renamed into...
4969 (open_source_file_with_line_charpos): ..this along with changes to
4970 return a scoped_fd, and some other minor clean ups.
4971 (identify_source_line): Use open_source_file_with_line_charpos.
4972 (search_command_helper): Use open_source_file_with_line_charpos
4973 instead of just open_source_file, remove call to
4974 find_source_lines.
4975 * source.h (open_source_file_with_line_charpos): Declare new
4976 function.
4977 (find_source_lines): Delete declaration.
4978
afda45a2
AB
49792019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4980
4981 * source.c (get_filename_and_charpos): Remove fullname
4982 parameter.
4983 (identify_source_line): Update call to get_filename_and_charpos.
4984
0735b091
TT
49852019-06-14 Tom Tromey <tromey@adacore.com>
4986
4987 PR gdb/24502:
4988 * ui-style.h (skip_ansi_escape): Update comment.
4989 * ui-file.h (class no_terminal_escape_file): New class.
4990 * ui-file.c (no_terminal_escape_file::write)
4991 (no_terminal_escape_file::puts): New methods.
4992 * cli/cli-logging.c (handle_redirections): Use
4993 no_terminal_escape_file.
4994
52ce35e2
TT
49952019-06-14 Tom Tromey <tromey@adacore.com>
4996
4997 * NEWS: Move convenience variable news above Python news.
4998
73cc7272
TT
49992019-06-14 Tom Tromey <tom@tromey.com>
5000
5001 * gnulib: Move directory to top-level.
5002 * configure.ac: Don't configure gnulib.
5003 * configure: Rebuild.
5004 * common/common-defs.h: Use new path to gnulib.
5005 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5006 (GNULIB_H): Remove.
5007 (INCGNU): Look in new gnulib location.
5008 (HFILES_NO_SRCDIR): Remove gnulib files.
5009 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5010 (generated_files): Remove GNULIB_H.
5011 ($(LIBGNU), all-lib): Remove targets.
5012 (distclean): Don't mention GNULIB_BUILDDIR.
5013 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5014
f5686554
TT
50152019-06-14 Tom Tromey <tromey@adacore.com>
5016
5017 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5018 Warn if symbol file does not provide any symbols.
5019
a0c1ffed
TT
50202019-06-14 Tom Tromey <tromey@adacore.com>
5021
5022 * source.c (find_and_open_source): Respect basenames_may_differ.
5023
7c39e397
AB
50242019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5025
5026 * annotate.c (annotate_breakpoints_invalid): Make use of
5027 scoped_restore_terminal_state.
5028 (annotate_frames_invalid): Likewise.
5029
f411722c
TT
50302019-06-14 Tom Tromey <tromey@adacore.com>
5031
5032 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5033 allow assignment to an internalvar.
5034
4268ec18
TT
50352019-06-14 Tom Tromey <tromey@adacore.com>
5036
5037 * ada-lex.l: Allow "_" in attribute names.
5038
abdb711e
TT
50392019-06-14 Tom Tromey <tromey@adacore.com>
5040
5041 PR gdb/24653:
5042 * regcache.c (registers_changed): Don't call alloca.
5043 * top.c (execute_command): Don't call alloca.
5044
4c048731
PA
50452019-06-13 Pedro Alves <palves@redhat.com>
5046
5047 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5048 'expression'. When parsing an expression, error out if there's
5049 junk after "unlimited".
5050 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5051 (do_set_command): Adjust calls to is_unlimited_literal.
5052
66eb1ed3
PA
50532019-06-13 Pedro Alves <palves@redhat.com>
5054
5055 * compile/compile.c (make_compile_options_def_group): Add braces
5056 around array_view initializer.
5057 * thread.c (make_thread_apply_all_options_def_group)
5058 (make_thread_apply_all_options_def_group): Likewise.
5059
3345721a
PA
50602019-06-13 Pedro Alves <palves@redhat.com>
5061
5062 * NEWS (New commands): Mention "maint test-options
5063 require-delimiter", "maint test-options unknown-is-error", "maint
5064 test-options unknown-is-operand" and "maint show
5065 test-options-completion-result".
5066 (New command options, command completion): New section.
5067 (Completion improvements): New section.
5068 Mention that you can abbreviate "unlimited".
5069
6206060d
PA
50702019-06-13 Pedro Alves <palves@redhat.com>
5071
5072 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5073 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5074 * unittests/cli-utils-selftests.c (test_parse_flags)
5075 (test_parse_flags_qcs): Delete.
5076 (test_cli_utils): Don't call deleted functions.
5077
6665660a
PA
50782019-06-13 Pedro Alves <palves@redhat.com>
5079
5080 * thread.c: Include "cli/cli-option.h".
5081 (tp_array_compar_ascending): Global.
5082 (tp_array_compar): Delete function.
5083 (tp_array_compar_ascending, tp_array_compar_descending): New
5084 functions.
5085 (ascending_option_def, qcs_flag_option_def)
5086 (thr_qcs_flags_option_defs)
5087 (make_thread_apply_all_options_def_group)
5088 (make_thread_apply_options_def_group): New.
5089 (thread_apply_all_command): Use gdb::option::process_options.
5090 (thread_apply_command_completer)
5091 (thread_apply_all_command_completer): New.
5092 (thread_apply_command): Use gdb::option::process_options.
5093 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5094 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5095 to generate help text of "thread apply". Adjust "taas"'s help.
5096 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5097 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5098
f7e13587
PA
50992019-06-13 Pedro Alves <palves@redhat.com>
5100
5101 * thread.c (thread_apply_command): Check for invalid TID with
5102 isdigit instead of !isalpha.
5103
5d707134
PA
51042019-06-13 Pedro Alves <palves@redhat.com>
5105
5106 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5107 (validate_flags_qcs): New.
5108 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5109 (validate_flags_qcs): Declare.
5110 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5111 (make_frame_apply_options_def_group): New.
5112 (frame_apply_command_count): Process options with
5113 gdb::option::process_options.
5114 (frame_apply_completer): New.
5115 (frame_apply_level_completer, frame_apply_all_completer)
5116 (frame_apply_completer): New.
5117 (_initialize_stack): Update help of "frame apply", "frame apply
5118 level", "frame apply all" and "faas" to mention supported options
5119 and install command completers.
5120 * stack.h (frame_apply_all_completer): Declare.
5121 * thread.c: Include "stack.h".
5122 (tfaas_command): Add "--".
5123 (_initialize_thread): Update help "tfaas" to mention supported
5124 options and install command completer.
5125
272d4594
PA
51262019-06-13 Pedro Alves <palves@redhat.com>
5127
5128 * completer.c (complete_nested_command_line): New.
5129 (gdb_completion_word_break_characters_throw): Add assertion.
5130 * completer.h (complete_nested_command_line): Declare.
5131
90a1ef87
PA
51322019-06-13 Pedro Alves <palves@redhat.com>
5133
5134 * stack.c (parse_backtrace_qualifiers): New.
5135 (backtrace_command): Use it.
5136 (backtrace_command_completer): Complete on qualifiers.
5137
d4c16835
PA
51382019-06-13 Pedro Alves <palves@redhat.com>
5139
5140 * frame.c: Include "cli/cli-option.h.
5141 (user_set_backtrace_options): New.
5142 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5143 Delete.
5144 (get_prev_frame): Adjust.
5145 (boolean_option_def, uinteger_option_def)
5146 (set_backtrace_option_defs): New.
5147 (_initialize_frame): Adjust and use
5148 gdb::option::add_setshow_cmds_for_options to install "set
5149 backtrace past-main" and "set backtrace past-entry".
5150 * frame.h: Include "cli/cli-option.h".
5151 (struct frame_print_options): Forward declare.
5152 (print_frame_arguments_all, print_frame_arguments_scalars)
5153 (print_frame_arguments_none): Declare.
5154 (print_entry_values): Delete declaration.
5155 (struct frame_print_options, user_frame_print_options): New.
5156 (struct set_backtrace_options): New.
5157 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5158 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5159 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5160 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5161 (list_args_or_locals): Add frame_print_options parameter.
5162 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5163 * python/py-framefilter.c (enumerate_args): Pass down
5164 USER_FRAME_PRINT_OPTIONS.
5165 * stack.c: Include "cli/cli-option.h".
5166 (print_frame_arguments_all, print_frame_arguments_scalars)
5167 (print_frame_arguments_none): Declare.
5168 (print_raw_frame_arguments, print_entry_values): Delete.
5169 (user_frame_print_options): New.
5170 (boolean_option_def, enum_option_def, frame_print_option_defs):
5171 New.
5172 (struct backtrace_cmd_options): New.
5173 (bt_flag_option_def): New.
5174 (backtrace_command_option_defs): New.
5175 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5176 (print_frame_arg, read_frame_arg, print_frame_args)
5177 (print_frame_info, print_frame): Add frame_print_options parameter
5178 and use it.
5179 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5180 (backtrace_command_1): Add frame_print_options and
5181 backtrace_cmd_options parameters and use them.
5182 (make_backtrace_options_def_group): New.
5183 (backtrace_command): Process command options with
5184 gdb::option::process_options.
5185 (backtrace_command_completer): New.
5186 (_initialize_stack): Extend "backtrace"'s help to mention
5187 supported options. Install completer for "backtrace".
5188 Install some settings commands with add_setshow_cmds_for_options.
5189
2daf894e
PA
51902019-06-13 Pedro Alves <palves@redhat.com>
5191
5192 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5193 and that "set/show print raw frame-arguments" are now deprecated.
5194
5195 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5196 command.
5197 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5198 * stack.c (_initialize_stack): Install "set/show print
5199 raw-frame-arguments", and deprecate "set/show print raw
5200 frame-arguments".
5201 * valprint.c (_initialize_valprint): Deprecate "set/show print
5202 raw".
5203
e6ed716c
PA
52042019-06-13 Pedro Alves <palves@redhat.com>
5205
5206 * compile/compile.c (struct compile_options): New.
5207 (compile_flag_option_def, compile_command_option_defs)
5208 (make_compile_options_def_group): New.
5209 (compile_file_command): Handle options with
5210 gdb::option::process_options.
5211 (compile_file_command_completer): New function.
5212 (compile_code_command): Handle options with
5213 gdb::option::process_options.
5214 (compile_code_command_completer): New function.
5215 (_initialize_compiler): Install completers for "compile code" and
5216 "compile file". Mention available options in "compile code" and
5217 "compile code"'s help.
5218 * completer.c (advance_to_completion_word): New, factored out from
5219 ...
5220 (advance_to_expression_complete_word_point): ... this.
5221 (advance_to_filename_complete_word_point): New.
5222 * completer.h (advance_to_filename_complete_word_point): New
5223 declaration.
5224
7d8062de
PA
52252019-06-13 Pedro Alves <palves@redhat.com>
5226
5227 * compile/compile.c: Include "cli/cli-option.h".
5228 (compile_print_value): Scope data pointer is now a
5229 value_print_options pointer; adjust.
5230 (compile_print_command): Process options. Scope data pointer is
5231 now a value_print_options pointer; adjust.
5232 (_initialize_compile): Update "compile print"'s help to include
5233 supported options. Install a completer for "compile print".
5234 * cp-valprint.c (show_vtblprint, show_objectprint)
5235 (show_static_field_print): Delete.
5236 (_initialize_cp_valprint): Don't install "set print
5237 static-members", "set print vtbl", "set print object" here.
5238 * printcmd.c: Include "cli/cli-option.h" and
5239 "common/gdb_optional.h".
5240 (print_command_parse_format): Rework to fill in a
5241 value_print_options instead of a format_data.
5242 (print_value): Change parameter type from format_data pointer to
5243 value_print_options reference. Adjust.
5244 (print_command_1): Process options. Adjust to pass down a
5245 value_print_options.
5246 (print_command_completer): New.
5247 (_initialize_printcmd): Install print_command_completer as
5248 handle_brkchars completer for the "print" command. Update
5249 "print"'s help to include supported options.
5250 * valprint.c: Include "cli/cli-option.h".
5251 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5252 here from cp-valprint.c.
5253 (boolean_option_def, uinteger_option_def)
5254 (value_print_option_defs, make_value_print_options_def_group):
5255 New. Use gdb::option::add_setshow_cmds_for_options to install
5256 "set print elements", "set print null-stop", "set print repeats",
5257 "set print pretty", "set print union", "set print array", "set
5258 print address", "set print symbol", "set print array-indexes".
5259 * valprint.h: Include <string> and "cli/cli-option.h".
5260 (make_value_print_options_def_group): Declare.
5261 (print_value): Change parameter type from format_data pointer to
5262 value_print_options reference.
5263 (print_command_completer): Declare.
5264
9d0faba9
PA
52652019-06-13 Pedro Alves <palves@redhat.com>
5266
5267 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5268 (COMMON_SFILES): Add maint-test-settings.c.
5269 * cli/cli-decode.c (boolean_enums): New global, factored out from
5270 ...
5271 (add_setshow_boolean_cmd): ... here.
5272 * cli/cli-decode.h (boolean_enums): Declare.
5273 * cli/cli-option.c: New file.
5274 * cli/cli-option.h: New file.
5275 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5276 factored out from ...
5277 (parse_cli_boolean_value(const char *)): ... this.
5278 (is_unlimited_literal): Change parameter type to pointer to
5279 pointer. Adjust and advance ARG pointer.
5280 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5281 (parse_cli_var_enum): New, factored out from ...
5282 (do_set_command): ... this. Adjust.
5283 * cli/cli-setshow.h (parse_cli_boolean_value)
5284 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5285 (parse_cli_var_enum): Declare.
5286 * cli/cli-utils.c: Include "cli/cli-option.h".
5287 (get_ulongest): New.
5288 * cli/cli-utils.h (get_ulongest): Declare.
5289 (check_for_argument): New overloads.
5290 * maint-test-options.c: New file.
5291
2c722807
PA
52922019-06-13 Pedro Alves <palves@redhat.com>
5293
5294 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5295 parse a range if "-" is at the end of the string.
5296
dee7b4c8
PA
52972019-06-13 Pedro Alves <palves@redhat.com>
5298
5299 * cli/cli-setshow.c (parse_auto_binary_operation)
5300 (parse_cli_boolean_value): Don't allow "o".
5301
dca0f6c0
PA
53022019-06-13 Pedro Alves <palves@redhat.com>
5303
5304 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5305 * NEWS: Mention maint test-settings KIND.
5306 * maint-test-settings.c: New file.
5307
597bf39d
PA
53082019-06-13 Pedro Alves <palves@redhat.com>
5309
5310 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5311 completer.
5312 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5313 "set" completers.
5314
48c410fb
PA
53152019-06-13 Pedro Alves <palves@redhat.com>
5316
5317 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5318 after item.
5319
93bcb043
PA
53202019-06-13 Pedro Alves <palves@redhat.com>
5321
5322 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5323
cbba3ecd
PA
53242019-06-13 Pedro Alves <palves@redhat.com>
5325
5326 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5327 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5328 call.
5329 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5330 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5331 calls.
5332 (check_for_argument): Skip spaces after argument.
5333
b9a3f842
PA
53342019-06-13 Pedro Alves <palves@redhat.com>
5335
5336 * thread.c (thread_apply_command): Adjust TID parsing.
5337 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5338 detected before end of string.
5339 (tid_is_in_list): Error out if LIST is invalid.
5340
3844e605
PA
53412019-06-13 Pedro Alves <palves@redhat.com>
5342
5343 * completer.c (complete_line_internal_1): Rewind completion word
5344 point.
5345 (completion_tracker::advance_custom_word_point_by): Change
5346 parameter type to int.
5347 * completer.h (completion_tracker::advance_custom_word_point_by):
5348 Likewise.
5349
00b56dbe
PA
53502019-06-13 Pedro Alves <palves@redhat.com>
5351
5352 * completer.c (advance_to_completion_word): Handle delimiters.
5353
d106773e
PA
53542019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5355
5356 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5357
08f10e02
TT
53582019-06-11 Tom Tromey <tom@tromey.com>
5359
5360 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5361 (xmalloc_failed): Move to alloc.c.
5362 * alloc.c: New file.
5363 * Makefile.in (COMMON_SFILES): Add alloc.c.
5364
1c7fe951
TT
53652019-06-11 Tom Tromey <tom@tromey.com>
5366
5367 * nat/linux-waitpid.c: Don't include server.h.
5368 (linux_debug): Remove.
5369 (my_waitpid): Update.
5370
89549d7f
TT
53712019-06-11 Tom Tromey <tromey@adacore.com>
5372
5373 * infcall.c (_initialize_infcall): Remove trailing newline from
5374 help.
5375 * user-regs.c (_initialize_user_regs): Remove trailing newline
5376 from help.
5377 * typeprint.c (_initialize_typeprint): Remove trailing newline
5378 from help.
5379 * reverse.c (_initialize_reverse): Remove trailing newlines from
5380 help.
5381 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5382 from help.
5383 * language.c (add_set_language_command): Remove trailing newline
5384 from help.
5385 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5386 help.
5387 * disasm.c (_initialize_disasm): Remove trailing newline from
5388 help.
5389 * top.c (init_main): Remove trailing newline from help.
5390 * interps.c (_initialize_interpreter): Remove trailing newline
5391 from help.
5392 * btrace.c (_initialize_btrace): Remove trailing newlines from
5393 help.
5394 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5395 from help.
5396 * python/python.c (_initialize_python): Remove trailing newline
5397 from help.
5398 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5399 help.
5400 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5401 from help. Reformat some text.
5402 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5403 from help.
5404 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5405 newline from help.
5406
86108c13
TT
54072019-06-11 Tom Tromey <tromey@adacore.com>
5408
5409 * darwin-nat.c (darwin_decode_exception_message)
5410 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5411
a7067863
AB
54122019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5413
5414 * valops.c (value_slice): Check for not allocated or not
5415 associated values.
5416
9ab08412
TV
54172019-06-10 Tom de Vries <tdevries@suse.de>
5418
5419 PR gdb/24618
5420 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5421 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5422 invalid.
5423
f19e22e9
TV
54242019-06-10 Tom de Vries <tdevries@suse.de>
5425
5426 PR gdb/24611
5427 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5428 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5429
e99f9db0
TV
54302019-06-10 Tom de Vries <tdevries@suse.de>
5431
5432 PR symtab/24545
5433 * symtab.c (struct demangled_name_entry): Add language field.
5434 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5435 static minimal symbol". Set and use language field.
5436
9bf7038b
TT
54372019-06-10 Tom Tromey <tromey@adacore.com>
5438
5439 * ada-lang.c (_initialize_ada_language): Update help text.
5440
422186a9
TT
54412019-06-10 Tom Tromey <tromey@adacore.com>
5442
5443 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5444 with a newline.
5445 * guile/guile.c (handle_boot_error): Don't end warning with a
5446 newline.
5447 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5448 warning with a newline.
5449 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5450 newline.
5451 (s12z_frame_cache): Likewise.
5452 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5453 a newline.
5454 * solib-svr4.c (disable_probes_interface): Don't end warning with
5455 a newline.
5456 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5457 newline.
5458 * python/python.c (do_finish_initialization): Don't end warning
5459 with a newline.
5460
25ce02ee
TT
54612019-06-10 Tom Tromey <tom@tromey.com>
5462
5463 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5464 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5465 gdbpy_enter.
5466
caa429d8
TT
54672019-06-10 Tom Tromey <tromey@adacore.com>
5468
5469 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5470 data.
5471 (elf_new_init): Don't call stabsread_new_init.
5472 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5473 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5474 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5475
81873cc8
TV
54762019-06-10 Tom de Vries <tdevries@suse.de>
5477
5478 PR symtab/16264
5479 PR symtab/24517
5480 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5481
4fa0265e
РИ
54822019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5483
5484 * source.c (find_and_open_source): Also rewrite relative file
5485 names.
5486
1a3da2cd
AB
54872019-04-26 Amos Bird <amosbird@gmail.com>
5488
5489 * annotate.c (annotate_thread_exited): Add "thread-exited"
5490 annotation.
5491
3847a7bf
TT
54922019-06-06 Tom Tromey <tromey@adacore.com>
5493
5494 * maint.h (class scoped_command_stats): Use
5495 DISABLE_COPY_AND_ASSIGN.
5496 <print_time>: New method.
5497 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5498 print_time.
5499 (scoped_command_stats::print_time): New method.
5500
312617a3
AB
55012019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5502
5503 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5504 instructions of lengths 6 or 8 bytes.
5505
b02f78f9
PA
55062019-06-04 Pedro Alves <palves@redhat.com>
5507
5508 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5509
5510 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5511 * breakpoint.c (condition_completer): Likewise.
5512 * cli/cli-dump.c (scan_expression): Likewise.
5513 * common/filestuff.c (mkdir_recursive): Likewise.
5514 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5515 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5516 (gdb_abspath): Likewise.
5517 * compile/compile-cplus-types.c
5518 (compile_cplus_instance::decl_name): Likewise.
5519 * completer.c (complete_explicit_location):
5520 (signal_completer, reg_or_group_completer_1): Likewise.
5521 * cp-support.c (cp_remove_params_if_any): Likewise.
5522 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5523 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5524 * infcmd.c (strip_bg_char): Likewise.
5525 * linespec.c (copy_token_string): Likewise.
5526 * mi/mi-main.c (output_cores): Likewise.
5527 * psymtab.c (psymtab_search_name):
5528 * symfile.c (test_set_ext_lang_command): Likewise.
5529 * target.c (target_fileio_read_stralloc): Likewise.
5530 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5531 * value.c (complete_internalvar): Likewise.
5532
e1f2e1a2
CB
55332019-06-04 Christian Biesinger <cbiesinger@google.com>
5534
5535 Add objfile property to gdb.Type.
d3238f7d
PA
5536 * NEWS: Mention Python API addition.
5537 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 5538
e664d728
PW
55392019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5540
5541 * NEWS: Mention the new set|show style [title|highlight].
5542 Mention changes to "show style", "help" and "apropos".
5543
66d8c862
PW
55442019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5545
5546 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5547 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5548 instead of print_help_for_command.
5549 (print_doc_of_command): New function.
5550 (help_list): Add 'apropos -v word' suggestion.
5551 (print_help_for_command): Style the command name using title style.
5552 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5553 (_initialize_cli_cmds): Describe -v in apropos_command help.
5554
9303eb2f
PW
55552019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5556
5557 * cli/cli-style.h (cli_style_option): Add name in constructor,
5558 add m_name class member, add constructor with intensity,
5559 add name class function.
5560 (cli_style_option::add_setshow_commands): Remove name argument.
5561 (highlight_style, title_style): New styles.
5562 * cli/cli-style.c (do_show): New function that shows a style
5563 characteristic styling the style name with itself.
5564 (set_style_name): New function.
5565 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5566 Update all callers according to the changes in cli/cli-style.h.
5567 * utils.h (fputs_highlighted): New function.
5568 * utils.c (fputs_highlighted): Likewise.
5569
e2c52041
PW
55702019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5571
5572 * NEWS: Mention new pipe command and new convenience variables.
5573
947d3946
PW
55742019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5575
5576 * cli/cli-cmds.c (pipe_command): New function.
5577 (_initialize_cli_cmds): Call add_com for pipe_command.
5578 Define | as an alias for pipe.
5579 (exit_status_set_internal_vars): New function.
5580 (shell_escape): Call exit_status_set_internal_vars.
5581 cli/cli-decode.c (find_command_name_length): Recognize | as
5582 a single character command.
5583
b8fd0918
PW
55842019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5585
5586 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5587 top.c (execute_command_to_ui_file): New function, mostly a copy
5588 of execute_command_to_string.
5589 (execute_command_to_string): Implement by calling
5590 execute_command_to_ui_file.
5591
68bb5386
PW
55922019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5593
5594 * top.h (saved_command_line): Remove declaration.
5595 * top.c (previous_saved_command_line, previous_repeat_arguments):
5596 New variables.
5597 (saved_command_line): Make static, define together with other
5598 'repeat variables'.
5599 (dont_repeat): Clear repeat_arguments.
5600 (repeat_previous, get_saved_command_line, save_command_line):
5601 New functions.
5602 (gdb_init): Initialize saved_command_line
5603 and previous_saved_command_line.
5604 * main.c (captured_main_1): Remove saved_command_line initialization.
5605 * event-top.c (handle_line_of_input): Update to use
5606 the new 'repeat' related functions instead of direct access to
5607 saved_command_line.
5608 * command.h (repeat_previous, get_saved_command_line,
5609 save_command_line): New declarations.
5610 (dont_repeat): Add comment.
5611
bfcdb852
TT
56122019-05-30 Tom Tromey <tromey@adacore.com>
5613
5614 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5615 Fix comment.
5616 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5617
0ef209f2
JV
56182019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5619
5620 PR cli/24587
5621 * completer.c (complete): Initialize variable word.
5622
955b06fa
SDJ
56232019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5624
5625 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5626 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5627 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5628 'body' is NULL to the outter 'if', protecting the '!is_define'
5629 situation as well.
5630
fa9c3fa0
TT
56312019-05-29 Tom Tromey <tromey@adacore.com>
5632
5633 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5634 (dwarf_unknown): New function.
5635 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5636 (dwarf_type_encoding_name): Use dwarf_unknown.
5637
4330d61d
TT
56382019-05-29 Tom Tromey <tromey@adacore.com>
5639
5640 PR c++/20020:
5641 * cp-valprint.c (cp_print_value_fields): Call
5642 cp_print_static_field inside "try".
5643
33a6bc35
TT
56442019-05-29 Tom Tromey <tromey@adacore.com>
5645
5646 * inflow.c (struct terminal_info): Add default operator=.
5647 * configure: Rebuild.
5648 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5649 -Wdeprecated-copy-dtor, -Wredundant-move.
5650
000439d5
TT
56512019-05-29 Tom Tromey <tromey@adacore.com>
5652
5653 * NEWS: Add entry.
5654 * infcmd.c (print_return_value_1): Handle finish_print
5655 option.
5656 (show_print_finish): New function.
5657 (_initialize_infcmd): Add "set/show print finish" commands.
5658 * valprint.c (user_print_options): Initialize new member.
5659 * valprint.h (struct value_print_options) <finish_print>: New
5660 member.
5661
c0e70c62
TT
56622019-05-28 Tom Tromey <tromey@adacore.com>
5663
5664 * ada-lang.c (ada_remove_Xbn_suffix)
5665 (find_old_style_renaming_symbol)
5666 (parse_old_style_renaming): Remove.
5667 (ada_find_renaming_symbol): Don't call
5668 find_old_style_renaming_symbol.
5669 (ada_is_renaming_symbol): Rename from
5670 ada_find_renaming_symbol. Remove "block" parameter. Return
5671 bool. Now static.
5672 (ada_read_var_value): Update and simplify.
5673 * ada-exp.y (write_var_or_type): Remove old code.
5674
766f8836
AH
56752019-05-28 Alan Hayward <alan.hayward@arm.com>
5676
5677 * event-top.c: Remove include comment.
5678 * inflow.c (class scoped_ignore_sigttou): Move from here...
5679 * inflow.h (class scoped_ignore_sigttou): ...to here.
5680 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5681 * top.c: Remove include comment.
5682
eb41253a
TT
56832019-05-27 Tom Tromey <tom@tromey.com>
5684
5685 * NEWS: Fix typo.
5686
4ca51187
TT
56872019-05-22 Tom Tromey <tromey@adacore.com>
5688
5689 * target.c (target_follow_exec): Constify parameter.
5690 * target-delegates.c: Rebuild.
5691 * remote.c (remote_target::follow_exec): Constify parameter.
5692 * infrun.c (follow_exec): Constify parameter.
5693 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5694 (target_follow_exec): Likewise.
5695
8fca4da0
AH
56962019-05-22 Alan Hayward <alan.hayward@arm.com>
5697
5698 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5699 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5700
b7060614
AH
57012019-05-22 Alan Hayward <alan.hayward@arm.com>
5702
5703 * NEWS: Add debugredirect and testsuite sections.
5704
0a5954bd
SC
57052019-05-22 Simon Cook <simon.cook@embecosm.com>
5706
5707 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5708 target descriptions using exclusively floating point register name
5709 aliases.
5710
dc42e902
AB
57112019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5712
5713 PR gdb/18644:
5714 * f-lang.c (build_fortran_types): Handle the case where
5715 gdbarch_floatformat_for_type returns a nullptr.
5716
fb7806c7
TV
57172019-05-21 Tom de Vries <tdevries@suse.de>
5718
5719 PR cli/24587
5720 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5721
34d11c68
AB
57222019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5723
5724 PR gdb/18644:
5725 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5726 16-byte floats.
5727 * i386-tdep.c (i386_floatformat_for_type): Use
5728 floatformats_ia64_quad for the 16-byte floating point component
5729 within a fortran 32-byte complex number.
5730
122cf0f2
AB
57312019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5732
5733 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5734 delete default constructor.
5735 (find_partial_die): Update to return const struct.
5736 (partial_die_parent_scope): Move variable declaration into scope
5737 of its use and change its type to auto.
5738 (guess_partial_die_structure_name): Likewise.
5739 (partial_die_info::fixup): Likewise.
5740
33d0e35a
TT
57412019-05-17 Tom Tromey <tromey@adacore.com>
5742
5743 * source.c (find_and_open_source): Remove cast.
5744
a45575b0
TT
57452019-05-17 Tom Tromey <tromey@adacore.com>
5746
5747 * annotate.c (annotate_source): Make "filename" const.
5748 * annotate.h (annotate_source): Use const.
5749
81f47ac2
AH
57502019-05-17 Alan Hayward <alan.hayward@arm.com>
5751
5752 * disasm.c (set_disassembler_options): Send errors to stderr.
5753
ca1285d1
AH
57542019-05-17 Alan Hayward <alan.hayward@arm.com>
5755
5756 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5757 (cli_interp_base::set_logging): Check debug_redirect.
5758 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5759 * cli/cli-logging.c (debug_redirect): Add static variable.
5760 (pop_output_files): Add default param.
5761 (handle_redirections): Print debug setting.
5762 (show_logging_command): Likewise.
5763 (_initialize_cli_logging): Add debugredirect command.
5764 * interps.c (current_interp_set_logging): Add debug_redirect
5765 parameter.
5766 * interps.h (set_logging): Add debug_redirect parameter.
5767 (current_interp_set_logging): Likewise.
5768 * mi/mi-common.h: Likewise.
5769 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5770
57712019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
5772 Tom Tromey <tromey@adacore.com>
5773
5774 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5775 directly.
5776 * cli/cli-interp.h (make_logging_output): Remove declaration.
5777 * cli/cli-logging.c (make_logging_output): Remove function.
5778 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5779 directly.
5780 * ui-file.c (tee_file::tee_file): Remove bools.
5781 (tee_file::~tee_file): Remove deletes.
5782 * ui-file.h (tee_file): Remove bools.
5783
26648588
JV
57842019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5785
5786 * mi/mi-cmds.h (mi_cmd_complete): New function.
5787 * mi/mi-main.c (mi_cmd_complete): Likewise.
5788 * mi/mi-cmds.c: Define new MI command -complete.
5789 * NEWS: Mention new -complete command.
5790
6e035501
JV
57912019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5792
5793 * completer.h (complete): New function.
5794 * completer.c (complete): Likewise.
5795 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5796 function defined in completer.h.
5797
7d0e2ece
JV
57982019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5799
e79be6e5 5800 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 5801
fb816e8b
TV
58022019-05-17 Tom de Vries <tdevries@suse.de>
5803
5804 PR gdb/24094
5805 * dwarf2read.c (struct cu_partial_die_info): New struct.
5806 (find_partial_die): Return cu_partial_die_info.
5807 (partial_die_parent_scope, guess_partial_die_structure_name)
5808 (partial_die_info::fixup): Handle new return type of find_partial_die.
5809
677052f2
SDJ
58102019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5811
a1726c38 5812 PR breakpoints/24541
677052f2
SDJ
5813 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5814 "std::string", simplifying the algorithm.
5815
f3da9116
SDJ
58162019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5817
5818 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5819 (stap_static_probe_ops::get_probes): Likewise.
5820
f1bb75ab
SDJ
58212019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5822
5823 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5824 '-')" and "else if".
5825 (stap_parse_single_operand): Join checks for
5826 "gdbarch_stap_parse_special_token_p" and
5827 "gdbarch_stap_parse_special_token" in the same "if" statement.
5828 Invert check when verifying for operation on register
5829 displacement.
5830
3ca58cde
SDJ
58312019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5832
5833 * stap-probe.c (stap_get_opcode): Update comment.
5834 (stap_get_expected_argument_type): Likewise.
5835 (handle_stap_probe): Likewise.
5836
af2d9bee
SDJ
58372019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5838
5839 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5840 return type to 'bool'. Adjust comment. Use 'bool' when
5841 appropriate.
5842 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5843 * stap-probe.c (stap_parse_argument_1): Likewise.
5844 (stap_is_operator): Likewise.
5845 (stap_is_generic_prefix): Likewise.
5846 (stap_is_register_prefix): Likewise.
5847 (stap_is_register_indirection_prefix): Likewise.
5848 (stap_is_integer_prefix): Likewise.
5849 (stap_generic_check_suffix): Likewise.
5850 (stap_check_integer_suffix): Likewise.
5851 (stap_check_register_suffix): Likewise.
5852 (stap_check_register_indirection_suffix): Likewise.
5853 (stap_parse_register_operand): Likewise.
5854 (stap_parse_single_operand): Likewise.
5855 (stap_parse_argument_1): Likewise.
5856 (stap_probe::get_argument_count): Likewise.
5857 (stap_is_operator): Likewise.
5858
61c9c421
TT
58592019-05-16 Tom Tromey <tromey@adacore.com>
5860
5861 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5862 keyword to foreach.
5863
9ddc1af1
SM
58642019-05-15 Simon Marchi <simon.marchi@efficios.com>
5865
5866 * linux-thread-db.c (try_thread_db_load_1): Change return type
5867 to bool.
5868 (try_thread_db_load): Likewise.
5869 (try_thread_db_load_from_pdir_1): Likewise.
5870 (try_thread_db_load_from_pdir): Likewise.
5871 (try_thread_db_load_from_sdir): Likewise.
5872 (try_thread_db_load_from_dir): Likewise.
5873 (thread_db_load_search): Likewise.
5874 (has_libpthread): Likewise.
5875 (thread_db_load): Likewise.
5876
7bede828
SDJ
58772019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5878
5879 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5880 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5881 NULL, and complain/return if that's the case.
5882
c5358db4
JD
58832019-05-15 John Darrington <john@darrington.wattle.id.au>
5884
5885 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5886 (advance, posn, abstract_read_memory): New functions.
5887 [struct mem_read_abstraction]: New struct.
5888 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5889
c408a94f
TT
58902019-05-14 Tom Tromey <tromey@adacore.com>
5891
5892 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5893 value is not lval_memory.
5894
e7bd7fba
TT
58952019-05-14 Tom Tromey <tromey@adacore.com>
5896
5897 * solib.c (info_sharedlibrary_command): Style the file name.
5898
a6d0f249
AH
58992019-05-14 Alan Hayward <alan.hayward@arm.com>
5900
5901 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5902 (aarch64_vnv_type): Likewise.
5903 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5904 * common/tdesc.c: Likewise.
5905 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5906 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5907 * features/aarch64-fpu.xml: Add ieee half view.
5908 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5909 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5910 * gdbtypes.h (struct builtin_type): Likewise.
5911 (struct objfile_type): Likewise.
5912
66b8bb74
SM
59132019-05-12 Paul Naert <paul.naert@polymtl.ca>
5914
5915 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5916 typo.
5917 * location.h (string_to_event_location): Likewise.
5918
21c219fd
JB
59192019-05-11 Joel Brobecker <brobecker@adacore.com>
5920
5921 GDB 8.3 released.
5922
13674803
SM
59232019-05-10 Simon Marchi <simon.marchi@efficios.com>
5924
5925 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5926 New variable declaration.
5927 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5928 New variable.
5929 (print_one_breakpoint): Use ui_out::test_flags and new global
5930 variable to compute use_fixed_output.
5931 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5932 Remove.
5933 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5934 (mi_multi_location_breakpoint_output_fixed): Remove.
5935 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5936 new variable.
5937 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5938 fix_multi_location_breakpoint_output flag if version >= 3.
5939 * ui-out.h (enum ui_out_flag)
5940 <fix_multi_location_breakpoint_output>: New enumerator.
5941
a9eac7f9
SM
59422019-05-10 Simon Marchi <simon.marchi@efficios.com>
5943
5944 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5945
71bed2db
TT
59462019-05-10 Tom Tromey <tromey@adacore.com>
5947
5948 * ada-lang.c (catch_ada_completer): New function.
5949 (_initialize_ada_language): Use it.
5950
24c54127
TT
59512019-05-10 Tom Tromey <tromey@adacore.com>
5952
5953 * thread.c (print_thread_info): Make "requested_threads" const.
5954 * gdbthread.h (print_thread_info): Make "requested_threads"
5955 const.
5956 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5957 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5958
7a102139
TT
59592019-05-08 Tom Tromey <tom@tromey.com>
5960
5961 * gdbtypes.c (objfile_type_data): Change type.
5962 (objfile_type, _initialize_gdbtypes): Update.
5963
924d79e2
TT
59642019-05-08 Tom Tromey <tom@tromey.com>
5965
5966 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5967 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5968 (_initialize_dwarf2_frame): Update.
5969
4c58e337
TT
59702019-05-08 Tom Tromey <tom@tromey.com>
5971
5972 * objc-lang.c (objc_objfile_data): Change type.
5973 (find_methods): Update.
5974 (_initialize_objc_lang): Remove.
5975
d772d2ab
TT
59762019-05-08 Tom Tromey <tom@tromey.com>
5977
5978 * stabsread.c (rs6000_builtin_type_data): Change type.
5979 (rs6000_builtin_type, _initialize_stabsread): Update.
5980
d11d83f4
TT
59812019-05-08 Tom Tromey <tom@tromey.com>
5982
5983 * mips-tdep.c (mips_pdr_data): Remove.
5984 (_initialize_mips_tdep): Update.
5985
9a73f0ad
TT
59862019-05-08 Tom Tromey <tom@tromey.com>
5987
5988 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5989 (hppa_init_objfile_priv_data, read_unwind_info)
5990 (find_unwind_entry, _initialize_hppa_tdep): Update.
5991
8127a2fa
TT
59922019-05-08 Tom Tromey <tom@tromey.com>
5993
5994 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5995 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5996 on obstack.
5997 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5998
91d3055d
TT
59992019-05-08 Tom Tromey <tom@tromey.com>
6000
6001 * mdebugread.c (basic_type_data): Change type.
6002 (basic_type, _initialize_mdebugread): Update.
6003
31930bd3
TT
60042019-05-08 Tom Tromey <tom@tromey.com>
6005
6006 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6007
bdb3ed9e
TT
60082019-05-08 Tom Tromey <tom@tromey.com>
6009
6010 * nto-tdep.c (nto_inferior_data_reg): Change type.
6011 (nto_inferior_data): Update.
6012 (nto_inferior_data_cleanup, nto_new_inferior_data)
6013 (_initialize_nto_tdep): Remove.
6014 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6015
f37b313d
TT
60162019-05-08 Tom Tromey <tom@tromey.com>
6017
6018 * ada-lang.c (struct ada_inferior_data): Add initializers.
6019 (ada_inferior_data): Change type.
6020 (ada_inferior_data_cleanup): Remove.
6021 (get_ada_inferior_data, ada_inferior_exit)
6022 (struct ada_pspace_data): Add initializers, destructor.
6023 (ada_pspace_data_handle): Change type.
6024 (get_ada_pspace_data): Update.
6025 (ada_pspace_data_cleanup): Remove.
6026
24699405
TT
60272019-05-08 Tom Tromey <tom@tromey.com>
6028
6029 * coffread.c (struct coff_symfile_info): Add initializers.
6030 (coff_objfile_data_key): Move lower. Change type.
6031 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6032 Update.
6033 (coff_free_info): Remove.
6034
d4e05d2f
TT
60352019-05-08 Tom Tromey <tom@tromey.com>
6036
6037 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6038 (fbsd_pspace_data_handle): Move lower. Change type.
6039 (get_fbsd_pspace_data): Update.
6040 (fbsd_pspace_data_cleanup): Remove.
6041 (_initialize_fbsd_tdep): Update.
6042
14ef6690
TT
60432019-05-08 Tom Tromey <tom@tromey.com>
6044
6045 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6046 (get_ada_tasks_pspace_data): Update.
6047 (ada_tasks_pspace_data_cleanup): Remove.
6048 (_initialize_tasks): Update.
6049 (ada_tasks_inferior_data_handle): Change type.
6050 (get_ada_tasks_inferior_data): Update.
6051 (ada_tasks_inferior_data_cleanup): Remove.
6052 (struct ada_tasks_pspace_data): Add initializers.
6053
814cf43a
TT
60542019-05-08 Tom Tromey <tom@tromey.com>
6055
6056 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6057 * symfile-debug.c (debug_sym_get_probes): Change type.
6058 * stap-probe.c (handle_stap_probe):
6059 (stap_static_probe_ops::get_probes): Change type.
6060 * probe.h (class static_probe_ops) <get_probes>: Change type.
6061 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6062 (parse_probes_in_pspace): Update.
6063 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6064 Update.
6065 (any_static_probe_ops::get_probes): Change type.
6066 * elfread.c (elfread_data): New typedef.
6067 (probe_key): Change type.
6068 (elf_get_probes): Likewise. Update.
6069 (probe_key_free): Remove.
6070 (_initialize_elfread): Update.
6071 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6072 Change type.
6073 (dtrace_process_dof_probe, dtrace_process_dof)
6074 (dtrace_static_probe_ops::get_probe): Change type.
6075
02dc647e
TT
60762019-05-08 Tom Tromey <tom@tromey.com>
6077
6078 * xcoffread.c (struct xcoff_symfile_info): Rename from
6079 coff_symfile_info. Add initializers.
6080 (xcoff_objfile_data_key): Move lower. Change type.
6081 (XCOFF_DATA): Rewrite.
6082 (xcoff_free_info): Remove.
6083 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6084 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6085 (xcoff_initial_scan): Update.
6086
09232438
TT
60872019-05-08 Tom Tromey <tom@tromey.com>
6088
6089 * solib-svr4.c (struct svr4_info): Add initializers and
6090 destructor.
6091 <probes_table>: Now an htab_up.
6092 (solib_svr4_pspace_data): Change type.
6093 (free_probes_table): Simplify.
6094 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6095 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6096 (probes_table_remove_objfile_probes, register_solib_event_probe)
6097 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6098 (_initialize_svr4_solib): Update.
6099
7b4a314f
TT
61002019-05-08 Tom Tromey <tom@tromey.com>
6101
6102 * remote.c (remote_pspace_data): Change type.
6103 (remote_pspace_data_cleanup): Remove.
6104 (get_remote_exec_file, set_pspace_remote_exec_file)
6105 (_initialize_remote): Update.
6106
51d3063a
TT
61072019-05-08 Tom Tromey <tom@tromey.com>
6108
6109 * breakpoint.c (breakpoint_objfile_key): Change type.
6110 (get_breakpoint_objfile_data): Update.
6111 (free_breakpoint_objfile_data): Remove.
6112 (_initialize_breakpoint): Update.
6113
89fb8848
TT
61142019-05-08 Tom Tromey <tom@tromey.com>
6115
6116 * linux-tdep.c (struct linux_info): Add initializers.
6117 (linux_inferior_data): Move. Change type.
6118 (invalidate_linux_cache_inf): Update.
6119 (linux_inferior_data_cleanup): Remove.
6120 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6121
e9b89e2d
TT
61222019-05-08 Tom Tromey <tom@tromey.com>
6123
6124 * auxv.c (auxv_inferior_data): Move. Change type.
6125 (auxv_inferior_data_cleanup): Remove.
6126 (invalidate_auxv_cache_inf): Rewrite.
6127 (get_auxv_inferior_data, _initialize_auxv): Update.
6128
8c42777c
TT
61292019-05-08 Tom Tromey <tom@tromey.com>
6130
6131 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6132 (symfile_debug_objfile_data_key): Change type.
6133 (symfile_debug_installed, debug_qf_has_symbols)
6134 (debug_qf_find_last_source_symtab)
6135 (debug_qf_forget_cached_source_info)
6136 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6137 (debug_qf_print_stats, debug_qf_dump)
6138 (debug_qf_expand_symtabs_for_function)
6139 (debug_qf_expand_all_symtabs)
6140 (debug_qf_expand_symtabs_with_fullname)
6141 (debug_qf_map_matching_symbols)
6142 (debug_qf_expand_symtabs_matching)
6143 (debug_qf_find_pc_sect_compunit_symtab)
6144 (debug_qf_map_symbol_filenames)
6145 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6146 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6147 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6148 (debug_sym_read_linetable, debug_sym_relocate): Update.
6149 (symfile_debug_free_objfile): Remove.
6150 (install_symfile_debug_logging, _initialize_symfile_debug):
6151 Update.
6152
5bfd760d
TT
61532019-05-08 Tom Tromey <tom@tromey.com>
6154
6155 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6156 allocate_on_obstack.
6157 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6158 (get_dwarf2_per_objfile): Update.
6159 (set_dwarf2_per_objfile): Remove.
6160 (dwarf2_has_info, dwarf2_get_section_info): Update.
6161 (dwarf2_free_objfile): Remove.
6162 (_initialize_dwarf2_read): Update.
6163
e85e19b4
TT
61642019-05-08 Tom Tromey <tom@tromey.com>
6165
6166 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6167 initializers.
6168 <unsupported_script_warning_printed,
6169 script_not_found_warning_printed>: Now bool.
6170 (auto_load_pspace_data): Change type.
6171 (~auto_load_pspace_info): Rename from
6172 auto_load_pspace_data_cleanup.
6173 (get_auto_load_pspace_data, init_loaded_scripts_info)
6174 (clear_section_scripts, maybe_print_unsupported_script_warning)
6175 (maybe_print_script_not_found_warning, _initialize_auto_load):
6176 Update.
6177
f6aa7436
TT
61782019-05-08 Tom Tromey <tom@tromey.com>
6179
6180 * objfiles.c (objfile_pspace_info): Add destructor and
6181 initializers.
6182 (objfiles_pspace_data): Change type.
6183 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6184 (get_objfile_pspace_data): Update.
6185 (objfiles_bfd_data): Change type.
6186 (get_objfile_bfd_data): Update.
6187 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6188
6ae614f6
TT
61892019-05-08 Tom Tromey <tom@tromey.com>
6190
6191 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6192 Change type.
6193 (get_catch_syscall_inferior_data): Update.
6194 (catch_syscall_inferior_data_cleanup): Remove.
6195 (_initialize_break_catch_syscall): Update.
6196
6509b8eb
TT
61972019-05-08 Tom Tromey <tom@tromey.com>
6198
6199 * inflow.c (struct terminal_info): Add destructor and
6200 initializers.
6201 (inflow_inferior_data): Change type.
6202 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6203 (get_inflow_inferior_data, inflow_inferior_exit)
6204 (swap_terminal_info, _initialize_inflow): Update.
6205
35632941
TT
62062019-05-08 Tom Tromey <tom@tromey.com>
6207
6208 * target-dcache.c (target_dcache_cleanup): Remove.
6209 (target_dcache_aspace_key): Change type.
6210 (target_dcache_init_p, target_dcache_invalidate)
6211 (target_dcache_get, target_dcache_get_or_init)
6212 (_initialize_target_dcache): Update.
6213 * dcache.h (struct dcache_deleter): New.
6214
3017b94d
TT
62152019-05-08 Tom Tromey <tom@tromey.com>
6216
6217 * symtab.c (struct symbol_cache): Add destructor and
6218 initializers.
6219 (symbol_cache_key): Move. Change type.
6220 (make_symbol_cache, free_symbol_cache): Remove.
6221 (get_symbol_cache): Update.
6222 (symbol_cache_cleanup): Remove.
6223 (ALL_PSPACES, symbol_cache_flush)
6224 (maintenance_print_symbol_cache)
6225 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6226 Update.
6227
a32ad8c5
TT
62282019-05-08 Tom Tromey <tom@tromey.com>
6229
6230 * symtab.c (struct main_info): Add destructor and initializers.
6231 (main_progspace_key): Move. Change type.
6232 (get_main_info): Update.
6233 (main_info_cleanup): Remove.
6234 (_initialize_symtab): Update.
6235
5f6e90a0
TT
62362019-05-08 Tom Tromey <tom@tromey.com>
6237
6238 * registry.h (DECLARE_REGISTRY): Define the _key class.
6239
1bd0c6e4
AB
62402019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6241
6242 * NEWS: Merge two 'New commands' sections.
6243
2228ef77
XR
62442019-05-08 Joel Brobecker <brobecker@adacore.com>
6245
6246 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6247 parameter and use Ada language definition instead.
6248 (ada_val_print_ptr): Remove unused language parameter.
6249 (ada_val_print_num): Remove language parameter and use Ada language
6250 definition instead.
6251 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6252 parameter.
6253 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6254 parameter and use Ada language definition instead.
6255 (ada_val_print_1): Update all ada_val_print_xxx calls.
6256 Remove language parameter.
6257 (ada_val_print): Update ada_val_print_1 call.
6258
60fcc1c3
TT
62592019-05-08 Tom Tromey <tromey@adacore.com>
6260
6261 * remote.c (remote_hw_watchpoint_limit)
6262 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6263 Now static.
6264
ed2b7c17
TT
62652019-05-08 Tom Tromey <tromey@adacore.com>
6266
6267 * maint.c (_initialize_maint_cmds): Move initialization code to
6268 remote.c.
6269 (watchdog, show_watchdog): Move to remote.c.
6270 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6271 "watchdog" static.
6272 (_initialize_remote): Move initialization code from maint.c.
6273 * defs.h (watchdog): Don't declare.
6274
b0be6c91
TT
62752019-05-08 Tom Tromey <tromey@adacore.com>
6276
6277 * tui/tui-interp.c: Include main.h.
6278 * interps.c: Include main.h.
6279 * main.h (interpreter_p): Declare.
6280 * defs.h (interpreter_p): Don't declare.
6281
587ee17b
TT
62822019-05-08 Tom Tromey <tromey@adacore.com>
6283
6284 * dwarf2loc.c: Include dwarf2read.h.
6285 * defs.h (read_unsigned_leb128): Don't declare.
6286 * dwarf2read.h (read_unsigned_leb128): Declare.
6287
ca1df239
TT
62882019-05-08 Tom Tromey <tromey@adacore.com>
6289
6290 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6291 method.
6292
99f20f08
TT
62932019-05-08 Tom Tromey <tromey@adacore.com>
6294
6295 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6296 when no wrap column is set.
6297
80e55b13
TT
62982019-05-08 Tom Tromey <tromey@adacore.com>
6299
6300 * c-lang.c (c_get_string): Handle non-C-style arrays.
6301
9d3421af
TT
63022019-05-08 Tom Tromey <tromey@adacore.com>
6303
6304 * typeprint.c (print_offset_data::update): Print the bit offset,
6305 not the number of bits remaining.
6306
844333e2
TT
63072019-05-08 Tom Tromey <tromey@adacore.com>
6308
6309 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6310 padding at end of comment.
6311
988915ee
TT
63122019-05-08 Tom Tromey <tromey@adacore.com>
6313
6314 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6315 Compare main types.
6316
26bfd823
TT
63172019-05-06 Tom Tromey <tom@tromey.com>
6318
6319 * common/scoped_mmap.c: Include common-defs.h.
6320 * common/scoped_mmap.h: Don't include config.h.
6321
89055eaa
TT
63222019-05-04 Tom Tromey <tom@tromey.com>
6323
6324 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6325 (struct aarch64_call_info): Add initializers.
6326 <si>: Now a std::vector.
6327 (pass_on_stack, aarch64_push_dummy_call): Update.
6328
5da01df5
TT
63292019-05-04 Simon Marchi <simon.marchi@efficios.com>
6330 Tom Tromey <tom@tromey.com>
6331
6332 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6333 (ppc_threads): Now a std::vector. Now static.
6334 (hwdebug_find_thread_points_by_tid)
6335 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6336 Update.
6337
fbdf05a1
TT
63382019-05-04 Tom Tromey <tom@tromey.com>
6339
6340 * arc-tdep.c (arc_tdesc_init): Return bool.
6341
06d16ec9
TT
63422019-05-04 Tom Tromey <tom@tromey.com>
6343
6344 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6345 Use gdb_assert_not_reached.
6346
9c056022
TT
63472019-05-04 Tom Tromey <tom@tromey.com>
6348
6349 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6350 "false".
6351
fa9c2a59
TT
63522019-05-04 Tom Tromey <tom@tromey.com>
6353
6354 * arc-tdep.c (arc_tdesc_init): Use bool.
6355
e2eb806a
TT
63562019-05-04 Tom Tromey <tom@tromey.com>
6357
6358 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6359
6fe87677
TT
63602019-05-04 Tom Tromey <tom@tromey.com>
6361
6362 * cli/cli-cmds.c (valid_command_p): Return bool.
6363
7f008c9e
TT
63642019-05-04 Tom Tromey <tom@tromey.com>
6365
6366 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6367 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6368
b6484282
RT
63692019-05-04 Raul Tambre <raul@tambre.ee>
6370
6371 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6372 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6373 operator for comparison.
6374
af97b416
TT
63752019-05-04 Tom Tromey <tom@tromey.com>
6376
6377 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6378 (lookup_partial_symbol, print_partial_symbols)
6379 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6380 (psymbol_compare): Update.
6381 (add_psymbol_to_bcache): Clear the entire psymbol.
6382 (maintenance_check_psymtabs): Update.
6383 * psympriv.h (struct partial_symbol): Don't derive from
6384 general_symbol_info.
6385 <obj_section, unrelocated_address, address,
6386 set_unrelocated_address>: Update.
6387 <ginfo>: New member.
6388 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6389 (debug_names::write_psymbols): Update.
6390
9d6d4be8
TV
63912019-05-04 Tom de Vries <tdevries@suse.de>
6392
6393 * contrib/cc-with-tweaks.sh: Support -n arg.
6394
66452beb
PW
63952019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6396
6397 * corelow.c (core_target::detach): Ensure frame cache and
6398 register caches are cleared.
6399 inferior.c (exit_inferior_1): Likewise.
6400
bde09ab7
TT
64012019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6402 Tom Tromey <tom@tromey.com>
6403
6404 * dictionary.c (collate_pending_symbols_by_language): Remove
6405 "struct" from foreach.
6406 * symtab.c (lookup_global_symbol_from_objfile)
6407 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6408 foreach.
6409 * ser-tcp.c (net_open): Remove "struct" from foreach.
6410 * objfiles.c (objfile_relocate, objfile_rebase)
6411 (objfile_has_symbols): Remove "struct" from foreach.
6412 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6413 from foreach.
6414 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6415 foreach.
6416 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6417 "struct" from foreach.
6418 * ada-lang.c (create_excep_cond_exprs)
6419 (ada_exception_catchpoint_cond_string): Remove "struct" from
6420 foreach.
6421
222a8d25
TT
64222019-05-03 Tom Tromey <tromey@adacore.com>
6423
6424 * ada-exp.y (convert_char_literal): Check suffix of each
6425 enumerator.
6426
fcd60b84
DP
64272019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6428
6429 PR ada/21406:
6430 * ada-exp.y (yywrap): Don't define.
6431 * ada-lex.l (%option): Add noyywrap
6432 (yywrap): Remove.
6433
5f2459c2
EZ
64342019-05-03 Eli Zaretskii <eliz@gnu.org>
6435
353ea2d1
EZ
6436 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6437 _WIN32_WINNT to the XP level, unless already defined to a higher
6438 level.
6439
6440 * unittests/parse-connection-spec-selftests.c:
6441 * ser-tcp.c:
6442 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6443 override.
6444
5f2459c2
EZ
6445 * symfile.c (find_separate_debug_file): Remove colon from the
6446 drive spec of DOS/Windows file names of the target, so that the
6447 file name produced from DEBUGDIR and the target's directory will
6448 be valid on DOS/Windows systems.
6449
80062eb9
AB
64502019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6451
6452 * rust-lang.c (val_print_struct): Handle printing structures
6453 containing strings.
6454
b8c05e85
TT
64552019-05-02 Tom Tromey <tromey@adacore.com>
6456
6457 * valarith.c (_initialize_valarith): Remove.
6458
4504bbde
TT
64592019-05-01 Tom Tromey <tromey@adacore.com>
6460
6461 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6462 bitfields.
6463
d48e62f4
TT
64642019-05-01 Tom Tromey <tromey@adacore.com>
6465
6466 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6467 for big-endian copies.
6468
15f18d14
AT
64692019-04-30 Ali Tamur <tamur@google.com>
6470 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6471 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6472 (read_3_bytes): New function.
6473
ab4ee614
JB
64742019-04-30 Joel Brobecker <brobecker@adacore.com>
6475
6476 * windows-nat.c (main_thread_id): Delete.
6477 (handle_output_debug_string): Replace main_thread_id by
6478 current_event.dwThreadId.
6479 (fake_create_process): Likewise.
6480 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6481 Do not set main_thread_id.
6482 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6483 current_event.dwThreadId.
6484 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6485
8ed5b76e
JB
64862019-04-30 Joel Brobecker <brobecker@adacore.com>
6487
6488 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6489 Use current_event.dwThreadId instead of main_thread_id.
6490
2ff0a947
TT
64912019-04-30 Tom Tromey <tromey@adacore.com>
6492
6493 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6494 (create_excep_cond_exprs): Iterate over program spaces.
6495 (ada_exception_catchpoint_cond_string): Examine all minimal
6496 symbols for exception types.
6497
a776957c
TT
64982019-04-30 Tom Tromey <tromey@adacore.com>
6499
6500 PR c++/24470:
6501 * dwarf2read.c (process_structure_scope): Handle case where type
6502 has template parameters but no symbol was created.
6503
bc68014d
AB
65042019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6505 Chris January <chris.january@arm.com>
6506
6507 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6508 qualifier.
6509 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6510
f1fdc960
AB
65112019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6512
6513 * f-typeprint.c (f_print_type): Update rules for printing
6514 whitespace.
6515 (f_type_print_varspec_suffix): Likewise.
6516
bf7a4de1
AB
65172019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6518 Chris January <chris.january@arm.com>
6519
6520 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6521 function arguments.
6522
bbe75b9d
AB
65232019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6524
6525 * f-lang.c (build_fortran_types): Change name of void type to
6526 lower case.
6527 * f-typeprint.c (f_type_print_base): Print the name of the void
6528 type, rather than a fixed string.
6529 * f-valprint.c (f_decorations): Use lower case void string.
6530
1db455a7
AB
65312019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6532 Chris January <chris.january@arm.com>
6533
6534 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6535 types for Fortran.
6536
b6d03bb2
AB
65372019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6538 Chris January <chris.january@arm.com>
6539 David Lecomber <david.lecomber@arm.com>
6540
6541 * f-exp.y (BINOP_INTRINSIC): New token.
6542 (exp): New parser rule handling BINOP_INTRINSIC.
6543 (f77_keywords): Add new builtin procedures.
6544 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6545 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6546 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6547 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6548 (print_unop_subexp_f): New function.
6549 (print_binop_subexp_f): New function.
6550 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6551 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6552 (dump_subexp_body_f): Likewise.
6553 (operator_check_f): Likewise.
6554 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6555 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6556
83228e93
AB
65572019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6558
6559 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6560 UNOP_KIND.
6561 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6562 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6563 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6564 (operator_length_f): New fuction.
6565 (print_subexp_f): New function.
6566 (op_name_f): New function.
6567 (dump_subexp_body_f): New function.
6568 (operator_check_f): New function.
6569 (exp_descriptor_f): Replace standard expression handling functions
6570 with new functions.
6571 * gdb/fortran-operator.def: New file.
6572 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6573 * gdb/std-operator.def: Remove UNOP_KIND.
6574
6fdcd7cc
AB
65752019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6576
6577 * std-operator.def: Remove unbalanced, stray double quote
6578 character.
6579
2e62ab40
AB
65802019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6581 Chris January <chris.january@arm.com>
6582 Daniel Everett <daniel.everett@arm.com>
6583 Nick Forrington <nick.forrington@arm.com>
6584 Richard Bunt <richard.bunt@arm.com>
6585
6586 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6587 of depth when printing anonymous structs or unions.
6588 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6589 Don't print either the top-level value, or the children if the
6590 max-depth is exceeded.
6591 (ppscm_print_children): When printing the key of a map, allow one
6592 extra level of depth.
6593 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6594 print either the top-level value, or the children if the max-depth
6595 is exceeded.
6596 (print_children): When printing the key of a map, allow one extra
6597 level of depth.
6598 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6599 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6600 (user_print_options): Initialise max_depth field.
6601 (val_print_scalar_or_string_type_p): New function.
6602 (val_print): Check to see if the max depth has been reached.
6603 (val_print_check_max_depth): Define new function.
6604 (show_print_max_depth): New function.
6605 (_initialize_valprint): Add 'print max-depth' option.
6606 * valprint.h (struct value_print_options) <max_depth>: New field.
6607 (val_print_check_max_depth): Declare new function.
6608 * NEWS: Document new feature.
6609
4be290b2
AB
66102019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6611
6612 * ada-lang.c (ada_language_defn): Initialise new field.
6613 * c-lang.c (c_is_string_type_p): New function.
6614 (c_language_defn): Initialise new field.
6615 (cplus_language_defn): Initialise new field.
6616 (asm_language_defn): Initialise new field.
6617 (minimal_language_defn): Initialise new field.
6618 * c-lang.h (c_is_string_type_p): Declare new function.
6619 * d-lang.c (d_language_defn): Initialise new field.
6620 * f-lang.c (f_is_string_type_p): New function.
6621 (f_language_defn): Initialise new field.
6622 * go-lang.c (go_is_string_type_p): New function.
6623 (go_language_defn): Initialise new field.
6624 * language.c (default_is_string_type_p): New function.
6625 (unknown_language_defn): Initialise new field.
6626 (auto_language_defn): Initialise new field.
6627 * language.h (struct language_defn) <la_is_string_type_p>: New
6628 member variable.
6629 (default_is_string_type_p): Declare new function.
6630 * m2-lang.c (m2_language_defn): Initialise new field.
6631 * objc-lang.c (objc_language_defn): Initialise new field.
6632 * opencl-lang.c (opencl_language_defn): Initialise new field.
6633 * p-lang.c (pascal_is_string_type_p): New function.
6634 (pascal_language_defn): Initialise new field.
6635 * rust-lang.c (rust_is_string_type_p): New function.
6636 (rust_language_defn): Initialise new field.
6637
721b08c6
AB
66382019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6639
6640 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6641 New field.
6642 * ada-lang.c (ada_language_defn): Initialise new field.
6643 * c-lang.c (c_language_defn): Likewise.
6644 (cplus_language_defn): Likewise.
6645 (asm_language_defn): Likewise.
6646 (minimal_language_defn): Likewise.
6647 * d-lang.c (d_language_defn): Likewise.
6648 * f-lang.c (f_language_defn): Likewise.
6649 * go-lang.c (go_language_defn): Likewise.
6650 * language.c (unknown_language_defn): Likewise.
6651 (auto_language_defn): Likewise.
6652 * m2-lang.c (m2_language_defn): Likewise.
6653 * objc-lang.c (objc_language_defn): Likewise.
6654 * opencl-lang.c (opencl_language_defn): Likewise.
6655 * p-lang.c (pascal_language_defn): Likewise.
6656 * rust-lang.c (rust_language_defn): Likewise.
6657
fc913e53
AB
66582019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6659
6660 * ada-lang.c (ada_is_character_type): Change return type to bool.
6661 (ada_is_string_type): Likewise.
6662 * ada-lang.h (ada_is_character_type): Update declaration
6663 (ada_is_string_type): Likewise.
6664
fa731fa0
PW
66652019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6666
6667 Support style in 'frame|thread apply'
6668
6669 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6670 * record.c (record_start, record_stop): Update callers of
6671 execute_command_to_string with false.
6672 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6673 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6674 methods.
6675 (class string_file): New constructor with term_out parameter.
6676 Override methods term_out and can_emit_style_escape. New member
6677 term_out.
6678 (class stdio_file): Override can_emit_style_escape.
6679 (class tee_file): Override term_out and can_emit_style_escape.
6680 * utils.h (can_emit_style_escape): Remove.
6681 * utils.c (can_emit_style_escape): Likewise.
6682 Update all callers of can_emit_style_escape (SOMESTREAM) to
6683 SOMESTREAM->can_emit_style_escape.
6684 * source-cache.c (source_cache::get_source_lines): Likewise.
6685 * stack.c (frame_apply_command_count): Call execute_command_to_string
6686 passing the term_out characteristic of the current gdb_stdout.
6687 * thread.c (thr_try_catch_cmd): Likewise.
6688 * top.c (execute_command_to_string): pass term_out parameter
6689 to construct the string_file for the command output.
6690 * ui-file.c (term_cli_styling): New function (most code moved
6691 from utils.c can_emit_style_escape).
6692 (string_file::string_file, string_file::can_emit_style_escape,
6693 stdio_file::can_emit_style_escape, tee_file::term_out,
6694 tee_file::can_emit_style_escape): New functions.
6695
136afab8
PW
66962019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6697
6698 * NEWS: Mention the new set|show may-call-functions.
6699 * infcall.c (may_call_functions_p): New variable.
6700 (show_may_call_functions_p): New function.
6701 (call_function_by_hand_dummy): Throws an error if not
6702 may-call-functions.
6703 (_initialize_infcall): Call add_setshow_boolean_cmd for
6704 may-call-functions.
6705
725cbb63
KS
67062019-04-25 Keith Seitz <keiths@redhat.com>
6707
6708 PR c++/24367
6709 * cp-support.c (inspect_type): Don't attempt substitutions
6710 of symbol with the same name.
6711
3d1cbb78
TT
67122019-04-25 Tom Tromey <tromey@adacore.com>
6713
6714 PR gdb/24475:
6715 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6716 static.
6717
94aeb44b
TT
67182019-04-25 Tom Tromey <tromey@adacore.com>
6719
6720 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6721 rvalue reference.
6722 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6723 (gdb_xml_parser::parse): Use std::move.
6724 * python/python-internal.h (gdbpy_convert_exception): Take a const
6725 reference.
6726 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6727 std::move.
6728 * python/py-utils.c (gdbpy_convert_exception): Take a const
6729 reference.
6730 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6731 Use std::move.
6732 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6733 Use std::move.
6734 * mi/mi-main.c (mi_print_exception): Take a const reference.
6735 * main.c (handle_command_errors): Take a const reference.
6736 * linespec.c (parse_linespec): Use std::move.
6737 * infcall.c (run_inferior_call): Use std::move.
6738 (call_function_by_hand_dummy): Use std::move.
6739 * exec.c (try_open_exec_file): Use std::move.
6740 * exceptions.h (exception_print, exception_fprintf)
6741 (exception_print_same): Update.
6742 * exceptions.c (print_exception, exception_print)
6743 (exception_fprintf, exception_print_same): Change parameters to
6744 const reference.
6745 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6746 * common/new-op.c: Use std::move.
6747 * common/common-exceptions.h (struct gdb_exception): Add move
6748 constructor.
6749 (struct gdb_exception_error, struct gdb_exception_quit, struct
6750 gdb_quit_bad_alloc): Change constructor to move constructor.
6751 (throw_exception): Change parameter to rvalue reference.
6752 * common/common-exceptions.c (throw_exception): Take rvalue
6753 reference.
6754 * cli/cli-interp.c (safe_execute_command): Use std::move.
6755 * breakpoint.c (insert_bp_location, location_to_sals): Use
6756 std::move.
6757
680d7fd5
TT
67582019-04-25 Tom Tromey <tromey@adacore.com>
6759
6760 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6761 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6762 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6763 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6764 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6765 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6766 guile/scm-value.c: Use unpack.
6767 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6768 gdbscm_gdb_exception.
6769 (gdbscm_throw_gdb_exception): Likewise.
6770 (struct gdbscm_gdb_exception): New.
6771 (unpack): New function.
6772 (gdbscm_wrap): Use unpack.
6773
c6fdd8b2
TT
67742019-04-25 Tom Tromey <tromey@adacore.com>
6775
6776 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6777 (gdb_rl_callback_handler): Use std::move.
6778 * common/common-exceptions.h (struct gdb_exception): Add move
6779 assignment operator.
6780 (throw_exception_sjlj): Change "exception" to const reference.
6781 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6782 (throw_exception_sjlj): Change "exception" to const reference.
6783
cc06b668
TT
67842019-04-25 Tom Tromey <tromey@adacore.com>
6785
6786 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6787 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6788 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6789 Update.
6790 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6791 Update.
6792 * mi/mi-interp.c (mi_interp::exec): Update.
6793 * linespec.c (parse_linespec): Update.
6794 * infcall.c (run_inferior_call): Update.
6795 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6796 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6797 (gdbscm_lookup_global_symbol): Update.
6798 * guile/scm-param.c (gdbscm_parameter_value): Update.
6799 * guile/scm-frame.c (gdbscm_frame_read_register)
6800 (gdbscm_frame_read_var): Update.
6801 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6802 * exec.c (try_open_exec_file): Update.
6803 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6804 (gdb_rl_callback_handler): Update.
6805 * common/common-exceptions.h (exception_none): Don't declare.
6806 * common/common-exceptions.c (exception_none): Don't define.
6807 (struct catcher) <exception>: Update.
6808 * cli/cli-interp.c (safe_execute_command): Update.
6809 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6810
cf532bd1
AT
68112019-04-25 Ali Tamur <tamur@google.com>
6812
6813 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6814 (read_attribute_value): Likewise.
6815 (dwarf2_read_addr_index): Update comment.
6816 (read_str_index): Add DW_FORM_strx.
6817 (dwarf2_string_attr): Likewise.
6818 (dwarf2_const_value_attr): Likewise.
6819 (dump_die_shallow): Likewise.
6820 (dwarf2_fetch_constant_bytes): Likewise.
6821 (skip_form_bytes): Likewise.
6822 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6823
82433e3e
SDJ
68242019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6825
6826 PR corefiles/11608
6827 PR corefiles/18187
6828 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6829 OFFSET. Verify if current mapping contains an ELF header.
6830 (linux_find_memory_regions_full): Adjust call to
6831 dump_mapping_p.
6832
723adb65
SL
68332019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6834 Kang Li <kanglictf@gmail.com>
6835
6836 PR gdb/21600
6837
6838 * dwarf2-frame.c (read_initial_length): Be consistent about using
6839 unsigned representation of length.
6840 (decode_frame_entry_1): Likewise. Check for wraparound of
6841 end pointer as well as buffer overflow.
6842
596179f7
SDJ
68432019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6844
6845 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6846 "vq".
6847
a59240a4
TT
68482019-04-24 Tom Tromey <tromey@adacore.com>
6849
6850 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6851
f872fdbb
AB
68522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6853
6854 * s12z-tdep.c (s12z_unwind_pc): Delete.
6855 (s12z_unwind_sp): Delete.
6856 (s12z_gdbarch_init): Don't register deleted functions with
6857 gdbarch.
6858
b614e6f3
AB
68592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6860
6861 * rl78-tdep.c (rl78_unwind_sp): Delete.
6862 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6863
14faed38
AB
68642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6865
6866 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6867 (xstormy16_unwind_pc): Delete.
6868 (xstormy16_dummy_id): Delete.
6869 (xstormy16_gdbarch_init): Don't register deleted functions with
6870 gdbarch.
6871
541aad8a
AB
68722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6873
6874 * vax-tdep.c (vax_unwind_pc): Delete.
6875 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6876
29222070
AB
68772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6878
6879 * v850-tdep.c (v850_unwind_sp): Delete.
6880 (v850_unwind_pc): Delete.
6881 (v850_dummy_id): Delete.
6882 (v850_gdbarch_init): Don't register deleted functions with
6883 gdbarch.
6884
0f534d76
AB
68852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6886
6887 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6888 (tilegx_unwind_pc): Delete.
6889 (tilegx_unwind_dummy_id): Delete.
6890 (tilegx_gdbarch_init): Don't register deleted functions with
6891 gdbarch.
6892
1ba7b7f9
AB
68932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6894
6895 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6896 (tic6x_dummy_id): Delete.
6897 (tic6x_gdbarch_init): Don't register deleted functions with
6898 gdbarch.
6899
d31f262c
AB
69002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6901
6902 * sparc-tdep.c (sparc_unwind_pc): Delete.
6903 (sparc32_gdbarch_init): Don't register deleted function with
6904 gdbarch.
6905
6d14d64d
AB
69062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6907
6908 * sh-tdep.c (sh_unwind_sp): Delete.
6909 (sh_unwind_pc): Delete.
6910 (sh_dummy_id): Delete.
6911 (sh_gdbarch_init): Don't register deleted functions with
6912 gdbarch.
6913
a40dde9d
AB
69142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6915
6916 * score-tdep.c (score_unwind_sp): Delete.
6917 (score_unwind_pc): Delete.
6918 (score_dummy_id): Delete.
6919 (score_gdbarch_init): Don't register deleted functions with
6920 gdbarch.
6921
47c47d69
AB
69222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6923
6924 * rx-tdep.c (rx_unwind_pc): Delete.
6925 (rx_unwind_sp): Delete.
6926 (rx_dummy_id): Delete.
6927 (rx_gdbarch_init): Don't register deleted functions with
6928 gdbarch. Update comment.
6929
833a4480
AB
69302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6931
6932 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6933 (rs6000_dummy_id): Delete.
6934 (rs6000_gdbarch_init): Don't register deleted functions with
6935 gdbarch.
6936
3f2cef49
AB
69372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6938
6939 * or1k-tdep.c (or1k_dummy_id): Delete.
6940 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6941
96acf884
AB
69422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6943
6944 * nios2-tdep.c (nios2_dummy_id): Delete.
6945 (nios2_unwind_sp): Delete.
6946 (nios2_gdbarch_init): Don't register deleted functions with
6947 gdbarch.
6948
ca0ab0aa
AB
69492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6950
6951 * nds32-tdep.c (nds32_dummy_id): Delete.
6952 (nds32_unwind_pc): Delete.
6953 (nds32_unwind_sp): Delete.
6954 (nds32_gdbarch_init): Don't register deleted functions with
6955 gdbarch.
6956
c8259044
AB
69572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6958
6959 * msp430-tdep.c (msp430_unwind_pc): Delete.
6960 (msp430_unwind_sp): Delete.
6961 (msp430_dummy_id): Delete.
6962 (msp430_gdbarch_init): Don't register deleted functions with
6963 gdbarch.
6964
27f113c8
AB
69652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6966
6967 * moxie-tdep.c (moxie_unwind_sp): Delete.
6968 (moxie_unwind_pc): Delete.
6969 (moxie_dummy_id): Delete.
6970 (moxie_gdbarch_init): Don't register deleted functions with
6971 gdbarch.
6972
aee6c3cd
AB
69732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6974
6975 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6976 (mn10300_unwind_pc): Delete.
6977 (mn10300_unwind_sp): Delete.
6978 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6979 mn10300_unwind_sp.
6980 (mn10300_frame_unwind_init): Don't register deleted functions with
6981 gdbarch.
6982
8e2b5aea
AB
69832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6984
6985 * mep-tdep.c (mep_unwind_pc): Delete.
6986 (mep_unwind_sp): Delete.
6987 (mep_dummy_id): Delete.
6988 (mep_gdbarch_init): Don't register deleted functions with
6989 gdbarch.
6990
43cf3ede
AB
69912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6992
6993 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6994 (m68hc11_unwind_sp): Delete.
6995 (m68hc11_gdbarch_init): Don't register deleted functions with
6996 gdbarch.
6997
5e79b7bb
AB
69982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6999
7000 * m32r-tdep.c (m32r_unwind_sp): Delete.
7001 (m32r_unwind_pc): Delete.
7002 (m32r_dummy_id): Delete.
7003 (m32r_gdbarch_init): Don't register deleted functions with
7004 gdbarch.
7005
89b268d8
AB
70062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7007
7008 * m32c-tdep.c (m32c_unwind_pc): Delete.
7009 (m32c_unwind_sp): Delete.
7010 (m32c_dummy_id): Delete.
7011 (m32c_gdbarch_init): Don't register deleted functions with
7012 gdbarch.
7013
946c28d2
AB
70142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7015
7016 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7017 (lm32_unwind_pc): Delete.
7018 (lm32_dummy_id): Delete.
7019 (lm32_gdbarch_init): Don't register deleted functions with
7020 gdbarch.
7021
bf12844a
AB
70222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7023
7024 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7025 (iq2000_unwind_pc): Delete.
7026 (iq2000_dummy_id): Delete.
7027 (iq2000_gdbarch_init): Don't register deleted functions with
7028 gdbarch.
7029
ecbc06d2
AB
70302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7031
7032 * nds32-tdep.c (nds32_type_align): Delete.
7033 (nds32_push_dummy_call): Use type_align instead.
7034
030197b4
AB
70352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7036
7037 * arm-tdep.c (arm_type_align): Only handle vector override case.
7038 (arm_push_dummy_call): Use type_align.
7039 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7040
b907456c
AB
70412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7042
7043 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7044 case.
7045 (pass_on_stack): Use type_align.
7046 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7047 function.
7048
9e97ba43
TT
70492019-04-23 Tom Tromey <tromey@adacore.com>
7050
7051 * dwarf2read.c (line_header::file_name_at): Remove unused
7052 overload.
7053
6892f601
TV
70542019-04-23 Tom de Vries <tdevries@suse.de>
7055
7056 PR gdb/24438
7057 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7058 invocation.
7059
336d760d
AT
7060
70612019-03-27 Ali Tamur <tamur@google.com>
7062
7063 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7064 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7065 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7066 (dwarf_expr_context::get_addr_index): Likewise
7067 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7068 (symbol_needs_eval_context::get_addr_index): Likewise
7069 (disassemble_dwarf_expression): Add DW_OP_addrx
7070 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7071 (read_cutu_die_from_dwo): Update comment
7072 (skip_one_die): Add DW_FORM_addrx
7073 (read_attribute_value): Likewise
7074 (var_decode_location): Add DW_OP_addrx
7075 (dwarf2_const_value_attr): Add DW_FORM_addrx
7076 (dump_die_shallow): Likewise
7077 (dwarf2_fetch_constant_bytes): Likewise
7078 (decode_locdesc): Add DW_OP_addrx
7079 (skip_form_bytes): Add DW_FORM_addrx
7080
ad9d13f8
AT
70812019-04-22 Ali Tamur <tamur@google.com>
7082
7083 * MAINTAINERS (Write After Approval): Add self.
7084
d70cc3ba
SM
70852019-04-22 Simon Marchi <simon.marchi@efficios.com>
7086
7087 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7088 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7089 (open_symbol_file_object): Likewise.
7090 (svr4_default_sos): Add info parameter.
7091 (svr4_read_so_list): Likewise.
7092 (svr4_current_sos_direct): Adjust functions calls to pass down
7093 info.
7094 (svr4_current_sos_1): Add info parameter.
7095 (svr4_current_sos): Call get_svr4_info, pass info down to
7096 svr4_current_sos_1.
7097 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7098 get_svr4_info.
7099 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7100 get_svr4_info.
7101 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7102 to get_svr4_info.
7103 (probes_table_remove_objfile_probes): Likewise.
7104 (register_solib_event_probe): Add info parameter.
7105 (solist_update_incremental): Pass info parameter down to
7106 svr4_read_so_list.
7107 (disable_probes_interface): Add info parameter.
7108 (svr4_handle_solib_event): Pass current_program_space to
7109 get_svr4_info. Adjust disable_probes_interface cleanup.
7110 (svr4_create_probe_breakpoints): Add info parameter, pass it
7111 down to register_solib_event_probe.
7112 (svr4_create_solib_event_breakpoints): Add info parameter,
7113 pass it down to svr4_create_probe_breakpoints.
7114 (enable_break): Pass info down to
7115 svr4_create_solib_event_breakpoints.
7116 (svr4_solib_create_inferior_hook): Pass current_program_space to
7117 get_svr4_info.
7118 (svr4_clear_solib): Likewise.
7119
7905fc35
PA
71202019-04-22 Pedro Alves <palves@redhat.com>
7121
7122 * solib-svr4.c (svr4_free_objfile_observer): New.
7123 (probe_and_action::objfile): New field.
7124 (probes_table_htab_remove_objfile_probes)
7125 (probes_table_remove_objfile_probes): New functions.
7126 (register_solib_event_probe): Add 'objfile' parameter. Store it
7127 in the new probe_and_action. Don't store the probe in 'lookup'.
7128 (svr4_create_probe_breakpoints): Pass objfile to
7129 register_solib_event_probe.
7130 (_initialize_svr4_solib): Register a free_objfile observer.
7131
fb881986
TT
71322019-04-19 Tom Tromey <tom@tromey.com>
7133
7134 * common/queue.h: Remove.
7135
8732db6c
TT
71362019-04-19 Tom Tromey <tom@tromey.com>
7137
7138 * event-loop.c: Don't include "common/queue.h".
7139
97dfbadd
TT
71402019-04-19 Tom Tromey <tom@tromey.com>
7141
7142 * remote.c (remote_target): Use delete.
7143 * remote-notif.h: Include <list>, not "common/queue.h".
7144 (notif_client_p): Remove typedef.
7145 (remote_notif_state): Add constructor, destructor, initializer.
7146 <notif_queue>: Now a std::list.
7147 (remote_notif_state_xfree): Don't declare.
7148 * remote-notif.c (remote_notif_process, handle_notification)
7149 (remote_notif_state_allocate): Update.
7150 (~remote_notif_state): Rename from remote_notif_state_xfree.
7151
cf250e36
TT
71522019-04-19 Tom Tromey <tom@tromey.com>
7153
7154 * symfile.c (reread_symbols): Update.
7155 * objfiles.c (objfile_register_static_link)
7156 (objfile_lookup_static_link): Update
7157 (~objfile) Don't delete static_links.
7158 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7159
61f4b350
TT
71602019-04-19 Tom Tromey <tom@tromey.com>
7161
7162 * type-stack.h (struct type_stack) <insert>: Constify string.
7163 * type-stack.c (type_stack::insert): Constify string.
7164 * gdbtypes.h (lookup_template_type): Update.
7165 (address_space_name_to_int): Update.
7166 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7167 const.
7168 (lookup_template_type): Make name const.
7169 * c-exp.y: Update rules.
7170 (lex_one_token, classify_name, classify_inner_name)
7171 (c_print_token): Update.
7172 * p-exp.y: Update rules.
7173 (yylex): Update.
7174 * f-exp.y: Update rules.
7175 (yylex): Update.
7176 * d-exp.y: Update rules.
7177 (lex_one_token, classify_name, classify_inner_name): Update.
7178 * parse.c (write_dollar_variable, copy_name): Return std::string.
7179 * parser-defs.h (copy_name): Change return type.
7180 * m2-exp.y: Update rules.
7181 (yylex): Update.
7182 * go-exp.y (lex_one_token): Update.
7183 Update rules.
7184 (classify_unsafe_function, classify_packaged_name)
7185 (classify_name, yylex): Update.
7186
189b8c2e
ST
71872019-04-19 Sergei Trofimovich <siarheit@google.com>
7188
7189 * configure.ac: add --enable-source-highlight switch.
7190 * configure: Regenerate.
7191 * top.c (print_gdb_version): plumb --enable-source-highlight
7192 status to "show configuration".
7193
8ecb59f8
TT
71942019-04-19 Tom Tromey <tromey@adacore.com>
7195
7196 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7197 Check ADA_TYPE_P.
7198 (empty_record, ada_template_to_fixed_record_type_1)
7199 (template_to_static_fixed_type)
7200 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7201 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7202 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7203 macros.
7204
62160ec9
TT
72052019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7206
7207 PR symtab/24423:
7208 * source.c (print_source_lines_base): Advance "iter" when a
7209 control character is seen.
7210
f2ae8bc8
PW
72112019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7212
7213 * inferior.h (struct infcall_suspend_state_deleter):
7214 Catch exception in destructor to avoid crash.
7215
d563b953
PW
72162019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7217
7218 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7219 close to the add_com "shell".
7220
dc34c897
TT
72212019-04-18 Tom Tromey <tromey@adacore.com>
7222
7223 * process-stratum-target.h (class process_stratum_target)
7224 <stratum>: Add "final".
7225
a12e5744
TT
72262019-04-17 Tom Tromey <tromey@adacore.com>
7227
7228 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7229 against nullptr before use.
7230
a7e559cc
AH
72312019-04-17 Alan Hayward <alan.hayward@arm.com>
7232
7233 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7234
c01660c6
AB
72352019-04-17 Jim Wilson <jimw@sifive.com>
7236 Andrew Burgess <andrew.burgess@embecosm.com>
7237
7238 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7239 code read might fail, assume 4-byte breakpoint in that case.
7240
4aa866af
LS
72412019-04-15 Leszek Swirski <leszeks@google.com>
7242
7243 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7244 rather than a hand-rolled POD check when checking for forced MEMORY
7245 classification.
7246
48574d91
AH
72472019-04-15 Alan Hayward <alan.hayward@arm.com>
7248
7249 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7250 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7251 function.
7252 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7253 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7254 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7255 declaration.
7256
4da037ef
AH
72572019-04-15 Alan Hayward <alan.hayward@arm.com>
7258
7259 * aarch64-linux-nat.c
7260 (aarch64_linux_nat_target::thread_architecture): Add override.
7261 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7262 each VQ.
7263
ccb8d7e8
AH
72642019-04-15 Alan Hayward <alan.hayward@arm.com>
7265
7266 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7267
35add35e
AB
72682019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7269
7270 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7271 target types of size 96-bits, add some additional comments, and
7272 check that the builtin type we found was the correct size.
7273
51196bbc
EZ
72742019-04-12 Eli Zaretskii <eliz@gnu.org>
7275
7276 * utils.c (prompt_for_continue): Don't restore the styling at the
7277 end, as applied_style has the wrong value. This fixes styling in
7278 long lists of file names that are interrupted by the "Continue?"
7279 prompt.
7280
62253a61
AB
72812019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7282
7283 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7284 * c-lang.c (c_language_defn): Likewise.
7285 (cplus_language_defn): Likewise.
7286 (asm_language_defn): Likewise.
7287 (minimal_language_defn): Likewise.
7288 * d-lang.c (d_language_defn): Likewise.
7289 * f-lang.c (f_language_defn): Likewise.
7290 * go-lang.c (go_language_defn): Likewise.
7291 * language.c (unknown_language_defn): Likewise.
7292 (auto_language_defn): Likewise.
7293 * language.h (struct language_defn): Remove la_magic field.
7294 (LANG_MAGIC): Delete.
7295 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7296 * objc-lang.c (objc_language_defn): Likewise.
7297 * opencl-lang.c (opencl_language_defn): Likewise.
7298 * p-lang.c (pascal_language_defn): Likewise.
7299 * rust-lang.c (rust_language_defn): Likewise.
7300
a9158a86
AB
73012019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7302
7303 * riscv-tdep.c (riscv_type_align): New function.
7304 (riscv_type_alignment): Delete.
7305 (riscv_arg_location): Use 'type_align'.
7306 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7307
41077b66
AB
73082019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7309
7310 * gdbtypes.c (type_align): A struct with no non-static fields also
7311 has alignment of 1.
7312
9f0272f8
AB
73132019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7314
7315 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7316 component to 0.
7317 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7318 member.
7319 (riscv_struct_info::analyse): New implementation using new
7320 analyse_inner member function.
7321 (riscv_struct_info::field_offset): New member function.
7322 (riscv_struct_info::m_offsets): New member variable.
7323 (riscv_struct_info::analyse_inner): New private member function,
7324 takes the old implementation of riscv_struct_info::analyse but
7325 extended to track field offsets.
7326 (riscv_call_arg_struct): Update the struct folding special cases
7327 to handle cases where empty C++ structs, which are non-zero
7328 length, are found.
7329 (riscv_arg_location): Initialise the length of each location, a
7330 non-zero length now indicates the location is in use.
7331 (riscv_push_dummy_call): Allow for the first location having a
7332 non-zero offset when setting up arguments.
7333 (riscv_return_value): Likewise, but for return values.
7334
02cf60c7
TT
73352019-04-11 Tom Tromey <tromey@adacore.com>
7336
7337 * utils.c (internal_vproblem): Make "msg" const.
7338
68811f8f
AH
73392019-04-11 Alan Hayward <alan.hayward@arm.com>
7340
7341 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7342 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7343 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7344 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7345
3f52fdbc
KB
73462019-04-10 Kevin Buettner <kevinb@redhat.com>
7347
7348 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7349 function.
7350 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7351 of amd64_collect_native_gregset.
7352 (amd64_linux_nat_target::store_registers): Likewise.
7353
e9ad22ee
TT
73542019-04-10 Tom Tromey <tom@tromey.com>
7355
7356 * symtab.c (lookup_global_symbol_from_objfile)
7357 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7358 * objfiles.h (class separate_debug_iterator): New.
7359 (class separate_debug_range): New.
7360 (struct objfile) <separate_debug_objfiles>: New method.
7361 (objfile_separate_debug_iterate): Don't declare.
7362 * objfiles.c (separate_debug_iterator::operator++): Rename from
7363 objfile_separate_debug_iterate.
7364 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7365 iterator.
7366 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7367 iterator.
7368
ee371134
TT
73692019-04-10 Tom Tromey <tom@tromey.com>
7370
7371 * symfile.c (reread_symbols): Remove old comment.
7372 * objfiles.c (free_all_objfiles): Fix a typo.
7373
bf227d61
TT
73742019-04-10 Tom Tromey <tom@tromey.com>
7375
7376 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7377 * minsyms.c (lookup_minimal_symbol): Use foreach.
7378 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7379 (lookup_minimal_symbol_solib_trampoline): Likewise.
7380 * symfile.c (reread_symbols): Use foreach.
7381
8dc433a0
TT
73822019-04-09 Ivan Begert <ivanbegert@gmail.com>
7383 Tom Tromey <tromey@adacore.com>
7384
7385 PR rust/24414:
7386 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7387 (rust_lex_int_test): Change "value" to be LONGEST.
7388 (rust_lex_tests): Add test for long integer literal.
7389
9ab8741a
TT
73902019-04-09 Tom Tromey <tromey@adacore.com>
7391
7392 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7393 to bool.
7394 (extended_remote_target::attach): Update.
7395 (remote_target::remote_notice_new_inferior): Update.
7396 (remote_target::add_current_inferior_and_thread): Update.
7397 * inferior.c (exit_inferior_1): Use "false".
7398 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7399
e242fd12
SM
74002019-04-09 Simon Marchi <simon.marchi@efficios.com>
7401
9ca1957f 7402 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
7403 the "start" command.
7404
2b0c8b01
KB
74052019-04-08 Kevin Buettner <kevinb@redhat.com>
7406
7407 * python/py-inferior.c (infpy_thread_from_thread_handle):
7408 Adjust comments to reflect renaming of thread_from_thread_handle
7409 to thread_from_handle. Adjust keywords. Fix type error message.
7410 (inferior_object_methods): Add thread_from_handle. Retain
7411 thread_from_thread_handle, but mark it as deprecated.
7412
50a82723
KB
74132019-04-08 Kevin Buettner <kevinb@redhat.com>
7414
7415 * gdbthread.h (find_thread_by_handle): Revise declaration.
7416 * thread.c (find_thread_by_handle): Likewise. Adjust
7417 implementation too.
7418 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7419 support for buffer objects as handles.
7420
cf63b016
KB
74212019-04-08 Kevin Buettner <kevinb@redhat.com>
7422
7423 * python/py-infthread.c (thpy_thread_handle): New function.
7424 (thread_object_methods): Register thpy_thread_handle.
7425
3d6c6204
KB
74262019-04-08 Kevin Buettner <kevinb@redhat.com>
7427
7428 * gdbthread.h (thread_to_thread_handle): Declare.
7429 * thread.c (gdbtypes.h): Include.
7430 (thread_to_thread_handle): New function.
7431
7432 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7433 (target_thread_info_to_thread_handle): Declare.
7434 * target.c (target_thread_info_to_thread_handle): New function.
7435 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7436 * target-delegates.c: Regenerate.
7437
7438 * linux-thread-db.c (class thread_db_target): Add method
7439 thread_info_to_thread_handle.
7440 (thread_db_target::thread_info_to_thread_handle): Define.
7441 * remote.c (class remote_target): Add new method
7442 thread_info_to_thread_handle.
7443 (remote_target::thread_info_to_thread_handle): Define.
7444
56be6ea8
PA
74452019-04-08 Pedro Alves <palves@redhat.com>
7446
7447 * common/common-exceptions.c (throw_exception): Don't create
7448 named object to throw; throw directly.
7449 (throw_it): Likewise. Don't initialize gdb_exception::message
7450 here, with new; pass FMT and AP to the ctor instead.
7451 * common/common-exceptions.h: Include <string>.
7452 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7453 const char *, va_list)): New ctor. Use std::make_shared.
7454 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7455 errors)): Delete.
7456 (gdb_exception_error::gdb_exception_error(enum errors, const char
7457 *, va_list)): New.
7458 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7459 Add assertion.
7460 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7461 errors)): Delete.
7462 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7463 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7464 Add assertion.
7465
eedc3f4f
TT
74662019-04-08 Tom Tromey <tom@tromey.com>
7467
7468 * valops.c (value_rtti_indirect_type): Replace throw_exception
7469 with throw.
7470 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7471 with throw.
7472 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7473 throw.
7474 * target.c (target_translate_tls_address): Replace throw_exception
7475 with throw.
7476 * stack.c (frame_apply_command_count): Replace throw_exception
7477 with throw.
7478 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7479 throw.
7480 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7481 with throw.
7482 * rs6000-tdep.c (rs6000_frame_cache)
7483 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7484 * remote.c: Replace throw_exception with throw.
7485 * record-full.c (record_full_message, record_full_wait_1)
7486 (record_full_restore): Replace throw_exception with throw.
7487 * record-btrace.c:
7488 (get_thread_current_frame_id, record_btrace_start_replaying)
7489 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7490 (cmd_record_btrace_start): Replace throw_exception with throw.
7491 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7492 throw.
7493 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7494 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7495 * linespec.c:
7496 (find_linespec_symbols): Replace throw_exception with throw.
7497 * infrun.c (displaced_step_prepare, resume): Replace
7498 throw_exception with throw.
7499 * infcmd.c (post_create_inferior): Replace throw_exception with
7500 throw.
7501 * inf-loop.c (inferior_event_handler): Replace throw_exception
7502 with throw.
7503 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7504 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7505 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7506 (get_prev_frame_always, get_frame_pc_if_available)
7507 (get_frame_address_in_block_if_available, get_frame_language):
7508 Replace throw_exception with throw.
7509 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7510 throw_exception with throw.
7511 * eval.c (fetch_subexp_value, evaluate_var_value)
7512 (evaluate_funcall, evaluate_subexp_standard): Replace
7513 throw_exception with throw.
7514 * dwarf2loc.c (call_site_find_chain)
7515 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7516 Replace throw_exception with throw.
7517 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7518 with throw.
7519 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7520 throw.
7521 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7522 * completer.c (complete_line_internal): Replace throw_exception
7523 with throw.
7524 * compile/compile-object-run.c (compile_object_run): Replace
7525 throw_exception with throw.
7526 * cli/cli-script.c (process_next_line): Replace throw_exception
7527 with throw.
7528 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7529 (btrace_enable, btrace_maint_update_pt_packets): Replace
7530 throw_exception with throw.
7531 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7532 throw_exception with throw.
7533 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7534 throw_exception with throw.
7535 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7536 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7537 * aarch64-tdep.c (aarch64_make_prologue_cache)
7538 (aarch64_make_stub_cache): Replace throw_exception with throw.
7539
26003a20
TT
75402019-04-08 Tom Tromey <tom@tromey.com>
7541
7542 * common/common-exceptions.c (throw_exception): Rename from
7543 throw_exception_cxx. Remove old copy. Make argument const.
7544 (throw_it): Create and throw exception objects directly.
7545 * common/common-exceptions.h (throw_exception): Make argument
7546 const.
7547 (struct gdb_exception_error): Add constructor.
7548 (struct gdb_exception_quit): Add constructor.
7549
d272eb37
TT
75502019-04-08 Tom Tromey <tom@tromey.com>
7551
7552 * common/common-exceptions.h (exception_rethrow): Don't declare.
7553 (TRY_SJLJ): Update comment.
7554 (TRY, CATCH, END_CATCH): Remove.
7555 * common/common-exceptions.c (exception_rethrow): Remove.
7556
230d2906
TT
75572019-04-08 Tom Tromey <tom@tromey.com>
7558
7559 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7560 Remove.
7561 (gdb_exception_error): Rename from
7562 gdb_exception_RETURN_MASK_ERROR.
7563 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7564 (gdb_quit_bad_alloc): Update.
7565 * aarch64-tdep.c: Update.
7566 * ada-lang.c: Update.
7567 * ada-typeprint.c: Update.
7568 * ada-valprint.c: Update.
7569 * amd64-tdep.c: Update.
7570 * arch-utils.c: Update.
7571 * break-catch-throw.c: Update.
7572 * breakpoint.c: Update.
7573 * btrace.c: Update.
7574 * c-varobj.c: Update.
7575 * cli/cli-cmds.c: Update.
7576 * cli/cli-interp.c: Update.
7577 * cli/cli-script.c: Update.
7578 * common/common-exceptions.c: Update.
7579 * common/new-op.c: Update.
7580 * common/selftest.c: Update.
7581 * compile/compile-c-symbols.c: Update.
7582 * compile/compile-cplus-symbols.c: Update.
7583 * compile/compile-object-load.c: Update.
7584 * compile/compile-object-run.c: Update.
7585 * completer.c: Update.
7586 * corelow.c: Update.
7587 * cp-abi.c: Update.
7588 * cp-support.c: Update.
7589 * cp-valprint.c: Update.
7590 * darwin-nat.c: Update.
7591 * disasm-selftests.c: Update.
7592 * dtrace-probe.c: Update.
7593 * dwarf-index-cache.c: Update.
7594 * dwarf-index-write.c: Update.
7595 * dwarf2-frame-tailcall.c: Update.
7596 * dwarf2-frame.c: Update.
7597 * dwarf2loc.c: Update.
7598 * dwarf2read.c: Update.
7599 * eval.c: Update.
7600 * event-loop.c: Update.
7601 * event-top.c: Update.
7602 * exec.c: Update.
7603 * f-valprint.c: Update.
7604 * fbsd-tdep.c: Update.
7605 * frame-unwind.c: Update.
7606 * frame.c: Update.
7607 * gdbtypes.c: Update.
7608 * gnu-v3-abi.c: Update.
7609 * guile/guile-internal.h: Update.
7610 * guile/scm-block.c: Update.
7611 * guile/scm-breakpoint.c: Update.
7612 * guile/scm-cmd.c: Update.
7613 * guile/scm-disasm.c: Update.
7614 * guile/scm-frame.c: Update.
7615 * guile/scm-lazy-string.c: Update.
7616 * guile/scm-math.c: Update.
7617 * guile/scm-param.c: Update.
7618 * guile/scm-ports.c: Update.
7619 * guile/scm-pretty-print.c: Update.
7620 * guile/scm-symbol.c: Update.
7621 * guile/scm-symtab.c: Update.
7622 * guile/scm-type.c: Update.
7623 * guile/scm-value.c: Update.
7624 * i386-linux-tdep.c: Update.
7625 * i386-tdep.c: Update.
7626 * inf-loop.c: Update.
7627 * infcall.c: Update.
7628 * infcmd.c: Update.
7629 * infrun.c: Update.
7630 * jit.c: Update.
7631 * language.c: Update.
7632 * linespec.c: Update.
7633 * linux-fork.c: Update.
7634 * linux-nat.c: Update.
7635 * linux-tdep.c: Update.
7636 * linux-thread-db.c: Update.
7637 * main.c: Update.
7638 * mi/mi-cmd-break.c: Update.
7639 * mi/mi-cmd-stack.c: Update.
7640 * mi/mi-interp.c: Update.
7641 * mi/mi-main.c: Update.
7642 * objc-lang.c: Update.
7643 * p-valprint.c: Update.
7644 * parse.c: Update.
7645 * ppc-linux-tdep.c: Update.
7646 * printcmd.c: Update.
7647 * python/py-arch.c: Update.
7648 * python/py-breakpoint.c: Update.
7649 * python/py-cmd.c: Update.
7650 * python/py-finishbreakpoint.c: Update.
7651 * python/py-frame.c: Update.
7652 * python/py-framefilter.c: Update.
7653 * python/py-gdb-readline.c: Update.
7654 * python/py-inferior.c: Update.
7655 * python/py-infthread.c: Update.
7656 * python/py-lazy-string.c: Update.
7657 * python/py-linetable.c: Update.
7658 * python/py-objfile.c: Update.
7659 * python/py-param.c: Update.
7660 * python/py-prettyprint.c: Update.
7661 * python/py-progspace.c: Update.
7662 * python/py-record-btrace.c: Update.
7663 * python/py-record.c: Update.
7664 * python/py-symbol.c: Update.
7665 * python/py-type.c: Update.
7666 * python/py-unwind.c: Update.
7667 * python/py-utils.c: Update.
7668 * python/py-value.c: Update.
7669 * python/python.c: Update.
7670 * record-btrace.c: Update.
7671 * record-full.c: Update.
7672 * remote-fileio.c: Update.
7673 * remote.c: Update.
7674 * riscv-tdep.c: Update.
7675 * rs6000-aix-tdep.c: Update.
7676 * rs6000-tdep.c: Update.
7677 * rust-exp.y: Update.
7678 * rust-lang.c: Update.
7679 * s390-tdep.c: Update.
7680 * selftest-arch.c: Update.
7681 * solib-dsbt.c: Update.
7682 * solib-frv.c: Update.
7683 * solib-spu.c: Update.
7684 * solib-svr4.c: Update.
7685 * solib.c: Update.
7686 * sparc64-linux-tdep.c: Update.
7687 * stack.c: Update.
7688 * symfile-mem.c: Update.
7689 * symmisc.c: Update.
7690 * target.c: Update.
7691 * thread.c: Update.
7692 * top.c: Update.
7693 * tracefile-tfile.c: Update.
7694 * tui/tui.c: Update.
7695 * typeprint.c: Update.
7696 * unittests/cli-utils-selftests.c: Update.
7697 * unittests/parse-connection-spec-selftests.c: Update.
7698 * valops.c: Update.
7699 * valprint.c: Update.
7700 * value.c: Update.
7701 * varobj.c: Update.
7702 * windows-nat.c: Update.
7703 * x86-linux-nat.c: Update.
7704 * xml-support.c: Update.
7705
a70b8144
TT
77062019-04-08 Tom Tromey <tom@tromey.com>
7707
7708 * xml-support.c: Use C++ exception handling.
7709 * x86-linux-nat.c: Use C++ exception handling.
7710 * windows-nat.c: Use C++ exception handling.
7711 * varobj.c: Use C++ exception handling.
7712 * value.c: Use C++ exception handling.
7713 * valprint.c: Use C++ exception handling.
7714 * valops.c: Use C++ exception handling.
7715 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7716 handling.
7717 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7718 * typeprint.c: Use C++ exception handling.
7719 * tui/tui.c: Use C++ exception handling.
7720 * tracefile-tfile.c: Use C++ exception handling.
7721 * top.c: Use C++ exception handling.
7722 * thread.c: Use C++ exception handling.
7723 * target.c: Use C++ exception handling.
7724 * symmisc.c: Use C++ exception handling.
7725 * symfile-mem.c: Use C++ exception handling.
7726 * stack.c: Use C++ exception handling.
7727 * sparc64-linux-tdep.c: Use C++ exception handling.
7728 * solib.c: Use C++ exception handling.
7729 * solib-svr4.c: Use C++ exception handling.
7730 * solib-spu.c: Use C++ exception handling.
7731 * solib-frv.c: Use C++ exception handling.
7732 * solib-dsbt.c: Use C++ exception handling.
7733 * selftest-arch.c: Use C++ exception handling.
7734 * s390-tdep.c: Use C++ exception handling.
7735 * rust-lang.c: Use C++ exception handling.
7736 * rust-exp.y: Use C++ exception handling.
7737 * rs6000-tdep.c: Use C++ exception handling.
7738 * rs6000-aix-tdep.c: Use C++ exception handling.
7739 * riscv-tdep.c: Use C++ exception handling.
7740 * remote.c: Use C++ exception handling.
7741 * remote-fileio.c: Use C++ exception handling.
7742 * record-full.c: Use C++ exception handling.
7743 * record-btrace.c: Use C++ exception handling.
7744 * python/python.c: Use C++ exception handling.
7745 * python/py-value.c: Use C++ exception handling.
7746 * python/py-utils.c: Use C++ exception handling.
7747 * python/py-unwind.c: Use C++ exception handling.
7748 * python/py-type.c: Use C++ exception handling.
7749 * python/py-symbol.c: Use C++ exception handling.
7750 * python/py-record.c: Use C++ exception handling.
7751 * python/py-record-btrace.c: Use C++ exception handling.
7752 * python/py-progspace.c: Use C++ exception handling.
7753 * python/py-prettyprint.c: Use C++ exception handling.
7754 * python/py-param.c: Use C++ exception handling.
7755 * python/py-objfile.c: Use C++ exception handling.
7756 * python/py-linetable.c: Use C++ exception handling.
7757 * python/py-lazy-string.c: Use C++ exception handling.
7758 * python/py-infthread.c: Use C++ exception handling.
7759 * python/py-inferior.c: Use C++ exception handling.
7760 * python/py-gdb-readline.c: Use C++ exception handling.
7761 * python/py-framefilter.c: Use C++ exception handling.
7762 * python/py-frame.c: Use C++ exception handling.
7763 * python/py-finishbreakpoint.c: Use C++ exception handling.
7764 * python/py-cmd.c: Use C++ exception handling.
7765 * python/py-breakpoint.c: Use C++ exception handling.
7766 * python/py-arch.c: Use C++ exception handling.
7767 * printcmd.c: Use C++ exception handling.
7768 * ppc-linux-tdep.c: Use C++ exception handling.
7769 * parse.c: Use C++ exception handling.
7770 * p-valprint.c: Use C++ exception handling.
7771 * objc-lang.c: Use C++ exception handling.
7772 * mi/mi-main.c: Use C++ exception handling.
7773 * mi/mi-interp.c: Use C++ exception handling.
7774 * mi/mi-cmd-stack.c: Use C++ exception handling.
7775 * mi/mi-cmd-break.c: Use C++ exception handling.
7776 * main.c: Use C++ exception handling.
7777 * linux-thread-db.c: Use C++ exception handling.
7778 * linux-tdep.c: Use C++ exception handling.
7779 * linux-nat.c: Use C++ exception handling.
7780 * linux-fork.c: Use C++ exception handling.
7781 * linespec.c: Use C++ exception handling.
7782 * language.c: Use C++ exception handling.
7783 * jit.c: Use C++ exception handling.
7784 * infrun.c: Use C++ exception handling.
7785 * infcmd.c: Use C++ exception handling.
7786 * infcall.c: Use C++ exception handling.
7787 * inf-loop.c: Use C++ exception handling.
7788 * i386-tdep.c: Use C++ exception handling.
7789 * i386-linux-tdep.c: Use C++ exception handling.
7790 * guile/scm-value.c: Use C++ exception handling.
7791 * guile/scm-type.c: Use C++ exception handling.
7792 * guile/scm-symtab.c: Use C++ exception handling.
7793 * guile/scm-symbol.c: Use C++ exception handling.
7794 * guile/scm-pretty-print.c: Use C++ exception handling.
7795 * guile/scm-ports.c: Use C++ exception handling.
7796 * guile/scm-param.c: Use C++ exception handling.
7797 * guile/scm-math.c: Use C++ exception handling.
7798 * guile/scm-lazy-string.c: Use C++ exception handling.
7799 * guile/scm-frame.c: Use C++ exception handling.
7800 * guile/scm-disasm.c: Use C++ exception handling.
7801 * guile/scm-cmd.c: Use C++ exception handling.
7802 * guile/scm-breakpoint.c: Use C++ exception handling.
7803 * guile/scm-block.c: Use C++ exception handling.
7804 * guile/guile-internal.h: Use C++ exception handling.
7805 * gnu-v3-abi.c: Use C++ exception handling.
7806 * gdbtypes.c: Use C++ exception handling.
7807 * frame.c: Use C++ exception handling.
7808 * frame-unwind.c: Use C++ exception handling.
7809 * fbsd-tdep.c: Use C++ exception handling.
7810 * f-valprint.c: Use C++ exception handling.
7811 * exec.c: Use C++ exception handling.
7812 * event-top.c: Use C++ exception handling.
7813 * event-loop.c: Use C++ exception handling.
7814 * eval.c: Use C++ exception handling.
7815 * dwarf2read.c: Use C++ exception handling.
7816 * dwarf2loc.c: Use C++ exception handling.
7817 * dwarf2-frame.c: Use C++ exception handling.
7818 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7819 * dwarf-index-write.c: Use C++ exception handling.
7820 * dwarf-index-cache.c: Use C++ exception handling.
7821 * dtrace-probe.c: Use C++ exception handling.
7822 * disasm-selftests.c: Use C++ exception handling.
7823 * darwin-nat.c: Use C++ exception handling.
7824 * cp-valprint.c: Use C++ exception handling.
7825 * cp-support.c: Use C++ exception handling.
7826 * cp-abi.c: Use C++ exception handling.
7827 * corelow.c: Use C++ exception handling.
7828 * completer.c: Use C++ exception handling.
7829 * compile/compile-object-run.c: Use C++ exception handling.
7830 * compile/compile-object-load.c: Use C++ exception handling.
7831 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7832 * compile/compile-c-symbols.c: Use C++ exception handling.
7833 * common/selftest.c: Use C++ exception handling.
7834 * common/new-op.c: Use C++ exception handling.
7835 * cli/cli-script.c: Use C++ exception handling.
7836 * cli/cli-interp.c: Use C++ exception handling.
7837 * cli/cli-cmds.c: Use C++ exception handling.
7838 * c-varobj.c: Use C++ exception handling.
7839 * btrace.c: Use C++ exception handling.
7840 * breakpoint.c: Use C++ exception handling.
7841 * break-catch-throw.c: Use C++ exception handling.
7842 * arch-utils.c: Use C++ exception handling.
7843 * amd64-tdep.c: Use C++ exception handling.
7844 * ada-valprint.c: Use C++ exception handling.
7845 * ada-typeprint.c: Use C++ exception handling.
7846 * ada-lang.c: Use C++ exception handling.
7847 * aarch64-tdep.c: Use C++ exception handling.
7848
3d6e9d23
TT
78492019-04-08 Tom Tromey <tom@tromey.com>
7850
7851 * xml-support.c (gdb_xml_parser::parse): Update.
7852 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7853 * value.c (show_convenience): Update.
7854 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7855 (test_parse_flags_qcs): Update.
7856 * thread.c (thr_try_catch_cmd): Update.
7857 * target.c (target_translate_tls_address): Update.
7858 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7859 (info_frame_command_core, frame_apply_command_count): Update.
7860 * rust-exp.y (rust_lex_exception_test): Update.
7861 * riscv-tdep.c (riscv_print_one_register_info): Update.
7862 * remote.c (remote_target::enable_btrace): Update.
7863 * record-btrace.c (record_btrace_enable_warn): Update.
7864 * python/py-utils.c (gdbpy_convert_exception): Update.
7865 * printcmd.c (do_one_display, print_variable_and_value): Update.
7866 * mi/mi-main.c (mi_print_exception): Update.
7867 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7868 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7869 * linux-nat.c (linux_nat_target::attach): Update.
7870 * linux-fork.c (class scoped_switch_fork_info): Update.
7871 * infrun.c (displaced_step_prepare): Update.
7872 * infcall.c (call_function_by_hand_dummy): Update.
7873 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7874 * gnu-v3-abi.c (print_one_vtable): Update.
7875 * frame.c (get_prev_frame_always): Update.
7876 * f-valprint.c (info_common_command_for_block): Update.
7877 * exec.c (try_open_exec_file): Update.
7878 * exceptions.c (print_exception, exception_print)
7879 (exception_fprintf, exception_print_same): Update.
7880 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7881 * dwarf-index-cache.c (index_cache::store)
7882 (index_cache::lookup_gdb_index): Update.
7883 * darwin-nat.c (maybe_cache_shell): Update.
7884 * cp-valprint.c (cp_print_value_fields): Update.
7885 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7886 (gcc_cplus_symbol_address): Update.
7887 * compile/compile-c-symbols.c (gcc_convert_symbol)
7888 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7889 * common/selftest.c: Update.
7890 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7891 a std::string.
7892 (exception_try_scope_entry, exception_try_scope_exit): Don't
7893 declare.
7894 (struct exception_try_scope): Remove.
7895 (TRY): Don't use exception_try_scope.
7896 (struct gdb_exception): Add constructor, operator=.
7897 <what>: New method.
7898 (struct gdb_exception_RETURN_MASK_ALL)
7899 (struct gdb_exception_RETURN_MASK_ERROR)
7900 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7901 (struct gdb_quit_bad_alloc): Update.
7902 * common/common-exceptions.c (exception_none): Change
7903 initializer.
7904 (struct catcher) <state, exception>: Initialize inline.
7905 <prev>: Remove member.
7906 (current_catcher): Remove.
7907 (catchers): New global.
7908 (exceptions_state_mc_init): Simplify.
7909 (catcher_pop): Remove.
7910 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7911 (try_scope_depth, exception_try_scope_entry)
7912 (exception_try_scope_exit): Remove.
7913 (throw_exception_sjlj): Update.
7914 (exception_messages, exception_messages_size): Remove.
7915 (throw_it): Simplify.
7916 (gdb_exception_sliced_copy): Remove.
7917 (throw_exception_cxx): Update.
7918 * cli/cli-script.c (script_from_file): Update.
7919 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7920 Update.
7921 * ada-valprint.c (ada_val_print): Update.
7922 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7923 (create_excep_cond_exprs): Update.
7924
c5c10118
TT
79252019-04-08 Tom Tromey <tom@tromey.com>
7926
7927 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7928 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7929 (TRY, CATCH, END_CATCH): Remove some definitions.
7930 * common/common-exceptions.c: Don't use GDB_XCPT.
7931 (catcher_list_size): Remove.
7932 (throw_exception, throw_it): Simplify.
7933
4de283e4
TT
79342019-04-05 Tom Tromey <tom@tromey.com>
7935
7936 Revert the header-sorting patch.
7937 * ft32-tdep.c: Revert.
7938 * frv-tdep.c: Revert.
7939 * frv-linux-tdep.c: Revert.
7940 * frame.c: Revert.
7941 * frame-unwind.c: Revert.
7942 * frame-base.c: Revert.
7943 * fork-child.c: Revert.
7944 * findvar.c: Revert.
7945 * findcmd.c: Revert.
7946 * filesystem.c: Revert.
7947 * filename-seen-cache.h: Revert.
7948 * filename-seen-cache.c: Revert.
7949 * fbsd-tdep.c: Revert.
7950 * fbsd-nat.h: Revert.
7951 * fbsd-nat.c: Revert.
7952 * f-valprint.c: Revert.
7953 * f-typeprint.c: Revert.
7954 * f-lang.c: Revert.
7955 * extension.h: Revert.
7956 * extension.c: Revert.
7957 * extension-priv.h: Revert.
7958 * expprint.c: Revert.
7959 * exec.h: Revert.
7960 * exec.c: Revert.
7961 * exceptions.c: Revert.
7962 * event-top.c: Revert.
7963 * event-loop.c: Revert.
7964 * eval.c: Revert.
7965 * elfread.c: Revert.
7966 * dwarf2read.h: Revert.
7967 * dwarf2read.c: Revert.
7968 * dwarf2loc.c: Revert.
7969 * dwarf2expr.h: Revert.
7970 * dwarf2expr.c: Revert.
7971 * dwarf2-frame.c: Revert.
7972 * dwarf2-frame-tailcall.c: Revert.
7973 * dwarf-index-write.h: Revert.
7974 * dwarf-index-write.c: Revert.
7975 * dwarf-index-common.c: Revert.
7976 * dwarf-index-cache.h: Revert.
7977 * dwarf-index-cache.c: Revert.
7978 * dummy-frame.c: Revert.
7979 * dtrace-probe.c: Revert.
7980 * disasm.h: Revert.
7981 * disasm.c: Revert.
7982 * disasm-selftests.c: Revert.
7983 * dictionary.c: Revert.
7984 * dicos-tdep.c: Revert.
7985 * demangle.c: Revert.
7986 * dcache.h: Revert.
7987 * dcache.c: Revert.
7988 * darwin-nat.h: Revert.
7989 * darwin-nat.c: Revert.
7990 * darwin-nat-info.c: Revert.
7991 * d-valprint.c: Revert.
7992 * d-namespace.c: Revert.
7993 * d-lang.c: Revert.
7994 * ctf.c: Revert.
7995 * csky-tdep.c: Revert.
7996 * csky-linux-tdep.c: Revert.
7997 * cris-tdep.c: Revert.
7998 * cris-linux-tdep.c: Revert.
7999 * cp-valprint.c: Revert.
8000 * cp-support.c: Revert.
8001 * cp-namespace.c: Revert.
8002 * cp-abi.c: Revert.
8003 * corelow.c: Revert.
8004 * corefile.c: Revert.
8005 * continuations.c: Revert.
8006 * completer.h: Revert.
8007 * completer.c: Revert.
8008 * complaints.c: Revert.
8009 * coffread.c: Revert.
8010 * coff-pe-read.c: Revert.
8011 * cli-out.h: Revert.
8012 * cli-out.c: Revert.
8013 * charset.c: Revert.
8014 * c-varobj.c: Revert.
8015 * c-valprint.c: Revert.
8016 * c-typeprint.c: Revert.
8017 * c-lang.c: Revert.
8018 * buildsym.c: Revert.
8019 * buildsym-legacy.c: Revert.
8020 * build-id.h: Revert.
8021 * build-id.c: Revert.
8022 * btrace.c: Revert.
8023 * bsd-uthread.c: Revert.
8024 * breakpoint.h: Revert.
8025 * breakpoint.c: Revert.
8026 * break-catch-throw.c: Revert.
8027 * break-catch-syscall.c: Revert.
8028 * break-catch-sig.c: Revert.
8029 * blockframe.c: Revert.
8030 * block.c: Revert.
8031 * bfin-tdep.c: Revert.
8032 * bfin-linux-tdep.c: Revert.
8033 * bfd-target.c: Revert.
8034 * bcache.c: Revert.
8035 * ax-general.c: Revert.
8036 * ax-gdb.h: Revert.
8037 * ax-gdb.c: Revert.
8038 * avr-tdep.c: Revert.
8039 * auxv.c: Revert.
8040 * auto-load.c: Revert.
8041 * arm-wince-tdep.c: Revert.
8042 * arm-tdep.c: Revert.
8043 * arm-symbian-tdep.c: Revert.
8044 * arm-pikeos-tdep.c: Revert.
8045 * arm-obsd-tdep.c: Revert.
8046 * arm-nbsd-tdep.c: Revert.
8047 * arm-nbsd-nat.c: Revert.
8048 * arm-linux-tdep.c: Revert.
8049 * arm-linux-nat.c: Revert.
8050 * arm-fbsd-tdep.c: Revert.
8051 * arm-fbsd-nat.c: Revert.
8052 * arm-bsd-tdep.c: Revert.
8053 * arch-utils.c: Revert.
8054 * arc-tdep.c: Revert.
8055 * arc-newlib-tdep.c: Revert.
8056 * annotate.h: Revert.
8057 * annotate.c: Revert.
8058 * amd64-windows-tdep.c: Revert.
8059 * amd64-windows-nat.c: Revert.
8060 * amd64-tdep.c: Revert.
8061 * amd64-sol2-tdep.c: Revert.
8062 * amd64-obsd-tdep.c: Revert.
8063 * amd64-obsd-nat.c: Revert.
8064 * amd64-nbsd-tdep.c: Revert.
8065 * amd64-nbsd-nat.c: Revert.
8066 * amd64-nat.c: Revert.
8067 * amd64-linux-tdep.c: Revert.
8068 * amd64-linux-nat.c: Revert.
8069 * amd64-fbsd-tdep.c: Revert.
8070 * amd64-fbsd-nat.c: Revert.
8071 * amd64-dicos-tdep.c: Revert.
8072 * amd64-darwin-tdep.c: Revert.
8073 * amd64-bsd-nat.c: Revert.
8074 * alpha-tdep.c: Revert.
8075 * alpha-obsd-tdep.c: Revert.
8076 * alpha-nbsd-tdep.c: Revert.
8077 * alpha-mdebug-tdep.c: Revert.
8078 * alpha-linux-tdep.c: Revert.
8079 * alpha-linux-nat.c: Revert.
8080 * alpha-bsd-tdep.c: Revert.
8081 * alpha-bsd-nat.c: Revert.
8082 * aix-thread.c: Revert.
8083 * agent.c: Revert.
8084 * addrmap.c: Revert.
8085 * ada-varobj.c: Revert.
8086 * ada-valprint.c: Revert.
8087 * ada-typeprint.c: Revert.
8088 * ada-tasks.c: Revert.
8089 * ada-lang.c: Revert.
8090 * aarch64-tdep.c: Revert.
8091 * aarch64-ravenscar-thread.c: Revert.
8092 * aarch64-newlib-tdep.c: Revert.
8093 * aarch64-linux-tdep.c: Revert.
8094 * aarch64-linux-nat.c: Revert.
8095 * aarch64-fbsd-tdep.c: Revert.
8096 * aarch64-fbsd-nat.c: Revert.
8097 * aarch32-linux-nat.c: Revert.
8098
d55e5aa6
TT
80992019-04-05 Tom Tromey <tom@tromey.com>
8100
8101 * ft32-tdep.c: Sort headers.
8102 * frv-tdep.c: Sort headers.
8103 * frv-linux-tdep.c: Sort headers.
8104 * frame.c: Sort headers.
8105 * frame-unwind.c: Sort headers.
8106 * frame-base.c: Sort headers.
8107 * fork-child.c: Sort headers.
8108 * findvar.c: Sort headers.
8109 * findcmd.c: Sort headers.
8110 * filesystem.c: Sort headers.
8111 * filename-seen-cache.h: Sort headers.
8112 * filename-seen-cache.c: Sort headers.
8113 * fbsd-tdep.c: Sort headers.
8114 * fbsd-nat.h: Sort headers.
8115 * fbsd-nat.c: Sort headers.
8116 * f-valprint.c: Sort headers.
8117 * f-typeprint.c: Sort headers.
8118 * f-lang.c: Sort headers.
8119 * extension.h: Sort headers.
8120 * extension.c: Sort headers.
8121 * extension-priv.h: Sort headers.
8122 * expprint.c: Sort headers.
8123 * exec.h: Sort headers.
8124 * exec.c: Sort headers.
8125 * exceptions.c: Sort headers.
8126 * event-top.c: Sort headers.
8127 * event-loop.c: Sort headers.
8128 * eval.c: Sort headers.
8129 * elfread.c: Sort headers.
8130 * dwarf2read.h: Sort headers.
8131 * dwarf2read.c: Sort headers.
8132 * dwarf2loc.c: Sort headers.
8133 * dwarf2expr.h: Sort headers.
8134 * dwarf2expr.c: Sort headers.
8135 * dwarf2-frame.c: Sort headers.
8136 * dwarf2-frame-tailcall.c: Sort headers.
8137 * dwarf-index-write.h: Sort headers.
8138 * dwarf-index-write.c: Sort headers.
8139 * dwarf-index-common.c: Sort headers.
8140 * dwarf-index-cache.h: Sort headers.
8141 * dwarf-index-cache.c: Sort headers.
8142 * dummy-frame.c: Sort headers.
8143 * dtrace-probe.c: Sort headers.
8144 * disasm.h: Sort headers.
8145 * disasm.c: Sort headers.
8146 * disasm-selftests.c: Sort headers.
8147 * dictionary.c: Sort headers.
8148 * dicos-tdep.c: Sort headers.
8149 * demangle.c: Sort headers.
8150 * dcache.h: Sort headers.
8151 * dcache.c: Sort headers.
8152 * darwin-nat.h: Sort headers.
8153 * darwin-nat.c: Sort headers.
8154 * darwin-nat-info.c: Sort headers.
8155 * d-valprint.c: Sort headers.
8156 * d-namespace.c: Sort headers.
8157 * d-lang.c: Sort headers.
8158 * ctf.c: Sort headers.
8159 * csky-tdep.c: Sort headers.
8160 * csky-linux-tdep.c: Sort headers.
8161 * cris-tdep.c: Sort headers.
8162 * cris-linux-tdep.c: Sort headers.
8163 * cp-valprint.c: Sort headers.
8164 * cp-support.c: Sort headers.
8165 * cp-namespace.c: Sort headers.
8166 * cp-abi.c: Sort headers.
8167 * corelow.c: Sort headers.
8168 * corefile.c: Sort headers.
8169 * continuations.c: Sort headers.
8170 * completer.h: Sort headers.
8171 * completer.c: Sort headers.
8172 * complaints.c: Sort headers.
8173 * coffread.c: Sort headers.
8174 * coff-pe-read.c: Sort headers.
8175 * cli-out.h: Sort headers.
8176 * cli-out.c: Sort headers.
8177 * charset.c: Sort headers.
8178 * c-varobj.c: Sort headers.
8179 * c-valprint.c: Sort headers.
8180 * c-typeprint.c: Sort headers.
8181 * c-lang.c: Sort headers.
8182 * buildsym.c: Sort headers.
8183 * buildsym-legacy.c: Sort headers.
8184 * build-id.h: Sort headers.
8185 * build-id.c: Sort headers.
8186 * btrace.c: Sort headers.
8187 * bsd-uthread.c: Sort headers.
8188 * breakpoint.h: Sort headers.
8189 * breakpoint.c: Sort headers.
8190 * break-catch-throw.c: Sort headers.
8191 * break-catch-syscall.c: Sort headers.
8192 * break-catch-sig.c: Sort headers.
8193 * blockframe.c: Sort headers.
8194 * block.c: Sort headers.
8195 * bfin-tdep.c: Sort headers.
8196 * bfin-linux-tdep.c: Sort headers.
8197 * bfd-target.c: Sort headers.
8198 * bcache.c: Sort headers.
8199 * ax-general.c: Sort headers.
8200 * ax-gdb.h: Sort headers.
8201 * ax-gdb.c: Sort headers.
8202 * avr-tdep.c: Sort headers.
8203 * auxv.c: Sort headers.
8204 * auto-load.c: Sort headers.
8205 * arm-wince-tdep.c: Sort headers.
8206 * arm-tdep.c: Sort headers.
8207 * arm-symbian-tdep.c: Sort headers.
8208 * arm-pikeos-tdep.c: Sort headers.
8209 * arm-obsd-tdep.c: Sort headers.
8210 * arm-nbsd-tdep.c: Sort headers.
8211 * arm-nbsd-nat.c: Sort headers.
8212 * arm-linux-tdep.c: Sort headers.
8213 * arm-linux-nat.c: Sort headers.
8214 * arm-fbsd-tdep.c: Sort headers.
8215 * arm-fbsd-nat.c: Sort headers.
8216 * arm-bsd-tdep.c: Sort headers.
8217 * arch-utils.c: Sort headers.
8218 * arc-tdep.c: Sort headers.
8219 * arc-newlib-tdep.c: Sort headers.
8220 * annotate.h: Sort headers.
8221 * annotate.c: Sort headers.
8222 * amd64-windows-tdep.c: Sort headers.
8223 * amd64-windows-nat.c: Sort headers.
8224 * amd64-tdep.c: Sort headers.
8225 * amd64-sol2-tdep.c: Sort headers.
8226 * amd64-obsd-tdep.c: Sort headers.
8227 * amd64-obsd-nat.c: Sort headers.
8228 * amd64-nbsd-tdep.c: Sort headers.
8229 * amd64-nbsd-nat.c: Sort headers.
8230 * amd64-nat.c: Sort headers.
8231 * amd64-linux-tdep.c: Sort headers.
8232 * amd64-linux-nat.c: Sort headers.
8233 * amd64-fbsd-tdep.c: Sort headers.
8234 * amd64-fbsd-nat.c: Sort headers.
8235 * amd64-dicos-tdep.c: Sort headers.
8236 * amd64-darwin-tdep.c: Sort headers.
8237 * amd64-bsd-nat.c: Sort headers.
8238 * alpha-tdep.c: Sort headers.
8239 * alpha-obsd-tdep.c: Sort headers.
8240 * alpha-nbsd-tdep.c: Sort headers.
8241 * alpha-mdebug-tdep.c: Sort headers.
8242 * alpha-linux-tdep.c: Sort headers.
8243 * alpha-linux-nat.c: Sort headers.
8244 * alpha-bsd-tdep.c: Sort headers.
8245 * alpha-bsd-nat.c: Sort headers.
8246 * aix-thread.c: Sort headers.
8247 * agent.c: Sort headers.
8248 * addrmap.c: Sort headers.
8249 * ada-varobj.c: Sort headers.
8250 * ada-valprint.c: Sort headers.
8251 * ada-typeprint.c: Sort headers.
8252 * ada-tasks.c: Sort headers.
8253 * ada-lang.c: Sort headers.
8254 * aarch64-tdep.c: Sort headers.
8255 * aarch64-ravenscar-thread.c: Sort headers.
8256 * aarch64-newlib-tdep.c: Sort headers.
8257 * aarch64-linux-tdep.c: Sort headers.
8258 * aarch64-linux-nat.c: Sort headers.
8259 * aarch64-fbsd-tdep.c: Sort headers.
8260 * aarch64-fbsd-nat.c: Sort headers.
8261 * aarch32-linux-nat.c: Sort headers.
8262
699bd4cf
TT
82632019-04-04 Tom Tromey <tom@tromey.com>
8264
8265 * varobj.c (varobj_create): Update.
8266 * rust-exp.y (struct rust_parser) <update_innermost_block,
8267 lookup_symbol>: New methods.
8268 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8269 Rename.
8270 (rust_parser::rust_lookup_type)
8271 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8272 * printcmd.c (display_command, do_one_display): Update.
8273 * parser-defs.h (struct parser_state) <parser_state>: Add
8274 "tracker" parameter.
8275 (block_tracker): New member.
8276 (class innermost_block_tracker) <innermost_block_tracker>: Add
8277 "types" parameter.
8278 <reset>: Remove method.
8279 (innermost_block): Don't declare.
8280 (null_post_parser): Update.
8281 * parse.c (innermost_block): Remove global.
8282 (write_dollar_variable): Update.
8283 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8284 Remove "tracker_types" parameter.
8285 (parse_expression): Add "tracker" parameter.
8286 (parse_expression_for_completion): Update.
8287 (null_post_parser): Add "tracker" parameter.
8288 * p-exp.y: Update rules.
8289 * m2-exp.y: Update rules.
8290 * language.h (struct language_defn) <la_post_parser>: Add
8291 "tracker" parameter.
8292 * go-exp.y: Update rules.
8293 * f-exp.y: Update rules.
8294 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8295 parameter.
8296 * d-exp.y: Update rules.
8297 * c-exp.y: Update rules.
8298 * breakpoint.c (set_breakpoint_condition): Create an
8299 innermost_block_tracker.
8300 (watch_command_1): Likewise.
8301 * ada-lang.c (resolve): Add "tracker" parameter.
8302 (resolve_subexp): Likewise.
8303 * ada-exp.y (write_var_from_sym): Update.
8304
dac43e32
TT
83052019-04-04 Tom Tromey <tom@tromey.com>
8306
8307 * type-stack.h: New file.
8308 * type-stack.c: New file.
8309 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8310 type-stack.h.
8311 (insert_into_type_stack, insert_type, push_type, push_type_int)
8312 (insert_type_address_space, pop_type, pop_type_int)
8313 (pop_typelist, pop_type_stack, append_type_stack)
8314 (push_type_stack, get_type_stack, push_typelist)
8315 (follow_type_instance_flags, follow_types): Don't declare.
8316 * parse.c (type_stack): Remove global.
8317 (parse_exp_in_context): Update.
8318 (insert_into_type_stack, insert_type, push_type, push_type_int)
8319 (insert_type_address_space, pop_type, pop_type_int)
8320 (pop_typelist, pop_type_stack, append_type_stack)
8321 (push_type_stack, get_type_stack, push_typelist)
8322 (follow_type_instance_flags, follow_types): Remove (moved to
8323 type-stack.c).
8324 * f-exp.y (type_stack): New global.
8325 Update rules.
8326 (push_kind_type, f_parse): Update.
8327 * d-exp.y (type_stack): New global.
8328 Update rules.
8329 (d_parse): Update.
8330 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8331 Update rules.
8332 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8333 (HFILES_NO_SRCDIR): Add type-stack.h.
8334
2a612529
TT
83352019-04-04 Tom Tromey <tom@tromey.com>
8336
8337 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8338 (rust_parser::convert_ast_to_expression, rust_parse)
8339 (rust_lex_test_completion, rust_lex_tests): Update.
8340 * parser-defs.h (struct expr_completion_state): New.
8341 (struct parser_state) <parser_state>: Add completion parameter.
8342 <mark_struct_expression, mark_completion_tag>: New methods.
8343 <parse_completion, m_completion_state>: New members.
8344 (prefixify_expression, null_post_parser): Update.
8345 (mark_struct_expression, mark_completion_tag): Don't declare.
8346 * parse.c (parse_completion, expout_last_struct)
8347 (expout_tag_completion_type, expout_completion_name): Remove
8348 globals.
8349 (parser_state::mark_struct_expression)
8350 (parser_state::mark_completion_tag): Now methods.
8351 (prefixify_expression): Add last_struct parameter.
8352 (prefixify_subexp): Likewise.
8353 (parse_exp_1): Update.
8354 (parse_exp_in_context): Add cstate parameter. Update.
8355 (parse_expression_for_completion): Create an
8356 expr_completion_state.
8357 (null_post_parser): Add "completion" parameter.
8358 * p-exp.y: Update rules.
8359 (yylex): Update.
8360 * language.h (struct language_defn) <la_post_parser>: Add
8361 "completing" parameter.
8362 * go-exp.y: Update rules.
8363 (lex_one_token): Update.
8364 * expression.h (parse_completion): Don't declare.
8365 * d-exp.y: Update rules.
8366 (lex_one_token): Update rules.
8367 * c-exp.y: Update rules.
8368 (lex_one_token): Update.
8369 * ada-lang.c (resolve): Add "parse_completion" parameter.
8370 (resolve_subexp): Likewise.
8371 (ada_resolve_function): Likewise.
8372
43476f0b
TT
83732019-04-04 Tom Tromey <tom@tromey.com>
8374
8375 * parser-defs.h (struct parser_state) <start_arglist,
8376 end_arglist>: New methods.
8377 <arglist_len, m_funcall_chain>: New members.
8378 (arglist_len, start_arglist, end_arglist): Don't declare.
8379 * parse.c (arglist_len, funcall_chain): Remove global.
8380 (start_arglist, end_arglist): Remove functions.
8381 (parse_exp_in_context): Update.
8382 * p-exp.y: Update rules.
8383 * m2-exp.y: Update rules.
8384 * go-exp.y: Update rules.
8385 * f-exp.y: Update rules.
8386 * d-exp.y: Update rules.
8387 * c-exp.y: Update rules.
8388
5776fca3
TT
83892019-04-04 Tom Tromey <tom@tromey.com>
8390
8391 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8392 lex_operator, push_back>: New methods.
8393 Update all rules.
8394 (rust_parser::lex_hex, lex_escape): Rename and update.
8395 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8396 (rust_parser::lex_operator): Rename and update.
8397 (rust_parser::lex_number, rustyylex, rustyyerror)
8398 (rust_lex_test_init, rust_lex_test_sequence)
8399 (rust_lex_test_push_back, rust_lex_tests): Update.
8400 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8401 parameter.
8402 <lexptr, prev_lexptr>: New members.
8403 (lexptr, prev_lexptr): Don't declare.
8404 * parse.c (lexptr, prev_lexptr): Remove globals.
8405 (parse_exp_in_context): Update.
8406 * p-exp.y (yylex, yyerror): Update.
8407 * m2-exp.y (parse_number, yylex, yyerror): Update.
8408 * go-exp.y (lex_one_token, yyerror): Update.
8409 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8410 * d-exp.y (lex_one_token, yyerror): Update.
8411 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8412 (lex_one_token, yyerror): Update.
8413 * ada-lex.l (YY_INPUT): Update.
8414 (rewind_to_char): Update.
8415 * ada-exp.y (yyerror): Update.
8416
8621b685
TT
84172019-04-04 Tom Tromey <tom@tromey.com>
8418
8419 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8420 * parser-defs.h (struct parser_state) <parser_state>: Add new
8421 parameter.
8422 <comma_terminates>: New member.
8423 (comma_terminates): Don't declare global.
8424 * parse.c (comma_terminates): Remove global.
8425 (parse_exp_in_context): Update.
8426 * p-exp.y (yylex): Update.
8427 * m2-exp.y (yylex): Update.
8428 * go-exp.y (lex_one_token): Update.
8429 * f-exp.y (yylex): Update.
8430 * d-exp.y (lex_one_token): Update.
8431 * c-exp.y (lex_one_token): Update.
8432 * ada-lex.l: Update.
8433
28aaf3fd
TT
84342019-04-04 Tom Tromey <tom@tromey.com>
8435
8436 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8437 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8438 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8439 * parser-defs.h (paren_depth): Don't declare.
8440 * parse.c (paren_depth): Remove global.
8441 (parse_exp_in_context): Update.
8442 * p-exp.y (paren_depth): New global.
8443 (pascal_parse): Initialize it.
8444 * m2-exp.y (paren_depth): New global.
8445 (m2_parse): Initialize it.
8446 * go-exp.y (paren_depth): New global.
8447 (go_parse): Initialize it.
8448 * f-exp.y (paren_depth): New global.
8449 (f_parse): Initialize it.
8450 * d-exp.y (paren_depth): New global.
8451 (d_parse): Initialize it.
8452 * c-exp.y (paren_depth): New global.
8453 (c_parse): Initialize it.
8454 * ada-lex.l (paren_depth): New global.
8455 (lexer_init): Initialize it.
8456
1e58a4a4
TT
84572019-04-04 Tom Tromey <tom@tromey.com>
8458
8459 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8460 (rust_parser::convert_ast_to_type)
8461 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8462 * parser-defs.h (struct parser_state) <parser_state>: Add
8463 parameters. Initialize new members.
8464 <expression_context_block, expression_context_pc>: New members.
8465 * parse.c (expression_context_block, expression_context_pc):
8466 Remove globals.
8467 (parse_exp_in_context): Update.
8468 * p-exp.y: Update all rules.
8469 (yylex): Update.
8470 * m2-exp.y: Update all rules.
8471 (yylex): Update.
8472 * go-exp.y (yylex): Update.
8473 * f-exp.y (yylex): Update.
8474 * d-exp.y: Update all rules.
8475 (yylex): Update.
8476 * c-exp.y: Update all rules.
8477 (lex_one_token, classify_name, yylex, c_parse): Update.
8478 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8479
37eedb39
TT
84802019-04-04 Tom Tromey <tom@tromey.com>
8481
8482 * gdbarch.h, gdbarch.c: Rebuild.
8483 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8484 * stap-probe.h:
8485 (struct stap_parse_info): Replace "parser_state" with
8486 "expr_builder".
8487 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8488 (parser_state): New class.
8489 * parse.c (expr_builder): Rename.
8490 (expr_builder::release): Rename.
8491 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8492 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8493 (write_exp_elt_longcst, write_exp_elt_floatcst)
8494 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8495 (write_exp_string_vector, write_exp_bitstring)
8496 (write_exp_msymbol, mark_struct_expression)
8497 (write_dollar_variable)
8498 (insert_type_address_space, increase_expout_size): Replace
8499 "parser_state" with "expr_builder".
8500 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8501 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8502 "parser_state" with "expr_builder".
8503
73923d7e
TT
85042019-04-04 Tom Tromey <tom@tromey.com>
8505
8506 * rust-exp.y: Replace "parse_language" with method call.
8507 * p-exp.y:
8508 (yylex): Replace "parse_language" with method call.
8509 * m2-exp.y:
8510 (yylex): Replace "parse_language" with method call.
8511 * go-exp.y (classify_name): Replace "parse_language" with method
8512 call.
8513 * f-exp.y (yylex): Replace "parse_language" with method call.
8514 * d-exp.y (lex_one_token): Replace "parse_language" with method
8515 call.
8516 * c-exp.y:
8517 (lex_one_token, classify_name, yylex): Replace "parse_language"
8518 with method call.
8519 * ada-exp.y (find_primitive_type, type_char)
8520 (type_system_address): Replace "parse_language" with method call.
8521
fa9f5be6
TT
85222019-04-04 Tom Tromey <tom@tromey.com>
8523
8524 * rust-exp.y: Replace "parse_gdbarch" with method call.
8525 * parse.c (write_dollar_variable, insert_type_address_space):
8526 Replace "parse_gdbarch" with method call.
8527 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8528 call.
8529 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8530 call.
8531 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8532 "parse_gdbarch" with method call.
8533 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8534 with method call.
8535 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8536 "parse_gdbarch" with method call.
8537 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8538 "parse_gdbarch" with method call.
8539 * c-exp.y (parse_type, parse_number, classify_name): Replace
8540 "parse_gdbarch" with method call.
8541 * ada-lex.l: Replace "parse_gdbarch" with method call.
8542 * ada-exp.y (parse_type, find_primitive_type, type_char)
8543 (type_system_address): Replace "parse_gdbarch" with method call.
8544
1201a264
TT
85452019-04-04 Tom Tromey <tom@tromey.com>
8546
8547 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8548 * stap-probe.c (stap_parse_argument): Update.
8549 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8550 initial_size parameter.
8551 * rust-exp.y (rust_lex_tests): Update.
8552 * parse.c (parser_state): Update.
8553 (parse_exp_in_context): Update.
8554 * parser-defs.h (struct parser_state) <parser_state>: Remove
8555 "initial_size" parameter.
8556
e3980ce2
TT
85572019-04-04 Tom Tromey <tom@tromey.com>
8558
8559 * parser-defs.h (increase_expout_size): Don't declare.
8560 * parse.c (increase_expout_size): Now static.
8561
e9f8e3f1
TS
85622019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8563
8564 * gnu-nat.c (gnu_nat_target::wait): Fix
8565 target_waitstatus_to_string call.
8566
d7df6549
AB
85672019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8568
8569 * eval.c (evaluate_subexp_standard): Handle internal functions
8570 during Fortran function call handling.
8571
8bdc1658
AB
85722019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8573
8574 * NEWS: Mention new internal functions.
8575 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8576 (read_base_type): Use dwarf2_init_complex_target_type.
8577 * value.c (creal_internal_fn): New function.
8578 (cimag_internal_fn): New function.
8579 (_initialize_values): Register new internal functions.
8580
c29705b7
PW
85812019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8582
8583 * infrun.c (stop_all_threads): If debug_infrun, always
8584 trace the wait status after wait_one, using
8585 target_waitstatus_to_string and target_pid_to_str.
8586 (handle_inferior_event): Replace various trace of
8587 wait status kind by a single trace.
8588 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8589 wait status kind image by target_waitstatus_to_string.
8590 * target/waitstatus.c (target_waitstatus_to_string): Fix
8591 obsolete comment.
8592
05caa1d2
TT
85932019-04-01 Tom Tromey <tromey@adacore.com>
8594
8595 PR symtab/23331:
8596 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8597
9d1447e0
SDJ
85982019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8599 Pedro Alves <palves@redhat.com>
8600
8601 * top.c (quit_force): Call 'finalize_values'.
8602 * value.c (finalize_values): New function.
8603 * value.h (finalize_values): Declare.
8604
7734102d
EZ
86052019-03-30 Eli Zaretskii <eliz@gnu.org>
8606
8607 * NEWS: Announce $_gdb_major and $_gdb_minor.
8608
8609 * top.c (init_gdb_version_vars): New function.
8610 (gdb_init): Call init_gdb_version_vars.
8611
188e1fa9
TT
86122019-03-29 Tom Tromey <tromey@adacore.com>
8613
8614 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8615 help text. Remove dead code.
8616
2880242d
KS
86172019-03-29 Keith Seitz <keiths@redhat.com>
8618
8619 From Siddhesh Poyarekar:
8620 * f-lang.h (f77_get_upperbound): Return LONGEST.
8621 (f77_get_lowerbound): Likewise.
8622 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8623 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8624 print them.
8625 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8626 plongest to format print it.
8627 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8628 (f77_get_upperbound): Likewise.
8629 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8630 LOWER_BOUND to LONGEST.
8631 (f77_create_arrayprint_offset_tbl): Likewise.
8632
cc1defb1
KS
86332019-03-29 Keith Seitz <keiths@redhat.com>
8634
8635 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8636 %s/pulongest for TYPE_LENGTH instead of %d in format
8637 strings.
8638 * ada-typerint.c (ada_print_type): Likewise.
8639 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8640 * compile/compile-c-support.c (generate_register_struct): Likewise.
8641 * gdbtypes.c (recursive_dump_type): Likewise.
8642 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8643 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8644 instead of %d in format strings.
8645 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8646 to std::min to ULONGEST.
8647 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8648 instead of %d in format strings.
8649 * tracepoint.c (info_scope_command): Likewise.
8650 * typeprint.c (print_offset_data::update)
8651 (print_offset_data::finish): Likewise.
8652 * xtensa-tdep.c (xtensa_store_return_value)
8653 (xtensa_push_dummy_call): Likewise.
8654
e432ccf1
JT
86552019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8656
8657 * windows-nat.c (display_selector): Fixed format specifications
8658 for 64-bit Cygwin.
8659
65d2b333
PW
86602019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8661
8662 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8663
f489207e
SL
86642019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8665
8666 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8667 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8668 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8669 (nios2_linux_init_abi): Install it.
8670
bffa1015
AH
86712019-03-28 Alan Hayward <alan.hayward@arm.com>
8672
8673 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8674
fc96163a
AH
86752019-03-28 Alan Hayward <alan.hayward@arm.com>
8676
8677 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8678
20dc7e9b
PW
86792019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8680 Tom Tromey <tromey@adacore.com>
8681
8682 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8683
7f5331a8
JB
86842019-03-26 Joel Brobecker <brobecker@adacore.com>
8685
8686 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8687 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8688 method to compute the bounds of range types. Also print "[evaluated]"
8689 if the bounds' values come from a dynamic evaluation.
8690
18c77628
AB
86912019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8692
8693 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8694 whitespace when pretty printing is on.
8695
53c973f2
AH
86962019-03-26 Alan Hayward <alan.hayward@arm.com>
8697
e79be6e5 8698 * ppc-linux-nat.c: Add include.
53c973f2 8699
d851aa71
AH
87002019-03-26 Alan Hayward <alan.hayward@arm.com>
8701
e79be6e5 8702 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 8703
2fe7bab7
AH
87042019-03-26 Alan Hayward <alan.hayward@arm.com>
8705
e79be6e5 8706 * arm-linux-nat.c: Add include.
2fe7bab7 8707
068ef30e
SM
87082019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8709
8710 * source-cache.c (source_cache::get_source_lines): Re-read
8711 fullname after calling open_source_file.
8712
81a24d04
JB
87132019-03-25 John Baldwin <jhb@FreeBSD.org>
8714
8715 * NEWS: Mention TLS support for FreeBSD.
8716
79e7ae11
TT
87172019-03-25 Tom Tromey <tromey@adacore.com>
8718
8719 * minsyms.c (BUNCH_SIZE): Update comment.
8720 (~minimal_symbol_reader): Remove old comment.
8721 (compact_minimal_symbols): Update comment.
8722 (minimal_symbol_reader::install): Remove old comment. Update
8723 other comments.
8724
d45963c2
AH
87252019-03-25 Alan Hayward <alan.hayward@arm.com>
8726
8727 * s390-linux-nat.c: Add include.
8728
0f83012e
AH
87292019-03-25 Alan Hayward <alan.hayward@arm.com>
8730
8731 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8732 Call linux_get_hwcap.
8733 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8734 Likewise.
8735 (aarch64_linux_get_hwcap): Remove function.
8736 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8737 declaration.
8738 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8739 linux_get_hwcap.
8740 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8741 * linux-tdep.c (linux_get_hwcap): Add function.
8742 (linux_get_hwcap2): Likewise.
8743 * linux-tdep.h (linux_get_hwcap): Add declaration.
8744 (linux_get_hwcap2): Likewise.
8745 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8746 (ppc_linux_get_hwcap2): Likewise.
8747 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8748 linux_get_hwcap.
8749 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8750 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8751 (ppc_linux_nat_target::read_description): Likewise.
8752 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8753 * s390-linux-nat.c: Likewise.
8754 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8755
6640a367
TT
87562019-03-24 Tom Tromey <tom@tromey.com>
8757
8758 * ada-lang.c (standard_lookup): Simplify initialization.
8759 (ada_lookup_symbol_nonlocal): Simplify return.
8760 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8761 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8762 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8763 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8764 initialization.
8765 * solib.c (solib_global_lookup): Simplify.
8766 * symtab.c (null_block_symbol): Remove.
8767 (symbol_cache_lookup): Simplify returns.
8768 (lookup_language_this): Simplify returns.
8769 (lookup_symbol_aux): Simplify return.
8770 (lookup_local_symbol): Simplify returns.
8771 (lookup_global_symbol_from_objfile): Simplify return.
8772 (lookup_symbol_in_objfile_symtabs)
8773 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8774 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8775 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8776 * cp-namespace.c (cp_lookup_bare_symbol)
8777 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8778 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8779 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8780 (cp_lookup_symbol_via_imports): Simplify initialization.
8781 (find_symbol_in_baseclass): Likewise.
8782 * symtab.h (null_block_symbol): Remove.
8783 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8784 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8785 (d_lookup_symbol_module): Likewise.
8786 (find_symbol_in_baseclass): Simplify initialization.
8787
a930ebcd
TT
87882019-03-24 Tom Tromey <tom@tromey.com>
8789
8790 * expression.h: Don't include symtab.h.
8791 (struct block): Forward declare.
8792
582942f4
TT
87932019-03-24 Tom Tromey <tom@tromey.com>
8794
8795 * c-exp.y (typebase): Remove casts.
8796 * gdbtypes.c (lookup_unsigned_typename, )
8797 (lookup_signed_typename): Remove cast.
8798 * eval.c (parse_to_comma_and_eval): Remove cast.
8799 * parse.c (write_dollar_variable): Remove cast.
8800 * block.h (struct block) <superblock>: Now const.
8801 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8802 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8803 (map_block): Make "block" const.
8804 * symfile.h (struct quick_symbol_functions)
8805 <map_matching_symbols>: Constify block argument to "callback".
8806 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8807 const.
8808 (find_pc_sect_compunit_symtab): Make "b" const.
8809 (find_symbol_at_address): Likewise.
8810 (search_symbols): Likewise.
8811 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8812 (dw2_debug_names_lookup_symbol): Likewise.
8813 (dw2_map_matching_symbols): Update.
8814 * p-valprint.c (pascal_val_print): Remove "block".
8815 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8816 (aux_add_nonlocal_symbols): Make "block" const.
8817 (resolve_subexp): Remove cast.
8818 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8819 const.
8820 (iterate_over_file_blocks): Likewise.
8821 * f-exp.y (%union) <bval>: Remove.
8822 * coffread.c (patch_opaque_types): Make "b" const.
8823 * spu-tdep.c (spu_catch_start): Make "block" const.
8824 * c-valprint.c (print_unpacked_pointer): Remove "block".
8825 * symmisc.c (dump_symtab_1): Make "b" const.
8826 (block_depth): Make "block" const.
8827 * d-exp.y (%union) <bval>: Remove.
8828 * cp-support.h (cp_lookup_rtti_type): Update.
8829 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8830 * psymtab.c (psym_lookup_symbol): Make "block" const.
8831 (maintenance_check_psymtabs): Make "b" const.
8832 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8833 (enumerate_locals, enumerate_args): Update.
8834 * python/py-symtab.c (stpy_global_block): Make "block" const.
8835 (stpy_static_block): Likewise.
8836 * inline-frame.c (block_starting_point_at): Make "new_block"
8837 const.
8838 * block.c (find_block_in_blockvector): Make return type const.
8839 (blockvector_for_pc_sect): Make "b" const.
8840 (find_block_in_blockvector): Make "b" const.
8841
7ad417dd
TT
88422019-03-23 Tom Tromey <tom@tromey.com>
8843
8844 * varobj.c (varobj_create): Update.
8845 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8846 * printcmd.c (display_command, do_one_display): Don't reset
8847 innermost_block.
8848 * parser-defs.h (enum innermost_block_tracker_type): Move to
8849 expression.h.
8850 (innermost_block): Update comment.
8851 * parse.c (parse_exp_1): Add tracker_types parameter.
8852 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8853 tracker_types parameter. Reset innermost_block.
8854 (parse_exp_in_context): Remove.
8855 (parse_expression_for_completion): Update.
8856 * objfiles.c (~objfile): Don't reset expression_context_block or
8857 innermost_block.
8858 * expression.h (enum innermost_block_tracker_type): Move from
8859 parser-defs.h.
8860 (parse_exp_1): Add tracker_types parameter.
8861 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8862 reset innermost_block.
8863
b366c208
TT
88642019-03-23 Tom Tromey <tom@tromey.com>
8865
8866 * objfiles.h: Include bcache.h.
8867
9bb9b2f9
TT
88682019-03-23 Tom Tromey <tom@tromey.com>
8869
8870 * linespec.c (get_current_search_block): Use
8871 scoped_restore_current_language.
8872 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8873
59c28372
AH
88742019-03-22 Alan Hayward <alan.hayward@arm.com>
8875 Jiong Wang <jiong.wang@arm.com>
8876
8877 * aarch64-linux-tdep.c
8878 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8879 section.
8880 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8881
17e116a7
AH
88822019-03-22 Alan Hayward <alan.hayward@arm.com>
8883 Jiong Wang <jiong.wang@arm.com>
8884
8885 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8886 instructions.
8887 (aarch64_analyze_prologue_test): Add PACIASP test.
8888 (aarch64_prologue_prev_register): Unmask PC value.
8889
11e1b75f
AH
88902019-03-22 Alan Hayward <alan.hayward@arm.com>
8891 Jiong Wang <jiong.wang@arm.com>
8892
8893 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8894 (aarch64_dwarf2_prev_register): Unmask PC value.
8895 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8896 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8897 DW_CFA_AARCH64_negate_ra_state.
8898 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8899
34dcc7cf
AH
89002019-03-22 Alan Hayward <alan.hayward@arm.com>
8901 Jiong Wang <jiong.wang@arm.com>
8902
8903 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8904 registers.
8905 (aarch64_pseudo_register_name): Likewise.
8906 (aarch64_pseudo_register_type): Likewise.
8907 (aarch64_pseudo_register_reggroup_p): Likewise.
8908 (aarch64_gdbarch_init): Add pauth registers.
8909 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8910 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8911 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8912 (struct gdbarch_tdep): Add regnum for ra_state.
8913
1ef53e6b
AH
89142019-03-22 Alan Hayward <alan.hayward@arm.com>
8915 Jiong Wang <jiong.wang@arm.com>
8916
8917 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8918
76bed0fd
AH
89192019-03-22 Alan Hayward <alan.hayward@arm.com>
8920 Jiong Wang <jiong.wang@arm.com>
8921
8922 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8923 function.
8924 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8925 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8926 (aarch64_gdbarch_init): Add puth registers.
8927 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8928 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8929 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8930
ee4fbcfa
AH
89312019-03-22 Alan Hayward <alan.hayward@arm.com>
8932 Jiong Wang <jiong.wang@arm.com>
8933
8934 * aarch64-linux-nat.c
8935 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8936 * aarch64-linux-tdep.c
8937 (aarch64_linux_core_read_description): Likewise.
8938 (aarch64_linux_get_hwcap): New function.
8939 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8940 (aarch64_linux_get_hwcap): New declaration.
8941
6dc0ebde
AH
89422019-03-22 Alan Hayward <alan.hayward@arm.com>
8943 Jiong Wang <jiong.wang@arm.com>
8944
8945 * aarch64-linux-nat.c
8946 (aarch64_linux_nat_target::read_description): Add pauth param.
8947 * aarch64-linux-tdep.c
8948 (aarch64_linux_core_read_description): Likewise.
8949 * aarch64-tdep.c (struct target_desc): Add in pauth.
8950 (aarch64_read_description): Add pauth param.
8951 (aarch64_gdbarch_init): Likewise.
8952 * aarch64-tdep.h (aarch64_read_description): Likewise.
8953 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8954 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8955 * features/Makefile: Add new files.
8956 * features/aarch64-pauth.c: New file.
8957 * features/aarch64-pauth.xml: New file.
8958
595915c1
TT
89592019-03-20 Tom Tromey <tromey@adacore.com>
8960
8961 * infrun.c (handle_inferior_event): Rename from
8962 handle_inferior_event_1. Create a scoped_value_mark.
8963 (handle_inferior_event): Remove.
8964
4c7d57e7
TT
89652019-03-19 Tom Tromey <tromey@adacore.com>
8966
8967 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8968 * infrun.h (print_stop_event): Add "displays" parameter.
8969 * infrun.c (print_stop_event): Add "displays" parameter.
8970
cb246234
PA
89712019-03-19 Pedro Alves <palves@redhat.com>
8972
8973 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8974 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8975 to -1. Fix TABs vs spaces.
8976 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8977 * tui/tui-out.h (tui_ui_out) Add intro comments.
8978 <m_line, m_start_of_line>: In-class initialize, and add describing
8979 comment.
8980
3a0e45b2
AH
89812019-03-18 Alan Hayward <alan.hayward@arm.com>
8982
8983 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8984 variable names.
8985 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8986
5371b850
PA
89872019-03-18 Pedro Alves <palves@redhat.com>
8988 Eli Zaretskii <eliz@gnu.org>
8989
8990 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8991 m_line and m_start_of_line.
8992
b17c4cd0
EZ
89932019-03-18 Eli Zaretskii <eliz@gnu.org>
8994
8995 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8996 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8997 it returns a newline. This fixes a regression in TU mode, whereby
8998 the next line is output on the same screen line as the user input.
8999
4bd56d18
TT
90002019-03-18 Tom Tromey <tromey@adacore.com>
9001
9002 * minsyms.c (minimal_symbol_reader::install): Remove call to
9003 obstack_blank.
9004
55c10aca
PA
90052019-03-18 Pedro Alves <palves@redhat.com>
9006
9007 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9008 New globals.
9009 (apply_style): New, factored out from ...
9010 (apply_ansi_escape): ... this. Handle reverse video mode.
9011 (tui_set_reverse_mode): New function.
9012 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9013 * tui/tui-winsource.c (tui_show_source_line): Use
9014 tui_set_reverse_mode instead of setting A_STANDOUT.
9015 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9016 New setter methods.
9017
647bb750
HD
90182019-03-18 Hannes Domani <ssbssa@yahoo.de>
9019
9020 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9021 Handle tabs.
9022
bff8c71f
TT
90232019-03-18 Tom Tromey <tromey@adacore.com>
9024
9025 * ada-lang.c (empty_array): Add "high" parameter.
9026 (ada_evaluate_subexp): Update.
9027
58785d98
ST
90282019-03-17 Sergei Trofimovich <siarheit@google.com>
9029
9030 * unittests/string_view-selftests.c: Define
9031 _initialize_string_view_selftests unconditionally.
9032
d4cbef22
ВМ
90332019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9034
9035 PR gdb/24350
9036 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9037
fce4c071
ВМ
90382019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9039
9040 PR gdb/24351
9041 * windows-nat.c (display_selector): Fix format specifiers.
9042
f7f0a123
EZ
90432019-03-17 Eli Zaretskii <eliz@gnu.org>
9044
9045 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9046 tui_refill_source_window instead of tui_refresh_win, to update the
9047 current execution line. This fixes redisplay of the current line
9048 when stepping through the code with "next" or "step".
9049
ab42892f
EZ
90502019-03-16 Eli Zaretskii <eliz@gnu.org>
9051
9052 * source-cache.c (source_cache::get_source_lines): Call
9053 find_source_lines to initialize s->nlines. This fixes vertical
9054 scrolling of TUI source window when the DOWN arrow is pressed.
9055
8d8c087f
PW
90562019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9057
9058 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9059 linux-thread-db.c (_initialize_thread_db): Likewise.
9060
798e1c30
EZ
90612019-03-16 Eli Zaretskii <eliz@gnu.org>
9062
9063 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9064 wclrtoeol in tui_show_source_line". This reverts changes made in
9065 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9066
eefba3da
TT
90672019-03-15 Tom Tromey <tom@tromey.com>
9068
9069 * symtab.h (struct minimal_symbol): Derive from
9070 general_symbol_info.
9071 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9072 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9073 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9074 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9075 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9076 (MSYMBOL_SEARCH_NAME): Update.
9077 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9078 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9079 * minsyms.c (minimal_symbol_reader::record_full): Update.
9080
0de2420c
TT
90812019-03-15 Tom Tromey <tom@tromey.com>
9082
9083 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9084
042d75e4
TT
90852019-03-15 Tom Tromey <tom@tromey.com>
9086
9087 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9088 unique_xmalloc_ptr.
9089 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9090 Update.
9091 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9092 (build_minimal_symbol_hash_tables)
9093 (minimal_symbol_reader::install): Update.
9094
db92718b
TT
90952019-03-15 Tom Tromey <tom@tromey.com>
9096
9097 * symtab.c (create_demangled_names_hash): Update.
9098 (symbol_set_names): Update.
9099 * objfiles.h (struct objfile_per_bfd_storage)
9100 <demangled_names_hash>: Now an htab_up.
9101 * objfiles.c (objfile_per_bfd_storage): Simplify.
9102
d6797f46
TT
91032019-03-15 Tom Tromey <tom@tromey.com>
9104
9105 * objfiles.h (struct objfile_per_bfd_storage): Declare
9106 destructor.
9107 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9108 New.
9109 (get_objfile_bfd_data): Use new. Don't initialize
9110 language_of_main.
9111 (free_objfile_per_bfd_storage): Remove.
9112 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9113
741d7538
TT
91142019-03-15 Tom Tromey <tom@tromey.com>
9115
9116 * symfile.c (reread_symbols): Update.
9117 * objfiles.c (objfile::objfile): Update.
9118 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9119 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9120 comment.
9121 (minimal_symbol_reader::install): Update.
9122 (terminate_minimal_symbol_table): Remove.
9123 * jit.c (jit_object_close_impl): Update.
9124
788c80d1
TT
91252019-03-15 Tom Tromey <tom@tromey.com>
9126
9127 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9128 initializations.
9129
1b7a07cb
TT
91302019-03-15 Tom Tromey <tom@tromey.com>
9131
9132 * objfiles.h (struct objfile_per_bfd_storage)
9133 <demangled_hash_languages>: Now a bitset.
9134 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9135 (lookup_minimal_symbol): Update.
9136
3db066bc
TT
91372019-03-15 Tom Tromey <tom@tromey.com>
9138
9139 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9140 Don't return the symbol.
9141 * coffread.c (record_minimal_symbol): Use record_full.
9142
3fff2c37
EZ
91432019-03-14 Eli Zaretskii <eliz@gnu.org>
9144
9145 The MS-Windows port of ncurses fails to switch to a color pair if
9146 one or both of the colors are the implicit default colors. This
9147 change records the default colors when TUI is initialized, and
9148 then specifies them explicitly when a color pair uses the default
9149 colors. This allows color styling in TUI mode on MS-Windows.
9150
9151 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9152 ncurses_norm_attr.
9153 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9154 colors in ncurses_norm_attr.
9155 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9156 "none", replace it with the default color recorded in
9157 ncurses_norm_attr.
9158
3b336828
TT
91592019-03-14 Tom Tromey <tromey@adacore.com>
9160
9161 * source-cache.h (class source_cache) <get_source_lines>: Return
9162 std::string.
9163 * source-cache.c (source_cache::extract_lines): Handle case where
9164 first_pos==npos. Return std::string.
9165 (source_cache::get_source_lines): Update.
9166
d085f989
TT
91672019-03-14 Tom Tromey <tromey@adacore.com>
9168
9169 * NEWS: Add item for "style sources" commands.
9170 * source-cache.c (source_cache::get_source_lines): Check
9171 source_styling.
9172 * cli/cli-style.c (source_styling): New global.
9173 (_initialize_cli_style): Add "style sources" commands.
9174 (show_style_sources): New function.
9175 * cli/cli-style.h (source_styling): Declare.
9176
6f11e682
TT
91772019-03-14 Pedro Alves <palves@redhat.com>
9178 Tom Tromey <tromey@adacore.com>
9179
9180 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9181 * tui/tui-winsource.c (tui_refill_source_window): New function,
9182 from...
9183 (tui_horizontal_source_scroll): ... here. Move some logic.
9184 * cli/cli-style.c (set_style_enabled): Notify new observable.
9185 * tui/tui-hooks.c (tui_redisplay_source): New function.
9186 (tui_attach_detach_observers): Attach or detach
9187 tui_redisplay_source.
9188 * observable.h (source_styling_changed): New observable.
9189 * observable.c: Define source_styling_changed observable.
9190
a068643d
TT
91912019-03-13 Tom Tromey <tromey@adacore.com>
9192
9193 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9194 (i386_gnu_nat_target::store_registers): Update.
9195 * target-debug.h (target_debug_print_std_string): New macro.
9196 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9197 * windows-tdep.c (display_one_tib): Update.
9198 * tui/tui-stack.c (tui_make_status_line): Update.
9199 * top.c (print_inferior_quit_action): Update.
9200 * thread.c (thr_try_catch_cmd): Update.
9201 (add_thread_with_info): Update.
9202 (thread_target_id_str): Update.
9203 (thr_try_catch_cmd): Update.
9204 (thread_command): Update.
9205 (thread_find_command): Update.
9206 * record-btrace.c (record_btrace_target::info_record)
9207 (record_btrace_resume_thread, record_btrace_target::resume)
9208 (record_btrace_cancel_resume, record_btrace_step_thread)
9209 (record_btrace_target::wait, record_btrace_target::wait)
9210 (record_btrace_target::wait, record_btrace_target::stop): Update.
9211 * progspace.c (print_program_space): Update.
9212 * process-stratum-target.c
9213 (process_stratum_target::thread_address_space): Update.
9214 * linux-fork.c (linux_fork_mourn_inferior)
9215 (detach_checkpoint_command, info_checkpoints_command)
9216 (linux_fork_context): Update.
9217 (linux_fork_detach): Update.
9218 (class scoped_switch_fork_info): Update.
9219 (delete_checkpoint_command): Update.
9220 * infrun.c (follow_fork_inferior): Update.
9221 (follow_fork_inferior): Update.
9222 (proceed_after_vfork_done): Update.
9223 (handle_vfork_child_exec_or_exit): Update.
9224 (follow_exec): Update.
9225 (displaced_step_prepare_throw): Update.
9226 (displaced_step_restore): Update.
9227 (start_step_over): Update.
9228 (resume_1): Update.
9229 (clear_proceed_status_thread): Update.
9230 (proceed): Update.
9231 (print_target_wait_results): Update.
9232 (do_target_wait): Update.
9233 (context_switch): Update.
9234 (stop_all_threads): Update.
9235 (restart_threads): Update.
9236 (finish_step_over): Update.
9237 (handle_signal_stop): Update.
9238 (switch_back_to_stepped_thread): Update.
9239 (keep_going_pass_signal): Update.
9240 (print_exited_reason): Update.
9241 (normal_stop): Update.
9242 * inferior.c (inferior_pid_to_str): Change return type.
9243 (print_selected_inferior): Update.
9244 (add_inferior): Update.
9245 (detach_inferior): Update.
9246 * dummy-frame.c (fprint_dummy_frames): Update.
9247 * dcache.c (dcache_info_1): Update.
9248 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9249 (btrace_fetch, btrace_clear): Update.
9250 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9251 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9252 type.
9253 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9254 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9255 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9256 * gdbarch.c, gdbarch.h: Rebuild.
9257 * gdbarch.sh (core_pid_to_str): Change return type.
9258 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9259 return type.
9260 (windows_nat_target::pid_to_str): Change return type.
9261 (windows_delete_thread): Update.
9262 (windows_nat_target::attach): Update.
9263 (windows_nat_target::files_info): Update.
9264 * target-delegates.c: Rebuild.
9265 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9266 return type.
9267 (sol_thread_target::pid_to_str): Change return type.
9268 * remote.c (class remote_target) <pid_to_str>: Change return
9269 type.
9270 (remote_target::pid_to_str): Change return type.
9271 (extended_remote_target::attach, remote_target::remote_stop_ns)
9272 (remote_target::remote_notif_remove_queued_reply)
9273 (remote_target::push_stop_reply, remote_target::disable_btrace):
9274 Update.
9275 (extended_remote_target::attach): Update.
9276 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9277 type.
9278 (gdbsim_target::pid_to_str): Change return type.
9279 * ravenscar-thread.c (struct ravenscar_thread_target)
9280 <pid_to_str>: Change return type.
9281 (ravenscar_thread_target::pid_to_str): Change return type.
9282 * procfs.c (class procfs_target) <pid_to_str>: Change return
9283 type.
9284 (procfs_target::pid_to_str): Change return type.
9285 (procfs_target::attach): Update.
9286 (procfs_target::detach): Update.
9287 (procfs_target::fetch_registers): Update.
9288 (procfs_target::store_registers): Update.
9289 (procfs_target::wait): Update.
9290 (procfs_target::files_info): Update.
9291 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9292 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9293 return type.
9294 (nto_procfs_target::pid_to_str): Change return type.
9295 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9296 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9297 return type.
9298 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9299 (exit_lwp): Update.
9300 (attach_proc_task_lwp_callback, get_detach_signal)
9301 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9302 (linux_nat_target::resume, wait_lwp, stop_callback)
9303 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9304 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9305 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9306 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9307 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9308 type.
9309 (inf_ptrace_target::attach): Update.
9310 (inf_ptrace_target::files_info): Update.
9311 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9312 type.
9313 (go32_nat_target::pid_to_str): Change return type.
9314 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9315 (gnu_nat_target::wait): Update.
9316 (gnu_nat_target::wait): Update.
9317 (gnu_nat_target::resume): Update.
9318 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9319 (fbsd_nat_target::wait): Update.
9320 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9321 type.
9322 (darwin_nat_target::attach): Update.
9323 * corelow.c (class core_target) <pid_to_str>: Change return type.
9324 (core_target::pid_to_str): Change return type.
9325 * target.c (normal_pid_to_str): Change return type.
9326 (default_pid_to_str): Likewise.
9327 (target_pid_to_str): Change return type.
9328 (target_translate_tls_address): Update.
9329 (target_announce_detach): Update.
9330 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9331 return type.
9332 (bsd_uthread_target::pid_to_str): Change return type.
9333 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9334 type.
9335 (bsd_kvm_target::pid_to_str): Change return type.
9336 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9337 return type.
9338 (aix_thread_target::pid_to_str): Change return type.
9339 * target.h (struct target_ops) <pid_to_str>: Change return type.
9340 (target_pid_to_str, normal_pid_to_str): Likewise.
9341 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9342 type.
9343 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9344 type.
9345 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9346 return type.
9347 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9348 type.
9349 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9350 type.
9351 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9352 return type.
9353
b4be1b06
SM
93542019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9355
9356 * NEWS: Mention that the new default MI version is 3. Mention
9357 changes to the output of commands and events that deal with
9358 multi-location breakpoints.
9359 * breakpoint.c: Include "mi/mi-out.h".
9360 (print_one_breakpoint): Change output syntax if using MI version
9361 >= 3.
9362 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9363 New.
9364 (mi_multi_location_breakpoint_output_fixed): New.
9365 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9366 (mi_cmd_fix_multi_location_breakpoint_output): New.
9367 (mi_multi_location_breakpoint_output_fixed): New.
9368 * mi/mi-cmds.c (mi_cmds): Register command
9369 -fix-multi-location-breakpoint-output.
9370 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9371 interpreter "mi".
9372
8e5e5494
SM
93732019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9374
9375 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9376 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9377 instantiate mi_ui_out based on interpreter name.
9378 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9379 * mi/mi-main.c (mi_load_progress): Likewise.
9380
197df35e
JB
93812019-03-12 John Baldwin <jhb@FreeBSD.org>
9382
9383 * NEWS: Combine separate "New targets" sections for 8.3.
9384
8399425f
JB
93852019-03-12 John Baldwin <jhb@FreeBSD.org>
9386
9387 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9388 (ppcfbsd_init_abi): Install gdbarch
9389 "fetch_tls_load_module_address" and "get_thread_local_address"
9390 methods.
9391
b0f87ed0
JB
93922019-03-12 John Baldwin <jhb@FreeBSD.org>
9393
9394 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9395 (riscv_fbsd_init_abi): Install gdbarch
9396 "fetch_tls_load_module_address" and "get_thread_local_address"
9397 methods.
9398
ce25aa57
JB
93992019-03-12 John Baldwin <jhb@FreeBSD.org>
9400
9401 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9402 (i386fbsd_init_abi): Install gdbarch
9403 "fetch_tls_load_module_address" and "get_thread_local_address"
9404 methods.
9405
f5424cfa
JB
94062019-03-12 John Baldwin <jhb@FreeBSD.org>
9407
9408 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9409 (amd64fbsd_init_abi): Install gdbarch
9410 "fetch_tls_load_module_address" and "get_thread_local_address"
9411 methods.
9412
945f3901
JB
94132019-03-12 John Baldwin <jhb@FreeBSD.org>
9414
9415 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9416 (struct fbsd_pspace_data): New type.
9417 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9418 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9419 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9420 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9421 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9422
ef0bd204
JB
94232019-03-12 John Baldwin <jhb@FreeBSD.org>
9424
9425 * gdbtypes.c (lookup_struct_elt): New function.
9426 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9427 * gdbtypes.h (struct struct_elt): New type.
9428 (lookup_struct_elt): New prototype.
9429
36c53a02
JB
94302019-03-12 John Baldwin <jhb@FreeBSD.org>
9431
9432 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9433 remove disabled code block.
9434
6e056c81
JB
94352019-03-12 John Baldwin <jhb@FreeBSD.org>
9436
9437 * gdbarch.sh (get_thread_local_address): New method.
9438 * gdbarch.h, gdbarch.c: Regenerate.
9439 * target.c (target_translate_tls_address): Use
9440 gdbarch_get_thread_local_address if present instead of
9441 target::get_thread_local_address.
9442
cd250a18
JB
94432019-03-12 John Baldwin <jhb@FreeBSD.org>
9444
9445 * target.h (target::get_thread_local_address): Update comment.
9446
df22c1e5
JB
94472019-03-12 John Baldwin <jhb@FreeBSD.org>
9448
9449 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9450 objfile->separate_debug_objfile_backlink if not NULL.
9451
dd6876c9
JB
94522019-03-12 John Baldwin <jhb@FreeBSD.org>
9453
9454 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9455 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9456 (amd64bsd_store_inferior_registers): Likewise.
9457 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9458 Enable segment base registers.
9459 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9460 PT_GETFSBASE and PT_GETGSBASE.
9461 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9462 PT_SETGSBASE.
9463 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9464 segment base registers.
9465 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9466
1163a4b7
JB
94672019-03-12 John Baldwin <jhb@FreeBSD.org>
9468
9469 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9470 Update calls to i386_target_description to add 'segments'
9471 parameter.
9472 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9473 add segment base registers.
9474 * arch/i386.c (i386_create_target_description): Add 'segments'
9475 parameter to enable segment base registers.
9476 * arch/i386.h (i386_create_target_description): Likewise.
9477 * features/i386/32bit-segments.xml: New file.
9478 * features/i386/32bit-segments.c: Generate.
9479 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9480 call to i386_target_description to add 'segments' parameter.
9481 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9482 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9483 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9484 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9485 if feature is present.
9486 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9487 Add 'segments' parameter to call to i386_target_description.
9488 (i386_target_description): Add 'segments' parameter to enable
9489 segment base registers.
9490 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9491 to call to i386_target_description.
9492 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9493 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9494 Define I386_NUM_REGS.
9495 (i386_target_description): Add 'segments' parameter to enable
9496 segment base registers.
9497
3a350822
EZ
94982019-03-12 Eli Zaretskii <eliz@gnu.org>
9499
9500 PR/24325
9501 * source-cache.c: #undef open and close, to avoid unresolved
9502 externals during linking.
9503
ffdd69cf
TT
95042019-03-12 Tom Tromey <tromey@adacore.com>
9505
9506 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9507 const. Add initializers.
9508 (_initialize_remote): Don't initialize ptid globals.
9509
ec148c57
PA
95102019-03-12 Pedro Alves <palves@redhat.com>
9511
9512 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9513
32764270
PA
95142019-03-12 Pedro Alves <palves@redhat.com>
9515
9516 * cp-name-parser.y (main): Remove unused 'len' variable.
9517
17547186
TT
95182019-03-12 Tom Tromey <tromey@adacore.com>
9519
9520 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9521 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9522
d3a70e03
TT
95232019-03-12 Tom Tromey <tromey@adacore.com>
9524
9525 * linux-nat.c (iterate_over_lwps): Update.
9526 (stop_callback): Remove parameter.
9527 (stop_wait_callback, detach_callback, resume_set_callback)
9528 (select_singlestep_lwp_callback, set_ignore_sigint)
9529 (status_callback, resumed_callback, resume_clear_callback)
9530 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9531 data parameter.
9532 (linux_nat_target::detach, linux_nat_target::resume)
9533 (linux_stop_and_wait_all_lwps, select_event_lwp)
9534 (linux_nat_filter_event, linux_nat_wait_1)
9535 (linux_nat_target::kill, linux_nat_target::stop)
9536 (linux_nat_target::stop): Update.
9537 (linux_nat_resume_callback): Change type.
9538 (resume_stopped_resumed_lwps, count_events_callback)
9539 (select_event_lwp_callback): Likewise.
9540 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9541 * arm-linux-nat.c (struct update_registers_data): Remove.
9542 (update_registers_callback): Change type.
9543 (arm_linux_insert_hw_breakpoint1): Update.
9544 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9545 parameter.
9546 (x86_linux_dr_set_addr): Update.
9547 (x86_linux_dr_set_control): Update.
9548 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9549 (iterate_over_lwps): Use gdb::function_view.
9550 * nat/aarch64-linux-hw-point.c (struct
9551 aarch64_dr_update_callback_param): Remove.
9552 (debug_reg_change_callback): Change type.
9553 (aarch64_notify_debug_reg_change): Update.
9554 * s390-linux-nat.c (s390_refresh_per_info): Update.
9555
82cb27ff
TT
95562019-03-11 Tom Tromey <tromey@adacore.com>
9557
9558 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9559 redundant assignment to "this_cu".
9560
568c0683
SM
95612019-03-08 Simon Marchi <simon.marchi@efficios.com>
9562
9563 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9564
f09ce22d
SM
95652019-03-08 Simon Marchi <simon.marchi@efficios.com>
9566
9567 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9568 from...
9569 (rank_one_type): ... this.
9570
595f96a9
SM
95712019-03-08 Simon Marchi <simon.marchi@efficios.com>
9572
9573 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9574 from...
9575 (rank_one_type): ... this.
9576
2598a94b
SM
95772019-03-08 Simon Marchi <simon.marchi@efficios.com>
9578
9579 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9580 from...
9581 (rank_one_type): ... this.
9582
7f17b20d
SM
95832019-03-08 Simon Marchi <simon.marchi@efficios.com>
9584
9585 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9586 from...
9587 (rank_one_type): ... this.
9588
2c509035
SM
95892019-03-08 Simon Marchi <simon.marchi@efficios.com>
9590
9591 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9592 from...
9593 (rank_one_type): ... this.
9594
0dd322dc
SM
95952019-03-08 Simon Marchi <simon.marchi@efficios.com>
9596
9597 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9598 from...
9599 (rank_one_type): ... this.
9600
41ea4728
SM
96012019-03-08 Simon Marchi <simon.marchi@efficios.com>
9602
9603 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9604 from...
9605 (rank_one_type): ... this.
9606
793cd1d2
SM
96072019-03-08 Simon Marchi <simon.marchi@efficios.com>
9608
9609 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9610 from...
9611 (rank_one_type): ... this.
9612
34910087
SM
96132019-03-08 Simon Marchi <simon.marchi@efficios.com>
9614
9615 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9616 from...
9617 (rank_one_type): ... this.
9618
f1f832d6
SM
96192019-03-08 Simon Marchi <simon.marchi@efficios.com>
9620
9621 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9622 from...
9623 (rank_one_type): ... this.
9624
b9f4512f
SM
96252019-03-08 Simon Marchi <simon.marchi@efficios.com>
9626
9627 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9628 from...
9629 (rank_one_type): ... this.
9630
9293fc63
SM
96312019-03-08 Simon Marchi <simon.marchi@efficios.com>
9632
9633 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9634 from...
9635 (rank_one_type): ... this.
9636
e3abbe7e
PW
96372019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9638
9639 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9640 inferior-events' shows the example events.
9641
e4adb939
EZ
96422019-03-08 Eli Zaretskii <eliz@gnu.org>
9643
9644 Support styling on native MS-Windows console
9645
9646 PR/24315
9647 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9648 on MS-Windows if $TERM is not defined.
9649
9650 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9651
9652 * posix-hdep.c (gdb_console_fputs):
9653 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9654 functions.
9655 * ui-file.h (gdb_console_fputs): Add prototype.
9656
9657 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9658 back to fputs only if the former returns zero.
9659
25629dfd
TT
96602019-03-07 Tom Tromey <tom@tromey.com>
9661
9662 * symmisc.c (print_symbol_bcache_statistics): Update.
9663 (print_objfile_statistics): Update.
9664 * symfile.c (allocate_symtab): Update.
9665 * stabsread.c: Don't include bcache.h.
9666 * psymtab.h (struct psymbol_bcache): Don't declare.
9667 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9668 (psymbol_bcache_init, psymbol_bcache_free)
9669 (psymbol_bcache_get_bcache): Don't declare.
9670 * psymtab.c (struct psymbol_bcache): Remove.
9671 (psymtab_storage::psymtab_storage): Update.
9672 (psymtab_storage::~psymtab_storage): Update.
9673 (psymbol_bcache_init, psymbol_bcache_free)
9674 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9675 (add_psymbol_to_bcache): Update.
9676 (allocate_psymtab): Update.
9677 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9678 macro_cache>: No longer pointers.
9679 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9680 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9681 * macrotab.c (macro_bcache): Update.
9682 * macroexp.c: Don't include bcache.h.
9683 * gdbtypes.c (check_types_worklist): Update.
9684 (types_deeply_equal): Remove TRY/CATCH. Update.
9685 * elfread.c (elf_symtab_read): Update.
9686 * dwarf2read.c: Don't include bcache.h.
9687 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9688 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9689 (print_bcache_statistics, bcache_memory_used): Don't declare.
9690 (struct bcache): Move from bcache.c. Add constructor, destructor,
9691 methods. Rename all data members.
9692 * bcache.c (struct bcache): Move to bcache.h.
9693 (bcache::expand_hash_table): Rename from expand_hash_table.
9694 (bcache): Remove.
9695 (bcache::insert): Rename from bcache_full.
9696 (bcache::compare): Rename from bcache_compare.
9697 (bcache_xmalloc): Remove.
9698 (bcache::~bcache): Rename from bcache_xfree.
9699 (bcache::print_statistics): Rename from print_bcache_statistics.
9700 (bcache::memory_used): Rename from bcache_memory_used.
9701
fe726667
PA
97022019-03-07 Pedro Alves <palves@redhat.com>
9703
9704 * infrun.c (normal_stop): Also check for
9705 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9706
7584bb30
AB
97072019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9708
9709 * f-lang.c (value_from_host_double): Moved to...
9710 * value.c (value_from_host_double): ...here.
9711 * value.h (value_from_host_double): Declare.
9712 * guile/scm-math.c (vlscm_convert_typed_number): Use
9713 value_from_host_double.
9714 (vlscm_convert_number): Likewise.
9715 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9716 * python/py-value.c (convert_value_from_python): Likewise.
9717
a7b1986e
TT
97182019-03-06 Tom Tromey <tom@tromey.com>
9719
9720 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9721
0ccf4211
TT
97222019-03-06 Tom Tromey <tom@tromey.com>
9723
9724 * utils.h (free_current_contents): Don't declare.
9725 * utils.c (free_current_contents): Remove.
9726
fe7b42e5
TT
97272019-03-06 Tom Tromey <tom@tromey.com>
9728
9729 * top.c (quit_force): Update.
9730 * main.c (captured_command_loop): Update.
9731 * common/new-op.c (operator new): Update.
9732 * common/common-exceptions.c (struct catcher)
9733 <save_cleanup_chain>: Remove member.
9734 (exceptions_state_mc_init): Update.
9735 (exception_try_scope_entry): Return nullptr.
9736 (exception_try_scope_exit, exception_rethrow)
9737 (throw_exception_sjlj, throw_exception_cxx): Update.
9738 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9739 (all_cleanups, do_cleanups, discard_cleanups)
9740 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9741 (restore_cleanups, restore_final_cleanups): Don't declare.
9742 (do_final_cleanups): Remove parameter.
9743 * common/cleanups.c (cleanup_chain, make_cleanup)
9744 (make_cleanup_dtor, all_cleanups, do_cleanups)
9745 (discard_my_cleanups, discard_cleanups)
9746 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9747 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9748 (null_cleanup): Remove.
9749 (do_final_cleanups): Remove parameter.
9750
c6321f19
TT
97512019-03-06 Tom Tromey <tom@tromey.com>
9752
9753 * remote.c (remote_target::remote_parse_stop_reply): Use
9754 unique_xmalloc_ptr.
9755
61b30099
TT
97562019-03-06 Tom Tromey <tom@tromey.com>
9757
9758 * stabsread.c (struct stabs_field_info): Rename from field_info.
9759 <list, fnlist>: Add initializers.
9760 <obstack>: New member.
9761 (read_member_functions, read_struct_fields, read_baseclasses):
9762 Allocate on obstack. Don't use cleanups.
9763 (read_one_struct_field, read_member_functions, read_struct_fields)
9764 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9765 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9766 (read_struct_type): Update.
9767
6cceac94
TT
97682019-03-06 Tom Tromey <tom@tromey.com>
9769
9770 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9771 * common/filestuff.h (make_cleanup_close): Don't declare.
9772 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9773 Remove.
9774
72412762
TT
97752019-03-06 Tom Tromey <tom@tromey.com>
9776
9777 * solib-aix.c: Use make_scope_exit.
9778
2b6ff1c0
TT
97792019-03-06 Tom Tromey <tom@tromey.com>
9780
9781 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9782 Use make_scope_exit.
9783
d01c5877
TT
97842019-03-06 Tom Tromey <tom@tromey.com>
9785
9786 * solib-svr4.c (disable_probes_interface): Remove parameter.
9787 (svr4_handle_solib_event): Use make_scope_exit.
9788
32603266
TT
97892019-03-06 Tom Tromey <tom@tromey.com>
9790
9791 * remote.c (struct stop_reply_deleter): Remove.
9792 (stop_reply_up): Update.
9793 (struct stop_reply): Derive from notif_event. Don't typedef.
9794 <regcache>: Now a std::vector.
9795 (stop_reply_xfree): Remove.
9796 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9797 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9798 (remote_target::discard_pending_stop_replies): Use delete.
9799 (remote_target::remote_parse_stop_reply): Update.
9800 (remote_target::process_stop_reply): Update.
9801 * remote-notif.h (struct notif_event): Add virtual destructor.
9802 Remove "dtr" member.
9803 (struct notif_client) <alloc_event>: Return a unique_ptr.
9804 (notif_event_xfree): Don't declare.
9805 (notif_event_up): New typedef.
9806 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9807 (notif_event_xfree, do_notif_event_xfree): Remove.
9808 (remote_notif_state_xfree): Update.
9809
9799571e
TT
98102019-03-06 Tom Tromey <tom@tromey.com>
9811
9812 * infrun.c (displaced_step_clear_cleanup): Now a
9813 forward_scope_exit type.
9814 (displaced_step_prepare_throw): Update.
9815 (displaced_step_fixup): Update.
9816
09e3c4ca
TT
98172019-03-06 Tom Tromey <tom@tromey.com>
9818
9819 * inferior.h (class inferior): Update comment.
9820 * gdbthread.h (class thread_info): Update comment.
9821
e2a03548
TT
98222019-03-06 Joel Brobecker <brobecker@adacore.com>
9823 Tom Tromey <tom@tromey.com>
9824
9825 * stabsread.h (struct stab_section_list): Remove.
9826 (coffstab_build_psymtabs): Update.
9827 * dbxread.c (symbuf_sections): Now a std::vector.
9828 (sect_idx): New global.
9829 (fill_symbuf): Update.
9830 (coffstab_build_psymtabs): Change type of stabsects parameter.
9831 Update.
9832 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9833 std::vector.
9834 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9835 (coff_locate_sections): Update.
9836 (coff_symfile_read): Remove cleanups. Update.
9837 (init_stringtab): Add storage parameter.
9838 (free_stringtab, free_stringtab_cleanup): Remove.
9839 (init_lineno): Add storage parameter.
9840 (free_linetab, free_linetab_cleanup): Remove.
9841
b7e60d85
PA
98422019-03-06 Pedro Alves <palves@redhat.com>
9843
9844 * linux-fork.c (fork_info::clobber_regs): Delete.
9845 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9846 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9847 comment. Adjust.
9848 (scoped_switch_fork_info::scoped_switch_fork_info)
9849 (checkpoint_command, linux_fork_context): Adjust
9850 fork_save_infrun_state calls.
9851
e52c971f
PA
98522019-03-06 Pedro Alves <palves@redhat.com>
9853
9854 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9855 (inf_has_multiple_threads): Return 'bool' and rewrite using
9856 inferior_info::threads().
9857
06974e6c
PA
98582019-03-06 Pedro Alves <palves@redhat.com>
9859
9860 * linux-fork.c: Include <list>.
9861 (fork_list): Now a std::list instance.
9862 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9863 (forks_exist_p, find_last_fork): Adjust.
9864 (new_fork): Delete.
9865 (one_fork_p): New.
9866 (add_fork): Adjust.
9867 (free_fork): Delete, folded into fork_info::~fork_info().
9868 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9869 Adjust.
9870 (init_fork_list): Delete.
9871 (linux_fork_killall, linux_fork_mourn_inferior)
9872 (linux_fork_detach, info_checkpoints_command): Adjust.
9873 (_initialize_linux_fork): No longer call init_fork_list.
9874
72f31aea
PA
98752019-03-06 Pedro Alves <palves@redhat.com>
9876
9877 * linux-fork.c (new_fork): New, split out of ...
9878 (add_fork): ... this. Return void. Move "first fork" special
9879 case from here, to ...
9880 (checkpoint_command): ... here.
9881 * linux-linux.h (add_fork): Return void.
9882
efbecbc1
AB
98832019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9884
9885 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9886
0841c79a
AB
98872019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9888 Chris January <chris.january@arm.com>
9889 David Lecomber <david.lecomber@arm.com>
9890
9891 * f-exp.y: New token, UNOP_INTRINSIC.
9892 (exp): New pattern using UNOP_INTRINSIC token.
9893 (f77_keywords): Add 'abs' keyword.
9894 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9895 (value_from_host_double): New function.
9896 (evaluate_subexp_f): Support UNOP_ABS.
9897
4a270568
AB
98982019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9899
9900 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9901 types.
9902
067630bd
AB
99032019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9904
9905 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9906 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9907 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9908
3be47f7a
AB
99092019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9910
9911 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9912
4d00f5d8
AB
99132019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9914 Chris January <chris.january@arm.com>
9915
9916 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9917 * f-exp.y: Define 'KIND' token.
9918 (exp): New pattern for KIND expressions.
9919 (ptype): Handle types with a kind extension.
9920 (direct_abs_decl): Extend to spot kind extensions.
9921 (f77_keywords): Add 'kind' to the list.
9922 (push_kind_type): New function.
9923 (convert_to_kind_type): New function.
9924 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9925 * parse.c (operator_length_standard): Likewise.
9926 * parser-defs.h (enum type_pieces): Add tp_kind.
9927 * std-operator.def: Add UNOP_KIND.
9928
e454224f
AB
99292019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9930
9931 * f-exp.y (f_parse): Set yydebug.
9932
9dad4a58
AB
99332019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9934
9935 * f-lang.c (evaluate_subexp_f): New function.
9936 (exp_descriptor_f): New global.
9937 (f_language_defn): Use exp_descriptor_f instead of
9938 exp_descriptor_standard.
9939
c8f91604
AB
99402019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9941
9942 * f-exp.y (struct token): Add comments.
9943 (dot_ops): Remove uppercase versions and the end marker.
9944 (f77_keywords): Likewise.
9945 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9946 entries in the dot_ops array are case insensitive, and use
9947 strncasecmp to compare strings. Also some whitespace cleanup in
9948 this area. Similar for the f77_keywords array, except entries in
9949 this list might be case sensitive.
9950
dd9f2c76
AB
99512019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9952
9953 * f-exp.y (struct f77_boolean_val): Add comments.
9954 (boolean_values): Remove uppercase versions, and end marker.
9955 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9956 and use strncasecmp to achieve case insensitivity. Additionally,
9957 perform whitespace cleanup around this code.
9958
67a3048c
TT
99592019-03-06 Tom Tromey <tromey@adacore.com>
9960
9961 * remote-sim.c (gdbsim_target_open): Use result of
9962 gdb_argv::release.
9963
aa3cfbda
RB
99642019-03-06 Richard Bunt <richard.bunt@arm.com>
9965 Dirk Schubert <dirk.schubert@arm.com>
9966 Chris January <chris.january@arm.com>
9967
9968 * eval.c (evaluate_subexp_standard): Call Fortran argument
9969 wrapping logic.
9970 * f-lang.c (struct value): A value which can be passed into a
9971 Fortran function call.
9972 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9973 where appropriate.
9974 (struct type): Value ready for a Fortran function call.
9975 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9976 is needed.
9977 * f-lang.h (fortran_argument_convert): Declaration.
9978 (fortran_preserve_arg_pointer): Declaration.
9979 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9980
ea38e5df
TT
99812019-03-05 Tom Tromey <tromey@adacore.com>
9982
9983 * python/py-prettyprint.c (print_string_repr): Remove #if.
9984 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9985
06b5b831
TT
99862019-03-05 Tom Tromey <tromey@adacore.com>
9987
9988 * target.c (the_dummy_target): Move later. Change type to
9989 "dummy_target".
9990 (initialize_targets): Don't initialize the_dummy_target.
9991
edbd9e45
TT
99922019-03-05 Tom Tromey <tromey@adacore.com>
9993
9994 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9995 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9996
c119e040
TT
99972019-03-05 Tom Tromey <tromey@adacore.com>
9998
9999 * windows-nat.c (windows_nat_target::attach)
10000 (windows_nat_target::detach): Don't call gdb_flush.
10001 * valprint.c (generic_val_print, val_print, val_print_string):
10002 Don't call gdb_flush.
10003 * utils.c (defaulted_query): Don't call gdb_flush.
10004 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10005 * target.c (target_announce_detach): Don't call gdb_flush.
10006 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10007 * remote.c (extended_remote_target::attach): Don't call
10008 gdb_flush.
10009 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10010 * printcmd.c (do_examine): Don't call gdb_flush.
10011 (info_display_command): Don't call gdb_flush.
10012 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10013 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10014 * memattr.c (info_mem_command): Don't call gdb_flush.
10015 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10016 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10017 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10018 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10019 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10020 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10021 (gnu_nat_target::detach): Don't call gdb_flush.
10022 * f-valprint.c (f_val_print): Don't call gdb_flush.
10023 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10024 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10025 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10026 gdb_flush.
10027 * c-valprint.c (c_val_print): Don't call gdb_flush.
10028 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10029
895dafa6
TT
100302019-03-05 Tom Tromey <tromey@adacore.com>
10031
10032 * varobj.c (update_dynamic_varobj_children): Update.
10033 (install_default_visualizer): Use reset, not release.
10034 * value.c (set_internalvar): Update.
10035 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10036 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10037 ATTRIBUTE_UNUSED_RESULT.
10038
88a774b9
TT
100392019-03-05 Tom Tromey <tromey@adacore.com>
10040
10041 * remote.c (class scoped_remote_fd) <release>: Add
10042 ATTRIBUTE_UNUSED_RESULT.
10043
4e4a8b93
TT
100442019-03-05 Tom Tromey <tromey@adacore.com>
10045
10046 * macroexp.c (struct macro_buffer) <release>: Add
10047 ATTRIBUTE_UNUSED_RESULT.
10048
083eef1f
TT
100492019-03-05 Tom Tromey <tromey@adacore.com>
10050
10051 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10052 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10053 ATTRIBUTE_UNUSED_RESULT.
10054
3cabd438
TT
100552019-03-05 Tom Tromey <tromey@adacore.com>
10056
10057 * common/scoped_fd.h (class scoped_fd) <release>: Add
10058 ATTRIBUTE_UNUSED_RESULT.
10059
41e3300a
TT
100602019-03-05 Tom Tromey <tromey@adacore.com>
10061
10062 * parser-defs.h (struct parser_state) <release>: Add
10063 ATTRIBUTE_UNUSED_RESULT.
10064
18cb7c9f
TT
100652019-03-05 Tom Tromey <tromey@adacore.com>
10066
10067 * utils.h (class gdb_argv) <release>: Add
10068 ATTRIBUTE_UNUSED_RESULT.
10069 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10070
41fa577f
EZ
100712019-03-02 Eli Zaretskii <eliz@gnu.org>
10072
a6a4b2c6
EZ
10073 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10074 for-loop range, to avoid compiler warnings.
10075
10076 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10077 avoid compiler warnings about unused variables.
10078
742a7df5
EZ
10079 * NEWS: Mention end of support for native debugging on MS-Windows
10080 before XP.
10081
41fa577f
EZ
10082 PR gdb/24292
10083 * common/netstuff.c:
10084 * gdbserver/gdbreplay.c
10085 * gdbserver/remote-utils.c:
10086 * ser-tcp.c:
10087 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10088 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10089 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10090 'getaddrinfo' and 'freeaddrinfo' were not available before
10091 Windows XP, and mingw.org's MinGW headers by default define
10092 _WIN32_WINNT to 0x500.
10093
827f438f
GB
100942019-03-01 Gary Benson <gbenson@redhat.com>
10095
10096 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10097
92137da0
RO
100982019-02-28 Brian Vandenberg <phantall@gmail.com>
10099 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10100
10101 PR gdb/8527
10102 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10103 set_sigint_trap, clear_sigint_trap.
10104
799efbe8
PW
101052019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10106
10107 * target.c (target_detach): Clear the regcache and the
10108 frame cache.
10109
8ed25214
PA
101102019-02-27 Pedro Alves <palves@redhat.com>
10111
10112 * utils.c (set_screen_size): When we cap the height/width sizes,
10113 tweak the corresponding command variable to show "unlimited":
10114
23031e31
SJ
101152019-02-27 Saagar Jha <saagar@saagarjha.com>
10116 Pedro Alves <palves@redhat.com>
10117
10118 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10119 before calling rl_set_screen_size.
10120
6c28e44a
TT
101212019-02-27 Tom Tromey <tromey@adacore.com>
10122
10123 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10124 define.
10125 * python/py-value.c: Remove Python 2.4 workaround.
10126 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10127 workaround.
10128 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10129 Python 2.4 workaround.
10130 * python/python-internal.h: Remove Python 2.4 comment.
10131 (Py_ssize_t): Don't define.
10132 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10133 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10134 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10135 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10136 * python/python.c (do_start_initialization): Remove Python 2.4
10137 workaround.
10138 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10139 (print_children): Remove Python 2.4 workaround.
10140 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10141 workaround.
10142 (CHARBUFFERPROC_NAME): Remove.
10143 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10144 Python 2.4 workaround.
10145
2c3fc25d 101462019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 10147
2c3fc25d
KB
10148 * NEWS: Note minimum Python version.
10149
6ca62222
KB
101502019-02-27 Kevin Buettner <kevinb@redhat.com>
10151
10152 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10153 code from these functions. Remove corresponding ifdefs. Use
10154 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10155 Remove gotos and target of gotos.
10156 (infpy_search_memory): Likewise.
10157
f4bc7d2c
AB
101582019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10159
10160 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10161 (hppa_gdbarch_init): Don't register deleted functions with
10162 gdbarch.
10163
9734a586
AB
101642019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10165
10166 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10167 (h8300_unwind_sp): Delete.
10168 (h8300_dummy_id): Delete.
10169 (h8300_gdbarch_init): Don't register deleted functions with
10170 gdbarch.
10171
68b867f3
AB
101722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10173
10174 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10175 (ft32_unwind_pc): Delete.
10176 (ft32_unwind_sp): Delete.
10177 (ft32_gdbarch_init): Don't register deleted functions with
10178 gdbarch.
10179
2fbe7ad0
AB
101802019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10181
10182 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10183 (frv_unwind_pc): Delete.
10184 (frv_unwind_sp): Delete.
10185 (frv_gdbarch_init): Don't register deleted functions with
10186 gdbarch.
10187
76055cbe
AB
101882019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10189
10190 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10191 (riscv_unwind_pc): Delete.
10192 (riscv_unwind_sp): Delete.
10193 (riscv_gdbarch_init): Don't register deleted functions with
10194 gdbarch.
10195
4133e5a1
AB
101962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10197
10198 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10199 (csky_unwind_pc): Delete.
10200 (csky_unwind_sp): Delete.
10201 (csky_gdbarch_init): Don't register deleted functions with
10202 gdbarch.
10203
8010f576
AB
102042019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10205
10206 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10207 (cris_unwind_pc): Delete.
10208 (cris_unwind_sp): Delete.
10209 (cris_gdbarch_init): Don't register deleted functions with
10210 gdbarch.
10211
b56bf084
AB
102122019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10213
10214 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10215 (bfin_unwind_pc): Delete.
10216 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10217
a19a650f
AB
102182019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10219
10220 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10221 (arm_unwind_pc): Delete.
10222 (arm_unwind_sp): Delete.
10223 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10224
f8278c3c
AB
102252019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10226
10227 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10228 (arc_unwind_pc): Delete.
10229 (arc_unwind_sp): Delete.
10230 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10231
480e46cf
AB
102322019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10233
10234 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10235 (alpha_unwind_pc): Delete.
10236 (alpha_gdbarch_init): Don't register deleted functions with
10237 gdbarch.
10238
7a995095
AB
102392019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10240
10241 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10242 (aarch64_unwind_pc): Delete.
10243 (aarch64_unwind_sp): Delete.
10244 (aarch64_gdbarch_init): Don't register deleted functions with
10245 gdbarch.
10246
bf9a735e
AB
102472019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10248
10249 * gdbtypes.c (type_align): Don't consider static members when
10250 computing structure alignment.
10251
5561fc30
AB
102522019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10253
10254 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10255 return 0 for other types.
10256 * arch-utils.c (default_type_align): Always return 0.
10257 * gdbarch.h: Regenerate.
10258 * gdbarch.sh (type_align): Extend comment.
10259 * gdbtypes.c (type_align): Add additional comments, always call
10260 gdbarch_type_align before applying the default rules.
10261 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10262 generic code will then apply a suitable default.
10263 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10264 types, return 0 for other types.
10265
9335e75a
JB
102662019-02-27 Joel Brobecker <brobecker@adacore.com>
10267
10268 * NEWS: Create a new section for the next release branch.
10269 Rename the section of the current branch, now that it has
10270 been cut.
10271
3d34d8de
JB
102722019-02-27 Joel Brobecker <brobecker@adacore.com>
10273
10274 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10275 * version.in: Bump version to 8.3.50.DATE-git.
10276
143420fb
SM
102772019-02-26 Simon Marchi <simon.marchi@efficios.com>
10278
10279 * aix-thread.c (ptid_cmp): Remove unused variable.
10280 (get_signaled_thread): Likewise.
10281 (store_regs_user_thread): Likewise.
10282 (store_regs_kernel_thread): Likewise.
10283 (fetch_regs_kernel_thread): Remove shadowed variable.
10284
172fb711
AB
102852019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10286
10287 * features/riscv/32bit-cpu.xml: Add register numbers.
10288 * features/riscv/32bit-fpu.c: Regenerate.
10289 * features/riscv/32bit-fpu.xml: Add register numbers.
10290 * features/riscv/64bit-cpu.xml: Add register numbers.
10291 * features/riscv/64bit-fpu.c: Regenerate.
10292 * features/riscv/64bit-fpu.xml: Add register numbers.
10293
26c89782
KB
102942019-02-26 Kevin Buettner <kevinb@redhat.com>
10295
af54ade9 10296 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
10297 * python/py-value.c (convert_buffer_and_type_to_value): New
10298 function.
10299 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10300 Add support for handling an optional second argument. Call
10301 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
10302 * python/python-internal.h (Py_buffer_deleter): New struct.
10303 (Py_buffer_up): New typedef.
10304
0f58c9e8
JB
103052019-02-25 John Baldwin <jhb@FreeBSD.org>
10306
10307 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10308 instead of releasing ownership.
10309
0a0f4c01
JR
103102019-02-25 Jordan Rupprecht <rupprecht@google.com>
10311
10312 * dwarf2read.c (open_and_init_dwp_file): Call
10313 elf_numsections instead of bfd_count_sections to initialize
10314 dwp_file->num_sections.
10315
cd5a152c
TT
103162019-02-25 Tom Tromey <tromey@adacore.com>
10317
10318 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10319
8a6a8513
SDJ
103202019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10321
10322 * gcore.in: Add '--readnever' option when invoking GDB.
10323
04dcda9c
SM
103242019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10325
10326 * MAINTAINERS: Update my email address.
10327
07bc701d
SM
103282019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10329
10330 * build-id.c (build_id_to_debug_bfd_1): New function.
10331 (build_id_to_debug_bfd): Look for separate debug file in
10332 sysroot.
10333
c6f4a5d0
AB
103342019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10335
10336 * gdbarch.sh: Update the copyright year range that is placed into
10337 generated files.
10338
9600246d
KS
103392019-02-22 Keith Seitz <keiths@redhat.com>
10340
10341 PR symtab/23853
10342 * linespec.c (create_sals_line_offset): Search for the default
10343 symtab's filename instead of its fullname.
10344
7557a514
AH
103452019-02-21 Alan Hayward <alan.hayward@arm.com>
10346
10347 * NEWS: Update style defaults.
10348
ee2bcb0c
AH
103492019-02-21 Alan Hayward <alan.hayward@arm.com>
10350
10351 * main.c (captured_main_1): Disable styling in batch mode.
10352
0c95f9ed
TT
103532019-02-20 Tom Tromey <tom@tromey.com>
10354
10355 * symtab.c (symtab_symbol_info): Fix typos.
10356
c763b894
TT
103572019-02-20 Tom Tromey <tromey@adacore.com>
10358
10359 * findcmd.c (_initialize_mem_search): Use upper case for
10360 metasyntactic variables.
10361
0ef8a082
AH
103622019-02-20 Alan Hayward <alan.hayward@arm.com>
10363
10364 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10365 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10366
6caa91b6
SM
103672019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10368
10369 * top.h (source_file_name): Change to std::string.
10370 * top.c (source_file_name): Likewise.
10371 (command_line_input): Adjust.
10372 * cli/cli-script.c (script_from_file): Adjust.
10373
98814c6c
TT
103742019-02-19 Tom Tromey <tromey@adacore.com>
10375
10376 * ravenscar-thread.c
10377 (ravenscar_thread_target::update_thread_list): Don't call
10378 ada_build_task_list.
10379 * ada-lang.h (ada_build_task_list): Don't declare.
10380 * ada-tasks.c (struct ada_tasks_inferior_data)
10381 <task_list_valid_p>: Now bool.
10382 (read_known_tasks, ada_task_list_changed)
10383 (ada_tasks_invalidate_inferior_data): Update.
10384 (read_known_tasks_array): Return bool.
10385 (read_known_tasks_list): Likewise.
10386 (read_known_tasks): Return void.
10387 (ada_build_task_list): Now static.
10388
70cd633e
AB
103892019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10390
10391 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10392 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10393
040b3e95
PW
103942019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10395
10396 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10397 variant for ada_tasks_pspace_data_handle and
10398 ada_tasks_inferior_data_handle.
10399 (ada_tasks_pspace_data_cleanup): New function.
10400 (ada_tasks_inferior_data_cleanup): New function.
10401
9409233b
TT
104022019-02-17 Tom Tromey <tom@tromey.com>
10403
10404 * macrotab.h (macro_source_fullname): Return a std::string.
10405 * macrotab.c (macro_include, check_for_redefinition)
10406 (macro_undef, macro_lookup_definition, foreach_macro)
10407 (foreach_macro_in_scope): Update.
10408 (macro_source_fullname): Return a std::string.
10409 * macrocmd.c (show_pp_source_pos): Update.
10410
6506371f
TT
104112019-02-17 Tom Tromey <tom@tromey.com>
10412
10413 * macrocmd.c (show_pp_source_pos): Style the file names.
10414
0c820d67
TT
104152019-02-17 Tom Tromey <tom@tromey.com>
10416
10417 PR tui/24197:
10418 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10419
a0087920
TT
104202019-02-17 Tom Tromey <tom@tromey.com>
10421
10422 * ada-lang.c (user_select_syms): Use filtered printing.
10423 * utils.c (wrap_style): New global.
10424 (desired_style): Remove.
10425 (emit_style_escape): Add stream parameter.
10426 (set_output_style, reset_terminal_style, prompt_for_continue):
10427 Update.
10428 (flush_wrap_buffer): Only flush gdb_stdout.
10429 (wrap_here): Set wrap_style.
10430 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10431 treat escape sequences as a character. Change when wrap buffer is
10432 flushed.
10433 (fputs_styled): Do not set the output style when the default is
10434 requested.
10435 * ui-style.h (struct ui_file_style) <is_default>: New method.
10436 * source.c (print_source_lines_base): Emit escape sequences in one
10437 piece.
10438
75ba10dc
JB
104392019-02-17 Joel Brobecker <brobecker@adacore.com>
10440
10441 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10442 integers and enumeration types.
10443
a2cd4f14
JB
104442019-02-17 Joel Brobecker <brobecker@adacore.com>
10445
10446 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10447 instead of lookup_symbol_in_language
10448 (do_exact_match): New function.
10449 (ada_get_symbol_name_matcher): Return do_exact_match when
10450 doing a verbatim match.
10451
485b851b
TT
104522019-02-15 Tom Tromey <tromey@adacore.com>
10453
10454 * ravenscar-thread.c (ravenscar_thread_target::resume)
10455 (ravenscar_thread_target::wait): Special case wildcard requests.
10456
0b790b1e
TT
104572019-02-15 Tom Tromey <tromey@adacore.com>
10458
10459 * ravenscar-thread.c (base_ptid): Remove.
10460 (struct ravenscar_thread_target) <close>: New method.
10461 <m_base_ptid>: New member.
10462 <update_inferior_ptid, active_task, task_is_currently_active,
10463 runtime_initialized>: Declare methods.
10464 <ravenscar_thread_target>: Add constructor.
10465 (ravenscar_thread_target::task_is_currently_active)
10466 (ravenscar_thread_target::update_inferior_ptid)
10467 (ravenscar_runtime_initialized): Rename. Now methods.
10468 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10469 (ravenscar_thread_target::update_thread_list): Update.
10470 (ravenscar_thread_target::active_task): Now method.
10471 (ravenscar_thread_target::store_registers)
10472 (ravenscar_thread_target::prepare_to_store)
10473 (ravenscar_thread_target::prepare_to_store)
10474 (ravenscar_thread_target::mourn_inferior): Update.
10475 (ravenscar_inferior_created): Use "new" to create target.
10476 (ravenscar_thread_target::get_ada_task_ptid): Update.
10477 (_initialize_ravenscar): Don't initialize base_ptid.
10478 (ravenscar_ops): Remove global.
10479
dea57a62
TT
104802019-02-15 Tom Tromey <tromey@adacore.com>
10481
10482 * target.h (push_target): Declare new overload.
10483 * target.c (push_target): New overload, taking an rvalue reference.
10484 * remote.c (remote_target::open_1): Use push_target overload.
10485 * corelow.c (core_target_open): Use push_target overload.
10486
989f3c58
TT
104872019-02-15 Tom Tromey <tromey@adacore.com>
10488
10489 * ravenscar-thread.c (is_ravenscar_task)
10490 (ravenscar_task_is_currently_active): Return bool.
10491 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10492 (_initialize_ravenscar): Remove "(void)".
10493 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10494 Return bool.
10495
6cbcc006
TT
104962019-02-15 Tom Tromey <tromey@adacore.com>
10497
10498 * ravenscar-thread.c (ravenscar_runtime_initializer)
10499 (has_ravenscar_runtime, get_running_thread_id)
10500 (ravenscar_thread_target::resume): Fix indentation.
10501
7657f14d
TT
105022019-02-15 Tom Tromey <tromey@adacore.com>
10503
10504 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10505 from ravenscar_arch_ops.
10506 (sparc_ravenscar_ops::fetch_registers)
10507 (sparc_ravenscar_ops::store_registers): Now methods.
10508 (sparc_ravenscar_prepare_to_store): Remove.
10509 (sparc_ravenscar_ops): Redefine.
10510 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10511 methods and destructor. Remove members.
10512 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10513 (ravenscar_thread_target::store_registers)
10514 (ravenscar_thread_target::prepare_to_store): Update.
10515 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10516 Remove.
10517 (struct ppc_ravenscar_powerpc_ops): Derive from
10518 ravenscar_arch_ops.
10519 (ppc_ravenscar_powerpc_ops::fetch_registers)
10520 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10521 (ppc_ravenscar_powerpc_ops): Redefine.
10522 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10523 (ppc_ravenscar_e500_ops::fetch_registers)
10524 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10525 (ppc_ravenscar_e500_ops): Redefine.
10526 * aarch64-ravenscar-thread.c
10527 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10528 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10529 (aarch64_ravenscar_fetch_registers)
10530 (aarch64_ravenscar_store_registers): Now methods.
10531 (aarch64_ravenscar_ops): Redefine.
10532
5b6ea500
TT
105332019-02-15 Tom Tromey <tromey@adacore.com>
10534
10535 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10536 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10537 (ravenscar_thread_target::stopped_by_watchpoint)
10538 (ravenscar_thread_target::stopped_data_address)
10539 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10540
e397fd39
TT
105412019-02-15 Tom Tromey <tromey@adacore.com>
10542
10543 * ravenscar-thread.c: Fix some typos.
10544
cc12f4a8
TT
105452019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10546 Tom Tromey <tromey@adacore.com>
10547
10548 * ada-lang.c (ada_exception_sal): Change addr_string to a
10549 std::string.
10550 (create_ada_exception_catchpoint): Update.
10551
5f486660
TT
105522019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10553 Tom Tromey <tromey@adacore.com>
10554
10555 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10556 (bp_location_ops): Remove.
10557 (base_breakpoint_allocate_location): Update.
10558 (free_bp_location): Update.
10559 * ada-lang.c (class ada_catchpoint_location)
10560 <ada_catchpoint_location>: Remove ops parameter.
10561 (ada_catchpoint_location_dtor): Remove.
10562 (ada_catchpoint_location_ops): Remove.
10563 (allocate_location_exception): Update.
10564 * breakpoint.h (struct bp_location_ops): Remove.
10565 (class bp_location) <bp_location>: Remove bp_location_ops
10566 parameter.
10567 <~bp_location>: Add destructor.
10568 <ops>: Remove.
10569
b671c7fb
TS
105702019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10571 Pedro Alves <palves@redhat.com>
10572
10573 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10574 'PATH_MAX'.
10575
8071c5ce
DM
105762019-02-14 David Michael <fedora.dm0@gmail.com>
10577 Samuel Thibault <samuel.thibault@gnu.org>
10578 Thomas Schwinge <thomas@codesourcery.com>
10579
10580 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10581 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10582
b1041ae0
TS
105832019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10584
924514e1
TS
10585 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10586 (check_empty): Use "const char *".
10587
c29ee8d4
TS
10588 * gnu-nat.c (gnu_nat_target::detach): Instead of
10589 'detach_inferior (pid)' call
10590 'detach_inferior (find_inferior_pid (pid))'.
10591
6c6ef69f
TS
10592 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10593 'nat/fork-inferior.o'.
10594 * gnu-nat.c: #include "nat/fork-inferior.h".
10595
2d0a338c
TS
10596 * gnu-nat.c (gnu_nat_target::detach): Instead of
10597 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10598 * gnu-nat.h: #include "inf-child.h".
10599 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10600 'i386_gnu_nat_target::fetch_registers'.
10601 (gnu_store_registers): Rename/move to
10602 'i386_gnu_nat_target::store_registers'.
10603
cabb5f06
TS
10604 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10605 * gnu-nat.h (mach_thread_info): New function.
10606 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10607
b1041ae0
TS
10608 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10609
2988d01e
KF
106102019-02-14 Frederic Konrad <konrad@adacore.com>
10611
10612 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10613
c559d709
JB
106142019-02-14 Joel Brobecker <brobecker@adacore.com>
10615
10616 * windows-nat.c (windows_add_thread): Add new parameter
10617 "main_thread_p" with default value set to false. Update
10618 function documentation as well as all callers.
10619 (windows_delete_thread): Likewise.
10620 (fake_create_process): Update call to windows_add_thread.
10621 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10622 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10623 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10624 call to windows_delete_thread.
10625
007024cc
SM
106262019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10627
10628 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10629
f62318e9
JB
106302019-02-12 John Baldwin <jhb@FreeBSD.org>
10631
10632 * symfile.c (find_separate_debug_file): Use canonical path of
10633 sysroot with child_path instead of gdb_sysroot if it is valid.
10634
cd4b7848
JB
106352019-02-12 John Baldwin <jhb@FreeBSD.org>
10636
10637 * symfile.c (find_separate_debug_file): Use child_path to
10638 determine if an object file is under a sysroot.
10639
efac4bfe
JB
106402019-02-12 John Baldwin <jhb@FreeBSD.org>
10641
10642 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10643 unittests/child-path-selftests.c.
10644 * common/pathstuff.c (child_path): New function.
10645 * common/pathstuff.h (child_path): New prototype.
10646 * unittests/child-path-selftests.c: New file.
10647
402d2bfe
JB
106482019-02-12 John Baldwin <jhb@FreeBSD.org>
10649
10650 * symfile.c (find_separate_debug_file): Look for separate debug
10651 files in debug directories under the sysroot.
10652
1ed9f74e
PW
106532019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10654
10655 * symtab.h (struct minimal_symbol data_p): New const method.
10656 (struct minimal_symbol text_p): Likewise.
10657 * symtab.c (output_source_filename): Use file name style
10658 to print file name.
10659 (print_symbol_info): Likewise.
10660 (print_msymbol_info): Use address style to print addresses.
10661 Use function name style to print executable text symbols.
10662 (expand_symtab_containing_pc): Use data_p.
10663 (find_pc_sect_compunit_symtab): Likewise.
10664
2636d81d
PW
106652019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10666
10667 * breakpoint.c (describe_other_breakpoints): Use address style
10668 to print addresses.
10669 (say_where): Likewise.
10670
ac8c53cc
PW
106712019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10672
10673 * ada-typeprint.c (print_func_type): Print function name
10674 style to print function name.
10675 * c-typeprint.c (c_print_type_1): Likewise.
10676
ea638c43
AH
106772019-02-11 Alan Hayward <alan.hayward@arm.com>
10678
10679 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10680 for execve.
10681
ab759ca8
PW
106822019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10683
10684 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10685 type_stack.
10686
aff29d1c
JB
106872019-02-10 Joel Brobecker <brobecker@adacore.com>
10688
10689 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10690 TYPE_CODE_REF types.
10691
617126bc
JW
106922019-02-08 Jim Wilson <jimw@sifive.com>
10693
10694 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10695 (riscv_linux_fregset): New.
10696 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10697
46e3ed7f
TT
106982019-02-07 Tom Tromey <tom@tromey.com>
10699
10700 * thread.c (thread_cancel_execution_command): Update.
10701 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10702 methods.
10703 (struct thread_fsm_ops): Remove.
10704 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10705 (thread_fsm_should_stop, thread_fsm_return_value)
10706 (thread_fsm_set_finished, thread_fsm_finished_p)
10707 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10708 Don't declare.
10709 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10710 * infrun.c (clear_proceed_status_thread)
10711 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10712 (print_stop_event): Update.
10713 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10714 Add constructor.
10715 (step_command_fsm_ops): Remove.
10716 (new_step_command_fsm): Remove.
10717 (step_1): Update.
10718 (step_command_fsm::should_stop): Rename from
10719 step_command_fsm_should_stop.
10720 (step_command_fsm::clean_up): Rename from
10721 step_command_fsm_clean_up.
10722 (step_command_fsm::do_async_reply_reason): Rename from
10723 step_command_fsm_async_reply_reason.
10724 (struct until_next_fsm): Inherit from thread_fsm. Add
10725 constructor.
10726 (until_next_fsm_ops): Remove.
10727 (new_until_next_fsm): Remove.
10728 (until_next_fsm::should_stop): Rename from
10729 until_next_fsm_should_stop.
10730 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10731 (until_next_fsm::do_async_reply_reason): Rename from
10732 until_next_fsm_async_reply_reason.
10733 (struct finish_command_fsm): Inherit from thread_fsm. Add
10734 constructor. Change type of breakpoint.
10735 (finish_command_fsm_ops): Remove.
10736 (new_finish_command_fsm): Remove.
10737 (finish_command_fsm::should_stop): Rename from
10738 finish_command_fsm_should_stop.
10739 (finish_command_fsm::clean_up): Rename from
10740 finish_command_fsm_clean_up.
10741 (finish_command_fsm::return_value): Rename from
10742 finish_command_fsm_return_value.
10743 (finish_command_fsm::do_async_reply_reason): Rename from
10744 finish_command_fsm_async_reply_reason.
10745 (finish_command): Update.
10746 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10747 Add constructor.
10748 (call_thread_fsm_ops): Remove.
10749 (call_thread_fsm::call_thread_fsm): Rename from
10750 new_call_thread_fsm.
10751 (call_thread_fsm::should_stop): Rename from
10752 call_thread_fsm_should_stop.
10753 (call_thread_fsm::should_notify_stop): Rename from
10754 call_thread_fsm_should_notify_stop.
10755 (run_inferior_call, call_function_by_hand_dummy): Update.
10756 * cli/cli-interp.c (should_print_stop_to_console): Update.
10757 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10758 Add constructor. Change type of location_breakpoint,
10759 caller_breakpoint.
10760 (until_break_fsm_ops): Remove.
10761 (new_until_break_fsm): Remove.
10762 (until_break_fsm::should_stop): Rename from
10763 until_break_fsm_should_stop.
10764 (until_break_fsm::clean_up): Rename from
10765 until_break_fsm_clean_up.
10766 (until_break_fsm::do_async_reply_reason): Rename from
10767 until_break_fsm_async_reply_reason.
10768 (until_break_command): Update.
10769 * thread-fsm.c: Remove.
10770 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10771
1a5c2598
TT
107722019-02-07 Tom Tromey <tom@tromey.com>
10773
10774 * yy-remap.h: Add include guard.
10775 * xtensa-tdep.h: Add include guard.
10776 * xcoffread.h: Rename include guard.
10777 * varobj-iter.h: Add include guard.
10778 * tui/tui.h: Rename include guard.
10779 * tui/tui-winsource.h: Rename include guard.
10780 * tui/tui-wingeneral.h: Rename include guard.
10781 * tui/tui-windata.h: Rename include guard.
10782 * tui/tui-win.h: Rename include guard.
10783 * tui/tui-stack.h: Rename include guard.
10784 * tui/tui-source.h: Rename include guard.
10785 * tui/tui-regs.h: Rename include guard.
10786 * tui/tui-out.h: Rename include guard.
10787 * tui/tui-layout.h: Rename include guard.
10788 * tui/tui-io.h: Rename include guard.
10789 * tui/tui-hooks.h: Rename include guard.
10790 * tui/tui-file.h: Rename include guard.
10791 * tui/tui-disasm.h: Rename include guard.
10792 * tui/tui-data.h: Rename include guard.
10793 * tui/tui-command.h: Rename include guard.
10794 * tic6x-tdep.h: Add include guard.
10795 * target/waitstatus.h: Rename include guard.
10796 * target/wait.h: Rename include guard.
10797 * target/target.h: Rename include guard.
10798 * target/resume.h: Rename include guard.
10799 * target-float.h: Rename include guard.
10800 * stabsread.h: Add include guard.
10801 * rs6000-tdep.h: Add include guard.
10802 * riscv-fbsd-tdep.h: Add include guard.
10803 * regformats/regdef.h: Rename include guard.
10804 * record.h: Rename include guard.
10805 * python/python.h: Rename include guard.
10806 * python/python-internal.h: Rename include guard.
10807 * python/py-stopevent.h: Rename include guard.
10808 * python/py-ref.h: Rename include guard.
10809 * python/py-record.h: Rename include guard.
10810 * python/py-record-full.h: Rename include guard.
10811 * python/py-record-btrace.h: Rename include guard.
10812 * python/py-instruction.h: Rename include guard.
10813 * python/py-events.h: Rename include guard.
10814 * python/py-event.h: Rename include guard.
10815 * procfs.h: Add include guard.
10816 * proc-utils.h: Add include guard.
10817 * p-lang.h: Add include guard.
10818 * or1k-tdep.h: Rename include guard.
10819 * observable.h: Rename include guard.
10820 * nto-tdep.h: Rename include guard.
10821 * nat/x86-linux.h: Rename include guard.
10822 * nat/x86-linux-dregs.h: Rename include guard.
10823 * nat/x86-gcc-cpuid.h: Add include guard.
10824 * nat/x86-dregs.h: Rename include guard.
10825 * nat/x86-cpuid.h: Rename include guard.
10826 * nat/ppc-linux.h: Rename include guard.
10827 * nat/mips-linux-watch.h: Rename include guard.
10828 * nat/linux-waitpid.h: Rename include guard.
10829 * nat/linux-ptrace.h: Rename include guard.
10830 * nat/linux-procfs.h: Rename include guard.
10831 * nat/linux-osdata.h: Rename include guard.
10832 * nat/linux-nat.h: Rename include guard.
10833 * nat/linux-namespaces.h: Rename include guard.
10834 * nat/linux-btrace.h: Rename include guard.
10835 * nat/glibc_thread_db.h: Rename include guard.
10836 * nat/gdb_thread_db.h: Rename include guard.
10837 * nat/gdb_ptrace.h: Rename include guard.
10838 * nat/fork-inferior.h: Rename include guard.
10839 * nat/amd64-linux-siginfo.h: Rename include guard.
10840 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10841 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10842 * nat/aarch64-linux.h: Rename include guard.
10843 * nat/aarch64-linux-hw-point.h: Rename include guard.
10844 * mn10300-tdep.h: Add include guard.
10845 * mips-linux-tdep.h: Add include guard.
10846 * mi/mi-parse.h: Rename include guard.
10847 * mi/mi-out.h: Rename include guard.
10848 * mi/mi-main.h: Rename include guard.
10849 * mi/mi-interp.h: Rename include guard.
10850 * mi/mi-getopt.h: Rename include guard.
10851 * mi/mi-console.h: Rename include guard.
10852 * mi/mi-common.h: Rename include guard.
10853 * mi/mi-cmds.h: Rename include guard.
10854 * mi/mi-cmd-break.h: Rename include guard.
10855 * m2-lang.h: Add include guard.
10856 * location.h: Rename include guard.
10857 * linux-record.h: Rename include guard.
10858 * linux-nat.h: Add include guard.
10859 * linux-fork.h: Add include guard.
10860 * i386-darwin-tdep.h: Rename include guard.
10861 * hppa-linux-offsets.h: Add include guard.
10862 * guile/guile.h: Rename include guard.
10863 * guile/guile-internal.h: Rename include guard.
10864 * gnu-nat.h: Rename include guard.
10865 * gdb-stabs.h: Rename include guard.
10866 * frv-tdep.h: Add include guard.
10867 * f-lang.h: Add include guard.
10868 * event-loop.h: Add include guard.
10869 * darwin-nat.h: Rename include guard.
10870 * cp-abi.h: Rename include guard.
10871 * config/sparc/nm-sol2.h: Rename include guard.
10872 * config/nm-nto.h: Rename include guard.
10873 * config/nm-linux.h: Add include guard.
10874 * config/i386/nm-i386gnu.h: Rename include guard.
10875 * config/djgpp/nl_types.h: Rename include guard.
10876 * config/djgpp/langinfo.h: Rename include guard.
10877 * compile/gcc-cp-plugin.h: Add include guard.
10878 * compile/gcc-c-plugin.h: Add include guard.
10879 * compile/compile.h: Rename include guard.
10880 * compile/compile-object-run.h: Rename include guard.
10881 * compile/compile-object-load.h: Rename include guard.
10882 * compile/compile-internal.h: Rename include guard.
10883 * compile/compile-cplus.h: Rename include guard.
10884 * compile/compile-c.h: Rename include guard.
10885 * common/xml-utils.h: Rename include guard.
10886 * common/x86-xstate.h: Rename include guard.
10887 * common/version.h: Rename include guard.
10888 * common/vec.h: Rename include guard.
10889 * common/tdesc.h: Rename include guard.
10890 * common/selftest.h: Rename include guard.
10891 * common/scoped_restore.h: Rename include guard.
10892 * common/scoped_mmap.h: Rename include guard.
10893 * common/scoped_fd.h: Rename include guard.
10894 * common/safe-iterator.h: Rename include guard.
10895 * common/run-time-clock.h: Rename include guard.
10896 * common/refcounted-object.h: Rename include guard.
10897 * common/queue.h: Rename include guard.
10898 * common/ptid.h: Rename include guard.
10899 * common/print-utils.h: Rename include guard.
10900 * common/preprocessor.h: Rename include guard.
10901 * common/pathstuff.h: Rename include guard.
10902 * common/observable.h: Rename include guard.
10903 * common/netstuff.h: Rename include guard.
10904 * common/job-control.h: Rename include guard.
10905 * common/host-defs.h: Rename include guard.
10906 * common/gdb_wait.h: Rename include guard.
10907 * common/gdb_vecs.h: Rename include guard.
10908 * common/gdb_unlinker.h: Rename include guard.
10909 * common/gdb_unique_ptr.h: Rename include guard.
10910 * common/gdb_tilde_expand.h: Rename include guard.
10911 * common/gdb_sys_time.h: Rename include guard.
10912 * common/gdb_string_view.h: Rename include guard.
10913 * common/gdb_splay_tree.h: Rename include guard.
10914 * common/gdb_setjmp.h: Rename include guard.
10915 * common/gdb_ref_ptr.h: Rename include guard.
10916 * common/gdb_optional.h: Rename include guard.
10917 * common/gdb_locale.h: Rename include guard.
10918 * common/gdb_assert.h: Rename include guard.
10919 * common/filtered-iterator.h: Rename include guard.
10920 * common/filestuff.h: Rename include guard.
10921 * common/fileio.h: Rename include guard.
10922 * common/environ.h: Rename include guard.
10923 * common/common-utils.h: Rename include guard.
10924 * common/common-types.h: Rename include guard.
10925 * common/common-regcache.h: Rename include guard.
10926 * common/common-inferior.h: Rename include guard.
10927 * common/common-gdbthread.h: Rename include guard.
10928 * common/common-exceptions.h: Rename include guard.
10929 * common/common-defs.h: Rename include guard.
10930 * common/common-debug.h: Rename include guard.
10931 * common/cleanups.h: Rename include guard.
10932 * common/buffer.h: Rename include guard.
10933 * common/btrace-common.h: Rename include guard.
10934 * common/break-common.h: Rename include guard.
10935 * cli/cli-utils.h: Rename include guard.
10936 * cli/cli-style.h: Rename include guard.
10937 * cli/cli-setshow.h: Rename include guard.
10938 * cli/cli-script.h: Rename include guard.
10939 * cli/cli-interp.h: Rename include guard.
10940 * cli/cli-decode.h: Rename include guard.
10941 * cli/cli-cmds.h: Rename include guard.
10942 * charset-list.h: Add include guard.
10943 * buildsym-legacy.h: Rename include guard.
10944 * bfin-tdep.h: Add include guard.
10945 * ax.h: Rename include guard.
10946 * arm-linux-tdep.h: Add include guard.
10947 * arm-fbsd-tdep.h: Add include guard.
10948 * arch/xtensa.h: Rename include guard.
10949 * arch/tic6x.h: Add include guard.
10950 * arch/i386.h: Add include guard.
10951 * arch/arm.h: Rename include guard.
10952 * arch/arm-linux.h: Rename include guard.
10953 * arch/arm-get-next-pcs.h: Rename include guard.
10954 * arch/amd64.h: Add include guard.
10955 * arch/aarch64-insn.h: Rename include guard.
10956 * arch-utils.h: Rename include guard.
10957 * annotate.h: Add include guard.
10958 * amd64-darwin-tdep.h: Rename include guard.
10959 * aarch64-linux-tdep.h: Add include guard.
10960 * aarch64-fbsd-tdep.h: Add include guard.
10961 * aarch32-linux-nat.h: Add include guard.
10962
ab9268d2
PW
109632019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10964
10965 * macrotab.c (macro_define_internal): New function that
10966 factorizes macro_define_object_internal and macro_define_function
10967 code.
10968 (macro_define_object_internal): Use macro_define_internal.
10969 (macro_define_function): Likewise.
10970
bb0da2b4
PW
109712019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10972
10973 * macrocmd.c (extract_identifier): Return
10974 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10975 callers.
10976
424eb552
JB
109772019-02-06 John Baldwin <jhb@FreeBSD.org>
10978
10979 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10980
1688cb29
TT
109812019-02-05 Tom Tromey <tom@tromey.com>
10982
10983 * target.c (target_stack::unpush): Move assertion earlier.
10984
b5eba2d8
TT
109852019-01-30 Tom Tromey <tom@tromey.com>
10986
10987 PR python/23615:
10988 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10989 (gdbpy_parse_and_eval): Likewise.
10990 * python/python-internal.h (gdbpy_allow_threads): New class.
10991
7054e2ff
JB
109922019-01-28 John Baldwin <jhb@FreeBSD.org>
10993
10994 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10995 (aarch64_fbsd_fpregmap): Move earlier.
10996 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10997 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10998 instead of individual calls to trad_frame_set_reg_addr.
10999 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11000 earlier.
11001 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11002 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11003 instead of individual calls to trad_frame_set_reg_addr.
11004
36c25ffa
AH
110052019-01-28 Alan Hayward <alan.hayward@arm.com>
11006
11007 * CONTRIBUTE: Replace contribution list with wiki link.
11008
a0707f3c
TT
110092019-01-25 Tom Tromey <tom@tromey.com>
11010
11011 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11012
0747795c
TT
110132019-01-25 Tom Tromey <tom@tromey.com>
11014
11015 * xtensa-linux-nat.c: Fix common/ includes.
11016 * xml-support.h: Fix common/ includes.
11017 * xml-support.c: Fix common/ includes.
11018 * x86-linux-nat.c: Fix common/ includes.
11019 * windows-nat.c: Fix common/ includes.
11020 * varobj.h: Fix common/ includes.
11021 * varobj.c: Fix common/ includes.
11022 * value.c: Fix common/ includes.
11023 * valops.c: Fix common/ includes.
11024 * utils.c: Fix common/ includes.
11025 * unittests/xml-utils-selftests.c: Fix common/ includes.
11026 * unittests/utils-selftests.c: Fix common/ includes.
11027 * unittests/unpack-selftests.c: Fix common/ includes.
11028 * unittests/tracepoint-selftests.c: Fix common/ includes.
11029 * unittests/style-selftests.c: Fix common/ includes.
11030 * unittests/string_view-selftests.c: Fix common/ includes.
11031 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11032 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11033 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11034 * unittests/rsp-low-selftests.c: Fix common/ includes.
11035 * unittests/parse-connection-spec-selftests.c: Fix common/
11036 includes.
11037 * unittests/optional-selftests.c: Fix common/ includes.
11038 * unittests/offset-type-selftests.c: Fix common/ includes.
11039 * unittests/observable-selftests.c: Fix common/ includes.
11040 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11041 * unittests/memrange-selftests.c: Fix common/ includes.
11042 * unittests/memory-map-selftests.c: Fix common/ includes.
11043 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11044 * unittests/function-view-selftests.c: Fix common/ includes.
11045 * unittests/environ-selftests.c: Fix common/ includes.
11046 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11047 * unittests/common-utils-selftests.c: Fix common/ includes.
11048 * unittests/cli-utils-selftests.c: Fix common/ includes.
11049 * unittests/array-view-selftests.c: Fix common/ includes.
11050 * ui-file.c: Fix common/ includes.
11051 * tui/tui-io.c: Fix common/ includes.
11052 * tracepoint.h: Fix common/ includes.
11053 * tracepoint.c: Fix common/ includes.
11054 * tracefile-tfile.c: Fix common/ includes.
11055 * top.h: Fix common/ includes.
11056 * top.c: Fix common/ includes.
11057 * thread.c: Fix common/ includes.
11058 * target/waitstatus.h: Fix common/ includes.
11059 * target/waitstatus.c: Fix common/ includes.
11060 * target.h: Fix common/ includes.
11061 * target.c: Fix common/ includes.
11062 * target-memory.c: Fix common/ includes.
11063 * target-descriptions.c: Fix common/ includes.
11064 * symtab.h: Fix common/ includes.
11065 * symfile.c: Fix common/ includes.
11066 * stap-probe.c: Fix common/ includes.
11067 * spu-linux-nat.c: Fix common/ includes.
11068 * sparc-nat.c: Fix common/ includes.
11069 * source.c: Fix common/ includes.
11070 * solib.c: Fix common/ includes.
11071 * solib-target.c: Fix common/ includes.
11072 * ser-unix.c: Fix common/ includes.
11073 * ser-tcp.c: Fix common/ includes.
11074 * ser-pipe.c: Fix common/ includes.
11075 * ser-base.c: Fix common/ includes.
11076 * selftest-arch.c: Fix common/ includes.
11077 * s12z-tdep.c: Fix common/ includes.
11078 * rust-exp.y: Fix common/ includes.
11079 * rs6000-aix-tdep.c: Fix common/ includes.
11080 * riscv-tdep.c: Fix common/ includes.
11081 * remote.c: Fix common/ includes.
11082 * remote-notif.h: Fix common/ includes.
11083 * remote-fileio.h: Fix common/ includes.
11084 * remote-fileio.c: Fix common/ includes.
11085 * regcache.h: Fix common/ includes.
11086 * regcache.c: Fix common/ includes.
11087 * record-btrace.c: Fix common/ includes.
11088 * python/python.c: Fix common/ includes.
11089 * python/py-type.c: Fix common/ includes.
11090 * python/py-inferior.c: Fix common/ includes.
11091 * progspace.h: Fix common/ includes.
11092 * producer.c: Fix common/ includes.
11093 * procfs.c: Fix common/ includes.
11094 * proc-api.c: Fix common/ includes.
11095 * printcmd.c: Fix common/ includes.
11096 * ppc-linux-nat.c: Fix common/ includes.
11097 * parser-defs.h: Fix common/ includes.
11098 * osdata.c: Fix common/ includes.
11099 * obsd-nat.c: Fix common/ includes.
11100 * nat/x86-linux.c: Fix common/ includes.
11101 * nat/x86-linux-dregs.c: Fix common/ includes.
11102 * nat/x86-dregs.h: Fix common/ includes.
11103 * nat/x86-dregs.c: Fix common/ includes.
11104 * nat/ppc-linux.c: Fix common/ includes.
11105 * nat/mips-linux-watch.h: Fix common/ includes.
11106 * nat/mips-linux-watch.c: Fix common/ includes.
11107 * nat/linux-waitpid.c: Fix common/ includes.
11108 * nat/linux-ptrace.h: Fix common/ includes.
11109 * nat/linux-ptrace.c: Fix common/ includes.
11110 * nat/linux-procfs.c: Fix common/ includes.
11111 * nat/linux-personality.c: Fix common/ includes.
11112 * nat/linux-osdata.c: Fix common/ includes.
11113 * nat/linux-namespaces.c: Fix common/ includes.
11114 * nat/linux-btrace.h: Fix common/ includes.
11115 * nat/linux-btrace.c: Fix common/ includes.
11116 * nat/fork-inferior.c: Fix common/ includes.
11117 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11118 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11119 * nat/aarch64-linux.c: Fix common/ includes.
11120 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11121 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11122 * namespace.h: Fix common/ includes.
11123 * mips-linux-tdep.c: Fix common/ includes.
11124 * minsyms.c: Fix common/ includes.
11125 * mi/mi-parse.h: Fix common/ includes.
11126 * mi/mi-main.c: Fix common/ includes.
11127 * mi/mi-cmd-env.c: Fix common/ includes.
11128 * memrange.h: Fix common/ includes.
11129 * memattr.c: Fix common/ includes.
11130 * maint.h: Fix common/ includes.
11131 * maint.c: Fix common/ includes.
11132 * main.c: Fix common/ includes.
11133 * machoread.c: Fix common/ includes.
11134 * location.c: Fix common/ includes.
11135 * linux-thread-db.c: Fix common/ includes.
11136 * linux-nat.c: Fix common/ includes.
11137 * linux-fork.c: Fix common/ includes.
11138 * inline-frame.c: Fix common/ includes.
11139 * infrun.c: Fix common/ includes.
11140 * inflow.c: Fix common/ includes.
11141 * inferior.h: Fix common/ includes.
11142 * inferior.c: Fix common/ includes.
11143 * infcmd.c: Fix common/ includes.
11144 * inf-ptrace.c: Fix common/ includes.
11145 * inf-child.c: Fix common/ includes.
11146 * ia64-linux-nat.c: Fix common/ includes.
11147 * i387-tdep.c: Fix common/ includes.
11148 * i386-tdep.c: Fix common/ includes.
11149 * i386-linux-tdep.c: Fix common/ includes.
11150 * i386-linux-nat.c: Fix common/ includes.
11151 * i386-go32-tdep.c: Fix common/ includes.
11152 * i386-fbsd-tdep.c: Fix common/ includes.
11153 * i386-fbsd-nat.c: Fix common/ includes.
11154 * guile/scm-type.c: Fix common/ includes.
11155 * guile/guile.c: Fix common/ includes.
11156 * go32-nat.c: Fix common/ includes.
11157 * gnu-nat.c: Fix common/ includes.
11158 * gdbthread.h: Fix common/ includes.
11159 * gdbarch-selftests.c: Fix common/ includes.
11160 * gdb_usleep.c: Fix common/ includes.
11161 * gdb_select.h: Fix common/ includes.
11162 * gdb_bfd.c: Fix common/ includes.
11163 * gcore.c: Fix common/ includes.
11164 * fork-child.c: Fix common/ includes.
11165 * findvar.c: Fix common/ includes.
11166 * fbsd-nat.c: Fix common/ includes.
11167 * event-top.c: Fix common/ includes.
11168 * event-loop.c: Fix common/ includes.
11169 * dwarf2read.c: Fix common/ includes.
11170 * dwarf2loc.c: Fix common/ includes.
11171 * dwarf2-frame.c: Fix common/ includes.
11172 * dwarf-index-cache.c: Fix common/ includes.
11173 * dtrace-probe.c: Fix common/ includes.
11174 * disasm-selftests.c: Fix common/ includes.
11175 * defs.h: Fix common/ includes.
11176 * csky-tdep.c: Fix common/ includes.
11177 * cp-valprint.c: Fix common/ includes.
11178 * cp-support.h: Fix common/ includes.
11179 * cp-support.c: Fix common/ includes.
11180 * corelow.c: Fix common/ includes.
11181 * completer.h: Fix common/ includes.
11182 * completer.c: Fix common/ includes.
11183 * compile/compile.c: Fix common/ includes.
11184 * compile/compile-loc2c.c: Fix common/ includes.
11185 * compile/compile-cplus-types.c: Fix common/ includes.
11186 * compile/compile-cplus-symbols.c: Fix common/ includes.
11187 * command.h: Fix common/ includes.
11188 * cli/cli-dump.c: Fix common/ includes.
11189 * cli/cli-cmds.c: Fix common/ includes.
11190 * charset.c: Fix common/ includes.
11191 * build-id.c: Fix common/ includes.
11192 * btrace.h: Fix common/ includes.
11193 * btrace.c: Fix common/ includes.
11194 * breakpoint.h: Fix common/ includes.
11195 * breakpoint.c: Fix common/ includes.
11196 * ax.h:
11197 (enum agent_op): Fix common/ includes.
11198 * ax-general.c (struct aop_map): Fix common/ includes.
11199 * ax-gdb.c: Fix common/ includes.
11200 * auxv.c: Fix common/ includes.
11201 * auto-load.c: Fix common/ includes.
11202 * arm-tdep.c: Fix common/ includes.
11203 * arch/riscv.c: Fix common/ includes.
11204 * arch/ppc-linux-common.c: Fix common/ includes.
11205 * arch/i386.c: Fix common/ includes.
11206 * arch/arm.c: Fix common/ includes.
11207 * arch/arm-linux.c: Fix common/ includes.
11208 * arch/arm-get-next-pcs.c: Fix common/ includes.
11209 * arch/amd64.c: Fix common/ includes.
11210 * arch/aarch64.c: Fix common/ includes.
11211 * arch/aarch64-insn.c: Fix common/ includes.
11212 * arch-utils.c: Fix common/ includes.
11213 * amd64-windows-tdep.c: Fix common/ includes.
11214 * amd64-tdep.c: Fix common/ includes.
11215 * amd64-sol2-tdep.c: Fix common/ includes.
11216 * amd64-obsd-tdep.c: Fix common/ includes.
11217 * amd64-nbsd-tdep.c: Fix common/ includes.
11218 * amd64-linux-tdep.c: Fix common/ includes.
11219 * amd64-linux-nat.c: Fix common/ includes.
11220 * amd64-fbsd-tdep.c: Fix common/ includes.
11221 * amd64-fbsd-nat.c: Fix common/ includes.
11222 * amd64-dicos-tdep.c: Fix common/ includes.
11223 * amd64-darwin-tdep.c: Fix common/ includes.
11224 * agent.c: Fix common/ includes.
11225 * ada-lang.h: Fix common/ includes.
11226 * ada-lang.c: Fix common/ includes.
11227 * aarch64-tdep.c: Fix common/ includes.
11228
2f5c153e
TT
112292019-01-25 Tom Tromey <tom@tromey.com>
11230
11231 * common/create-version.sh: Use common/version.h.
11232
adc6a863
PA
112332019-01-24 Pedro Alves <palves@redhat.com>
11234
11235 * infrun.c (signal_stop, signal_print, signal_program)
11236 (signal_catch, signal_pass): Now arrays instead of pointers.
11237 (update_signals_program_target, do_target_resume)
11238 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11239 * linux-nat.c (linux_nat_target::pass_signals)
11240 (linux_nat_target::create_inferior, linux_nat_target::attach):
11241 Adjust.
11242 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11243 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11244 * procfs.c (procfs_target::pass_signals): Adjust.
11245 * record-full.c (record_full_target::resume): Adjust.
11246 * remote.c (remote_target::pass_signals)
11247 (remote_target::program_signals): Adjust.
11248 * target-debug.h (target_debug_print_signals): Now takes a
11249 gdb::array_view as parameter. Adjust.
11250 * target.h (target_ops) <pass_signals, program_signals>: Replace
11251 pointer and length parameters with gdb::array_view.
11252 (target_pass_signals, target_program_signals): Likewise.
11253 * target-delegates.c: Regenerate.
11254
3046d67a
PA
112552019-01-24 Pedro Alves <palves@redhat.com>
11256
11257 * common/forward-scope-exit.h
11258 (forward_scope_exit::forward_scope_exit): Pass arguments to
11259 m_bind_function directly, instead of creating a std::bind and
11260 copying that.
11261
353229bf
AH
112622019-01-24 Alan Hayward <alan.hayward@arm.com>
11263
11264 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11265 for static members.
11266 (pass_in_v_vfp_candidate): Likewise.
11267
311dc83a
TT
112682019-01-23 Tom Tromey <tom@tromey.com>
11269 Pedro Alves <palves@redhat.com>
11270
11271 * regcache.c (class regcache_invalidator): Remove.
11272 (regcache::raw_write): Use make_scope_exit.
11273
296bd123
TT
112742019-01-23 Tom Tromey <tom@tromey.com>
11275
11276 * ui-out.h (class ui_out_emit_type): Update comment.
11277
979a0d13
TT
112782019-01-23 Tom Tromey <tom@tromey.com>
11279
11280 * infrun.c (fetch_inferior_event): Update comment.
11281
d238133d
TT
112822019-01-23 Tom Tromey <tom@tromey.com>
11283 Pedro Alves <palves@redhat.com>
11284
11285 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11286 parameter.
11287 (fetch_inferior_event): Use SCOPE_EXIT.
11288
11289
9885e6bb
TT
112902019-01-23 Tom Tromey <tom@tromey.com>
11291 Pedro Alves <palves@redhat.com>
11292
11293 * infrun.c (disable_thread_events): Delete.
11294 (stop_all_threads): Use SCOPE_EXIT.
11295
286526c1
TT
112962019-01-23 Tom Tromey <tom@tromey.com>
11297 Pedro Alves <palves@redhat.com>
11298
11299 * symfile.c: Include forward-scope-exit.h.
11300 (clear_symtab_users_cleanup): Replace forward declaration with
11301 a FORWARD_SCOPE_EXIT.
11302 (syms_from_objfile_1): Use the forward_scope_exit and
11303 gdb::optional instead of cleanup_function.
11304 (reread_symbols): Use the forward_scope_exit instead of
11305 cleanup_function.
11306 (clear_symtab_users_cleanup): Remove function.
11307
1db93f14
TT
113082019-01-23 Tom Tromey <tom@tromey.com>
11309 Pedro Alves <palves@redhat.com>
11310
11311 * linux-nat.c: Include scope-exit.h.
11312 (cleanup_target_stop): Remove.
11313 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11314 SCOPE_EXIT.
11315
2cc83d1e
TT
113162019-01-23 Tom Tromey <tom@tromey.com>
11317 Pedro Alves <palves@redhat.com>
11318
11319 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11320 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11321
694c6bf5
TT
113222019-01-23 Tom Tromey <tom@tromey.com>
11323 Andrew Burgess <andrew.burgess@embecosm.com>
11324 Pedro Alves <palves@redhat.com>
11325
11326 * infrun.c (fetch_inferior_event): Use scope_exit.
11327 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11328 * top.c (execute_command): Use scope_exit.
11329 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11330 * utils.c (do_bpstat_clear_actions_cleanup)
11331 (make_bpstat_clear_actions_cleanup): Remove.
11332
4c41382a
TT
113332019-01-23 Tom Tromey <tom@tromey.com>
11334 Pedro Alves <palves@redhat.com>
11335
11336 * infrun.c: Include "common/scope-exit.h"
11337 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11338 (wait_for_inferior): Use SCOPE_EXIT.
11339 (fetch_inferior_event): Use scope_exit.
11340
89f8fb50
TT
113412019-01-23 Tom Tromey <tom@tromey.com>
11342 Pedro Alves <palves@redhat.com>
11343
11344 * breakpoint.c (create_breakpoint): Remove cleanup.
11345
5419bdae
TT
113462019-01-23 Tom Tromey <tom@tromey.com>
11347 Andrew Burgess <andrew.burgess@embecosm.com>
11348 Pedro Alves <palves@redhat.com>
11349
e587ef42
PA
113502019-01-23 Pedro Alves <palves@redhat.com>
11351
11352 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11353
77f0e74c
PA
113542019-01-23 Pedro Alves <palves@redhat.com>
11355 Andrew Burgess <andrew.burgess@embecosm.com>
11356
11357 * gdbthread.h: Include "common/forward-scope-exit.h".
11358 (scoped_finish_thread_state): Redefine custom class in terms of
11359 forward_scope_exit.
11360
5b9b3e53
PA
113612019-01-23 Pedro Alves <palves@redhat.com>
11362 Andrew Burgess <andrew.burgess@embecosm.com>
11363
11364 * common/forward-scope-exit.h: New file.
11365
54b65c9b
PA
113662019-01-23 Pedro Alves <palves@redhat.com>
11367 Andrew Burgess <andrew.burgess@embecosm.com>
11368 Tom Tromey <tom@tromey.com>
11369
11370 * common/scope-exit.h: New file.
11371
cf08fb29
PA
113722019-01-23 Pedro Alves <palves@redhat.com>
11373
11374 * common/preprocessor.h (ESC): Rename to ...
11375 (ESC_PARENS): ... this.
11376 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11377 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11378
ae73e2e2
TT
113792019-01-23 Tom Tromey <tom@tromey.com>
11380
11381 * language.h (class scoped_switch_to_sym_language_if_auto):
11382 Initialize m_lang in both cases.
11383
6594e122
AH
113842019-01-23 Alan Hayward <alan.hayward@arm.com>
11385
11386 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11387 with XCNEW.
11388
a7c9855d
TT
113892019-01-22 Tom Tromey <tom@tromey.com>
11390
11391 * corelow.c: Do not include sys/file.h.
11392
93cc1d53
TT
113932019-01-22 Tom Tromey <tom@tromey.com>
11394
11395 * tui/tui-wingeneral.h: Include gdb_curses.h.
11396
38561778
TT
113972019-01-22 Tom Tromey <tom@tromey.com>
11398
11399 * source-cache.h (class source_cache) <get_source_lines,
11400 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11401
37b3ab5b
TT
114022019-01-22 Tom Tromey <tom@tromey.com>
11403
11404 * remote-fileio.h (struct remote_target): Declare.
11405
3fabc016
TT
114062019-01-22 Tom Tromey <tom@tromey.com>
11407
11408 * python/py-arch.c: Do not include py-ref.h.
11409 * python/py-bpevent.c: Do not include py-ref.h.
11410 * python/py-cmd.c: Do not include py-ref.h.
11411 * python/py-continueevent.c: Do not include py-ref.h.
11412 * python/py-event.h: Do not include py-ref.h.
11413 * python/py-evtregistry.c: Do not include py-ref.h.
11414 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11415 * python/py-frame.c: Do not include py-ref.h.
11416 * python/py-framefilter.c: Do not include py-ref.h.
11417 * python/py-function.c: Do not include py-ref.h.
11418 * python/py-infevents.c: Do not include py-ref.h.
11419 * python/py-linetable.c: Do not include py-ref.h.
11420 * python/py-objfile.c: Do not include py-ref.h.
11421 * python/py-param.c: Do not include py-ref.h.
11422 * python/py-prettyprint.c: Do not include py-ref.h.
11423 * python/py-progspace.c: Do not include py-ref.h.
11424 * python/py-symbol.c: Do not include py-ref.h.
11425 * python/py-symtab.c: Do not include py-ref.h.
11426 * python/py-type.c: Do not include py-ref.h.
11427 * python/py-unwind.c: Do not include py-ref.h.
11428 * python/py-utils.c: Do not include py-ref.h.
11429 * python/py-value.c: Do not include py-ref.h.
11430 * python/py-varobj.c: Do not include py-ref.h.
11431 * python/py-xmethods.c: Do not include py-ref.h.
11432 * python/python.c: Do not include py-ref.h.
11433 * varobj.c: Do not include py-ref.h.
11434
6b4d7774
TT
114352019-01-22 Tom Tromey <tom@tromey.com>
11436
11437 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11438 keyword for bcache.
11439
7af7e9b5
TT
114402019-01-22 Tom Tromey <tom@tromey.com>
11441
11442 * compile/compile-cplus-types.c: Remove a comment by #include.
11443
951d1049
TT
114442019-01-22 Tom Tromey <tom@tromey.com>
11445
11446 * compile/gcc-c-plugin.h: Include compile-internal.h.
11447
d65d5705
TT
114482019-01-22 Tom Tromey <tom@tromey.com>
11449
11450 * stabsread.c (EXTERN): Do not define.
11451 (symnum, next_symbol_text_func, processing_gcc_compilation)
11452 (within_function, global_sym_chain, global_stabs)
11453 (previous_stab_code, this_object_header_files)
11454 (n_this_object_header_files)
11455 (n_allocated_this_object_header_files): Define.
11456 * stabsread.h (EXTERN): Never define. Use "extern".
11457
b6fb1ee5
PW
114582019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11459
11460 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11461 history_value.
11462
be6d4f74
TT
114632019-01-21 Tom Tromey <tom@tromey.com>
11464
11465 * ui-out.c: Fix includes.
11466 * tui/tui-source.c: Fix includes.
11467 * target.c: Fix includes.
11468 * remote.c: Fix includes.
11469 * regcache.c: Fix includes.
11470 * python/py-block.c: Fix includes.
11471 * printcmd.c: Fix includes.
11472 * or1k-tdep.c: Fix includes.
11473 * mi/mi-main.c: Fix includes.
11474 * m32r-tdep.c: Fix includes.
11475 * csky-tdep.c: Fix includes.
11476 * compile/compile-cplus-types.c: Fix includes.
11477 * cli/cli-interp.c: Fix includes.
11478
73021deb
AH
114792019-01-21 Alan Hayward <alan.hayward@arm.com>
11480
11481 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11482 for padding.
11483
7932255d
TT
114842019-01-16 Tom Tromey <tom@tromey.com>
11485
11486 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11487 earlier.
11488 (struct objfile) <msymbols_range>: Move from top level.
11489 <msymbols>: New method.
11490 (class objfile_msymbols): Remove.
11491 * symtab.c (default_collect_symbol_completion_matches_break_on):
11492 Update.
11493 * symmisc.c (dump_msymbols): Update.
11494 * stabsread.c (scan_file_globals): Update.
11495 * objc-lang.c (info_selectors_command, info_classes_command)
11496 (find_methods): Update.
11497 * minsyms.c (find_solib_trampoline_target): Update.
11498 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11499 * coffread.c (coff_symfile_read): Update.
11500 * ada-lang.c (ada_lookup_simple_minsym)
11501 (ada_collect_symbol_completion_matches): Update.
11502
604b1bfb
TT
115032019-01-16 Tom Tromey <tom@tromey.com>
11504
11505 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11506 type. Remove no-argument constructor.
11507 <iterator::operator++>: Simplify.
11508 <begin>: Update.
11509 <end>: Use minimal_symbol_count.
11510
f252c6d5
TT
115112019-01-16 Tom Tromey <tom@tromey.com>
11512
11513 * objfiles.h (struct objfile) <psymtabs>: New method.
11514 (class objfile_psymtabs): Remove.
11515 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11516 typedef.
11517 <range>: New method.
11518 (require_partial_symbols): Change return type.
11519 * psymtab.c (require_partial_symbols)
11520 (psym_expand_symtabs_matching): Update.
11521 * mdebugread.c (parse_partial_symbols): Update.
11522 * dbxread.c (dbx_end_psymtab): Update.
11523
b669c953
TT
115242019-01-15 Tom Tromey <tom@tromey.com>
11525
11526 * symtab.c (lookup_objfile_from_block)
11527 (lookup_symbol_in_objfile_symtabs)
11528 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11529 (find_line_symtab, info_sources_command)
11530 (default_collect_symbol_completion_matches_break_on)
11531 (make_source_files_completion_list): Update.
11532 * symmisc.c (print_objfile_statistics, dump_objfile)
11533 (maintenance_print_symbols, maintenance_info_symtabs)
11534 (maintenance_check_symtabs, maintenance_info_line_tables):
11535 Update.
11536 * source.c (select_source_symtab)
11537 (forget_cached_source_info_for_objfile): Update.
11538 * objfiles.h (class objfile_compunits): Remove.
11539 (struct objfile) <compunits_range>: New typedef.
11540 (compunits): New method.
11541 * objfiles.c (objfile_relocate1): Update.
11542 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11543 * maint.c (count_symtabs_and_blocks): Update.
11544 * linespec.c (iterate_over_all_matching_symtabs): Update.
11545 * cp-support.c (add_symbol_overload_list_qualified): Update.
11546 * coffread.c (coff_symtab_read): Update.
11547 * ada-lang.c (add_nonlocal_symbols)
11548 (ada_collect_symbol_completion_matches)
11549 (ada_add_global_exceptions): Update.
11550
7e955d83
TT
115512019-01-15 Tom Tromey <tom@tromey.com>
11552
11553 * progspace.h (program_space) <objfiles_safe_range>: New
11554 typedef.
11555 <objfiles_safe>: New method.
11556 * objfiles.h (class all_objfiles_safe): Remove.
11557 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11558 * jit.c (jit_inferior_exit_hook): Update.
11559
2030c079
TT
115602019-01-17 Tom Tromey <tom@tromey.com>
11561
11562 * progspace.h (program_space) <objfiles_range>: New typedef.
11563 <objfiles>: New method.
11564 <objfiles_head>: Rename from objfiles.
11565 (object_files): Update.
11566 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11567 * guile/scm-pretty-print.c
11568 (ppscm_find_pretty_printer_from_objfiles): Update.
11569 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11570 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11571 Update.
11572 * python/py-progspace.c (pspy_get_objfiles): Update.
11573 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11574 Update.
11575 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11576 (objfpy_lookup_objfile_by_build_id): Update.
11577 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11578 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11579 Update.
11580 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11581 (expand_symtab_containing_pc, lookup_objfile_from_block)
11582 (lookup_static_symbol, basic_lookup_transparent_type)
11583 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11584 (find_line_symtab, info_sources_command)
11585 (default_collect_symbol_completion_matches_break_on)
11586 (make_source_files_completion_list, find_main_name): Update.
11587 * symmisc.c (print_symbol_bcache_statistics)
11588 (print_objfile_statistics, maintenance_print_symbols)
11589 (maintenance_print_msymbols, maintenance_print_objfiles)
11590 (maintenance_info_symtabs, maintenance_check_symtabs)
11591 (maintenance_expand_symtabs, maintenance_info_line_tables):
11592 Update.
11593 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11594 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11595 (map_overlay_command, unmap_overlay_command)
11596 (simple_overlay_update, expand_symtabs_matching)
11597 (map_symbol_filenames): Update.
11598 * symfile-debug.c (set_debug_symfile): Update.
11599 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11600 Update.
11601 * source.c (select_source_symtab, forget_cached_source_info):
11602 Update.
11603 * solib.c (solib_read_symbols): Update.
11604 * solib-spu.c (append_ocl_sos): Update.
11605 * psymtab.c (maintenance_print_psymbols)
11606 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11607 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11608 * printcmd.c (info_symbol_command): Update.
11609 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11610 Update.
11611 * objfiles.h (class all_objfiles): Remove.
11612 * objfiles.c (have_partial_symbols, have_full_symbols)
11613 (have_minimal_symbols, qsort_cmp, update_section_map)
11614 (shared_objfile_contains_address_p)
11615 (default_iterate_over_objfiles_in_search_order): Update.
11616 * objc-lang.c (info_selectors_command, info_classes_command)
11617 (find_methods): Update.
11618 * minsyms.c (find_solib_trampoline_target): Update.
11619 * maint.c (maintenance_info_sections)
11620 (maintenance_translate_address, count_symtabs_and_blocks):
11621 Update.
11622 * main.c (captured_main_1): Update.
11623 * linux-thread-db.c (try_thread_db_load_from_pdir)
11624 (has_libpthread): Update.
11625 * linespec.c (iterate_over_all_matching_symtabs)
11626 (search_minsyms_for_name): Update.
11627 * jit.c (jit_find_objf_with_entry_addr): Update.
11628 * hppa-tdep.c (find_unwind_entry)
11629 (hppa_lookup_stub_minimal_symbol): Update.
11630 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11631 Update.
11632 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11633 (elf_gnu_ifunc_resolve_by_got): Update.
11634 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11635 * dwarf-index-write.c (save_gdb_index_command): Update.
11636 * cp-support.c (add_symbol_overload_list_qualified): Update.
11637 * breakpoint.c (create_overlay_event_breakpoint)
11638 (create_longjmp_master_breakpoint)
11639 (create_std_terminate_master_breakpoint)
11640 (create_exception_master_breakpoint): Update.
11641 * blockframe.c (find_pc_partial_function): Update.
11642 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11643 (ada_collect_symbol_completion_matches)
11644 (ada_add_global_exceptions): Update.
11645
776489e0
TT
116462019-01-17 Tom Tromey <tom@tromey.com>
11647
11648 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11649 declare VEC.
11650 (solib_target_parse_libraries): Change return type.
11651 (library_list_start_segment, library_list_start_section)
11652 (library_list_end_library, library_list_start_library); Update.
11653 (solib_target_free_library_list): Remove.
11654 (solib_target_parse_libraries): Remove cleanup. Change return
11655 type.
11656 (solib_target_current_sos): Update.
11657
6471e7d2
TT
116582019-01-17 Tom Tromey <tromey@bapiya>
11659
11660 * valprint.c: Replace "the the" with "the".
11661 * symtab.c: Replace "the the" with "the".
11662 * solib.c: Replace "the the" with "the".
11663 * solib-dsbt.c: Replace "the the" with "the".
11664 * linespec.c: Replace "the the" with "the".
11665 * dwarf2loc.h: Replace "the the" with "the".
11666 * amd64-windows-tdep.c: Replace "the the" with "the".
11667 * aarch64-tdep.c: Replace "the the" with "the".
11668
c24bdb02
KS
116692019-01-16 Keith Seitz <keiths@redhat.com>
11670
11671 PR gdb/23773
11672 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11673 <builder>: Rename to ..
11674 <m_builder>: ... this and make private.
11675 (dwarf2_cu::get_builder): New method. Change all users of
11676 `builder' to use this method.
11677 (dwarf2_start_symtab): Move to ...
11678 (dwarf2_cu::start_symtab): ... here. Update all callers
11679 (setup_type_unit_groups): Move to ...
11680 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11681 callers.
11682 (dwarf2_cu::reset_builder): New method.
11683 (process_full_compunit, process_full_type_unit): Use
11684 dwarf2_cu::reset_builder.
11685 (follow_die_offset): Record the ancestor CU if it is different
11686 from the followed DIE's CU.
11687 (follow_die_sig_1): Likewise.
11688
8d64371b
TT
116892019-01-15 Tom Tromey <tom@tromey.com>
11690
11691 * remote.c (class remote_state) <buf>: Now a char_vector.
11692 <buf_size>: Remove.
11693 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11694 parameter.
11695 (remote_target::getpkt_or_notif_sane_1)
11696 (remote_target::getpkt_sane)
11697 (remote_target::getpkt_or_notif_sane): Likewise.
11698 (class remote_target) <putpkt>: New overload.
11699 (remote_target::read_frame): Change type of "buf_p". Remove
11700 sizeof_p parameter.
11701 (packet_ok): New overload.
11702 (packet_check_result): New overload.
11703 Update all uses.
11704
bb277751
TT
117052019-01-14 Tom Tromey <tom@tromey.com>
11706
11707 * remote-notif.c (handle_notification, remote_notif_ack)
11708 (remote_notif_parse): Make "buf" const.
11709 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11710 const.
11711 (remote_notif_parse, remote_notif_ack, handle_notification):
11712 Likewise.
11713 * remote.c (remote_notif_stop_parse): Make "buf" const.
11714 (remote_target::remote_parse_stop_reply): Make "buf" const.
11715 (remote_notif_stop_ack): Make "buf" const.
11716
05be00a8
TT
117172019-01-14 Tom Tromey <tom@tromey.com>
11718
11719 * remote.c (remote_console_output): Make parameter const.
11720
491adeca
TT
117212019-01-14 Tom Tromey <tom@tromey.com>
11722
11723 * target-debug.h (target_debug_print_signals): Constify.
11724 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11725 * procfs.c (procfs_target::pass_signals): Update.
11726 * linux-nat.c (linux_nat_target::pass_signals): Update.
11727 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11728 * target-delegates.c: Rebuild.
11729 * remote.c (remote_target::program_signals): Update.
11730 (remote_target::pass_signals): Update.
11731 * target.c (target_pass_signals): Constify argument.
11732 (target_program_signals): Likewise.
11733 * target.h (struct target_ops) <pass_signals, program_signals>:
11734 Constify argument.
11735 (target_pass_signals, target_program_signals): Constify argument.
11736
bbd94648
TT
117372019-01-14 Tom Tromey <tom@tromey.com>
11738
11739 PR tui/28819:
11740 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11741
6f072a10
PFC
117422019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11743
11744 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11745 field.
11746 * rs6000-tdep.c: Include reggroups.h.
11747 (IS_V_ALIAS_PSEUDOREG): Define.
11748 (rs6000_register_name): Return names for the "vX" aliases.
11749 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11750 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11751 aliases. Call default_register_reggroup_p for all other
11752 pseudo-registers.
11753 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11754 New functions.
11755 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11756 Handle "vX" aliases.
11757 (v_alias_pseudo_register_collect): New function.
11758 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11759 (rs6000_gdbarch_init): Initialize "vX" aliases as
11760 pseudo-registers. Restore registration of
11761 rs6000_pseudo_register_reggroup_p with
11762 set_tdesc_pseudo_register_reggroup_p.
11763
1a782351
MF
117642019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11765
11766 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11767 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11768 set_gdbarch_num_pseudo_regs.
11769
d73cff18
PW
117702019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11771
11772 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11773 Remove arg prefixname, add do_set and do_show.
11774 Add member functions set_list and show_list.
11775 * cli/cli-style.c (class cli_style_option): Update accordingly.
11776 (style_set_list): Move to file scope.
11777 (style_show_list): Likewise.
11778 (set_style): Call help_list.
11779 (show_style): Call cmd_show_list.
11780 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11781 Update to use the new macro.
11782
60a90376
JB
117832019-10-12 Joel Brobecker <brobecker@adacore.com>
11784
11785 * ada-lang.c (_initialize_ada_language): Expand the help text
11786 for the "catch exception" command.
11787
9d7c67bf
PW
117882019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11789
11790 * symtab.c (matching_obj_sections): Initialize obj,
11791 declare it closer to its usage.
11792
7cf47dc4
TT
117932019-01-10 Tom Tromey <tom@tromey.com>
11794
11795 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11796 (basic_inf_threads_range): Remove.
11797 (inf_threads_range, inf_non_exited_threads_range)
11798 (safe_inf_threads_range): Use next_adapter.
11799
d3cb6808
KS
118002019-01-10 Keith Seitz <keiths@redhat.com>
11801
11802 PR gdb/23712
11803 PR symtab/23010
11804 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11805 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11806
63a20375
KS
118072019-01-10 Keith Seitz <keiths@redhat.com>
11808
11809 PR gdb/23712
11810 PR symtab/23010
11811 * dictionary.c (pending_to_vector): Remove.
11812 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11813 Remove _1 suffix, replacing functions of the same name. Update
11814 all callers.
11815 (dict_create_hashed, dict_create_hashed_expandable)
11816 (dict_create_linear, dict_create_linear_expandable, dict_free)
11817 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11818 Make functions static.
11819
b026f593
KS
118202019-01-10 Keith Seitz <keiths@redhat.com>
11821
11822 PR gdb/23712
11823 PR symtab/23010
11824 * dictionary.h (struct dictionary): Replace declaration with
11825 multidictionary.
11826 (dict_create_hashed, dict_create_hashed_expandable)
11827 (dict_create_linear, dict_create_linear_expandable)
11828 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11829 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11830 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11831 taking multidictionary argument.
11832 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11833 * block.h (struct block) <dict>: Change to multidictionary
11834 and rename `multidict'.
11835 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11836 symmisc.c: Update all dictionary references to multidictionary.
11837
c7748ee9
KS
118382019-01-10 Keith Seitz <keiths@redhat.com>
11839
11840 PR gdb/23712
11841 PR symtab/23010
11842 * dictionary.c: Include unordered_map.
11843 (pending_to_vector): New function.
11844 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11845 Rewrite the non-"_1" functions to take vector instead
11846 of linked list.
11847 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11848 "new" _1 versions of the same name.
11849 (multidictionary): Define.
11850 (std::hash<enum language): New definition.
11851 (collate_pending_symbols_by_language, mdict_create_hashed)
11852 (mdict_create_hashed_expandable, mdict_create_linear)
11853 (mdict_create_linear_expandable, mdict_free)
11854 (find_language_dictionary, create_new_language_dictionary)
11855 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11856 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11857 (mdict_size, mdict_empty): New functions.
11858 * dictionary.h (mdict_iterator): Define.
11859
67aa1f3c
PA
118602019-01-10 Pedro Alves <palves@redhat.com>
11861
11862 * breakpoint.c (read_uploaded_action)
11863 (create_tracepoint_from_upload): Adjust to use
11864 gdb::unique_xmalloc_ptr.
11865 * ctf.c (ctf_write_uploaded_tp):
11866 (SET_ARRAY_FIELD): Use emplace_back.
11867 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11868 * tracefile-tfile.c (tfile_write_uploaded_tp):
11869 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11870 gdb::unique_xmalloc_ptr.
11871 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11872 at_string, cond_string, cmd_strings>: Replace char pointers
11873 with gdb::unique_xmalloc_ptr.
11874
2f667667
PA
118752019-01-10 Pedro Alves <palves@redhat.com>
11876
11877 * solib-target.c (library_list_start_library): Don't xstrdup name.
11878
36cb7237
PA
118792019-01-10 Pedro Alves <palves@redhat.com>
11880
11881 * mdebugread.c (parse_partial_symbols): Use
11882 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11883
da584958
AB
118842019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11885
11886 * linux-fork.c (scoped_switch_fork_info)
11887 <~scoped_switch_fork_info>: Fix incorrect variable name.
11888
1ef8573c
AB
118892019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11890
11891 * linux-fork.c (scoped_switch_fork_info)
11892 <scoped_switch_fork_info>: Make explicit.
11893 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11894
8d7bcccb
TT
118952019-01-10 Tom Tromey <tom@tromey.com>
11896
11897 * objfiles.h (objfile::reset_psymtabs): Update.
11898 * objfiles.c (objfile::objfile): Update.
11899 * psymtab.h (psymtab_storage::obstack): Update.
11900 (psymtab_storage::m_obstack): Use gdb::optional.
11901 (class psymtab_storage): Update comment. Remove objfile
11902 parameter.
11903 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11904
b596a3c7
TT
119052019-01-10 Tom Tromey <tom@tromey.com>
11906
11907 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11908 <free_psymtabs>: Now private.
11909 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11910 (allocate_psymtab): Use new method.
11911
a9342b62
TT
119122019-01-10 Tom Tromey <tom@tromey.com>
11913
11914 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11915 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11916 * mdebugread.c (parse_partial_symbols): Use
11917 allocate_dependencies.
11918 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11919 allocate_dependencies.
11920 (process_psymtab_comp_unit_reader)
11921 (build_type_psymtab_dependencies): Likewise.
11922 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11923
5af70966
TT
119242019-01-10 Tom Tromey <tom@tromey.com>
11925
11926 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11927 PSYMBOL_SET_LANGUAGE.
11928 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11929
5923a04c
TT
119302019-01-10 Tom Tromey <tom@tromey.com>
11931
11932 * psymtab.h (psymtab_storage::obstack): New method.
11933 <m_obstack>: Rename from obstack; now private.
11934 * psymtab.c (psymtab_storage): Update.
11935 * dwarf2read.c (create_addrmap_from_index)
11936 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11937 Update.
11938
6d6a12bf
TT
119392019-01-10 Tom Tromey <tom@tromey.com>
11940
11941 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11942 * objfiles.h (objfile::reset_psymtabs): New method.
11943
d320c2b5
TT
119442019-01-10 Tom Tromey <tom@tromey.com>
11945
11946 * symmisc.c (print_symbol_bcache_statistics): Update.
11947 (print_objfile_statistics): Update.
11948 * symfile.c (reread_symbols): Update.
11949 * psymtab.h (class psymtab_storage): New.
11950 * psymtab.c (psymtab_storage): New constructor.
11951 (~psymtab_storage): New destructor.
11952 (require_partial_symbols): Update.
11953 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11954 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11955 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11956 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11957 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11958 (start_psymtab_common, end_psymtab_common)
11959 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11960 (allocate_psymtab): Update.
11961 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11962 Update.
11963 (dump_psymtab_addrmap, maintenance_print_psymbols)
11964 (maintenance_check_psymtabs): Update.
11965 (class objfile_psymtabs): Move to objfiles.h.
11966 * psympriv.h (discard_psymtab): Now inline.
11967 (psymtab_discarder::psymtab_discarder): Update.
11968 (psymtab_discarder::~psymtab_discarder): Update.
11969 (ALL_OBJFILE_PSYMTABS): Rewrite.
11970 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11971 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11972 Remove fields.
11973 <partial_symtabs>: New field.
11974 (class objfile_psymtabs): Move from psymtab.h. Update.
11975 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11976 psymbol_cache.
11977 (objfile::~objfile): Don't destroy psymbol_cache.
11978 * mdebugread.c (parse_partial_symbols): Update.
11979 * dwarf2read.c (create_addrmap_from_index)
11980 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11981 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11982 (add_partial_subprogram, dwarf2_ranges_read): Update.
11983 * dwarf-index-write.c (write_address_map)
11984 (write_one_signatured_type, recursively_write_psymbols)
11985 (class debug_names, class debug_names, write_psymtabs_to_index):
11986 Update.
11987
1d94a5a3
TT
119882019-01-10 Tom Tromey <tom@tromey.com>
11989
11990 * symtab.h (SYMBOL_SET_NAMES): Update.
11991 (symbol_set_names): Update.
11992 (MSYMBOL_SET_NAMES): Update.
11993 * symtab.c (symbol_set_names): Change argument to be an
11994 objfile_per_bfd_storage.
11995 * psymtab.c (add_psymbol_to_bcache): Update.
11996 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11997
0f14768a
TT
119982019-01-10 Tom Tromey <tom@tromey.com>
11999
12000 * symtab.c (create_demangled_names_hash): Change argument to be an
12001 objfile_per_bfd_storage.
12002 (symbol_set_names): Update.
12003
6eee24ce
TT
120042019-01-10 Tom Tromey <tom@tromey.com>
12005
12006 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12007 init_psymbol_list.
12008 * psymtab.c (init_psymbol_list): Do nothing if already called.
12009 * psympriv.h (init_psymbol_list): Add comment.
12010 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12011 init_psymbol_list.
12012 * dbxread.c (dbx_symfile_read): Unconditionally call
12013 init_psymbol_list.
12014
75aedd27
TT
120152019-01-10 Tom Tromey <tom@tromey.com>
12016
12017 * xcoffread.c (scan_xcoff_symtab): Update.
12018 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12019 "where".
12020 * mdebugread.c (parse_partial_symbols)
12021 (handle_psymbol_enumerators): Update.
12022 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12023 * dbxread.c (read_dbx_symtab): Update.
12024 * psympriv.h (psymbol_placement): New enum.
12025 (add_psymbol_to_list): Update.
12026
939652a5
TT
120272019-01-10 Tom Tromey <tom@tromey.com>
12028
12029 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12030 static_psymbols parameters.
12031 (scan_xcoff_symtab): Update.
12032 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12033 static_psymbols parameters.
12034 * psympriv.h (start_psymtab_common): Update.
12035 * mdebugread.c (parse_partial_symbols): Update.
12036 * dwarf2read.c (create_partial_symtab): Update.
12037 * dbxread.c (read_dbx_symtab): Update.
12038 (start_psymtab): Remove global_psymbols and static_psymbols
12039 parameters.
12040
baa62830
TT
120412019-01-10 Tom Tromey <tom@tromey.com>
12042
12043 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12044 * psymtab.c (allocate_psymtab): Add comment.
12045 * psympriv.h (allocate_psymtab): Add comment.
12046 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12047 initializations.
12048 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12049
0e8f53ba
TT
120502019-01-10 Tom Tromey <tom@tromey.com>
12051
12052 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12053 Don't declare.
12054 * mipsread.c: Include mdebugread.h.
12055 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12056 Declare.
12057 * elfread.c: Include mdebugread.h.
12058
b22a7c6a
TT
120592019-01-09 Tom Tromey <tom@tromey.com>
12060
12061 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12062 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12063 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12064 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12065 (psym_lookup_symbol, psym_find_last_source_symtab)
12066 (psym_forget_cached_source_info, psym_print_stats)
12067 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12068 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12069 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12070 (psym_find_compunit_symtab_by_address)
12071 (maintenance_print_psymbols, maintenance_info_psymtabs)
12072 (maintenance_check_psymtabs): Use ranged for.
12073 * psymtab.h (class objfile_psymtabs): New.
12074 (require_partial_symbols): Return objfile_psymtabs.
12075 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12076
3b9d3ac2
TT
120772019-01-09 Tom Tromey <tom@tromey.com>
12078
12079 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12080 (find_pc_mapped_section, list_overlays_command)
12081 (map_overlay_command, unmap_overlay_command)
12082 (simple_overlay_update): Use all_objfiles.
12083 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12084 * printcmd.c (info_symbol_command): Use all_objfiles.
12085 * objfiles.h (ALL_OBJSECTIONS): Remove.
12086 * maint.c (maintenance_translate_address): Use all_objfiles.
12087 * gcore.c (gcore_create_callback): Use all_objfiles.
12088 (objfile_find_memory_regions): Likewise.
12089
8b31193a
TT
120902019-01-09 Tom Tromey <tom@tromey.com>
12091
12092 * symtab.c (find_line_symtab, info_sources_command)
12093 (make_source_files_completion_list): Use objfile_compunits.
12094 * source.c (select_source_symtab): Use objfile_compunits.
12095 * objfiles.h (struct objfile): Update comment.
12096 (ALL_OBJFILES): Remove.
12097 (ALL_FILETABS): Remove.
12098 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12099 objfile_compunits.
12100
d5da8b3c
TT
121012019-01-09 Tom Tromey <tom@tromey.com>
12102
12103 * symmisc.c (print_objfile_statistics, dump_objfile)
12104 (maintenance_print_symbols): Use compunit_filetabs.
12105 * source.c (forget_cached_source_info_for_objfile): Use
12106 compunit_filetabs.
12107 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12108 (ALL_FILETABS): Use compunit_filetabs.
12109 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12110 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12111
5accd1a0
TT
121122019-01-09 Tom Tromey <tom@tromey.com>
12113
12114 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12115 (compunit_filetabs): New.
12116 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12117 compunit_filetabs.
12118 (info_sources_command, make_source_files_completion_list): Remove
12119 declaration.
12120 * symmisc.c (print_objfile_statistics, dump_objfile)
12121 (maintenance_print_symbols): Remove declaration.
12122 (maintenance_info_symtabs): Use compunit_filetabs.
12123 (maintenance_info_line_tables): Likewise.
12124 * source.c (select_source_symtab): Change local variable name.
12125 (forget_cached_source_info_for_objfile): Remove declaration.
12126 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12127 * objfiles.c (objfile_relocate1): Remove declaration.
12128 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12129 declaration.
12130 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12131 * coffread.c (coff_symtab_read): Remove declaration.
12132 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12133 compunit_filetabs.
12134
d8aeb77f
TT
121352019-01-09 Tom Tromey <tom@tromey.com>
12136
12137 * symtab.c (lookup_objfile_from_block)
12138 (find_pc_sect_compunit_symtab, search_symbols)
12139 (default_collect_symbol_completion_matches_break_on): Use
12140 objfile_compunits.
12141 * objfiles.h (ALL_COMPUNITS): Remove.
12142 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12143 * cp-support.c (add_symbol_overload_list_qualified): Use
12144 objfile_compunits.
12145 * ada-lang.c (ada_collect_symbol_completion_matches)
12146 (ada_add_global_exceptions): Use objfile_compunits.
12147
592553c4
TT
121482019-01-09 Tom Tromey <tom@tromey.com>
12149
12150 * source.c (select_source_symtab)
12151 (forget_cached_source_info_for_objfile): Remove declaration.
12152 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12153 declaration.
12154 * maint.c (count_symtabs_and_blocks): Remove declaration.
12155 * cp-support.c (add_symbol_overload_list_qualified): Remove
12156 declaration.
12157 * coffread.c (coff_symtab_read): Remove declaration.
12158 * symtab.c (lookup_symbol_in_objfile_symtabs)
12159 (basic_lookup_transparent_type_1): Use objfile_compunits.
12160 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12161 (info_sources_command, search_symbols)
12162 (default_collect_symbol_completion_matches_break_on)
12163 (make_source_files_completion_list): Remove declaration.
12164 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12165 (ada_collect_symbol_completion_matches)
12166 (ada_add_global_exceptions): Remove declaration.
12167 * linespec.c (iterate_over_all_matching_symtabs): Use
12168 objfile_compunits.
12169 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12170 (class objfile_compunits): New.
12171 (ALL_COMPUNITS): Use objfile_compunits.
12172 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12173 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12174 objfile_compunits.
12175 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12176
5325b9bf
TT
121772019-01-09 Tom Tromey <tom@tromey.com>
12178
12179 * symtab.c (search_symbols)
12180 (default_collect_symbol_completion_matches_break_on): Use
12181 objfile_msymbols.
12182 * ada-lang.c (ada_lookup_simple_minsym)
12183 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12184 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12185 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12186 objfile_msymbols.
12187 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12188 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12189 * objc-lang.c (find_methods): Use objfile_msymbols.
12190 (info_selectors_command, info_classes_command): Likewise.
12191 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12192 * objfiles.h (class objfile_msymbols): New.
12193 (ALL_OBJFILE_MSYMBOLS): Remove.
12194 (ALL_MSYMBOLS): Remove.
12195
cac85af2
TT
121962019-01-09 Tom Tromey <tom@tromey.com>
12197
12198 * common/next-iterator.h (next_adapter): Add Iterator template
12199 parameter.
12200 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12201 (class all_objfiles_safe): New.
12202 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12203 * objfiles.c (put_objfile_before): Update comment.
12204 (add_separate_debug_objfile): Likewise.
12205 (free_all_objfiles): Use all_objfiles_safe.
12206 (objfile_purge_solibs): Likewise.
12207
aed57c53
TT
122082019-01-09 Tom Tromey <tom@tromey.com>
12209
12210 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12211 (expand_symtab_containing_pc, lookup_static_symbol)
12212 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12213 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12214 all_objfiles.
12215 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12216 * breakpoint.c (create_overlay_event_breakpoint)
12217 (create_longjmp_master_breakpoint)
12218 (create_std_terminate_master_breakpoint)
12219 (create_exception_master_breakpoint): Use all_objfiles.
12220 * linux-thread-db.c (try_thread_db_load_from_pdir)
12221 (has_libpthread): Use all_objfiles.
12222 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12223 * linespec.c (iterate_over_all_matching_symtabs)
12224 (search_minsyms_for_name): Use all_objfiles.
12225 * maint.c (maintenance_info_sections): Use all_objfiles.
12226 * main.c (captured_main_1): Use all_objfiles.
12227 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12228 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12229 * guile/scm-pretty-print.c
12230 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12231 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12232 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12233 (maintenance_print_msymbols): Use all_objfiles.
12234 * source.c (select_source_symtab): Use all_objfiles.
12235 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12236 * symfile.c (remove_symbol_file_command)
12237 (expand_symtabs_matching, map_symbol_filenames): Use
12238 all_objfiles.
12239 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12240 all_objfiles.
12241 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12242 * objc-lang.c (find_methods): Use all_objfiles.
12243 * objfiles.c (have_partial_symbols, have_full_symbols)
12244 (have_minimal_symbols, qsort_cmp)
12245 (default_iterate_over_objfiles_in_search_order): Use
12246 all_objfiles.
12247 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12248 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12249 (maintenance_check_psymtabs): Use all_objfiles.
12250 (ALL_PSYMTABS): Remove.
12251 * compile/compile-object-run.c (do_module_cleanup): Use
12252 all_objfiles.
12253 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12254 * cp-support.c (add_symbol_overload_list_qualified): Use
12255 all_objfiles.
12256 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12257 Use all_objfiles.
12258 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12259 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12260 all_objfiles.
12261 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12262 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12263 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12264 Uses all_objfiles.
12265 * solib.c (solib_read_symbols): Use all_objfiles
12266
99d89cde
TT
122672019-01-09 Tom Tromey <tom@tromey.com>
12268
12269 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12270 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12271 all_objfiles.
12272 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12273 * symmisc.c (print_symbol_bcache_statistics)
12274 (print_objfile_statistics, maintenance_print_objfiles)
12275 (maintenance_info_symtabs, maintenance_check_symtabs)
12276 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12277 all_objfiles.
12278 * source.c (forget_cached_source_info): Use all_objfiles.
12279 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12280 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12281 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12282 * objfiles.c (update_section_map): Use all_objfiles.
12283 (shared_objfile_contains_address_p): Likewise.
12284 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12285 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12286
21708325
TT
122872019-01-09 Tom Tromey <tom@tromey.com>
12288
12289 * common/next-iterator.h: New file.
12290 * objfiles.h (class all_objfiles): New.
12291 (struct objfile_iterator): New.
12292
669e09f6
PW
122932019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12294
12295 * NEWS: Move the description of the changed "frame", "select-frame",
12296 and "info frame" commands to the Changed commands section.
12297
041be526
SM
122982019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12299
12300 * gdbtypes.c (check_stub_method_group): Remove handling of old
12301 mangling schemes.
12302 * linespec.c (find_methods): Likewise.
12303 * stabsread.c (read_member_functions): Likewise.
12304 * valops.c (search_struct_method): Likewise.
12305 (value_struct_elt_for_reference): Likewise.
12306 * NEWS: Mention this change.
12307
0e2a2133
AB
123082019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12309
12310 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12311 print_source_lines.
12312 * source.c (print_source_lines_base): Update line number check.
12313 (print_source_lines): New function.
12314 (source_lines_range::source_lines_range): New function.
12315 * source.h (class source_lines_range): New class.
12316 (print_source_lines): New declaration.
12317
1055a3b4
PW
123182019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12319
12320 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12321
cfeadda5
TT
123222019-01-08 Tom Tromey <tom@tromey.com>
12323 Simon Marchi <simon.marchi@ericsson.com>
12324
12325 PR gdb/24060
12326 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12327 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12328 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12329 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12330 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12331 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12332
583068ca
AB
123332019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12334
12335 * source.c (select_source_symtab): Move header comment to
12336 declaration in source.h.
12337 (forget_cached_source_info_for_objfile): Likewise.
12338 (forget_cached_source_info): Likewise.
12339 (identify_source_line): Likewise.
12340 * source.h (identify_source_line): Move declaration from symtab.h
12341 and add comment from source.c
12342 (print_source_lines): Likewise.
12343 (forget_cached_source_info_for_objfile): Likewise.
12344 (forget_cached_source_info): Likewise.
12345 (select_source_symtab): Likewise.
12346 (enum print_source_lines_flag): Move definition from symtab.h.
12347 * symtab.h (identify_source_line): Move declaration to source.h.
12348 (print_source_lines): Likewise.
12349 (forget_cached_source_info_for_objfile): Likewise.
12350 (forget_cached_source_info): Likewise.
12351 (select_source_symtab): Likewise.
12352 (enum print_source_lines_flag): Move definition to source.h.
12353 * tui/tui-hooks.c: Add 'source.h' include.
12354
ec98a4ad
AB
123552019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12356
12357 * source.c (print_source_lines_base): Handle requests to print
12358 reverse line number sequences, and guard against empty lines
12359 string.
12360
62ea19c1
AB
123612019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12362
12363 * source.c (print_source_lines_base): Fix skip of '\r' if next
12364 character is '\n'.
12365
9d30e1fd
TT
123662019-01-06 Tom Tromey <tom@tromey.com>
12367
12368 * c-exp.y (struct c_parse_state) <macro_original_text,
12369 expansion_obstack>: New member.
12370 (macro_original_text, expansion_obstack): Remove globals.
12371 (scan_macro_expansion, scanning_macro_expansion)
12372 (finished_macro_expansion): Update.
12373 (scan_macro_cleanup): Remove.
12374 (yylex, c_parse): Update.
12375
c65bac38
TT
123762019-01-06 Tom Tromey <tom@tromey.com>
12377
12378 * c-exp.y (struct c_parse_state) <strings>: New member.
12379 (operator_stoken): Update.
12380
02e12e38
TT
123812019-01-06 Tom Tromey <tom@tromey.com>
12382
12383 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12384 (union type_stack_elt) <typelist_val>: Now a pointer to
12385 std::vector.
12386 (type_stack_cleanup): Don't declare.
12387 (push_typelist): Update.
12388 * parse.c (pop_typelist): Return a std::vector.
12389 (push_typelist): Take a std::vector.
12390 (follow_types): Update. Do not free args.
12391 (type_stack_cleanup): Remove.
12392 * c-exp.y (struct c_parse_state): New.
12393 (cpstate): New global.
12394 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12395 (nonempty_typelist): Update.
12396 (func_mod): Create a new vector.
12397 (c_parse): Create a c_parse_state.
12398 (check_parameter_typelist): Do not delete params.
12399 (function_method): Update. Do not delete type_list.
12400
f097f5ad
TT
124012019-01-06 Tom Tromey <tom@tromey.com>
12402
12403 PR gdb/28155:
12404 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12405 check_typedef.
12406 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12407 (print_return_value): Likewise.
12408
d2adf9f1
TT
124092019-01-05 Tom Tromey <tom@tromey.com>
12410
12411 * contrib/cleanup_check.py: Remove.
12412 * contrib/gcc-with-excheck: Remove.
12413 * contrib/exsummary.py: Remove.
12414 * contrib/excheck.py: Remove.
12415
2eab46b1
JB
124162019-01-05 Joel Brobecker <brobecker@adacore.com>
12417
12418 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12419 NULL. Initialize tpprev to NULL instead of assigning it
12420 to NULL on the next statement.
12421 * windows-nat.c (windows_delete_thread): Remove check for
12422 main_thread_id before printing thread exit notifications.
12423 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12424 Remove thread ID check against main_thread_id.
12425 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12426 windows_delete_thread.
12427 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12428
48c5e7e2
TT
124292019-01-04 Tom Tromey <tom@tromey.com>
12430
12431 * compile/compile.c (_initialize_compile): Use upper case for
12432 metasyntactic variables.
12433 * symmisc.c (_initialize_symmisc): Use upper case for
12434 metasyntactic variables.
12435 * psymtab.c (_initialize_psymtab): Use upper case for
12436 metasyntactic variables.
12437 * demangle.c (demangle_command): Use upper case for metasyntactic
12438 variables.
12439 (_initialize_demangler): Likewise.
12440 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12441 variables.
12442
986041cd
TT
124432019-01-03 Tom Tromey <tom@tromey.com>
12444
12445 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12446
7c711119
TT
124472019-01-03 Tom Tromey <tom@tromey.com>
12448
12449 * python/py-symtab.c (salpy_str): Update.
12450 (struct salpy_sal_object) <symtab>: Now a PyObject.
12451 (salpy_dealloc): Update.
12452 (del_objfile_sal): Use gdbpy_ref.
12453
1b20edf0
TT
124542019-01-03 Tom Tromey <tom@tromey.com>
12455
12456 * python/py-type.c (convert_field): Use new_reference. Return
12457 gdbpy_ref.
12458 (make_fielditem): Return gdbpy_ref.
12459 (typy_fields): Update.
12460 (typy_getitem): Update.
12461 (field_name): Return gdbpy_ref. Use new_reference.
12462 (typy_iterator_iternext): Update.
12463
ea41325b
TT
124642019-01-03 Tom Tromey <tom@tromey.com>
12465
12466 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12467
2a3c71d6
TT
124682019-01-03 Tom Tromey <tom@tromey.com>
12469
12470 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12471 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12472 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12473 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12474 (pspy_set_type_printers): Likewise.
12475 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12476 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12477 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12478 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12479 (objfpy_set_type_printers): Likewise.
12480
5c329e6a
TT
124812019-01-03 Tom Tromey <tom@tromey.com>
12482
12483 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12484 (gdbpy_print_stack): Use gdbpy_err_fetch.
12485 * python/python-internal.h (class gdbpy_err_fetch): New class.
12486 (class gdbpy_enter) <m_error_type, m_error_value,
12487 m_error_traceback>: Remove.
12488 <m_error>: New member.
12489 (gdbpy_exception_to_string): Don't declare.
12490 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12491 * python/py-value.c (convert_value_from_python): Use
12492 gdbpy_err_fetch.
12493 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12494 gdbpy_exception_to_string.
12495 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12496 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12497 gdbpy_err_fetch.
12498
169bb27b
AB
124992019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12500
12501 * linux-nat.c (delete_lwp_cleanup): Delete.
12502 (struct lwp_deleter): New struct.
12503 (lwp_info_up): New typedef.
12504 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12505 lwp_info_up.
12506
a07c8880
AB
125072019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12508
12509 * linux-fork.c (class scoped_switch_fork_info): New class.
12510 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12511
26089c49
AB
125122019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12513
12514 * valops.c (find_overload_match): Remove use of null_cleanup, and
12515 calls to do_cleanups.
12516
06d3e5b0
AB
125172019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12518
12519 * compile/compile-cplus-types.c
12520 (compile_cplus_instance::decl_name): Handle changes to
12521 cp_func_name.
12522 * cp-support.c (cp_func_name): Update header comment, update
12523 return type.
12524 * cp-support.h (cp_func_name): Update return type in declaration.
12525 * valops.c (find_overload_match): Move temp_func local to top
12526 level of function and change its type. Use temp_func to hold and
12527 delete temporary string obtained from cp_func_name.
12528
66644cd3
AB
125292019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12530
12531 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12532 gdb::char_vector, remove cleanup, and update uses of `msg`.
12533
592d8c0a
JW
125342019-01-03 Jim Wilson <jimw@sifive.com>
12535
12536 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12537
c55d06ec
TT
125382019-01-02 Tom Tromey <tom@tromey.com>
12539
12540 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12541 (tdesc_parse_xml): Remove cleanups.
12542 * target-descriptions.h (make_cleanup_free_target_description):
12543 Don't declare.
12544 (target_desc_deleter): New struct.
12545 (target_desc_up): New typedef.
12546 * target-descriptions.c (target_desc_deleter::operator()): Rename
12547 from free_target_description.
12548 (make_cleanup_free_target_description): Remove.
12549
3a6ae42d
TT
125502019-01-02 Tom Tromey <tom@tromey.com>
12551
12552 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12553 constructor, destructor.
12554 (linespec_parser): Remove typedef.
12555 (~linespec_parser): Rename from linespec_parser_delete.
12556 (linespec_lex_to_end, linespec_complete_label)
12557 (linespec_complete): Update.
12558 (decode_line_full): Remove cleanups.
12559 (decode_line_1): Update.
12560
61fd3e73
TT
125612019-01-02 Tom Tromey <tom@tromey.com>
12562
12563 * python/python-internal.h (inferior_to_inferior_object): Change
12564 return type.
12565 * python/py-exitedevent.c (create_exited_event_object): Update.
12566 * python/py-inferior.c (inferior_to_inferior_object): Return
12567 gdbpy_ref.
12568 (python_new_inferior, python_inferior_deleted)
12569 (thread_to_thread_object, delete_thread_object)
12570 (build_inferior_list, gdbpy_selected_inferior): Update.
12571 * python/py-infthread.c (create_thread_object): Update. Also fail
12572 if inferior_to_inferior_object fails.
12573
d20172fc
SM
125742019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12575
12576 * inferior.h (class inferior) <displaced_step_state>: New field.
12577 * infrun.h (struct displaced_step_state): Move here from
12578 infrun.c. Initialize fields, add constructor.
12579 <inf>: Remove field.
12580 <reset>: New method.
12581 * infrun.c (struct displaced_step_inferior_state): Move to
12582 infrun.h.
12583 (displaced_step_inferior_states): Remove.
12584 (get_displaced_stepping_state): Adust.
12585 (displaced_step_in_progress_any_inferior): Adjust.
12586 (displaced_step_in_progress_thread): Adjust.
12587 (displaced_step_in_progress): Adjust.
12588 (add_displaced_stepping_state): Remove.
12589 (get_displaced_step_closure_by_addr): Adjust.
12590 (remove_displaced_stepping_state): Remove.
12591 (infrun_inferior_exit): Call displaced_step_state.reset.
12592 (use_displaced_stepping): Don't check for NULL.
12593 (displaced_step_prepare_throw): Call
12594 get_displaced_stepping_state.
12595 (displaced_step_fixup): Don't check for NULL.
12596 (prepare_for_detach): Don't check for NULL.
12597
e3319240
PW
125982019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12599
12600 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12601 in case of call that did not complete.
12602
5d36dfb9
AU
126032019-01-02 Andrey Utkin <autkin@undo.io>
12604
12605 * symfile.c (find_separate_debug_file): Fix search of debug files for
12606 remote debuggee.
12607
8833fbf0
TT
126082019-01-02 Tom Tromey <tom@tromey.com>
12609
12610 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12611 indentation.
12612 * python/py-frame.c (frapy_older): Remove cast.
12613 (frapy_newer): Likewise.
12614 * python/py-breakpoint.c (local_setattro): Remove cast.
12615 * python/py-arch.c (archpy_name): Remove local variable.
12616 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12617
4ada3dfd
JB
126182019-01-02 Joel Brobecker <brobecker@adacore.com>
12619
12620 * unittests/basic_string_view/element_access/char/empty.cc:
12621 Fix year range in copyright header.
12622
113b7b81
AB
126232019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12624
12625 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12626 Delete.
12627 <operator==>: Update with for removed field.
12628 <hash>: Likewise.
12629 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12630 <isa_features>: ...this.
12631 <abi_features>: New field.
12632 (riscv_isa_flen): Update comment.
12633 (riscv_abi_xlen): New declaration.
12634 (riscv_abi_flen): New declaration.
12635 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12636 isa_features.
12637 (riscv_abi_xlen): New function.
12638 (riscv_isa_flen): Update to get answer from isa_features.
12639 (riscv_abi_flen): New function.
12640 (riscv_has_fp_abi): Update to get answer from abi_features.
12641 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12642 xlen and flen.
12643 (riscv_call_info) <xlen, flen>: Update comment.
12644 (riscv_call_arg_struct): Remove invalid assertions
12645 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12646 is removed.
12647 (riscv_gdbarch_init): Gather isa features and abi features
12648 separately, ensure both match on the gdbarch when reusing an old
12649 gdbarch. Relax an error check to allow 32-bit abi float to run on
12650 a target with 64-bit float hardware.
12651
b18ca514
PW
126522019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12653
12654 * source.c (search_command_helper): Stop reverse search
12655 when line 1 has been searched.
12656
ec70d8db
PW
126572019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12658
12659 * record-full.c (record_full_base_target::close): Rewrite
12660 record_full_core_buf_list free logic.
12661
5b38f9c1
PW
126622019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12663
12664 * break-catch-syscall.c (print_one_catch_syscall): xfree
12665 the last text.
12666
66d91b39
JB
126672019-01-01 Joel Brobecker <brobecker@adacore.com>
12668
12669 * top.c (print_gdb_version): Update Copyright year in version
12670 message.
12671
42a4f53d
JB
126722019-01-01 Joel Brobecker <brobecker@adacore.com>
12673
12674 Update copyright year range in all GDB files.
12675
7e955d83 126762019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 12677
5bbd631d 12678 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 12679
5bbd631d 12680For older changes see ChangeLog-2018.
c906108c
SS
12681\f
12682Local Variables:
12683mode: change-log
12684left-margin: 8
12685fill-column: 74
12686version-control: never
57da7796 12687coding: utf-8
c906108c 12688End:
5bbd631d 12689