Use bfd_set_filename more
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
90d92a63
AM
12019-09-18 Alan Modra <amodra@gmail.com>
2
3 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4 * spu-linux-nat.c (spu_bfd_open): Likewise.
5
a3d181d2
CB
62019-09-18 Christian Biesinger <cbiesinger@google.com>
7
8 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
9 to bool to match definition in dwarf2read.c.
10
491144b5
CB
112019-09-17 Christian Biesinger <cbiesinger@google.com>
12
13 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
14 (print_signatures): Likewise.
15 (trust_pad_over_xvs): Likewise.
16 * arch/aarch64-insn.c (aarch64_debug): Likewise.
17 * arch/aarch64-insn.h (aarch64_debug): Likewise.
18 * arm-linux-nat.c (arm_apcs_32): Likewise.
19 * arm-linux-tdep.c (arm_apcs_32): Likewise.
20 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
21 * arm-tdep.c (arm_debug): Likewise.
22 (arm_apcs_32): Likewise.
23 * auto-load.c (debug_auto_load): Likewise.
24 (auto_load_gdb_scripts): Likewise.
25 (global_auto_load): Likewise.
26 (auto_load_local_gdbinit): Likewise.
27 (auto_load_local_gdbinit_loaded): Likewise.
28 * auto-load.h (global_auto_load): Likewise.
29 (auto_load_local_gdbinit): Likewise.
30 (auto_load_local_gdbinit_loaded): Likewise.
31 * breakpoint.c (disconnected_dprintf): Likewise.
32 (breakpoint_proceeded): Likewise.
33 (automatic_hardware_breakpoints): Likewise.
34 (always_inserted_mode): Likewise.
35 (target_exact_watchpoints): Likewise.
36 (_initialize_breakpoint): Update.
37 * breakpoint.h (target_exact_watchpoints): Change to bool.
38 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
39 * cli/cli-cmds.c (trace_commands): Likewise.
40 * cli/cli-cmds.h (trace_commands): Likewise.
41 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
42 to bool*.
43 * cli/cli-logging.c (logging_overwrite): Change to bool.
44 (logging_redirect): Likewise.
45 (debug_redirect): Likewise.
46 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
47 (struct boolean_option_def) <get_var_address_cb_>: Change return type
48 to bool.
49 <boolean_option_def>: Update.
50 (struct flag_option_def): Change default type of Context to bool
51 from int.
52 <flag_option_def>: Change return type of var_address_cb_ to bool*.
53 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
54 (get_setshow_command_value_string): Likewise.
55 * cli/cli-style.c (cli_styling): Change to bool.
56 (source_styling): Likewise.
57 * cli/cli-style.h (source_styling): Likewise.
58 (cli_styling): Likewise.
59 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
60 to bool.
61 * command.h (var_types): Update comment.
62 (add_setshow_boolean_cmd): Change int* var argument to bool*.
63 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
64 bool.
65 (debug_compile_cplus_scopes): Likewise.
66 * compile/compile-internal.h (compile_debug): Likewise.
67 * compile/compile.c (compile_debug): Likewise.
68 (struct compile_options) <raw>: Likewise.
69 * cp-support.c (catch_demangler_crashes): Likewise.
70 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
71 (usr_cmd_cris_dwarf2_cfi): Likewise.
72 * csky-tdep.c (csky_debug): Likewise.
73 * darwin-nat.c (enable_mach_exceptions): Likewise.
74 * dcache.c (dcache_enabled_p): Likewise.
75 * defs.h (info_verbose): Likewise.
76 * demangle.c (demangle): Likewise.
77 (asm_demangle): Likewise.
78 * dwarf-index-cache.c (debug_index_cache): Likewise.
79 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
80 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
81 * dwarf2read.c (check_physname): Likewise.
82 (use_deprecated_index_sections): Likewise.
83 (dwarf_always_disassemble): Likewise.
84 * eval.c (overload_resolution): Likewise.
85 * event-top.c (set_editing_cmd_var): Likewise.
86 (exec_done_display_p): Likewise.
87 * event-top.h (set_editing_cmd_var): Likewise.
88 (exec_done_display_p): Likewise.
89 * exec.c (write_files): Likewise.
90 * fbsd-nat.c (debug_fbsd_lwp): Likewise
91 (debug_fbsd_nat): Likewise.
92 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
93 Likewise.
94 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
95 <backtrace_past_entry> Likewise.
96 * gdb-demangle.h (demangle): Likewise.
97 (asm_demangle): Likewise.
98 * gdb_bfd.c (bfd_sharing): Likewise.
99 * gdbcore.h (write_files): Likewise.
100 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
101 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
102 * gdbthread.h (print_thread_events): Likewise.
103 * gdbtypes.c (opaque_type_resolution): Likewise.
104 (strict_type_checking): Likewise.
105 * gnu-nat.c (gnu_debug_flag): Likewise.
106 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
107 * guile/scm-param.c (pascm_variable): Add boolval.
108 (add_setshow_generic): Update.
109 (pascm_param_value): Update.
110 (pascm_set_param_value_x): Update.
111 * hppa-tdep.c (hppa_debug): Change to bool..
112 * infcall.c (may_call_functions_p): Likewise.
113 (coerce_float_to_double_p): Likewise.
114 (unwind_on_signal_p): Likewise.
115 (unwind_on_terminating_exception_p): Likewise.
116 * infcmd.c (startup_with_shell): Likewise.
117 * inferior.c (print_inferior_events): Likewise.
118 * inferior.h (startup_with_shell): Likewise.
119 (print_inferior_events): Likewise.
120 * infrun.c (step_stop_if_no_debug): Likewise.
121 (detach_fork): Likewise.
122 (debug_displaced): Likewise.
123 (disable_randomization): Likewise.
124 (non_stop): Likewise.
125 (non_stop_1): Likewise.
126 (observer_mode): Likewise.
127 (observer_mode_1): Likewise.
128 (set_observer_mode): Update.
129 (sched_multi): Change to bool.
130 * infrun.h (debug_displaced): Likewise.
131 (sched_multi): Likewise.
132 (step_stop_if_no_debug): Likewise.
133 (non_stop): Likewise.
134 (disable_randomization): Likewise.
135 * linux-tdep.c (use_coredump_filter): Likewise.
136 (dump_excluded_mappings): Likewise.
137 * linux-thread-db.c (auto_load_thread_db): Likewise.
138 (check_thread_db_on_load): Likewise.
139 * main.c (captured_main_1): Update.
140 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
141 xx2_opt, boolean_opt>: Change to bool.
142 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
143 * maint.c (maintenance_profile_p): Likewise.
144 (per_command_time): Likewise.
145 (per_command_space): Likewise.
146 (per_command_symtab): Likewise.
147 * memattr.c (inaccessible_by_default): Likewise.
148 * mi/mi-main.c (mi_async): Likewise.
149 (mi_async_1): Likewise.
150 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
151 * nat/fork-inferior.h (startup_with_shell): Likewise.
152 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
153 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
154 * nios2-tdep.c (nios2_debug): Likewise.
155 * or1k-tdep.c (or1k_debug): Likewise.
156 * parse.c (parser_debug): Likewise.
157 * parser-defs.h (parser_debug): Likewise.
158 * printcmd.c (print_symbol_filename): Likewise.
159 * proc-api.c (procfs_trace): Likewise.
160 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
161 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
162 (set_parameter_value): Update.
163 (add_setshow_generic): Update.
164 * python/py-value.c (copy_py_bool_obj): Change argument from int*
165 to bool*.
166 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
167 int*.
168 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
169 * record-btrace.c (record_btrace_target::store_registers): Update.
170 * record-full.c (record_full_memory_query): Change to bool.
171 (record_full_stop_at_limit): Likewise.
172 * record-full.h (record_full_memory_query): Likewise.
173 * remote-notif.c (notif_debug): Likewise.
174 * remote-notif.h (notif_debug): Likewise.
175 * remote.c (use_range_stepping): Likewise.
176 (interrupt_on_connect): Likewise.
177 (remote_break): Likewise.
178 * ser-tcp.c (tcp_auto_retry): Likewise.
179 * ser-unix.c (serial_hwflow): Likewise.
180 * skip.c (debug_skip): Likewise.
181 * solib-aix.c (solib_aix_debug): Likewise.
182 * spu-tdep.c (spu_stop_on_load_p): Likewise.
183 (spu_auto_flush_cache_p): Likewise.
184 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
185 Likewise.
186 (struct info_print_options) <quiet>: Likewise.
187 * symfile-debug.c (debug_symfile): Likewise.
188 * symfile.c (auto_solib_add): Likewise.
189 (separate_debug_file_debug): Likewise.
190 * symfile.h (auto_solib_add): Likewise.
191 (separate_debug_file_debug): Likewise.
192 * symtab.c (basenames_may_differ): Likewise.
193 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
194 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
195 (struct info_types_options) <quiet>: Likewise.
196 * symtab.h (demangle): Likewise.
197 (basenames_may_differ): Likewise.
198 * target-dcache.c (stack_cache_enabled_1): Likewise.
199 (code_cache_enabled_1): Likewise.
200 * target.c (trust_readonly): Likewise.
201 (may_write_registers): Likewise.
202 (may_write_memory): Likewise.
203 (may_insert_breakpoints): Likewise.
204 (may_insert_tracepoints): Likewise.
205 (may_insert_fast_tracepoints): Likewise.
206 (may_stop): Likewise.
207 (auto_connect_native_target): Likewise.
208 (target_stop_and_wait): Update.
209 (target_async_permitted): Change to bool.
210 (target_async_permitted_1): Likewise.
211 (may_write_registers_1): Likewise.
212 (may_write_memory_1): Likewise.
213 (may_insert_breakpoints_1): Likewise.
214 (may_insert_tracepoints_1): Likewise.
215 (may_insert_fast_tracepoints_1): Likewise.
216 (may_stop_1): Likewise.
217 * target.h (target_async_permitted): Likewise.
218 (may_write_registers): Likewise.
219 (may_write_memory): Likewise.
220 (may_insert_breakpoints): Likewise.
221 (may_insert_tracepoints): Likewise.
222 (may_insert_fast_tracepoints): Likewise.
223 (may_stop): Likewise.
224 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
225 (make_thread_apply_all_options_def_group): Change argument from int*
226 to bool*.
227 (thread_apply_all_command): Update.
228 (print_thread_events): Change to bool.
229 * top.c (confirm): Likewise.
230 (command_editing_p): Likewise.
231 (history_expansion_p): Likewise.
232 (write_history_p): Likewise.
233 (info_verbose): Likewise.
234 * top.h (confirm): Likewise.
235 (history_expansion_p): Likewise.
236 * tracepoint.c (disconnected_tracing): Likewise.
237 (circular_trace_buffer): Likewise.
238 * typeprint.c (print_methods): Likewise.
239 (print_typedefs): Likewise.
240 * utils.c (debug_timestamp): Likewise.
241 (sevenbit_strings): Likewise.
242 (pagination_enabled): Likewise.
243 * utils.h (sevenbit_strings): Likewise.
244 (pagination_enabled): Likewise.
245 * valops.c (overload_resolution): Likewise.
246 * valprint.h (struct value_print_options) <prettyformat_arrays,
247 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
248 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
249 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
250 Likewise.
251 * windows-nat.c (new_console): Likewise.
252 (cygwin_exceptions): Likewise.
253 (new_group): Likewise.
254 (debug_exec): Likewise.
255 (debug_events): Likewise.
256 (debug_memory): Likewise.
257 (debug_exceptions): Likewise.
258 (useshell): Likewise.
259 * windows-tdep.c (maint_display_all_tib): Likewise.
260 * xml-support.c (debug_xml): Likewise.
261
f1b620e9
MG
2622019-09-17 Mike Gulick <mgulick@mathworks.com>
263
264 * source.c (prepare_path_for_appending): New function.
265 (openp): Make use of new function.
266 (find_and_open_source): Search for the compilation directory and
267 source file as a relative path beneath the directory search path.
268
67f3ed6a
AB
2692019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
270
271 * source-cache.c (source_cache::get_line_charpos): Catch
272 exceptions and return false, this matches the behaviour documented
273 in the header file.
274
74332189
JB
2752019-09-17 Joel Brobecker <brobecker@adacore.com>
276
277 * ada-tasks.c (info_task): Remove quoting of the task's name.
278
f2f24aa9
CB
2792019-09-16 Christian Biesinger <cbiesinger@google.com>
280
281 * symfile.c (auto_solib_add): Replace comment with a reference
282 to the header file.
283
6a062a93
CB
2842019-09-14 Christian Biesinger <cbiesinger@google.com>
285
286 * NEWS: Mention that gdb can now be compiled with Python 3
287 on Windows.
288
ec6c8338
AB
2892019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
290
291 * maint.c (maint_print_section_data::maint_print_section_data):
292 Force use of 'float log10 (float)' by casting the argument to
293 float.
294
aa17805f
AB
2952019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
296
297 * maint.c: Add 'cmath' include.
298 (struct maint_print_section_data): New structure.
299 (print_section_index): New function.
300 (print_bfd_section_info): Add header comment, small whitespace
301 cleanup, and update to call new print_section_index function.
302 (print_objfile_section_info): Likewise.
303 (maint_obj_section_from_bfd_section): New function.
304 (print_bfd_section_info_maybe_relocated): New function.
305 (maintenance_info_sections): Add header comment, always use
306 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
307
3dd9bb46
AB
3082019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
309
310 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
311 inner scope, add check that the objfile has psymtabs before
312 checking psymtabs_addrmap.
313 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
314
4993045d
PW
3152019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
316
317 * NEWS: Announce that Ada task names are now shown at more places,
318 and between quotes (except in info task output).
319 * gdb/ada-tasks.c (task_to_str): New function.
320 (display_current_task_id): Call task_to_str.
321 (task_command_1): Likewise.
322 (print_ada_task_info): In non-mi mode, Properly align headers and data
323 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
324
7a289707
RO
3252019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
326
327 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
328 prstatus.pr_lwp.pr_info instead of making it up.
329
f2aec7f6
CB
3302019-09-11 Christian Biesinger <cbiesinger@google.com>
331
332 * auto-load.c (auto_load_expand_dir_vars): Update.
333 * defs.h (gdb_datadir): Change to std::string.
334 (python_libdir): Likewise.
335 (relocate_gdb_directory): Change return type to std::string.
336 * guile/guile.c (gdbscm_data_directory): Update.
337 (initialize_scheme_side): Update.
338 * jit.c (jit_reader_dir): Change to std::string.
339 (jit_reader_load_command): Update.
340 * main.c (gdb_datadir): Change to std::string.
341 (python_libdir): Likewise.
342 (set_gdb_data_directory): Update.
343 (relocate_path): Change to return std::string.
344 (relocate_gdb_directory): Change to return std::string.
345 (relocate_gdbinit_path_maybe_in_datadir): Update.
346 (captured_main_1): Update.
347 * python/python.c (do_start_initialization): Update.
348 * top.c (show_gdb_datadir): Update.
349 * xml-syscall.c (xml_init_syscalls_info): Update.
350 (init_syscalls_info): Update.
351
9224a013
CB
3522019-09-11 Christian Biesinger <cbiesinger@google.com>
353
354 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
355 out of get_init_files.
356 (get_init_files): Update.
357
f48cd836
CB
3582019-09-11 Christian Biesinger <cbiesinger@google.com>
359
360 * main.c (get_init_files): Change to use std::string.
361 (captured_main_1): Update.
362 (print_gdb_help): Update.
363
9cab7ecd
AT
3642019-09-11 Ali Tamur <tamur@google.com>
365
366 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
367 implementation.
368
67547d89
CB
3692019-09-11 Christian Biesinger <cbiesinger@google.com>
370
371 * dbxread.c (read_dbx_symtab): Update.
372 * dwarf2read.c (load_partial_dies): Update.
373 * mdebugread.c (parse_partial_symbols): Update.
374 (handle_psymbol_enumerators): Update.
375 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
376 * psymtab.c (add_psymbol_to_bcache): Likewise.
377 (add_psymbol_to_list): Likewise.
378 * symtab.c (symbol_set_names): Likewise.
379 * symtab.h (symbol_set_names): Likewise.
380 * xcoffread.c (scan_xcoff_symtab): Update.
381
64b2d4a0
TT
3822019-09-11 Tom Tromey <tom@tromey.com>
383
384 * symfile-mem.c (symbol_file_add_from_memory): Use
385 bfd_set_filename.
386 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
387 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
388
3b00ef10
TT
3892019-09-10 Tom Tromey <tromey@adacore.com>
390
391 * dwarf-index-write.c (write_psymbols): Extend error message.
392 (debug_names::insert): Add Ada code.
393 (debug_names::write_psymbols): Remove Ada check.
394 (debug_names) <m_string_obstack>: New member.
395 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
396 (gdb_index_symbol_name_matcher::matches): Remove.
397 (mapped_index_base::find_name_components_bounds): Add "lang"
398 parameter.
399 (mapped_index_base::build_name_components): Also split names
400 according to Ada syntax.
401 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
402 type of "match_callback".
403 (check_match, check_find_bounds_finds)
404 (dw2_expand_symtabs_matching): Update.
405 (dw2_debug_names_iterator): Add new constructor.
406 (dw2_debug_names_map_matching_symbols): New function.
407 (dw2_debug_names_expand_symtabs_matching): Update.
408 (dwarf2_debug_names_functions): Use
409 dw2_debug_names_map_matching_symbols.
410
aa391654
TT
4112019-09-10 Tom Tromey <tromey@adacore.com>
412
413 * dwarf2read.c (dw2_get_file_names_reader): Add the
414 CU's file name to the results.
415
b054970d
TT
4162019-09-10 Tom Tromey <tromey@adacore.com>
417
418 * ada-lang.c (add_nonlocal_symbols): Combine calls to
419 map_matching_symbols. Update.
420 * dwarf2read.c (dw2_map_matching_symbols): Update.
421 * psymtab.c (match_partial_symbol): Change type; update.
422 (psym_map_matching_symbols): Likewise.
423 * symfile-debug.c (debug_qf_map_matching_symbols): Change
424 type; update.
425 * symfile.h (struct quick_symbol_functions)
426 <map_matching_symbols>: Change "name" to be a lookup_name_info.
427 Remove "match".
428
6a3dbf1b
TT
4292019-09-10 Tom Tromey <tromey@adacore.com>
430
431 * psymtab.c (map_block): Remove.
432 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
433 * symtab.c (iterate_over_symbols_terminated): New function.
434 * symtab.c (iterate_over_symbols_terminated): Declare.
435
6969f124
TT
4362019-09-10 Tom Tromey <tromey@adacore.com>
437
438 * ada-lang.c (ada_iterate_over_symbols): Return bool.
439 * language.h (struct language_defn) <la_iterate_over_symbols>:
440 Return bool.
441 * symtab.c (iterate_over_symbols): Return bool.
442 * symtab.h (iterate_over_symbols): Return bool.
443
199b4314
TT
4442019-09-10 Tom Tromey <tromey@adacore.com>
445
446 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
447 (add_nonlocal_symbols): Update.
448 * dwarf2read.c (dw2_map_matching_symbols): Change type.
449 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
450 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
451 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
452 Change type of "callback". Remove "data".
453
a084a2a6
AT
454
4552019-09-09 Ali Tamur <tamur@google.com>
456
457 * dwarf2read.c (comp_unit_head): Update comment.
458 (dwarf2_dwo_name): New function declaration.
459 (dwarf_unit_type_name): New function declaration.
460 (read_comp_unit_head): Add support for new compilation units,
461 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
462 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
463 (currently named as "signature") in their header. Also clarify error
464 messages.
465 (lookup_dwo_id): New function. Returns the dwo id of the given
466 compile unit.
467 (lookup_dwo_unit): Use the new lookup_dwo_id function.
468 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
469 functions.
470 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
471 (dwarf2_dwo_name): Get the dwo name if present.
472 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
473 purposes.
474
25a2915e
TT
4752019-09-09 Tom Tromey <tom@tromey.com>
476
477 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
478
e4df0874
PW
4792019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
480
481 * python/python.c (do_start_initialization): Make progname_copy static,
482 to avoid a leak report.
483
8634b462
TT
4842019-09-08 Tom Tromey <tom@tromey.com>
485
486 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
487
c7f839cb
SM
4882019-09-07 Simon Marchi <simon.marchi@efficios.com>
489
490 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
491 Change type to gdb::optional<block_enum>.
492 (dw2_symtab_iter_init): Change block_index parameter type
493 to gdb::optional<block_enum>.
494 (dw2_lookup_symbol): Change block_index parameter
495 type to block_enum.c
496 (dw2_debug_names_lookup_symbol): Likewise.
497 * psymtab.c (psym_lookup_symbol): Likewise.
498 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
499 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
500 Likewise.
501
ead0e69a
CB
5022019-09-06 Christian Biesinger <cbiesinger@google.com>
503
504 * defs.h (relocate_gdb_directory): Change int to bool in
505 signature and rename flag to relocatable.
506 * main.c (relocate_path): Likewise.
507 (relocate_gdb_directory): Likewise.
508
b16c44de
AM
5092019-09-06 Alan Modra <amodra@gmail.com>
510
511 * coffread.c (coff_symfile_read): Constify filename variable.
512 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
513 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
514 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
515 * solib.c (reload_shared_libraries_1): Likewise.
516 * symfile.c (reread_symbols): Likewise.
517 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
518 * solib-darwin.c (darwin_bfd_open): Likewise.
519 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
520
06ff036e
AB
5212019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
522
523 * psymtab.c (print_partial_symbols): Handle missing domain_enum
524 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
525
4e962e74
TT
5262019-09-03 Tom Tromey <tromey@adacore.com>
527
528 * ada-valprint.c (ada_val_print_num): Don't recurse for range
529 types.
530 (has_negatives): Unbias a range type bound.
531 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
532 * gdbtypes.c (operator==): Handle new field.
533 (create_range_type): Add "bias" parameter.
534 (create_static_range_type, resolve_dynamic_range): Update.
535 * gdbtypes.h (struct range_bounds) <bias>: New member.
536 (create_range_type): Add bias parameter.
537 * printcmd.c (print_scalar_formatted): Unbias range types.
538 * value.c (unpack_long): Unbias range types.
539 (pack_long): Bias range types.
540
d90b8f26
AH
5412019-09-02 Alan Hayward <alan.hayward@arm.com>
542
543 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
544 probe arguments.
545
fe01123e
AH
5462019-09-02 Alan Hayward <alan.hayward@arm.com>
547
548 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
549 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
550 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
551 (compile_probe_arg): Likewise.
552 * probe.h (get_argument_count): Likewise.
553 * solib-svr4.c (solib_event_probe_action): Likewise.
554 * stap-probe.c (stap_probe::get_argument_count): Likewise.
555
e661ef01
AH
5562019-09-02 Alan Hayward <alan.hayward@arm.com>
557
558 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
559 code to here...
560 (svr4_create_solib_event_breakpoints): ...from here.
561
47a536d9
SDJ
5622019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
563
564 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
565 suffix from warning message.
566
d6a00eba
TT
5672019-08-30 Tom Tromey <tom@tromey.com>
568
569 * tui/tui-winsource.h (struct tui_source_window_base)
570 <refresh_all>: Don't declare.
571 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
572 Remove.
573 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
574 tui_show_locator_content.
575 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
576 declare.
577 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
578 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
579 declare.
580
55b2657b
TT
5812019-08-30 Tom Tromey <tom@tromey.com>
582
583 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
584
12a8555a
TT
5852019-08-30 Tom Tromey <tom@tromey.com>
586
587 * tui/tui-stack.c (_initialize_tui_stack): Move later.
588 Remove unnecessary forward declarations.
589
900ac242
TT
5902019-08-30 Tom Tromey <tom@tromey.com>
591
592 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
593 rerender.
594 (tui_update_locator_fullname, tui_show_frame_info): Don't call
595 tui_show_locator_content.
596
99ab33fb
TT
5972019-08-30 Tom Tromey <tom@tromey.com>
598
599 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
600 (tui_locator_window::rerender): Rewrite using body of previous
601 tui_show_locator_content.
602
e594a5d1
TT
6032019-08-30 Tom Tromey <tom@tromey.com>
604
605 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
606 set_locator_fullname>: New methods.
607 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
608 Rename from tui_set_locator_fullname.
609 (tui_locator_window::set_locator_info): Rename from
610 tui_set_locator_info. Return bool.
611 (tui_update_locator_fullname, tui_show_frame_info): Update.
612
715bb467
TT
6132019-08-30 Tom Tromey <tom@tromey.com>
614
615 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
616
772f3f03
TT
6172019-08-30 Tom Tromey <tom@tromey.com>
618
619 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
620 call touchwin.
621
108e13ab
TT
6222019-08-30 Tom Tromey <tom@tromey.com>
623
624 * tui/tui-wingeneral.c (box_win): Assume win_info and
625 win_info->handle cannot be NULL.
626
cdaa6eb4
TT
6272019-08-30 Tom Tromey <tom@tromey.com>
628
629 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
630 refresh_window>: Declare.
631 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
632 resize.
633 (tui_data_item_window::rerender): Rename from
634 tui_display_register.
635 (tui_data_item_window::refresh_window): New method.
636 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
637 no-op.
638
89df7f90
TT
6392019-08-30 Tom Tromey <tom@tromey.com>
640
641 * tui/tui-regs.h (struct tui_data_window) <regs_content,
642 regs_column_count, current_group>: Move later. Now private.
643 <get_current_group>: New method.
644 * tui/tui-regs.c (tui_reg_command): Update.
645 * tui/tui-layout.c (tui_set_layout): Update.
646
1bf2866a
TT
6472019-08-30 Tom Tromey <tom@tromey.com>
648
649 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
650 (tui_data_window::rerender): Don't call
651 check_and_display_highlight_if_needed.
652 (tui_data_window::refresh_all): Remove call to
653 erase_data_content.
654
0670413d
TT
6552019-08-30 Tom Tromey <tom@tromey.com>
656
657 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
658 (tui_data_window::display_registers_from)
659 (tui_data_window::display_reg_element_at_line)
660 (tui_data_window::display_registers_from_line): Remove checks of
661 "empty".
662
18bb55c7
TT
6632019-08-30 Tom Tromey <tom@tromey.com>
664
665 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
666 Don't declare.
667 * tui/tui-regs.c (tui_data_window::show_registers): Call
668 rerender.
669 (tui_data_window::rerender): Rename from display_all_data.
670 (tui_data_window::rerender): Remove old implementation.
671
1f6d2f10
TT
6722019-08-30 Tom Tromey <tom@tromey.com>
673
674 * tui/tui-regs.c (tui_data_window::display_all_data): Change
675 text.
676 * tui/tui-data.h (NO_DATA_STRING): Remove define.
677
16d01f9c
BW
6782019-08-29 Bernhard Wodok <barto@gmx.net>
679 Sergio Durigan Junior <sergiodj@redhat.com>
680
681 PR win32/24284
682 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
683
d8f27c60
AB
6842019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
685
686 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
687 when searching for types.
688
1f20c35e
AB
6892019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
690
691 * f-lang.c (f_language_defn): Use f_print_typedef.
692 * f-lang.h (f_print_typedef): Declare.
693 * f-typeprint.c (f_print_typedef): Define.
694
550105b7
CB
6952019-08-27 Christian Biesinger <cbiesinger@google.com>
696
697 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
698
4acfdd20
AB
6992019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
700
701 * cli/cli-utils.c (info_print_options_defs): Delete.
702 (make_info_print_options_def_group): Delete.
703 (extract_info_print_options): Delete.
704 (info_print_command_completer): Delete.
705 (info_print_args_help): Add extra parameter, and optionally
706 include text about -n flag.
707 * cli/cli-utils.h (struct info_print_options): Delete.
708 (extract_info_print_options): Delete declaration.
709 (info_print_command_completer): Delete declaration.
710 (info_print_args_help): Add extra parameter, extend header
711 comment.
712 * python/python.c (gdbpy_rbreak): Pass additional parameter to
713 search_symbols.
714 * stack.c (struct info_print_options): New type.
715 (info_print_options_defs): New file scoped variable.
716 (make_info_print_options_def_group): New static function.
717 (info_print_command_completer): New static function.
718 (info_locals_command): Update to use new local functions.
719 (info_args_command): Likewise.
720 (_initialize_stack): Add extra parameter to calls to
721 info_print_args_help.
722 * symtab.c (search_symbols): Add extra parameter, use this to
723 possibly excluse non-debug symbols.
724 (symtab_symbol_info): Add extra parameter, which is passed on to
725 search_symbols.
726 (struct info_print_options): New type.
727 (info_print_options_defs): New file scoped variable.
728 (make_info_print_options_def_group): New static function.
729 (info_print_command_completer): New static function.
730 (info_variables_command): Update to use local functions, and pass
731 extra parameter through to symtab_symbol_info.
732 (info_functions_command): Likewise.
733 (info_types_command): Pass additional argument through to
734 symtab_symbol_info.
735 (rbreak_command): Pass extra argument to search_symbols.
736 (_initialize_symtab): Add extra arguments for calls to
737 info_print_args_help, and update help text for 'info variables',
738 'whereis', and 'info functions' commands.
739 * symtab.h (search_symbols): Add extra argument to declaration.
740 * NEWS: Mention new flags.
741
9aa55206
CB
7422019-08-26 Christian Biesinger <cbiesinger@google.com>
743
744 * symtab.c (lookup_static_symbol): Call the new function (and move
745 it down to be next to lookup_global_symbol).
746 (struct global_sym_lookup_data): Add block_enum member and rename to...
747 (struct global_or_static_sym_lookup_data): ...this.
748 (lookup_symbol_global_iterator_cb): Pass block_index instead of
749 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
750 (lookup_symbol_global_or_static_iterator_cb): ...this.
751 (lookup_global_or_static_symbol): New function.
752 (lookup_global_symbol): Call new function.
753
5c31b358
TV
7542019-08-26 Tom de Vries <tdevries@suse.de>
755
756 PR c++/24852
757 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
758 when pc_probe.prob == NULL.
759
23c13d42
SM
7602019-08-25 Simon Marchi <simon.marchi@efficios.com>
761
762 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
763 variable symbol_linkage to symbol_linkage_.
764
beadd3e8
SM
7652019-08-25 Simon Marchi <simon.marchi@efficios.com>
766
767 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
768 represent whether the symbol is static, dynamic, or we don't
769 know.
770
e3ec872f
YS
7712019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
772
773 * gdb/rx-tdep.c (rx_register_names): New.
774 (rx_register_name): Delete.
775 (rx_psw_type): Delete.
776 (rx_fpsw_type): Delete.
777 (rx_register_type): Delete.
778 (rx_gdbarch_init): Convert target-descriptions.
779 (_initialize_rx_tdep): Add initialize_tdesc_rx.
780 * gdb/features/Makefile: Add rx.xml.
781 * gdb/features/rx.xml: New.
782 * gdb/features/rx.c: Generated.
783 * gdb/NEWS: Mention target description support.
784
d0509ba4
CB
7852019-08-22 Christian Biesinger <cbiesinger@google.com>
786
787 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
788 *slot_ptr.
789
2d41fa11
SDJ
7902019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
791
792 * configure.ac: Don't check for 'dlfcn.h' (moved to
793 gdbsupport/common.m4).
794 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
795 'gdbsupport/'.
796 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
797 * compile/compile-c-support.c: Include
798 'gdbsupport/gdb-dlfcn.h'.
799 * gdbsupport/common.m4: Check for 'dlfcn.h'.
800 * gdb-dlfcn.c: Move to...
801 * gdbsupport/gdb-dlfcn.c: ... here.
802 * gdb-dlfcn.h: Move to...
803 * gdbsupport/gdb-dlfcn.h: ... here.
804
de8af808
SL
8052019-08-23 Sandra Loosemore <sandra@codesourcery.com>
806
807 * nios2-tdep.c (struct reg_value): Improve comments. Make
808 the offset field signed.
809
27204489
CB
8102019-08-22 Christian Biesinger <cbiesinger@google.com>
811
812 * python/lib/gdb/__init__.py (_execute_file): New function.
813 * python/python.c (python_run_simple_file): Call gdb._execute_file
814 on Windows.
815
43771869
AB
8162019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
817
818 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
819 all uses as this was never set to anything but a zero value.
820
26c957f1
PA
8212019-08-21 Bogdan Harjoc <harjoc@gmail.com>
822
823 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
824
c07aae6e
CB
8252019-08-21 Christian Biesinger <cbiesinger@google.com>
826
827 * tui/tui-data.h (tui_gen_win_info): Add an =default
828 move constructor, required by some GCC versions.
829
3960cb7a
JF
8302019-08-21 Jinke Fan <fanjinke51@yeah.net>
831
832 * go32-nat.c (go32_sysinfo): Add hygon_p.
833
04c72a68
TT
8342019-08-20 Tom Tromey <tom@tromey.com>
835
836 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
837 line_from_reg_element_no, first_reg_element_no_inline,
838 display_all_data, delete_data_content_windows,
839 erase_data_content>: Now private.
840
072272ce
TT
8412019-08-20 Tom Tromey <tom@tromey.com>
842
843 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
844 (tui_unhighlight_win, tui_highlight_win)
845 (tui_win_info::make_window): Update.
846 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
847
973961bd
TT
8482019-08-20 Tom Tromey <tom@tromey.com>
849
850 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
851 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
852 (MAX_PID_WIDTH): Move to tui-stack.c.
853 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
854 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
855 (MAX_PID_WIDTH): Move from tui-data.h.
856
ab0e1f1a
TT
8572019-08-20 Tom Tromey <tom@tromey.com>
858
859 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
860 * tui/tui-wingeneral.c (box_win): Change type of win_info.
861 (box_win): Update.
862 (tui_gen_win_info::make_window): Rename from tui_make_window.
863 (tui_win_info::make_window): New method.
864 (tui_gen_win_info::make_visible): Update.
865 * tui/tui-source.c (tui_source_window::set_contents): Update.
866 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
867 (tui_data_window::display_registers_from): Update.
868 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
869 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
870 Declare.
871 <can_box>: Remove.
872 <title>: Remove.
873 (struct tui_win_info) <make_window>: Declare.
874 <can_box>: Now virtual.
875 <title>: New member.
876 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
877 * tui/tui-command.c (tui_cmd_window::resize): Update.
878
100c2bf3
TT
8792019-08-20 Tom Tromey <tom@tromey.com>
880
881 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
882 * tui/tui-regs.c (tui_data_window::show_registers): Update.
883 (tui_data_window::check_register_values): Update.
884
fa4dc567
TT
8852019-08-20 Tom Tromey <tom@tromey.com>
886
887 * tui/tui-regs.h (struct tui_data_window): Use
888 DISABLE_COPY_AND_ASSIGN.
889 <regs_content>: Change type, removing unique_ptr.
890 <tui_data_window>: Add move constructor.
891 * tui/tui-regs.c (tui_data_window::show_registers)
892 (tui_data_window::show_register_group)
893 (tui_data_window::display_registers_from)
894 (tui_data_window::display_registers_from)
895 (tui_data_window::first_data_item_displayed)
896 (tui_data_window::delete_data_content_windows)
897 (tui_data_window::rerender, tui_data_window::refresh_window)
898 (tui_data_window::check_register_values): Update.
899
ca02d7c8
TT
9002019-08-20 Tom Tromey <tom@tromey.com>
901
902 * tui/tui-regs.h (struct tui_data_window) <show_registers,
903 show_register_group>: Declare.
904 (tui_show_register_group): Don't declare.
905 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
906 tui_show_registers.
907 (tui_data_window::show_register_group): Rename from
908 tui_show_register_group.
909 (tui_data_window::check_register_values, tui_reg_command):
910 Update.
911 * tui/tui-layout.c (tui_set_layout): Update.
912
63356bfd
TT
9132019-08-20 Tom Tromey <tom@tromey.com>
914
915 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
916 Declare.
917 (tui_check_register_values): Don't declare.
918 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
919 from tui_check_register_values.
920 * tui/tui-hooks.c (tui_register_changed): Update.
921
42cc14a7
TT
9222019-08-20 Tom Tromey <tom@tromey.com>
923
924 * tui/tui-regs.c (tui_reg_layout): Move later.
925 (tui_show_registers): Don't enable TUI mode or change layout.
926
b9ad3686
TT
9272019-08-20 Tom Tromey <tom@tromey.com>
928
929 * tui/tui-regs.h (struct tui_data_item_window)
930 <~tui_data_item_window>: Remove.
931 <content>: Now a unique_xmalloc_ptr.
932 * tui/tui-regs.c (tui_register_format): Return a
933 unique_xmalloc_ptr.
934 (tui_get_register): Update.
935 (~tui_data_item_window): Remove.
936 (tui_data_window::display_registers_from, tui_display_register):
937 Update.
938 * tui/tui-io.h (tui_expand_tabs): Update.
939 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
940 Remove "col" parameter.
941
8e114aab
TT
9422019-08-20 Tom Tromey <tom@tromey.com>
943
944 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
945 field.
946 * tui/tui-regs.c (~tui_data_item_window): Update.
947
1a4f81dd
TT
9482019-08-20 Tom Tromey <tom@tromey.com>
949
950 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
951 earlier.
952
0f8d8876
TT
9532019-08-20 Tom Tromey <tom@tromey.com>
954
955 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
956
605dc2c2
TT
9572019-08-20 Tom Tromey <tom@tromey.com>
958
959 * tui/tui-source.h (struct tui_source_window): Update.
960 * tui/tui-regs.c (tui_show_registers): Update.
961 * tui/tui-disasm.h (struct tui_disasm_window): Update.
962 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
963 (NO_REGS_STRING): Remove defines.
964
aedbe3bb
CM
9652019-08-20 Conrad Meyer <cem@FreeBSD.org>
966
967 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
968 unnecessary thread walk if remote doesn't support the packet.
969
7ce8f214
TT
9702019-08-19 Tom Tromey <tromey@adacore.com>
971
972 * python/py-value.c (value_has_field): Fix indentation.
973
f21c2bd7
TT
9742019-08-19 Tom Tromey <tromey@adacore.com>
975
976 * printcmd.c (do_one_display, info_display_command): Update.
977 * block.h (contained_in): Return bool. Add allow_nested
978 parameter.
979 * block.c (contained_in): Return bool. Add allow_nested
980 parameter.
981
d806ea2d
TT
9822019-08-19 Tom Tromey <tom@tromey.com>
983
984 * configure: Rebuild.
985 * configure.ac: Disallow the combination of -static-libstdc++ and
986 source highlight.
987 * source-cache.c (get_language_name): Handle rust.
988 (source_cache::get_source_lines): Ignore highlighting exceptions.
989
398fdd60
TT
9902019-08-16 Tom Tromey <tom@tromey.com>
991
992 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
993 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
994 (struct tui_source_window_base) <make_visible, refresh_window,
995 resize>: Remove methods.
996 <execution_info>: Remove field.
997 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
998 (tui_show_source_line, tui_source_window_base)
999 (~tui_source_window_base): Update.
1000 (tui_source_window_base::resize)
1001 (tui_source_window_base::make_visible)
1002 (tui_source_window_base::refresh_window): Remove.
1003 (tui_source_window_base::update_exec_info): Update.
1004 * tui/tui-source.c (tui_source_window::set_contents): Update.
1005 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1006
e699d331
TT
10072019-08-16 Tom Tromey <tom@tromey.com>
1008
1009 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1010 deprecated_query_hook.
1011
bb01dbfc
TT
10122019-08-16 Tom Tromey <tom@tromey.com>
1013
1014 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1015 (tui_update_source_windows_with_line): Update.
1016 * tui/tui-source.h (struct tui_source_window)
1017 <show_symtab_source>: Declare.
1018 (tui_show_symtab_source): Don't declare.
1019 * tui/tui-source.c (tui_show_symtab_source): Rename from
1020 tui_show_symtab_source.
1021
81c82c4b
TT
10222019-08-16 Tom Tromey <tom@tromey.com>
1023
1024 * tui/tui-winsource.h (struct tui_source_window_base)
1025 <set_contents>: Declare.
1026 * tui/tui-winsource.c
1027 (tui_source_window_base::update_source_window_as_is): Update.
1028 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1029 Declare.
1030 (tui_set_source_content): Don't declare.
1031 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1032 tui_set_source_content.
1033 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1034 Declare.
1035 (tui_set_disassem_content): Don't declare.
1036 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1037 tui_set_disassem_content.
1038
2ddaf614
TT
10392019-08-16 Tom Tromey <tom@tromey.com>
1040
1041 * tui/tui-winsource.h (struct tui_source_window_base)
1042 <update_breakpoint_info>: Declare.
1043 (tui_update_breakpoint_info): Don't declare.
1044 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1045 (tui_update_all_breakpoint_info): Update.
1046 (tui_source_window_base::update_breakpoint_info): Rename from
1047 tui_update_breakpoint_info.
1048 (tui_source_window_base::update_exec_info): Update.
1049
017f9828
TT
10502019-08-16 Tom Tromey <tom@tromey.com>
1051
1052 * tui/tui-winsource.h (struct tui_source_window_base)
1053 <update_source_window>: Declare.
1054 (tui_update_source_window): Don't declare.
1055 * tui/tui-winsource.c
1056 (tui_source_window_base::update_source_window): Rename from
1057 tui_update_source_window.
1058 (tui_source_window_base::rerender): Update.
1059 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1060 * tui/tui-disasm.c (tui_show_disassem)
1061 (tui_show_disassem_and_update_source)
1062 (tui_disasm_window::maybe_update): Update.
1063
ed8358e9
TT
10642019-08-16 Tom Tromey <tom@tromey.com>
1065
1066 * tui/tui-winsource.h (struct tui_source_window_base)
1067 <update_source_window_as_is>: Declare.
1068 (tui_update_source_window_as_is): Don't declare.
1069 * tui/tui-winsource.c (tui_update_source_window): Update
1070 (tui_source_window_base::update_source_window_as_is): Rename from
1071 tui_update_source_window_as_is.
1072 (tui_source_window_base::refill): Update.
1073 * tui/tui-source.c (tui_show_symtab_source): Update.
1074 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1075 Update.
1076
20149b6b
TT
10772019-08-16 Tom Tromey <tom@tromey.com>
1078
1079 * tui/tui-winsource.h (tui_update_source_window)
1080 (tui_update_source_window_as_is): Remove "noerror" parameter.
1081 * tui/tui-winsource.c (tui_update_source_window)
1082 (tui_update_source_window_as_is): Remove "noerror" parameter.
1083 (tui_update_source_windows_with_addr)
1084 (tui_update_source_windows_with_line)
1085 (tui_source_window_base::rerender)
1086 (tui_source_window_base::refill): Update.
1087 * tui/tui-source.h (tui_set_source_content)
1088 (tui_show_symtab_source): Remove "noerror" parameter.
1089 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1090 parameter.
1091 (tui_show_symtab_source): Likewise.
1092 (tui_source_window::maybe_update): Update.
1093 * tui/tui-disasm.c (tui_show_disassem)
1094 (tui_show_disassem_and_update_source)
1095 (tui_disasm_window::do_scroll_vertical)
1096 (tui_disasm_window::maybe_update): Update.
1097
2d83e710
TT
10982019-08-16 Tom Tromey <tom@tromey.com>
1099
1100 * tui/tui.c (tui_is_window_visible): Update.
1101 * tui/tui-wingeneral.c (tui_make_window)
1102 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1103 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1104 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1105 (tui_set_win_height_command, parse_scrolling_args): Update.
1106 * tui/tui-source.c (tui_source_window::style_changed): Update.
1107 * tui/tui-regs.c (tui_show_registers)
1108 (tui_data_window::first_data_item_displayed)
1109 (tui_data_window::delete_data_content_windows)
1110 (tui_check_register_values, tui_reg_command): Update.
1111 * tui/tui-disasm.c (tui_show_disassem): Update.
1112 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1113 method.
1114 <is_visible>: Remove field.
1115 * tui/tui-data.c (tui_next_win, tui_prev_win)
1116 (tui_delete_invisible_windows): Update.
1117
d4ab829a
TT
11182019-08-16 Tom Tromey <tom@tromey.com>
1119
1120 * tui/tui-winsource.h (struct tui_source_window_base)
1121 <m_has_locator>: Remove.
1122 * tui/tui-layout.c (show_source_disasm_command, show_data)
1123 (show_source_or_disasm_and_command): Update.
1124
aa7ca1bb
AH
11252019-08-16 Alan Hayward <alan.hayward@arm.com>
1126
1127 * NEWS (Other MI changes): New subsection.
1128 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1129 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1130 * arch-utils.c (default_get_pc_address_flags): New function.
1131 * arch-utils.h (default_get_pc_address_flags): New declaration.
1132 * gdbarch.sh: Add get_pc_address_flags.
1133 * gdbarch.c: Regenerate.
1134 * gdbarch.h: Likewise.
1135 * stack.c (print_pc): New function.
1136 (print_frame_info) (print_frame): Call print_pc.
1137
6eac171f
TV
11382019-08-16 Tom de Vries <tdevries@suse.de>
1139
1140 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1141 print_objfile_section_info.
1142
3df505f6
TT
11432019-08-15 Tom Tromey <tom@tromey.com>
1144
1145 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1146 calling update_cmdwin_start_line.
1147 * tui/tui-winsource.h (struct tui_source_window_base)
1148 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1149 <rerender>: Declare.
1150 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1151 Call rerender.
1152 (tui_source_window_base::set_new_height): Remove.
1153 (tui_source_window_base::rerender): Rename from
1154 do_make_visible_with_new_height.
1155 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1156 resize method.
1157 (tui_win_info::make_invisible_and_set_new_height)
1158 (tui_win_info::make_visible_with_new_height): Remove.
1159 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1160 Declare.
1161 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1162 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1163 do_make_visible_with_new_height>: Don't declare.
1164 <rerender>: Declare.
1165 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1166 set_new_height.
1167 (tui_data_window::do_make_visible_with_new_height): Remove.
1168 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1169 call tui_show_locator_content.
1170 (tui_gen_win_info::resize): Call rerender.
1171 (show_source_or_disasm_and_command): Don't call
1172 tui_show_locator_content.
1173 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1174 method.
1175 (struct tui_win_info) <rerender>: Declare.
1176 <set_new_height, make_invisible_and_set_new_height,
1177 make_visible_with_new_height>: Don't declare.
1178 * tui/tui-data.c (tui_win_list::rerender): New method.
1179 * tui/tui-command.h (struct tui_cmd_window)
1180 <do_make_visible_with_new_height>: Don't declare.
1181 * tui/tui-command.c
1182 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1183
272560b5
TT
11842019-08-15 Tom Tromey <tromey@adacore.com>
1185
1186 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1187 * ada-lang.c (ada_enum_name): Likewise.
1188
08235187
CB
11892019-08-15 Christian Biesinger <cbiesinger@google.com>
1190
1191 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1192 leading underscore.
1193 (GdbOutputErrorFile): Likewise.
1194 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1195 accordingly.
1196 (execute_unwinders): Rename to have a leading underscore.
1197 (auto_load_packages): Likewise.
1198 (global scope): Adjust call to auto_load_packages accordingly.
1199 (GdbSetPythonDirectory): Likewise.
1200 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1201 instead of execute_unwinders.
1202
db502012
TT
12032019-08-15 Tom Tromey <tom@tromey.com>
1204
1205 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1206 (show_data): Don't change window visibility.
1207 (tui_gen_win_info::resize): Remove special case for command
1208 window. Use wresize, when available.
1209 (show_source_or_disasm_and_command): Don't change window
1210 visibility.
1211 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1212 <make_visible>: New method.
1213 * tui/tui-command.c (tui_cmd_window::resize): New method.
1214
3891b65e
TT
12152019-08-15 Tom Tromey <tom@tromey.com>
1216
1217 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1218 (struct tui_source_windows): New.
1219 * tui/tui-winsource.c (tui_display_main): Update.
1220 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1221 (new_height_ok, parse_scrolling_args): Update.
1222 * tui/tui-layout.c (show_layout, show_data): Update.
1223 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1224 (tui_add_to_source_windows): Don't declare.
1225 * tui/tui-data.c (source_windows, tui_source_windows)
1226 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1227
ee556432
TT
12282019-08-15 Tom Tromey <tom@tromey.com>
1229
1230 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1231 Rename from reset.
1232 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1233 * tui/tui-layout.c (show_source_disasm_command, show_data):
1234 Update.
1235 (tui_gen_win_info::resize): Rename.
1236 (show_source_or_disasm_and_command): Update.
1237 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1238 reset.
1239
46f438e3
TT
12402019-08-15 Tom Tromey <tom@tromey.com>
1241
1242 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1243 * tui/tui-interp.c (tui_interp::init): Don't call
1244 tui_initialize_static_data.
1245 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1246
f4ce562c
TT
12472019-08-15 Tom Tromey <tom@tromey.com>
1248
1249 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1250 examine tui_win_list.
1251
c398c3d0
TT
12522019-08-15 Tom Tromey <tom@tromey.com>
1253
1254 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1255 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1256 tui_clear_source_content.
1257 (tui_clear_source_content): Remove.
1258 (tui_source_window_base::do_erase_source_content): Hoist call to
1259 content.clear().
1260 * tui/tui-stack.c (tui_show_frame_info): Don't call
1261 tui_clear_source_content.
1262
e25d2004
TT
12632019-08-15 Tom Tromey <tom@tromey.com>
1264
1265 * tui/tui-winsource.h (struct tui_source_window_base)
1266 <do_erase_source_content>: New method.
1267 <erase_source_content>: New method.
1268 (tui_erase_source_content): Don't declare.
1269 * tui/tui-winsource.c (tui_clear_source_content): Update.
1270 (tui_source_window_base::do_erase_source_content): Rename from
1271 tui_erase_source_content.
1272 (tui_source_window_base::show_source_content): Update.
1273 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1274 * tui/tui-source.h (struct tui_source_window)
1275 <erase_source_content>: New method.
1276 * tui/tui-disasm.h (struct tui_disasm_window)
1277 <erase_source_content>: New method.
1278
002f15c2
TT
12792019-08-15 Tom Tromey <tom@tromey.com>
1280
1281 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1282 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1283 constructor.
1284 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1285 * tui/tui-source.c (tui_set_source_content): Update.
1286 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1287
c9033fe8
TT
12882019-08-15 Tom Tromey <tom@tromey.com>
1289
1290 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1291 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1292 tui-source.c.
1293 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1294 Declare.
1295 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1296 method.
1297 (tui_source_window::maybe_update): Update.
1298
088f37dd
TT
12992019-08-15 Tom Tromey <tom@tromey.com>
1300
1301 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1302 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1303 tui-disasm.c.
1304 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1305 Declare.
1306 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1307 method.
1308 (tui_disasm_window::maybe_update): Update.
1309
a54700c6
TT
13102019-08-15 Tom Tromey <tom@tromey.com>
1311
1312 * tui/tui-winsource.h (struct tui_source_window_base)
1313 <maybe_update>: Declare.
1314 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1315 method.
1316 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1317 Declare.
1318 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1319 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1320 Declare.
1321 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1322
e2a678a5
TT
13232019-08-15 Tom Tromey <tom@tromey.com>
1324
1325 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1326
f2dda477
TT
13272019-08-15 Tom Tromey <tom@tromey.com>
1328
1329 * tui/tui-wingeneral.c: Include tui-stack.h.
1330 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1331 (struct tui_locator_window): Move from tui-data.h.
1332 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1333 (tui_initialize_static_data): Move from tui-data.c.
1334 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1335 (struct tui_locator_window): Move to tui-stack.c.
1336 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1337 (tui_initialize_static_data): Move to tui-stack.c.
1338
ed4a1084
TT
13392019-08-15 Tom Tromey <tom@tromey.com>
1340
1341 * tui/tui-layout.c (show_source_disasm_command)
1342 (show_source_or_disasm_and_command): Use make_visible method, not
1343 tui_make_window.
1344 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1345 Remove.
1346
65962b20
TT
13472019-08-15 Tom Tromey <tom@tromey.com>
1348
1349 * tui/tui-wingeneral.h (tui_make_window): Update.
1350 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1351 parameter.
1352 (tui_gen_win_info::make_visible): Update.
1353 * tui/tui-regs.c (tui_data_window::display_registers_from):
1354 Update.
1355 * tui/tui-layout.c (show_source_disasm_command)
1356 (show_source_or_disasm_and_command): Update.
1357 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1358 (enum tui_box): Remove.
1359 (struct tui_win_info) <can_box>: New method.
1360 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1361 method.
1362
2208ee91
TV
13632019-08-15 Tom de Vries <tdevries@suse.de>
1364
1365 * linux-nat-trad.c: Include gdbarch.h.
1366
75faf5c4
AH
13672019-08-14 Alan Hayward <alan.hayward@arm.com>
1368
1369 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1370 register sizes.
1371
b1c896b3
TT
13722019-08-14 Tom Tromey <tromey@adacore.com>
1373
1374 * darwin-nat.c: Include gdbarch.h.
1375 * darwin-nat-info.c: Include gdbarch.h.
1376
6405cd73
TT
13772019-08-13 Tom Tromey <tom@tromey.com>
1378
1379 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1380 Remove.
1381 * tui/tui-data.c (tui_initialize_static_data): Update.
1382
5216580d
TT
13832019-08-13 Tom Tromey <tom@tromey.com>
1384
1385 * tui/tui-winsource.h (struct tui_exec_info_window)
1386 <~tui_exec_info_window, maybe_allocate_content, get_content,
1387 m_content>: Remove.
1388 (struct tui_source_window_base) <set_exec_info_content,
1389 show_exec_info_content>: Don't declare.
1390 * tui/tui-winsource.c
1391 (tui_exec_info_window::maybe_allocate_content): Remove.
1392 (tui_source_window_base::update_exec_info): Rename from
1393 set_exec_info_content.
1394 (tui_source_window_base::show_exec_info_content)
1395 (tui_source_window_base::update_exec_info): Remove.
1396
93858ad3
TT
13972019-08-13 Tom Tromey <tom@tromey.com>
1398
1399 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1400 declare.
1401 * tui/tui-winsource.c (tui_update_source_window_as_is)
1402 (tui_update_source_windows_with_addr, tui_erase_source_content):
1403 Update.
1404 (tui_clear_exec_info_content): Remove.
1405
e321e7ce
TT
14062019-08-13 Tom Tromey <tom@tromey.com>
1407
1408 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1409 declare.
1410 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1411 call tui_erase_exec_info_content.
1412 (tui_clear_exec_info_content): Rename from
1413 tui_erase_exec_info_content.
1414 (tui_clear_exec_info_content): Delete.
1415
8270ac62
TT
14162019-08-13 Tom Tromey <tom@tromey.com>
1417
1418 * tui/tui-winsource.h (struct tui_source_window_base)
1419 <show_exec_info_content>: Declare.
1420 (tui_show_exec_info_content): Don't declare.
1421 * tui/tui-winsource.c
1422 (tui_source_window_base::show_exec_info_content): Rename from
1423 tui_show_exec_info_content.
1424 (tui_source_window_base::update_exec_info): Update.
1425
7b56485d
TT
14262019-08-13 Tom Tromey <tom@tromey.com>
1427
1428 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1429 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1430 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1431 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1432 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1433 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1434 ... here.
1435
7ba913dc
TT
14362019-08-13 Tom Tromey <tom@tromey.com>
1437
1438 * tui/tui-winsource.h (struct tui_source_window_base)
1439 <update_exec_info>: Declare.
1440 (tui_update_exec_info): Don't declare.
1441 * tui/tui-winsource.c (tui_update_source_window_as_is)
1442 (tui_source_window_base::refresh_all)
1443 (tui_update_all_breakpoint_info): Update.
1444 (tui_source_window_base::update_exec_info): Rename from
1445 tui_update_exec_info.
1446 * tui/tui-stack.c (tui_show_frame_info): Update.
1447
37a4a131
TT
14482019-08-13 Tom Tromey <tom@tromey.com>
1449
1450 * tui/tui-winsource.h (struct tui_source_window_base)
1451 <set_exec_info_content>: Declare.
1452 (tui_set_exec_info_content): Don't declare.
1453 * tui/tui-winsource.c
1454 (tui_source_window_base::set_exec_info_content): Rename from
1455 tui_set_exec_info_content.
1456 (tui_update_exec_info): Update.
1457
0bd27e07
TT
14582019-08-13 Tom Tromey <tom@tromey.com>
1459
1460 * tui/tui-winsource.h (struct tui_source_window_base)
1461 <show_source_content>: Declare.
1462 (tui_show_source_content): Don't declare.
1463 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1464 (tui_source_window_base::show_source_content): Rename from
1465 tui_show_source_content.
1466 (tui_source_window_base::refresh_all): Update.
1467 * tui/tui-layout.c (show_source_disasm_command)
1468 (show_source_or_disasm_and_command): Update.
1469
b4ef5aeb
TT
14702019-08-13 Tom Tromey <tom@tromey.com>
1471
1472 * tui/tui-winsource.c (tui_erase_source_content)
1473 (tui_show_source_content, tui_source_window_base::refresh_all):
1474 Update.
1475 * tui/tui-wingeneral.h
1476 (tui_check_and_display_highlight_if_needed): Don't declare.
1477 * tui/tui-wingeneral.c
1478 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1479 check_and_display_highlight_if_needed.
1480 * tui/tui-win.c (tui_rehighlight_all)
1481 (tui_win_info::make_visible_with_new_height): Update.
1482 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1483 (tui_data_window::erase_data_content)
1484 (tui_data_window::display_all_data): Update.
1485 * tui/tui-data.h (struct tui_win_info)
1486 <check_and_display_highlight_if_needed>: Declare.
1487
fede5273
TT
14882019-08-13 Tom Tromey <tom@tromey.com>
1489
1490 * tui/tui-win.c (tui_resize_all): Call
1491 tui_delete_invisible_windows.
1492 * tui/tui-layout.c (show_layout): Call
1493 tui_delete_invisible_windows.
1494 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1495 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1496
22c3f490
TT
14972019-08-13 Tom Tromey <tom@tromey.com>
1498
1499 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1500 tui_add_win_to_layout.
1501
16cb7910
TT
15022019-08-13 Tom Tromey <tom@tromey.com>
1503
1504 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1505 * tui/tui-layout.c (tui_default_win_height): Now static.
1506
cc0c3ffb
TT
15072019-08-13 Tom Tromey <tom@tromey.com>
1508
1509 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1510 single switch.
1511 (show_source_disasm_command, show_source_or_disasm_and_command):
1512 Don't check current layout.
1513
3f3ffe54
TT
15142019-08-13 Tom Tromey <tom@tromey.com>
1515
1516 * tui/tui-wingeneral.c (make_all_visible): Remove.
1517 (tui_make_all_invisible): Simplify.
1518 * tui/tui-layout.c (tui_make_all_invisible): Move from
1519 tui-wingeneral.c; simplify.
1520 (show_layout): Hoist call to tui_make_all_invisible.
1521 (show_data): Don't call tui_make_all_invisible.
1522
69258091
TT
15232019-08-13 Tom Tromey <tom@tromey.com>
1524
1525 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1526 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1527
62cf57fe
TT
15282019-08-13 Tom Tromey <tom@tromey.com>
1529
1530 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1531 tui-data.c.
1532 (show_source_disasm_command, show_data)
1533 (show_source_or_disasm_and_command): Don't use
1534 tui_set_current_layout_to.
1535 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1536 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1537 tui-layout.c.
1538 (tui_set_current_layout_to): Remove.
1539
2afade5d
TT
15402019-08-13 Tom Tromey <tom@tromey.com>
1541
1542 * tui/tui-layout.c (tui_set_layout): Update.
1543 * tui/tui-data.h (struct tui_layout_def): Remove.
1544 (tui_layout_def): Don't declare.
1545 * tui/tui-data.c (layout_def): Remove.
1546 (tui_layout_def): Remove.
1547
a3504e96
TT
15482019-08-13 Tom Tromey <tom@tromey.com>
1549
1550 * tui/tui-winsource.h (struct tui_source_window_base)
1551 <clear_detail>: No longer "override".
1552 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1553 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1554 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1555 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1556 Remove.
1557 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1558
29c92911
TT
15592019-08-13 Tom Tromey <tromey@adacore.com>
1560
1561 * tracepoint.c: Don't include readline.h or history.h.
1562
86c6b807
TT
15632019-08-12 Tom Tromey <tom@tromey.com>
1564
1565 * configure: Rebuild.
1566 * configure.ac: Check for readline 7.
1567 * NEWS: Mention readline 7 requirement.
1568 * README: Update.
1569
5db2718c
TT
15702019-08-12 Tom Tromey <tom@tromey.com>
1571
1572 * mingw-hdep.c (gdb_select): Remove readline hack.
1573
dac36daf
PFC
15742019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1575
1576 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1577 when the function fails.
1578
1022c627
AA
15792019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1580
1581 * s390-tdep.c (s390_type_align): New function.
1582 (s390_gdbarch_init): Set it as type_align gdbarch method.
1583
eba4caf2
TV
15842019-08-09 Tom de Vries <tdevries@suse.de>
1585
1586 PR gdb/24591
1587 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1588 pc_low with relocation offset.
1589
123cd851
TT
15902019-08-07 Tom Tromey <tromey@adacore.com>
1591
1592 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1593 (print_frame_args): Update.
1594 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1595 Update.
1596 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1597 * frame.h (struct frame_arg): Add initializers.
1598 <error>: Now a unique_xmalloc_ptr.
1599
3d31bc39
AH
16002019-08-07 Alan Hayward <alan.hayward@arm.com>
1601
1602 * NEWS: Expand the Pointer Authentication entry.
1603 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1604 (aarch64_frame_unmask_lr): ... to this.
1605 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1606 Call aarch64_frame_unmask_lr.
1607 * frame.c (struct frame_info): Add "masked" variable.
1608 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1609 (fprint_frame): Check for masked pc.
1610 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1611 declarations.
1612 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1613 * stack.c (print_frame): Check for masked pc.
1614
0cf9feb9
TT
16152019-08-06 Tom Tromey <tom@tromey.com>
1616
1617 * stabsread.c (patch_block_stabs, read_one_struct_field)
1618 (read_enum_type): Use obstack_strndup.
1619 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1620 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1621 * dwarf2read.c (guess_full_die_structure_name)
1622 (anonymous_struct_prefix): Use obstack_strndup.
1623 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1624 * c-exp.y (yylex): Use obstack_strndup.
1625 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1626 (write_var_or_type): Use obstack_strndup.
1627
efba19b0
TT
16282019-08-06 Tom Tromey <tom@tromey.com>
1629
1630 * symfile.c (reread_symbols): Use obstack_strdup.
1631 * stabsread.c (read_type): Use obstack_strdup.
1632 * gdb_obstack.h (obstack_strdup): New overload.
1633 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1634 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1635 (dwarf2_canonicalize_name): Use obstack_strdup.
1636 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1637 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1638 Use obstack_strdup.
1639
f25102f7
TT
16402019-08-06 Tom Tromey <tom@tromey.com>
1641
1642 * gdb_obstack.h (obstack_strdup): Define.
1643 * gdb_obstack.c (obstack_strdup): Don't define.
1644
021887d8
TT
16452019-08-06 Tom Tromey <tom@tromey.com>
1646
1647 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1648 obstack_strdup.
1649 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1650 obstack_strdup.
1651 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1652 * stabsread.c (common_block_start): Use obstack_strdup.
1653 * objfiles.c (set_objfile_main_name, objfile): Use
1654 obstack_strdup.
1655 * namespace.c (add_using_directive): Use obstack_strdup.
1656 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1657 * jit.c (finalize_symtab): Use obstack_strdup.
1658 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1659 (guess_partial_die_structure_name, partial_die_info::fixup)
1660 (dwarf2_name): Use obstack_strdup.
1661 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1662 obstack_strdup.
1663 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1664 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1665 obstack_strdup.
1666 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1667
d2834edc
PW
16682019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1669
1670 * unittests/help-doc-selftests.c: New file.
1671 * Makefile.in: Add the new file.
1672
590042fc
PW
16732019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1674
1675 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1676 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1677 the full first line, except when FOR_VALUE_PREFIX. In this case,
1678 the trailing '.' is not output, and the first character is uppercased.
1679 (print_help_for_command): Update call to print_doc_line.
1680 (print_doc_of_command): Likewise.
1681 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1682 * cli/cli-option.c (append_indented_doc): Do not append newline.
1683 (build_help_option): Append newline after first appended_indented_doc
1684 only if a second call is done.
1685 (build_help): Append 2 new lines before each option, except the first
1686 one.
1687 * compile/compile.c (_initialize_compile): Add new lines after
1688 %OPTIONS%, when not at the end of the help.
1689 Change help doc or code
1690 producing the help doc to respect the invariants.
1691 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1692 Also removed the new line after 'Options:', as all other commands
1693 do not put an empty line between 'Options:' and the first option.
1694 * printcmd.c (_initialize_printcmd): Likewise.
1695 * stack.c (_initialize_stack): Likewise.
1696 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1697 incorrectly telling COMMAND is optional.
1698 * ada-lang.c (_initialize_ada_language): Change help doc or code
1699 producing the help doc to respect the invariants.
1700 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1701 * breakpoint.c (_initialize_breakpoint): Likewise.
1702 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1703 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1704 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1705 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1706 _initialize_cli_style): Likewise.
1707 * corelow.c (core_target_info): Likewise.
1708 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1709 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1710 * filesystem.c (_initialize_filesystem): Likewise.
1711 * frame.c (_initialize_frame): Likewise.
1712 * gnu-nat.c (add_task_commands): Likewise.
1713 * infcall.c (_initialize_infcall): Likewise.
1714 * infcmd.c (_initialize_infcmd): Likewise.
1715 * interps.c (_initialize_interpreter): Likewise.
1716 * language.c (_initialize_language): Likewise.
1717 * linux-fork.c (_initialize_linux_fork): Likewise.
1718 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1719 * maint.c (_initialize_maint_cmds): Likewise.
1720 * memattr.c (_initialize_mem): Likewise.
1721 * printcmd.c (_initialize_printcmd): Likewise.
1722 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1723 _RegEx): Likewise.
1724 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1725 * record-btrace.c (_initialize_record_btrace): Likewise.
1726 * record-full.c (_initialize_record_full): Likewise.
1727 * record.c (_initialize_record): Likewise.
1728 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1729 * regcache.c (_initialize_regcache): Likewise.
1730 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1731 _initialize_remote): Likewise.
1732 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1733 * serial.c (_initialize_serial): Likewise.
1734 * skip.c (_initialize_step_skip): Likewise.
1735 * source.c (_initialize_source): Likewise.
1736 * stack.c (_initialize_stack): Likewise.
1737 * symfile.c (_initialize_symfile): Likewise.
1738 * symtab.c (_initialize_symtab): Likewise.
1739 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1740 * top.c (init_main): Likewise.
1741 * tracefile-tfile.c (tfile_target_info): Likewise.
1742 * tracepoint.c (_initialize_tracepoint): Likewise.
1743 * tui/tui-win.c (_initialize_tui_win): Likewise.
1744 * utils.c (add_internal_problem_command): Likewise.
1745 * valprint.c (value_print_option_defs): Likewise.
1746
404f2902
FCE
17472019-08-06 Frank Ch. Eigler <fche@redhat.com>
1748
1749 PR build/24886
1750 * configure.ac: Drop enable-libmcheck support.
1751 * configure, config.in: Rebuild.
1752 * libmcheck.m4: Remove.
1753 * acinclude.m4: Don't include it.
1754 * Makefile.in: Don't distribute it.
1755 * top.c (print_gdb_configuration): Don't mention it.
1756
046bebe1
TT
17572019-08-06 Tom Tromey <tom@tromey.com>
1758
1759 * utils.c (set_output_style): Sometimes pass stream to
1760 emit_style_escape.
1761 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1762 * record-btrace.c (btrace_insn_history): Update.
1763 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1764 method.
1765 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1766 Update initializers.
1767 <m_uiout>: New field.
1768 <m_di>: Move lower.
1769 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1770 Remove "uiout" parameter.
1771 (dump_insns): Update.
1772 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1773 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1774
ddbcedf5
CB
17752019-08-06 Christian Biesinger <cbiesinger@google.com>
1776
1777 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1778 (error_in_psymtab_expansion): Likewise.
1779 (lookup_symbol_via_quick_fns): Likewise.
1780 (basic_lookup_transparent_type_quick): Likewise.
1781 (basic_lookup_transparent_type_1): Likewise.
1782
b08b16c8
TT
17832019-08-06 Tom Tromey <tromey@adacore.com>
1784
1785 * source.c (last_source_error): Now bool.
1786 (print_source_lines_base): Make "noprint" bool. Only open
1787 source file when last_source_visited changes.
1788
cb44333d
TT
17892019-08-06 Tom Tromey <tromey@adacore.com>
1790
1791 * annotate.c (annotate_source_line): Use g_source_cache.
1792 * source-cache.c (source_cache::get_plain_source_lines): Change
1793 parameters. Populate m_offset_cache.
1794 (source_cache::ensure): New method.
1795 (source_cache::get_line_charpos): New method.
1796 (extract_lines): Move lower. Change parameters.
1797 (source_cache::get_source_lines): Move lower.
1798 * source-cache.h (class source_cache): Update comment.
1799 <get_line_charpos>: New method.
1800 <get_source_lines>: Update comment.
1801 <clear>: Clear m_offset_cache.
1802 <get_plain_source_lines>: Change parameters.
1803 <ensure>: New method
1804 <m_offset_cache>: New member.
1805 * source.c (forget_cached_source_info_for_objfile): Update.
1806 (info_source_command): Use g_source_cache.
1807 (find_source_lines, open_source_file_with_line_charpos): Remove.
1808 (print_source_lines_base, search_command_helper): Use g_source_cache.
1809 * source.h (open_source_file_with_line_charpos): Don't declare.
1810 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1811 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1812 Use g_source_cache.
1813
872dceaa
TT
18142019-08-06 Tom Tromey <tromey@adacore.com>
1815
1816 * source-cache.c (source_cache::get_plain_source_lines):
1817 Remove "first_line" and "last_line" parameters.
1818 (source_cache::get_source_lines): Cache plain text.
1819 * source-cache.h (class source_cache)
1820 <get_plain_source_lines>: Update.
1821
269249d9
TT
18222019-08-06 Tom Tromey <tromey@adacore.com>
1823
1824 * source-cache.c (extract_lines): No longer a method.
1825 Changed type of parameter. Include final newline.
1826 (selftests::extract_lines_test): New function.
1827 (_initialize_source_cache): Likewise.
1828 * source-cache.h (class source_cache)
1829 <extract_lines>: Don't declare.
1830
c0e8dcd8
TT
18312019-08-06 Tom Tromey <tromey@adacore.com>
1832
1833 * breakpoint.c (init_breakpoint_sal): Update.
1834 (breakpoint): Update.
1835 * breakpoint.h (struct breakpoint) <filter>: Now a
1836 unique_xmalloc_ptr.
1837
0b27c27d
CB
18382019-08-05 Christian Biesinger <cbiesinger@google.com>
1839
1840 * NEWS: Mention dictionary access on blocks.
1841 * python/py-block.c (blpy_getitem): New function.
1842 (block_object_as_mapping): New struct.
1843 (block_object_type): Use new struct for tp_as_mapping field.
1844
4ee94178
CB
18452019-08-05 Christian Biesinger <cbiesinger@google.com>
1846
1847 * objfiles.h (objfile): Add a comment describing partial symbols.
1848
8abfcabc
TT
18492019-08-05 Tom Tromey <tromey@adacore.com>
1850
1851 * compile/compile.c (_initialize_compile): Use _(), not N_().
1852 * thread.c (_initialize_thread): Use _(), not N_().
1853 * stack.c (_initialize_stack): Use _(), not N_().
1854 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1855
2b79f376
SM
18562019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1857
1858 * dwarf2read.c (struct dw2_symtab_iterator):
1859 <want_specific_block>: Remove.
1860 <block_index>: Change type to gdb::optional.
1861 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1862 change type of BLOCK_INDEX parameter to gdb::optional.
1863 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1864 (dw2_lookup_symbol): Don't pass argument for
1865 WANT_SPECIFIC_BLOCK.
1866 (dw2_expand_symtabs_for_function): Don't pass argument for
1867 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1868 (class dw2_debug_names_iterator)
1869 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1870 parameter, change BLOCK_INDEX type to gdb::optional.
1871 <m_want_specific_block>: Remove.
1872 <m_block_index>: Change type to gdb::optional.
1873 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1874 gdb::optional. Re-write in function of gdb::optional.
1875 (dw2_debug_names_lookup_symbol): Don't pass argument for
1876 WANT_SPECIFIC_BLOCK.
1877 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1878 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1879 BLOCK_INDEX.
1880
ae60f04e
PW
18812019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1882
1883 * NEWS: Mention changes to "info sources" command.
1884
28cd9371
PW
18852019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1886
1887 * symtab.c (filename_partial_match_opts): New struct type.
1888 (struct output_source_filename_data): New members
1889 regexp, c_regexp, partial_match.
1890 (output_source_filename): Use new members to decide to print file.
1891 (info_sources_option_defs): New variable.
1892 (make_info_sources_options_def_group, print_info_sources_header,
1893 info_sources_command_completer):
1894 New functions.
1895 (info_sources_command): Read new optional arguments.
1896 (_initialize_symtab): Update info sources help.
1897
ca683e3a
AO
18982019-08-02 Alexandre Oliva <oliva@adacore.com>
1899
1900 * ada-lang.c (exception_support_info_v0): Renamed from...
1901 (default_exception_support_info): ... this. Create new
1902 definition for v1.
1903 (ada_has_this_exception_support): Look up catch_handlers_sym.
1904 (ada_exception_support_info_sniffer): Try v0 after default.
1905
f1264162
TT
19062019-08-01 Tom Tromey <tromey@adacore.com>
1907
1908 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1909 gdbarch.h.
1910
0a7b2485
CB
19112019-08-01 Christian Biesinger <cbiesinger@google.com>
1912
1913 * s12z-tdep.c: Fix include path for s12z-opc.h.
1914
c6bdbeb7
AH
19152019-08-01 Alan Hayward <alan.hayward@arm.com>
1916
1917 * NEWS: Require GNU make 3.82.
1918
a2bd7b82
TT
19192019-07-16 Tom Tromey <tom@tromey.com>
1920
1921 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1922 declare.
1923
aa3b6533
TT
19242019-07-30 Tom Tromey <tromey@adacore.com>
1925
1926 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1927
a1530dc7
KB
19282019-07-30 Kevin Buettner <kevinb@redhat.com>
1929
1930 * printcmd.c (print_address_symbolic): Print negative offsets.
1931 (build_address_symbolic): Force signed arithmetic when computing
1932 offset.
1933
2906593f
CB
19342019-07-30 Christian Biesinger <cbiesinger@google.com>
1935
1936 PR/24474: Add a function to lookup static variables.
1937 * NEWS: Mention this new function.
1938 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1939 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1940 * python/python.c (python_GdbMethods): Add new function.
1941
c620ed88
CB
19422019-07-29 Christian Biesinger <cbiesinger@google.com>
1943
1944 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1945 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1946 (objfpy_lookup_static_symbol): New function.
1947 (objfile_object_methods): Add new functions.
1948
bc4268a5
PW
19492019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1950
1951 * NEWS: Mention 'set|show print frame-info'. Mention new
1952 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1953 backtrace argument. Mention that python frame filtering code
1954 is now consistent with what 'backtrace' command prints.
1955
4b5e8d19
PW
19562019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1957
1958 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1959 comments.
1960 (print_frame_info_auto, print_frame_info_source_line,
1961 print_frame_info_location, print_frame_info_source_and_location,
1962 print_frame_info_location_and_address, print_frame_info_short_location):
1963 New declarations.
1964 (struct frame_print_options): New member print_frame_info.
1965 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1966 * stack.h (get_user_print_what_frame_info): New declaration.
1967 (frame_show_address): New declaration.
1968 * stack.c (print_frame_arguments_choices): New value 'presence'.
1969 (print_frame_info_auto, print_frame_info_source_line,
1970 print_frame_info_location, print_frame_info_source_and_location,
1971 print_frame_info_location_and_address, print_frame_info_short_location,
1972 print_frame_info_choices, print_frame_info_print_what): New definitions.
1973 (print_frame_args): Only print dots for args if print frame-arguments
1974 is 'presence'.
1975 (frame_print_option_defs): New element for "frame-info".
1976 (get_user_print_what_frame_info): New function.
1977 (frame_show_address): Make non static. Move comment to stack.h.
1978 (print_frame_info_to_print_what): New function.
1979 (print_frame_info): Update comment. Use fp_opts.print_frame_info
1980 to decide what to print.
1981 (backtrace_command_1): Handle the new print_frame_arguments_presence
1982 value.
1983 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
1984 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
1985 (py_print_frame): In non-mi mode, use LOCATION as default for
1986 print_what, similarly to frame information printed directly by
1987 backtrace command. Handle frame-info user option in non MI mode.
1988
6bdfee81
KB
19892019-07-27 Kevin Buettner <kevinb@redhat.com>
1990
1991 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
1992 Add case for debugging 32-bit target on 64-bit host. Revise
1993 comment.
1994
98a617f8
KB
19952019-07-27 Kevin Buettner <kevinb@redhat.com>
1996
1997 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
1998 instead of find_function_entry_range_from_pc.
1999
567238c9
KB
20002019-07-27 Kevin Buettner <kevinb@redhat.com>
2001
2002 * stack.c (find_frame_funname): Remove code which preferred
2003 minsym over symtab sym in "certain pathological cases".
2004
2dc80cf8
KB
2005 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2006 parameter. Change type of "do_demangle" to bool.
2007 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2008 Pass suitable "prefer_sym_over_minsym" flag to
2009 build_address_symbolic(). Don't output "+" for negative offsets.
2010 * printcmd.c (print_address_symbolic): Update invocation of
2011 build_address_symbolic to include a "prefer_sym_over_minsym"
2012 flag.
2013 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2014 Restrict cases in which use of minimal symbol is preferred to that
2015 of a found symbol. Update comments.
2016
1aff7173
KB
2017 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2018 for entry pc when entry pc is out of range for that FDE.
2019
89b085ac
BC
20202019-07-26 Brian Callahan <bcallah@openbsd.org>
2021
2022 PR gdb/24839:
2023 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2024 type.
2025
f32feb4a
CB
20262019-07-25 Christian Biesinger <cbiesinger@google.com>
2027
2028 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2029 this function's Python signature.
2030
2031
20322019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
2033
2034 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2035 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2036 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2037 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2038 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2039
2040
c54e4253
YS
20412019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2042
2043 * h8300-tdep.c (h8300_register_name_common): New.
2044 h8300_register_name): Use h8300_register_name_common.
2045 (h8300s_register_name): Likewise.
2046 (h8300sx_register_name): Likewise.
2047 (h8300h_register_nam): New.
2048 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2049
2050
40eadf04
SP
20512019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2052
2053 * arm-tdep.c (arm_skip_cmse_entry): New function.
2054 (arm_is_sgstubs_section): New function.
2055 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2056
bfa2a36d
TT
20572019-07-22 Tom Tromey <tom@tromey.com>
2058
2059 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2060 Don't self-assign.
2061
a8e9d247
AB
20622019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2063
2064 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2065 type_print.
2066
eb86c5e2
AB
20672019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2068
2069 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2070 so that GDB doesn't match any msymbols when searching in the
2071 TYPES_DOMAIN.
2072 (print_symbol_info): Print using typedef_print or type_print based
2073 on the type of the symbol. Add updated FIXME comment moved from...
2074 (_initialize_symtab): ... move and update FIXME comment to above.
2075
a8eab7c6
AB
20762019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2077
2078 * NEWS: Mention adding -q option to "info types".
2079 * symtab.c (struct info_types_options): New struct.
2080 (info_types_options_defs): New variable.
2081 (make_info_types_options_def_group): New function.
2082 (info_types_command): Use gdb::option framework to parse options.
2083 (info_types_command_completer): New function.
2084 (_initialize_symtab): Extend the help text on "info types" and
2085 register command completer.
2086
b4603c34
CB
20872019-07-21 Christian Biesinger <cbiesinger@google.com>
2088
2089 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2090 (lookup_symbol_in_objfile): Change int to block_enum and add a
2091 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2092
c8cdc1e0
CB
20932019-07-20 Christian Biesinger <cbiesinger@google.com>
2094
2095 * MAINTAINERS (Write After Approval): Add self.
2096
01e175fe
AB
20972019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2098
2099 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2100 instruction to the dummy code region.
2101
56f79b63
TT
21022019-07-19 Tom Tromey <tromey@adacore.com>
2103
2104 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2105 (ARGSUSED, PARAMS, __func__): Remove rules.
2106
4c5aa8e0
AH
21072019-07-19 Alan Hayward <alan.hayward@arm.com>
2108
2109 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2110 * features/arm/arm-with-iwmmxt.c: Remove.
2111 * features/arm/arm-with-iwmmxt.xml: Remove.
2112 * features/arm/arm-with-m-fpa-layout.c: Remove.
2113 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2114 * features/arm/arm-with-m-vfp-d16.c: Remove.
2115 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2116 * features/arm/arm-with-m.c: Remove.
2117 * features/arm/arm-with-m.xml: Remove.
2118 * features/arm/arm-with-neon.c: Remove.
2119 * features/arm/arm-with-neon.xml: Remove.
2120 * features/arm/arm-with-vfpv2.c: Remove.
2121 * features/arm/arm-with-vfpv2.xml: Remove.
2122 * features/arm/arm-with-vfpv3.c: Remove.
2123 * features/arm/arm-with-vfpv3.xml: Remove.
2124
f42b2617
AH
21252019-07-19 Alan Hayward <alan.hayward@arm.com>
2126
2127 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2128
f29ec966
AH
21292019-07-19 Alan Hayward <alan.hayward@arm.com>
2130
2131 * arch/aarch32.c (aarch32_create_target_description): Create
2132 target descriptions using features.
2133 * arch/arm.c (arm_create_target_description)
2134 (arm_create_mprofile_target_description): Likewise.
2135 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2136
d105cce5
AH
21372019-07-19 Alan Hayward <alan.hayward@arm.com>
2138
2139 * Makefile.in: Add new files.
2140 * aarch32-tdep.c: New file.
2141 * aarch32-tdep.h: New file.
2142 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2143 Call aarch32_read_description.
2144 * arch/aarch32.c: New file.
2145 * arch/aarch32.h: New file.
2146 * arch/arm.c (arm_create_target_description)
2147 (arm_create_mprofile_target_description): New function.
2148 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2149 (arm_create_target_description)
2150 (arm_create_mprofile_target_description): New declaration.
2151 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2152 read_description functions.
2153 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2154 Likewise.
2155 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2156 * arm-tdep.c (tdesc_arm_list): New variable.
2157 (arm_register_g_packet_guesses): Call create description functions.
2158 (arm_read_description) (arm_read_mprofile_description): New
2159 function.
2160 * arm-tdep.h (arm_read_description)
2161 (arm_read_mprofile_description): Add declaration.
2162 * configure.tgt: Add new files.
2163
afe09f0b
GL
21642019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2165
2166 * top.c (new_ui_command): Open specified terminal just once.
2167
cd215b2e
TT
21682019-07-18 Tom Tromey <tromey@adacore.com>
2169
2170 * symtab.c (main_name): Constify return type.
2171 * symfile.c (set_initial_language): Update.
2172 * symtab.h (main_name): Constify return type.
2173
d8f68fcb
TT
21742019-07-17 Tom Tromey <tom@tromey.com>
2175
2176 * tui/tui-winsource.c (tui_update_source_window)
2177 (tui_update_source_window_as_is)
2178 (tui_update_source_windows_with_line): Remove return.
2179 * tui/tui-disasm.c (tui_show_disassem)
2180 (tui_show_disassem_and_update_source): Remove return.
2181 * tui/tui.c (tui_reset): Remove return.
2182 * tui/tui-wingeneral.c
2183 (tui_check_and_display_highlight_if_needed): Remove return.
2184
ca5af91e
TT
21852019-07-17 Tom Tromey <tom@tromey.com>
2186
2187 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2188
5104fe36
TT
21892019-07-17 Tom Tromey <tom@tromey.com>
2190
2191 * tui/tui-winsource.h (struct tui_exec_info_window)
2192 (struct tui_source_window_base): Move from tui-data.h.
2193 * tui/tui-winsource.c: Move many method definitions from
2194 elsewhere. Remove "structuring" comments.
2195 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2196 (tui_source_window_base::refresh_window): Move to
2197 tui-winsource.c.
2198 * tui/tui-win.c (tui_source_window_base::refresh_all)
2199 (tui_source_window_base::update_tab_width)
2200 (tui_source_window_base::set_new_height)
2201 (tui_source_window_base::do_make_visible_with_new_height): Move to
2202 tui-winsource.c.
2203 * tui/tui-source.h: Update.
2204 * tui/tui-source.c (tui_source_window_base::reset): Move to
2205 tui-winsource.c.
2206 * tui/tui-disasm.h: Update.
2207 * tui/tui-data.h (struct tui_exec_info_window): Move to
2208 tui-winsource.h.
2209 (struct tui_source_window_base): Likewise.
2210 * tui/tui-data.c (tui_source_window_base::clear_detail)
2211 (tui_source_window_base, ~tui_source_window_base): Move to
2212 tui-winsource.c.
2213
daa15dde
TT
22142019-07-17 Tom Tromey <tom@tromey.com>
2215
2216 * tui/tui-win.c (tui_resize_all)
2217 (tui_source_window_base::update_tab_width)
2218 (tui_adjust_win_heights): Update.
2219 (tui_win_info::make_invisible_and_set_new_height): Rename from
2220 make_invisible_and_set_new_height.
2221 * tui/tui-data.h (struct tui_win_info)
2222 <make_invisible_and_set_new_height>: New method.
2223
bfad4537
TT
22242019-07-17 Tom Tromey <tom@tromey.com>
2225
2226 * tui/tui.c: Update.
2227 * tui/tui-source.h (struct tui_source_window): Move from
2228 tui-data.h.
2229 * tui/tui-layout.c: Update.
2230 * tui/tui-disasm.c: Update.
2231 * tui/tui-data.h (struct tui_source_window): Move to
2232 tui-source.h.
2233
88f7e873
TT
22342019-07-17 Tom Tromey <tom@tromey.com>
2235
2236 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2237 tui-data.h.
2238 * tui/tui-data.h (struct tui_disasm_window): Move to
2239 tui-disasm.h.
2240
96bd6233
TT
22412019-07-17 Tom Tromey <tom@tromey.com>
2242
2243 * tui/tui-regs.h (struct tui_data_item_window): Move from
2244 tui-data.h.
2245 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2246 * tui/tui-data.h (struct tui_data_item_window): Move to
2247 tui-regs.h.
2248 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2249
ce38393b
TT
22502019-07-17 Tom Tromey <tom@tromey.com>
2251
2252 * tui/tui.c: Update.
2253 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2254 (tui_cmd_window::max_height): Move to tui-command.c.
2255 * tui/tui-layout.c: Update.
2256 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2257 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2258 tui-command.c.
2259 * tui/tui-command.h (struct tui_cmd_window): Move from
2260 tui-data.h.
2261 * tui/tui-command.c: Remove "structuring" comments.
2262 (tui_cmd_window::clear_detail)
2263 (tui_cmd_window::do_make_visible_with_new_height)
2264 (tui_cmd_window::max_height): Move from elsewhere.
2265
2d8b51cb
TT
22662019-07-17 Tom Tromey <tom@tromey.com>
2267
2268 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2269 Now static.
2270 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2271 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2272
18ab23af
TT
22732019-07-17 Tom Tromey <tom@tromey.com>
2274
2275 * tui/tui.c: Update.
2276 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2277 tui-regs.c.
2278 * tui/tui-windata.h: Remove file.
2279 * tui/tui-windata.c: Remove file.
2280 * tui/tui-win.c (tui_data_window::set_new_height)
2281 (tui_data_window::do_make_visible_with_new_height): Move to
2282 tui-regs.c.
2283 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2284 * tui/tui-regs.c: Remove "structuring" comments.
2285 (tui_data_window::first_data_item_displayed)
2286 (tui_data_window::delete_data_content_windows)
2287 (tui_data_window::erase_data_content)
2288 (tui_data_window::display_all_data)
2289 (tui_data_window::refresh_all)
2290 (tui_data_window::do_scroll_vertical)
2291 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2292 (tui_data_window::do_make_visible_with_new_height)
2293 (tui_data_window::refresh_window): Move from elsewhere.
2294 (_initialize_tui_regs): Move to end of file.
2295 * tui/tui-layout.c: Update.
2296 * tui/tui-hooks.c: Update.
2297 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2298 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2299 tui-regs.c.
2300 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2301
88b7e7cc
TT
23022019-07-17 Tom Tromey <tom@tromey.com>
2303
2304 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2305 seen.
2306
0fcd3711
TT
23072019-07-17 Tom Tromey <tom@tromey.com>
2308
2309 * tui/tui-win.c (tui_source_window_base::set_new_height)
2310 (tui_source_window_base::do_make_visible_with_new_height): Use
2311 m_has_locator field directly.
2312 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2313 method.
2314 (struct tui_source_window_base) <has_locator>: Likewise.
2315
4a38112d
TT
23162019-07-17 Tom Tromey <tom@tromey.com>
2317
2318 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2319 Don't declare.
2320 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2321 Remove.
2322 * tui/tui-win.c (tui_source_window_base::set_new_height)
2323 (tui_source_window_base::set_new_height)
2324 (make_invisible_and_set_new_height)
2325 (tui_source_window_base::do_make_visible_with_new_height)
2326 (tui_source_window_base::do_make_visible_with_new_height):
2327 Update.
2328 * tui/tui-layout.c (show_source_disasm_command, show_data)
2329 (show_source_or_disasm_and_command): Update.
2330 * tui/tui-layout.c (show_layout): Update.
2331
09129226
TT
23322019-07-17 Tom Tromey <tom@tromey.com>
2333
2334 * tui/tui-layout.c (make_data_window): Remove.
2335 (show_data): Unify creation and re-initialization cases.
2336
4a8a5e84
TT
23372019-07-17 Tom Tromey <tom@tromey.com>
2338
2339 * tui/tui-layout.c (make_source_window, make_disasm_window):
2340 Remove.
2341 (show_data): Unify creation and re-initialization cases.
2342
76d2be8e
TT
23432019-07-17 Tom Tromey <tom@tromey.com>
2344
2345 * tui/tui-layout.c (make_command_window): Remove.
2346 (show_source_disasm_command, show_source_or_disasm_and_command):
2347 Unify creation and re-initialization cases.
2348
890b8bde
TT
23492019-07-17 Tom Tromey <tom@tromey.com>
2350
2351 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2352 creation and re-initialization cases.
2353
2cdfa113
TT
23542019-07-17 Tom Tromey <tom@tromey.com>
2355
2356 * tui/tui-regs.c (tui_get_register): Return void.
2357
8e3cfd09
TT
23582019-07-17 Tom Tromey <tom@tromey.com>
2359
2360 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2361 Simplify.
2362
f4e04977
TT
23632019-07-17 Tom Tromey <tom@tromey.com>
2364
2365 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2366 resetting.
2367
0379b883
TT
23682019-07-17 Tom Tromey <tom@tromey.com>
2369
2370 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2371 * tui/tui-regs.c (tui_reg_layout): New function.
2372 (tui_show_registers, tui_reg_command): Use it.
2373 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2374 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2375 parameters.
2376 (tui_layout_command): Remove.
2377
b7fbad91
TT
23782019-07-17 Tom Tromey <tom@tromey.com>
2379
2380 * tui/tui-layout.h (tui/tui-layout): Return void.
2381 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2382
4e1e56b9
TT
23832019-07-17 Tom Tromey <tom@tromey.com>
2384
2385 * tui/tui-layout.c (show_source_disasm_command, show_data):
2386 Update.
2387 (reset_locator): Remove.
2388 (show_source_or_disasm_and_command): Update.
2389
1e0c09ba
TT
23902019-07-17 Tom Tromey <tom@tromey.com>
2391
2392 * tui/tui-source.c (tui_source_window_base::reset): Remove
2393 win_type parameter.
2394 * tui/tui-layout.c (make_command_window, make_source_window)
2395 (make_disasm_window, make_data_window)
2396 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2397 (reset_locator, show_source_or_disasm_and_command): Update.
2398 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2399 win_type parameter.
2400 (struct tui_source_window_base) <reset>: Likewise.
2401
1bf605de
TT
24022019-07-17 Tom Tromey <tom@tromey.com>
2403
2404 * tui/tui-layout.c (show_source_disasm_command): Use
2405 reset_locator.
2406 (reset_locator): New function.
2407 (init_and_make_win): Remove.
2408 (show_source_or_disasm_and_command): Use reset_locator.
2409
098f9ed4
TT
24102019-07-17 Tom Tromey <tom@tromey.com>
2411
2412 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2413 condition.
2414 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2415 Remove condition.
2416 * tui/tui-source.c (tui_source_window_base::reset): New method.
2417 * tui/tui-layout.c (make_command_window): Don't call
2418 init_and_make_win.
2419 (make_source_window, make_disasm_window): Don't call
2420 make_source_or_disasm_window.
2421 (make_data_window): Don't call init_and_make_win. Change calling
2422 convention.
2423 (show_source_disasm_command, show_data): Simplify.
2424 (make_source_or_disasm_window): Remove.
2425 (show_source_or_disasm_and_command): Simplify.
2426 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2427 (struct tui_source_window_base) <reset>: Likewise.
2428 <execution_info>: Remove initializer.
2429 * tui/tui-data.c (tui_source_window_base): Initialize
2430 execution_info.
2431
80110957
TT
24322019-07-17 Tom Tromey <tom@tromey.com>
2433
2434 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2435 variable.
2436
cf82af05
TT
24372019-07-17 Tom Tromey <tom@tromey.com>
2438
2439 * tui/tui.c (tui_rl_other_window): Update.
2440 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2441 superclass method first. Always iterate over regs_content.
2442 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2443 method.
2444 * tui/tui-win.c (tui_set_focus_command): Update.
2445
01aeb396
TT
24462019-07-17 Tom Tromey <tom@tromey.com>
2447
2448 * tui/tui-win.c (tui_set_focus_command): Rename from
2449 tui_set_focus. Call tui_enable.
2450 (tui_set_focus_command): Remove.
2451
fd6c75ee
TT
24522019-07-17 Tom Tromey <tom@tromey.com>
2453
2454 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2455 refresh_window.
2456 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2457 touchwin.
2458 (tui_data_window::refresh_window): Call refresh_window on data
2459 items. Always call superclass refresh_window.
2460 (tui_win_info::refresh): Remove.
2461 (tui_source_window_base::refresh_window): Update.
2462 (tui_refresh_all): Update.
2463 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2464 refresh_window.
2465 (show_source_or_disasm_and_command): Likewise.
2466 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2467 (struct tui_source_window_base) <refresh>: Likewise.
2468
f6cc34a9
TT
24692019-07-17 Tom Tromey <tom@tromey.com>
2470
2471 * tui/tui-winsource.c (tui_clear_source_content)
2472 (tui_show_source_content): Update.
2473 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2474 whether content is empty.
2475 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2476 Remove.
2477
f31ec9af
TT
24782019-07-17 Tom Tromey <tom@tromey.com>
2479
2480 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2481 window's contents.
2482 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2483 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2484
d1b6f1e5
TT
24852019-07-17 Tom Tromey <tom@tromey.com>
2486
2487 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2488 (struct tui_data_item_window): Update.
2489
d9743a13
TT
24902019-07-17 Tom Tromey <tom@tromey.com>
2491
2492 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2493 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2494 defines.
2495
caf0bc4e
TT
24962019-07-17 Tom Tromey <tom@tromey.com>
2497
2498 * tui/tui-winsource.h (tui_erase_source_content)
2499 (tui_clear_source_content): Remove "display_prompt" parameter.
2500 * tui/tui-winsource.c (tui_update_source_window_as_is)
2501 (tui_update_source_windows_with_addr): Update.
2502 (tui_clear_source_content): Remove "display_prompt" parameter.
2503 (tui_erase_source_content): Likewise. Simplify.
2504 (tui_show_source_content): Update.
2505 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2506 * tui/tui-stack.c (tui_show_frame_info): Update.
2507 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2508 Remove defines.
2509
9d391078
TT
25102019-07-17 Tom Tromey <tom@tromey.com>
2511
2512 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2513 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2514 parameter.
2515 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2516 parameter.
2517
a38da35d
TT
25182019-07-17 Tom Tromey <tom@tromey.com>
2519
2520 * tui/tui-winsource.c (tui_clear_source_content)
2521 (tui_show_source_content, tui_show_exec_info_content)
2522 (tui_clear_exec_info_content): Update.
2523 * tui/tui-stack.c (tui_show_locator_content): Update.
2524 (tui_show_frame_info): Update.
2525 * tui/tui-source.h (tui_source_window): Don't declare.
2526 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2527 from tui_source_is_displayed.
2528 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2529 Remove field.
2530 (struct tui_source_window_base) <content_in_use>: New field. Now
2531 bool.
2532 (struct tui_source_window) <showing_source_p>: New method.
2533 (TUI_SRC_WIN): Change cast.
2534 * tui/tui-data.c (tui_initialize_static_data): Update.
2535
c2cd8994
TT
25362019-07-17 Tom Tromey <tom@tromey.com>
2537
2538 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2539 location_matches_p.
2540 * tui/tui-source.c (tui_source_window::location_matches_p): New
2541 method.
2542 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2543 method.
2544 * tui/tui-data.h (struct tui_source_window_base)
2545 <location_matches_p>: New method.
2546 (struct tui_source_window, struct tui_disasm_window)
2547 <location_matches_p>: Likewise.
2548
4dde7b34
TT
25492019-07-17 Tom Tromey <tom@tromey.com>
2550
2551 * tui/tui-win.c (tui_set_win_height_command): Rename from
2552 tui_set_win_height.
2553 (tui_set_win_height_command): Remove.
2554
b73dd877
TT
25552019-07-17 Tom Tromey <tom@tromey.com>
2556
2557 * tui/tui-source.c (tui_source_window): New constructor. Add
2558 observer.
2559 (~tui_source_window): New destructor.
2560 (tui_source_window::style_changed): New method.
2561 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2562 (tui_attach_detach_observers): Update.
2563 * tui/tui-data.h (struct tui_source_window): Make constructor not
2564 inline. Add destructor.
2565 (struct tui_source_window) <style_changed>: New method.
2566 <m_observable>: New member.
2567
ae2b5380
TT
25682019-07-17 Tom Tromey <tom@tromey.com>
2569
2570 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2571 * tui/tui-win.c (tui_resize_all): Fix typo.
2572
1ce3e844
TT
25732019-07-17 Tom Tromey <tom@tromey.com>
2574
2575 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2576 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2577 (tui_refresh_all): Remove "list" parameter. Use foreach.
2578 * tui/tui-win.c (window_name_completer): Use foreach.
2579 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2580 (update_tab_width): Likewise.
2581 * tui/tui-layout.c (show_layout): Update.
2582 * tui/tui-data.h (class tui_window_iterator): New.
2583 (struct all_tui_windows): New.
2584 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2585
fe3eaf1c
TT
25862019-07-17 Tom Tromey <tom@tromey.com>
2587
2588 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2589 parameter. Don't reference globals.
2590 (tui_reg_command): Update.
2591
368c1354
TT
25922019-07-17 Tom Tromey <tom@tromey.com>
2593
2594 * tui/tui-regs.c (tui_show_registers): Simplify.
2595
e80cd204
TT
25962019-07-17 Tom Tromey <tom@tromey.com>
2597
2598 * tui/tui-regs.c (tui_show_registers): Update.
2599 (tui_show_register_group): Add win_info parameter.
2600
aca2dd16
TT
26012019-07-17 Tom Tromey <tom@tromey.com>
2602
2603 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2604 Rename from tui_display_reg_element_at_line.
2605 (tui_data_window::display_registers_from_line): Update.
2606 * tui/tui-data.h (struct tui_data_window)
2607 <display_reg_element_at_line>: New method.
2608
517e9505
TT
26092019-07-17 Tom Tromey <tom@tromey.com>
2610
2611 * tui/tui-regs.h (tui_display_registers_from)
2612 (tui_display_registers_from_line): Don't declare.
2613 * tui/tui-windata.c (tui_data_window::display_all_data)
2614 (tui_data_window::refresh_all)
2615 (tui_data_window::do_scroll_vertical): Update.
2616 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2617 from tui_display_registers_from.
2618 (tui_display_reg_element_at_line): Update.
2619 (tui_data_window::display_registers_from_line): Rename from
2620 tui_display_registers_from_line.
2621 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2622 display_registers_from_line>: New methods.
2623
f76d8b19
TT
26242019-07-17 Tom Tromey <tom@tromey.com>
2625
2626 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2627 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2628 from tui_erase_data_content.
2629 (tui_data_window::display_all_data)
2630 (tui_data_window::refresh_all)
2631 (tui_data_window::do_scroll_vertical): Update.
2632 * tui/tui-regs.c (tui_show_registers): Update.
2633 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2634 New method.
2635
b4094625
TT
26362019-07-17 Tom Tromey <tom@tromey.com>
2637
2638 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2639 declare.
2640 * tui/tui-windata.c
2641 (tui_data_window::delete_data_content_windows): Rename from
2642 tui_delete_data_content_windows.
2643 (tui_data_window::display_all_data)
2644 (tui_data_window::do_scroll_vertical): Update.
2645 * tui/tui-data.h (struct tui_data_window)
2646 <delete_data_content_windows>: New method.
2647
c223a729
TT
26482019-07-17 Tom Tromey <tom@tromey.com>
2649
2650 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2651 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2652
50daf268
TT
26532019-07-17 Tom Tromey <tom@tromey.com>
2654
2655 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2656 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2657 from tui_display_all_data.
2658 * tui/tui-win.c
2659 (tui_data_window::do_make_visible_with_new_height): Update.
2660 * tui/tui-regs.c (tui_show_registers): Update.
2661 * tui/tui-layout.c (tui_set_layout): Update.
2662 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2663 method.
2664
df5f8cab
TT
26652019-07-17 Tom Tromey <tom@tromey.com>
2666
2667 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2668 * tui/tui-windata.c (tui_display_data_from): Remove.
2669 (tui_data_window::refresh_all): Update.
2670
80cb6c27
TT
26712019-07-17 Tom Tromey <tom@tromey.com>
2672
2673 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2674 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2675 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2676 tui_display_registers_from_line.
2677 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2678 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2679 "force_display" parameter.
2680
baff0c28
TT
26812019-07-17 Tom Tromey <tom@tromey.com>
2682
2683 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2684 declare.
2685 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2686 Rename from tui_first_reg_element_no_inline.
2687 (tui_display_reg_element_at_line)
2688 (tui_display_registers_from_line): Update.
2689 * tui/tui-data.h (struct tui_data_window)
2690 <first_reg_element_no_inline>: New method.
2691
3b23c5f2
TT
26922019-07-17 Tom Tromey <tom@tromey.com>
2693
2694 * tui/tui-windata.c (tui_display_data_from)
2695 (tui_data_window::do_scroll_vertical): Update.
2696 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2697 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2698 Rename from tui_line_from_reg_element_no.
2699 (tui_display_registers_from_line): Update.
2700 * tui/tui-data.h (struct tui_data_window)
2701 <line_from_reg_element_no>: New method.
2702
0b5ec218
TT
27032019-07-17 Tom Tromey <tom@tromey.com>
2704
2705 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2706 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2707 tui_last_regs_line_no.
2708 (tui_display_reg_element_at_line)
2709 (tui_display_registers_from_line): Update.
2710 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2711 method.
2712
0807ab7b
TT
27132019-07-17 Tom Tromey <tom@tromey.com>
2714
2715 PR tui/24722:
2716 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2717 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2718 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2719 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2720 (tui_update_breakpoint_info): Likewise.
2721 * tui/tui-hooks.c (tui_event_create_breakpoint)
2722 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2723 Update.
2724
9ad7fdef
TT
27252019-07-17 Tom Tromey <tom@tromey.com>
2726
2727 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2728
5813316f
TT
27292019-07-17 Tom Tromey <tom@tromey.com>
2730
2731 * tui/tui-winsource.c (tui_update_source_window_as_is)
2732 (tui_update_source_windows_with_addr): Update.
2733 * tui/tui-source.h (tui_set_source_content)
2734 (tui_show_symtab_source): Add "win_info" parameter.
2735 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2736 parameter.
2737 (tui_show_symtab_source): Likewise.
2738
00e264e7
TT
27392019-07-17 Tom Tromey <tom@tromey.com>
2740
2741 * tui/tui-wingeneral.c
2742 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2743
06210ce4
TT
27442019-07-17 Tom Tromey <tom@tromey.com>
2745
2746 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2747 (struct tui_cmd_window) <can_scroll>: New method.
2748 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2749 method.
2750
381befee
TT
27512019-07-17 Tom Tromey <tromey@adacore.com>
2752
2753 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2754 do_field_signed>: Rename. Change type of "value".
2755 * ui-out.c (ui_out::field_signed): Rename from field_int.
2756 Change type of "value".
2757 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2758 type of "value".
2759 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2760 do_field_int. Change type of "value".
2761 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2762 do_field_int. Change type of "value".
2763 * tracepoint.c (trace_status_mi, tfind_1)
2764 (print_one_static_tracepoint_marker): Update.
2765 * thread.c (print_thread_info_1, print_selected_thread_frame):
2766 Update.
2767 * stack.c (print_frame, print_frame_info): Update.
2768 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2769 Update.
2770 * source.c (print_source_lines_base): Update.
2771 * skip.c (info_skip_command): Update.
2772 * record-btrace.c (btrace_ui_out_decode_error)
2773 (btrace_call_history_src_line): Update.
2774 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2775 Update.
2776 * progspace.c (print_program_space): Update.
2777 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2778 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2779 do_field_int. Change type of "value".
2780 * mi/mi-out.c (mi_ui_out::do_table_begin)
2781 (mi_ui_out::do_table_header): Update.
2782 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2783 type of "value".
2784 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2785 (mi_cmd_data_list_changed_registers, output_register)
2786 (mi_cmd_data_read_memory, mi_load_progress)
2787 (mi_cmd_trace_frame_collected): Update.
2788 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2789 Update.
2790 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2791 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2792 (mi_cmd_var_list_children, varobj_update_one): Update.
2793 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2794 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2795 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2796 * inferior.c (print_inferior): Update.
2797 * gdb_bfd.c (print_one_bfd): Update.
2798 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2799 Update.
2800 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2801 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2802 do_field_int. Change type of "value".
2803 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2804 do_field_int. Change type of "value".
2805 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2806 (print_one_breakpoint_location, print_it_catch_fork)
2807 (print_one_catch_fork, print_it_catch_vfork)
2808 (print_one_catch_vfork, print_it_catch_solib)
2809 (print_it_catch_exec, print_it_ranged_breakpoint)
2810 (print_mention_watchpoint, print_mention_masked_watchpoint)
2811 (bkpt_print_it, update_static_tracepoint): Update.
2812 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2813 * break-catch-syscall.c (print_it_catch_syscall): Update.
2814 * ada-tasks.c (print_ada_task_info): Update.
2815 * ada-lang.c (print_it_exception, print_mention_exception):
2816 Update.
2817
6b78c3f8
AB
28182019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2819
2820 PR breakpoints/24541
2821 * gdbarch.c: Regenerate.
2822 * gdbarch.h: Regenerate.
2823 * gdbarch.sh: Adjust return type and parameter types for
2824 'stap_adjust_register'.
2825 (i386_stap_adjust_register): Adjust signature and return new
2826 register name.
2827 * stap-probe.c (stap_parse_register_operand): Adjust use of
2828 'gdbarch_stap_adjust_register'.
2829
d72a9b85
TT
28302019-07-17 Tom Tromey <tromey@adacore.com>
2831
2832 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2833 declare VEC.
2834 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2835 std::vector.
2836 (struct s390_process_info): Add initializers.
2837 (s390_add_process): Use new.
2838 (s390_linux_nat_target::low_forget_process): Use delete.
2839 (s390_linux_nat_target::low_new_fork)
2840 (s390_linux_nat_target::stopped_by_watchpoint)
2841 (s390_linux_nat_target::low_prepare_to_resume)
2842 (s390_linux_nat_target::insert_watchpoint)
2843 (s390_linux_nat_target::insert_hw_breakpoint)
2844 (s390_linux_nat_target::remove_watchpoint)
2845 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2846
206e6c58
JB
28472019-07-16 John Baldwin <jhb@FreeBSD.org>
2848
2849 * aarch64-fbsd-nat.c: Include regcache.h.
2850 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2851 argument.
2852 (aarch64_fbsd_nat_target::fetch_registers)
2853 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2854 variable.
2855 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2856
cbde90f2
JB
28572019-07-16 John Baldwin <jhb@FreeBSD.org>
2858
2859 * fbsd-nat.c: Include gdbarch.h.
2860
07128006
TT
28612019-07-15 Tom Tromey <tromey@adacore.com>
2862
2863 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2864
1f77b012
TT
28652019-07-15 Tom Tromey <tromey@adacore.com>
2866
2867 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2868 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2869 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2870 * cli-out.c (cli_ui_out::do_field_int): New method.
2871 * ui-out.c (ui_out::field_unsigned): New method.
2872 * symfile.c (generic_load): Use field_unsigned.
2873 (print_transfer_performance): Likewise.
2874 * record-btrace.c (ui_out_field_uint): Remove.
2875 (btrace_call_history_insn_range, btrace_call_history): Use
2876 field_unsigned.
2877 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2878 field_unsigned.
2879 * ui-out.h (class ui_out) <field_unsigned>: New method.
2880 <do_field_unsigned>: Likewise.
2881
33eca680
TT
28822019-07-15 Tom Tromey <tromey@adacore.com>
2883
2884 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2885 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2886 * target.c (flash_erase_command): Use field_string.
2887 * infrun.c (print_signal_received_reason): Use field_string.
2888 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2889 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2890 field_string.
2891 * ada-tasks.c (print_ada_task_info): Use field_string.
2892
ca8d69be
TT
28932019-07-15 Tom Tromey <tromey@adacore.com>
2894
2895 * target.c (flash_erase_command): Use field_core_addr.
2896 * symfile.c (generic_load): Use field_core_addr.
2897 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2898 Use field_core_addr.
2899 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2900 field_core_addr.
2901
0d4e84ed
AB
29022019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2903
2904 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2905 value if its desired type is smaller than a CORE_ADDR and signed.
2906
9a49df9d
AB
29072019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2908
2909 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2910 of changes to field names, and use new is_reference field to
2911 decide if a property is a reference or not.
2912 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2913 field.
2914 (struct dwarf2_property_baton): Update header comment, rename
2915 'referenced_type' to 'property_type' and update comments.
2916 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2917 default property type, store in property baton, update to take
2918 accound of renamed field.
2919 (read_func_scope): Update call to attr_to_dynamic_prop.
2920 (read_array_type): Likewise.
2921 (dwarf2_per_cu_addr_sized_int_type): New function.
2922 (read_subrange_index_type): Move type finding code to
2923 dwarf2_per_cu_addr_sized_int_type.
2924 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2925 (dwarf2_per_cu_addr_type): New function.
2926 (set_die_type): Update calls to attr_to_dynamic_prop.
2927
b86352cf
AB
29282019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2929
2930 * dwarf2read.c (read_subrange_index_type): New function.
2931 (read_subrange_type): Move code into new function and call it.
2932 * gdbtypes.c (create_range_type): Add some asserts.
2933
603490bf
AB
29342019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2935
2936 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2937 update return statements.
2938 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2939 declaration, and update comment to match.
2940 * gdbtypes.c (resolve_dynamic_array): Update call to
2941 dwarf2_evaluate_property to match new return type.
2942
592f9d27
AB
29432019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2944
2945 * valarith.c (value_subscripted_rvalue): Change lowerbound
2946 parameter type from int to LONGEST.
2947 * value.h (value_subscripted_rvalue): Likewise in declaration.
2948
60cfcb20
AB
29492019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2950
2951 * cli/cli-utils.c (info_print_command_completer): New function.
2952 * cli/cli-utils.h: Add 'completer.h' include, and forward
2953 declaration for 'struct cmd_list_element'.
2954 (info_print_command_completer): Declare.
2955 * stack.c (_initialize_stack): Add completer for 'info locals' and
2956 'info args'.
2957 * symtab.c (_initialize_symtab): Add completer for 'info
2958 variables' and 'info functions'.
2959 * NEWS: Mention completion for additional info commands.
2960
b16507e0
AB
29612019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2962
2963 * cli/cli-utils.c (extract_info_print_args): Delete.
2964 (extract_arg_maybe_quoted): Delete.
2965 (info_print_options_defs): New variable.
2966 (make_info_print_options_def_group): New function.
2967 (extract_info_print_options): Define new function.
2968 * cli/cli-utils.h (extract_info_print_args): Delete.
2969 (struct info_print_options): New structure.
2970 (extract_info_print_options): Declare new function.
2971 * stack.c (info_locals_command): Update to use new
2972 extract_info_print_options, also add a header comment.
2973 (info_args_command): Likewise.
2974 * symtab.c (info_variables_command): Likewise.
2975 (info_functions_command): Likewise.
2976
021d8588
AB
29772019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2978
2979 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
2980 to extract string arguments.
2981 * common/common-utils.c (extract_string_maybe_quoted): New function.
2982 * common/common-utils.h (extract_string_maybe_quoted): Declare.
2983
b777eb6d
TT
29842019-07-11 Tom Tromey <tromey@adacore.com>
2985
2986 * main.c (get_init_files): Use GDBINIT, not gdbinit.
2987 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
2988 * top.h (gdbinit): Don't declare.
2989 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
2990 into...
2991 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
2992 * top.c (gdb_init): Don't call init_cli_cmds.
2993 (gdbinit): Remove.
2994 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
2995
72ee03ff
TT
29962019-07-11 Tom Tromey <tromey@adacore.com>
2997
2998 * python/py-inferior.c (add_thread_object): Don't use thread_obj
2999 after it has been moved.
3000
00db9531
SM
30012019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3002
3003 * valops.c (value_must_coerce_to_target): Change return type to
3004 bool.
3005 * value.h (value_must_coerce_to_target): Likewise.
3006
f2478a7e
SM
30072019-07-10 Simon Marchi <simon.marchi@efficios.com>
3008
3009 * breakpoint.c (is_hardware_watchpoint): Remove
3010 forward-declaration.
3011 (is_masked_watchpoint): Change return type to bool.
3012 (is_tracepoint): Likewise.
3013 (is_breakpoint): Likewise.
3014 (is_hardware_watchpoint): Likewise.
3015 (is_watchpoint): Likewise.
3016 (is_no_memory_software_watchpoint): Likewise.
3017 (is_catchpoint): Likewise.
3018 (breakpoint_1): Make FILTER parameter's return type bool.
3019 is_masked_watchpoint): Change return type to bool.
3020 (save_breakpoints): Make FILTER parameter's return type bool.
3021 * breakpoint.h (is_breakpoint): Change return type to bool.
3022 (is_watchpoint): Likewise.
3023 (is_catchpoint): Likewise.
3024 (is_tracepoint): Likewise.
3025
0d12e84c
TT
30262019-07-10 Tom Tromey <tom@tromey.com>
3027
3028 * defs.h: Don't include gdbarch.h.
3029 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3030 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3031 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3032 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3033 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3034 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3035 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3036 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3037 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3038 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3039 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3040 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3041 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3042 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3043 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3044 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3045 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3046 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3047 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3048 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3049 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3050 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3051 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3052 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3053 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3054 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3055 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3056
f06f1252
TT
30572019-07-10 Tom Tromey <tromey@adacore.com>
3058
3059 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3060 * breakpoint.c (init_ada_exception_breakpoint): Register as
3061 bp_catchpoint.
3062 (print_one_breakpoint_location, print_one_breakpoint): Use
3063 is_ada_exception_catchpoint.
3064 * ada-lang.c (class ada_catchpoint_location): Pass
3065 bp_loc_software_breakpoint to bp_location constructor.
3066 (is_ada_exception_catchpoint): New function.
3067
7a5d944b
TT
30682019-07-10 Tom Tromey <tromey@adacore.com>
3069
3070 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3071 VEC.
3072 (struct arm_exidx_entry): New method operator<.
3073 (struct arm_exidx_data) <section_maps>: Change type.
3074 (arm_exidx_data_free): Remove.
3075 (arm_exidx_data_key): Change type. Move lower.
3076 (arm_exidx_new_objfile): Update.
3077 (arm_compare_exidx_entries): Remove.
3078 (arm_find_exidx_entry, _initialize_arm_tdep)
3079
48c66e1d
TT
30802019-07-10 Tom Tromey <tromey@adacore.com>
3081
3082 * solib-spu.c (ocl_program_data_key): Change type.
3083 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3084 Update.
3085
a269fbf1
TT
30862019-07-10 Tom Tromey <tromey@adacore.com>
3087
3088 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3089 (struct solib_aix_inferior_data) <library_list>: Change type.
3090 (solib_aix_inferior_data_handle): Change type.
3091 (get_solib_aix_inferior_data): Update.
3092 (solib_aix_free_library_list): Remove.
3093 (library_list_start_library): Update.
3094 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3095 return type.
3096 (solib_aix_get_library_list)
3097 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3098 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3099
c294730c
TT
31002019-07-10 Tom Tromey <tromey@adacore.com>
3101
3102 * solib-dsbt.c (struct dsbt_info): Add initializers.
3103 (solib_dsbt_pspace_data): Change type.
3104 (dsbt_pspace_data_cleanup): Remove.
3105 (get_dsbt_info, _initialize_dsbt_solib): Update.
3106
9d52077d
TT
31072019-07-10 Tom Tromey <tromey@adacore.com>
3108
3109 * spu-tdep.c (spu_overlay_data): Change type.
3110 (spu_get_overlay_table, spu_overlay_new_objfile)
3111 (_initialize_spu_tdep): Update.
3112
22a20dca
TT
31132019-07-10 Tom Tromey <tromey@adacore.com>
3114
3115 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3116 destructor.
3117 (dbx_objfile_data_key): Change type and declare later.
3118 (DBX_SYMFILE_INFO): Rewrite.
3119 * dbxread.c (dbx_objfile_data_key): Change type.
3120 (dbx_symfile_init): Update.
3121 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3122 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3123 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3124
cb60f420
TT
31252019-07-10 Tom Tromey <tromey@adacore.com>
3126
3127 * jit.c (jit_program_space_key): Change type. Move lower.
3128 (get_jit_program_space_data): Update.
3129 (jit_program_space_data_cleanup): Remove.
3130 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3131 Update.
3132 (struct jit_program_space_data): Add initializers.
3133
51df2ae3
TT
31342019-07-10 Tom Tromey <tromey@adacore.com>
3135
3136 * solib-darwin.c (struct darwin_info): Add initializers.
3137 (solib_darwin_pspace_data): Change type.
3138 (darwin_pspace_data_cleanup): Remove.
3139 (get_darwin_info, _initialize_darwin_solib): Update.
3140
18101a35
TT
31412019-07-10 Tom Tromey <tromey@adacore.com>
3142
3143 * remote-sim.c (struct sim_inferior_data): Add initializers,
3144 constructor, and destructor.
3145 (sim_inferior_data_key): Change type. Move lower.
3146 (check_for_duplicate_sim_descriptor): Update.
3147 (get_sim_inferior_data): Use new. Update.
3148 (~sim_inferior_data_cleanup): Rename from
3149 sim_inferior_data_cleanup. Simplify.
3150 (gdbsim_close_inferior, simulator_command)
3151 (sim_command_completer, _initialize_remote_sim): Update.
3152 (next_pid, INITIAL_PID): Move earlier.
3153
05b08ac1
TT
31542019-07-10 Tom Tromey <tromey@adacore.com>
3155
3156 * python/python-internal.h (create_thread_object): Return
3157 gdbpy_ref.
3158 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3159 * python/py-inferior.c (struct threadlist_entry): Add
3160 constructor.
3161 <thread_obj>: Now a gdbpy_ref.
3162 (thread_to_thread_object): Update.
3163 (add_thread_object): Use new.
3164 (delete_thread_object): Use delete.
3165 (infpy_threads): Update.
3166 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3167 GIL.
3168
32372d80
TT
31692019-07-10 Tom Tromey <tromey@adacore.com>
3170
3171 * valops.c (value_cast): Specialize error message for Ada.
3172
5c458ae8
SM
31732019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3174
3175 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3176
4c462cb0
SM
31772019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3178
3179 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3180 bpstat_should_step): Return bool, adjust comments.
3181 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3182 bpstat_should_step): Likewise.
3183
89abbcc2
AH
31842019-07-10 Alan Hayward <alan.hayward@arm.com>
3185
3186 * features/Makefile: Use feature target descriptions for Arm.
3187 * features/arm/arm-core.c: Generate new file.
3188 * features/arm/arm-fpa.c: Likewise.
3189 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3190 * features/arm/arm-m-profile.c: Likewise.
3191 * features/arm/arm-vfpv2.c: Likewise.
3192 * features/arm/arm-vfpv3.c: Likewise.
3193 * features/arm/xscale-iwmmxt.c: Likewise.
3194 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3195
166a82be
AH
31962019-07-10 Alan Hayward <alan.hayward@arm.com>
3197
3198 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3199 ptrace earlier.
3200
9fb4c7e9
AH
32012019-07-10 Alan Hayward <alan.hayward@arm.com>
3202
3203 * features/aarch64-pauth.c: Regenerate.
3204
e2d0f980
SM
32052019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3206
3207 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3208 bool.
3209 (bpstat_what): Use false instead of 0.
3210
a38118e5
PA
32112019-07-09 Pedro Alves <palves@redhat.com>
3212
3213 * break-catch-throw.c (is_exception_catchpoint): New.
3214 * breakpoint.c (print_one_breakpoint_location): New parameter
3215 'raw_loc'. Handle it. Use
3216 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3217 looking at the breakpoint's type.
3218 (print_one_breakpoint): If handling "maint info breakpoints", also
3219 print locations of exception catchpoints.
3220 * breakpoint.h (is_exception_catchpoint): Declare.
3221
cb1e4e32
PA
32222019-07-09 Pedro Alves <palves@redhat.com>
3223
3224 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3225 "addr" field.
3226 (allocate_location_exception_catchpoint): New.
3227 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3228 (initialize_throw_catchpoint_ops): Install
3229 allocate_location_exception_catchpoint as allocate_location
3230 method.
3231 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3232 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3233 bp_loc_other.
3234 (breakpoint_address_is_meaningful): Delete.
3235 (bl_address_is_meaningful): New.
3236 (breakpoint_locations_match): Adjust comment.
3237 (bp_location_from_bp_type): New, factored out of...
3238 (bp_location::bp_location(breakpoint *)): ... this.
3239 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3240 factored out of...
3241 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3242 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3243 breakpoint_address_is_meaningful.
3244 (bp_locations_compare): Adjust comment.
3245 (update_global_location_list): Use bl_address_is_meaningful
3246 instead of breakpoint_address_is_meaningful.
3247 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3248 explicit.
3249 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3250 * python/py-breakpoint.c (bppy_get_location): No longer check
3251 whether location is null.
3252
b58a68fe
PA
32532019-07-09 Pedro Alves <palves@redhat.com>
3254
3255 PR c++/15468
3256 * breakpoint.c (print_one_breakpoint_location): Remove
3257 single-location assert.
3258
268a13a5
TT
32592019-07-09 Tom Tromey <tom@tromey.com>
3260
3261 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3262 * configure: Rebuild.
3263 * configure.ac: Change common to gdbsupport.
3264 * gdbsupport: Rename from common.
3265 * acinclude.m4: Change common to gdbsupport.
3266 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3267 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3268 gdbsupport.
3269 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3270 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3271 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3272 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3273 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3274 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3275 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3276 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3277 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3278 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3279 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3280 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3281 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3282 coff-pe-read.c, command.h, compile/compile-c-support.c,
3283 compile/compile-c.h, compile/compile-cplus-symbols.c,
3284 compile/compile-cplus-types.c, compile/compile-cplus.h,
3285 compile/compile-loc2c.c, compile/compile.c, completer.c,
3286 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3287 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3288 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3289 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3290 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3291 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3292 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3293 features/aarch64-core.c, features/aarch64-fpu.c,
3294 features/aarch64-pauth.c, features/aarch64-sve.c,
3295 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3296 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3297 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3298 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3299 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3300 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3301 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3302 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3303 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3304 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3305 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3306 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3307 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3308 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3309 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3310 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3311 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3312 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3313 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3314 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3315 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3316 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3317 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3318 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3319 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3320 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3321 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3322 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3323 minsyms.c, mips-linux-tdep.c, namespace.h,
3324 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3325 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3326 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3327 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3328 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3329 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3330 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3331 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3332 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3333 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3334 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3335 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3336 procfs.c, producer.c, progspace.h, psymtab.h,
3337 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3338 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3339 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3340 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3341 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3342 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3343 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3344 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3345 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3346 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3347 target-memory.c, target.c, target.h, target/waitstatus.c,
3348 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3349 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3350 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3351 unittests/array-view-selftests.c,
3352 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3353 unittests/common-utils-selftests.c,
3354 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3355 unittests/format_pieces-selftests.c,
3356 unittests/function-view-selftests.c,
3357 unittests/lookup_name_info-selftests.c,
3358 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3359 unittests/mkdir-recursive-selftests.c,
3360 unittests/observable-selftests.c,
3361 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3362 unittests/parse-connection-spec-selftests.c,
3363 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3364 unittests/scoped_fd-selftests.c,
3365 unittests/scoped_mmap-selftests.c,
3366 unittests/scoped_restore-selftests.c,
3367 unittests/string_view-selftests.c, unittests/style-selftests.c,
3368 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3369 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3370 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3371 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3372 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3373 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3374
5b0e2db4
AB
33752019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3376
3377 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3378 bool value.
3379 (decode_digits_ordinary): Set explicit_line field in sal.
3380 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3381 symtab_and_line that was set on an explicit line number in
3382 assembler code. Do always update the recorded symtab and line if
3383 we do skip the prologue.
3384
0ba852ab
AB
33852019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3386
3387 * breakpoint.c (set_breakpoint_location_function): Remove
3388 explicit_loc parameter.
3389 (momentary_breakpoint_from_master): Update call to
3390 set_breakpoint_location_function.
3391 (add_location_to_breakpoint): Likewise.
3392
b3a7d171
AB
33932019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3394
3395 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3396 required features based on default bfd type when no specific bfd
3397 is present.
3398
1f6f6e21
PW
33992019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3400
3401 * NEWS: Mention that GDB printf and eval commands can now print
3402 C-style and Ada-style convenience var strings without
3403 calling the inferior.
3404 * printcmd.c (printf_c_string): Locally print GDB internal var
3405 instead of transiting via the inferior.
3406 (printf_wide_c_string): Likewise.
3407
34082019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
3409
3410 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3411
0598af48
TT
34122019-07-04 Tom Tromey <tom@tromey.com>
3413
3414 PR tui/24724:
3415 * tui/tui-winsource.c (tui_clear_source_content): Update.
3416 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3417 (tui_update_breakpoint_info): Update.
3418 (tui_set_exec_info_content): Update.
3419 * tui/tui-source.c (tui_set_source_content_nil): Update.
3420 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3421 has_break.
3422 * tui/tui-data.h (enum tui_bp_flag): New.
3423 (tui_bp_flags): New enum flags type.
3424 (struct tui_source_element) <break_mode>: Change type. Rename
3425 from has_break.
3426 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3427 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3428 constants.
3429 * tui/tui-winsource.h: Fix comment.
3430
350fab54
AH
34312019-07-04 Alan Hayward <alan.hayward@arm.com>
3432
3433 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3434 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3435 (store_fpregs_to_thread)
3436 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3437 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3438 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3439 (IWMMXT_REGS_SIZE): Add define.
3440 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3441 (fetch_vfp_regs, store_vfp_regs)
3442 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3443 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3444
f0452268
AH
34452019-07-04 Alan Hayward <alan.hayward@arm.com>
3446
3447 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3448 defines.
3449 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3450 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3451 (ARM_INT_REGISTER_SIZE): ...to this.
3452 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3453 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3454 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3455 (arm_linux_collect_gregset, supply_nwfpe_register)
3456 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3457 defines.
3458 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3459 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3460 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3461 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3462 (arm_return_in_memory, arm_store_return_value)
3463 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3464 (arm_record_ld_st_multiple): Likewise.
3465 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3466 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3467
e935475c
AH
34682019-07-04 Alan Hayward <alan.hayward@arm.com>
3469
3470 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3471 AARCH64_DISPLACED_MODIFIED_INSNS.
3472 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3473 (aarch64_displaced_step_copy_insn): Likewise.
3474 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3475 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3476 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3477 ARM_DISPLACED_MODIFIED_INSNS.
3478 * arm-tdep.c (arm_gdbarch_init): Likewise.
3479 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3480 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3481 (struct arm_displaced_step_closure): Use
3482 ARM_DISPLACED_MODIFIED_INSNS.
3483
df0bb381
AH
34842019-07-04 Alan Hayward <alan.hayward@arm.com>
3485
3486 * features/Makefile: Remove unused xml files.
3487 * features/aarch64.xml: Remove.
3488 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3489 * features/i386/amd64-avx-avx512.xml: Remove.
3490 * features/i386/amd64-avx-linux.xml: Remove.
3491 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3492 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3493 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3494 * features/i386/amd64-avx-mpx.xml: Remove.
3495 * features/i386/amd64-avx.xml: Remove.
3496 * features/i386/amd64-linux.xml: Remove.
3497 * features/i386/amd64-mpx-linux.xml: Remove.
3498 * features/i386/amd64-mpx.xml: Remove.
3499 * features/i386/amd64.xml: Remove.
3500 * features/i386/i386-avx-avx512-linux.xml: Remove.
3501 * features/i386/i386-avx-avx512.xml: Remove.
3502 * features/i386/i386-avx-linux.xml: Remove.
3503 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3504 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3505 * features/i386/i386-avx-mpx-linux.xml: Remove.
3506 * features/i386/i386-avx-mpx.xml: Remove.
3507 * features/i386/i386-avx.xml: Remove.
3508 * features/i386/i386-linux.xml: Remove.
3509 * features/i386/i386-mmx-linux.xml: Remove.
3510 * features/i386/i386-mmx.xml: Remove.
3511 * features/i386/i386-mpx-linux.xml: Remove.
3512 * features/i386/i386-mpx.xml: Remove.
3513 * features/i386/i386.xml: Remove.
3514 * features/i386/x32-avx-avx512-linux.xml: Remove.
3515 * features/i386/x32-avx-linux.xml: Remove.
3516 * features/i386/x32-linux.xml: Remove.
3517
edd6266a
AH
35182019-07-04 Alan Hayward <alan.hayward@arm.com>
3519
3520 * regformats/aarch64.dat: Remove.
3521 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3522 * regformats/i386/amd64-avx-linux.dat: Remove.
3523 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3524 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3525 * regformats/i386/amd64-linux.dat: Remove.
3526 * regformats/i386/amd64-mpx-linux.dat: Remove.
3527 * regformats/i386/amd64.dat: Remove.
3528 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3529 * regformats/i386/i386-avx-linux.dat: Remove.
3530 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3531 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3532 * regformats/i386/i386-linux.dat: Remove.
3533 * regformats/i386/i386-mmx-linux.dat: Remove.
3534 * regformats/i386/i386-mpx-linux.dat: Remove.
3535 * regformats/i386/i386.dat: Remove.
3536 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3537 * regformats/i386/x32-avx-linux.dat: Remove.
3538 * regformats/i386/x32-linux.dat: Remove.
3539
2b40fda7
AH
35402019-07-04 Alan Hayward <alan.hayward@arm.com>
3541
3542 * aarch64-tdep.c: Remove xml self tests.
3543 * amd64-linux-tdep.c: Likewise.
3544 * amd64-tdep.c: Likewise.
3545 * i386-linux-tdep.c: Likewise.
3546 * i386-tdep.c: Likewise.
3547
5f4ba3e7
PA
35482019-07-03 Pedro Alves <palves@redhat.com>
3549
3550 PR cli/24732
3551 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3552 (pipe_cmd_option_defs): New.
3553 (make_pipe_cmd_options_def_group): New.
3554 (pipe_command): Use gdb::option::process_options.
3555 (pipe_command_completer): New function.
3556 (_initialize_cli_cmds): Install completer for "pipe" command.
3557
3d9be6f5
PA
35582019-07-03 Pedro Alves <palves@redhat.com>
3559
3560 * cli/cli-option.c (union option_value) <string>: New field.
3561 (struct option_def_and_value): Add ctor, move ctor, dtor and
3562 use DISABLE_COPY_AND_ASSIGN.
3563 (option_def_and_value::clear_value): New.
3564 (parse_option, save_option_value_in_ctx, get_val_type_str)
3565 (add_setshow_cmds_for_options): Handle var_string.
3566 * cli-option.h (union option_def::var_address) <string>: New
3567 field.
3568 (struct string_option_def): New.
3569 * maint-test-options.c (struct test_options_opts): Add default
3570 ctor and use DISABLE_COPY_AND_ASSIGN.
3571 <string_opt>: New field.
3572 (test_options_opts::~test_options_opts): New.
3573 (test_options_opts::dump): Also dump "-string".
3574 (test_options_option_defs): Install "string.
3575
41fc454c
PA
35762019-07-03 Pedro Alves <palves@redhat.com>
3577
3578 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3579 option_value with a null enumeration.
3580 (complete_options): Save the option values in the context.
3581 (save_option_value_in_ctx): New, factored out from ...
3582 (process_options): ... here.
3583 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3584 of the function.
3585 * maint-test-options.c (test_options_opts::dump): New, factored
3586 out from ...
3587 (maintenance_test_options_command_mode): ... here.
3588 (maintenance_test_options_command_completion_result): Delete.
3589 (maintenance_test_options_command_completion_text): Update
3590 comment.
3591 (maintenance_show_test_options_completion_result): Change
3592 prototype. Just print
3593 maintenance_test_options_command_completion_text.
3594 (save_completion_result): New.
3595 (maintenance_test_options_completer_mode): Pass options context to
3596 complete_options, and then save a dump.
3597 (_initialize_maint_test_options): Use add_cmd to install "maint
3598 show test-options-completion-result".
3599
fdbc9870
PA
36002019-07-03 Pedro Alves <palves@redhat.com>
3601
3602 * NEWS (New commands): Mention "with" and "maint with".
3603 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3604 (with_command, with_command_completer): New.
3605 (pipe_command): Adjust to new repeat_previous
3606 interface.
3607 (_initialize_cli_cmds): Install the "with" command and its "w"
3608 alias.
3609 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3610 declarations.
3611 * cli/cli-setshow.c (parse_cli_var_uinteger)
3612 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3613 argument strings for all var_types.
3614 (get_setshow_command_value_string): New, factored out from ...
3615 (do_show_command): ... this.
3616 * cli/cli-setshow.h: Include <string>.
3617 (get_setshow_command_value_string): Declare.
3618 * command.h (repeat_previous): Now returns const char *. Adjust
3619 comment.
3620 * maint.c: Include "cli/cli-cmds.h".
3621 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3622 (_initialize_maint_cmds): Register the "maintenance with" command.
3623 * top.c (repeat_previous): Move bits from pipe_command here:
3624 Return the saved command line, if any; error out if there's no
3625 command to relaunch.
3626
c6ac8931
PA
36272019-07-03 Pedro Alves <palves@redhat.com>
3628
3629 * NEWS (New commands): Mention "maint set/show test-settings"
3630 instead of "maint test-settings".
3631 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3632 (maintenance_test_settings_set_list): Rename to ...
3633 (maintenance_set_test_settings_list): ... this.
3634 (maintenance_test_settings_show_list): Rename to ...
3635 (maintenance_show_test_settings_list): ... this.
3636 (maintenance_test_settings_cmd): Delete.
3637 (maintenance_test_settings_set_cmd): ...
3638 (maintenance_set_test_settings_cmd): ... this.
3639 (maintenance_test_settings_show_cmd): ...
3640 (maintenance_show_test_settings_cmd): ... this.
3641 (maintenance_test_settings_show_value_cmd):
3642 (maintenance_show_test_settings_value_cmd): ... this.
3643 (_initialize_maint_test_settings): No longer install the "maint
3644 test-settings" prefix command. Rename "maint test-settings set"
3645 to "maint set test-settings", and "maint test-settings show" to
3646 "maint show test-settings". Adjust all subcommands.
3647
d1fcf2fd
PA
36482019-07-03 Pedro Alves <palves@redhat.com>
3649
3650 * maint-test-settings.c: Fix file's intro comment. Replace all
3651 references to "test-options" with references to "test-settings",
3652 in comments.
3653
970f9d09
PA
36542019-07-03 Pedro Alves <palves@redhat.com>
3655
3656 * maint-test-settings.c (maintenance_test_settings_xxx)
3657 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3658 New.
3659 (maintenance_test_settings_enums): Use them.
3660 (maintenance_test_settings_enum): Default to
3661 maintenance_test_settings_xxx.
3662 (_initialize_maint_test_settings): Initialize
3663 MAINTENANCE_TEST_SETTINGS_FILENAME.
3664
f3869b1a
SM
36652019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3666
3667 * breakpoint.h (remove_breakpoints_inf): Change return type to
3668 void, move function documentation here.
3669 * breakpoint.c (remove_breakpoints_inf): Change return type to
3670 void, move function documentation to header.
3671
54d66006
PA
36722019-07-02 Pedro Alves <palves@redhat.com>
3673
3674 * NEWS (Completion improvements): Mention "info threads".
3675 * thread.c (struct info_threads_opts, info_threads_option_defs)
3676 (make_info_threads_options_def_group): New.
3677 (info_threads_command): Use gdb::option::process_options.
3678 (info_threads_command_completer): New.
3679 (_initialize_thread): Use gdb::option::build_help to build the
3680 help text for "info threads".
3681
854f6088
SM
36822019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3683
3684 * defs.h (generic_load): Move from here...
3685 * symfile.h (generic_load): ... to here. Rename name parameter
3686 to args.
3687 * symfile.c (generic_load): Add comment.
3688
54ee4252
TT
36892019-07-01 Tom Tromey <tromey@adacore.com>
3690
3691 * dwarf2read.c
3692 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3693 declaration of without_params. Fix formatting.
3694
65392b3e
TT
36952019-07-01 Tom Tromey <tromey@adacore.com>
3696
3697 * ada-exp.y (find_primitive_type): Update.
3698 * ada-lang.h (ada_lookup_symbol): Update.
3699 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3700 parameter.
3701 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3702
7d7571f0
SDJ
37032019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3704
3705 PR breakpoints/24541
3706 * gdbarch.c: Regenerate.
3707 * gdbarch.h: Regenerate.
3708 * gdbarch.sh: Add 'stap_adjust_register'.
3709 * i386-tdep.c: Include '<unordered_set>'.
3710 (i386_stap_adjust_register): New function.
3711 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3712 * stap-probe.c (stap_parse_register_operand): Call
3713 'gdbarch_stap_adjust_register'.
3714
5af5392a
SDJ
37152019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3716
3717 PR python/24742
3718 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3719 * python/python.c (do_start_initialization): Use 'xmalloc'
3720 instead of 'PyMem_Malloc'.
3721
10d06d82
TT
37222019-06-28 Tom Tromey <tromey@adacore.com>
3723
3724 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3725 for Ada.
3726
1b7f24cd
TT
37272019-06-27 Tom Tromey <tromey@adacore.com>
3728
3729 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3730 objfile_key.
3731 (arm_find_mapping_symbol, arm_record_special_symbol)
3732 (_initialize_arm_tdep): Update.
3733 (arm_objfile_data_free): Remove.
3734
3d507ff2
TT
37352019-06-27 Tom Tromey <tromey@adacore.com>
3736
3737 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3738 to cp_print_static_field.
3739
762c164d
TT
37402019-06-26 Tom Tromey <tromey@adacore.com>
3741
3742 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3743 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3744 declare.
3745
aa2f9bcf
AH
37462019-06-26 Alan Hayward <alan.hayward@arm.com>
3747
3748 * features/aarch64-core.c (create_feature_aarch64_core):
3749 Regenerate.
3750 * features/aarch64-core.xml: Add cpsr flags.
3751
3426ae57
AH
37522019-06-26 Alan Hayward <alan.hayward@arm.com>
3753
3754 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3755 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3756
4838e44c
SM
37572019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3758
3759 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3760 field.
3761 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3762 use.
3763 (arm_record_special_symbol): Don't insert new symbol in sorted
3764 position, push it at the end.
3765
54cc7474
SM
37662019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3767
3768 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3769 (arm_mapping_symbol_s): Remove.
3770 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3771 (arm_mapping_symbol_vec): New typedef.
3772 (struct arm_per_objfile): Add constructor.
3773 <section_maps>: Change type to
3774 std::unique_ptr<arm_mapping_symbol_vec[]>.
3775 (arm_compare_mapping_symbols): Remove.
3776 (arm_find_mapping_symbol): Adjust to section_maps type change.
3777 (arm_objfile_data_free): Call delete on arm_per_objfile.
3778 (arm_record_special_symbol): Adjust to section_maps type change.
3779 Allocate arm_per_objfile with new.
3780
b65b566c
PW
37812019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3782
3783 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3784 with the command prefix.
3785
c2fc64f5
TT
37862019-06-25 Tom Tromey <tom@tromey.com>
3787
3788 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3789 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3790
fb54fa76
TT
37912019-06-25 Tom Tromey <tom@tromey.com>
3792
3793 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3794 type.
3795 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3796 protected.
3797
f7952c57
TT
37982019-06-25 Tom Tromey <tom@tromey.com>
3799
3800 * tui/tui-winsource.c
3801 (tui_source_window_base::set_is_exec_point_at): Add check against
3802 LOA_ADDRESS.
3803
17568d78
TT
38042019-06-25 Tom Tromey <tom@tromey.com>
3805
3806 * tui/tui-source.c (tui_set_source_content): Don't check before
3807 xfree.
3808 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3809
53e7cdba
TT
38102019-06-25 Tom Tromey <tom@tromey.com>
3811
3812 * tui/tui-winsource.h (tui_update_source_window_as_is)
3813 (tui_alloc_source_buffer, tui_line_is_displayed)
3814 (tui_addr_is_displayed): Change type of win_info.
3815 * tui/tui-winsource.c (tui_update_source_window_as_is)
3816 (tui_clear_source_content, tui_show_source_line)
3817 (tui_show_source_content, tui_source_window_base::refill)
3818 (tui_source_window_base::set_is_exec_point_at)
3819 (tui_source_window_base::set_is_exec_point_at)
3820 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3821 (tui_alloc_source_buffer, tui_line_is_displayed)
3822 (tui_addr_is_displayed): Change type of win_info. Update.
3823 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3824 (tui_source_window_base::do_make_visible_with_new_height):
3825 Update.
3826 * tui/tui-source.c (tui_set_source_content)
3827 (tui_set_source_content_nil)
3828 (tui_source_window::do_scroll_vertical): Update.
3829 * tui/tui-layout.c (show_layout): Update.
3830 * tui/tui-disasm.c (tui_set_disassem_content)
3831 (tui_disasm_window::do_scroll_vertical): Update.
3832 * tui/tui-data.h (tui_win_content): Remove.
3833 (struct tui_gen_win_info) <content, content_size>: Remove.
3834 (struct tui_source_element): Add initializers and destructor.
3835 (union tui_which_element, struct tui_win_element): Remove.
3836 (struct tui_source_window_base) <content>: New field.
3837 (struct tui_data_window): Remove destructor.
3838 (tui_alloc_content, tui_free_win_content)
3839 (tui_free_all_source_wins_content): Don't declare.
3840 * tui/tui-data.c (tui_initialize_static_data): Update.
3841 (init_content_element, tui_alloc_content): Remove.
3842 (~tui_gen_win_info): Update.
3843 (~tui_data_window, tui_free_all_source_wins_content)
3844 (tui_free_win_content, free_content, free_content_elements):
3845 Remove.
3846
7908abbf
TT
38472019-06-25 Tom Tromey <tom@tromey.com>
3848
3849 * tui/tui-winsource.h (tui_clear_source_content)
3850 (tui_erase_source_content, tui_show_source_content): Change type
3851 of win_info.
3852 * tui/tui-winsource.c (tui_clear_source_content)
3853 (tui_erase_source_content, tui_show_source_content): Change type
3854 of win_info.
3855 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3856 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3857 win_info.
3858 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3859 win_info.
3860 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3861
02c28df0
TT
38622019-06-25 Tom Tromey <tom@tromey.com>
3863
3864 * tui/tui-winsource.c (tui_clear_source_content)
3865 (tui_source_window_base::set_is_exec_point_at): Update.
3866 * tui/tui-source.c (tui_set_source_content_nil): Update.
3867 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3868 a bool.
3869 * tui/tui-data.c (init_content_element): Update.
3870
6658b1bf
TT
38712019-06-25 Tom Tromey <tom@tromey.com>
3872
3873 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3874 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3875 * tui/tui-layout.c (init_and_make_win): Update.
3876 * tui/tui.h (enum tui_win_type): Update.
3877 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3878 tui_win_is_auxillary.
3879 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3880 tui_win_is_auxillary.
3881
21e1c91e
TT
38822019-06-25 Tom Tromey <tom@tromey.com>
3883
3884 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3885 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3886 (tui_delete_data_content_windows, tui_display_all_data)
3887 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3888 Update.
3889 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3890 * tui/tui-regs.c (tui_last_regs_line_no)
3891 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3892 (tui_show_registers): Update.
3893 (tui_show_register_group): Return void. Update.
3894 (tui_display_registers_from, tui_display_reg_element_at_line)
3895 (tui_display_registers_from_line, tui_check_register_values):
3896 Update.
3897 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3898 member.
3899 (struct tui_data_window) <regs_content>: Now a std::vector.
3900 <regs_content_count>: Remove.
3901 (tui_add_content_elements, tui_free_data_content): Don't declare.
3902 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3903 (init_content_element): Remove DATA_WIN case. Add assert.
3904 (tui_add_content_elements): Remove.
3905 (tui_data_window): Update.
3906 (tui_free_data_content): Remove.
3907 (free_content_elements): Remove DATA_WIN case.
3908
115ac53b
TT
39092019-06-25 Tom Tromey <tom@tromey.com>
3910
3911 * tui/tui-data.c (tui_data_item_window): Update.
3912 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3913 * tui/tui-windata.c (tui_display_all_data)
3914 (tui_display_data_from_line): Update.
3915 (tui_check_data_values): Remove.
3916 * tui/tui-regs.c (tui_show_register_group)
3917 (tui_display_reg_element_at_line): Update.
3918 * tui/tui-hooks.c (tui_register_changed)
3919 (tui_refresh_frame_and_register_information): Call
3920 tui_check_register_values.
3921 * tui/tui-data.h (struct tui_data_window) <data_content,
3922 data_content_count, data_type>: Remove.
3923 (enum tui_data_type): Remove.
3924
3925 * tui/tui-data.c (tui_data_window::clear_detail)
3926 (~tui_data_window): Update.
3927
eaf9738b
TT
39282019-06-25 Tom Tromey <tom@tromey.com>
3929
3930 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3931 declare.
3932 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3933 Rename from tui_first_data_item_displayed. Update.
3934 (tui_data_window::refresh_all)
3935 (tui_data_window::do_scroll_vertical): Update.
3936 * tui/tui-data.h (struct tui_data_window)
3937 <first_data_item_displayed>: Declare new method.
3938
31ca4723
TT
39392019-06-25 Tom Tromey <tom@tromey.com>
3940
3941 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3942 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3943 contents...
3944 (tui_initialize_static_data): ...here.
3945
41bcff7f
TT
39462019-06-25 Tom Tromey <tom@tromey.com>
3947
3948 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3949 (tui_display_registers_from, tui_check_register_values): Update.
3950 (tui_display_register): Remove win_info parameter; update.
3951 (tui_get_register): Change type of parameters.
3952 * tui/tui-data.h (struct tui_data_element): Remove.
3953 (union tui_which_element) <data>: Remove.
3954 <data_window>: Change type.
3955 (struct tui_data_item_window): New.
3956 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3957 case. Add assert.
3958 (~tui_data_item_window): New destructor.
3959 (free_content_elements): Remove DATA_ITEM_WIN case.
3960
d2802c33
TT
39612019-06-25 Tom Tromey <tom@tromey.com>
3962
3963 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3964 Remove.
3965
dd835f8b
TT
39662019-06-25 Tom Tromey <tom@tromey.com>
3967
3968 * tui/tui-data.h (struct tui_command_element): Remove.
3969 (union tui_which_element) <command>: Remove.
3970 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3971 assert.
3972 (free_content_elements): Remove CMD_WIN case.
3973
bd7db367
TT
39742019-06-25 Tom Tromey <tom@tromey.com>
3975
3976 * tui/tui-layout.c (tui_set_layout): Update.
3977 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
3978 * tui/tui-data.c (layout_def): Update.
3979
3add462f
TT
39802019-06-25 Tom Tromey <tom@tromey.com>
3981
3982 * tui/tui-wingeneral.c (tui_refresh_all): Update.
3983 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3984 (tui_source_window_base::set_new_height): Update.
3985 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
3986 Update.
3987 (tui_set_locator_fullname, tui_set_locator_info)
3988 (tui_show_frame_info): Update.
3989 * tui/tui-source.c (tui_set_source_content)
3990 (tui_source_is_displayed): Update.
3991 * tui/tui-layout.c (show_source_disasm_command, show_data)
3992 (show_source_or_disasm_and_command): Update.
3993 * tui/tui-disasm.c (tui_set_disassem_content)
3994 (tui_get_begin_asm_address): Update.
3995 * tui/tui-data.h (struct tui_locator_element): Remove.
3996 (union tui_which_element) <locator>: Remove.
3997 (struct tui_locator_window): New.
3998 (tui_locator_win_info_ptr): Change return type.
3999 * tui/tui-data.c (_locator): Change type.
4000 (tui_locator_win_info_ptr): Change return type.
4001 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4002 (tui_alloc_content): Add assert.
4003
489e9d8b
TT
40042019-06-25 Tom Tromey <tom@tromey.com>
4005
4006 * tui/tui-winsource.c
4007 (tui_exec_info_window::maybe_allocate_content): New method.
4008 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4009 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4010 (make_source_or_disasm_window): Add cast.
4011 * tui/tui-data.h (union tui_which_element) <simple_string>:
4012 Remove.
4013 (struct tui_source_info): New.
4014 (struct tui_source_window_base) <execution_info>: Change type.
4015 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4016 case, and add assert.
4017 (tui_alloc_content): Add assert.
4018
c3fabb7d
TT
40192019-06-25 Tom Tromey <tom@tromey.com>
4020
4021 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4022 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4023 * tui/tui-data.c (tui_alloc_win_info): Remove.
4024
bbc228ee
TT
40252019-06-25 Tom Tromey <tom@tromey.com>
4026
4027 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4028 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4029 can_highlight.
4030
5fcee43a
TT
40312019-06-25 Tom Tromey <tom@tromey.com>
4032
4033 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4034 make_visible_with_new_height method.
4035 (tui_win_info::make_visible_with_new_height): New method.
4036 (tui_source_window_base::do_make_visible_with_new_height)
4037 (tui_data_window::do_make_visible_with_new_height)
4038 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4039 (make_visible_with_new_height): Remove.
4040 (tui_resize_all, tui_adjust_win_heights): Use
4041 make_visible_with_new_height method.
4042 * tui/tui-data.h (struct tui_win_info)
4043 <do_make_visible_with_new_height, make_visible_with_new_height>:
4044 New methods.
4045 (struct tui_source_window_base, struct tui_data_window)
4046 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4047 methods.
4048
d83f1fe6
TT
40492019-06-25 Tom Tromey <tom@tromey.com>
4050
4051 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4052 method.
4053 (update_tab_width): Call update_tab_width method.
4054 * tui/tui-data.h (struct tui_win_info)
4055 (struct tui_source_window_base) <update_tab_width>: New methods.
4056
17374de4
TT
40572019-06-25 Tom Tromey <tom@tromey.com>
4058
4059 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4060 parameter.
4061 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4062 parameter.
4063 (tui_gen_win_info::make_visible): Update.
4064 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4065 parameter.
4066 * tui/tui-data.h (enum tui_box): New enum.
4067 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4068
f936bca2
TT
40692019-06-25 Tom Tromey <tom@tromey.com>
4070
4071 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4072 init_and_make_win for EXEC_INFO_WIN.
4073 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4074 longer inline.
4075 (struct tui_win_info) <~tui_win_info>: Inline.
4076 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4077 Don't declare.
4078 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4079 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4080 Remove.
4081 (tui_initialize_static_data): Update.
4082 (~tui_gen_win_info): Handle more cleanup here.
4083 (~tui_source_window_base): Delete "execution_info".
4084 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4085
d6ba6a11
TT
40862019-06-25 Tom Tromey <tom@tromey.com>
4087
4088 * tui/tui-layout.c (make_command_window): Don't set
4089 can_highlight.
4090 (show_source_disasm_command): Call the reset method.
4091 (show_data): Don't set can_highlight. Call the reset method.
4092 (tui_gen_win_info::reset): Rename from init_gen_win_info
4093 (init_and_make_win): Simplify. Return tui_gen_win_info.
4094 (show_source_or_disasm_and_command): Call the reset method.
4095 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4096 (struct tui_cmd_window): Set can_highlight.
4097
48a3bd16
TT
40982019-06-25 Tom Tromey <tom@tromey.com>
4099
4100 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4101 from make_visible.
4102 (tui_make_visible, tui_make_invisible): Rewrite.
4103 (tui_win_info::make_visible): Remove.
4104 (tui_source_window_base::make_visible): Update.
4105 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4106 method. Moved from...
4107 (struct tui_win_info) <make_visible>: ...here.
4108
c3bd716f
TT
41092019-06-25 Tom Tromey <tom@tromey.com>
4110
4111 * tui/tui-winsource.c
4112 (tui_source_window_base::do_scroll_horizontal): Remove direction
4113 parameter.
4114 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4115 direction parameter.
4116 * tui/tui-win.c (tui_win_info::forward_scroll)
4117 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4118 (tui_win_info::right_scroll): Update.
4119 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4120 direction parameter.
4121 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4122 direction parameter.
4123 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4124 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4125 Remove direction parameter.
4126 (struct tui_source_window_base, struct tui_source_window)
4127 (struct tui_disasm_window, struct tui_data_window)
4128 (struct tui_cmd_window): Update.
4129
21c32dca
TT
41302019-06-25 Tom Tromey <tom@tromey.com>
4131
4132 * tui/tui-winsource.h (tui_set_exec_info_content)
4133 (tui_show_exec_info_content, tui_erase_exec_info_content)
4134 (tui_clear_exec_info_content, tui_update_exec_info): Change
4135 argument to tui_source_window_base.
4136 * tui/tui-winsource.c (tui_set_exec_info_content)
4137 (tui_show_exec_info_content, tui_erase_exec_info_content)
4138 (tui_clear_exec_info_content, tui_update_exec_info): Change
4139 argument to tui_source_window_base.
4140
73fbdc65
TT
41412019-06-25 Tom Tromey <tom@tromey.com>
4142
4143 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4144 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4145
33325343
TT
41462019-06-25 Tom Tromey <tom@tromey.com>
4147
4148 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4149 check.
4150
29d2c474
TT
41512019-06-25 Tom Tromey <tom@tromey.com>
4152
4153 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4154 type to void.
4155 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4156 type to void.
4157 * tui/tui-source.c (tui_set_source_content): Update.
4158 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4159
152f3f4b
TT
41602019-06-25 Tom Tromey <tom@tromey.com>
4161
4162 * tui/tui-win.c (window_name_completer, tui_set_focus)
4163 (tui_all_windows_info): Use name method.
4164 * tui/tui-data.h (struct tui_gen_win_info)
4165 (struct tui_source_window, struct tui_disasm_window)
4166 (struct tui_data_window, struct tui_cmd_window) <name>: New
4167 method.
4168 (tui_win_name): Don't declare.
4169 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4170 (tui_win_name): Remove.
4171
be4da588
TT
41722019-06-25 Tom Tromey <tom@tromey.com>
4173
4174 * tui/tui-winsource.h (tui_update_source_window)
4175 (tui_update_source_window_as_is): Change parameter type.
4176 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4177 to be a tui_source_window_base.
4178 (tui_update_source_window_as_is): Likewise.
4179 * tui/tui-win.c (make_visible_with_new_height): Update.
4180
5b81daba
TT
41812019-06-25 Tom Tromey <tom@tromey.com>
4182
4183 * tui/tui-winsource.c (tui_erase_source_content)
4184 (tui_show_source_content, tui_show_exec_info_content)
4185 (tui_erase_exec_info_content): Use refresh_window method.
4186 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4187 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4188 from tui_refresh_win.
4189 (tui_data_window::refresh_window): New method.
4190 (tui_win_info::refresh, tui_source_window_base::refresh)
4191 (tui_refresh_all): Use refresh_window method.
4192 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4193 method.
4194 * tui/tui-regs.c (tui_display_register): Call refresh_window
4195 method.
4196 * tui/tui-layout.c (show_source_disasm_command)
4197 (show_source_or_disasm_and_command): Call refresh_window method.
4198 * tui/tui-data.h (struct tui_gen_win_info)
4199 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4200 New method.
4201
cb2ce893
TT
42022019-06-25 Tom Tromey <tom@tromey.com>
4203
4204 * tui/tui.c (tui_rl_other_window, tui_enable)
4205 (tui_is_window_visible, tui_get_command_dimension): Update.
4206 * tui/tui-winsource.c (tui_update_source_window_as_is)
4207 (tui_clear_source_content, tui_erase_source_content)
4208 (tui_show_source_line, tui_source_window_base::refill)
4209 (tui_source_window_base::do_scroll_horizontal)
4210 (tui_source_window_base::set_is_exec_point_at)
4211 (tui_update_breakpoint_info, tui_set_exec_info_content)
4212 (tui_alloc_source_buffer, tui_line_is_displayed)
4213 (tui_addr_is_displayed): Update.
4214 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4215 (tui_check_and_display_highlight_if_needed)
4216 (tui_win_info::make_visible, tui_win_info::refresh)
4217 (tui_refresh_all): Update.
4218 * tui/tui-windata.c (tui_first_data_item_displayed)
4219 (tui_delete_data_content_windows, tui_erase_data_content)
4220 (tui_display_all_data, tui_data_window::refresh_all)
4221 (tui_check_data_values): Update.
4222 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4223 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4224 (tui_win_info::backward_scroll, tui_refresh_all_win)
4225 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4226 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4227 (tui_source_window_base::set_new_height)
4228 (tui_data_window::set_new_height)
4229 (make_invisible_and_set_new_height)
4230 (make_visible_with_new_height, new_height_ok)
4231 (parse_scrolling_args): Update.
4232 * tui/tui-stack.c (tui_show_frame_info): Update.
4233 * tui/tui-source.c (tui_set_source_content)
4234 (tui_set_source_content_nil, tui_source_is_displayed)
4235 (tui_source_window::do_scroll_vertical): Update.
4236 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4237 (tui_display_registers_from, tui_display_reg_element_at_line)
4238 (tui_check_register_values, tui_reg_command): Update.
4239 * tui/tui-layout.c (tui_default_win_height)
4240 (show_source_disasm_command, show_data, init_and_make_win)
4241 (show_source_or_disasm_and_command): Update.
4242 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4243 (tui_redisplay_readline, tui_mld_flush)
4244 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4245 (tui_getc): Update.
4246 * tui/tui-disasm.c (tui_set_disassem_content)
4247 (tui_disasm_window::do_scroll_vertical): Update.
4248 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4249 Now virtual.
4250 (struct tui_win_info): Derive from tui_gen_win_info.
4251 <~tui_win_info>: Mark as override.
4252 <generic>: Remove member.
4253 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4254 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4255 (~tui_data_window, ~tui_win_info)
4256 (tui_free_all_source_wins_content): Update.
4257 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4258
ab313b35
TT
42592019-06-25 Tom Tromey <tom@tromey.com>
4260
4261 * tui/tui-layout.c (init_and_make_win): Use new.
4262 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4263 destructor, initializers.
4264 (tui_alloc_generic_win_info): Don't declare.
4265 * tui/tui-data.c (_locator): Add argument to constructor.
4266 (source_win, disasm_win): New globals.
4267 (exec_info): Remove.
4268 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4269 Update.
4270 (tui_alloc_generic_win_info): Remove.
4271 (init_content_element): Use new.
4272 (tui_win_info::tui_win_info): Update.
4273 (free_content_elements) <case DATA_WIN>: Use delete.
4274
dc2c33e4
TT
42752019-06-25 Tom Tromey <tom@tromey.com>
4276
4277 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4278 * tui/tui-windata.c (tui_first_data_item_displayed)
4279 (tui_delete_data_content_windows): Update.
4280 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4281 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4282 (tui_display_registers_from, tui_check_register_values): Update.
4283 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4284 pointer.
4285 * tui/tui-data.c (init_content_element): Update. Allocate the new
4286 window.
4287 (tui_free_data_content): Update.
4288 (free_content_elements) <case DATA_WIN>: Free the window.
4289
214a5cbe
TT
42902019-06-25 Tom Tromey <tom@tromey.com>
4291
4292 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4293 Update.
4294 * tui/tui-layout.c (make_command_window)
4295 (show_source_disasm_command, show_data, init_and_make_win)
4296 (show_source_or_disasm_and_command): Update.
4297 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4298 method.
4299 <can_highight, is_highlighted>: Now bool.
4300 (tui_set_win_highlight): Don't declare.
4301 * tui/tui-data.c (tui_set_win_highlight): Remove.
4302
8e2daf15
TT
43032019-06-25 Tom Tromey <tom@tromey.com>
4304
4305 * tui/tui-wingeneral.c (make_visible): Remove check of window
4306 type.
4307
8903bd8a
TT
43082019-06-25 Tom Tromey <tom@tromey.com>
4309
4310 * tui/tui-win.c (tui_win_info::max_height)
4311 (tui_cmd_window::max_height): New methods.
4312 (new_height_ok): Call max_height.
4313 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4314 <max_height>: New method.
4315
3f02ce1e
TT
43162019-06-25 Tom Tromey <tom@tromey.com>
4317
4318 * tui/tui-win.c (tui_source_window_base::set_new_height)
4319 (tui_data_window::set_new_height): New methods.
4320 (make_invisible_and_set_new_height): Call set_new_height method.
4321 * tui/tui-data.h (struct tui_win_info)
4322 (struct tui_source_window_base, struct tui_data_window)
4323 <set_new_height>: New method.
4324
1825f487
TT
43252019-06-25 Tom Tromey <tom@tromey.com>
4326
4327 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4328 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4329 tui_refresh_data_win.
4330 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4331 method.
4332 (tui_refresh_all_win): Call the refresh_all method.
4333 (tui_set_focus): Likewise.
4334 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4335 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4336 Likewise.
4337
ad54d15b
TT
43382019-06-25 Tom Tromey <tom@tromey.com>
4339
4340 * tui/tui-winsource.h (tui_refill_source_window)
4341 (tui_set_is_exec_point_at): Don't declare.
4342 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4343 (tui_source_window_base::refill): Rename from
4344 tui_refill_source_window.
4345 (tui_source_window_base::do_scroll_horizontal): Update.
4346 (tui_source_window_base::set_is_exec_point_at): Rename from
4347 tui_set_is_exec_point_at.
4348 (tui_update_all_breakpoint_info): Update.
4349 * tui/tui-stack.c (tui_show_frame_info): Update.
4350 * tui/tui-layout.c (show_data): Add cast.
4351 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4352 * tui/tui-data.h (struct tui_source_window_base) <refill,
4353 set_is_exec_point_at>: New methods.
4354 (tui_source_windows, tui_add_to_source_windows): Update types.
4355 (tui_add_to_source_windows): Remove redundant declaration.
4356 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4357 (tui_source_windows): Change return type.
4358 (tui_clear_source_windows_detail): Update.
4359 (tui_add_to_source_windows): Change type of parameter.
4360 (tui_free_all_source_wins_content): Update.
4361
2042b506
TT
43622019-06-25 Tom Tromey <tom@tromey.com>
4363
4364 * tui/tui-wingeneral.c (tui_win_info::refresh)
4365 (tui_source_window_base::refresh): New methods.
4366 (tui_refresh_all): Call the refresh method.
4367 * tui/tui-data.h (struct tui_win_info)
4368 (struct tui_source_window_base) <refresh>: New method.
4369
56122977
TT
43702019-06-25 Tom Tromey <tom@tromey.com>
4371
4372 * tui/tui.h (tui_is_window_visible): Return bool.
4373 * tui/tui.c (tui_is_window_visible): Return bool.
4374 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4375 (tui_make_visible, tui_make_invisible)
4376 (tui_win_info::make_visible)
4377 (tui_source_window_base::make_visible, make_all_visible)
4378 (tui_make_all_visible, tui_make_all_invisible): Update.
4379 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4380 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4381 bool.
4382 (struct tui_win_info, struct tui_source_window_base)
4383 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4384 * tui/tui-data.c (tui_init_generic_part): Update.
4385
cda37efb
TT
43862019-06-25 Tom Tromey <tom@tromey.com>
4387
4388 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4389 (tui_source_window_base::make_visible): New methods.
4390 (make_all_visible): Make method call.
4391 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4392 (struct tui_source_window_base, struct tui_cmd_window): Override
4393 make_visible.
4394 (tui_win_is_source_type): Don't declare.
4395 * tui/tui-data.c (tui_win_is_source_type): Remove.
4396
6a0ee02c
TT
43972019-06-25 Tom Tromey <tom@tromey.com>
4398
4399 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4400 NULL check.
4401
63901aec
TT
44022019-06-25 Tom Tromey <tom@tromey.com>
4403
4404 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4405 Inline constructor. Add initializers for members.
4406 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4407 constructors; now inline in class.
4408
ceb13a13
TT
44092019-06-25 Tom Tromey <tom@tromey.com>
4410
4411 * tui/tui-regs.c (tui_show_registers): Update.
4412 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4413 bool.
4414 * tui/tui-data.c (tui_data_window::clear_detail)
4415 (tui_data_window): Update.
4416
238eb706
TT
44172019-06-25 Tom Tromey <tom@tromey.com>
4418
4419 * tui/tui-windata.c (tui_display_all_data)
4420 (tui_display_data_from_line, tui_display_data_from)
4421 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4422 Update.
4423 * tui/tui-regs.c (tui_last_regs_line_no)
4424 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4425 (tui_show_registers, tui_show_register_group)
4426 (tui_display_registers_from, tui_display_reg_element_at_line)
4427 (tui_display_registers_from_line, tui_check_register_values)
4428 (tui_reg_next, tui_reg_prev): Update.
4429 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4430 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4431 tui_data_window.
4432 (struct tui_win_info) <detail>: Remove. Add new fields from
4433 tui_data_info.
4434 (TUI_DATA_WIN): Add cast.
4435 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4436 (~tui_data_window): Simplify.
4437
81491aa0
TT
44382019-06-25 Tom Tromey <tom@tromey.com>
4439
4440 * tui/tui-layout.c (show_source_disasm_command)
4441 (show_source_or_disasm_and_command): Update.
4442 * tui/tui-io.c (update_cmdwin_start_line)
4443 (tui_redisplay_readline): Update.
4444 * tui/tui-data.h (struct tui_command_info): Remove.
4445 (struct tui_win_info) <detail>: Remove command_info member.
4446 (struct tui_data_window) <start_line>: New member, from
4447 tui_command_info.
4448 (TUI_CMD_WIN): Add casts.
4449
e6e41501
TT
44502019-06-25 Tom Tromey <tom@tromey.com>
4451
4452 * tui/tui-winsource.c (tui_update_source_window)
4453 (tui_refill_source_window)
4454 (tui_source_window_base::do_scroll_horizontal)
4455 (tui_update_breakpoint_info, tui_set_exec_info_content)
4456 (tui_show_exec_info_content, tui_erase_exec_info_content)
4457 (tui_clear_exec_info_content): Update.
4458 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4459 Update.
4460 * tui/tui-win.c (make_invisible_and_set_new_height)
4461 (make_visible_with_new_height): Update.
4462 * tui/tui-source.c (tui_set_source_content)
4463 (tui_show_symtab_source): Update.
4464 * tui/tui-layout.c (extract_display_start_addr)
4465 (show_source_disasm_command, show_data)
4466 (make_source_or_disasm_window)
4467 (show_source_or_disasm_and_command): Update.
4468 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4469 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4470 "gdbarch".
4471 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4472 to tui_source_window_base.
4473 (struct tui_win_info) <detail>: Remove source_info member.
4474 (struct tui_source_window_base) <has_locator>: Inline.
4475 Move contents from tui_source_info; rename has_locator member to
4476 m_has_locator.
4477 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4478 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4479 header file.
4480 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4481 Simplify.
4482 (tui_free_all_source_wins_content): Cast to
4483 tui_source_window_base.
4484
44f0e208
TT
44852019-06-25 Tom Tromey <tom@tromey.com>
4486
4487 * tui/tui-win.c (make_invisible_and_set_new_height)
4488 (make_visible_with_new_height): Call has_locator method.
4489 * tui/tui-layout.c (show_source_disasm_command, show_data)
4490 (show_source_or_disasm_and_command): Update for bool change.
4491 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4492 (tui_win_info) <has_locator>: New method.
4493 (struct tui_source_window_base) <has_locator>: New method.
4494 (tui_win_has_locator): Don't declare.
4495 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4496 from tui_win_has_locator.
4497 (tui_source_window_base): Use false, not FALSE.
4498
7778b912
TT
44992019-06-25 Tom Tromey <tom@tromey.com>
4500
4501 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4502 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4503 clear_detail method directly.
4504 (tui_clear_win_detail): Remove.
4505
f83d391c
TT
45062019-06-25 Tom Tromey <tom@tromey.com>
4507
4508 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4509 "this", not TUI_DISASM_WIN.
4510
13446e05
TT
45112019-06-25 Tom Tromey <tom@tromey.com>
4512
4513 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4514 declare.
4515 * tui/tui-winsource.c
4516 (tui_source_window_base::do_scroll_horizontal): Rename from
4517 tui_horizontal_source_scroll.
4518 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4519 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4520 from tui_vertical_data_scroll.
4521 * tui/tui-win.h (tui_scroll): Don't declare.
4522 * tui/tui-win.c (tui_win_info::forward_scroll)
4523 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4524 (tui_win_info::right_scroll): Rename and update.
4525 (tui_scroll_forward_command, tui_scroll_backward_command)
4526 (tui_scroll_left_command, tui_scroll_right_command): Update.
4527 (tui_scroll): Remove.
4528 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4529 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4530 from tui_vertical_source_scroll.
4531 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4532 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4533 from tui_vertical_disassem_scroll.
4534 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4535 do_scroll_horizontal>: New methods.
4536 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4537 Likewise.
4538 (struct tui_source_window_base): Add do_scroll_horizontal.
4539 (struct tui_source_window, struct tui_disasm_window): Add
4540 do_scroll_vertical.
4541 (struct tui_data_window, struct tui_cmd_window): Add
4542 do_scroll_horizontal and do_scroll_vertical.
4543 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4544
5cf82909
TT
45452019-06-25 Tom Tromey <tom@tromey.com>
4546
4547 * tui/tui-data.h (struct tui_source_window_base): New struct.
4548 (struct tui_source_window): Derive from tui_source_window_base.
4549 (struct tui_disasm_window): New struct.
4550 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4551 from tui_source_window::clear_detail.
4552 (tui_source_window_base): Rename from tui_source_window.
4553 (~tui_source_window_base): Rename from ~tui_source_window.
4554 (tui_alloc_win_info): Create a tui_disasm_window.
4555
ee1d42d6
TT
45562019-06-25 Tom Tromey <tom@tromey.com>
4557
4558 * tui/tui-data.h (struct tui_source_window)
4559 (struct tui_data_window): Declare destructors.
4560 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4561 destructors.
4562 (tui_win_info): Simplify.
4563
b4eb2452
TT
45642019-06-25 Tom Tromey <tom@tromey.com>
4565
4566 * tui/tui-winsource.c (tui_display_main)
4567 (tui_update_source_windows_with_addr)
4568 (tui_update_all_breakpoint_info): Update.
4569 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4570 (new_height_ok, parse_scrolling_args): Update.
4571 * tui/tui-stack.c (tui_show_frame_info): Update.
4572 * tui/tui-data.h (struct tui_list): Remove.
4573 (tui_source_windows): Return a reference to a std::vector.
4574 * tui/tui-data.c (source_windows): Now a std::vector.
4575 (tui_source_windows): Change return type.
4576 (tui_clear_source_windows): Rewrite.
4577 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4578 (tui_free_all_source_wins_content): Rewrite.
4579
8761a91b
TT
45802019-06-25 Tom Tromey <tom@tromey.com>
4581
4582 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4583 (struct tui_data_window, struct tui_cmd_window): Declare
4584 clear_detail method.
4585 * tui/tui-data.c (tui_source_window::clear_detail)
4586 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4587 methods.
4588 (tui_clear_win_detail): Simplify.
4589
0ed69eda
TT
45902019-06-25 Tom Tromey <tom@tromey.com>
4591
4592 * tui/tui-layout.c (make_source_window, make_disasm_window)
4593 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4594 Return the new window.
4595 (show_source_disasm_command, show_data)
4596 (show_source_or_disasm_and_command): Update.
4597
82432e10
TT
45982019-06-25 Tom Tromey <tom@tromey.com>
4599
4600 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4601 parameter. Return the new window.
4602 (show_source_disasm_command): Update and remove NULL check.
4603 (show_source_or_disasm_and_command): Update.
4604
ec328aa5
TT
46052019-06-25 Tom Tromey <tom@tromey.com>
4606
4607 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4608
33b906ab
TT
46092019-06-25 Tom Tromey <tom@tromey.com>
4610
4611 * tui/tui-data.h (struct tui_win_info): Make constructor
4612 protected. Make destructor virtual. Add initializers.
4613 (tui_source_window, tui_data_window, tui_cmd_window): New
4614 classes.
4615 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4616 constructor. Add "type" parameter.
4617 (tui_source_window, tui_data_window, tui_cmd_window): New
4618 constructors.
4619 (tui_alloc_win_info): Instantiate the appropriate subclass.
4620
e7e11af4
TT
46212019-06-25 Tom Tromey <tom@tromey.com>
4622
4623 * tui/tui-win.c (tui_resize_all): Use delete.
4624 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4625 destructor.
4626 (tui_free_window): Don't declare.
4627 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4628 Update.
4629
6792b55e
TT
46302019-06-25 Tom Tromey <tom@tromey.com>
4631
4632 * tui/tui-data.h (struct tui_win_info): Add constructor.
4633 * tui/tui-data.c (tui_alloc_win_info): Use new.
4634 (tui_free_window): Use delete.
4635
f95675e1
TT
46362019-06-22 Tom Tromey <tom@tromey.com>
4637
4638 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4639 declare.
4640 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4641
5bff081c
TT
46422019-06-22 Tom Tromey <tom@tromey.com>
4643
4644 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4645 declare.
4646 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4647
47e3f474
TV
46482019-06-22 Tom de Vries <tdevries@suse.de>
4649
4650 * dwarf2read.c (create_addrmap_from_aranges)
4651 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4652 instead of '%zu'.
4653
fd5866f6
SM
46542019-06-21 Simon Marchi <simon.marchi@efficios.com>
4655
4656 * dwarf2read.h (dwarf2_section_info_def): Remove.
4657 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4658 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4659 std::vector<dwarf2_section_info>.
4660 (struct dwo_file) <~dwo_file>: Remove.
4661 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4662 types field.
4663 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4664 (dwarf2_read_debug_names): Likewise.
4665 (create_debug_types_hash_table): Change parameter type to
4666 array_view, adjust code accordingly.
4667 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4668 (partial_die_info::fixup): Likewise.
4669 (determine_prefix): Likewise.
4670 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4671
fb1eb2f9
SM
46722019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4673
4674 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4675 gdb_bfd_ref_ptr.
4676 <~dwo_file>: Remove call to gdb_bfd_unref.
4677 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4678 gdb_bfd_ref_ptr::get.
4679
51ac9db5
SM
46802019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4681
4682 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4683 type to htab_up.
4684 * dwarf2read.c (struct dwo_file): Initialize fields.
4685 <~dwo_file>: New.
4686 (free_dwo_file): Remove, move content to ~dwo_file.
4687 (struct dwo_file_deleter): Remove.
4688 (dwo_file_up>: Remove custom deleter.
4689 (free_dwo_files): Remove.
4690 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4691 dwo_files.
4692 (process_skeletonless_type_units): Call unique_ptr::get.
4693 (allocate_dwo_file_hash_table): Add deleter to created hash
4694 table. Change return type to htab_up.
4695 (lookup_dwo_file_slot): Don't memset dwo_file, call
4696 unique_ptr::get.
4697 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4698 (create_dwo_unit_in_dwp_v2): Likewise.
4699 (open_and_init_dwo_file): Likewise.
4700 (free_dwo_file_from_slot): Remove.
4701
dc4ccb6f
SM
47022019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4703
4704 * dwarf2read.h (struct dwarf2_section_info) <readin,
4705 is_virtual>: Change type to bool.
4706 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4707 true instead of 1.
4708
e6a1c5cb
TT
47092019-06-19 Tom Tromey <tom@tromey.com>
4710
4711 * tui/tui-data.h (tui_init_content_element): Don't declare.
4712
6f6ffbeb
TT
47132019-06-19 Tom Tromey <tom@tromey.com>
4714
4715 * tui/tui-data.h (tui_init_win_info): Don't declare.
4716
f23f598e
TV
47172019-06-19 Tom de Vries <tdevries@suse.de>
4718
4719 * dwarf2read.h (abstract_to_concrete): Change type to
4720 std::unordered_map<sect_offset, std::vector<sect_offset>,
4721 gdb::hash_enum<sect_offset>>.
4722
680e1bee
TT
47232019-06-19 Tom Tromey <tromey@adacore.com>
4724
4725 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4726 EVAL_AVOID_SIDE_EFFECTS specially.
4727
dcf37923
TT
47282019-06-19 Tom Tromey <tromey@adacore.com>
4729
4730 * source-cache.c (highlighter): New global.
4731 (source_cache::get_source_lines): Create a highlighter on demand.
4732
494986d5
AB
47332019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4734
4735 * defs.h (deprecated_interactive_hook): Delete declaration.
4736 * interps.c (clear_interpreter_hooks): Remove use of
4737 deprecated_interactive_hook.
4738 * top.c (deprecated_interactive_hook): Delete definition.
4739 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4740
3360b6e7
TV
47412019-06-18 Tom de Vries <tdevries@suse.de>
4742
4743 PR gdb/24515
4744 * dwarf2read.h (abstract_to_concrete): Change type from
4745 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4746 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4747 * dwarf2read.c (read_variable): Update.
4748 (dwarf2_fetch_die_loc_sect_off): Update.
4749
310b3441
TV
47502019-06-17 Tom de Vries <tdevries@suse.de>
4751
4752 PR gdb/24617
4753 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4754 accessing parent[parent_len - 1].
4755
ba9777be
PP
47562019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4757
4758 PR gdb/24364
4759 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4760 call dtrace_process_dof with NULL dof.
4761
2b9f6e89
TV
47622019-06-16 Tom de Vries <tdevries@suse.de>
4763
4764 PR gdb/24445
4765 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4766
431b3ead
TT
47672019-06-16 Tom Tromey <tom@tromey.com>
4768
4769 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4770 (make_all_visible): Use address of member.
4771
d04b44a1
TT
47722019-06-16 Tom Tromey <tom@tromey.com>
4773
4774 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4775 (tui_free_window, free_content, free_content_elements): Remove
4776 unnecessary cast.
4777 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4778 cast.
4779 * tui/tui-regs.c (tui_show_register_group)
4780 (tui_display_registers_from, tui_display_reg_element_at_line):
4781 Remove unnecessary cast.
4782
bf5142e7
AB
47832019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4784
4785 * linux-nat.c (normal_mask): Delete.
4786 (_initialize_linux_nat): Don't initialise normal_mask.
4787
c4973306
SM
47882019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4789
4790 PR gdb/24445
4791 * dwarf-index-write.h (write_psymtabs_to_index): Add
4792 dwz_basename parameter.
4793 * dwarf-index-write.c (write_gdbindex): Move file writing to
4794 write_gdbindex_1. Change return type void.
4795 (assert_file_size): Move up, remove filename parameter.
4796 (write_gdbindex_1): New function.
4797 (write_debug_names): Change return type to void, call
4798 assert_file_size.
4799 (struct index_wip_file): New struct.
4800 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4801 file logic to index_wip_file. Write index for dwz file if
4802 needed.
4803 (save_gdb_index_command): Pass basename of dwz file, if present.
4804 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4805 build-id of dwz file, if present.
4806 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4807 (dwarf2_get_dwz_file): Likewise.
4808 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4809 (dwarf2_get_dwz_file): Likewise.
4810
395f9c91
TT
48112019-06-16 Tom Tromey <tom@tromey.com>
4812
4813 * coffread.c (process_coff_symbol): Use xstrdup.
4814 * value.c (create_internalvar): Use xstrdup.
4815
cafb3438
TT
48162019-06-16 Tom Tromey <tom@tromey.com>
4817
4818 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4819 * breakpoint.c (stopin_command, stopat_command)
4820 (until_break_command, decode_location_default): Remove unnecessary
4821 cast.
4822 * utils.c (subset_compare): Remove unnecessary cast.
4823 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4824 cast.
4825 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4826 cast.
4827 * infcmd.c (path_command): Remove unnecessary cast.
4828 * coffread.c (decode_type): Remove unnecessary cast.
4829 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4830 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4831 * tui/tui-stack.c (tui_show_locator_content)
4832 (tui_show_frame_info): Remove unnecessary cast.
4833 * tui/tui-win.c (tui_scroll_forward_command)
4834 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4835 (parse_scrolling_args): Remove unnecessary cast.
4836 * tui/tui-data.c (init_win_info, tui_del_window)
4837 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4838 (free_content_elements): Remove unnecessary cast.
4839 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4840 unnecessary cast.
4841 * tui/tui-source.c (tui_set_source_content)
4842 (tui_vertical_source_scroll): Remove unnecessary cast.
4843 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4844 cast.
4845 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4846 * tui/tui-regs.c (tui_display_registers_from)
4847 (tui_display_register): Remove unnecessary cast.
4848 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4849 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4850 (make_visible): Remove unnecessary cast.
4851 * tui/tui-winsource.c (tui_erase_source_content)
4852 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4853 unnecessary cast.
4854 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4855 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4856 * stabsread.c (read_type, read_array_type, read_range_type):
4857 Remove unnecessary cast.
4858 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4859 (parse_symbol, parse_type, upgrade_type, parse_external)
4860 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4861 unnecessary cast.
4862 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4863
730ead81
TT
48642019-06-16 Tom Tromey <tom@tromey.com>
4865
4866 * tui/tui-data.c (tui_alloc_generic_win_info)
4867 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4868 checks.
4869
584a927c
AB
48702019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4871 Andrew Burgess <andrew.burgess@embecosm.com>
4872
4873 * f-typeprint.c (f_print_type): Don't return early for not
4874 associated or not allocated types.
4875 (f_type_print_varspec_suffix): Add print_rank parameter and print
4876 ranks of array types in case they dangling.
4877 (f_type_print_base): Add print_rank parameter.
4878
30056ea0
AB
48792019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4880
4881 * NEWS: Mention new MI commands.
4882 * break-catch-throw.c (enum exception_event_kind): Move to
4883 breakpoint.h.
4884 (print_mention_exception_catchpoint): Output text as a single
4885 message.
4886 (catch_exception_command_1): Rename to...
4887 (catch_exception_event): ...this, make non-static, update header
4888 command, and change some parameter types.
4889 (catch_catch_command): Update for changes to
4890 catch_exception_command_1.
4891 (catch_throw_command): Likewise.
4892 (catch_rethrow_command): Likewise.
4893 * breakpoint.c (enum exception_event_kind): Delete.
4894 * breakpoint.h (enum exception_event_kind): Moved here from
4895 break-catch-throw.c.
4896 (catch_exception_event): Declare.
4897 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4898 (mi_cmd_catch_throw): New function.
4899 (mi_cmd_catch_rethrow): New function.
4900 (mi_cmd_catch_catch): New function.
4901 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4902 'catch-catch' entries.
4903 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4904 (mi_cmd_catch_rethrow): Declare.
4905 (mi_cmd_catch_catch): Declare.
4906
ec8e2b6d
AB
49072019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4908
4909 * annotate.c (annotate_source_line): Change return type to void,
4910 update implementation to match.
4911 * annotate.h (annotate_source_line): Change return type to void,
4912 update header comment.
4913 * stack.c (print_frame_info): Don't change what frame information
4914 is printed based on whether annotations are on or not.
4915
0d3abd8c
AB
49162019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4917
4918 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4919 (annotate_source): Make static.
4920 (annotate_source_line): Moved from source.c and renamed from
4921 identify_source_line. Update the return type.
4922 * annotate.h (annotate_source): Delete declaration.
4923 (annotate_source_line): Declaration moved from source.h, and
4924 renamed from identify_source_line. Return type updated.
4925 * source.c (identify_source_line): Moved to annotate.c and renamed
4926 to annotate_source_line.
4927 (info_line_command): Remove check of annotation_level.
4928 * source.h (identify_source_line): Move declaration to annotate.h
4929 and rename to annotate_source_line.
4930 * stack.c: Add 'annotate.h' include.
4931 (print_frame_info): Remove check of annotation_level before
4932 calling annotate_source_line.
4933
00df30ae
AB
49342019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4935
4936 * source-cache.c (source_cache::get_plain_source_lines): Use
4937 open_source_file_with_line_charpos instead of just
4938 open_source_file, remove call to find_source_lines.
4939 (source_cache::get_source_lines): Likewise.
4940 * source.c (find_source_lines): Make static.
4941 (get_filename_and_charpos): Renamed into...
4942 (open_source_file_with_line_charpos): ..this along with changes to
4943 return a scoped_fd, and some other minor clean ups.
4944 (identify_source_line): Use open_source_file_with_line_charpos.
4945 (search_command_helper): Use open_source_file_with_line_charpos
4946 instead of just open_source_file, remove call to
4947 find_source_lines.
4948 * source.h (open_source_file_with_line_charpos): Declare new
4949 function.
4950 (find_source_lines): Delete declaration.
4951
afda45a2
AB
49522019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4953
4954 * source.c (get_filename_and_charpos): Remove fullname
4955 parameter.
4956 (identify_source_line): Update call to get_filename_and_charpos.
4957
0735b091
TT
49582019-06-14 Tom Tromey <tromey@adacore.com>
4959
4960 PR gdb/24502:
4961 * ui-style.h (skip_ansi_escape): Update comment.
4962 * ui-file.h (class no_terminal_escape_file): New class.
4963 * ui-file.c (no_terminal_escape_file::write)
4964 (no_terminal_escape_file::puts): New methods.
4965 * cli/cli-logging.c (handle_redirections): Use
4966 no_terminal_escape_file.
4967
52ce35e2
TT
49682019-06-14 Tom Tromey <tromey@adacore.com>
4969
4970 * NEWS: Move convenience variable news above Python news.
4971
73cc7272
TT
49722019-06-14 Tom Tromey <tom@tromey.com>
4973
4974 * gnulib: Move directory to top-level.
4975 * configure.ac: Don't configure gnulib.
4976 * configure: Rebuild.
4977 * common/common-defs.h: Use new path to gnulib.
4978 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
4979 (GNULIB_H): Remove.
4980 (INCGNU): Look in new gnulib location.
4981 (HFILES_NO_SRCDIR): Remove gnulib files.
4982 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
4983 (generated_files): Remove GNULIB_H.
4984 ($(LIBGNU), all-lib): Remove targets.
4985 (distclean): Don't mention GNULIB_BUILDDIR.
4986 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
4987
f5686554
TT
49882019-06-14 Tom Tromey <tromey@adacore.com>
4989
4990 * symfile.c (add_symbol_file_command): Remove obsolete comment.
4991 Warn if symbol file does not provide any symbols.
4992
a0c1ffed
TT
49932019-06-14 Tom Tromey <tromey@adacore.com>
4994
4995 * source.c (find_and_open_source): Respect basenames_may_differ.
4996
7c39e397
AB
49972019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
4998
4999 * annotate.c (annotate_breakpoints_invalid): Make use of
5000 scoped_restore_terminal_state.
5001 (annotate_frames_invalid): Likewise.
5002
f411722c
TT
50032019-06-14 Tom Tromey <tromey@adacore.com>
5004
5005 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5006 allow assignment to an internalvar.
5007
4268ec18
TT
50082019-06-14 Tom Tromey <tromey@adacore.com>
5009
5010 * ada-lex.l: Allow "_" in attribute names.
5011
abdb711e
TT
50122019-06-14 Tom Tromey <tromey@adacore.com>
5013
5014 PR gdb/24653:
5015 * regcache.c (registers_changed): Don't call alloca.
5016 * top.c (execute_command): Don't call alloca.
5017
4c048731
PA
50182019-06-13 Pedro Alves <palves@redhat.com>
5019
5020 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5021 'expression'. When parsing an expression, error out if there's
5022 junk after "unlimited".
5023 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5024 (do_set_command): Adjust calls to is_unlimited_literal.
5025
66eb1ed3
PA
50262019-06-13 Pedro Alves <palves@redhat.com>
5027
5028 * compile/compile.c (make_compile_options_def_group): Add braces
5029 around array_view initializer.
5030 * thread.c (make_thread_apply_all_options_def_group)
5031 (make_thread_apply_all_options_def_group): Likewise.
5032
3345721a
PA
50332019-06-13 Pedro Alves <palves@redhat.com>
5034
5035 * NEWS (New commands): Mention "maint test-options
5036 require-delimiter", "maint test-options unknown-is-error", "maint
5037 test-options unknown-is-operand" and "maint show
5038 test-options-completion-result".
5039 (New command options, command completion): New section.
5040 (Completion improvements): New section.
5041 Mention that you can abbreviate "unlimited".
5042
6206060d
PA
50432019-06-13 Pedro Alves <palves@redhat.com>
5044
5045 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5046 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5047 * unittests/cli-utils-selftests.c (test_parse_flags)
5048 (test_parse_flags_qcs): Delete.
5049 (test_cli_utils): Don't call deleted functions.
5050
6665660a
PA
50512019-06-13 Pedro Alves <palves@redhat.com>
5052
5053 * thread.c: Include "cli/cli-option.h".
5054 (tp_array_compar_ascending): Global.
5055 (tp_array_compar): Delete function.
5056 (tp_array_compar_ascending, tp_array_compar_descending): New
5057 functions.
5058 (ascending_option_def, qcs_flag_option_def)
5059 (thr_qcs_flags_option_defs)
5060 (make_thread_apply_all_options_def_group)
5061 (make_thread_apply_options_def_group): New.
5062 (thread_apply_all_command): Use gdb::option::process_options.
5063 (thread_apply_command_completer)
5064 (thread_apply_all_command_completer): New.
5065 (thread_apply_command): Use gdb::option::process_options.
5066 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5067 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5068 to generate help text of "thread apply". Adjust "taas"'s help.
5069 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5070 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5071
f7e13587
PA
50722019-06-13 Pedro Alves <palves@redhat.com>
5073
5074 * thread.c (thread_apply_command): Check for invalid TID with
5075 isdigit instead of !isalpha.
5076
5d707134
PA
50772019-06-13 Pedro Alves <palves@redhat.com>
5078
5079 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5080 (validate_flags_qcs): New.
5081 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5082 (validate_flags_qcs): Declare.
5083 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5084 (make_frame_apply_options_def_group): New.
5085 (frame_apply_command_count): Process options with
5086 gdb::option::process_options.
5087 (frame_apply_completer): New.
5088 (frame_apply_level_completer, frame_apply_all_completer)
5089 (frame_apply_completer): New.
5090 (_initialize_stack): Update help of "frame apply", "frame apply
5091 level", "frame apply all" and "faas" to mention supported options
5092 and install command completers.
5093 * stack.h (frame_apply_all_completer): Declare.
5094 * thread.c: Include "stack.h".
5095 (tfaas_command): Add "--".
5096 (_initialize_thread): Update help "tfaas" to mention supported
5097 options and install command completer.
5098
272d4594
PA
50992019-06-13 Pedro Alves <palves@redhat.com>
5100
5101 * completer.c (complete_nested_command_line): New.
5102 (gdb_completion_word_break_characters_throw): Add assertion.
5103 * completer.h (complete_nested_command_line): Declare.
5104
90a1ef87
PA
51052019-06-13 Pedro Alves <palves@redhat.com>
5106
5107 * stack.c (parse_backtrace_qualifiers): New.
5108 (backtrace_command): Use it.
5109 (backtrace_command_completer): Complete on qualifiers.
5110
d4c16835
PA
51112019-06-13 Pedro Alves <palves@redhat.com>
5112
5113 * frame.c: Include "cli/cli-option.h.
5114 (user_set_backtrace_options): New.
5115 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5116 Delete.
5117 (get_prev_frame): Adjust.
5118 (boolean_option_def, uinteger_option_def)
5119 (set_backtrace_option_defs): New.
5120 (_initialize_frame): Adjust and use
5121 gdb::option::add_setshow_cmds_for_options to install "set
5122 backtrace past-main" and "set backtrace past-entry".
5123 * frame.h: Include "cli/cli-option.h".
5124 (struct frame_print_options): Forward declare.
5125 (print_frame_arguments_all, print_frame_arguments_scalars)
5126 (print_frame_arguments_none): Declare.
5127 (print_entry_values): Delete declaration.
5128 (struct frame_print_options, user_frame_print_options): New.
5129 (struct set_backtrace_options): New.
5130 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5131 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5132 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5133 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5134 (list_args_or_locals): Add frame_print_options parameter.
5135 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5136 * python/py-framefilter.c (enumerate_args): Pass down
5137 USER_FRAME_PRINT_OPTIONS.
5138 * stack.c: Include "cli/cli-option.h".
5139 (print_frame_arguments_all, print_frame_arguments_scalars)
5140 (print_frame_arguments_none): Declare.
5141 (print_raw_frame_arguments, print_entry_values): Delete.
5142 (user_frame_print_options): New.
5143 (boolean_option_def, enum_option_def, frame_print_option_defs):
5144 New.
5145 (struct backtrace_cmd_options): New.
5146 (bt_flag_option_def): New.
5147 (backtrace_command_option_defs): New.
5148 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5149 (print_frame_arg, read_frame_arg, print_frame_args)
5150 (print_frame_info, print_frame): Add frame_print_options parameter
5151 and use it.
5152 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5153 (backtrace_command_1): Add frame_print_options and
5154 backtrace_cmd_options parameters and use them.
5155 (make_backtrace_options_def_group): New.
5156 (backtrace_command): Process command options with
5157 gdb::option::process_options.
5158 (backtrace_command_completer): New.
5159 (_initialize_stack): Extend "backtrace"'s help to mention
5160 supported options. Install completer for "backtrace".
5161 Install some settings commands with add_setshow_cmds_for_options.
5162
2daf894e
PA
51632019-06-13 Pedro Alves <palves@redhat.com>
5164
5165 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5166 and that "set/show print raw frame-arguments" are now deprecated.
5167
5168 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5169 command.
5170 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5171 * stack.c (_initialize_stack): Install "set/show print
5172 raw-frame-arguments", and deprecate "set/show print raw
5173 frame-arguments".
5174 * valprint.c (_initialize_valprint): Deprecate "set/show print
5175 raw".
5176
e6ed716c
PA
51772019-06-13 Pedro Alves <palves@redhat.com>
5178
5179 * compile/compile.c (struct compile_options): New.
5180 (compile_flag_option_def, compile_command_option_defs)
5181 (make_compile_options_def_group): New.
5182 (compile_file_command): Handle options with
5183 gdb::option::process_options.
5184 (compile_file_command_completer): New function.
5185 (compile_code_command): Handle options with
5186 gdb::option::process_options.
5187 (compile_code_command_completer): New function.
5188 (_initialize_compiler): Install completers for "compile code" and
5189 "compile file". Mention available options in "compile code" and
5190 "compile code"'s help.
5191 * completer.c (advance_to_completion_word): New, factored out from
5192 ...
5193 (advance_to_expression_complete_word_point): ... this.
5194 (advance_to_filename_complete_word_point): New.
5195 * completer.h (advance_to_filename_complete_word_point): New
5196 declaration.
5197
7d8062de
PA
51982019-06-13 Pedro Alves <palves@redhat.com>
5199
5200 * compile/compile.c: Include "cli/cli-option.h".
5201 (compile_print_value): Scope data pointer is now a
5202 value_print_options pointer; adjust.
5203 (compile_print_command): Process options. Scope data pointer is
5204 now a value_print_options pointer; adjust.
5205 (_initialize_compile): Update "compile print"'s help to include
5206 supported options. Install a completer for "compile print".
5207 * cp-valprint.c (show_vtblprint, show_objectprint)
5208 (show_static_field_print): Delete.
5209 (_initialize_cp_valprint): Don't install "set print
5210 static-members", "set print vtbl", "set print object" here.
5211 * printcmd.c: Include "cli/cli-option.h" and
5212 "common/gdb_optional.h".
5213 (print_command_parse_format): Rework to fill in a
5214 value_print_options instead of a format_data.
5215 (print_value): Change parameter type from format_data pointer to
5216 value_print_options reference. Adjust.
5217 (print_command_1): Process options. Adjust to pass down a
5218 value_print_options.
5219 (print_command_completer): New.
5220 (_initialize_printcmd): Install print_command_completer as
5221 handle_brkchars completer for the "print" command. Update
5222 "print"'s help to include supported options.
5223 * valprint.c: Include "cli/cli-option.h".
5224 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5225 here from cp-valprint.c.
5226 (boolean_option_def, uinteger_option_def)
5227 (value_print_option_defs, make_value_print_options_def_group):
5228 New. Use gdb::option::add_setshow_cmds_for_options to install
5229 "set print elements", "set print null-stop", "set print repeats",
5230 "set print pretty", "set print union", "set print array", "set
5231 print address", "set print symbol", "set print array-indexes".
5232 * valprint.h: Include <string> and "cli/cli-option.h".
5233 (make_value_print_options_def_group): Declare.
5234 (print_value): Change parameter type from format_data pointer to
5235 value_print_options reference.
5236 (print_command_completer): Declare.
5237
9d0faba9
PA
52382019-06-13 Pedro Alves <palves@redhat.com>
5239
5240 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5241 (COMMON_SFILES): Add maint-test-settings.c.
5242 * cli/cli-decode.c (boolean_enums): New global, factored out from
5243 ...
5244 (add_setshow_boolean_cmd): ... here.
5245 * cli/cli-decode.h (boolean_enums): Declare.
5246 * cli/cli-option.c: New file.
5247 * cli/cli-option.h: New file.
5248 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5249 factored out from ...
5250 (parse_cli_boolean_value(const char *)): ... this.
5251 (is_unlimited_literal): Change parameter type to pointer to
5252 pointer. Adjust and advance ARG pointer.
5253 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5254 (parse_cli_var_enum): New, factored out from ...
5255 (do_set_command): ... this. Adjust.
5256 * cli/cli-setshow.h (parse_cli_boolean_value)
5257 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5258 (parse_cli_var_enum): Declare.
5259 * cli/cli-utils.c: Include "cli/cli-option.h".
5260 (get_ulongest): New.
5261 * cli/cli-utils.h (get_ulongest): Declare.
5262 (check_for_argument): New overloads.
5263 * maint-test-options.c: New file.
5264
2c722807
PA
52652019-06-13 Pedro Alves <palves@redhat.com>
5266
5267 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5268 parse a range if "-" is at the end of the string.
5269
dee7b4c8
PA
52702019-06-13 Pedro Alves <palves@redhat.com>
5271
5272 * cli/cli-setshow.c (parse_auto_binary_operation)
5273 (parse_cli_boolean_value): Don't allow "o".
5274
dca0f6c0
PA
52752019-06-13 Pedro Alves <palves@redhat.com>
5276
5277 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5278 * NEWS: Mention maint test-settings KIND.
5279 * maint-test-settings.c: New file.
5280
597bf39d
PA
52812019-06-13 Pedro Alves <palves@redhat.com>
5282
5283 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5284 completer.
5285 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5286 "set" completers.
5287
48c410fb
PA
52882019-06-13 Pedro Alves <palves@redhat.com>
5289
5290 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5291 after item.
5292
93bcb043
PA
52932019-06-13 Pedro Alves <palves@redhat.com>
5294
5295 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5296
cbba3ecd
PA
52972019-06-13 Pedro Alves <palves@redhat.com>
5298
5299 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5300 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5301 call.
5302 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5303 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5304 calls.
5305 (check_for_argument): Skip spaces after argument.
5306
b9a3f842
PA
53072019-06-13 Pedro Alves <palves@redhat.com>
5308
5309 * thread.c (thread_apply_command): Adjust TID parsing.
5310 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5311 detected before end of string.
5312 (tid_is_in_list): Error out if LIST is invalid.
5313
3844e605
PA
53142019-06-13 Pedro Alves <palves@redhat.com>
5315
5316 * completer.c (complete_line_internal_1): Rewind completion word
5317 point.
5318 (completion_tracker::advance_custom_word_point_by): Change
5319 parameter type to int.
5320 * completer.h (completion_tracker::advance_custom_word_point_by):
5321 Likewise.
5322
00b56dbe
PA
53232019-06-13 Pedro Alves <palves@redhat.com>
5324
5325 * completer.c (advance_to_completion_word): Handle delimiters.
5326
d106773e
PA
53272019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5328
5329 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5330
08f10e02
TT
53312019-06-11 Tom Tromey <tom@tromey.com>
5332
5333 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5334 (xmalloc_failed): Move to alloc.c.
5335 * alloc.c: New file.
5336 * Makefile.in (COMMON_SFILES): Add alloc.c.
5337
1c7fe951
TT
53382019-06-11 Tom Tromey <tom@tromey.com>
5339
5340 * nat/linux-waitpid.c: Don't include server.h.
5341 (linux_debug): Remove.
5342 (my_waitpid): Update.
5343
89549d7f
TT
53442019-06-11 Tom Tromey <tromey@adacore.com>
5345
5346 * infcall.c (_initialize_infcall): Remove trailing newline from
5347 help.
5348 * user-regs.c (_initialize_user_regs): Remove trailing newline
5349 from help.
5350 * typeprint.c (_initialize_typeprint): Remove trailing newline
5351 from help.
5352 * reverse.c (_initialize_reverse): Remove trailing newlines from
5353 help.
5354 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5355 from help.
5356 * language.c (add_set_language_command): Remove trailing newline
5357 from help.
5358 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5359 help.
5360 * disasm.c (_initialize_disasm): Remove trailing newline from
5361 help.
5362 * top.c (init_main): Remove trailing newline from help.
5363 * interps.c (_initialize_interpreter): Remove trailing newline
5364 from help.
5365 * btrace.c (_initialize_btrace): Remove trailing newlines from
5366 help.
5367 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5368 from help.
5369 * python/python.c (_initialize_python): Remove trailing newline
5370 from help.
5371 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5372 help.
5373 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5374 from help. Reformat some text.
5375 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5376 from help.
5377 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5378 newline from help.
5379
86108c13
TT
53802019-06-11 Tom Tromey <tromey@adacore.com>
5381
5382 * darwin-nat.c (darwin_decode_exception_message)
5383 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5384
a7067863
AB
53852019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5386
5387 * valops.c (value_slice): Check for not allocated or not
5388 associated values.
5389
9ab08412
TV
53902019-06-10 Tom de Vries <tdevries@suse.de>
5391
5392 PR gdb/24618
5393 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5394 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5395 invalid.
5396
f19e22e9
TV
53972019-06-10 Tom de Vries <tdevries@suse.de>
5398
5399 PR gdb/24611
5400 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5401 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5402
e99f9db0
TV
54032019-06-10 Tom de Vries <tdevries@suse.de>
5404
5405 PR symtab/24545
5406 * symtab.c (struct demangled_name_entry): Add language field.
5407 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5408 static minimal symbol". Set and use language field.
5409
9bf7038b
TT
54102019-06-10 Tom Tromey <tromey@adacore.com>
5411
5412 * ada-lang.c (_initialize_ada_language): Update help text.
5413
422186a9
TT
54142019-06-10 Tom Tromey <tromey@adacore.com>
5415
5416 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5417 with a newline.
5418 * guile/guile.c (handle_boot_error): Don't end warning with a
5419 newline.
5420 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5421 warning with a newline.
5422 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5423 newline.
5424 (s12z_frame_cache): Likewise.
5425 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5426 a newline.
5427 * solib-svr4.c (disable_probes_interface): Don't end warning with
5428 a newline.
5429 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5430 newline.
5431 * python/python.c (do_finish_initialization): Don't end warning
5432 with a newline.
5433
25ce02ee
TT
54342019-06-10 Tom Tromey <tom@tromey.com>
5435
5436 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5437 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5438 gdbpy_enter.
5439
caa429d8
TT
54402019-06-10 Tom Tromey <tromey@adacore.com>
5441
5442 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5443 data.
5444 (elf_new_init): Don't call stabsread_new_init.
5445 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5446 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5447 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5448
81873cc8
TV
54492019-06-10 Tom de Vries <tdevries@suse.de>
5450
5451 PR symtab/16264
5452 PR symtab/24517
5453 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5454
4fa0265e
РИ
54552019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5456
5457 * source.c (find_and_open_source): Also rewrite relative file
5458 names.
5459
1a3da2cd
AB
54602019-04-26 Amos Bird <amosbird@gmail.com>
5461
5462 * annotate.c (annotate_thread_exited): Add "thread-exited"
5463 annotation.
5464
3847a7bf
TT
54652019-06-06 Tom Tromey <tromey@adacore.com>
5466
5467 * maint.h (class scoped_command_stats): Use
5468 DISABLE_COPY_AND_ASSIGN.
5469 <print_time>: New method.
5470 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5471 print_time.
5472 (scoped_command_stats::print_time): New method.
5473
312617a3
AB
54742019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5475
5476 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5477 instructions of lengths 6 or 8 bytes.
5478
b02f78f9
PA
54792019-06-04 Pedro Alves <palves@redhat.com>
5480
5481 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5482
5483 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5484 * breakpoint.c (condition_completer): Likewise.
5485 * cli/cli-dump.c (scan_expression): Likewise.
5486 * common/filestuff.c (mkdir_recursive): Likewise.
5487 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5488 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5489 (gdb_abspath): Likewise.
5490 * compile/compile-cplus-types.c
5491 (compile_cplus_instance::decl_name): Likewise.
5492 * completer.c (complete_explicit_location):
5493 (signal_completer, reg_or_group_completer_1): Likewise.
5494 * cp-support.c (cp_remove_params_if_any): Likewise.
5495 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5496 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5497 * infcmd.c (strip_bg_char): Likewise.
5498 * linespec.c (copy_token_string): Likewise.
5499 * mi/mi-main.c (output_cores): Likewise.
5500 * psymtab.c (psymtab_search_name):
5501 * symfile.c (test_set_ext_lang_command): Likewise.
5502 * target.c (target_fileio_read_stralloc): Likewise.
5503 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5504 * value.c (complete_internalvar): Likewise.
5505
e1f2e1a2
CB
55062019-06-04 Christian Biesinger <cbiesinger@google.com>
5507
5508 Add objfile property to gdb.Type.
d3238f7d
PA
5509 * NEWS: Mention Python API addition.
5510 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 5511
e664d728
PW
55122019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5513
5514 * NEWS: Mention the new set|show style [title|highlight].
5515 Mention changes to "show style", "help" and "apropos".
5516
66d8c862
PW
55172019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5518
5519 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5520 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5521 instead of print_help_for_command.
5522 (print_doc_of_command): New function.
5523 (help_list): Add 'apropos -v word' suggestion.
5524 (print_help_for_command): Style the command name using title style.
5525 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5526 (_initialize_cli_cmds): Describe -v in apropos_command help.
5527
9303eb2f
PW
55282019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5529
5530 * cli/cli-style.h (cli_style_option): Add name in constructor,
5531 add m_name class member, add constructor with intensity,
5532 add name class function.
5533 (cli_style_option::add_setshow_commands): Remove name argument.
5534 (highlight_style, title_style): New styles.
5535 * cli/cli-style.c (do_show): New function that shows a style
5536 characteristic styling the style name with itself.
5537 (set_style_name): New function.
5538 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5539 Update all callers according to the changes in cli/cli-style.h.
5540 * utils.h (fputs_highlighted): New function.
5541 * utils.c (fputs_highlighted): Likewise.
5542
e2c52041
PW
55432019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5544
5545 * NEWS: Mention new pipe command and new convenience variables.
5546
947d3946
PW
55472019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5548
5549 * cli/cli-cmds.c (pipe_command): New function.
5550 (_initialize_cli_cmds): Call add_com for pipe_command.
5551 Define | as an alias for pipe.
5552 (exit_status_set_internal_vars): New function.
5553 (shell_escape): Call exit_status_set_internal_vars.
5554 cli/cli-decode.c (find_command_name_length): Recognize | as
5555 a single character command.
5556
b8fd0918
PW
55572019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5558
5559 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5560 top.c (execute_command_to_ui_file): New function, mostly a copy
5561 of execute_command_to_string.
5562 (execute_command_to_string): Implement by calling
5563 execute_command_to_ui_file.
5564
68bb5386
PW
55652019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5566
5567 * top.h (saved_command_line): Remove declaration.
5568 * top.c (previous_saved_command_line, previous_repeat_arguments):
5569 New variables.
5570 (saved_command_line): Make static, define together with other
5571 'repeat variables'.
5572 (dont_repeat): Clear repeat_arguments.
5573 (repeat_previous, get_saved_command_line, save_command_line):
5574 New functions.
5575 (gdb_init): Initialize saved_command_line
5576 and previous_saved_command_line.
5577 * main.c (captured_main_1): Remove saved_command_line initialization.
5578 * event-top.c (handle_line_of_input): Update to use
5579 the new 'repeat' related functions instead of direct access to
5580 saved_command_line.
5581 * command.h (repeat_previous, get_saved_command_line,
5582 save_command_line): New declarations.
5583 (dont_repeat): Add comment.
5584
bfcdb852
TT
55852019-05-30 Tom Tromey <tromey@adacore.com>
5586
5587 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5588 Fix comment.
5589 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5590
0ef209f2
JV
55912019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5592
5593 PR cli/24587
5594 * completer.c (complete): Initialize variable word.
5595
955b06fa
SDJ
55962019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5597
5598 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5599 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5600 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5601 'body' is NULL to the outter 'if', protecting the '!is_define'
5602 situation as well.
5603
fa9c3fa0
TT
56042019-05-29 Tom Tromey <tromey@adacore.com>
5605
5606 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5607 (dwarf_unknown): New function.
5608 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5609 (dwarf_type_encoding_name): Use dwarf_unknown.
5610
4330d61d
TT
56112019-05-29 Tom Tromey <tromey@adacore.com>
5612
5613 PR c++/20020:
5614 * cp-valprint.c (cp_print_value_fields): Call
5615 cp_print_static_field inside "try".
5616
33a6bc35
TT
56172019-05-29 Tom Tromey <tromey@adacore.com>
5618
5619 * inflow.c (struct terminal_info): Add default operator=.
5620 * configure: Rebuild.
5621 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5622 -Wdeprecated-copy-dtor, -Wredundant-move.
5623
000439d5
TT
56242019-05-29 Tom Tromey <tromey@adacore.com>
5625
5626 * NEWS: Add entry.
5627 * infcmd.c (print_return_value_1): Handle finish_print
5628 option.
5629 (show_print_finish): New function.
5630 (_initialize_infcmd): Add "set/show print finish" commands.
5631 * valprint.c (user_print_options): Initialize new member.
5632 * valprint.h (struct value_print_options) <finish_print>: New
5633 member.
5634
c0e70c62
TT
56352019-05-28 Tom Tromey <tromey@adacore.com>
5636
5637 * ada-lang.c (ada_remove_Xbn_suffix)
5638 (find_old_style_renaming_symbol)
5639 (parse_old_style_renaming): Remove.
5640 (ada_find_renaming_symbol): Don't call
5641 find_old_style_renaming_symbol.
5642 (ada_is_renaming_symbol): Rename from
5643 ada_find_renaming_symbol. Remove "block" parameter. Return
5644 bool. Now static.
5645 (ada_read_var_value): Update and simplify.
5646 * ada-exp.y (write_var_or_type): Remove old code.
5647
766f8836
AH
56482019-05-28 Alan Hayward <alan.hayward@arm.com>
5649
5650 * event-top.c: Remove include comment.
5651 * inflow.c (class scoped_ignore_sigttou): Move from here...
5652 * inflow.h (class scoped_ignore_sigttou): ...to here.
5653 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5654 * top.c: Remove include comment.
5655
eb41253a
TT
56562019-05-27 Tom Tromey <tom@tromey.com>
5657
5658 * NEWS: Fix typo.
5659
4ca51187
TT
56602019-05-22 Tom Tromey <tromey@adacore.com>
5661
5662 * target.c (target_follow_exec): Constify parameter.
5663 * target-delegates.c: Rebuild.
5664 * remote.c (remote_target::follow_exec): Constify parameter.
5665 * infrun.c (follow_exec): Constify parameter.
5666 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5667 (target_follow_exec): Likewise.
5668
8fca4da0
AH
56692019-05-22 Alan Hayward <alan.hayward@arm.com>
5670
5671 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5672 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5673
b7060614
AH
56742019-05-22 Alan Hayward <alan.hayward@arm.com>
5675
5676 * NEWS: Add debugredirect and testsuite sections.
5677
0a5954bd
SC
56782019-05-22 Simon Cook <simon.cook@embecosm.com>
5679
5680 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5681 target descriptions using exclusively floating point register name
5682 aliases.
5683
dc42e902
AB
56842019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5685
5686 PR gdb/18644:
5687 * f-lang.c (build_fortran_types): Handle the case where
5688 gdbarch_floatformat_for_type returns a nullptr.
5689
fb7806c7
TV
56902019-05-21 Tom de Vries <tdevries@suse.de>
5691
5692 PR cli/24587
5693 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5694
34d11c68
AB
56952019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5696
5697 PR gdb/18644:
5698 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5699 16-byte floats.
5700 * i386-tdep.c (i386_floatformat_for_type): Use
5701 floatformats_ia64_quad for the 16-byte floating point component
5702 within a fortran 32-byte complex number.
5703
122cf0f2
AB
57042019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5705
5706 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5707 delete default constructor.
5708 (find_partial_die): Update to return const struct.
5709 (partial_die_parent_scope): Move variable declaration into scope
5710 of its use and change its type to auto.
5711 (guess_partial_die_structure_name): Likewise.
5712 (partial_die_info::fixup): Likewise.
5713
33d0e35a
TT
57142019-05-17 Tom Tromey <tromey@adacore.com>
5715
5716 * source.c (find_and_open_source): Remove cast.
5717
a45575b0
TT
57182019-05-17 Tom Tromey <tromey@adacore.com>
5719
5720 * annotate.c (annotate_source): Make "filename" const.
5721 * annotate.h (annotate_source): Use const.
5722
81f47ac2
AH
57232019-05-17 Alan Hayward <alan.hayward@arm.com>
5724
5725 * disasm.c (set_disassembler_options): Send errors to stderr.
5726
ca1285d1
AH
57272019-05-17 Alan Hayward <alan.hayward@arm.com>
5728
5729 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5730 (cli_interp_base::set_logging): Check debug_redirect.
5731 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5732 * cli/cli-logging.c (debug_redirect): Add static variable.
5733 (pop_output_files): Add default param.
5734 (handle_redirections): Print debug setting.
5735 (show_logging_command): Likewise.
5736 (_initialize_cli_logging): Add debugredirect command.
5737 * interps.c (current_interp_set_logging): Add debug_redirect
5738 parameter.
5739 * interps.h (set_logging): Add debug_redirect parameter.
5740 (current_interp_set_logging): Likewise.
5741 * mi/mi-common.h: Likewise.
5742 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5743
57442019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
5745 Tom Tromey <tromey@adacore.com>
5746
5747 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5748 directly.
5749 * cli/cli-interp.h (make_logging_output): Remove declaration.
5750 * cli/cli-logging.c (make_logging_output): Remove function.
5751 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5752 directly.
5753 * ui-file.c (tee_file::tee_file): Remove bools.
5754 (tee_file::~tee_file): Remove deletes.
5755 * ui-file.h (tee_file): Remove bools.
5756
26648588
JV
57572019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5758
5759 * mi/mi-cmds.h (mi_cmd_complete): New function.
5760 * mi/mi-main.c (mi_cmd_complete): Likewise.
5761 * mi/mi-cmds.c: Define new MI command -complete.
5762 * NEWS: Mention new -complete command.
5763
6e035501
JV
57642019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5765
5766 * completer.h (complete): New function.
5767 * completer.c (complete): Likewise.
5768 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5769 function defined in completer.h.
5770
7d0e2ece
JV
57712019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5772
e79be6e5 5773 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 5774
fb816e8b
TV
57752019-05-17 Tom de Vries <tdevries@suse.de>
5776
5777 PR gdb/24094
5778 * dwarf2read.c (struct cu_partial_die_info): New struct.
5779 (find_partial_die): Return cu_partial_die_info.
5780 (partial_die_parent_scope, guess_partial_die_structure_name)
5781 (partial_die_info::fixup): Handle new return type of find_partial_die.
5782
677052f2
SDJ
57832019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5784
5785 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5786 "std::string", simplifying the algorithm.
5787
f3da9116
SDJ
57882019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5789
5790 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5791 (stap_static_probe_ops::get_probes): Likewise.
5792
f1bb75ab
SDJ
57932019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5794
5795 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5796 '-')" and "else if".
5797 (stap_parse_single_operand): Join checks for
5798 "gdbarch_stap_parse_special_token_p" and
5799 "gdbarch_stap_parse_special_token" in the same "if" statement.
5800 Invert check when verifying for operation on register
5801 displacement.
5802
3ca58cde
SDJ
58032019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5804
5805 * stap-probe.c (stap_get_opcode): Update comment.
5806 (stap_get_expected_argument_type): Likewise.
5807 (handle_stap_probe): Likewise.
5808
af2d9bee
SDJ
58092019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5810
5811 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5812 return type to 'bool'. Adjust comment. Use 'bool' when
5813 appropriate.
5814 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5815 * stap-probe.c (stap_parse_argument_1): Likewise.
5816 (stap_is_operator): Likewise.
5817 (stap_is_generic_prefix): Likewise.
5818 (stap_is_register_prefix): Likewise.
5819 (stap_is_register_indirection_prefix): Likewise.
5820 (stap_is_integer_prefix): Likewise.
5821 (stap_generic_check_suffix): Likewise.
5822 (stap_check_integer_suffix): Likewise.
5823 (stap_check_register_suffix): Likewise.
5824 (stap_check_register_indirection_suffix): Likewise.
5825 (stap_parse_register_operand): Likewise.
5826 (stap_parse_single_operand): Likewise.
5827 (stap_parse_argument_1): Likewise.
5828 (stap_probe::get_argument_count): Likewise.
5829 (stap_is_operator): Likewise.
5830
61c9c421
TT
58312019-05-16 Tom Tromey <tromey@adacore.com>
5832
5833 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5834 keyword to foreach.
5835
9ddc1af1
SM
58362019-05-15 Simon Marchi <simon.marchi@efficios.com>
5837
5838 * linux-thread-db.c (try_thread_db_load_1): Change return type
5839 to bool.
5840 (try_thread_db_load): Likewise.
5841 (try_thread_db_load_from_pdir_1): Likewise.
5842 (try_thread_db_load_from_pdir): Likewise.
5843 (try_thread_db_load_from_sdir): Likewise.
5844 (try_thread_db_load_from_dir): Likewise.
5845 (thread_db_load_search): Likewise.
5846 (has_libpthread): Likewise.
5847 (thread_db_load): Likewise.
5848
7bede828
SDJ
58492019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5850
5851 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5852 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5853 NULL, and complain/return if that's the case.
5854
c5358db4
JD
58552019-05-15 John Darrington <john@darrington.wattle.id.au>
5856
5857 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5858 (advance, posn, abstract_read_memory): New functions.
5859 [struct mem_read_abstraction]: New struct.
5860 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5861
c408a94f
TT
58622019-05-14 Tom Tromey <tromey@adacore.com>
5863
5864 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5865 value is not lval_memory.
5866
e7bd7fba
TT
58672019-05-14 Tom Tromey <tromey@adacore.com>
5868
5869 * solib.c (info_sharedlibrary_command): Style the file name.
5870
a6d0f249
AH
58712019-05-14 Alan Hayward <alan.hayward@arm.com>
5872
5873 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5874 (aarch64_vnv_type): Likewise.
5875 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5876 * common/tdesc.c: Likewise.
5877 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5878 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5879 * features/aarch64-fpu.xml: Add ieee half view.
5880 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5881 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5882 * gdbtypes.h (struct builtin_type): Likewise.
5883 (struct objfile_type): Likewise.
5884
66b8bb74
SM
58852019-05-12 Paul Naert <paul.naert@polymtl.ca>
5886
5887 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5888 typo.
5889 * location.h (string_to_event_location): Likewise.
5890
21c219fd
JB
58912019-05-11 Joel Brobecker <brobecker@adacore.com>
5892
5893 GDB 8.3 released.
5894
13674803
SM
58952019-05-10 Simon Marchi <simon.marchi@efficios.com>
5896
5897 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5898 New variable declaration.
5899 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5900 New variable.
5901 (print_one_breakpoint): Use ui_out::test_flags and new global
5902 variable to compute use_fixed_output.
5903 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5904 Remove.
5905 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5906 (mi_multi_location_breakpoint_output_fixed): Remove.
5907 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5908 new variable.
5909 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5910 fix_multi_location_breakpoint_output flag if version >= 3.
5911 * ui-out.h (enum ui_out_flag)
5912 <fix_multi_location_breakpoint_output>: New enumerator.
5913
a9eac7f9
SM
59142019-05-10 Simon Marchi <simon.marchi@efficios.com>
5915
5916 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5917
71bed2db
TT
59182019-05-10 Tom Tromey <tromey@adacore.com>
5919
5920 * ada-lang.c (catch_ada_completer): New function.
5921 (_initialize_ada_language): Use it.
5922
24c54127
TT
59232019-05-10 Tom Tromey <tromey@adacore.com>
5924
5925 * thread.c (print_thread_info): Make "requested_threads" const.
5926 * gdbthread.h (print_thread_info): Make "requested_threads"
5927 const.
5928 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5929 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5930
7a102139
TT
59312019-05-08 Tom Tromey <tom@tromey.com>
5932
5933 * gdbtypes.c (objfile_type_data): Change type.
5934 (objfile_type, _initialize_gdbtypes): Update.
5935
924d79e2
TT
59362019-05-08 Tom Tromey <tom@tromey.com>
5937
5938 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5939 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5940 (_initialize_dwarf2_frame): Update.
5941
4c58e337
TT
59422019-05-08 Tom Tromey <tom@tromey.com>
5943
5944 * objc-lang.c (objc_objfile_data): Change type.
5945 (find_methods): Update.
5946 (_initialize_objc_lang): Remove.
5947
d772d2ab
TT
59482019-05-08 Tom Tromey <tom@tromey.com>
5949
5950 * stabsread.c (rs6000_builtin_type_data): Change type.
5951 (rs6000_builtin_type, _initialize_stabsread): Update.
5952
d11d83f4
TT
59532019-05-08 Tom Tromey <tom@tromey.com>
5954
5955 * mips-tdep.c (mips_pdr_data): Remove.
5956 (_initialize_mips_tdep): Update.
5957
9a73f0ad
TT
59582019-05-08 Tom Tromey <tom@tromey.com>
5959
5960 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5961 (hppa_init_objfile_priv_data, read_unwind_info)
5962 (find_unwind_entry, _initialize_hppa_tdep): Update.
5963
8127a2fa
TT
59642019-05-08 Tom Tromey <tom@tromey.com>
5965
5966 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5967 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5968 on obstack.
5969 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5970
91d3055d
TT
59712019-05-08 Tom Tromey <tom@tromey.com>
5972
5973 * mdebugread.c (basic_type_data): Change type.
5974 (basic_type, _initialize_mdebugread): Update.
5975
31930bd3
TT
59762019-05-08 Tom Tromey <tom@tromey.com>
5977
5978 * common/gdb_unique_ptr.h (struct noop_deleter): New.
5979
bdb3ed9e
TT
59802019-05-08 Tom Tromey <tom@tromey.com>
5981
5982 * nto-tdep.c (nto_inferior_data_reg): Change type.
5983 (nto_inferior_data): Update.
5984 (nto_inferior_data_cleanup, nto_new_inferior_data)
5985 (_initialize_nto_tdep): Remove.
5986 * nto-tdep.h (struct nto_inferior_data): Add initializers.
5987
f37b313d
TT
59882019-05-08 Tom Tromey <tom@tromey.com>
5989
5990 * ada-lang.c (struct ada_inferior_data): Add initializers.
5991 (ada_inferior_data): Change type.
5992 (ada_inferior_data_cleanup): Remove.
5993 (get_ada_inferior_data, ada_inferior_exit)
5994 (struct ada_pspace_data): Add initializers, destructor.
5995 (ada_pspace_data_handle): Change type.
5996 (get_ada_pspace_data): Update.
5997 (ada_pspace_data_cleanup): Remove.
5998
24699405
TT
59992019-05-08 Tom Tromey <tom@tromey.com>
6000
6001 * coffread.c (struct coff_symfile_info): Add initializers.
6002 (coff_objfile_data_key): Move lower. Change type.
6003 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6004 Update.
6005 (coff_free_info): Remove.
6006
d4e05d2f
TT
60072019-05-08 Tom Tromey <tom@tromey.com>
6008
6009 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6010 (fbsd_pspace_data_handle): Move lower. Change type.
6011 (get_fbsd_pspace_data): Update.
6012 (fbsd_pspace_data_cleanup): Remove.
6013 (_initialize_fbsd_tdep): Update.
6014
14ef6690
TT
60152019-05-08 Tom Tromey <tom@tromey.com>
6016
6017 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6018 (get_ada_tasks_pspace_data): Update.
6019 (ada_tasks_pspace_data_cleanup): Remove.
6020 (_initialize_tasks): Update.
6021 (ada_tasks_inferior_data_handle): Change type.
6022 (get_ada_tasks_inferior_data): Update.
6023 (ada_tasks_inferior_data_cleanup): Remove.
6024 (struct ada_tasks_pspace_data): Add initializers.
6025
814cf43a
TT
60262019-05-08 Tom Tromey <tom@tromey.com>
6027
6028 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6029 * symfile-debug.c (debug_sym_get_probes): Change type.
6030 * stap-probe.c (handle_stap_probe):
6031 (stap_static_probe_ops::get_probes): Change type.
6032 * probe.h (class static_probe_ops) <get_probes>: Change type.
6033 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6034 (parse_probes_in_pspace): Update.
6035 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6036 Update.
6037 (any_static_probe_ops::get_probes): Change type.
6038 * elfread.c (elfread_data): New typedef.
6039 (probe_key): Change type.
6040 (elf_get_probes): Likewise. Update.
6041 (probe_key_free): Remove.
6042 (_initialize_elfread): Update.
6043 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6044 Change type.
6045 (dtrace_process_dof_probe, dtrace_process_dof)
6046 (dtrace_static_probe_ops::get_probe): Change type.
6047
02dc647e
TT
60482019-05-08 Tom Tromey <tom@tromey.com>
6049
6050 * xcoffread.c (struct xcoff_symfile_info): Rename from
6051 coff_symfile_info. Add initializers.
6052 (xcoff_objfile_data_key): Move lower. Change type.
6053 (XCOFF_DATA): Rewrite.
6054 (xcoff_free_info): Remove.
6055 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6056 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6057 (xcoff_initial_scan): Update.
6058
09232438
TT
60592019-05-08 Tom Tromey <tom@tromey.com>
6060
6061 * solib-svr4.c (struct svr4_info): Add initializers and
6062 destructor.
6063 <probes_table>: Now an htab_up.
6064 (solib_svr4_pspace_data): Change type.
6065 (free_probes_table): Simplify.
6066 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6067 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6068 (probes_table_remove_objfile_probes, register_solib_event_probe)
6069 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6070 (_initialize_svr4_solib): Update.
6071
7b4a314f
TT
60722019-05-08 Tom Tromey <tom@tromey.com>
6073
6074 * remote.c (remote_pspace_data): Change type.
6075 (remote_pspace_data_cleanup): Remove.
6076 (get_remote_exec_file, set_pspace_remote_exec_file)
6077 (_initialize_remote): Update.
6078
51d3063a
TT
60792019-05-08 Tom Tromey <tom@tromey.com>
6080
6081 * breakpoint.c (breakpoint_objfile_key): Change type.
6082 (get_breakpoint_objfile_data): Update.
6083 (free_breakpoint_objfile_data): Remove.
6084 (_initialize_breakpoint): Update.
6085
89fb8848
TT
60862019-05-08 Tom Tromey <tom@tromey.com>
6087
6088 * linux-tdep.c (struct linux_info): Add initializers.
6089 (linux_inferior_data): Move. Change type.
6090 (invalidate_linux_cache_inf): Update.
6091 (linux_inferior_data_cleanup): Remove.
6092 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6093
e9b89e2d
TT
60942019-05-08 Tom Tromey <tom@tromey.com>
6095
6096 * auxv.c (auxv_inferior_data): Move. Change type.
6097 (auxv_inferior_data_cleanup): Remove.
6098 (invalidate_auxv_cache_inf): Rewrite.
6099 (get_auxv_inferior_data, _initialize_auxv): Update.
6100
8c42777c
TT
61012019-05-08 Tom Tromey <tom@tromey.com>
6102
6103 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6104 (symfile_debug_objfile_data_key): Change type.
6105 (symfile_debug_installed, debug_qf_has_symbols)
6106 (debug_qf_find_last_source_symtab)
6107 (debug_qf_forget_cached_source_info)
6108 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6109 (debug_qf_print_stats, debug_qf_dump)
6110 (debug_qf_expand_symtabs_for_function)
6111 (debug_qf_expand_all_symtabs)
6112 (debug_qf_expand_symtabs_with_fullname)
6113 (debug_qf_map_matching_symbols)
6114 (debug_qf_expand_symtabs_matching)
6115 (debug_qf_find_pc_sect_compunit_symtab)
6116 (debug_qf_map_symbol_filenames)
6117 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6118 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6119 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6120 (debug_sym_read_linetable, debug_sym_relocate): Update.
6121 (symfile_debug_free_objfile): Remove.
6122 (install_symfile_debug_logging, _initialize_symfile_debug):
6123 Update.
6124
5bfd760d
TT
61252019-05-08 Tom Tromey <tom@tromey.com>
6126
6127 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6128 allocate_on_obstack.
6129 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6130 (get_dwarf2_per_objfile): Update.
6131 (set_dwarf2_per_objfile): Remove.
6132 (dwarf2_has_info, dwarf2_get_section_info): Update.
6133 (dwarf2_free_objfile): Remove.
6134 (_initialize_dwarf2_read): Update.
6135
e85e19b4
TT
61362019-05-08 Tom Tromey <tom@tromey.com>
6137
6138 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6139 initializers.
6140 <unsupported_script_warning_printed,
6141 script_not_found_warning_printed>: Now bool.
6142 (auto_load_pspace_data): Change type.
6143 (~auto_load_pspace_info): Rename from
6144 auto_load_pspace_data_cleanup.
6145 (get_auto_load_pspace_data, init_loaded_scripts_info)
6146 (clear_section_scripts, maybe_print_unsupported_script_warning)
6147 (maybe_print_script_not_found_warning, _initialize_auto_load):
6148 Update.
6149
f6aa7436
TT
61502019-05-08 Tom Tromey <tom@tromey.com>
6151
6152 * objfiles.c (objfile_pspace_info): Add destructor and
6153 initializers.
6154 (objfiles_pspace_data): Change type.
6155 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6156 (get_objfile_pspace_data): Update.
6157 (objfiles_bfd_data): Change type.
6158 (get_objfile_bfd_data): Update.
6159 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6160
6ae614f6
TT
61612019-05-08 Tom Tromey <tom@tromey.com>
6162
6163 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6164 Change type.
6165 (get_catch_syscall_inferior_data): Update.
6166 (catch_syscall_inferior_data_cleanup): Remove.
6167 (_initialize_break_catch_syscall): Update.
6168
6509b8eb
TT
61692019-05-08 Tom Tromey <tom@tromey.com>
6170
6171 * inflow.c (struct terminal_info): Add destructor and
6172 initializers.
6173 (inflow_inferior_data): Change type.
6174 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6175 (get_inflow_inferior_data, inflow_inferior_exit)
6176 (swap_terminal_info, _initialize_inflow): Update.
6177
35632941
TT
61782019-05-08 Tom Tromey <tom@tromey.com>
6179
6180 * target-dcache.c (target_dcache_cleanup): Remove.
6181 (target_dcache_aspace_key): Change type.
6182 (target_dcache_init_p, target_dcache_invalidate)
6183 (target_dcache_get, target_dcache_get_or_init)
6184 (_initialize_target_dcache): Update.
6185 * dcache.h (struct dcache_deleter): New.
6186
3017b94d
TT
61872019-05-08 Tom Tromey <tom@tromey.com>
6188
6189 * symtab.c (struct symbol_cache): Add destructor and
6190 initializers.
6191 (symbol_cache_key): Move. Change type.
6192 (make_symbol_cache, free_symbol_cache): Remove.
6193 (get_symbol_cache): Update.
6194 (symbol_cache_cleanup): Remove.
6195 (ALL_PSPACES, symbol_cache_flush)
6196 (maintenance_print_symbol_cache)
6197 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6198 Update.
6199
a32ad8c5
TT
62002019-05-08 Tom Tromey <tom@tromey.com>
6201
6202 * symtab.c (struct main_info): Add destructor and initializers.
6203 (main_progspace_key): Move. Change type.
6204 (get_main_info): Update.
6205 (main_info_cleanup): Remove.
6206 (_initialize_symtab): Update.
6207
5f6e90a0
TT
62082019-05-08 Tom Tromey <tom@tromey.com>
6209
6210 * registry.h (DECLARE_REGISTRY): Define the _key class.
6211
1bd0c6e4
AB
62122019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6213
6214 * NEWS: Merge two 'New commands' sections.
6215
2228ef77
XR
62162019-05-08 Joel Brobecker <brobecker@adacore.com>
6217
6218 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6219 parameter and use Ada language definition instead.
6220 (ada_val_print_ptr): Remove unused language parameter.
6221 (ada_val_print_num): Remove language parameter and use Ada language
6222 definition instead.
6223 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6224 parameter.
6225 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6226 parameter and use Ada language definition instead.
6227 (ada_val_print_1): Update all ada_val_print_xxx calls.
6228 Remove language parameter.
6229 (ada_val_print): Update ada_val_print_1 call.
6230
60fcc1c3
TT
62312019-05-08 Tom Tromey <tromey@adacore.com>
6232
6233 * remote.c (remote_hw_watchpoint_limit)
6234 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6235 Now static.
6236
ed2b7c17
TT
62372019-05-08 Tom Tromey <tromey@adacore.com>
6238
6239 * maint.c (_initialize_maint_cmds): Move initialization code to
6240 remote.c.
6241 (watchdog, show_watchdog): Move to remote.c.
6242 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6243 "watchdog" static.
6244 (_initialize_remote): Move initialization code from maint.c.
6245 * defs.h (watchdog): Don't declare.
6246
b0be6c91
TT
62472019-05-08 Tom Tromey <tromey@adacore.com>
6248
6249 * tui/tui-interp.c: Include main.h.
6250 * interps.c: Include main.h.
6251 * main.h (interpreter_p): Declare.
6252 * defs.h (interpreter_p): Don't declare.
6253
587ee17b
TT
62542019-05-08 Tom Tromey <tromey@adacore.com>
6255
6256 * dwarf2loc.c: Include dwarf2read.h.
6257 * defs.h (read_unsigned_leb128): Don't declare.
6258 * dwarf2read.h (read_unsigned_leb128): Declare.
6259
ca1df239
TT
62602019-05-08 Tom Tromey <tromey@adacore.com>
6261
6262 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6263 method.
6264
99f20f08
TT
62652019-05-08 Tom Tromey <tromey@adacore.com>
6266
6267 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6268 when no wrap column is set.
6269
80e55b13
TT
62702019-05-08 Tom Tromey <tromey@adacore.com>
6271
6272 * c-lang.c (c_get_string): Handle non-C-style arrays.
6273
9d3421af
TT
62742019-05-08 Tom Tromey <tromey@adacore.com>
6275
6276 * typeprint.c (print_offset_data::update): Print the bit offset,
6277 not the number of bits remaining.
6278
844333e2
TT
62792019-05-08 Tom Tromey <tromey@adacore.com>
6280
6281 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6282 padding at end of comment.
6283
988915ee
TT
62842019-05-08 Tom Tromey <tromey@adacore.com>
6285
6286 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6287 Compare main types.
6288
26bfd823
TT
62892019-05-06 Tom Tromey <tom@tromey.com>
6290
6291 * common/scoped_mmap.c: Include common-defs.h.
6292 * common/scoped_mmap.h: Don't include config.h.
6293
89055eaa
TT
62942019-05-04 Tom Tromey <tom@tromey.com>
6295
6296 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6297 (struct aarch64_call_info): Add initializers.
6298 <si>: Now a std::vector.
6299 (pass_on_stack, aarch64_push_dummy_call): Update.
6300
5da01df5
TT
63012019-05-04 Simon Marchi <simon.marchi@efficios.com>
6302 Tom Tromey <tom@tromey.com>
6303
6304 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6305 (ppc_threads): Now a std::vector. Now static.
6306 (hwdebug_find_thread_points_by_tid)
6307 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6308 Update.
6309
fbdf05a1
TT
63102019-05-04 Tom Tromey <tom@tromey.com>
6311
6312 * arc-tdep.c (arc_tdesc_init): Return bool.
6313
06d16ec9
TT
63142019-05-04 Tom Tromey <tom@tromey.com>
6315
6316 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6317 Use gdb_assert_not_reached.
6318
9c056022
TT
63192019-05-04 Tom Tromey <tom@tromey.com>
6320
6321 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6322 "false".
6323
fa9c2a59
TT
63242019-05-04 Tom Tromey <tom@tromey.com>
6325
6326 * arc-tdep.c (arc_tdesc_init): Use bool.
6327
e2eb806a
TT
63282019-05-04 Tom Tromey <tom@tromey.com>
6329
6330 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6331
6fe87677
TT
63322019-05-04 Tom Tromey <tom@tromey.com>
6333
6334 * cli/cli-cmds.c (valid_command_p): Return bool.
6335
7f008c9e
TT
63362019-05-04 Tom Tromey <tom@tromey.com>
6337
6338 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6339 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6340
b6484282
RT
63412019-05-04 Raul Tambre <raul@tambre.ee>
6342
6343 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6344 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6345 operator for comparison.
6346
af97b416
TT
63472019-05-04 Tom Tromey <tom@tromey.com>
6348
6349 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6350 (lookup_partial_symbol, print_partial_symbols)
6351 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6352 (psymbol_compare): Update.
6353 (add_psymbol_to_bcache): Clear the entire psymbol.
6354 (maintenance_check_psymtabs): Update.
6355 * psympriv.h (struct partial_symbol): Don't derive from
6356 general_symbol_info.
6357 <obj_section, unrelocated_address, address,
6358 set_unrelocated_address>: Update.
6359 <ginfo>: New member.
6360 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6361 (debug_names::write_psymbols): Update.
6362
9d6d4be8
TV
63632019-05-04 Tom de Vries <tdevries@suse.de>
6364
6365 * contrib/cc-with-tweaks.sh: Support -n arg.
6366
66452beb
PW
63672019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6368
6369 * corelow.c (core_target::detach): Ensure frame cache and
6370 register caches are cleared.
6371 inferior.c (exit_inferior_1): Likewise.
6372
bde09ab7
TT
63732019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6374 Tom Tromey <tom@tromey.com>
6375
6376 * dictionary.c (collate_pending_symbols_by_language): Remove
6377 "struct" from foreach.
6378 * symtab.c (lookup_global_symbol_from_objfile)
6379 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6380 foreach.
6381 * ser-tcp.c (net_open): Remove "struct" from foreach.
6382 * objfiles.c (objfile_relocate, objfile_rebase)
6383 (objfile_has_symbols): Remove "struct" from foreach.
6384 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6385 from foreach.
6386 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6387 foreach.
6388 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6389 "struct" from foreach.
6390 * ada-lang.c (create_excep_cond_exprs)
6391 (ada_exception_catchpoint_cond_string): Remove "struct" from
6392 foreach.
6393
222a8d25
TT
63942019-05-03 Tom Tromey <tromey@adacore.com>
6395
6396 * ada-exp.y (convert_char_literal): Check suffix of each
6397 enumerator.
6398
fcd60b84
DP
63992019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6400
6401 PR ada/21406:
6402 * ada-exp.y (yywrap): Don't define.
6403 * ada-lex.l (%option): Add noyywrap
6404 (yywrap): Remove.
6405
5f2459c2
EZ
64062019-05-03 Eli Zaretskii <eliz@gnu.org>
6407
353ea2d1
EZ
6408 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6409 _WIN32_WINNT to the XP level, unless already defined to a higher
6410 level.
6411
6412 * unittests/parse-connection-spec-selftests.c:
6413 * ser-tcp.c:
6414 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6415 override.
6416
5f2459c2
EZ
6417 * symfile.c (find_separate_debug_file): Remove colon from the
6418 drive spec of DOS/Windows file names of the target, so that the
6419 file name produced from DEBUGDIR and the target's directory will
6420 be valid on DOS/Windows systems.
6421
80062eb9
AB
64222019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6423
6424 * rust-lang.c (val_print_struct): Handle printing structures
6425 containing strings.
6426
b8c05e85
TT
64272019-05-02 Tom Tromey <tromey@adacore.com>
6428
6429 * valarith.c (_initialize_valarith): Remove.
6430
4504bbde
TT
64312019-05-01 Tom Tromey <tromey@adacore.com>
6432
6433 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6434 bitfields.
6435
d48e62f4
TT
64362019-05-01 Tom Tromey <tromey@adacore.com>
6437
6438 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6439 for big-endian copies.
6440
15f18d14
AT
64412019-04-30 Ali Tamur <tamur@google.com>
6442 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6443 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6444 (read_3_bytes): New function.
6445
ab4ee614
JB
64462019-04-30 Joel Brobecker <brobecker@adacore.com>
6447
6448 * windows-nat.c (main_thread_id): Delete.
6449 (handle_output_debug_string): Replace main_thread_id by
6450 current_event.dwThreadId.
6451 (fake_create_process): Likewise.
6452 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6453 Do not set main_thread_id.
6454 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6455 current_event.dwThreadId.
6456 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6457
8ed5b76e
JB
64582019-04-30 Joel Brobecker <brobecker@adacore.com>
6459
6460 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6461 Use current_event.dwThreadId instead of main_thread_id.
6462
2ff0a947
TT
64632019-04-30 Tom Tromey <tromey@adacore.com>
6464
6465 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6466 (create_excep_cond_exprs): Iterate over program spaces.
6467 (ada_exception_catchpoint_cond_string): Examine all minimal
6468 symbols for exception types.
6469
a776957c
TT
64702019-04-30 Tom Tromey <tromey@adacore.com>
6471
6472 PR c++/24470:
6473 * dwarf2read.c (process_structure_scope): Handle case where type
6474 has template parameters but no symbol was created.
6475
bc68014d
AB
64762019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6477 Chris January <chris.january@arm.com>
6478
6479 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6480 qualifier.
6481 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6482
f1fdc960
AB
64832019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6484
6485 * f-typeprint.c (f_print_type): Update rules for printing
6486 whitespace.
6487 (f_type_print_varspec_suffix): Likewise.
6488
bf7a4de1
AB
64892019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6490 Chris January <chris.january@arm.com>
6491
6492 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6493 function arguments.
6494
bbe75b9d
AB
64952019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6496
6497 * f-lang.c (build_fortran_types): Change name of void type to
6498 lower case.
6499 * f-typeprint.c (f_type_print_base): Print the name of the void
6500 type, rather than a fixed string.
6501 * f-valprint.c (f_decorations): Use lower case void string.
6502
1db455a7
AB
65032019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6504 Chris January <chris.january@arm.com>
6505
6506 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6507 types for Fortran.
6508
b6d03bb2
AB
65092019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6510 Chris January <chris.january@arm.com>
6511 David Lecomber <david.lecomber@arm.com>
6512
6513 * f-exp.y (BINOP_INTRINSIC): New token.
6514 (exp): New parser rule handling BINOP_INTRINSIC.
6515 (f77_keywords): Add new builtin procedures.
6516 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6517 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6518 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6519 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6520 (print_unop_subexp_f): New function.
6521 (print_binop_subexp_f): New function.
6522 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6523 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6524 (dump_subexp_body_f): Likewise.
6525 (operator_check_f): Likewise.
6526 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6527 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6528
83228e93
AB
65292019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6530
6531 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6532 UNOP_KIND.
6533 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6534 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6535 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6536 (operator_length_f): New fuction.
6537 (print_subexp_f): New function.
6538 (op_name_f): New function.
6539 (dump_subexp_body_f): New function.
6540 (operator_check_f): New function.
6541 (exp_descriptor_f): Replace standard expression handling functions
6542 with new functions.
6543 * gdb/fortran-operator.def: New file.
6544 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6545 * gdb/std-operator.def: Remove UNOP_KIND.
6546
6fdcd7cc
AB
65472019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6548
6549 * std-operator.def: Remove unbalanced, stray double quote
6550 character.
6551
2e62ab40
AB
65522019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6553 Chris January <chris.january@arm.com>
6554 Daniel Everett <daniel.everett@arm.com>
6555 Nick Forrington <nick.forrington@arm.com>
6556 Richard Bunt <richard.bunt@arm.com>
6557
6558 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6559 of depth when printing anonymous structs or unions.
6560 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6561 Don't print either the top-level value, or the children if the
6562 max-depth is exceeded.
6563 (ppscm_print_children): When printing the key of a map, allow one
6564 extra level of depth.
6565 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6566 print either the top-level value, or the children if the max-depth
6567 is exceeded.
6568 (print_children): When printing the key of a map, allow one extra
6569 level of depth.
6570 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6571 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6572 (user_print_options): Initialise max_depth field.
6573 (val_print_scalar_or_string_type_p): New function.
6574 (val_print): Check to see if the max depth has been reached.
6575 (val_print_check_max_depth): Define new function.
6576 (show_print_max_depth): New function.
6577 (_initialize_valprint): Add 'print max-depth' option.
6578 * valprint.h (struct value_print_options) <max_depth>: New field.
6579 (val_print_check_max_depth): Declare new function.
6580 * NEWS: Document new feature.
6581
4be290b2
AB
65822019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6583
6584 * ada-lang.c (ada_language_defn): Initialise new field.
6585 * c-lang.c (c_is_string_type_p): New function.
6586 (c_language_defn): Initialise new field.
6587 (cplus_language_defn): Initialise new field.
6588 (asm_language_defn): Initialise new field.
6589 (minimal_language_defn): Initialise new field.
6590 * c-lang.h (c_is_string_type_p): Declare new function.
6591 * d-lang.c (d_language_defn): Initialise new field.
6592 * f-lang.c (f_is_string_type_p): New function.
6593 (f_language_defn): Initialise new field.
6594 * go-lang.c (go_is_string_type_p): New function.
6595 (go_language_defn): Initialise new field.
6596 * language.c (default_is_string_type_p): New function.
6597 (unknown_language_defn): Initialise new field.
6598 (auto_language_defn): Initialise new field.
6599 * language.h (struct language_defn) <la_is_string_type_p>: New
6600 member variable.
6601 (default_is_string_type_p): Declare new function.
6602 * m2-lang.c (m2_language_defn): Initialise new field.
6603 * objc-lang.c (objc_language_defn): Initialise new field.
6604 * opencl-lang.c (opencl_language_defn): Initialise new field.
6605 * p-lang.c (pascal_is_string_type_p): New function.
6606 (pascal_language_defn): Initialise new field.
6607 * rust-lang.c (rust_is_string_type_p): New function.
6608 (rust_language_defn): Initialise new field.
6609
721b08c6
AB
66102019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6611
6612 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6613 New field.
6614 * ada-lang.c (ada_language_defn): Initialise new field.
6615 * c-lang.c (c_language_defn): Likewise.
6616 (cplus_language_defn): Likewise.
6617 (asm_language_defn): Likewise.
6618 (minimal_language_defn): Likewise.
6619 * d-lang.c (d_language_defn): Likewise.
6620 * f-lang.c (f_language_defn): Likewise.
6621 * go-lang.c (go_language_defn): Likewise.
6622 * language.c (unknown_language_defn): Likewise.
6623 (auto_language_defn): Likewise.
6624 * m2-lang.c (m2_language_defn): Likewise.
6625 * objc-lang.c (objc_language_defn): Likewise.
6626 * opencl-lang.c (opencl_language_defn): Likewise.
6627 * p-lang.c (pascal_language_defn): Likewise.
6628 * rust-lang.c (rust_language_defn): Likewise.
6629
fc913e53
AB
66302019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6631
6632 * ada-lang.c (ada_is_character_type): Change return type to bool.
6633 (ada_is_string_type): Likewise.
6634 * ada-lang.h (ada_is_character_type): Update declaration
6635 (ada_is_string_type): Likewise.
6636
fa731fa0
PW
66372019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6638
6639 Support style in 'frame|thread apply'
6640
6641 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6642 * record.c (record_start, record_stop): Update callers of
6643 execute_command_to_string with false.
6644 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6645 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6646 methods.
6647 (class string_file): New constructor with term_out parameter.
6648 Override methods term_out and can_emit_style_escape. New member
6649 term_out.
6650 (class stdio_file): Override can_emit_style_escape.
6651 (class tee_file): Override term_out and can_emit_style_escape.
6652 * utils.h (can_emit_style_escape): Remove.
6653 * utils.c (can_emit_style_escape): Likewise.
6654 Update all callers of can_emit_style_escape (SOMESTREAM) to
6655 SOMESTREAM->can_emit_style_escape.
6656 * source-cache.c (source_cache::get_source_lines): Likewise.
6657 * stack.c (frame_apply_command_count): Call execute_command_to_string
6658 passing the term_out characteristic of the current gdb_stdout.
6659 * thread.c (thr_try_catch_cmd): Likewise.
6660 * top.c (execute_command_to_string): pass term_out parameter
6661 to construct the string_file for the command output.
6662 * ui-file.c (term_cli_styling): New function (most code moved
6663 from utils.c can_emit_style_escape).
6664 (string_file::string_file, string_file::can_emit_style_escape,
6665 stdio_file::can_emit_style_escape, tee_file::term_out,
6666 tee_file::can_emit_style_escape): New functions.
6667
136afab8
PW
66682019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6669
6670 * NEWS: Mention the new set|show may-call-functions.
6671 * infcall.c (may_call_functions_p): New variable.
6672 (show_may_call_functions_p): New function.
6673 (call_function_by_hand_dummy): Throws an error if not
6674 may-call-functions.
6675 (_initialize_infcall): Call add_setshow_boolean_cmd for
6676 may-call-functions.
6677
725cbb63
KS
66782019-04-25 Keith Seitz <keiths@redhat.com>
6679
6680 PR c++/24367
6681 * cp-support.c (inspect_type): Don't attempt substitutions
6682 of symbol with the same name.
6683
3d1cbb78
TT
66842019-04-25 Tom Tromey <tromey@adacore.com>
6685
6686 PR gdb/24475:
6687 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6688 static.
6689
94aeb44b
TT
66902019-04-25 Tom Tromey <tromey@adacore.com>
6691
6692 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6693 rvalue reference.
6694 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6695 (gdb_xml_parser::parse): Use std::move.
6696 * python/python-internal.h (gdbpy_convert_exception): Take a const
6697 reference.
6698 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6699 std::move.
6700 * python/py-utils.c (gdbpy_convert_exception): Take a const
6701 reference.
6702 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6703 Use std::move.
6704 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6705 Use std::move.
6706 * mi/mi-main.c (mi_print_exception): Take a const reference.
6707 * main.c (handle_command_errors): Take a const reference.
6708 * linespec.c (parse_linespec): Use std::move.
6709 * infcall.c (run_inferior_call): Use std::move.
6710 (call_function_by_hand_dummy): Use std::move.
6711 * exec.c (try_open_exec_file): Use std::move.
6712 * exceptions.h (exception_print, exception_fprintf)
6713 (exception_print_same): Update.
6714 * exceptions.c (print_exception, exception_print)
6715 (exception_fprintf, exception_print_same): Change parameters to
6716 const reference.
6717 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6718 * common/new-op.c: Use std::move.
6719 * common/common-exceptions.h (struct gdb_exception): Add move
6720 constructor.
6721 (struct gdb_exception_error, struct gdb_exception_quit, struct
6722 gdb_quit_bad_alloc): Change constructor to move constructor.
6723 (throw_exception): Change parameter to rvalue reference.
6724 * common/common-exceptions.c (throw_exception): Take rvalue
6725 reference.
6726 * cli/cli-interp.c (safe_execute_command): Use std::move.
6727 * breakpoint.c (insert_bp_location, location_to_sals): Use
6728 std::move.
6729
680d7fd5
TT
67302019-04-25 Tom Tromey <tromey@adacore.com>
6731
6732 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6733 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6734 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6735 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6736 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6737 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6738 guile/scm-value.c: Use unpack.
6739 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6740 gdbscm_gdb_exception.
6741 (gdbscm_throw_gdb_exception): Likewise.
6742 (struct gdbscm_gdb_exception): New.
6743 (unpack): New function.
6744 (gdbscm_wrap): Use unpack.
6745
c6fdd8b2
TT
67462019-04-25 Tom Tromey <tromey@adacore.com>
6747
6748 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6749 (gdb_rl_callback_handler): Use std::move.
6750 * common/common-exceptions.h (struct gdb_exception): Add move
6751 assignment operator.
6752 (throw_exception_sjlj): Change "exception" to const reference.
6753 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6754 (throw_exception_sjlj): Change "exception" to const reference.
6755
cc06b668
TT
67562019-04-25 Tom Tromey <tromey@adacore.com>
6757
6758 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6759 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6760 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6761 Update.
6762 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6763 Update.
6764 * mi/mi-interp.c (mi_interp::exec): Update.
6765 * linespec.c (parse_linespec): Update.
6766 * infcall.c (run_inferior_call): Update.
6767 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6768 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6769 (gdbscm_lookup_global_symbol): Update.
6770 * guile/scm-param.c (gdbscm_parameter_value): Update.
6771 * guile/scm-frame.c (gdbscm_frame_read_register)
6772 (gdbscm_frame_read_var): Update.
6773 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6774 * exec.c (try_open_exec_file): Update.
6775 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6776 (gdb_rl_callback_handler): Update.
6777 * common/common-exceptions.h (exception_none): Don't declare.
6778 * common/common-exceptions.c (exception_none): Don't define.
6779 (struct catcher) <exception>: Update.
6780 * cli/cli-interp.c (safe_execute_command): Update.
6781 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6782
cf532bd1
AT
67832019-04-25 Ali Tamur <tamur@google.com>
6784
6785 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6786 (read_attribute_value): Likewise.
6787 (dwarf2_read_addr_index): Update comment.
6788 (read_str_index): Add DW_FORM_strx.
6789 (dwarf2_string_attr): Likewise.
6790 (dwarf2_const_value_attr): Likewise.
6791 (dump_die_shallow): Likewise.
6792 (dwarf2_fetch_constant_bytes): Likewise.
6793 (skip_form_bytes): Likewise.
6794 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6795
82433e3e
SDJ
67962019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6797
6798 PR corefiles/11608
6799 PR corefiles/18187
6800 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6801 OFFSET. Verify if current mapping contains an ELF header.
6802 (linux_find_memory_regions_full): Adjust call to
6803 dump_mapping_p.
6804
723adb65
SL
68052019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6806 Kang Li <kanglictf@gmail.com>
6807
6808 PR gdb/21600
6809
6810 * dwarf2-frame.c (read_initial_length): Be consistent about using
6811 unsigned representation of length.
6812 (decode_frame_entry_1): Likewise. Check for wraparound of
6813 end pointer as well as buffer overflow.
6814
596179f7
SDJ
68152019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6816
6817 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6818 "vq".
6819
a59240a4
TT
68202019-04-24 Tom Tromey <tromey@adacore.com>
6821
6822 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6823
f872fdbb
AB
68242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6825
6826 * s12z-tdep.c (s12z_unwind_pc): Delete.
6827 (s12z_unwind_sp): Delete.
6828 (s12z_gdbarch_init): Don't register deleted functions with
6829 gdbarch.
6830
b614e6f3
AB
68312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6832
6833 * rl78-tdep.c (rl78_unwind_sp): Delete.
6834 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6835
14faed38
AB
68362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6837
6838 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6839 (xstormy16_unwind_pc): Delete.
6840 (xstormy16_dummy_id): Delete.
6841 (xstormy16_gdbarch_init): Don't register deleted functions with
6842 gdbarch.
6843
541aad8a
AB
68442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6845
6846 * vax-tdep.c (vax_unwind_pc): Delete.
6847 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6848
29222070
AB
68492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6850
6851 * v850-tdep.c (v850_unwind_sp): Delete.
6852 (v850_unwind_pc): Delete.
6853 (v850_dummy_id): Delete.
6854 (v850_gdbarch_init): Don't register deleted functions with
6855 gdbarch.
6856
0f534d76
AB
68572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6858
6859 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6860 (tilegx_unwind_pc): Delete.
6861 (tilegx_unwind_dummy_id): Delete.
6862 (tilegx_gdbarch_init): Don't register deleted functions with
6863 gdbarch.
6864
1ba7b7f9
AB
68652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6866
6867 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6868 (tic6x_dummy_id): Delete.
6869 (tic6x_gdbarch_init): Don't register deleted functions with
6870 gdbarch.
6871
d31f262c
AB
68722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6873
6874 * sparc-tdep.c (sparc_unwind_pc): Delete.
6875 (sparc32_gdbarch_init): Don't register deleted function with
6876 gdbarch.
6877
6d14d64d
AB
68782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6879
6880 * sh-tdep.c (sh_unwind_sp): Delete.
6881 (sh_unwind_pc): Delete.
6882 (sh_dummy_id): Delete.
6883 (sh_gdbarch_init): Don't register deleted functions with
6884 gdbarch.
6885
a40dde9d
AB
68862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6887
6888 * score-tdep.c (score_unwind_sp): Delete.
6889 (score_unwind_pc): Delete.
6890 (score_dummy_id): Delete.
6891 (score_gdbarch_init): Don't register deleted functions with
6892 gdbarch.
6893
47c47d69
AB
68942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6895
6896 * rx-tdep.c (rx_unwind_pc): Delete.
6897 (rx_unwind_sp): Delete.
6898 (rx_dummy_id): Delete.
6899 (rx_gdbarch_init): Don't register deleted functions with
6900 gdbarch. Update comment.
6901
833a4480
AB
69022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6903
6904 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6905 (rs6000_dummy_id): Delete.
6906 (rs6000_gdbarch_init): Don't register deleted functions with
6907 gdbarch.
6908
3f2cef49
AB
69092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6910
6911 * or1k-tdep.c (or1k_dummy_id): Delete.
6912 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6913
96acf884
AB
69142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6915
6916 * nios2-tdep.c (nios2_dummy_id): Delete.
6917 (nios2_unwind_sp): Delete.
6918 (nios2_gdbarch_init): Don't register deleted functions with
6919 gdbarch.
6920
ca0ab0aa
AB
69212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6922
6923 * nds32-tdep.c (nds32_dummy_id): Delete.
6924 (nds32_unwind_pc): Delete.
6925 (nds32_unwind_sp): Delete.
6926 (nds32_gdbarch_init): Don't register deleted functions with
6927 gdbarch.
6928
c8259044
AB
69292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6930
6931 * msp430-tdep.c (msp430_unwind_pc): Delete.
6932 (msp430_unwind_sp): Delete.
6933 (msp430_dummy_id): Delete.
6934 (msp430_gdbarch_init): Don't register deleted functions with
6935 gdbarch.
6936
27f113c8
AB
69372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6938
6939 * moxie-tdep.c (moxie_unwind_sp): Delete.
6940 (moxie_unwind_pc): Delete.
6941 (moxie_dummy_id): Delete.
6942 (moxie_gdbarch_init): Don't register deleted functions with
6943 gdbarch.
6944
aee6c3cd
AB
69452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6946
6947 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6948 (mn10300_unwind_pc): Delete.
6949 (mn10300_unwind_sp): Delete.
6950 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6951 mn10300_unwind_sp.
6952 (mn10300_frame_unwind_init): Don't register deleted functions with
6953 gdbarch.
6954
8e2b5aea
AB
69552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6956
6957 * mep-tdep.c (mep_unwind_pc): Delete.
6958 (mep_unwind_sp): Delete.
6959 (mep_dummy_id): Delete.
6960 (mep_gdbarch_init): Don't register deleted functions with
6961 gdbarch.
6962
43cf3ede
AB
69632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6964
6965 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6966 (m68hc11_unwind_sp): Delete.
6967 (m68hc11_gdbarch_init): Don't register deleted functions with
6968 gdbarch.
6969
5e79b7bb
AB
69702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6971
6972 * m32r-tdep.c (m32r_unwind_sp): Delete.
6973 (m32r_unwind_pc): Delete.
6974 (m32r_dummy_id): Delete.
6975 (m32r_gdbarch_init): Don't register deleted functions with
6976 gdbarch.
6977
89b268d8
AB
69782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6979
6980 * m32c-tdep.c (m32c_unwind_pc): Delete.
6981 (m32c_unwind_sp): Delete.
6982 (m32c_dummy_id): Delete.
6983 (m32c_gdbarch_init): Don't register deleted functions with
6984 gdbarch.
6985
946c28d2
AB
69862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6987
6988 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
6989 (lm32_unwind_pc): Delete.
6990 (lm32_dummy_id): Delete.
6991 (lm32_gdbarch_init): Don't register deleted functions with
6992 gdbarch.
6993
bf12844a
AB
69942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6995
6996 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
6997 (iq2000_unwind_pc): Delete.
6998 (iq2000_dummy_id): Delete.
6999 (iq2000_gdbarch_init): Don't register deleted functions with
7000 gdbarch.
7001
ecbc06d2
AB
70022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7003
7004 * nds32-tdep.c (nds32_type_align): Delete.
7005 (nds32_push_dummy_call): Use type_align instead.
7006
030197b4
AB
70072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7008
7009 * arm-tdep.c (arm_type_align): Only handle vector override case.
7010 (arm_push_dummy_call): Use type_align.
7011 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7012
b907456c
AB
70132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7014
7015 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7016 case.
7017 (pass_on_stack): Use type_align.
7018 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7019 function.
7020
9e97ba43
TT
70212019-04-23 Tom Tromey <tromey@adacore.com>
7022
7023 * dwarf2read.c (line_header::file_name_at): Remove unused
7024 overload.
7025
6892f601
TV
70262019-04-23 Tom de Vries <tdevries@suse.de>
7027
7028 PR gdb/24438
7029 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7030 invocation.
7031
336d760d
AT
7032
70332019-03-27 Ali Tamur <tamur@google.com>
7034
7035 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7036 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7037 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7038 (dwarf_expr_context::get_addr_index): Likewise
7039 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7040 (symbol_needs_eval_context::get_addr_index): Likewise
7041 (disassemble_dwarf_expression): Add DW_OP_addrx
7042 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7043 (read_cutu_die_from_dwo): Update comment
7044 (skip_one_die): Add DW_FORM_addrx
7045 (read_attribute_value): Likewise
7046 (var_decode_location): Add DW_OP_addrx
7047 (dwarf2_const_value_attr): Add DW_FORM_addrx
7048 (dump_die_shallow): Likewise
7049 (dwarf2_fetch_constant_bytes): Likewise
7050 (decode_locdesc): Add DW_OP_addrx
7051 (skip_form_bytes): Add DW_FORM_addrx
7052
ad9d13f8
AT
70532019-04-22 Ali Tamur <tamur@google.com>
7054
7055 * MAINTAINERS (Write After Approval): Add self.
7056
d70cc3ba
SM
70572019-04-22 Simon Marchi <simon.marchi@efficios.com>
7058
7059 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7060 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7061 (open_symbol_file_object): Likewise.
7062 (svr4_default_sos): Add info parameter.
7063 (svr4_read_so_list): Likewise.
7064 (svr4_current_sos_direct): Adjust functions calls to pass down
7065 info.
7066 (svr4_current_sos_1): Add info parameter.
7067 (svr4_current_sos): Call get_svr4_info, pass info down to
7068 svr4_current_sos_1.
7069 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7070 get_svr4_info.
7071 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7072 get_svr4_info.
7073 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7074 to get_svr4_info.
7075 (probes_table_remove_objfile_probes): Likewise.
7076 (register_solib_event_probe): Add info parameter.
7077 (solist_update_incremental): Pass info parameter down to
7078 svr4_read_so_list.
7079 (disable_probes_interface): Add info parameter.
7080 (svr4_handle_solib_event): Pass current_program_space to
7081 get_svr4_info. Adjust disable_probes_interface cleanup.
7082 (svr4_create_probe_breakpoints): Add info parameter, pass it
7083 down to register_solib_event_probe.
7084 (svr4_create_solib_event_breakpoints): Add info parameter,
7085 pass it down to svr4_create_probe_breakpoints.
7086 (enable_break): Pass info down to
7087 svr4_create_solib_event_breakpoints.
7088 (svr4_solib_create_inferior_hook): Pass current_program_space to
7089 get_svr4_info.
7090 (svr4_clear_solib): Likewise.
7091
7905fc35
PA
70922019-04-22 Pedro Alves <palves@redhat.com>
7093
7094 * solib-svr4.c (svr4_free_objfile_observer): New.
7095 (probe_and_action::objfile): New field.
7096 (probes_table_htab_remove_objfile_probes)
7097 (probes_table_remove_objfile_probes): New functions.
7098 (register_solib_event_probe): Add 'objfile' parameter. Store it
7099 in the new probe_and_action. Don't store the probe in 'lookup'.
7100 (svr4_create_probe_breakpoints): Pass objfile to
7101 register_solib_event_probe.
7102 (_initialize_svr4_solib): Register a free_objfile observer.
7103
fb881986
TT
71042019-04-19 Tom Tromey <tom@tromey.com>
7105
7106 * common/queue.h: Remove.
7107
8732db6c
TT
71082019-04-19 Tom Tromey <tom@tromey.com>
7109
7110 * event-loop.c: Don't include "common/queue.h".
7111
97dfbadd
TT
71122019-04-19 Tom Tromey <tom@tromey.com>
7113
7114 * remote.c (remote_target): Use delete.
7115 * remote-notif.h: Include <list>, not "common/queue.h".
7116 (notif_client_p): Remove typedef.
7117 (remote_notif_state): Add constructor, destructor, initializer.
7118 <notif_queue>: Now a std::list.
7119 (remote_notif_state_xfree): Don't declare.
7120 * remote-notif.c (remote_notif_process, handle_notification)
7121 (remote_notif_state_allocate): Update.
7122 (~remote_notif_state): Rename from remote_notif_state_xfree.
7123
cf250e36
TT
71242019-04-19 Tom Tromey <tom@tromey.com>
7125
7126 * symfile.c (reread_symbols): Update.
7127 * objfiles.c (objfile_register_static_link)
7128 (objfile_lookup_static_link): Update
7129 (~objfile) Don't delete static_links.
7130 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7131
61f4b350
TT
71322019-04-19 Tom Tromey <tom@tromey.com>
7133
7134 * type-stack.h (struct type_stack) <insert>: Constify string.
7135 * type-stack.c (type_stack::insert): Constify string.
7136 * gdbtypes.h (lookup_template_type): Update.
7137 (address_space_name_to_int): Update.
7138 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7139 const.
7140 (lookup_template_type): Make name const.
7141 * c-exp.y: Update rules.
7142 (lex_one_token, classify_name, classify_inner_name)
7143 (c_print_token): Update.
7144 * p-exp.y: Update rules.
7145 (yylex): Update.
7146 * f-exp.y: Update rules.
7147 (yylex): Update.
7148 * d-exp.y: Update rules.
7149 (lex_one_token, classify_name, classify_inner_name): Update.
7150 * parse.c (write_dollar_variable, copy_name): Return std::string.
7151 * parser-defs.h (copy_name): Change return type.
7152 * m2-exp.y: Update rules.
7153 (yylex): Update.
7154 * go-exp.y (lex_one_token): Update.
7155 Update rules.
7156 (classify_unsafe_function, classify_packaged_name)
7157 (classify_name, yylex): Update.
7158
189b8c2e
ST
71592019-04-19 Sergei Trofimovich <siarheit@google.com>
7160
7161 * configure.ac: add --enable-source-highlight switch.
7162 * configure: Regenerate.
7163 * top.c (print_gdb_version): plumb --enable-source-highlight
7164 status to "show configuration".
7165
8ecb59f8
TT
71662019-04-19 Tom Tromey <tromey@adacore.com>
7167
7168 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7169 Check ADA_TYPE_P.
7170 (empty_record, ada_template_to_fixed_record_type_1)
7171 (template_to_static_fixed_type)
7172 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7173 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7174 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7175 macros.
7176
62160ec9
TT
71772019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7178
7179 PR symtab/24423:
7180 * source.c (print_source_lines_base): Advance "iter" when a
7181 control character is seen.
7182
f2ae8bc8
PW
71832019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7184
7185 * inferior.h (struct infcall_suspend_state_deleter):
7186 Catch exception in destructor to avoid crash.
7187
d563b953
PW
71882019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7189
7190 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7191 close to the add_com "shell".
7192
dc34c897
TT
71932019-04-18 Tom Tromey <tromey@adacore.com>
7194
7195 * process-stratum-target.h (class process_stratum_target)
7196 <stratum>: Add "final".
7197
a12e5744
TT
71982019-04-17 Tom Tromey <tromey@adacore.com>
7199
7200 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7201 against nullptr before use.
7202
a7e559cc
AH
72032019-04-17 Alan Hayward <alan.hayward@arm.com>
7204
7205 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7206
c01660c6
AB
72072019-04-17 Jim Wilson <jimw@sifive.com>
7208 Andrew Burgess <andrew.burgess@embecosm.com>
7209
7210 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7211 code read might fail, assume 4-byte breakpoint in that case.
7212
4aa866af
LS
72132019-04-15 Leszek Swirski <leszeks@google.com>
7214
7215 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7216 rather than a hand-rolled POD check when checking for forced MEMORY
7217 classification.
7218
48574d91
AH
72192019-04-15 Alan Hayward <alan.hayward@arm.com>
7220
7221 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7222 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7223 function.
7224 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7225 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7226 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7227 declaration.
7228
4da037ef
AH
72292019-04-15 Alan Hayward <alan.hayward@arm.com>
7230
7231 * aarch64-linux-nat.c
7232 (aarch64_linux_nat_target::thread_architecture): Add override.
7233 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7234 each VQ.
7235
ccb8d7e8
AH
72362019-04-15 Alan Hayward <alan.hayward@arm.com>
7237
7238 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7239
35add35e
AB
72402019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7241
7242 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7243 target types of size 96-bits, add some additional comments, and
7244 check that the builtin type we found was the correct size.
7245
51196bbc
EZ
72462019-04-12 Eli Zaretskii <eliz@gnu.org>
7247
7248 * utils.c (prompt_for_continue): Don't restore the styling at the
7249 end, as applied_style has the wrong value. This fixes styling in
7250 long lists of file names that are interrupted by the "Continue?"
7251 prompt.
7252
62253a61
AB
72532019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7254
7255 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7256 * c-lang.c (c_language_defn): Likewise.
7257 (cplus_language_defn): Likewise.
7258 (asm_language_defn): Likewise.
7259 (minimal_language_defn): Likewise.
7260 * d-lang.c (d_language_defn): Likewise.
7261 * f-lang.c (f_language_defn): Likewise.
7262 * go-lang.c (go_language_defn): Likewise.
7263 * language.c (unknown_language_defn): Likewise.
7264 (auto_language_defn): Likewise.
7265 * language.h (struct language_defn): Remove la_magic field.
7266 (LANG_MAGIC): Delete.
7267 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7268 * objc-lang.c (objc_language_defn): Likewise.
7269 * opencl-lang.c (opencl_language_defn): Likewise.
7270 * p-lang.c (pascal_language_defn): Likewise.
7271 * rust-lang.c (rust_language_defn): Likewise.
7272
a9158a86
AB
72732019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7274
7275 * riscv-tdep.c (riscv_type_align): New function.
7276 (riscv_type_alignment): Delete.
7277 (riscv_arg_location): Use 'type_align'.
7278 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7279
41077b66
AB
72802019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7281
7282 * gdbtypes.c (type_align): A struct with no non-static fields also
7283 has alignment of 1.
7284
9f0272f8
AB
72852019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7286
7287 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7288 component to 0.
7289 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7290 member.
7291 (riscv_struct_info::analyse): New implementation using new
7292 analyse_inner member function.
7293 (riscv_struct_info::field_offset): New member function.
7294 (riscv_struct_info::m_offsets): New member variable.
7295 (riscv_struct_info::analyse_inner): New private member function,
7296 takes the old implementation of riscv_struct_info::analyse but
7297 extended to track field offsets.
7298 (riscv_call_arg_struct): Update the struct folding special cases
7299 to handle cases where empty C++ structs, which are non-zero
7300 length, are found.
7301 (riscv_arg_location): Initialise the length of each location, a
7302 non-zero length now indicates the location is in use.
7303 (riscv_push_dummy_call): Allow for the first location having a
7304 non-zero offset when setting up arguments.
7305 (riscv_return_value): Likewise, but for return values.
7306
02cf60c7
TT
73072019-04-11 Tom Tromey <tromey@adacore.com>
7308
7309 * utils.c (internal_vproblem): Make "msg" const.
7310
68811f8f
AH
73112019-04-11 Alan Hayward <alan.hayward@arm.com>
7312
7313 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7314 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7315 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7316 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7317
3f52fdbc
KB
73182019-04-10 Kevin Buettner <kevinb@redhat.com>
7319
7320 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7321 function.
7322 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7323 of amd64_collect_native_gregset.
7324 (amd64_linux_nat_target::store_registers): Likewise.
7325
e9ad22ee
TT
73262019-04-10 Tom Tromey <tom@tromey.com>
7327
7328 * symtab.c (lookup_global_symbol_from_objfile)
7329 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7330 * objfiles.h (class separate_debug_iterator): New.
7331 (class separate_debug_range): New.
7332 (struct objfile) <separate_debug_objfiles>: New method.
7333 (objfile_separate_debug_iterate): Don't declare.
7334 * objfiles.c (separate_debug_iterator::operator++): Rename from
7335 objfile_separate_debug_iterate.
7336 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7337 iterator.
7338 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7339 iterator.
7340
ee371134
TT
73412019-04-10 Tom Tromey <tom@tromey.com>
7342
7343 * symfile.c (reread_symbols): Remove old comment.
7344 * objfiles.c (free_all_objfiles): Fix a typo.
7345
bf227d61
TT
73462019-04-10 Tom Tromey <tom@tromey.com>
7347
7348 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7349 * minsyms.c (lookup_minimal_symbol): Use foreach.
7350 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7351 (lookup_minimal_symbol_solib_trampoline): Likewise.
7352 * symfile.c (reread_symbols): Use foreach.
7353
8dc433a0
TT
73542019-04-09 Ivan Begert <ivanbegert@gmail.com>
7355 Tom Tromey <tromey@adacore.com>
7356
7357 PR rust/24414:
7358 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7359 (rust_lex_int_test): Change "value" to be LONGEST.
7360 (rust_lex_tests): Add test for long integer literal.
7361
9ab8741a
TT
73622019-04-09 Tom Tromey <tromey@adacore.com>
7363
7364 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7365 to bool.
7366 (extended_remote_target::attach): Update.
7367 (remote_target::remote_notice_new_inferior): Update.
7368 (remote_target::add_current_inferior_and_thread): Update.
7369 * inferior.c (exit_inferior_1): Use "false".
7370 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7371
e242fd12
SM
73722019-04-09 Simon Marchi <simon.marchi@efficios.com>
7373
9ca1957f 7374 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
7375 the "start" command.
7376
2b0c8b01
KB
73772019-04-08 Kevin Buettner <kevinb@redhat.com>
7378
7379 * python/py-inferior.c (infpy_thread_from_thread_handle):
7380 Adjust comments to reflect renaming of thread_from_thread_handle
7381 to thread_from_handle. Adjust keywords. Fix type error message.
7382 (inferior_object_methods): Add thread_from_handle. Retain
7383 thread_from_thread_handle, but mark it as deprecated.
7384
50a82723
KB
73852019-04-08 Kevin Buettner <kevinb@redhat.com>
7386
7387 * gdbthread.h (find_thread_by_handle): Revise declaration.
7388 * thread.c (find_thread_by_handle): Likewise. Adjust
7389 implementation too.
7390 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7391 support for buffer objects as handles.
7392
cf63b016
KB
73932019-04-08 Kevin Buettner <kevinb@redhat.com>
7394
7395 * python/py-infthread.c (thpy_thread_handle): New function.
7396 (thread_object_methods): Register thpy_thread_handle.
7397
3d6c6204
KB
73982019-04-08 Kevin Buettner <kevinb@redhat.com>
7399
7400 * gdbthread.h (thread_to_thread_handle): Declare.
7401 * thread.c (gdbtypes.h): Include.
7402 (thread_to_thread_handle): New function.
7403
7404 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7405 (target_thread_info_to_thread_handle): Declare.
7406 * target.c (target_thread_info_to_thread_handle): New function.
7407 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7408 * target-delegates.c: Regenerate.
7409
7410 * linux-thread-db.c (class thread_db_target): Add method
7411 thread_info_to_thread_handle.
7412 (thread_db_target::thread_info_to_thread_handle): Define.
7413 * remote.c (class remote_target): Add new method
7414 thread_info_to_thread_handle.
7415 (remote_target::thread_info_to_thread_handle): Define.
7416
56be6ea8
PA
74172019-04-08 Pedro Alves <palves@redhat.com>
7418
7419 * common/common-exceptions.c (throw_exception): Don't create
7420 named object to throw; throw directly.
7421 (throw_it): Likewise. Don't initialize gdb_exception::message
7422 here, with new; pass FMT and AP to the ctor instead.
7423 * common/common-exceptions.h: Include <string>.
7424 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7425 const char *, va_list)): New ctor. Use std::make_shared.
7426 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7427 errors)): Delete.
7428 (gdb_exception_error::gdb_exception_error(enum errors, const char
7429 *, va_list)): New.
7430 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7431 Add assertion.
7432 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7433 errors)): Delete.
7434 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7435 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7436 Add assertion.
7437
eedc3f4f
TT
74382019-04-08 Tom Tromey <tom@tromey.com>
7439
7440 * valops.c (value_rtti_indirect_type): Replace throw_exception
7441 with throw.
7442 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7443 with throw.
7444 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7445 throw.
7446 * target.c (target_translate_tls_address): Replace throw_exception
7447 with throw.
7448 * stack.c (frame_apply_command_count): Replace throw_exception
7449 with throw.
7450 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7451 throw.
7452 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7453 with throw.
7454 * rs6000-tdep.c (rs6000_frame_cache)
7455 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7456 * remote.c: Replace throw_exception with throw.
7457 * record-full.c (record_full_message, record_full_wait_1)
7458 (record_full_restore): Replace throw_exception with throw.
7459 * record-btrace.c:
7460 (get_thread_current_frame_id, record_btrace_start_replaying)
7461 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7462 (cmd_record_btrace_start): Replace throw_exception with throw.
7463 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7464 throw.
7465 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7466 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7467 * linespec.c:
7468 (find_linespec_symbols): Replace throw_exception with throw.
7469 * infrun.c (displaced_step_prepare, resume): Replace
7470 throw_exception with throw.
7471 * infcmd.c (post_create_inferior): Replace throw_exception with
7472 throw.
7473 * inf-loop.c (inferior_event_handler): Replace throw_exception
7474 with throw.
7475 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7476 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7477 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7478 (get_prev_frame_always, get_frame_pc_if_available)
7479 (get_frame_address_in_block_if_available, get_frame_language):
7480 Replace throw_exception with throw.
7481 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7482 throw_exception with throw.
7483 * eval.c (fetch_subexp_value, evaluate_var_value)
7484 (evaluate_funcall, evaluate_subexp_standard): Replace
7485 throw_exception with throw.
7486 * dwarf2loc.c (call_site_find_chain)
7487 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7488 Replace throw_exception with throw.
7489 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7490 with throw.
7491 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7492 throw.
7493 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7494 * completer.c (complete_line_internal): Replace throw_exception
7495 with throw.
7496 * compile/compile-object-run.c (compile_object_run): Replace
7497 throw_exception with throw.
7498 * cli/cli-script.c (process_next_line): Replace throw_exception
7499 with throw.
7500 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7501 (btrace_enable, btrace_maint_update_pt_packets): Replace
7502 throw_exception with throw.
7503 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7504 throw_exception with throw.
7505 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7506 throw_exception with throw.
7507 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7508 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7509 * aarch64-tdep.c (aarch64_make_prologue_cache)
7510 (aarch64_make_stub_cache): Replace throw_exception with throw.
7511
26003a20
TT
75122019-04-08 Tom Tromey <tom@tromey.com>
7513
7514 * common/common-exceptions.c (throw_exception): Rename from
7515 throw_exception_cxx. Remove old copy. Make argument const.
7516 (throw_it): Create and throw exception objects directly.
7517 * common/common-exceptions.h (throw_exception): Make argument
7518 const.
7519 (struct gdb_exception_error): Add constructor.
7520 (struct gdb_exception_quit): Add constructor.
7521
d272eb37
TT
75222019-04-08 Tom Tromey <tom@tromey.com>
7523
7524 * common/common-exceptions.h (exception_rethrow): Don't declare.
7525 (TRY_SJLJ): Update comment.
7526 (TRY, CATCH, END_CATCH): Remove.
7527 * common/common-exceptions.c (exception_rethrow): Remove.
7528
230d2906
TT
75292019-04-08 Tom Tromey <tom@tromey.com>
7530
7531 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7532 Remove.
7533 (gdb_exception_error): Rename from
7534 gdb_exception_RETURN_MASK_ERROR.
7535 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7536 (gdb_quit_bad_alloc): Update.
7537 * aarch64-tdep.c: Update.
7538 * ada-lang.c: Update.
7539 * ada-typeprint.c: Update.
7540 * ada-valprint.c: Update.
7541 * amd64-tdep.c: Update.
7542 * arch-utils.c: Update.
7543 * break-catch-throw.c: Update.
7544 * breakpoint.c: Update.
7545 * btrace.c: Update.
7546 * c-varobj.c: Update.
7547 * cli/cli-cmds.c: Update.
7548 * cli/cli-interp.c: Update.
7549 * cli/cli-script.c: Update.
7550 * common/common-exceptions.c: Update.
7551 * common/new-op.c: Update.
7552 * common/selftest.c: Update.
7553 * compile/compile-c-symbols.c: Update.
7554 * compile/compile-cplus-symbols.c: Update.
7555 * compile/compile-object-load.c: Update.
7556 * compile/compile-object-run.c: Update.
7557 * completer.c: Update.
7558 * corelow.c: Update.
7559 * cp-abi.c: Update.
7560 * cp-support.c: Update.
7561 * cp-valprint.c: Update.
7562 * darwin-nat.c: Update.
7563 * disasm-selftests.c: Update.
7564 * dtrace-probe.c: Update.
7565 * dwarf-index-cache.c: Update.
7566 * dwarf-index-write.c: Update.
7567 * dwarf2-frame-tailcall.c: Update.
7568 * dwarf2-frame.c: Update.
7569 * dwarf2loc.c: Update.
7570 * dwarf2read.c: Update.
7571 * eval.c: Update.
7572 * event-loop.c: Update.
7573 * event-top.c: Update.
7574 * exec.c: Update.
7575 * f-valprint.c: Update.
7576 * fbsd-tdep.c: Update.
7577 * frame-unwind.c: Update.
7578 * frame.c: Update.
7579 * gdbtypes.c: Update.
7580 * gnu-v3-abi.c: Update.
7581 * guile/guile-internal.h: Update.
7582 * guile/scm-block.c: Update.
7583 * guile/scm-breakpoint.c: Update.
7584 * guile/scm-cmd.c: Update.
7585 * guile/scm-disasm.c: Update.
7586 * guile/scm-frame.c: Update.
7587 * guile/scm-lazy-string.c: Update.
7588 * guile/scm-math.c: Update.
7589 * guile/scm-param.c: Update.
7590 * guile/scm-ports.c: Update.
7591 * guile/scm-pretty-print.c: Update.
7592 * guile/scm-symbol.c: Update.
7593 * guile/scm-symtab.c: Update.
7594 * guile/scm-type.c: Update.
7595 * guile/scm-value.c: Update.
7596 * i386-linux-tdep.c: Update.
7597 * i386-tdep.c: Update.
7598 * inf-loop.c: Update.
7599 * infcall.c: Update.
7600 * infcmd.c: Update.
7601 * infrun.c: Update.
7602 * jit.c: Update.
7603 * language.c: Update.
7604 * linespec.c: Update.
7605 * linux-fork.c: Update.
7606 * linux-nat.c: Update.
7607 * linux-tdep.c: Update.
7608 * linux-thread-db.c: Update.
7609 * main.c: Update.
7610 * mi/mi-cmd-break.c: Update.
7611 * mi/mi-cmd-stack.c: Update.
7612 * mi/mi-interp.c: Update.
7613 * mi/mi-main.c: Update.
7614 * objc-lang.c: Update.
7615 * p-valprint.c: Update.
7616 * parse.c: Update.
7617 * ppc-linux-tdep.c: Update.
7618 * printcmd.c: Update.
7619 * python/py-arch.c: Update.
7620 * python/py-breakpoint.c: Update.
7621 * python/py-cmd.c: Update.
7622 * python/py-finishbreakpoint.c: Update.
7623 * python/py-frame.c: Update.
7624 * python/py-framefilter.c: Update.
7625 * python/py-gdb-readline.c: Update.
7626 * python/py-inferior.c: Update.
7627 * python/py-infthread.c: Update.
7628 * python/py-lazy-string.c: Update.
7629 * python/py-linetable.c: Update.
7630 * python/py-objfile.c: Update.
7631 * python/py-param.c: Update.
7632 * python/py-prettyprint.c: Update.
7633 * python/py-progspace.c: Update.
7634 * python/py-record-btrace.c: Update.
7635 * python/py-record.c: Update.
7636 * python/py-symbol.c: Update.
7637 * python/py-type.c: Update.
7638 * python/py-unwind.c: Update.
7639 * python/py-utils.c: Update.
7640 * python/py-value.c: Update.
7641 * python/python.c: Update.
7642 * record-btrace.c: Update.
7643 * record-full.c: Update.
7644 * remote-fileio.c: Update.
7645 * remote.c: Update.
7646 * riscv-tdep.c: Update.
7647 * rs6000-aix-tdep.c: Update.
7648 * rs6000-tdep.c: Update.
7649 * rust-exp.y: Update.
7650 * rust-lang.c: Update.
7651 * s390-tdep.c: Update.
7652 * selftest-arch.c: Update.
7653 * solib-dsbt.c: Update.
7654 * solib-frv.c: Update.
7655 * solib-spu.c: Update.
7656 * solib-svr4.c: Update.
7657 * solib.c: Update.
7658 * sparc64-linux-tdep.c: Update.
7659 * stack.c: Update.
7660 * symfile-mem.c: Update.
7661 * symmisc.c: Update.
7662 * target.c: Update.
7663 * thread.c: Update.
7664 * top.c: Update.
7665 * tracefile-tfile.c: Update.
7666 * tui/tui.c: Update.
7667 * typeprint.c: Update.
7668 * unittests/cli-utils-selftests.c: Update.
7669 * unittests/parse-connection-spec-selftests.c: Update.
7670 * valops.c: Update.
7671 * valprint.c: Update.
7672 * value.c: Update.
7673 * varobj.c: Update.
7674 * windows-nat.c: Update.
7675 * x86-linux-nat.c: Update.
7676 * xml-support.c: Update.
7677
a70b8144
TT
76782019-04-08 Tom Tromey <tom@tromey.com>
7679
7680 * xml-support.c: Use C++ exception handling.
7681 * x86-linux-nat.c: Use C++ exception handling.
7682 * windows-nat.c: Use C++ exception handling.
7683 * varobj.c: Use C++ exception handling.
7684 * value.c: Use C++ exception handling.
7685 * valprint.c: Use C++ exception handling.
7686 * valops.c: Use C++ exception handling.
7687 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7688 handling.
7689 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7690 * typeprint.c: Use C++ exception handling.
7691 * tui/tui.c: Use C++ exception handling.
7692 * tracefile-tfile.c: Use C++ exception handling.
7693 * top.c: Use C++ exception handling.
7694 * thread.c: Use C++ exception handling.
7695 * target.c: Use C++ exception handling.
7696 * symmisc.c: Use C++ exception handling.
7697 * symfile-mem.c: Use C++ exception handling.
7698 * stack.c: Use C++ exception handling.
7699 * sparc64-linux-tdep.c: Use C++ exception handling.
7700 * solib.c: Use C++ exception handling.
7701 * solib-svr4.c: Use C++ exception handling.
7702 * solib-spu.c: Use C++ exception handling.
7703 * solib-frv.c: Use C++ exception handling.
7704 * solib-dsbt.c: Use C++ exception handling.
7705 * selftest-arch.c: Use C++ exception handling.
7706 * s390-tdep.c: Use C++ exception handling.
7707 * rust-lang.c: Use C++ exception handling.
7708 * rust-exp.y: Use C++ exception handling.
7709 * rs6000-tdep.c: Use C++ exception handling.
7710 * rs6000-aix-tdep.c: Use C++ exception handling.
7711 * riscv-tdep.c: Use C++ exception handling.
7712 * remote.c: Use C++ exception handling.
7713 * remote-fileio.c: Use C++ exception handling.
7714 * record-full.c: Use C++ exception handling.
7715 * record-btrace.c: Use C++ exception handling.
7716 * python/python.c: Use C++ exception handling.
7717 * python/py-value.c: Use C++ exception handling.
7718 * python/py-utils.c: Use C++ exception handling.
7719 * python/py-unwind.c: Use C++ exception handling.
7720 * python/py-type.c: Use C++ exception handling.
7721 * python/py-symbol.c: Use C++ exception handling.
7722 * python/py-record.c: Use C++ exception handling.
7723 * python/py-record-btrace.c: Use C++ exception handling.
7724 * python/py-progspace.c: Use C++ exception handling.
7725 * python/py-prettyprint.c: Use C++ exception handling.
7726 * python/py-param.c: Use C++ exception handling.
7727 * python/py-objfile.c: Use C++ exception handling.
7728 * python/py-linetable.c: Use C++ exception handling.
7729 * python/py-lazy-string.c: Use C++ exception handling.
7730 * python/py-infthread.c: Use C++ exception handling.
7731 * python/py-inferior.c: Use C++ exception handling.
7732 * python/py-gdb-readline.c: Use C++ exception handling.
7733 * python/py-framefilter.c: Use C++ exception handling.
7734 * python/py-frame.c: Use C++ exception handling.
7735 * python/py-finishbreakpoint.c: Use C++ exception handling.
7736 * python/py-cmd.c: Use C++ exception handling.
7737 * python/py-breakpoint.c: Use C++ exception handling.
7738 * python/py-arch.c: Use C++ exception handling.
7739 * printcmd.c: Use C++ exception handling.
7740 * ppc-linux-tdep.c: Use C++ exception handling.
7741 * parse.c: Use C++ exception handling.
7742 * p-valprint.c: Use C++ exception handling.
7743 * objc-lang.c: Use C++ exception handling.
7744 * mi/mi-main.c: Use C++ exception handling.
7745 * mi/mi-interp.c: Use C++ exception handling.
7746 * mi/mi-cmd-stack.c: Use C++ exception handling.
7747 * mi/mi-cmd-break.c: Use C++ exception handling.
7748 * main.c: Use C++ exception handling.
7749 * linux-thread-db.c: Use C++ exception handling.
7750 * linux-tdep.c: Use C++ exception handling.
7751 * linux-nat.c: Use C++ exception handling.
7752 * linux-fork.c: Use C++ exception handling.
7753 * linespec.c: Use C++ exception handling.
7754 * language.c: Use C++ exception handling.
7755 * jit.c: Use C++ exception handling.
7756 * infrun.c: Use C++ exception handling.
7757 * infcmd.c: Use C++ exception handling.
7758 * infcall.c: Use C++ exception handling.
7759 * inf-loop.c: Use C++ exception handling.
7760 * i386-tdep.c: Use C++ exception handling.
7761 * i386-linux-tdep.c: Use C++ exception handling.
7762 * guile/scm-value.c: Use C++ exception handling.
7763 * guile/scm-type.c: Use C++ exception handling.
7764 * guile/scm-symtab.c: Use C++ exception handling.
7765 * guile/scm-symbol.c: Use C++ exception handling.
7766 * guile/scm-pretty-print.c: Use C++ exception handling.
7767 * guile/scm-ports.c: Use C++ exception handling.
7768 * guile/scm-param.c: Use C++ exception handling.
7769 * guile/scm-math.c: Use C++ exception handling.
7770 * guile/scm-lazy-string.c: Use C++ exception handling.
7771 * guile/scm-frame.c: Use C++ exception handling.
7772 * guile/scm-disasm.c: Use C++ exception handling.
7773 * guile/scm-cmd.c: Use C++ exception handling.
7774 * guile/scm-breakpoint.c: Use C++ exception handling.
7775 * guile/scm-block.c: Use C++ exception handling.
7776 * guile/guile-internal.h: Use C++ exception handling.
7777 * gnu-v3-abi.c: Use C++ exception handling.
7778 * gdbtypes.c: Use C++ exception handling.
7779 * frame.c: Use C++ exception handling.
7780 * frame-unwind.c: Use C++ exception handling.
7781 * fbsd-tdep.c: Use C++ exception handling.
7782 * f-valprint.c: Use C++ exception handling.
7783 * exec.c: Use C++ exception handling.
7784 * event-top.c: Use C++ exception handling.
7785 * event-loop.c: Use C++ exception handling.
7786 * eval.c: Use C++ exception handling.
7787 * dwarf2read.c: Use C++ exception handling.
7788 * dwarf2loc.c: Use C++ exception handling.
7789 * dwarf2-frame.c: Use C++ exception handling.
7790 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7791 * dwarf-index-write.c: Use C++ exception handling.
7792 * dwarf-index-cache.c: Use C++ exception handling.
7793 * dtrace-probe.c: Use C++ exception handling.
7794 * disasm-selftests.c: Use C++ exception handling.
7795 * darwin-nat.c: Use C++ exception handling.
7796 * cp-valprint.c: Use C++ exception handling.
7797 * cp-support.c: Use C++ exception handling.
7798 * cp-abi.c: Use C++ exception handling.
7799 * corelow.c: Use C++ exception handling.
7800 * completer.c: Use C++ exception handling.
7801 * compile/compile-object-run.c: Use C++ exception handling.
7802 * compile/compile-object-load.c: Use C++ exception handling.
7803 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7804 * compile/compile-c-symbols.c: Use C++ exception handling.
7805 * common/selftest.c: Use C++ exception handling.
7806 * common/new-op.c: Use C++ exception handling.
7807 * cli/cli-script.c: Use C++ exception handling.
7808 * cli/cli-interp.c: Use C++ exception handling.
7809 * cli/cli-cmds.c: Use C++ exception handling.
7810 * c-varobj.c: Use C++ exception handling.
7811 * btrace.c: Use C++ exception handling.
7812 * breakpoint.c: Use C++ exception handling.
7813 * break-catch-throw.c: Use C++ exception handling.
7814 * arch-utils.c: Use C++ exception handling.
7815 * amd64-tdep.c: Use C++ exception handling.
7816 * ada-valprint.c: Use C++ exception handling.
7817 * ada-typeprint.c: Use C++ exception handling.
7818 * ada-lang.c: Use C++ exception handling.
7819 * aarch64-tdep.c: Use C++ exception handling.
7820
3d6e9d23
TT
78212019-04-08 Tom Tromey <tom@tromey.com>
7822
7823 * xml-support.c (gdb_xml_parser::parse): Update.
7824 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7825 * value.c (show_convenience): Update.
7826 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7827 (test_parse_flags_qcs): Update.
7828 * thread.c (thr_try_catch_cmd): Update.
7829 * target.c (target_translate_tls_address): Update.
7830 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7831 (info_frame_command_core, frame_apply_command_count): Update.
7832 * rust-exp.y (rust_lex_exception_test): Update.
7833 * riscv-tdep.c (riscv_print_one_register_info): Update.
7834 * remote.c (remote_target::enable_btrace): Update.
7835 * record-btrace.c (record_btrace_enable_warn): Update.
7836 * python/py-utils.c (gdbpy_convert_exception): Update.
7837 * printcmd.c (do_one_display, print_variable_and_value): Update.
7838 * mi/mi-main.c (mi_print_exception): Update.
7839 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7840 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7841 * linux-nat.c (linux_nat_target::attach): Update.
7842 * linux-fork.c (class scoped_switch_fork_info): Update.
7843 * infrun.c (displaced_step_prepare): Update.
7844 * infcall.c (call_function_by_hand_dummy): Update.
7845 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7846 * gnu-v3-abi.c (print_one_vtable): Update.
7847 * frame.c (get_prev_frame_always): Update.
7848 * f-valprint.c (info_common_command_for_block): Update.
7849 * exec.c (try_open_exec_file): Update.
7850 * exceptions.c (print_exception, exception_print)
7851 (exception_fprintf, exception_print_same): Update.
7852 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7853 * dwarf-index-cache.c (index_cache::store)
7854 (index_cache::lookup_gdb_index): Update.
7855 * darwin-nat.c (maybe_cache_shell): Update.
7856 * cp-valprint.c (cp_print_value_fields): Update.
7857 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7858 (gcc_cplus_symbol_address): Update.
7859 * compile/compile-c-symbols.c (gcc_convert_symbol)
7860 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7861 * common/selftest.c: Update.
7862 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7863 a std::string.
7864 (exception_try_scope_entry, exception_try_scope_exit): Don't
7865 declare.
7866 (struct exception_try_scope): Remove.
7867 (TRY): Don't use exception_try_scope.
7868 (struct gdb_exception): Add constructor, operator=.
7869 <what>: New method.
7870 (struct gdb_exception_RETURN_MASK_ALL)
7871 (struct gdb_exception_RETURN_MASK_ERROR)
7872 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7873 (struct gdb_quit_bad_alloc): Update.
7874 * common/common-exceptions.c (exception_none): Change
7875 initializer.
7876 (struct catcher) <state, exception>: Initialize inline.
7877 <prev>: Remove member.
7878 (current_catcher): Remove.
7879 (catchers): New global.
7880 (exceptions_state_mc_init): Simplify.
7881 (catcher_pop): Remove.
7882 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7883 (try_scope_depth, exception_try_scope_entry)
7884 (exception_try_scope_exit): Remove.
7885 (throw_exception_sjlj): Update.
7886 (exception_messages, exception_messages_size): Remove.
7887 (throw_it): Simplify.
7888 (gdb_exception_sliced_copy): Remove.
7889 (throw_exception_cxx): Update.
7890 * cli/cli-script.c (script_from_file): Update.
7891 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7892 Update.
7893 * ada-valprint.c (ada_val_print): Update.
7894 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7895 (create_excep_cond_exprs): Update.
7896
c5c10118
TT
78972019-04-08 Tom Tromey <tom@tromey.com>
7898
7899 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7900 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7901 (TRY, CATCH, END_CATCH): Remove some definitions.
7902 * common/common-exceptions.c: Don't use GDB_XCPT.
7903 (catcher_list_size): Remove.
7904 (throw_exception, throw_it): Simplify.
7905
4de283e4
TT
79062019-04-05 Tom Tromey <tom@tromey.com>
7907
7908 Revert the header-sorting patch.
7909 * ft32-tdep.c: Revert.
7910 * frv-tdep.c: Revert.
7911 * frv-linux-tdep.c: Revert.
7912 * frame.c: Revert.
7913 * frame-unwind.c: Revert.
7914 * frame-base.c: Revert.
7915 * fork-child.c: Revert.
7916 * findvar.c: Revert.
7917 * findcmd.c: Revert.
7918 * filesystem.c: Revert.
7919 * filename-seen-cache.h: Revert.
7920 * filename-seen-cache.c: Revert.
7921 * fbsd-tdep.c: Revert.
7922 * fbsd-nat.h: Revert.
7923 * fbsd-nat.c: Revert.
7924 * f-valprint.c: Revert.
7925 * f-typeprint.c: Revert.
7926 * f-lang.c: Revert.
7927 * extension.h: Revert.
7928 * extension.c: Revert.
7929 * extension-priv.h: Revert.
7930 * expprint.c: Revert.
7931 * exec.h: Revert.
7932 * exec.c: Revert.
7933 * exceptions.c: Revert.
7934 * event-top.c: Revert.
7935 * event-loop.c: Revert.
7936 * eval.c: Revert.
7937 * elfread.c: Revert.
7938 * dwarf2read.h: Revert.
7939 * dwarf2read.c: Revert.
7940 * dwarf2loc.c: Revert.
7941 * dwarf2expr.h: Revert.
7942 * dwarf2expr.c: Revert.
7943 * dwarf2-frame.c: Revert.
7944 * dwarf2-frame-tailcall.c: Revert.
7945 * dwarf-index-write.h: Revert.
7946 * dwarf-index-write.c: Revert.
7947 * dwarf-index-common.c: Revert.
7948 * dwarf-index-cache.h: Revert.
7949 * dwarf-index-cache.c: Revert.
7950 * dummy-frame.c: Revert.
7951 * dtrace-probe.c: Revert.
7952 * disasm.h: Revert.
7953 * disasm.c: Revert.
7954 * disasm-selftests.c: Revert.
7955 * dictionary.c: Revert.
7956 * dicos-tdep.c: Revert.
7957 * demangle.c: Revert.
7958 * dcache.h: Revert.
7959 * dcache.c: Revert.
7960 * darwin-nat.h: Revert.
7961 * darwin-nat.c: Revert.
7962 * darwin-nat-info.c: Revert.
7963 * d-valprint.c: Revert.
7964 * d-namespace.c: Revert.
7965 * d-lang.c: Revert.
7966 * ctf.c: Revert.
7967 * csky-tdep.c: Revert.
7968 * csky-linux-tdep.c: Revert.
7969 * cris-tdep.c: Revert.
7970 * cris-linux-tdep.c: Revert.
7971 * cp-valprint.c: Revert.
7972 * cp-support.c: Revert.
7973 * cp-namespace.c: Revert.
7974 * cp-abi.c: Revert.
7975 * corelow.c: Revert.
7976 * corefile.c: Revert.
7977 * continuations.c: Revert.
7978 * completer.h: Revert.
7979 * completer.c: Revert.
7980 * complaints.c: Revert.
7981 * coffread.c: Revert.
7982 * coff-pe-read.c: Revert.
7983 * cli-out.h: Revert.
7984 * cli-out.c: Revert.
7985 * charset.c: Revert.
7986 * c-varobj.c: Revert.
7987 * c-valprint.c: Revert.
7988 * c-typeprint.c: Revert.
7989 * c-lang.c: Revert.
7990 * buildsym.c: Revert.
7991 * buildsym-legacy.c: Revert.
7992 * build-id.h: Revert.
7993 * build-id.c: Revert.
7994 * btrace.c: Revert.
7995 * bsd-uthread.c: Revert.
7996 * breakpoint.h: Revert.
7997 * breakpoint.c: Revert.
7998 * break-catch-throw.c: Revert.
7999 * break-catch-syscall.c: Revert.
8000 * break-catch-sig.c: Revert.
8001 * blockframe.c: Revert.
8002 * block.c: Revert.
8003 * bfin-tdep.c: Revert.
8004 * bfin-linux-tdep.c: Revert.
8005 * bfd-target.c: Revert.
8006 * bcache.c: Revert.
8007 * ax-general.c: Revert.
8008 * ax-gdb.h: Revert.
8009 * ax-gdb.c: Revert.
8010 * avr-tdep.c: Revert.
8011 * auxv.c: Revert.
8012 * auto-load.c: Revert.
8013 * arm-wince-tdep.c: Revert.
8014 * arm-tdep.c: Revert.
8015 * arm-symbian-tdep.c: Revert.
8016 * arm-pikeos-tdep.c: Revert.
8017 * arm-obsd-tdep.c: Revert.
8018 * arm-nbsd-tdep.c: Revert.
8019 * arm-nbsd-nat.c: Revert.
8020 * arm-linux-tdep.c: Revert.
8021 * arm-linux-nat.c: Revert.
8022 * arm-fbsd-tdep.c: Revert.
8023 * arm-fbsd-nat.c: Revert.
8024 * arm-bsd-tdep.c: Revert.
8025 * arch-utils.c: Revert.
8026 * arc-tdep.c: Revert.
8027 * arc-newlib-tdep.c: Revert.
8028 * annotate.h: Revert.
8029 * annotate.c: Revert.
8030 * amd64-windows-tdep.c: Revert.
8031 * amd64-windows-nat.c: Revert.
8032 * amd64-tdep.c: Revert.
8033 * amd64-sol2-tdep.c: Revert.
8034 * amd64-obsd-tdep.c: Revert.
8035 * amd64-obsd-nat.c: Revert.
8036 * amd64-nbsd-tdep.c: Revert.
8037 * amd64-nbsd-nat.c: Revert.
8038 * amd64-nat.c: Revert.
8039 * amd64-linux-tdep.c: Revert.
8040 * amd64-linux-nat.c: Revert.
8041 * amd64-fbsd-tdep.c: Revert.
8042 * amd64-fbsd-nat.c: Revert.
8043 * amd64-dicos-tdep.c: Revert.
8044 * amd64-darwin-tdep.c: Revert.
8045 * amd64-bsd-nat.c: Revert.
8046 * alpha-tdep.c: Revert.
8047 * alpha-obsd-tdep.c: Revert.
8048 * alpha-nbsd-tdep.c: Revert.
8049 * alpha-mdebug-tdep.c: Revert.
8050 * alpha-linux-tdep.c: Revert.
8051 * alpha-linux-nat.c: Revert.
8052 * alpha-bsd-tdep.c: Revert.
8053 * alpha-bsd-nat.c: Revert.
8054 * aix-thread.c: Revert.
8055 * agent.c: Revert.
8056 * addrmap.c: Revert.
8057 * ada-varobj.c: Revert.
8058 * ada-valprint.c: Revert.
8059 * ada-typeprint.c: Revert.
8060 * ada-tasks.c: Revert.
8061 * ada-lang.c: Revert.
8062 * aarch64-tdep.c: Revert.
8063 * aarch64-ravenscar-thread.c: Revert.
8064 * aarch64-newlib-tdep.c: Revert.
8065 * aarch64-linux-tdep.c: Revert.
8066 * aarch64-linux-nat.c: Revert.
8067 * aarch64-fbsd-tdep.c: Revert.
8068 * aarch64-fbsd-nat.c: Revert.
8069 * aarch32-linux-nat.c: Revert.
8070
d55e5aa6
TT
80712019-04-05 Tom Tromey <tom@tromey.com>
8072
8073 * ft32-tdep.c: Sort headers.
8074 * frv-tdep.c: Sort headers.
8075 * frv-linux-tdep.c: Sort headers.
8076 * frame.c: Sort headers.
8077 * frame-unwind.c: Sort headers.
8078 * frame-base.c: Sort headers.
8079 * fork-child.c: Sort headers.
8080 * findvar.c: Sort headers.
8081 * findcmd.c: Sort headers.
8082 * filesystem.c: Sort headers.
8083 * filename-seen-cache.h: Sort headers.
8084 * filename-seen-cache.c: Sort headers.
8085 * fbsd-tdep.c: Sort headers.
8086 * fbsd-nat.h: Sort headers.
8087 * fbsd-nat.c: Sort headers.
8088 * f-valprint.c: Sort headers.
8089 * f-typeprint.c: Sort headers.
8090 * f-lang.c: Sort headers.
8091 * extension.h: Sort headers.
8092 * extension.c: Sort headers.
8093 * extension-priv.h: Sort headers.
8094 * expprint.c: Sort headers.
8095 * exec.h: Sort headers.
8096 * exec.c: Sort headers.
8097 * exceptions.c: Sort headers.
8098 * event-top.c: Sort headers.
8099 * event-loop.c: Sort headers.
8100 * eval.c: Sort headers.
8101 * elfread.c: Sort headers.
8102 * dwarf2read.h: Sort headers.
8103 * dwarf2read.c: Sort headers.
8104 * dwarf2loc.c: Sort headers.
8105 * dwarf2expr.h: Sort headers.
8106 * dwarf2expr.c: Sort headers.
8107 * dwarf2-frame.c: Sort headers.
8108 * dwarf2-frame-tailcall.c: Sort headers.
8109 * dwarf-index-write.h: Sort headers.
8110 * dwarf-index-write.c: Sort headers.
8111 * dwarf-index-common.c: Sort headers.
8112 * dwarf-index-cache.h: Sort headers.
8113 * dwarf-index-cache.c: Sort headers.
8114 * dummy-frame.c: Sort headers.
8115 * dtrace-probe.c: Sort headers.
8116 * disasm.h: Sort headers.
8117 * disasm.c: Sort headers.
8118 * disasm-selftests.c: Sort headers.
8119 * dictionary.c: Sort headers.
8120 * dicos-tdep.c: Sort headers.
8121 * demangle.c: Sort headers.
8122 * dcache.h: Sort headers.
8123 * dcache.c: Sort headers.
8124 * darwin-nat.h: Sort headers.
8125 * darwin-nat.c: Sort headers.
8126 * darwin-nat-info.c: Sort headers.
8127 * d-valprint.c: Sort headers.
8128 * d-namespace.c: Sort headers.
8129 * d-lang.c: Sort headers.
8130 * ctf.c: Sort headers.
8131 * csky-tdep.c: Sort headers.
8132 * csky-linux-tdep.c: Sort headers.
8133 * cris-tdep.c: Sort headers.
8134 * cris-linux-tdep.c: Sort headers.
8135 * cp-valprint.c: Sort headers.
8136 * cp-support.c: Sort headers.
8137 * cp-namespace.c: Sort headers.
8138 * cp-abi.c: Sort headers.
8139 * corelow.c: Sort headers.
8140 * corefile.c: Sort headers.
8141 * continuations.c: Sort headers.
8142 * completer.h: Sort headers.
8143 * completer.c: Sort headers.
8144 * complaints.c: Sort headers.
8145 * coffread.c: Sort headers.
8146 * coff-pe-read.c: Sort headers.
8147 * cli-out.h: Sort headers.
8148 * cli-out.c: Sort headers.
8149 * charset.c: Sort headers.
8150 * c-varobj.c: Sort headers.
8151 * c-valprint.c: Sort headers.
8152 * c-typeprint.c: Sort headers.
8153 * c-lang.c: Sort headers.
8154 * buildsym.c: Sort headers.
8155 * buildsym-legacy.c: Sort headers.
8156 * build-id.h: Sort headers.
8157 * build-id.c: Sort headers.
8158 * btrace.c: Sort headers.
8159 * bsd-uthread.c: Sort headers.
8160 * breakpoint.h: Sort headers.
8161 * breakpoint.c: Sort headers.
8162 * break-catch-throw.c: Sort headers.
8163 * break-catch-syscall.c: Sort headers.
8164 * break-catch-sig.c: Sort headers.
8165 * blockframe.c: Sort headers.
8166 * block.c: Sort headers.
8167 * bfin-tdep.c: Sort headers.
8168 * bfin-linux-tdep.c: Sort headers.
8169 * bfd-target.c: Sort headers.
8170 * bcache.c: Sort headers.
8171 * ax-general.c: Sort headers.
8172 * ax-gdb.h: Sort headers.
8173 * ax-gdb.c: Sort headers.
8174 * avr-tdep.c: Sort headers.
8175 * auxv.c: Sort headers.
8176 * auto-load.c: Sort headers.
8177 * arm-wince-tdep.c: Sort headers.
8178 * arm-tdep.c: Sort headers.
8179 * arm-symbian-tdep.c: Sort headers.
8180 * arm-pikeos-tdep.c: Sort headers.
8181 * arm-obsd-tdep.c: Sort headers.
8182 * arm-nbsd-tdep.c: Sort headers.
8183 * arm-nbsd-nat.c: Sort headers.
8184 * arm-linux-tdep.c: Sort headers.
8185 * arm-linux-nat.c: Sort headers.
8186 * arm-fbsd-tdep.c: Sort headers.
8187 * arm-fbsd-nat.c: Sort headers.
8188 * arm-bsd-tdep.c: Sort headers.
8189 * arch-utils.c: Sort headers.
8190 * arc-tdep.c: Sort headers.
8191 * arc-newlib-tdep.c: Sort headers.
8192 * annotate.h: Sort headers.
8193 * annotate.c: Sort headers.
8194 * amd64-windows-tdep.c: Sort headers.
8195 * amd64-windows-nat.c: Sort headers.
8196 * amd64-tdep.c: Sort headers.
8197 * amd64-sol2-tdep.c: Sort headers.
8198 * amd64-obsd-tdep.c: Sort headers.
8199 * amd64-obsd-nat.c: Sort headers.
8200 * amd64-nbsd-tdep.c: Sort headers.
8201 * amd64-nbsd-nat.c: Sort headers.
8202 * amd64-nat.c: Sort headers.
8203 * amd64-linux-tdep.c: Sort headers.
8204 * amd64-linux-nat.c: Sort headers.
8205 * amd64-fbsd-tdep.c: Sort headers.
8206 * amd64-fbsd-nat.c: Sort headers.
8207 * amd64-dicos-tdep.c: Sort headers.
8208 * amd64-darwin-tdep.c: Sort headers.
8209 * amd64-bsd-nat.c: Sort headers.
8210 * alpha-tdep.c: Sort headers.
8211 * alpha-obsd-tdep.c: Sort headers.
8212 * alpha-nbsd-tdep.c: Sort headers.
8213 * alpha-mdebug-tdep.c: Sort headers.
8214 * alpha-linux-tdep.c: Sort headers.
8215 * alpha-linux-nat.c: Sort headers.
8216 * alpha-bsd-tdep.c: Sort headers.
8217 * alpha-bsd-nat.c: Sort headers.
8218 * aix-thread.c: Sort headers.
8219 * agent.c: Sort headers.
8220 * addrmap.c: Sort headers.
8221 * ada-varobj.c: Sort headers.
8222 * ada-valprint.c: Sort headers.
8223 * ada-typeprint.c: Sort headers.
8224 * ada-tasks.c: Sort headers.
8225 * ada-lang.c: Sort headers.
8226 * aarch64-tdep.c: Sort headers.
8227 * aarch64-ravenscar-thread.c: Sort headers.
8228 * aarch64-newlib-tdep.c: Sort headers.
8229 * aarch64-linux-tdep.c: Sort headers.
8230 * aarch64-linux-nat.c: Sort headers.
8231 * aarch64-fbsd-tdep.c: Sort headers.
8232 * aarch64-fbsd-nat.c: Sort headers.
8233 * aarch32-linux-nat.c: Sort headers.
8234
699bd4cf
TT
82352019-04-04 Tom Tromey <tom@tromey.com>
8236
8237 * varobj.c (varobj_create): Update.
8238 * rust-exp.y (struct rust_parser) <update_innermost_block,
8239 lookup_symbol>: New methods.
8240 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8241 Rename.
8242 (rust_parser::rust_lookup_type)
8243 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8244 * printcmd.c (display_command, do_one_display): Update.
8245 * parser-defs.h (struct parser_state) <parser_state>: Add
8246 "tracker" parameter.
8247 (block_tracker): New member.
8248 (class innermost_block_tracker) <innermost_block_tracker>: Add
8249 "types" parameter.
8250 <reset>: Remove method.
8251 (innermost_block): Don't declare.
8252 (null_post_parser): Update.
8253 * parse.c (innermost_block): Remove global.
8254 (write_dollar_variable): Update.
8255 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8256 Remove "tracker_types" parameter.
8257 (parse_expression): Add "tracker" parameter.
8258 (parse_expression_for_completion): Update.
8259 (null_post_parser): Add "tracker" parameter.
8260 * p-exp.y: Update rules.
8261 * m2-exp.y: Update rules.
8262 * language.h (struct language_defn) <la_post_parser>: Add
8263 "tracker" parameter.
8264 * go-exp.y: Update rules.
8265 * f-exp.y: Update rules.
8266 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8267 parameter.
8268 * d-exp.y: Update rules.
8269 * c-exp.y: Update rules.
8270 * breakpoint.c (set_breakpoint_condition): Create an
8271 innermost_block_tracker.
8272 (watch_command_1): Likewise.
8273 * ada-lang.c (resolve): Add "tracker" parameter.
8274 (resolve_subexp): Likewise.
8275 * ada-exp.y (write_var_from_sym): Update.
8276
dac43e32
TT
82772019-04-04 Tom Tromey <tom@tromey.com>
8278
8279 * type-stack.h: New file.
8280 * type-stack.c: New file.
8281 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8282 type-stack.h.
8283 (insert_into_type_stack, insert_type, push_type, push_type_int)
8284 (insert_type_address_space, pop_type, pop_type_int)
8285 (pop_typelist, pop_type_stack, append_type_stack)
8286 (push_type_stack, get_type_stack, push_typelist)
8287 (follow_type_instance_flags, follow_types): Don't declare.
8288 * parse.c (type_stack): Remove global.
8289 (parse_exp_in_context): Update.
8290 (insert_into_type_stack, insert_type, push_type, push_type_int)
8291 (insert_type_address_space, pop_type, pop_type_int)
8292 (pop_typelist, pop_type_stack, append_type_stack)
8293 (push_type_stack, get_type_stack, push_typelist)
8294 (follow_type_instance_flags, follow_types): Remove (moved to
8295 type-stack.c).
8296 * f-exp.y (type_stack): New global.
8297 Update rules.
8298 (push_kind_type, f_parse): Update.
8299 * d-exp.y (type_stack): New global.
8300 Update rules.
8301 (d_parse): Update.
8302 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8303 Update rules.
8304 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8305 (HFILES_NO_SRCDIR): Add type-stack.h.
8306
2a612529
TT
83072019-04-04 Tom Tromey <tom@tromey.com>
8308
8309 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8310 (rust_parser::convert_ast_to_expression, rust_parse)
8311 (rust_lex_test_completion, rust_lex_tests): Update.
8312 * parser-defs.h (struct expr_completion_state): New.
8313 (struct parser_state) <parser_state>: Add completion parameter.
8314 <mark_struct_expression, mark_completion_tag>: New methods.
8315 <parse_completion, m_completion_state>: New members.
8316 (prefixify_expression, null_post_parser): Update.
8317 (mark_struct_expression, mark_completion_tag): Don't declare.
8318 * parse.c (parse_completion, expout_last_struct)
8319 (expout_tag_completion_type, expout_completion_name): Remove
8320 globals.
8321 (parser_state::mark_struct_expression)
8322 (parser_state::mark_completion_tag): Now methods.
8323 (prefixify_expression): Add last_struct parameter.
8324 (prefixify_subexp): Likewise.
8325 (parse_exp_1): Update.
8326 (parse_exp_in_context): Add cstate parameter. Update.
8327 (parse_expression_for_completion): Create an
8328 expr_completion_state.
8329 (null_post_parser): Add "completion" parameter.
8330 * p-exp.y: Update rules.
8331 (yylex): Update.
8332 * language.h (struct language_defn) <la_post_parser>: Add
8333 "completing" parameter.
8334 * go-exp.y: Update rules.
8335 (lex_one_token): Update.
8336 * expression.h (parse_completion): Don't declare.
8337 * d-exp.y: Update rules.
8338 (lex_one_token): Update rules.
8339 * c-exp.y: Update rules.
8340 (lex_one_token): Update.
8341 * ada-lang.c (resolve): Add "parse_completion" parameter.
8342 (resolve_subexp): Likewise.
8343 (ada_resolve_function): Likewise.
8344
43476f0b
TT
83452019-04-04 Tom Tromey <tom@tromey.com>
8346
8347 * parser-defs.h (struct parser_state) <start_arglist,
8348 end_arglist>: New methods.
8349 <arglist_len, m_funcall_chain>: New members.
8350 (arglist_len, start_arglist, end_arglist): Don't declare.
8351 * parse.c (arglist_len, funcall_chain): Remove global.
8352 (start_arglist, end_arglist): Remove functions.
8353 (parse_exp_in_context): Update.
8354 * p-exp.y: Update rules.
8355 * m2-exp.y: Update rules.
8356 * go-exp.y: Update rules.
8357 * f-exp.y: Update rules.
8358 * d-exp.y: Update rules.
8359 * c-exp.y: Update rules.
8360
5776fca3
TT
83612019-04-04 Tom Tromey <tom@tromey.com>
8362
8363 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8364 lex_operator, push_back>: New methods.
8365 Update all rules.
8366 (rust_parser::lex_hex, lex_escape): Rename and update.
8367 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8368 (rust_parser::lex_operator): Rename and update.
8369 (rust_parser::lex_number, rustyylex, rustyyerror)
8370 (rust_lex_test_init, rust_lex_test_sequence)
8371 (rust_lex_test_push_back, rust_lex_tests): Update.
8372 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8373 parameter.
8374 <lexptr, prev_lexptr>: New members.
8375 (lexptr, prev_lexptr): Don't declare.
8376 * parse.c (lexptr, prev_lexptr): Remove globals.
8377 (parse_exp_in_context): Update.
8378 * p-exp.y (yylex, yyerror): Update.
8379 * m2-exp.y (parse_number, yylex, yyerror): Update.
8380 * go-exp.y (lex_one_token, yyerror): Update.
8381 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8382 * d-exp.y (lex_one_token, yyerror): Update.
8383 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8384 (lex_one_token, yyerror): Update.
8385 * ada-lex.l (YY_INPUT): Update.
8386 (rewind_to_char): Update.
8387 * ada-exp.y (yyerror): Update.
8388
8621b685
TT
83892019-04-04 Tom Tromey <tom@tromey.com>
8390
8391 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8392 * parser-defs.h (struct parser_state) <parser_state>: Add new
8393 parameter.
8394 <comma_terminates>: New member.
8395 (comma_terminates): Don't declare global.
8396 * parse.c (comma_terminates): Remove global.
8397 (parse_exp_in_context): Update.
8398 * p-exp.y (yylex): Update.
8399 * m2-exp.y (yylex): Update.
8400 * go-exp.y (lex_one_token): Update.
8401 * f-exp.y (yylex): Update.
8402 * d-exp.y (lex_one_token): Update.
8403 * c-exp.y (lex_one_token): Update.
8404 * ada-lex.l: Update.
8405
28aaf3fd
TT
84062019-04-04 Tom Tromey <tom@tromey.com>
8407
8408 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8409 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8410 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8411 * parser-defs.h (paren_depth): Don't declare.
8412 * parse.c (paren_depth): Remove global.
8413 (parse_exp_in_context): Update.
8414 * p-exp.y (paren_depth): New global.
8415 (pascal_parse): Initialize it.
8416 * m2-exp.y (paren_depth): New global.
8417 (m2_parse): Initialize it.
8418 * go-exp.y (paren_depth): New global.
8419 (go_parse): Initialize it.
8420 * f-exp.y (paren_depth): New global.
8421 (f_parse): Initialize it.
8422 * d-exp.y (paren_depth): New global.
8423 (d_parse): Initialize it.
8424 * c-exp.y (paren_depth): New global.
8425 (c_parse): Initialize it.
8426 * ada-lex.l (paren_depth): New global.
8427 (lexer_init): Initialize it.
8428
1e58a4a4
TT
84292019-04-04 Tom Tromey <tom@tromey.com>
8430
8431 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8432 (rust_parser::convert_ast_to_type)
8433 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8434 * parser-defs.h (struct parser_state) <parser_state>: Add
8435 parameters. Initialize new members.
8436 <expression_context_block, expression_context_pc>: New members.
8437 * parse.c (expression_context_block, expression_context_pc):
8438 Remove globals.
8439 (parse_exp_in_context): Update.
8440 * p-exp.y: Update all rules.
8441 (yylex): Update.
8442 * m2-exp.y: Update all rules.
8443 (yylex): Update.
8444 * go-exp.y (yylex): Update.
8445 * f-exp.y (yylex): Update.
8446 * d-exp.y: Update all rules.
8447 (yylex): Update.
8448 * c-exp.y: Update all rules.
8449 (lex_one_token, classify_name, yylex, c_parse): Update.
8450 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8451
37eedb39
TT
84522019-04-04 Tom Tromey <tom@tromey.com>
8453
8454 * gdbarch.h, gdbarch.c: Rebuild.
8455 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8456 * stap-probe.h:
8457 (struct stap_parse_info): Replace "parser_state" with
8458 "expr_builder".
8459 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8460 (parser_state): New class.
8461 * parse.c (expr_builder): Rename.
8462 (expr_builder::release): Rename.
8463 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8464 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8465 (write_exp_elt_longcst, write_exp_elt_floatcst)
8466 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8467 (write_exp_string_vector, write_exp_bitstring)
8468 (write_exp_msymbol, mark_struct_expression)
8469 (write_dollar_variable)
8470 (insert_type_address_space, increase_expout_size): Replace
8471 "parser_state" with "expr_builder".
8472 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8473 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8474 "parser_state" with "expr_builder".
8475
73923d7e
TT
84762019-04-04 Tom Tromey <tom@tromey.com>
8477
8478 * rust-exp.y: Replace "parse_language" with method call.
8479 * p-exp.y:
8480 (yylex): Replace "parse_language" with method call.
8481 * m2-exp.y:
8482 (yylex): Replace "parse_language" with method call.
8483 * go-exp.y (classify_name): Replace "parse_language" with method
8484 call.
8485 * f-exp.y (yylex): Replace "parse_language" with method call.
8486 * d-exp.y (lex_one_token): Replace "parse_language" with method
8487 call.
8488 * c-exp.y:
8489 (lex_one_token, classify_name, yylex): Replace "parse_language"
8490 with method call.
8491 * ada-exp.y (find_primitive_type, type_char)
8492 (type_system_address): Replace "parse_language" with method call.
8493
fa9f5be6
TT
84942019-04-04 Tom Tromey <tom@tromey.com>
8495
8496 * rust-exp.y: Replace "parse_gdbarch" with method call.
8497 * parse.c (write_dollar_variable, insert_type_address_space):
8498 Replace "parse_gdbarch" with method call.
8499 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8500 call.
8501 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8502 call.
8503 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8504 "parse_gdbarch" with method call.
8505 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8506 with method call.
8507 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8508 "parse_gdbarch" with method call.
8509 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8510 "parse_gdbarch" with method call.
8511 * c-exp.y (parse_type, parse_number, classify_name): Replace
8512 "parse_gdbarch" with method call.
8513 * ada-lex.l: Replace "parse_gdbarch" with method call.
8514 * ada-exp.y (parse_type, find_primitive_type, type_char)
8515 (type_system_address): Replace "parse_gdbarch" with method call.
8516
1201a264
TT
85172019-04-04 Tom Tromey <tom@tromey.com>
8518
8519 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8520 * stap-probe.c (stap_parse_argument): Update.
8521 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8522 initial_size parameter.
8523 * rust-exp.y (rust_lex_tests): Update.
8524 * parse.c (parser_state): Update.
8525 (parse_exp_in_context): Update.
8526 * parser-defs.h (struct parser_state) <parser_state>: Remove
8527 "initial_size" parameter.
8528
e3980ce2
TT
85292019-04-04 Tom Tromey <tom@tromey.com>
8530
8531 * parser-defs.h (increase_expout_size): Don't declare.
8532 * parse.c (increase_expout_size): Now static.
8533
e9f8e3f1
TS
85342019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8535
8536 * gnu-nat.c (gnu_nat_target::wait): Fix
8537 target_waitstatus_to_string call.
8538
d7df6549
AB
85392019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8540
8541 * eval.c (evaluate_subexp_standard): Handle internal functions
8542 during Fortran function call handling.
8543
8bdc1658
AB
85442019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8545
8546 * NEWS: Mention new internal functions.
8547 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8548 (read_base_type): Use dwarf2_init_complex_target_type.
8549 * value.c (creal_internal_fn): New function.
8550 (cimag_internal_fn): New function.
8551 (_initialize_values): Register new internal functions.
8552
c29705b7
PW
85532019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8554
8555 * infrun.c (stop_all_threads): If debug_infrun, always
8556 trace the wait status after wait_one, using
8557 target_waitstatus_to_string and target_pid_to_str.
8558 (handle_inferior_event): Replace various trace of
8559 wait status kind by a single trace.
8560 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8561 wait status kind image by target_waitstatus_to_string.
8562 * target/waitstatus.c (target_waitstatus_to_string): Fix
8563 obsolete comment.
8564
05caa1d2
TT
85652019-04-01 Tom Tromey <tromey@adacore.com>
8566
8567 PR symtab/23331:
8568 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8569
9d1447e0
SDJ
85702019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8571 Pedro Alves <palves@redhat.com>
8572
8573 * top.c (quit_force): Call 'finalize_values'.
8574 * value.c (finalize_values): New function.
8575 * value.h (finalize_values): Declare.
8576
7734102d
EZ
85772019-03-30 Eli Zaretskii <eliz@gnu.org>
8578
8579 * NEWS: Announce $_gdb_major and $_gdb_minor.
8580
8581 * top.c (init_gdb_version_vars): New function.
8582 (gdb_init): Call init_gdb_version_vars.
8583
188e1fa9
TT
85842019-03-29 Tom Tromey <tromey@adacore.com>
8585
8586 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8587 help text. Remove dead code.
8588
2880242d
KS
85892019-03-29 Keith Seitz <keiths@redhat.com>
8590
8591 From Siddhesh Poyarekar:
8592 * f-lang.h (f77_get_upperbound): Return LONGEST.
8593 (f77_get_lowerbound): Likewise.
8594 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8595 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8596 print them.
8597 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8598 plongest to format print it.
8599 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8600 (f77_get_upperbound): Likewise.
8601 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8602 LOWER_BOUND to LONGEST.
8603 (f77_create_arrayprint_offset_tbl): Likewise.
8604
cc1defb1
KS
86052019-03-29 Keith Seitz <keiths@redhat.com>
8606
8607 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8608 %s/pulongest for TYPE_LENGTH instead of %d in format
8609 strings.
8610 * ada-typerint.c (ada_print_type): Likewise.
8611 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8612 * compile/compile-c-support.c (generate_register_struct): Likewise.
8613 * gdbtypes.c (recursive_dump_type): Likewise.
8614 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8615 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8616 instead of %d in format strings.
8617 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8618 to std::min to ULONGEST.
8619 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8620 instead of %d in format strings.
8621 * tracepoint.c (info_scope_command): Likewise.
8622 * typeprint.c (print_offset_data::update)
8623 (print_offset_data::finish): Likewise.
8624 * xtensa-tdep.c (xtensa_store_return_value)
8625 (xtensa_push_dummy_call): Likewise.
8626
e432ccf1
JT
86272019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8628
8629 * windows-nat.c (display_selector): Fixed format specifications
8630 for 64-bit Cygwin.
8631
65d2b333
PW
86322019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8633
8634 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8635
f489207e
SL
86362019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8637
8638 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8639 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8640 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8641 (nios2_linux_init_abi): Install it.
8642
bffa1015
AH
86432019-03-28 Alan Hayward <alan.hayward@arm.com>
8644
8645 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8646
fc96163a
AH
86472019-03-28 Alan Hayward <alan.hayward@arm.com>
8648
8649 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8650
20dc7e9b
PW
86512019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8652 Tom Tromey <tromey@adacore.com>
8653
8654 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8655
7f5331a8
JB
86562019-03-26 Joel Brobecker <brobecker@adacore.com>
8657
8658 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8659 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8660 method to compute the bounds of range types. Also print "[evaluated]"
8661 if the bounds' values come from a dynamic evaluation.
8662
18c77628
AB
86632019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8664
8665 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8666 whitespace when pretty printing is on.
8667
53c973f2
AH
86682019-03-26 Alan Hayward <alan.hayward@arm.com>
8669
e79be6e5 8670 * ppc-linux-nat.c: Add include.
53c973f2 8671
d851aa71
AH
86722019-03-26 Alan Hayward <alan.hayward@arm.com>
8673
e79be6e5 8674 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 8675
2fe7bab7
AH
86762019-03-26 Alan Hayward <alan.hayward@arm.com>
8677
e79be6e5 8678 * arm-linux-nat.c: Add include.
2fe7bab7 8679
068ef30e
SM
86802019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8681
8682 * source-cache.c (source_cache::get_source_lines): Re-read
8683 fullname after calling open_source_file.
8684
81a24d04
JB
86852019-03-25 John Baldwin <jhb@FreeBSD.org>
8686
8687 * NEWS: Mention TLS support for FreeBSD.
8688
79e7ae11
TT
86892019-03-25 Tom Tromey <tromey@adacore.com>
8690
8691 * minsyms.c (BUNCH_SIZE): Update comment.
8692 (~minimal_symbol_reader): Remove old comment.
8693 (compact_minimal_symbols): Update comment.
8694 (minimal_symbol_reader::install): Remove old comment. Update
8695 other comments.
8696
d45963c2
AH
86972019-03-25 Alan Hayward <alan.hayward@arm.com>
8698
8699 * s390-linux-nat.c: Add include.
8700
0f83012e
AH
87012019-03-25 Alan Hayward <alan.hayward@arm.com>
8702
8703 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8704 Call linux_get_hwcap.
8705 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8706 Likewise.
8707 (aarch64_linux_get_hwcap): Remove function.
8708 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8709 declaration.
8710 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8711 linux_get_hwcap.
8712 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8713 * linux-tdep.c (linux_get_hwcap): Add function.
8714 (linux_get_hwcap2): Likewise.
8715 * linux-tdep.h (linux_get_hwcap): Add declaration.
8716 (linux_get_hwcap2): Likewise.
8717 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8718 (ppc_linux_get_hwcap2): Likewise.
8719 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8720 linux_get_hwcap.
8721 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8722 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8723 (ppc_linux_nat_target::read_description): Likewise.
8724 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8725 * s390-linux-nat.c: Likewise.
8726 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8727
6640a367
TT
87282019-03-24 Tom Tromey <tom@tromey.com>
8729
8730 * ada-lang.c (standard_lookup): Simplify initialization.
8731 (ada_lookup_symbol_nonlocal): Simplify return.
8732 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8733 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8734 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8735 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8736 initialization.
8737 * solib.c (solib_global_lookup): Simplify.
8738 * symtab.c (null_block_symbol): Remove.
8739 (symbol_cache_lookup): Simplify returns.
8740 (lookup_language_this): Simplify returns.
8741 (lookup_symbol_aux): Simplify return.
8742 (lookup_local_symbol): Simplify returns.
8743 (lookup_global_symbol_from_objfile): Simplify return.
8744 (lookup_symbol_in_objfile_symtabs)
8745 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8746 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8747 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8748 * cp-namespace.c (cp_lookup_bare_symbol)
8749 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8750 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8751 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8752 (cp_lookup_symbol_via_imports): Simplify initialization.
8753 (find_symbol_in_baseclass): Likewise.
8754 * symtab.h (null_block_symbol): Remove.
8755 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8756 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8757 (d_lookup_symbol_module): Likewise.
8758 (find_symbol_in_baseclass): Simplify initialization.
8759
a930ebcd
TT
87602019-03-24 Tom Tromey <tom@tromey.com>
8761
8762 * expression.h: Don't include symtab.h.
8763 (struct block): Forward declare.
8764
582942f4
TT
87652019-03-24 Tom Tromey <tom@tromey.com>
8766
8767 * c-exp.y (typebase): Remove casts.
8768 * gdbtypes.c (lookup_unsigned_typename, )
8769 (lookup_signed_typename): Remove cast.
8770 * eval.c (parse_to_comma_and_eval): Remove cast.
8771 * parse.c (write_dollar_variable): Remove cast.
8772 * block.h (struct block) <superblock>: Now const.
8773 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8774 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8775 (map_block): Make "block" const.
8776 * symfile.h (struct quick_symbol_functions)
8777 <map_matching_symbols>: Constify block argument to "callback".
8778 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8779 const.
8780 (find_pc_sect_compunit_symtab): Make "b" const.
8781 (find_symbol_at_address): Likewise.
8782 (search_symbols): Likewise.
8783 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8784 (dw2_debug_names_lookup_symbol): Likewise.
8785 (dw2_map_matching_symbols): Update.
8786 * p-valprint.c (pascal_val_print): Remove "block".
8787 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8788 (aux_add_nonlocal_symbols): Make "block" const.
8789 (resolve_subexp): Remove cast.
8790 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8791 const.
8792 (iterate_over_file_blocks): Likewise.
8793 * f-exp.y (%union) <bval>: Remove.
8794 * coffread.c (patch_opaque_types): Make "b" const.
8795 * spu-tdep.c (spu_catch_start): Make "block" const.
8796 * c-valprint.c (print_unpacked_pointer): Remove "block".
8797 * symmisc.c (dump_symtab_1): Make "b" const.
8798 (block_depth): Make "block" const.
8799 * d-exp.y (%union) <bval>: Remove.
8800 * cp-support.h (cp_lookup_rtti_type): Update.
8801 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8802 * psymtab.c (psym_lookup_symbol): Make "block" const.
8803 (maintenance_check_psymtabs): Make "b" const.
8804 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8805 (enumerate_locals, enumerate_args): Update.
8806 * python/py-symtab.c (stpy_global_block): Make "block" const.
8807 (stpy_static_block): Likewise.
8808 * inline-frame.c (block_starting_point_at): Make "new_block"
8809 const.
8810 * block.c (find_block_in_blockvector): Make return type const.
8811 (blockvector_for_pc_sect): Make "b" const.
8812 (find_block_in_blockvector): Make "b" const.
8813
7ad417dd
TT
88142019-03-23 Tom Tromey <tom@tromey.com>
8815
8816 * varobj.c (varobj_create): Update.
8817 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8818 * printcmd.c (display_command, do_one_display): Don't reset
8819 innermost_block.
8820 * parser-defs.h (enum innermost_block_tracker_type): Move to
8821 expression.h.
8822 (innermost_block): Update comment.
8823 * parse.c (parse_exp_1): Add tracker_types parameter.
8824 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8825 tracker_types parameter. Reset innermost_block.
8826 (parse_exp_in_context): Remove.
8827 (parse_expression_for_completion): Update.
8828 * objfiles.c (~objfile): Don't reset expression_context_block or
8829 innermost_block.
8830 * expression.h (enum innermost_block_tracker_type): Move from
8831 parser-defs.h.
8832 (parse_exp_1): Add tracker_types parameter.
8833 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8834 reset innermost_block.
8835
b366c208
TT
88362019-03-23 Tom Tromey <tom@tromey.com>
8837
8838 * objfiles.h: Include bcache.h.
8839
9bb9b2f9
TT
88402019-03-23 Tom Tromey <tom@tromey.com>
8841
8842 * linespec.c (get_current_search_block): Use
8843 scoped_restore_current_language.
8844 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8845
59c28372
AH
88462019-03-22 Alan Hayward <alan.hayward@arm.com>
8847 Jiong Wang <jiong.wang@arm.com>
8848
8849 * aarch64-linux-tdep.c
8850 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8851 section.
8852 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8853
17e116a7
AH
88542019-03-22 Alan Hayward <alan.hayward@arm.com>
8855 Jiong Wang <jiong.wang@arm.com>
8856
8857 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8858 instructions.
8859 (aarch64_analyze_prologue_test): Add PACIASP test.
8860 (aarch64_prologue_prev_register): Unmask PC value.
8861
11e1b75f
AH
88622019-03-22 Alan Hayward <alan.hayward@arm.com>
8863 Jiong Wang <jiong.wang@arm.com>
8864
8865 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8866 (aarch64_dwarf2_prev_register): Unmask PC value.
8867 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8868 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8869 DW_CFA_AARCH64_negate_ra_state.
8870 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8871
34dcc7cf
AH
88722019-03-22 Alan Hayward <alan.hayward@arm.com>
8873 Jiong Wang <jiong.wang@arm.com>
8874
8875 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8876 registers.
8877 (aarch64_pseudo_register_name): Likewise.
8878 (aarch64_pseudo_register_type): Likewise.
8879 (aarch64_pseudo_register_reggroup_p): Likewise.
8880 (aarch64_gdbarch_init): Add pauth registers.
8881 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8882 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8883 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8884 (struct gdbarch_tdep): Add regnum for ra_state.
8885
1ef53e6b
AH
88862019-03-22 Alan Hayward <alan.hayward@arm.com>
8887 Jiong Wang <jiong.wang@arm.com>
8888
8889 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8890
76bed0fd
AH
88912019-03-22 Alan Hayward <alan.hayward@arm.com>
8892 Jiong Wang <jiong.wang@arm.com>
8893
8894 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8895 function.
8896 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8897 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8898 (aarch64_gdbarch_init): Add puth registers.
8899 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8900 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8901 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8902
ee4fbcfa
AH
89032019-03-22 Alan Hayward <alan.hayward@arm.com>
8904 Jiong Wang <jiong.wang@arm.com>
8905
8906 * aarch64-linux-nat.c
8907 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8908 * aarch64-linux-tdep.c
8909 (aarch64_linux_core_read_description): Likewise.
8910 (aarch64_linux_get_hwcap): New function.
8911 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8912 (aarch64_linux_get_hwcap): New declaration.
8913
6dc0ebde
AH
89142019-03-22 Alan Hayward <alan.hayward@arm.com>
8915 Jiong Wang <jiong.wang@arm.com>
8916
8917 * aarch64-linux-nat.c
8918 (aarch64_linux_nat_target::read_description): Add pauth param.
8919 * aarch64-linux-tdep.c
8920 (aarch64_linux_core_read_description): Likewise.
8921 * aarch64-tdep.c (struct target_desc): Add in pauth.
8922 (aarch64_read_description): Add pauth param.
8923 (aarch64_gdbarch_init): Likewise.
8924 * aarch64-tdep.h (aarch64_read_description): Likewise.
8925 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8926 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8927 * features/Makefile: Add new files.
8928 * features/aarch64-pauth.c: New file.
8929 * features/aarch64-pauth.xml: New file.
8930
595915c1
TT
89312019-03-20 Tom Tromey <tromey@adacore.com>
8932
8933 * infrun.c (handle_inferior_event): Rename from
8934 handle_inferior_event_1. Create a scoped_value_mark.
8935 (handle_inferior_event): Remove.
8936
4c7d57e7
TT
89372019-03-19 Tom Tromey <tromey@adacore.com>
8938
8939 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8940 * infrun.h (print_stop_event): Add "displays" parameter.
8941 * infrun.c (print_stop_event): Add "displays" parameter.
8942
cb246234
PA
89432019-03-19 Pedro Alves <palves@redhat.com>
8944
8945 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8946 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8947 to -1. Fix TABs vs spaces.
8948 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8949 * tui/tui-out.h (tui_ui_out) Add intro comments.
8950 <m_line, m_start_of_line>: In-class initialize, and add describing
8951 comment.
8952
3a0e45b2
AH
89532019-03-18 Alan Hayward <alan.hayward@arm.com>
8954
8955 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8956 variable names.
8957 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8958
5371b850
PA
89592019-03-18 Pedro Alves <palves@redhat.com>
8960 Eli Zaretskii <eliz@gnu.org>
8961
8962 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8963 m_line and m_start_of_line.
8964
b17c4cd0
EZ
89652019-03-18 Eli Zaretskii <eliz@gnu.org>
8966
8967 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8968 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8969 it returns a newline. This fixes a regression in TU mode, whereby
8970 the next line is output on the same screen line as the user input.
8971
4bd56d18
TT
89722019-03-18 Tom Tromey <tromey@adacore.com>
8973
8974 * minsyms.c (minimal_symbol_reader::install): Remove call to
8975 obstack_blank.
8976
55c10aca
PA
89772019-03-18 Pedro Alves <palves@redhat.com>
8978
8979 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
8980 New globals.
8981 (apply_style): New, factored out from ...
8982 (apply_ansi_escape): ... this. Handle reverse video mode.
8983 (tui_set_reverse_mode): New function.
8984 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
8985 * tui/tui-winsource.c (tui_show_source_line): Use
8986 tui_set_reverse_mode instead of setting A_STANDOUT.
8987 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
8988 New setter methods.
8989
647bb750
HD
89902019-03-18 Hannes Domani <ssbssa@yahoo.de>
8991
8992 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
8993 Handle tabs.
8994
bff8c71f
TT
89952019-03-18 Tom Tromey <tromey@adacore.com>
8996
8997 * ada-lang.c (empty_array): Add "high" parameter.
8998 (ada_evaluate_subexp): Update.
8999
58785d98
ST
90002019-03-17 Sergei Trofimovich <siarheit@google.com>
9001
9002 * unittests/string_view-selftests.c: Define
9003 _initialize_string_view_selftests unconditionally.
9004
d4cbef22
ВМ
90052019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9006
9007 PR gdb/24350
9008 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9009
fce4c071
ВМ
90102019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9011
9012 PR gdb/24351
9013 * windows-nat.c (display_selector): Fix format specifiers.
9014
f7f0a123
EZ
90152019-03-17 Eli Zaretskii <eliz@gnu.org>
9016
9017 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9018 tui_refill_source_window instead of tui_refresh_win, to update the
9019 current execution line. This fixes redisplay of the current line
9020 when stepping through the code with "next" or "step".
9021
ab42892f
EZ
90222019-03-16 Eli Zaretskii <eliz@gnu.org>
9023
9024 * source-cache.c (source_cache::get_source_lines): Call
9025 find_source_lines to initialize s->nlines. This fixes vertical
9026 scrolling of TUI source window when the DOWN arrow is pressed.
9027
8d8c087f
PW
90282019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9029
9030 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9031 linux-thread-db.c (_initialize_thread_db): Likewise.
9032
798e1c30
EZ
90332019-03-16 Eli Zaretskii <eliz@gnu.org>
9034
9035 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9036 wclrtoeol in tui_show_source_line". This reverts changes made in
9037 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9038
eefba3da
TT
90392019-03-15 Tom Tromey <tom@tromey.com>
9040
9041 * symtab.h (struct minimal_symbol): Derive from
9042 general_symbol_info.
9043 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9044 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9045 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9046 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9047 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9048 (MSYMBOL_SEARCH_NAME): Update.
9049 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9050 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9051 * minsyms.c (minimal_symbol_reader::record_full): Update.
9052
0de2420c
TT
90532019-03-15 Tom Tromey <tom@tromey.com>
9054
9055 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9056
042d75e4
TT
90572019-03-15 Tom Tromey <tom@tromey.com>
9058
9059 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9060 unique_xmalloc_ptr.
9061 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9062 Update.
9063 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9064 (build_minimal_symbol_hash_tables)
9065 (minimal_symbol_reader::install): Update.
9066
db92718b
TT
90672019-03-15 Tom Tromey <tom@tromey.com>
9068
9069 * symtab.c (create_demangled_names_hash): Update.
9070 (symbol_set_names): Update.
9071 * objfiles.h (struct objfile_per_bfd_storage)
9072 <demangled_names_hash>: Now an htab_up.
9073 * objfiles.c (objfile_per_bfd_storage): Simplify.
9074
d6797f46
TT
90752019-03-15 Tom Tromey <tom@tromey.com>
9076
9077 * objfiles.h (struct objfile_per_bfd_storage): Declare
9078 destructor.
9079 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9080 New.
9081 (get_objfile_bfd_data): Use new. Don't initialize
9082 language_of_main.
9083 (free_objfile_per_bfd_storage): Remove.
9084 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9085
741d7538
TT
90862019-03-15 Tom Tromey <tom@tromey.com>
9087
9088 * symfile.c (reread_symbols): Update.
9089 * objfiles.c (objfile::objfile): Update.
9090 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9091 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9092 comment.
9093 (minimal_symbol_reader::install): Update.
9094 (terminate_minimal_symbol_table): Remove.
9095 * jit.c (jit_object_close_impl): Update.
9096
788c80d1
TT
90972019-03-15 Tom Tromey <tom@tromey.com>
9098
9099 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9100 initializations.
9101
1b7a07cb
TT
91022019-03-15 Tom Tromey <tom@tromey.com>
9103
9104 * objfiles.h (struct objfile_per_bfd_storage)
9105 <demangled_hash_languages>: Now a bitset.
9106 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9107 (lookup_minimal_symbol): Update.
9108
3db066bc
TT
91092019-03-15 Tom Tromey <tom@tromey.com>
9110
9111 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9112 Don't return the symbol.
9113 * coffread.c (record_minimal_symbol): Use record_full.
9114
3fff2c37
EZ
91152019-03-14 Eli Zaretskii <eliz@gnu.org>
9116
9117 The MS-Windows port of ncurses fails to switch to a color pair if
9118 one or both of the colors are the implicit default colors. This
9119 change records the default colors when TUI is initialized, and
9120 then specifies them explicitly when a color pair uses the default
9121 colors. This allows color styling in TUI mode on MS-Windows.
9122
9123 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9124 ncurses_norm_attr.
9125 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9126 colors in ncurses_norm_attr.
9127 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9128 "none", replace it with the default color recorded in
9129 ncurses_norm_attr.
9130
3b336828
TT
91312019-03-14 Tom Tromey <tromey@adacore.com>
9132
9133 * source-cache.h (class source_cache) <get_source_lines>: Return
9134 std::string.
9135 * source-cache.c (source_cache::extract_lines): Handle case where
9136 first_pos==npos. Return std::string.
9137 (source_cache::get_source_lines): Update.
9138
d085f989
TT
91392019-03-14 Tom Tromey <tromey@adacore.com>
9140
9141 * NEWS: Add item for "style sources" commands.
9142 * source-cache.c (source_cache::get_source_lines): Check
9143 source_styling.
9144 * cli/cli-style.c (source_styling): New global.
9145 (_initialize_cli_style): Add "style sources" commands.
9146 (show_style_sources): New function.
9147 * cli/cli-style.h (source_styling): Declare.
9148
6f11e682
TT
91492019-03-14 Pedro Alves <palves@redhat.com>
9150 Tom Tromey <tromey@adacore.com>
9151
9152 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9153 * tui/tui-winsource.c (tui_refill_source_window): New function,
9154 from...
9155 (tui_horizontal_source_scroll): ... here. Move some logic.
9156 * cli/cli-style.c (set_style_enabled): Notify new observable.
9157 * tui/tui-hooks.c (tui_redisplay_source): New function.
9158 (tui_attach_detach_observers): Attach or detach
9159 tui_redisplay_source.
9160 * observable.h (source_styling_changed): New observable.
9161 * observable.c: Define source_styling_changed observable.
9162
a068643d
TT
91632019-03-13 Tom Tromey <tromey@adacore.com>
9164
9165 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9166 (i386_gnu_nat_target::store_registers): Update.
9167 * target-debug.h (target_debug_print_std_string): New macro.
9168 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9169 * windows-tdep.c (display_one_tib): Update.
9170 * tui/tui-stack.c (tui_make_status_line): Update.
9171 * top.c (print_inferior_quit_action): Update.
9172 * thread.c (thr_try_catch_cmd): Update.
9173 (add_thread_with_info): Update.
9174 (thread_target_id_str): Update.
9175 (thr_try_catch_cmd): Update.
9176 (thread_command): Update.
9177 (thread_find_command): Update.
9178 * record-btrace.c (record_btrace_target::info_record)
9179 (record_btrace_resume_thread, record_btrace_target::resume)
9180 (record_btrace_cancel_resume, record_btrace_step_thread)
9181 (record_btrace_target::wait, record_btrace_target::wait)
9182 (record_btrace_target::wait, record_btrace_target::stop): Update.
9183 * progspace.c (print_program_space): Update.
9184 * process-stratum-target.c
9185 (process_stratum_target::thread_address_space): Update.
9186 * linux-fork.c (linux_fork_mourn_inferior)
9187 (detach_checkpoint_command, info_checkpoints_command)
9188 (linux_fork_context): Update.
9189 (linux_fork_detach): Update.
9190 (class scoped_switch_fork_info): Update.
9191 (delete_checkpoint_command): Update.
9192 * infrun.c (follow_fork_inferior): Update.
9193 (follow_fork_inferior): Update.
9194 (proceed_after_vfork_done): Update.
9195 (handle_vfork_child_exec_or_exit): Update.
9196 (follow_exec): Update.
9197 (displaced_step_prepare_throw): Update.
9198 (displaced_step_restore): Update.
9199 (start_step_over): Update.
9200 (resume_1): Update.
9201 (clear_proceed_status_thread): Update.
9202 (proceed): Update.
9203 (print_target_wait_results): Update.
9204 (do_target_wait): Update.
9205 (context_switch): Update.
9206 (stop_all_threads): Update.
9207 (restart_threads): Update.
9208 (finish_step_over): Update.
9209 (handle_signal_stop): Update.
9210 (switch_back_to_stepped_thread): Update.
9211 (keep_going_pass_signal): Update.
9212 (print_exited_reason): Update.
9213 (normal_stop): Update.
9214 * inferior.c (inferior_pid_to_str): Change return type.
9215 (print_selected_inferior): Update.
9216 (add_inferior): Update.
9217 (detach_inferior): Update.
9218 * dummy-frame.c (fprint_dummy_frames): Update.
9219 * dcache.c (dcache_info_1): Update.
9220 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9221 (btrace_fetch, btrace_clear): Update.
9222 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9223 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9224 type.
9225 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9226 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9227 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9228 * gdbarch.c, gdbarch.h: Rebuild.
9229 * gdbarch.sh (core_pid_to_str): Change return type.
9230 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9231 return type.
9232 (windows_nat_target::pid_to_str): Change return type.
9233 (windows_delete_thread): Update.
9234 (windows_nat_target::attach): Update.
9235 (windows_nat_target::files_info): Update.
9236 * target-delegates.c: Rebuild.
9237 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9238 return type.
9239 (sol_thread_target::pid_to_str): Change return type.
9240 * remote.c (class remote_target) <pid_to_str>: Change return
9241 type.
9242 (remote_target::pid_to_str): Change return type.
9243 (extended_remote_target::attach, remote_target::remote_stop_ns)
9244 (remote_target::remote_notif_remove_queued_reply)
9245 (remote_target::push_stop_reply, remote_target::disable_btrace):
9246 Update.
9247 (extended_remote_target::attach): Update.
9248 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9249 type.
9250 (gdbsim_target::pid_to_str): Change return type.
9251 * ravenscar-thread.c (struct ravenscar_thread_target)
9252 <pid_to_str>: Change return type.
9253 (ravenscar_thread_target::pid_to_str): Change return type.
9254 * procfs.c (class procfs_target) <pid_to_str>: Change return
9255 type.
9256 (procfs_target::pid_to_str): Change return type.
9257 (procfs_target::attach): Update.
9258 (procfs_target::detach): Update.
9259 (procfs_target::fetch_registers): Update.
9260 (procfs_target::store_registers): Update.
9261 (procfs_target::wait): Update.
9262 (procfs_target::files_info): Update.
9263 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9264 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9265 return type.
9266 (nto_procfs_target::pid_to_str): Change return type.
9267 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9268 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9269 return type.
9270 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9271 (exit_lwp): Update.
9272 (attach_proc_task_lwp_callback, get_detach_signal)
9273 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9274 (linux_nat_target::resume, wait_lwp, stop_callback)
9275 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9276 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9277 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9278 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9279 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9280 type.
9281 (inf_ptrace_target::attach): Update.
9282 (inf_ptrace_target::files_info): Update.
9283 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9284 type.
9285 (go32_nat_target::pid_to_str): Change return type.
9286 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9287 (gnu_nat_target::wait): Update.
9288 (gnu_nat_target::wait): Update.
9289 (gnu_nat_target::resume): Update.
9290 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9291 (fbsd_nat_target::wait): Update.
9292 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9293 type.
9294 (darwin_nat_target::attach): Update.
9295 * corelow.c (class core_target) <pid_to_str>: Change return type.
9296 (core_target::pid_to_str): Change return type.
9297 * target.c (normal_pid_to_str): Change return type.
9298 (default_pid_to_str): Likewise.
9299 (target_pid_to_str): Change return type.
9300 (target_translate_tls_address): Update.
9301 (target_announce_detach): Update.
9302 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9303 return type.
9304 (bsd_uthread_target::pid_to_str): Change return type.
9305 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9306 type.
9307 (bsd_kvm_target::pid_to_str): Change return type.
9308 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9309 return type.
9310 (aix_thread_target::pid_to_str): Change return type.
9311 * target.h (struct target_ops) <pid_to_str>: Change return type.
9312 (target_pid_to_str, normal_pid_to_str): Likewise.
9313 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9314 type.
9315 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9316 type.
9317 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9318 return type.
9319 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9320 type.
9321 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9322 type.
9323 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9324 return type.
9325
b4be1b06
SM
93262019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9327
9328 * NEWS: Mention that the new default MI version is 3. Mention
9329 changes to the output of commands and events that deal with
9330 multi-location breakpoints.
9331 * breakpoint.c: Include "mi/mi-out.h".
9332 (print_one_breakpoint): Change output syntax if using MI version
9333 >= 3.
9334 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9335 New.
9336 (mi_multi_location_breakpoint_output_fixed): New.
9337 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9338 (mi_cmd_fix_multi_location_breakpoint_output): New.
9339 (mi_multi_location_breakpoint_output_fixed): New.
9340 * mi/mi-cmds.c (mi_cmds): Register command
9341 -fix-multi-location-breakpoint-output.
9342 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9343 interpreter "mi".
9344
8e5e5494
SM
93452019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9346
9347 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9348 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9349 instantiate mi_ui_out based on interpreter name.
9350 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9351 * mi/mi-main.c (mi_load_progress): Likewise.
9352
197df35e
JB
93532019-03-12 John Baldwin <jhb@FreeBSD.org>
9354
9355 * NEWS: Combine separate "New targets" sections for 8.3.
9356
8399425f
JB
93572019-03-12 John Baldwin <jhb@FreeBSD.org>
9358
9359 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9360 (ppcfbsd_init_abi): Install gdbarch
9361 "fetch_tls_load_module_address" and "get_thread_local_address"
9362 methods.
9363
b0f87ed0
JB
93642019-03-12 John Baldwin <jhb@FreeBSD.org>
9365
9366 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9367 (riscv_fbsd_init_abi): Install gdbarch
9368 "fetch_tls_load_module_address" and "get_thread_local_address"
9369 methods.
9370
ce25aa57
JB
93712019-03-12 John Baldwin <jhb@FreeBSD.org>
9372
9373 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9374 (i386fbsd_init_abi): Install gdbarch
9375 "fetch_tls_load_module_address" and "get_thread_local_address"
9376 methods.
9377
f5424cfa
JB
93782019-03-12 John Baldwin <jhb@FreeBSD.org>
9379
9380 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9381 (amd64fbsd_init_abi): Install gdbarch
9382 "fetch_tls_load_module_address" and "get_thread_local_address"
9383 methods.
9384
945f3901
JB
93852019-03-12 John Baldwin <jhb@FreeBSD.org>
9386
9387 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9388 (struct fbsd_pspace_data): New type.
9389 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9390 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9391 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9392 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9393 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9394
ef0bd204
JB
93952019-03-12 John Baldwin <jhb@FreeBSD.org>
9396
9397 * gdbtypes.c (lookup_struct_elt): New function.
9398 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9399 * gdbtypes.h (struct struct_elt): New type.
9400 (lookup_struct_elt): New prototype.
9401
36c53a02
JB
94022019-03-12 John Baldwin <jhb@FreeBSD.org>
9403
9404 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9405 remove disabled code block.
9406
6e056c81
JB
94072019-03-12 John Baldwin <jhb@FreeBSD.org>
9408
9409 * gdbarch.sh (get_thread_local_address): New method.
9410 * gdbarch.h, gdbarch.c: Regenerate.
9411 * target.c (target_translate_tls_address): Use
9412 gdbarch_get_thread_local_address if present instead of
9413 target::get_thread_local_address.
9414
cd250a18
JB
94152019-03-12 John Baldwin <jhb@FreeBSD.org>
9416
9417 * target.h (target::get_thread_local_address): Update comment.
9418
df22c1e5
JB
94192019-03-12 John Baldwin <jhb@FreeBSD.org>
9420
9421 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9422 objfile->separate_debug_objfile_backlink if not NULL.
9423
dd6876c9
JB
94242019-03-12 John Baldwin <jhb@FreeBSD.org>
9425
9426 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9427 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9428 (amd64bsd_store_inferior_registers): Likewise.
9429 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9430 Enable segment base registers.
9431 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9432 PT_GETFSBASE and PT_GETGSBASE.
9433 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9434 PT_SETGSBASE.
9435 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9436 segment base registers.
9437 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9438
1163a4b7
JB
94392019-03-12 John Baldwin <jhb@FreeBSD.org>
9440
9441 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9442 Update calls to i386_target_description to add 'segments'
9443 parameter.
9444 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9445 add segment base registers.
9446 * arch/i386.c (i386_create_target_description): Add 'segments'
9447 parameter to enable segment base registers.
9448 * arch/i386.h (i386_create_target_description): Likewise.
9449 * features/i386/32bit-segments.xml: New file.
9450 * features/i386/32bit-segments.c: Generate.
9451 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9452 call to i386_target_description to add 'segments' parameter.
9453 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9454 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9455 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9456 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9457 if feature is present.
9458 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9459 Add 'segments' parameter to call to i386_target_description.
9460 (i386_target_description): Add 'segments' parameter to enable
9461 segment base registers.
9462 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9463 to call to i386_target_description.
9464 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9465 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9466 Define I386_NUM_REGS.
9467 (i386_target_description): Add 'segments' parameter to enable
9468 segment base registers.
9469
3a350822
EZ
94702019-03-12 Eli Zaretskii <eliz@gnu.org>
9471
9472 PR/24325
9473 * source-cache.c: #undef open and close, to avoid unresolved
9474 externals during linking.
9475
ffdd69cf
TT
94762019-03-12 Tom Tromey <tromey@adacore.com>
9477
9478 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9479 const. Add initializers.
9480 (_initialize_remote): Don't initialize ptid globals.
9481
ec148c57
PA
94822019-03-12 Pedro Alves <palves@redhat.com>
9483
9484 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9485
32764270
PA
94862019-03-12 Pedro Alves <palves@redhat.com>
9487
9488 * cp-name-parser.y (main): Remove unused 'len' variable.
9489
17547186
TT
94902019-03-12 Tom Tromey <tromey@adacore.com>
9491
9492 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9493 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9494
d3a70e03
TT
94952019-03-12 Tom Tromey <tromey@adacore.com>
9496
9497 * linux-nat.c (iterate_over_lwps): Update.
9498 (stop_callback): Remove parameter.
9499 (stop_wait_callback, detach_callback, resume_set_callback)
9500 (select_singlestep_lwp_callback, set_ignore_sigint)
9501 (status_callback, resumed_callback, resume_clear_callback)
9502 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9503 data parameter.
9504 (linux_nat_target::detach, linux_nat_target::resume)
9505 (linux_stop_and_wait_all_lwps, select_event_lwp)
9506 (linux_nat_filter_event, linux_nat_wait_1)
9507 (linux_nat_target::kill, linux_nat_target::stop)
9508 (linux_nat_target::stop): Update.
9509 (linux_nat_resume_callback): Change type.
9510 (resume_stopped_resumed_lwps, count_events_callback)
9511 (select_event_lwp_callback): Likewise.
9512 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9513 * arm-linux-nat.c (struct update_registers_data): Remove.
9514 (update_registers_callback): Change type.
9515 (arm_linux_insert_hw_breakpoint1): Update.
9516 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9517 parameter.
9518 (x86_linux_dr_set_addr): Update.
9519 (x86_linux_dr_set_control): Update.
9520 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9521 (iterate_over_lwps): Use gdb::function_view.
9522 * nat/aarch64-linux-hw-point.c (struct
9523 aarch64_dr_update_callback_param): Remove.
9524 (debug_reg_change_callback): Change type.
9525 (aarch64_notify_debug_reg_change): Update.
9526 * s390-linux-nat.c (s390_refresh_per_info): Update.
9527
82cb27ff
TT
95282019-03-11 Tom Tromey <tromey@adacore.com>
9529
9530 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9531 redundant assignment to "this_cu".
9532
568c0683
SM
95332019-03-08 Simon Marchi <simon.marchi@efficios.com>
9534
9535 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9536
f09ce22d
SM
95372019-03-08 Simon Marchi <simon.marchi@efficios.com>
9538
9539 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9540 from...
9541 (rank_one_type): ... this.
9542
595f96a9
SM
95432019-03-08 Simon Marchi <simon.marchi@efficios.com>
9544
9545 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9546 from...
9547 (rank_one_type): ... this.
9548
2598a94b
SM
95492019-03-08 Simon Marchi <simon.marchi@efficios.com>
9550
9551 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9552 from...
9553 (rank_one_type): ... this.
9554
7f17b20d
SM
95552019-03-08 Simon Marchi <simon.marchi@efficios.com>
9556
9557 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9558 from...
9559 (rank_one_type): ... this.
9560
2c509035
SM
95612019-03-08 Simon Marchi <simon.marchi@efficios.com>
9562
9563 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9564 from...
9565 (rank_one_type): ... this.
9566
0dd322dc
SM
95672019-03-08 Simon Marchi <simon.marchi@efficios.com>
9568
9569 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9570 from...
9571 (rank_one_type): ... this.
9572
41ea4728
SM
95732019-03-08 Simon Marchi <simon.marchi@efficios.com>
9574
9575 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9576 from...
9577 (rank_one_type): ... this.
9578
793cd1d2
SM
95792019-03-08 Simon Marchi <simon.marchi@efficios.com>
9580
9581 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9582 from...
9583 (rank_one_type): ... this.
9584
34910087
SM
95852019-03-08 Simon Marchi <simon.marchi@efficios.com>
9586
9587 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9588 from...
9589 (rank_one_type): ... this.
9590
f1f832d6
SM
95912019-03-08 Simon Marchi <simon.marchi@efficios.com>
9592
9593 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9594 from...
9595 (rank_one_type): ... this.
9596
b9f4512f
SM
95972019-03-08 Simon Marchi <simon.marchi@efficios.com>
9598
9599 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9600 from...
9601 (rank_one_type): ... this.
9602
9293fc63
SM
96032019-03-08 Simon Marchi <simon.marchi@efficios.com>
9604
9605 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9606 from...
9607 (rank_one_type): ... this.
9608
e3abbe7e
PW
96092019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9610
9611 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9612 inferior-events' shows the example events.
9613
e4adb939
EZ
96142019-03-08 Eli Zaretskii <eliz@gnu.org>
9615
9616 Support styling on native MS-Windows console
9617
9618 PR/24315
9619 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9620 on MS-Windows if $TERM is not defined.
9621
9622 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9623
9624 * posix-hdep.c (gdb_console_fputs):
9625 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9626 functions.
9627 * ui-file.h (gdb_console_fputs): Add prototype.
9628
9629 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9630 back to fputs only if the former returns zero.
9631
25629dfd
TT
96322019-03-07 Tom Tromey <tom@tromey.com>
9633
9634 * symmisc.c (print_symbol_bcache_statistics): Update.
9635 (print_objfile_statistics): Update.
9636 * symfile.c (allocate_symtab): Update.
9637 * stabsread.c: Don't include bcache.h.
9638 * psymtab.h (struct psymbol_bcache): Don't declare.
9639 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9640 (psymbol_bcache_init, psymbol_bcache_free)
9641 (psymbol_bcache_get_bcache): Don't declare.
9642 * psymtab.c (struct psymbol_bcache): Remove.
9643 (psymtab_storage::psymtab_storage): Update.
9644 (psymtab_storage::~psymtab_storage): Update.
9645 (psymbol_bcache_init, psymbol_bcache_free)
9646 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9647 (add_psymbol_to_bcache): Update.
9648 (allocate_psymtab): Update.
9649 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9650 macro_cache>: No longer pointers.
9651 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9652 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9653 * macrotab.c (macro_bcache): Update.
9654 * macroexp.c: Don't include bcache.h.
9655 * gdbtypes.c (check_types_worklist): Update.
9656 (types_deeply_equal): Remove TRY/CATCH. Update.
9657 * elfread.c (elf_symtab_read): Update.
9658 * dwarf2read.c: Don't include bcache.h.
9659 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9660 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9661 (print_bcache_statistics, bcache_memory_used): Don't declare.
9662 (struct bcache): Move from bcache.c. Add constructor, destructor,
9663 methods. Rename all data members.
9664 * bcache.c (struct bcache): Move to bcache.h.
9665 (bcache::expand_hash_table): Rename from expand_hash_table.
9666 (bcache): Remove.
9667 (bcache::insert): Rename from bcache_full.
9668 (bcache::compare): Rename from bcache_compare.
9669 (bcache_xmalloc): Remove.
9670 (bcache::~bcache): Rename from bcache_xfree.
9671 (bcache::print_statistics): Rename from print_bcache_statistics.
9672 (bcache::memory_used): Rename from bcache_memory_used.
9673
fe726667
PA
96742019-03-07 Pedro Alves <palves@redhat.com>
9675
9676 * infrun.c (normal_stop): Also check for
9677 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9678
7584bb30
AB
96792019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9680
9681 * f-lang.c (value_from_host_double): Moved to...
9682 * value.c (value_from_host_double): ...here.
9683 * value.h (value_from_host_double): Declare.
9684 * guile/scm-math.c (vlscm_convert_typed_number): Use
9685 value_from_host_double.
9686 (vlscm_convert_number): Likewise.
9687 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9688 * python/py-value.c (convert_value_from_python): Likewise.
9689
a7b1986e
TT
96902019-03-06 Tom Tromey <tom@tromey.com>
9691
9692 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9693
0ccf4211
TT
96942019-03-06 Tom Tromey <tom@tromey.com>
9695
9696 * utils.h (free_current_contents): Don't declare.
9697 * utils.c (free_current_contents): Remove.
9698
fe7b42e5
TT
96992019-03-06 Tom Tromey <tom@tromey.com>
9700
9701 * top.c (quit_force): Update.
9702 * main.c (captured_command_loop): Update.
9703 * common/new-op.c (operator new): Update.
9704 * common/common-exceptions.c (struct catcher)
9705 <save_cleanup_chain>: Remove member.
9706 (exceptions_state_mc_init): Update.
9707 (exception_try_scope_entry): Return nullptr.
9708 (exception_try_scope_exit, exception_rethrow)
9709 (throw_exception_sjlj, throw_exception_cxx): Update.
9710 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9711 (all_cleanups, do_cleanups, discard_cleanups)
9712 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9713 (restore_cleanups, restore_final_cleanups): Don't declare.
9714 (do_final_cleanups): Remove parameter.
9715 * common/cleanups.c (cleanup_chain, make_cleanup)
9716 (make_cleanup_dtor, all_cleanups, do_cleanups)
9717 (discard_my_cleanups, discard_cleanups)
9718 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9719 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9720 (null_cleanup): Remove.
9721 (do_final_cleanups): Remove parameter.
9722
c6321f19
TT
97232019-03-06 Tom Tromey <tom@tromey.com>
9724
9725 * remote.c (remote_target::remote_parse_stop_reply): Use
9726 unique_xmalloc_ptr.
9727
61b30099
TT
97282019-03-06 Tom Tromey <tom@tromey.com>
9729
9730 * stabsread.c (struct stabs_field_info): Rename from field_info.
9731 <list, fnlist>: Add initializers.
9732 <obstack>: New member.
9733 (read_member_functions, read_struct_fields, read_baseclasses):
9734 Allocate on obstack. Don't use cleanups.
9735 (read_one_struct_field, read_member_functions, read_struct_fields)
9736 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9737 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9738 (read_struct_type): Update.
9739
6cceac94
TT
97402019-03-06 Tom Tromey <tom@tromey.com>
9741
9742 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9743 * common/filestuff.h (make_cleanup_close): Don't declare.
9744 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9745 Remove.
9746
72412762
TT
97472019-03-06 Tom Tromey <tom@tromey.com>
9748
9749 * solib-aix.c: Use make_scope_exit.
9750
2b6ff1c0
TT
97512019-03-06 Tom Tromey <tom@tromey.com>
9752
9753 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9754 Use make_scope_exit.
9755
d01c5877
TT
97562019-03-06 Tom Tromey <tom@tromey.com>
9757
9758 * solib-svr4.c (disable_probes_interface): Remove parameter.
9759 (svr4_handle_solib_event): Use make_scope_exit.
9760
32603266
TT
97612019-03-06 Tom Tromey <tom@tromey.com>
9762
9763 * remote.c (struct stop_reply_deleter): Remove.
9764 (stop_reply_up): Update.
9765 (struct stop_reply): Derive from notif_event. Don't typedef.
9766 <regcache>: Now a std::vector.
9767 (stop_reply_xfree): Remove.
9768 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9769 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9770 (remote_target::discard_pending_stop_replies): Use delete.
9771 (remote_target::remote_parse_stop_reply): Update.
9772 (remote_target::process_stop_reply): Update.
9773 * remote-notif.h (struct notif_event): Add virtual destructor.
9774 Remove "dtr" member.
9775 (struct notif_client) <alloc_event>: Return a unique_ptr.
9776 (notif_event_xfree): Don't declare.
9777 (notif_event_up): New typedef.
9778 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9779 (notif_event_xfree, do_notif_event_xfree): Remove.
9780 (remote_notif_state_xfree): Update.
9781
9799571e
TT
97822019-03-06 Tom Tromey <tom@tromey.com>
9783
9784 * infrun.c (displaced_step_clear_cleanup): Now a
9785 forward_scope_exit type.
9786 (displaced_step_prepare_throw): Update.
9787 (displaced_step_fixup): Update.
9788
09e3c4ca
TT
97892019-03-06 Tom Tromey <tom@tromey.com>
9790
9791 * inferior.h (class inferior): Update comment.
9792 * gdbthread.h (class thread_info): Update comment.
9793
e2a03548
TT
97942019-03-06 Joel Brobecker <brobecker@adacore.com>
9795 Tom Tromey <tom@tromey.com>
9796
9797 * stabsread.h (struct stab_section_list): Remove.
9798 (coffstab_build_psymtabs): Update.
9799 * dbxread.c (symbuf_sections): Now a std::vector.
9800 (sect_idx): New global.
9801 (fill_symbuf): Update.
9802 (coffstab_build_psymtabs): Change type of stabsects parameter.
9803 Update.
9804 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9805 std::vector.
9806 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9807 (coff_locate_sections): Update.
9808 (coff_symfile_read): Remove cleanups. Update.
9809 (init_stringtab): Add storage parameter.
9810 (free_stringtab, free_stringtab_cleanup): Remove.
9811 (init_lineno): Add storage parameter.
9812 (free_linetab, free_linetab_cleanup): Remove.
9813
b7e60d85
PA
98142019-03-06 Pedro Alves <palves@redhat.com>
9815
9816 * linux-fork.c (fork_info::clobber_regs): Delete.
9817 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9818 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9819 comment. Adjust.
9820 (scoped_switch_fork_info::scoped_switch_fork_info)
9821 (checkpoint_command, linux_fork_context): Adjust
9822 fork_save_infrun_state calls.
9823
e52c971f
PA
98242019-03-06 Pedro Alves <palves@redhat.com>
9825
9826 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9827 (inf_has_multiple_threads): Return 'bool' and rewrite using
9828 inferior_info::threads().
9829
06974e6c
PA
98302019-03-06 Pedro Alves <palves@redhat.com>
9831
9832 * linux-fork.c: Include <list>.
9833 (fork_list): Now a std::list instance.
9834 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9835 (forks_exist_p, find_last_fork): Adjust.
9836 (new_fork): Delete.
9837 (one_fork_p): New.
9838 (add_fork): Adjust.
9839 (free_fork): Delete, folded into fork_info::~fork_info().
9840 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9841 Adjust.
9842 (init_fork_list): Delete.
9843 (linux_fork_killall, linux_fork_mourn_inferior)
9844 (linux_fork_detach, info_checkpoints_command): Adjust.
9845 (_initialize_linux_fork): No longer call init_fork_list.
9846
72f31aea
PA
98472019-03-06 Pedro Alves <palves@redhat.com>
9848
9849 * linux-fork.c (new_fork): New, split out of ...
9850 (add_fork): ... this. Return void. Move "first fork" special
9851 case from here, to ...
9852 (checkpoint_command): ... here.
9853 * linux-linux.h (add_fork): Return void.
9854
efbecbc1
AB
98552019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9856
9857 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9858
0841c79a
AB
98592019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9860 Chris January <chris.january@arm.com>
9861 David Lecomber <david.lecomber@arm.com>
9862
9863 * f-exp.y: New token, UNOP_INTRINSIC.
9864 (exp): New pattern using UNOP_INTRINSIC token.
9865 (f77_keywords): Add 'abs' keyword.
9866 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9867 (value_from_host_double): New function.
9868 (evaluate_subexp_f): Support UNOP_ABS.
9869
4a270568
AB
98702019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9871
9872 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9873 types.
9874
067630bd
AB
98752019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9876
9877 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9878 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9879 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9880
3be47f7a
AB
98812019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9882
9883 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9884
4d00f5d8
AB
98852019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9886 Chris January <chris.january@arm.com>
9887
9888 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9889 * f-exp.y: Define 'KIND' token.
9890 (exp): New pattern for KIND expressions.
9891 (ptype): Handle types with a kind extension.
9892 (direct_abs_decl): Extend to spot kind extensions.
9893 (f77_keywords): Add 'kind' to the list.
9894 (push_kind_type): New function.
9895 (convert_to_kind_type): New function.
9896 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9897 * parse.c (operator_length_standard): Likewise.
9898 * parser-defs.h (enum type_pieces): Add tp_kind.
9899 * std-operator.def: Add UNOP_KIND.
9900
e454224f
AB
99012019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9902
9903 * f-exp.y (f_parse): Set yydebug.
9904
9dad4a58
AB
99052019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9906
9907 * f-lang.c (evaluate_subexp_f): New function.
9908 (exp_descriptor_f): New global.
9909 (f_language_defn): Use exp_descriptor_f instead of
9910 exp_descriptor_standard.
9911
c8f91604
AB
99122019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9913
9914 * f-exp.y (struct token): Add comments.
9915 (dot_ops): Remove uppercase versions and the end marker.
9916 (f77_keywords): Likewise.
9917 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9918 entries in the dot_ops array are case insensitive, and use
9919 strncasecmp to compare strings. Also some whitespace cleanup in
9920 this area. Similar for the f77_keywords array, except entries in
9921 this list might be case sensitive.
9922
dd9f2c76
AB
99232019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9924
9925 * f-exp.y (struct f77_boolean_val): Add comments.
9926 (boolean_values): Remove uppercase versions, and end marker.
9927 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9928 and use strncasecmp to achieve case insensitivity. Additionally,
9929 perform whitespace cleanup around this code.
9930
67a3048c
TT
99312019-03-06 Tom Tromey <tromey@adacore.com>
9932
9933 * remote-sim.c (gdbsim_target_open): Use result of
9934 gdb_argv::release.
9935
aa3cfbda
RB
99362019-03-06 Richard Bunt <richard.bunt@arm.com>
9937 Dirk Schubert <dirk.schubert@arm.com>
9938 Chris January <chris.january@arm.com>
9939
9940 * eval.c (evaluate_subexp_standard): Call Fortran argument
9941 wrapping logic.
9942 * f-lang.c (struct value): A value which can be passed into a
9943 Fortran function call.
9944 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9945 where appropriate.
9946 (struct type): Value ready for a Fortran function call.
9947 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9948 is needed.
9949 * f-lang.h (fortran_argument_convert): Declaration.
9950 (fortran_preserve_arg_pointer): Declaration.
9951 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9952
ea38e5df
TT
99532019-03-05 Tom Tromey <tromey@adacore.com>
9954
9955 * python/py-prettyprint.c (print_string_repr): Remove #if.
9956 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9957
06b5b831
TT
99582019-03-05 Tom Tromey <tromey@adacore.com>
9959
9960 * target.c (the_dummy_target): Move later. Change type to
9961 "dummy_target".
9962 (initialize_targets): Don't initialize the_dummy_target.
9963
edbd9e45
TT
99642019-03-05 Tom Tromey <tromey@adacore.com>
9965
9966 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9967 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9968
c119e040
TT
99692019-03-05 Tom Tromey <tromey@adacore.com>
9970
9971 * windows-nat.c (windows_nat_target::attach)
9972 (windows_nat_target::detach): Don't call gdb_flush.
9973 * valprint.c (generic_val_print, val_print, val_print_string):
9974 Don't call gdb_flush.
9975 * utils.c (defaulted_query): Don't call gdb_flush.
9976 * typeprint.c (print_type_scalar): Don't call gdb_flush.
9977 * target.c (target_announce_detach): Don't call gdb_flush.
9978 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
9979 * remote.c (extended_remote_target::attach): Don't call
9980 gdb_flush.
9981 * procfs.c (procfs_target::detach): Don't call gdb_flush.
9982 * printcmd.c (do_examine): Don't call gdb_flush.
9983 (info_display_command): Don't call gdb_flush.
9984 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
9985 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
9986 * memattr.c (info_mem_command): Don't call gdb_flush.
9987 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
9988 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
9989 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
9990 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
9991 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
9992 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
9993 (gnu_nat_target::detach): Don't call gdb_flush.
9994 * f-valprint.c (f_val_print): Don't call gdb_flush.
9995 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
9996 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
9997 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
9998 gdb_flush.
9999 * c-valprint.c (c_val_print): Don't call gdb_flush.
10000 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10001
895dafa6
TT
100022019-03-05 Tom Tromey <tromey@adacore.com>
10003
10004 * varobj.c (update_dynamic_varobj_children): Update.
10005 (install_default_visualizer): Use reset, not release.
10006 * value.c (set_internalvar): Update.
10007 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10008 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10009 ATTRIBUTE_UNUSED_RESULT.
10010
88a774b9
TT
100112019-03-05 Tom Tromey <tromey@adacore.com>
10012
10013 * remote.c (class scoped_remote_fd) <release>: Add
10014 ATTRIBUTE_UNUSED_RESULT.
10015
4e4a8b93
TT
100162019-03-05 Tom Tromey <tromey@adacore.com>
10017
10018 * macroexp.c (struct macro_buffer) <release>: Add
10019 ATTRIBUTE_UNUSED_RESULT.
10020
083eef1f
TT
100212019-03-05 Tom Tromey <tromey@adacore.com>
10022
10023 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10024 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10025 ATTRIBUTE_UNUSED_RESULT.
10026
3cabd438
TT
100272019-03-05 Tom Tromey <tromey@adacore.com>
10028
10029 * common/scoped_fd.h (class scoped_fd) <release>: Add
10030 ATTRIBUTE_UNUSED_RESULT.
10031
41e3300a
TT
100322019-03-05 Tom Tromey <tromey@adacore.com>
10033
10034 * parser-defs.h (struct parser_state) <release>: Add
10035 ATTRIBUTE_UNUSED_RESULT.
10036
18cb7c9f
TT
100372019-03-05 Tom Tromey <tromey@adacore.com>
10038
10039 * utils.h (class gdb_argv) <release>: Add
10040 ATTRIBUTE_UNUSED_RESULT.
10041 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10042
41fa577f
EZ
100432019-03-02 Eli Zaretskii <eliz@gnu.org>
10044
a6a4b2c6
EZ
10045 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10046 for-loop range, to avoid compiler warnings.
10047
10048 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10049 avoid compiler warnings about unused variables.
10050
742a7df5
EZ
10051 * NEWS: Mention end of support for native debugging on MS-Windows
10052 before XP.
10053
41fa577f
EZ
10054 PR gdb/24292
10055 * common/netstuff.c:
10056 * gdbserver/gdbreplay.c
10057 * gdbserver/remote-utils.c:
10058 * ser-tcp.c:
10059 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10060 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10061 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10062 'getaddrinfo' and 'freeaddrinfo' were not available before
10063 Windows XP, and mingw.org's MinGW headers by default define
10064 _WIN32_WINNT to 0x500.
10065
827f438f
GB
100662019-03-01 Gary Benson <gbenson@redhat.com>
10067
10068 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10069
92137da0
RO
100702019-02-28 Brian Vandenberg <phantall@gmail.com>
10071 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10072
10073 PR gdb/8527
10074 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10075 set_sigint_trap, clear_sigint_trap.
10076
799efbe8
PW
100772019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10078
10079 * target.c (target_detach): Clear the regcache and the
10080 frame cache.
10081
8ed25214
PA
100822019-02-27 Pedro Alves <palves@redhat.com>
10083
10084 * utils.c (set_screen_size): When we cap the height/width sizes,
10085 tweak the corresponding command variable to show "unlimited":
10086
23031e31
SJ
100872019-02-27 Saagar Jha <saagar@saagarjha.com>
10088 Pedro Alves <palves@redhat.com>
10089
10090 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10091 before calling rl_set_screen_size.
10092
6c28e44a
TT
100932019-02-27 Tom Tromey <tromey@adacore.com>
10094
10095 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10096 define.
10097 * python/py-value.c: Remove Python 2.4 workaround.
10098 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10099 workaround.
10100 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10101 Python 2.4 workaround.
10102 * python/python-internal.h: Remove Python 2.4 comment.
10103 (Py_ssize_t): Don't define.
10104 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10105 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10106 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10107 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10108 * python/python.c (do_start_initialization): Remove Python 2.4
10109 workaround.
10110 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10111 (print_children): Remove Python 2.4 workaround.
10112 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10113 workaround.
10114 (CHARBUFFERPROC_NAME): Remove.
10115 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10116 Python 2.4 workaround.
10117
2c3fc25d 101182019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 10119
2c3fc25d
KB
10120 * NEWS: Note minimum Python version.
10121
6ca62222
KB
101222019-02-27 Kevin Buettner <kevinb@redhat.com>
10123
10124 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10125 code from these functions. Remove corresponding ifdefs. Use
10126 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10127 Remove gotos and target of gotos.
10128 (infpy_search_memory): Likewise.
10129
f4bc7d2c
AB
101302019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10131
10132 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10133 (hppa_gdbarch_init): Don't register deleted functions with
10134 gdbarch.
10135
9734a586
AB
101362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10137
10138 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10139 (h8300_unwind_sp): Delete.
10140 (h8300_dummy_id): Delete.
10141 (h8300_gdbarch_init): Don't register deleted functions with
10142 gdbarch.
10143
68b867f3
AB
101442019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10145
10146 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10147 (ft32_unwind_pc): Delete.
10148 (ft32_unwind_sp): Delete.
10149 (ft32_gdbarch_init): Don't register deleted functions with
10150 gdbarch.
10151
2fbe7ad0
AB
101522019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10153
10154 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10155 (frv_unwind_pc): Delete.
10156 (frv_unwind_sp): Delete.
10157 (frv_gdbarch_init): Don't register deleted functions with
10158 gdbarch.
10159
76055cbe
AB
101602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10161
10162 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10163 (riscv_unwind_pc): Delete.
10164 (riscv_unwind_sp): Delete.
10165 (riscv_gdbarch_init): Don't register deleted functions with
10166 gdbarch.
10167
4133e5a1
AB
101682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10169
10170 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10171 (csky_unwind_pc): Delete.
10172 (csky_unwind_sp): Delete.
10173 (csky_gdbarch_init): Don't register deleted functions with
10174 gdbarch.
10175
8010f576
AB
101762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10177
10178 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10179 (cris_unwind_pc): Delete.
10180 (cris_unwind_sp): Delete.
10181 (cris_gdbarch_init): Don't register deleted functions with
10182 gdbarch.
10183
b56bf084
AB
101842019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10185
10186 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10187 (bfin_unwind_pc): Delete.
10188 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10189
a19a650f
AB
101902019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10191
10192 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10193 (arm_unwind_pc): Delete.
10194 (arm_unwind_sp): Delete.
10195 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10196
f8278c3c
AB
101972019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10198
10199 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10200 (arc_unwind_pc): Delete.
10201 (arc_unwind_sp): Delete.
10202 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10203
480e46cf
AB
102042019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10205
10206 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10207 (alpha_unwind_pc): Delete.
10208 (alpha_gdbarch_init): Don't register deleted functions with
10209 gdbarch.
10210
7a995095
AB
102112019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10212
10213 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10214 (aarch64_unwind_pc): Delete.
10215 (aarch64_unwind_sp): Delete.
10216 (aarch64_gdbarch_init): Don't register deleted functions with
10217 gdbarch.
10218
bf9a735e
AB
102192019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10220
10221 * gdbtypes.c (type_align): Don't consider static members when
10222 computing structure alignment.
10223
5561fc30
AB
102242019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10225
10226 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10227 return 0 for other types.
10228 * arch-utils.c (default_type_align): Always return 0.
10229 * gdbarch.h: Regenerate.
10230 * gdbarch.sh (type_align): Extend comment.
10231 * gdbtypes.c (type_align): Add additional comments, always call
10232 gdbarch_type_align before applying the default rules.
10233 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10234 generic code will then apply a suitable default.
10235 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10236 types, return 0 for other types.
10237
9335e75a
JB
102382019-02-27 Joel Brobecker <brobecker@adacore.com>
10239
10240 * NEWS: Create a new section for the next release branch.
10241 Rename the section of the current branch, now that it has
10242 been cut.
10243
3d34d8de
JB
102442019-02-27 Joel Brobecker <brobecker@adacore.com>
10245
10246 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10247 * version.in: Bump version to 8.3.50.DATE-git.
10248
143420fb
SM
102492019-02-26 Simon Marchi <simon.marchi@efficios.com>
10250
10251 * aix-thread.c (ptid_cmp): Remove unused variable.
10252 (get_signaled_thread): Likewise.
10253 (store_regs_user_thread): Likewise.
10254 (store_regs_kernel_thread): Likewise.
10255 (fetch_regs_kernel_thread): Remove shadowed variable.
10256
172fb711
AB
102572019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10258
10259 * features/riscv/32bit-cpu.xml: Add register numbers.
10260 * features/riscv/32bit-fpu.c: Regenerate.
10261 * features/riscv/32bit-fpu.xml: Add register numbers.
10262 * features/riscv/64bit-cpu.xml: Add register numbers.
10263 * features/riscv/64bit-fpu.c: Regenerate.
10264 * features/riscv/64bit-fpu.xml: Add register numbers.
10265
26c89782
KB
102662019-02-26 Kevin Buettner <kevinb@redhat.com>
10267
af54ade9 10268 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
10269 * python/py-value.c (convert_buffer_and_type_to_value): New
10270 function.
10271 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10272 Add support for handling an optional second argument. Call
10273 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
10274 * python/python-internal.h (Py_buffer_deleter): New struct.
10275 (Py_buffer_up): New typedef.
10276
0f58c9e8
JB
102772019-02-25 John Baldwin <jhb@FreeBSD.org>
10278
10279 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10280 instead of releasing ownership.
10281
0a0f4c01
JR
102822019-02-25 Jordan Rupprecht <rupprecht@google.com>
10283
10284 * dwarf2read.c (open_and_init_dwp_file): Call
10285 elf_numsections instead of bfd_count_sections to initialize
10286 dwp_file->num_sections.
10287
cd5a152c
TT
102882019-02-25 Tom Tromey <tromey@adacore.com>
10289
10290 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10291
8a6a8513
SDJ
102922019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10293
10294 * gcore.in: Add '--readnever' option when invoking GDB.
10295
04dcda9c
SM
102962019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10297
10298 * MAINTAINERS: Update my email address.
10299
07bc701d
SM
103002019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10301
10302 * build-id.c (build_id_to_debug_bfd_1): New function.
10303 (build_id_to_debug_bfd): Look for separate debug file in
10304 sysroot.
10305
c6f4a5d0
AB
103062019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10307
10308 * gdbarch.sh: Update the copyright year range that is placed into
10309 generated files.
10310
9600246d
KS
103112019-02-22 Keith Seitz <keiths@redhat.com>
10312
10313 PR symtab/23853
10314 * linespec.c (create_sals_line_offset): Search for the default
10315 symtab's filename instead of its fullname.
10316
7557a514
AH
103172019-02-21 Alan Hayward <alan.hayward@arm.com>
10318
10319 * NEWS: Update style defaults.
10320
ee2bcb0c
AH
103212019-02-21 Alan Hayward <alan.hayward@arm.com>
10322
10323 * main.c (captured_main_1): Disable styling in batch mode.
10324
0c95f9ed
TT
103252019-02-20 Tom Tromey <tom@tromey.com>
10326
10327 * symtab.c (symtab_symbol_info): Fix typos.
10328
c763b894
TT
103292019-02-20 Tom Tromey <tromey@adacore.com>
10330
10331 * findcmd.c (_initialize_mem_search): Use upper case for
10332 metasyntactic variables.
10333
0ef8a082
AH
103342019-02-20 Alan Hayward <alan.hayward@arm.com>
10335
10336 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10337 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10338
6caa91b6
SM
103392019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10340
10341 * top.h (source_file_name): Change to std::string.
10342 * top.c (source_file_name): Likewise.
10343 (command_line_input): Adjust.
10344 * cli/cli-script.c (script_from_file): Adjust.
10345
98814c6c
TT
103462019-02-19 Tom Tromey <tromey@adacore.com>
10347
10348 * ravenscar-thread.c
10349 (ravenscar_thread_target::update_thread_list): Don't call
10350 ada_build_task_list.
10351 * ada-lang.h (ada_build_task_list): Don't declare.
10352 * ada-tasks.c (struct ada_tasks_inferior_data)
10353 <task_list_valid_p>: Now bool.
10354 (read_known_tasks, ada_task_list_changed)
10355 (ada_tasks_invalidate_inferior_data): Update.
10356 (read_known_tasks_array): Return bool.
10357 (read_known_tasks_list): Likewise.
10358 (read_known_tasks): Return void.
10359 (ada_build_task_list): Now static.
10360
70cd633e
AB
103612019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10362
10363 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10364 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10365
040b3e95
PW
103662019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10367
10368 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10369 variant for ada_tasks_pspace_data_handle and
10370 ada_tasks_inferior_data_handle.
10371 (ada_tasks_pspace_data_cleanup): New function.
10372 (ada_tasks_inferior_data_cleanup): New function.
10373
9409233b
TT
103742019-02-17 Tom Tromey <tom@tromey.com>
10375
10376 * macrotab.h (macro_source_fullname): Return a std::string.
10377 * macrotab.c (macro_include, check_for_redefinition)
10378 (macro_undef, macro_lookup_definition, foreach_macro)
10379 (foreach_macro_in_scope): Update.
10380 (macro_source_fullname): Return a std::string.
10381 * macrocmd.c (show_pp_source_pos): Update.
10382
6506371f
TT
103832019-02-17 Tom Tromey <tom@tromey.com>
10384
10385 * macrocmd.c (show_pp_source_pos): Style the file names.
10386
0c820d67
TT
103872019-02-17 Tom Tromey <tom@tromey.com>
10388
10389 PR tui/24197:
10390 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10391
a0087920
TT
103922019-02-17 Tom Tromey <tom@tromey.com>
10393
10394 * ada-lang.c (user_select_syms): Use filtered printing.
10395 * utils.c (wrap_style): New global.
10396 (desired_style): Remove.
10397 (emit_style_escape): Add stream parameter.
10398 (set_output_style, reset_terminal_style, prompt_for_continue):
10399 Update.
10400 (flush_wrap_buffer): Only flush gdb_stdout.
10401 (wrap_here): Set wrap_style.
10402 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10403 treat escape sequences as a character. Change when wrap buffer is
10404 flushed.
10405 (fputs_styled): Do not set the output style when the default is
10406 requested.
10407 * ui-style.h (struct ui_file_style) <is_default>: New method.
10408 * source.c (print_source_lines_base): Emit escape sequences in one
10409 piece.
10410
75ba10dc
JB
104112019-02-17 Joel Brobecker <brobecker@adacore.com>
10412
10413 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10414 integers and enumeration types.
10415
a2cd4f14
JB
104162019-02-17 Joel Brobecker <brobecker@adacore.com>
10417
10418 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10419 instead of lookup_symbol_in_language
10420 (do_exact_match): New function.
10421 (ada_get_symbol_name_matcher): Return do_exact_match when
10422 doing a verbatim match.
10423
485b851b
TT
104242019-02-15 Tom Tromey <tromey@adacore.com>
10425
10426 * ravenscar-thread.c (ravenscar_thread_target::resume)
10427 (ravenscar_thread_target::wait): Special case wildcard requests.
10428
0b790b1e
TT
104292019-02-15 Tom Tromey <tromey@adacore.com>
10430
10431 * ravenscar-thread.c (base_ptid): Remove.
10432 (struct ravenscar_thread_target) <close>: New method.
10433 <m_base_ptid>: New member.
10434 <update_inferior_ptid, active_task, task_is_currently_active,
10435 runtime_initialized>: Declare methods.
10436 <ravenscar_thread_target>: Add constructor.
10437 (ravenscar_thread_target::task_is_currently_active)
10438 (ravenscar_thread_target::update_inferior_ptid)
10439 (ravenscar_runtime_initialized): Rename. Now methods.
10440 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10441 (ravenscar_thread_target::update_thread_list): Update.
10442 (ravenscar_thread_target::active_task): Now method.
10443 (ravenscar_thread_target::store_registers)
10444 (ravenscar_thread_target::prepare_to_store)
10445 (ravenscar_thread_target::prepare_to_store)
10446 (ravenscar_thread_target::mourn_inferior): Update.
10447 (ravenscar_inferior_created): Use "new" to create target.
10448 (ravenscar_thread_target::get_ada_task_ptid): Update.
10449 (_initialize_ravenscar): Don't initialize base_ptid.
10450 (ravenscar_ops): Remove global.
10451
dea57a62
TT
104522019-02-15 Tom Tromey <tromey@adacore.com>
10453
10454 * target.h (push_target): Declare new overload.
10455 * target.c (push_target): New overload, taking an rvalue reference.
10456 * remote.c (remote_target::open_1): Use push_target overload.
10457 * corelow.c (core_target_open): Use push_target overload.
10458
989f3c58
TT
104592019-02-15 Tom Tromey <tromey@adacore.com>
10460
10461 * ravenscar-thread.c (is_ravenscar_task)
10462 (ravenscar_task_is_currently_active): Return bool.
10463 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10464 (_initialize_ravenscar): Remove "(void)".
10465 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10466 Return bool.
10467
6cbcc006
TT
104682019-02-15 Tom Tromey <tromey@adacore.com>
10469
10470 * ravenscar-thread.c (ravenscar_runtime_initializer)
10471 (has_ravenscar_runtime, get_running_thread_id)
10472 (ravenscar_thread_target::resume): Fix indentation.
10473
7657f14d
TT
104742019-02-15 Tom Tromey <tromey@adacore.com>
10475
10476 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10477 from ravenscar_arch_ops.
10478 (sparc_ravenscar_ops::fetch_registers)
10479 (sparc_ravenscar_ops::store_registers): Now methods.
10480 (sparc_ravenscar_prepare_to_store): Remove.
10481 (sparc_ravenscar_ops): Redefine.
10482 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10483 methods and destructor. Remove members.
10484 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10485 (ravenscar_thread_target::store_registers)
10486 (ravenscar_thread_target::prepare_to_store): Update.
10487 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10488 Remove.
10489 (struct ppc_ravenscar_powerpc_ops): Derive from
10490 ravenscar_arch_ops.
10491 (ppc_ravenscar_powerpc_ops::fetch_registers)
10492 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10493 (ppc_ravenscar_powerpc_ops): Redefine.
10494 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10495 (ppc_ravenscar_e500_ops::fetch_registers)
10496 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10497 (ppc_ravenscar_e500_ops): Redefine.
10498 * aarch64-ravenscar-thread.c
10499 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10500 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10501 (aarch64_ravenscar_fetch_registers)
10502 (aarch64_ravenscar_store_registers): Now methods.
10503 (aarch64_ravenscar_ops): Redefine.
10504
5b6ea500
TT
105052019-02-15 Tom Tromey <tromey@adacore.com>
10506
10507 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10508 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10509 (ravenscar_thread_target::stopped_by_watchpoint)
10510 (ravenscar_thread_target::stopped_data_address)
10511 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10512
e397fd39
TT
105132019-02-15 Tom Tromey <tromey@adacore.com>
10514
10515 * ravenscar-thread.c: Fix some typos.
10516
cc12f4a8
TT
105172019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10518 Tom Tromey <tromey@adacore.com>
10519
10520 * ada-lang.c (ada_exception_sal): Change addr_string to a
10521 std::string.
10522 (create_ada_exception_catchpoint): Update.
10523
5f486660
TT
105242019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10525 Tom Tromey <tromey@adacore.com>
10526
10527 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10528 (bp_location_ops): Remove.
10529 (base_breakpoint_allocate_location): Update.
10530 (free_bp_location): Update.
10531 * ada-lang.c (class ada_catchpoint_location)
10532 <ada_catchpoint_location>: Remove ops parameter.
10533 (ada_catchpoint_location_dtor): Remove.
10534 (ada_catchpoint_location_ops): Remove.
10535 (allocate_location_exception): Update.
10536 * breakpoint.h (struct bp_location_ops): Remove.
10537 (class bp_location) <bp_location>: Remove bp_location_ops
10538 parameter.
10539 <~bp_location>: Add destructor.
10540 <ops>: Remove.
10541
b671c7fb
TS
105422019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10543 Pedro Alves <palves@redhat.com>
10544
10545 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10546 'PATH_MAX'.
10547
8071c5ce
DM
105482019-02-14 David Michael <fedora.dm0@gmail.com>
10549 Samuel Thibault <samuel.thibault@gnu.org>
10550 Thomas Schwinge <thomas@codesourcery.com>
10551
10552 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10553 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10554
b1041ae0
TS
105552019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10556
924514e1
TS
10557 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10558 (check_empty): Use "const char *".
10559
c29ee8d4
TS
10560 * gnu-nat.c (gnu_nat_target::detach): Instead of
10561 'detach_inferior (pid)' call
10562 'detach_inferior (find_inferior_pid (pid))'.
10563
6c6ef69f
TS
10564 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10565 'nat/fork-inferior.o'.
10566 * gnu-nat.c: #include "nat/fork-inferior.h".
10567
2d0a338c
TS
10568 * gnu-nat.c (gnu_nat_target::detach): Instead of
10569 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10570 * gnu-nat.h: #include "inf-child.h".
10571 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10572 'i386_gnu_nat_target::fetch_registers'.
10573 (gnu_store_registers): Rename/move to
10574 'i386_gnu_nat_target::store_registers'.
10575
cabb5f06
TS
10576 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10577 * gnu-nat.h (mach_thread_info): New function.
10578 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10579
b1041ae0
TS
10580 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10581
2988d01e
KF
105822019-02-14 Frederic Konrad <konrad@adacore.com>
10583
10584 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10585
c559d709
JB
105862019-02-14 Joel Brobecker <brobecker@adacore.com>
10587
10588 * windows-nat.c (windows_add_thread): Add new parameter
10589 "main_thread_p" with default value set to false. Update
10590 function documentation as well as all callers.
10591 (windows_delete_thread): Likewise.
10592 (fake_create_process): Update call to windows_add_thread.
10593 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10594 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10595 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10596 call to windows_delete_thread.
10597
007024cc
SM
105982019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10599
10600 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10601
f62318e9
JB
106022019-02-12 John Baldwin <jhb@FreeBSD.org>
10603
10604 * symfile.c (find_separate_debug_file): Use canonical path of
10605 sysroot with child_path instead of gdb_sysroot if it is valid.
10606
cd4b7848
JB
106072019-02-12 John Baldwin <jhb@FreeBSD.org>
10608
10609 * symfile.c (find_separate_debug_file): Use child_path to
10610 determine if an object file is under a sysroot.
10611
efac4bfe
JB
106122019-02-12 John Baldwin <jhb@FreeBSD.org>
10613
10614 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10615 unittests/child-path-selftests.c.
10616 * common/pathstuff.c (child_path): New function.
10617 * common/pathstuff.h (child_path): New prototype.
10618 * unittests/child-path-selftests.c: New file.
10619
402d2bfe
JB
106202019-02-12 John Baldwin <jhb@FreeBSD.org>
10621
10622 * symfile.c (find_separate_debug_file): Look for separate debug
10623 files in debug directories under the sysroot.
10624
1ed9f74e
PW
106252019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10626
10627 * symtab.h (struct minimal_symbol data_p): New const method.
10628 (struct minimal_symbol text_p): Likewise.
10629 * symtab.c (output_source_filename): Use file name style
10630 to print file name.
10631 (print_symbol_info): Likewise.
10632 (print_msymbol_info): Use address style to print addresses.
10633 Use function name style to print executable text symbols.
10634 (expand_symtab_containing_pc): Use data_p.
10635 (find_pc_sect_compunit_symtab): Likewise.
10636
2636d81d
PW
106372019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10638
10639 * breakpoint.c (describe_other_breakpoints): Use address style
10640 to print addresses.
10641 (say_where): Likewise.
10642
ac8c53cc
PW
106432019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10644
10645 * ada-typeprint.c (print_func_type): Print function name
10646 style to print function name.
10647 * c-typeprint.c (c_print_type_1): Likewise.
10648
ea638c43
AH
106492019-02-11 Alan Hayward <alan.hayward@arm.com>
10650
10651 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10652 for execve.
10653
ab759ca8
PW
106542019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10655
10656 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10657 type_stack.
10658
aff29d1c
JB
106592019-02-10 Joel Brobecker <brobecker@adacore.com>
10660
10661 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10662 TYPE_CODE_REF types.
10663
617126bc
JW
106642019-02-08 Jim Wilson <jimw@sifive.com>
10665
10666 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10667 (riscv_linux_fregset): New.
10668 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10669
46e3ed7f
TT
106702019-02-07 Tom Tromey <tom@tromey.com>
10671
10672 * thread.c (thread_cancel_execution_command): Update.
10673 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10674 methods.
10675 (struct thread_fsm_ops): Remove.
10676 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10677 (thread_fsm_should_stop, thread_fsm_return_value)
10678 (thread_fsm_set_finished, thread_fsm_finished_p)
10679 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10680 Don't declare.
10681 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10682 * infrun.c (clear_proceed_status_thread)
10683 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10684 (print_stop_event): Update.
10685 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10686 Add constructor.
10687 (step_command_fsm_ops): Remove.
10688 (new_step_command_fsm): Remove.
10689 (step_1): Update.
10690 (step_command_fsm::should_stop): Rename from
10691 step_command_fsm_should_stop.
10692 (step_command_fsm::clean_up): Rename from
10693 step_command_fsm_clean_up.
10694 (step_command_fsm::do_async_reply_reason): Rename from
10695 step_command_fsm_async_reply_reason.
10696 (struct until_next_fsm): Inherit from thread_fsm. Add
10697 constructor.
10698 (until_next_fsm_ops): Remove.
10699 (new_until_next_fsm): Remove.
10700 (until_next_fsm::should_stop): Rename from
10701 until_next_fsm_should_stop.
10702 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10703 (until_next_fsm::do_async_reply_reason): Rename from
10704 until_next_fsm_async_reply_reason.
10705 (struct finish_command_fsm): Inherit from thread_fsm. Add
10706 constructor. Change type of breakpoint.
10707 (finish_command_fsm_ops): Remove.
10708 (new_finish_command_fsm): Remove.
10709 (finish_command_fsm::should_stop): Rename from
10710 finish_command_fsm_should_stop.
10711 (finish_command_fsm::clean_up): Rename from
10712 finish_command_fsm_clean_up.
10713 (finish_command_fsm::return_value): Rename from
10714 finish_command_fsm_return_value.
10715 (finish_command_fsm::do_async_reply_reason): Rename from
10716 finish_command_fsm_async_reply_reason.
10717 (finish_command): Update.
10718 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10719 Add constructor.
10720 (call_thread_fsm_ops): Remove.
10721 (call_thread_fsm::call_thread_fsm): Rename from
10722 new_call_thread_fsm.
10723 (call_thread_fsm::should_stop): Rename from
10724 call_thread_fsm_should_stop.
10725 (call_thread_fsm::should_notify_stop): Rename from
10726 call_thread_fsm_should_notify_stop.
10727 (run_inferior_call, call_function_by_hand_dummy): Update.
10728 * cli/cli-interp.c (should_print_stop_to_console): Update.
10729 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10730 Add constructor. Change type of location_breakpoint,
10731 caller_breakpoint.
10732 (until_break_fsm_ops): Remove.
10733 (new_until_break_fsm): Remove.
10734 (until_break_fsm::should_stop): Rename from
10735 until_break_fsm_should_stop.
10736 (until_break_fsm::clean_up): Rename from
10737 until_break_fsm_clean_up.
10738 (until_break_fsm::do_async_reply_reason): Rename from
10739 until_break_fsm_async_reply_reason.
10740 (until_break_command): Update.
10741 * thread-fsm.c: Remove.
10742 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10743
1a5c2598
TT
107442019-02-07 Tom Tromey <tom@tromey.com>
10745
10746 * yy-remap.h: Add include guard.
10747 * xtensa-tdep.h: Add include guard.
10748 * xcoffread.h: Rename include guard.
10749 * varobj-iter.h: Add include guard.
10750 * tui/tui.h: Rename include guard.
10751 * tui/tui-winsource.h: Rename include guard.
10752 * tui/tui-wingeneral.h: Rename include guard.
10753 * tui/tui-windata.h: Rename include guard.
10754 * tui/tui-win.h: Rename include guard.
10755 * tui/tui-stack.h: Rename include guard.
10756 * tui/tui-source.h: Rename include guard.
10757 * tui/tui-regs.h: Rename include guard.
10758 * tui/tui-out.h: Rename include guard.
10759 * tui/tui-layout.h: Rename include guard.
10760 * tui/tui-io.h: Rename include guard.
10761 * tui/tui-hooks.h: Rename include guard.
10762 * tui/tui-file.h: Rename include guard.
10763 * tui/tui-disasm.h: Rename include guard.
10764 * tui/tui-data.h: Rename include guard.
10765 * tui/tui-command.h: Rename include guard.
10766 * tic6x-tdep.h: Add include guard.
10767 * target/waitstatus.h: Rename include guard.
10768 * target/wait.h: Rename include guard.
10769 * target/target.h: Rename include guard.
10770 * target/resume.h: Rename include guard.
10771 * target-float.h: Rename include guard.
10772 * stabsread.h: Add include guard.
10773 * rs6000-tdep.h: Add include guard.
10774 * riscv-fbsd-tdep.h: Add include guard.
10775 * regformats/regdef.h: Rename include guard.
10776 * record.h: Rename include guard.
10777 * python/python.h: Rename include guard.
10778 * python/python-internal.h: Rename include guard.
10779 * python/py-stopevent.h: Rename include guard.
10780 * python/py-ref.h: Rename include guard.
10781 * python/py-record.h: Rename include guard.
10782 * python/py-record-full.h: Rename include guard.
10783 * python/py-record-btrace.h: Rename include guard.
10784 * python/py-instruction.h: Rename include guard.
10785 * python/py-events.h: Rename include guard.
10786 * python/py-event.h: Rename include guard.
10787 * procfs.h: Add include guard.
10788 * proc-utils.h: Add include guard.
10789 * p-lang.h: Add include guard.
10790 * or1k-tdep.h: Rename include guard.
10791 * observable.h: Rename include guard.
10792 * nto-tdep.h: Rename include guard.
10793 * nat/x86-linux.h: Rename include guard.
10794 * nat/x86-linux-dregs.h: Rename include guard.
10795 * nat/x86-gcc-cpuid.h: Add include guard.
10796 * nat/x86-dregs.h: Rename include guard.
10797 * nat/x86-cpuid.h: Rename include guard.
10798 * nat/ppc-linux.h: Rename include guard.
10799 * nat/mips-linux-watch.h: Rename include guard.
10800 * nat/linux-waitpid.h: Rename include guard.
10801 * nat/linux-ptrace.h: Rename include guard.
10802 * nat/linux-procfs.h: Rename include guard.
10803 * nat/linux-osdata.h: Rename include guard.
10804 * nat/linux-nat.h: Rename include guard.
10805 * nat/linux-namespaces.h: Rename include guard.
10806 * nat/linux-btrace.h: Rename include guard.
10807 * nat/glibc_thread_db.h: Rename include guard.
10808 * nat/gdb_thread_db.h: Rename include guard.
10809 * nat/gdb_ptrace.h: Rename include guard.
10810 * nat/fork-inferior.h: Rename include guard.
10811 * nat/amd64-linux-siginfo.h: Rename include guard.
10812 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10813 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10814 * nat/aarch64-linux.h: Rename include guard.
10815 * nat/aarch64-linux-hw-point.h: Rename include guard.
10816 * mn10300-tdep.h: Add include guard.
10817 * mips-linux-tdep.h: Add include guard.
10818 * mi/mi-parse.h: Rename include guard.
10819 * mi/mi-out.h: Rename include guard.
10820 * mi/mi-main.h: Rename include guard.
10821 * mi/mi-interp.h: Rename include guard.
10822 * mi/mi-getopt.h: Rename include guard.
10823 * mi/mi-console.h: Rename include guard.
10824 * mi/mi-common.h: Rename include guard.
10825 * mi/mi-cmds.h: Rename include guard.
10826 * mi/mi-cmd-break.h: Rename include guard.
10827 * m2-lang.h: Add include guard.
10828 * location.h: Rename include guard.
10829 * linux-record.h: Rename include guard.
10830 * linux-nat.h: Add include guard.
10831 * linux-fork.h: Add include guard.
10832 * i386-darwin-tdep.h: Rename include guard.
10833 * hppa-linux-offsets.h: Add include guard.
10834 * guile/guile.h: Rename include guard.
10835 * guile/guile-internal.h: Rename include guard.
10836 * gnu-nat.h: Rename include guard.
10837 * gdb-stabs.h: Rename include guard.
10838 * frv-tdep.h: Add include guard.
10839 * f-lang.h: Add include guard.
10840 * event-loop.h: Add include guard.
10841 * darwin-nat.h: Rename include guard.
10842 * cp-abi.h: Rename include guard.
10843 * config/sparc/nm-sol2.h: Rename include guard.
10844 * config/nm-nto.h: Rename include guard.
10845 * config/nm-linux.h: Add include guard.
10846 * config/i386/nm-i386gnu.h: Rename include guard.
10847 * config/djgpp/nl_types.h: Rename include guard.
10848 * config/djgpp/langinfo.h: Rename include guard.
10849 * compile/gcc-cp-plugin.h: Add include guard.
10850 * compile/gcc-c-plugin.h: Add include guard.
10851 * compile/compile.h: Rename include guard.
10852 * compile/compile-object-run.h: Rename include guard.
10853 * compile/compile-object-load.h: Rename include guard.
10854 * compile/compile-internal.h: Rename include guard.
10855 * compile/compile-cplus.h: Rename include guard.
10856 * compile/compile-c.h: Rename include guard.
10857 * common/xml-utils.h: Rename include guard.
10858 * common/x86-xstate.h: Rename include guard.
10859 * common/version.h: Rename include guard.
10860 * common/vec.h: Rename include guard.
10861 * common/tdesc.h: Rename include guard.
10862 * common/selftest.h: Rename include guard.
10863 * common/scoped_restore.h: Rename include guard.
10864 * common/scoped_mmap.h: Rename include guard.
10865 * common/scoped_fd.h: Rename include guard.
10866 * common/safe-iterator.h: Rename include guard.
10867 * common/run-time-clock.h: Rename include guard.
10868 * common/refcounted-object.h: Rename include guard.
10869 * common/queue.h: Rename include guard.
10870 * common/ptid.h: Rename include guard.
10871 * common/print-utils.h: Rename include guard.
10872 * common/preprocessor.h: Rename include guard.
10873 * common/pathstuff.h: Rename include guard.
10874 * common/observable.h: Rename include guard.
10875 * common/netstuff.h: Rename include guard.
10876 * common/job-control.h: Rename include guard.
10877 * common/host-defs.h: Rename include guard.
10878 * common/gdb_wait.h: Rename include guard.
10879 * common/gdb_vecs.h: Rename include guard.
10880 * common/gdb_unlinker.h: Rename include guard.
10881 * common/gdb_unique_ptr.h: Rename include guard.
10882 * common/gdb_tilde_expand.h: Rename include guard.
10883 * common/gdb_sys_time.h: Rename include guard.
10884 * common/gdb_string_view.h: Rename include guard.
10885 * common/gdb_splay_tree.h: Rename include guard.
10886 * common/gdb_setjmp.h: Rename include guard.
10887 * common/gdb_ref_ptr.h: Rename include guard.
10888 * common/gdb_optional.h: Rename include guard.
10889 * common/gdb_locale.h: Rename include guard.
10890 * common/gdb_assert.h: Rename include guard.
10891 * common/filtered-iterator.h: Rename include guard.
10892 * common/filestuff.h: Rename include guard.
10893 * common/fileio.h: Rename include guard.
10894 * common/environ.h: Rename include guard.
10895 * common/common-utils.h: Rename include guard.
10896 * common/common-types.h: Rename include guard.
10897 * common/common-regcache.h: Rename include guard.
10898 * common/common-inferior.h: Rename include guard.
10899 * common/common-gdbthread.h: Rename include guard.
10900 * common/common-exceptions.h: Rename include guard.
10901 * common/common-defs.h: Rename include guard.
10902 * common/common-debug.h: Rename include guard.
10903 * common/cleanups.h: Rename include guard.
10904 * common/buffer.h: Rename include guard.
10905 * common/btrace-common.h: Rename include guard.
10906 * common/break-common.h: Rename include guard.
10907 * cli/cli-utils.h: Rename include guard.
10908 * cli/cli-style.h: Rename include guard.
10909 * cli/cli-setshow.h: Rename include guard.
10910 * cli/cli-script.h: Rename include guard.
10911 * cli/cli-interp.h: Rename include guard.
10912 * cli/cli-decode.h: Rename include guard.
10913 * cli/cli-cmds.h: Rename include guard.
10914 * charset-list.h: Add include guard.
10915 * buildsym-legacy.h: Rename include guard.
10916 * bfin-tdep.h: Add include guard.
10917 * ax.h: Rename include guard.
10918 * arm-linux-tdep.h: Add include guard.
10919 * arm-fbsd-tdep.h: Add include guard.
10920 * arch/xtensa.h: Rename include guard.
10921 * arch/tic6x.h: Add include guard.
10922 * arch/i386.h: Add include guard.
10923 * arch/arm.h: Rename include guard.
10924 * arch/arm-linux.h: Rename include guard.
10925 * arch/arm-get-next-pcs.h: Rename include guard.
10926 * arch/amd64.h: Add include guard.
10927 * arch/aarch64-insn.h: Rename include guard.
10928 * arch-utils.h: Rename include guard.
10929 * annotate.h: Add include guard.
10930 * amd64-darwin-tdep.h: Rename include guard.
10931 * aarch64-linux-tdep.h: Add include guard.
10932 * aarch64-fbsd-tdep.h: Add include guard.
10933 * aarch32-linux-nat.h: Add include guard.
10934
ab9268d2
PW
109352019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10936
10937 * macrotab.c (macro_define_internal): New function that
10938 factorizes macro_define_object_internal and macro_define_function
10939 code.
10940 (macro_define_object_internal): Use macro_define_internal.
10941 (macro_define_function): Likewise.
10942
bb0da2b4
PW
109432019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10944
10945 * macrocmd.c (extract_identifier): Return
10946 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10947 callers.
10948
424eb552
JB
109492019-02-06 John Baldwin <jhb@FreeBSD.org>
10950
10951 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10952
1688cb29
TT
109532019-02-05 Tom Tromey <tom@tromey.com>
10954
10955 * target.c (target_stack::unpush): Move assertion earlier.
10956
b5eba2d8
TT
109572019-01-30 Tom Tromey <tom@tromey.com>
10958
10959 PR python/23615:
10960 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10961 (gdbpy_parse_and_eval): Likewise.
10962 * python/python-internal.h (gdbpy_allow_threads): New class.
10963
7054e2ff
JB
109642019-01-28 John Baldwin <jhb@FreeBSD.org>
10965
10966 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10967 (aarch64_fbsd_fpregmap): Move earlier.
10968 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10969 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10970 instead of individual calls to trad_frame_set_reg_addr.
10971 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
10972 earlier.
10973 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
10974 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10975 instead of individual calls to trad_frame_set_reg_addr.
10976
36c25ffa
AH
109772019-01-28 Alan Hayward <alan.hayward@arm.com>
10978
10979 * CONTRIBUTE: Replace contribution list with wiki link.
10980
a0707f3c
TT
109812019-01-25 Tom Tromey <tom@tromey.com>
10982
10983 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
10984
0747795c
TT
109852019-01-25 Tom Tromey <tom@tromey.com>
10986
10987 * xtensa-linux-nat.c: Fix common/ includes.
10988 * xml-support.h: Fix common/ includes.
10989 * xml-support.c: Fix common/ includes.
10990 * x86-linux-nat.c: Fix common/ includes.
10991 * windows-nat.c: Fix common/ includes.
10992 * varobj.h: Fix common/ includes.
10993 * varobj.c: Fix common/ includes.
10994 * value.c: Fix common/ includes.
10995 * valops.c: Fix common/ includes.
10996 * utils.c: Fix common/ includes.
10997 * unittests/xml-utils-selftests.c: Fix common/ includes.
10998 * unittests/utils-selftests.c: Fix common/ includes.
10999 * unittests/unpack-selftests.c: Fix common/ includes.
11000 * unittests/tracepoint-selftests.c: Fix common/ includes.
11001 * unittests/style-selftests.c: Fix common/ includes.
11002 * unittests/string_view-selftests.c: Fix common/ includes.
11003 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11004 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11005 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11006 * unittests/rsp-low-selftests.c: Fix common/ includes.
11007 * unittests/parse-connection-spec-selftests.c: Fix common/
11008 includes.
11009 * unittests/optional-selftests.c: Fix common/ includes.
11010 * unittests/offset-type-selftests.c: Fix common/ includes.
11011 * unittests/observable-selftests.c: Fix common/ includes.
11012 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11013 * unittests/memrange-selftests.c: Fix common/ includes.
11014 * unittests/memory-map-selftests.c: Fix common/ includes.
11015 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11016 * unittests/function-view-selftests.c: Fix common/ includes.
11017 * unittests/environ-selftests.c: Fix common/ includes.
11018 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11019 * unittests/common-utils-selftests.c: Fix common/ includes.
11020 * unittests/cli-utils-selftests.c: Fix common/ includes.
11021 * unittests/array-view-selftests.c: Fix common/ includes.
11022 * ui-file.c: Fix common/ includes.
11023 * tui/tui-io.c: Fix common/ includes.
11024 * tracepoint.h: Fix common/ includes.
11025 * tracepoint.c: Fix common/ includes.
11026 * tracefile-tfile.c: Fix common/ includes.
11027 * top.h: Fix common/ includes.
11028 * top.c: Fix common/ includes.
11029 * thread.c: Fix common/ includes.
11030 * target/waitstatus.h: Fix common/ includes.
11031 * target/waitstatus.c: Fix common/ includes.
11032 * target.h: Fix common/ includes.
11033 * target.c: Fix common/ includes.
11034 * target-memory.c: Fix common/ includes.
11035 * target-descriptions.c: Fix common/ includes.
11036 * symtab.h: Fix common/ includes.
11037 * symfile.c: Fix common/ includes.
11038 * stap-probe.c: Fix common/ includes.
11039 * spu-linux-nat.c: Fix common/ includes.
11040 * sparc-nat.c: Fix common/ includes.
11041 * source.c: Fix common/ includes.
11042 * solib.c: Fix common/ includes.
11043 * solib-target.c: Fix common/ includes.
11044 * ser-unix.c: Fix common/ includes.
11045 * ser-tcp.c: Fix common/ includes.
11046 * ser-pipe.c: Fix common/ includes.
11047 * ser-base.c: Fix common/ includes.
11048 * selftest-arch.c: Fix common/ includes.
11049 * s12z-tdep.c: Fix common/ includes.
11050 * rust-exp.y: Fix common/ includes.
11051 * rs6000-aix-tdep.c: Fix common/ includes.
11052 * riscv-tdep.c: Fix common/ includes.
11053 * remote.c: Fix common/ includes.
11054 * remote-notif.h: Fix common/ includes.
11055 * remote-fileio.h: Fix common/ includes.
11056 * remote-fileio.c: Fix common/ includes.
11057 * regcache.h: Fix common/ includes.
11058 * regcache.c: Fix common/ includes.
11059 * record-btrace.c: Fix common/ includes.
11060 * python/python.c: Fix common/ includes.
11061 * python/py-type.c: Fix common/ includes.
11062 * python/py-inferior.c: Fix common/ includes.
11063 * progspace.h: Fix common/ includes.
11064 * producer.c: Fix common/ includes.
11065 * procfs.c: Fix common/ includes.
11066 * proc-api.c: Fix common/ includes.
11067 * printcmd.c: Fix common/ includes.
11068 * ppc-linux-nat.c: Fix common/ includes.
11069 * parser-defs.h: Fix common/ includes.
11070 * osdata.c: Fix common/ includes.
11071 * obsd-nat.c: Fix common/ includes.
11072 * nat/x86-linux.c: Fix common/ includes.
11073 * nat/x86-linux-dregs.c: Fix common/ includes.
11074 * nat/x86-dregs.h: Fix common/ includes.
11075 * nat/x86-dregs.c: Fix common/ includes.
11076 * nat/ppc-linux.c: Fix common/ includes.
11077 * nat/mips-linux-watch.h: Fix common/ includes.
11078 * nat/mips-linux-watch.c: Fix common/ includes.
11079 * nat/linux-waitpid.c: Fix common/ includes.
11080 * nat/linux-ptrace.h: Fix common/ includes.
11081 * nat/linux-ptrace.c: Fix common/ includes.
11082 * nat/linux-procfs.c: Fix common/ includes.
11083 * nat/linux-personality.c: Fix common/ includes.
11084 * nat/linux-osdata.c: Fix common/ includes.
11085 * nat/linux-namespaces.c: Fix common/ includes.
11086 * nat/linux-btrace.h: Fix common/ includes.
11087 * nat/linux-btrace.c: Fix common/ includes.
11088 * nat/fork-inferior.c: Fix common/ includes.
11089 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11090 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11091 * nat/aarch64-linux.c: Fix common/ includes.
11092 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11093 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11094 * namespace.h: Fix common/ includes.
11095 * mips-linux-tdep.c: Fix common/ includes.
11096 * minsyms.c: Fix common/ includes.
11097 * mi/mi-parse.h: Fix common/ includes.
11098 * mi/mi-main.c: Fix common/ includes.
11099 * mi/mi-cmd-env.c: Fix common/ includes.
11100 * memrange.h: Fix common/ includes.
11101 * memattr.c: Fix common/ includes.
11102 * maint.h: Fix common/ includes.
11103 * maint.c: Fix common/ includes.
11104 * main.c: Fix common/ includes.
11105 * machoread.c: Fix common/ includes.
11106 * location.c: Fix common/ includes.
11107 * linux-thread-db.c: Fix common/ includes.
11108 * linux-nat.c: Fix common/ includes.
11109 * linux-fork.c: Fix common/ includes.
11110 * inline-frame.c: Fix common/ includes.
11111 * infrun.c: Fix common/ includes.
11112 * inflow.c: Fix common/ includes.
11113 * inferior.h: Fix common/ includes.
11114 * inferior.c: Fix common/ includes.
11115 * infcmd.c: Fix common/ includes.
11116 * inf-ptrace.c: Fix common/ includes.
11117 * inf-child.c: Fix common/ includes.
11118 * ia64-linux-nat.c: Fix common/ includes.
11119 * i387-tdep.c: Fix common/ includes.
11120 * i386-tdep.c: Fix common/ includes.
11121 * i386-linux-tdep.c: Fix common/ includes.
11122 * i386-linux-nat.c: Fix common/ includes.
11123 * i386-go32-tdep.c: Fix common/ includes.
11124 * i386-fbsd-tdep.c: Fix common/ includes.
11125 * i386-fbsd-nat.c: Fix common/ includes.
11126 * guile/scm-type.c: Fix common/ includes.
11127 * guile/guile.c: Fix common/ includes.
11128 * go32-nat.c: Fix common/ includes.
11129 * gnu-nat.c: Fix common/ includes.
11130 * gdbthread.h: Fix common/ includes.
11131 * gdbarch-selftests.c: Fix common/ includes.
11132 * gdb_usleep.c: Fix common/ includes.
11133 * gdb_select.h: Fix common/ includes.
11134 * gdb_bfd.c: Fix common/ includes.
11135 * gcore.c: Fix common/ includes.
11136 * fork-child.c: Fix common/ includes.
11137 * findvar.c: Fix common/ includes.
11138 * fbsd-nat.c: Fix common/ includes.
11139 * event-top.c: Fix common/ includes.
11140 * event-loop.c: Fix common/ includes.
11141 * dwarf2read.c: Fix common/ includes.
11142 * dwarf2loc.c: Fix common/ includes.
11143 * dwarf2-frame.c: Fix common/ includes.
11144 * dwarf-index-cache.c: Fix common/ includes.
11145 * dtrace-probe.c: Fix common/ includes.
11146 * disasm-selftests.c: Fix common/ includes.
11147 * defs.h: Fix common/ includes.
11148 * csky-tdep.c: Fix common/ includes.
11149 * cp-valprint.c: Fix common/ includes.
11150 * cp-support.h: Fix common/ includes.
11151 * cp-support.c: Fix common/ includes.
11152 * corelow.c: Fix common/ includes.
11153 * completer.h: Fix common/ includes.
11154 * completer.c: Fix common/ includes.
11155 * compile/compile.c: Fix common/ includes.
11156 * compile/compile-loc2c.c: Fix common/ includes.
11157 * compile/compile-cplus-types.c: Fix common/ includes.
11158 * compile/compile-cplus-symbols.c: Fix common/ includes.
11159 * command.h: Fix common/ includes.
11160 * cli/cli-dump.c: Fix common/ includes.
11161 * cli/cli-cmds.c: Fix common/ includes.
11162 * charset.c: Fix common/ includes.
11163 * build-id.c: Fix common/ includes.
11164 * btrace.h: Fix common/ includes.
11165 * btrace.c: Fix common/ includes.
11166 * breakpoint.h: Fix common/ includes.
11167 * breakpoint.c: Fix common/ includes.
11168 * ax.h:
11169 (enum agent_op): Fix common/ includes.
11170 * ax-general.c (struct aop_map): Fix common/ includes.
11171 * ax-gdb.c: Fix common/ includes.
11172 * auxv.c: Fix common/ includes.
11173 * auto-load.c: Fix common/ includes.
11174 * arm-tdep.c: Fix common/ includes.
11175 * arch/riscv.c: Fix common/ includes.
11176 * arch/ppc-linux-common.c: Fix common/ includes.
11177 * arch/i386.c: Fix common/ includes.
11178 * arch/arm.c: Fix common/ includes.
11179 * arch/arm-linux.c: Fix common/ includes.
11180 * arch/arm-get-next-pcs.c: Fix common/ includes.
11181 * arch/amd64.c: Fix common/ includes.
11182 * arch/aarch64.c: Fix common/ includes.
11183 * arch/aarch64-insn.c: Fix common/ includes.
11184 * arch-utils.c: Fix common/ includes.
11185 * amd64-windows-tdep.c: Fix common/ includes.
11186 * amd64-tdep.c: Fix common/ includes.
11187 * amd64-sol2-tdep.c: Fix common/ includes.
11188 * amd64-obsd-tdep.c: Fix common/ includes.
11189 * amd64-nbsd-tdep.c: Fix common/ includes.
11190 * amd64-linux-tdep.c: Fix common/ includes.
11191 * amd64-linux-nat.c: Fix common/ includes.
11192 * amd64-fbsd-tdep.c: Fix common/ includes.
11193 * amd64-fbsd-nat.c: Fix common/ includes.
11194 * amd64-dicos-tdep.c: Fix common/ includes.
11195 * amd64-darwin-tdep.c: Fix common/ includes.
11196 * agent.c: Fix common/ includes.
11197 * ada-lang.h: Fix common/ includes.
11198 * ada-lang.c: Fix common/ includes.
11199 * aarch64-tdep.c: Fix common/ includes.
11200
2f5c153e
TT
112012019-01-25 Tom Tromey <tom@tromey.com>
11202
11203 * common/create-version.sh: Use common/version.h.
11204
adc6a863
PA
112052019-01-24 Pedro Alves <palves@redhat.com>
11206
11207 * infrun.c (signal_stop, signal_print, signal_program)
11208 (signal_catch, signal_pass): Now arrays instead of pointers.
11209 (update_signals_program_target, do_target_resume)
11210 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11211 * linux-nat.c (linux_nat_target::pass_signals)
11212 (linux_nat_target::create_inferior, linux_nat_target::attach):
11213 Adjust.
11214 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11215 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11216 * procfs.c (procfs_target::pass_signals): Adjust.
11217 * record-full.c (record_full_target::resume): Adjust.
11218 * remote.c (remote_target::pass_signals)
11219 (remote_target::program_signals): Adjust.
11220 * target-debug.h (target_debug_print_signals): Now takes a
11221 gdb::array_view as parameter. Adjust.
11222 * target.h (target_ops) <pass_signals, program_signals>: Replace
11223 pointer and length parameters with gdb::array_view.
11224 (target_pass_signals, target_program_signals): Likewise.
11225 * target-delegates.c: Regenerate.
11226
3046d67a
PA
112272019-01-24 Pedro Alves <palves@redhat.com>
11228
11229 * common/forward-scope-exit.h
11230 (forward_scope_exit::forward_scope_exit): Pass arguments to
11231 m_bind_function directly, instead of creating a std::bind and
11232 copying that.
11233
353229bf
AH
112342019-01-24 Alan Hayward <alan.hayward@arm.com>
11235
11236 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11237 for static members.
11238 (pass_in_v_vfp_candidate): Likewise.
11239
311dc83a
TT
112402019-01-23 Tom Tromey <tom@tromey.com>
11241 Pedro Alves <palves@redhat.com>
11242
11243 * regcache.c (class regcache_invalidator): Remove.
11244 (regcache::raw_write): Use make_scope_exit.
11245
296bd123
TT
112462019-01-23 Tom Tromey <tom@tromey.com>
11247
11248 * ui-out.h (class ui_out_emit_type): Update comment.
11249
979a0d13
TT
112502019-01-23 Tom Tromey <tom@tromey.com>
11251
11252 * infrun.c (fetch_inferior_event): Update comment.
11253
d238133d
TT
112542019-01-23 Tom Tromey <tom@tromey.com>
11255 Pedro Alves <palves@redhat.com>
11256
11257 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11258 parameter.
11259 (fetch_inferior_event): Use SCOPE_EXIT.
11260
11261
9885e6bb
TT
112622019-01-23 Tom Tromey <tom@tromey.com>
11263 Pedro Alves <palves@redhat.com>
11264
11265 * infrun.c (disable_thread_events): Delete.
11266 (stop_all_threads): Use SCOPE_EXIT.
11267
286526c1
TT
112682019-01-23 Tom Tromey <tom@tromey.com>
11269 Pedro Alves <palves@redhat.com>
11270
11271 * symfile.c: Include forward-scope-exit.h.
11272 (clear_symtab_users_cleanup): Replace forward declaration with
11273 a FORWARD_SCOPE_EXIT.
11274 (syms_from_objfile_1): Use the forward_scope_exit and
11275 gdb::optional instead of cleanup_function.
11276 (reread_symbols): Use the forward_scope_exit instead of
11277 cleanup_function.
11278 (clear_symtab_users_cleanup): Remove function.
11279
1db93f14
TT
112802019-01-23 Tom Tromey <tom@tromey.com>
11281 Pedro Alves <palves@redhat.com>
11282
11283 * linux-nat.c: Include scope-exit.h.
11284 (cleanup_target_stop): Remove.
11285 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11286 SCOPE_EXIT.
11287
2cc83d1e
TT
112882019-01-23 Tom Tromey <tom@tromey.com>
11289 Pedro Alves <palves@redhat.com>
11290
11291 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11292 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11293
694c6bf5
TT
112942019-01-23 Tom Tromey <tom@tromey.com>
11295 Andrew Burgess <andrew.burgess@embecosm.com>
11296 Pedro Alves <palves@redhat.com>
11297
11298 * infrun.c (fetch_inferior_event): Use scope_exit.
11299 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11300 * top.c (execute_command): Use scope_exit.
11301 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11302 * utils.c (do_bpstat_clear_actions_cleanup)
11303 (make_bpstat_clear_actions_cleanup): Remove.
11304
4c41382a
TT
113052019-01-23 Tom Tromey <tom@tromey.com>
11306 Pedro Alves <palves@redhat.com>
11307
11308 * infrun.c: Include "common/scope-exit.h"
11309 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11310 (wait_for_inferior): Use SCOPE_EXIT.
11311 (fetch_inferior_event): Use scope_exit.
11312
89f8fb50
TT
113132019-01-23 Tom Tromey <tom@tromey.com>
11314 Pedro Alves <palves@redhat.com>
11315
11316 * breakpoint.c (create_breakpoint): Remove cleanup.
11317
5419bdae
TT
113182019-01-23 Tom Tromey <tom@tromey.com>
11319 Andrew Burgess <andrew.burgess@embecosm.com>
11320 Pedro Alves <palves@redhat.com>
11321
e587ef42
PA
113222019-01-23 Pedro Alves <palves@redhat.com>
11323
11324 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11325
77f0e74c
PA
113262019-01-23 Pedro Alves <palves@redhat.com>
11327 Andrew Burgess <andrew.burgess@embecosm.com>
11328
11329 * gdbthread.h: Include "common/forward-scope-exit.h".
11330 (scoped_finish_thread_state): Redefine custom class in terms of
11331 forward_scope_exit.
11332
5b9b3e53
PA
113332019-01-23 Pedro Alves <palves@redhat.com>
11334 Andrew Burgess <andrew.burgess@embecosm.com>
11335
11336 * common/forward-scope-exit.h: New file.
11337
54b65c9b
PA
113382019-01-23 Pedro Alves <palves@redhat.com>
11339 Andrew Burgess <andrew.burgess@embecosm.com>
11340 Tom Tromey <tom@tromey.com>
11341
11342 * common/scope-exit.h: New file.
11343
cf08fb29
PA
113442019-01-23 Pedro Alves <palves@redhat.com>
11345
11346 * common/preprocessor.h (ESC): Rename to ...
11347 (ESC_PARENS): ... this.
11348 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11349 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11350
ae73e2e2
TT
113512019-01-23 Tom Tromey <tom@tromey.com>
11352
11353 * language.h (class scoped_switch_to_sym_language_if_auto):
11354 Initialize m_lang in both cases.
11355
6594e122
AH
113562019-01-23 Alan Hayward <alan.hayward@arm.com>
11357
11358 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11359 with XCNEW.
11360
a7c9855d
TT
113612019-01-22 Tom Tromey <tom@tromey.com>
11362
11363 * corelow.c: Do not include sys/file.h.
11364
93cc1d53
TT
113652019-01-22 Tom Tromey <tom@tromey.com>
11366
11367 * tui/tui-wingeneral.h: Include gdb_curses.h.
11368
38561778
TT
113692019-01-22 Tom Tromey <tom@tromey.com>
11370
11371 * source-cache.h (class source_cache) <get_source_lines,
11372 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11373
37b3ab5b
TT
113742019-01-22 Tom Tromey <tom@tromey.com>
11375
11376 * remote-fileio.h (struct remote_target): Declare.
11377
3fabc016
TT
113782019-01-22 Tom Tromey <tom@tromey.com>
11379
11380 * python/py-arch.c: Do not include py-ref.h.
11381 * python/py-bpevent.c: Do not include py-ref.h.
11382 * python/py-cmd.c: Do not include py-ref.h.
11383 * python/py-continueevent.c: Do not include py-ref.h.
11384 * python/py-event.h: Do not include py-ref.h.
11385 * python/py-evtregistry.c: Do not include py-ref.h.
11386 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11387 * python/py-frame.c: Do not include py-ref.h.
11388 * python/py-framefilter.c: Do not include py-ref.h.
11389 * python/py-function.c: Do not include py-ref.h.
11390 * python/py-infevents.c: Do not include py-ref.h.
11391 * python/py-linetable.c: Do not include py-ref.h.
11392 * python/py-objfile.c: Do not include py-ref.h.
11393 * python/py-param.c: Do not include py-ref.h.
11394 * python/py-prettyprint.c: Do not include py-ref.h.
11395 * python/py-progspace.c: Do not include py-ref.h.
11396 * python/py-symbol.c: Do not include py-ref.h.
11397 * python/py-symtab.c: Do not include py-ref.h.
11398 * python/py-type.c: Do not include py-ref.h.
11399 * python/py-unwind.c: Do not include py-ref.h.
11400 * python/py-utils.c: Do not include py-ref.h.
11401 * python/py-value.c: Do not include py-ref.h.
11402 * python/py-varobj.c: Do not include py-ref.h.
11403 * python/py-xmethods.c: Do not include py-ref.h.
11404 * python/python.c: Do not include py-ref.h.
11405 * varobj.c: Do not include py-ref.h.
11406
6b4d7774
TT
114072019-01-22 Tom Tromey <tom@tromey.com>
11408
11409 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11410 keyword for bcache.
11411
7af7e9b5
TT
114122019-01-22 Tom Tromey <tom@tromey.com>
11413
11414 * compile/compile-cplus-types.c: Remove a comment by #include.
11415
951d1049
TT
114162019-01-22 Tom Tromey <tom@tromey.com>
11417
11418 * compile/gcc-c-plugin.h: Include compile-internal.h.
11419
d65d5705
TT
114202019-01-22 Tom Tromey <tom@tromey.com>
11421
11422 * stabsread.c (EXTERN): Do not define.
11423 (symnum, next_symbol_text_func, processing_gcc_compilation)
11424 (within_function, global_sym_chain, global_stabs)
11425 (previous_stab_code, this_object_header_files)
11426 (n_this_object_header_files)
11427 (n_allocated_this_object_header_files): Define.
11428 * stabsread.h (EXTERN): Never define. Use "extern".
11429
b6fb1ee5
PW
114302019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11431
11432 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11433 history_value.
11434
be6d4f74
TT
114352019-01-21 Tom Tromey <tom@tromey.com>
11436
11437 * ui-out.c: Fix includes.
11438 * tui/tui-source.c: Fix includes.
11439 * target.c: Fix includes.
11440 * remote.c: Fix includes.
11441 * regcache.c: Fix includes.
11442 * python/py-block.c: Fix includes.
11443 * printcmd.c: Fix includes.
11444 * or1k-tdep.c: Fix includes.
11445 * mi/mi-main.c: Fix includes.
11446 * m32r-tdep.c: Fix includes.
11447 * csky-tdep.c: Fix includes.
11448 * compile/compile-cplus-types.c: Fix includes.
11449 * cli/cli-interp.c: Fix includes.
11450
73021deb
AH
114512019-01-21 Alan Hayward <alan.hayward@arm.com>
11452
11453 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11454 for padding.
11455
7932255d
TT
114562019-01-16 Tom Tromey <tom@tromey.com>
11457
11458 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11459 earlier.
11460 (struct objfile) <msymbols_range>: Move from top level.
11461 <msymbols>: New method.
11462 (class objfile_msymbols): Remove.
11463 * symtab.c (default_collect_symbol_completion_matches_break_on):
11464 Update.
11465 * symmisc.c (dump_msymbols): Update.
11466 * stabsread.c (scan_file_globals): Update.
11467 * objc-lang.c (info_selectors_command, info_classes_command)
11468 (find_methods): Update.
11469 * minsyms.c (find_solib_trampoline_target): Update.
11470 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11471 * coffread.c (coff_symfile_read): Update.
11472 * ada-lang.c (ada_lookup_simple_minsym)
11473 (ada_collect_symbol_completion_matches): Update.
11474
604b1bfb
TT
114752019-01-16 Tom Tromey <tom@tromey.com>
11476
11477 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11478 type. Remove no-argument constructor.
11479 <iterator::operator++>: Simplify.
11480 <begin>: Update.
11481 <end>: Use minimal_symbol_count.
11482
f252c6d5
TT
114832019-01-16 Tom Tromey <tom@tromey.com>
11484
11485 * objfiles.h (struct objfile) <psymtabs>: New method.
11486 (class objfile_psymtabs): Remove.
11487 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11488 typedef.
11489 <range>: New method.
11490 (require_partial_symbols): Change return type.
11491 * psymtab.c (require_partial_symbols)
11492 (psym_expand_symtabs_matching): Update.
11493 * mdebugread.c (parse_partial_symbols): Update.
11494 * dbxread.c (dbx_end_psymtab): Update.
11495
b669c953
TT
114962019-01-15 Tom Tromey <tom@tromey.com>
11497
11498 * symtab.c (lookup_objfile_from_block)
11499 (lookup_symbol_in_objfile_symtabs)
11500 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11501 (find_line_symtab, info_sources_command)
11502 (default_collect_symbol_completion_matches_break_on)
11503 (make_source_files_completion_list): Update.
11504 * symmisc.c (print_objfile_statistics, dump_objfile)
11505 (maintenance_print_symbols, maintenance_info_symtabs)
11506 (maintenance_check_symtabs, maintenance_info_line_tables):
11507 Update.
11508 * source.c (select_source_symtab)
11509 (forget_cached_source_info_for_objfile): Update.
11510 * objfiles.h (class objfile_compunits): Remove.
11511 (struct objfile) <compunits_range>: New typedef.
11512 (compunits): New method.
11513 * objfiles.c (objfile_relocate1): Update.
11514 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11515 * maint.c (count_symtabs_and_blocks): Update.
11516 * linespec.c (iterate_over_all_matching_symtabs): Update.
11517 * cp-support.c (add_symbol_overload_list_qualified): Update.
11518 * coffread.c (coff_symtab_read): Update.
11519 * ada-lang.c (add_nonlocal_symbols)
11520 (ada_collect_symbol_completion_matches)
11521 (ada_add_global_exceptions): Update.
11522
7e955d83
TT
115232019-01-15 Tom Tromey <tom@tromey.com>
11524
11525 * progspace.h (program_space) <objfiles_safe_range>: New
11526 typedef.
11527 <objfiles_safe>: New method.
11528 * objfiles.h (class all_objfiles_safe): Remove.
11529 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11530 * jit.c (jit_inferior_exit_hook): Update.
11531
2030c079
TT
115322019-01-17 Tom Tromey <tom@tromey.com>
11533
11534 * progspace.h (program_space) <objfiles_range>: New typedef.
11535 <objfiles>: New method.
11536 <objfiles_head>: Rename from objfiles.
11537 (object_files): Update.
11538 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11539 * guile/scm-pretty-print.c
11540 (ppscm_find_pretty_printer_from_objfiles): Update.
11541 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11542 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11543 Update.
11544 * python/py-progspace.c (pspy_get_objfiles): Update.
11545 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11546 Update.
11547 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11548 (objfpy_lookup_objfile_by_build_id): Update.
11549 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11550 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11551 Update.
11552 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11553 (expand_symtab_containing_pc, lookup_objfile_from_block)
11554 (lookup_static_symbol, basic_lookup_transparent_type)
11555 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11556 (find_line_symtab, info_sources_command)
11557 (default_collect_symbol_completion_matches_break_on)
11558 (make_source_files_completion_list, find_main_name): Update.
11559 * symmisc.c (print_symbol_bcache_statistics)
11560 (print_objfile_statistics, maintenance_print_symbols)
11561 (maintenance_print_msymbols, maintenance_print_objfiles)
11562 (maintenance_info_symtabs, maintenance_check_symtabs)
11563 (maintenance_expand_symtabs, maintenance_info_line_tables):
11564 Update.
11565 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11566 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11567 (map_overlay_command, unmap_overlay_command)
11568 (simple_overlay_update, expand_symtabs_matching)
11569 (map_symbol_filenames): Update.
11570 * symfile-debug.c (set_debug_symfile): Update.
11571 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11572 Update.
11573 * source.c (select_source_symtab, forget_cached_source_info):
11574 Update.
11575 * solib.c (solib_read_symbols): Update.
11576 * solib-spu.c (append_ocl_sos): Update.
11577 * psymtab.c (maintenance_print_psymbols)
11578 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11579 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11580 * printcmd.c (info_symbol_command): Update.
11581 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11582 Update.
11583 * objfiles.h (class all_objfiles): Remove.
11584 * objfiles.c (have_partial_symbols, have_full_symbols)
11585 (have_minimal_symbols, qsort_cmp, update_section_map)
11586 (shared_objfile_contains_address_p)
11587 (default_iterate_over_objfiles_in_search_order): Update.
11588 * objc-lang.c (info_selectors_command, info_classes_command)
11589 (find_methods): Update.
11590 * minsyms.c (find_solib_trampoline_target): Update.
11591 * maint.c (maintenance_info_sections)
11592 (maintenance_translate_address, count_symtabs_and_blocks):
11593 Update.
11594 * main.c (captured_main_1): Update.
11595 * linux-thread-db.c (try_thread_db_load_from_pdir)
11596 (has_libpthread): Update.
11597 * linespec.c (iterate_over_all_matching_symtabs)
11598 (search_minsyms_for_name): Update.
11599 * jit.c (jit_find_objf_with_entry_addr): Update.
11600 * hppa-tdep.c (find_unwind_entry)
11601 (hppa_lookup_stub_minimal_symbol): Update.
11602 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11603 Update.
11604 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11605 (elf_gnu_ifunc_resolve_by_got): Update.
11606 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11607 * dwarf-index-write.c (save_gdb_index_command): Update.
11608 * cp-support.c (add_symbol_overload_list_qualified): Update.
11609 * breakpoint.c (create_overlay_event_breakpoint)
11610 (create_longjmp_master_breakpoint)
11611 (create_std_terminate_master_breakpoint)
11612 (create_exception_master_breakpoint): Update.
11613 * blockframe.c (find_pc_partial_function): Update.
11614 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11615 (ada_collect_symbol_completion_matches)
11616 (ada_add_global_exceptions): Update.
11617
776489e0
TT
116182019-01-17 Tom Tromey <tom@tromey.com>
11619
11620 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11621 declare VEC.
11622 (solib_target_parse_libraries): Change return type.
11623 (library_list_start_segment, library_list_start_section)
11624 (library_list_end_library, library_list_start_library); Update.
11625 (solib_target_free_library_list): Remove.
11626 (solib_target_parse_libraries): Remove cleanup. Change return
11627 type.
11628 (solib_target_current_sos): Update.
11629
6471e7d2
TT
116302019-01-17 Tom Tromey <tromey@bapiya>
11631
11632 * valprint.c: Replace "the the" with "the".
11633 * symtab.c: Replace "the the" with "the".
11634 * solib.c: Replace "the the" with "the".
11635 * solib-dsbt.c: Replace "the the" with "the".
11636 * linespec.c: Replace "the the" with "the".
11637 * dwarf2loc.h: Replace "the the" with "the".
11638 * amd64-windows-tdep.c: Replace "the the" with "the".
11639 * aarch64-tdep.c: Replace "the the" with "the".
11640
c24bdb02
KS
116412019-01-16 Keith Seitz <keiths@redhat.com>
11642
11643 PR gdb/23773
11644 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11645 <builder>: Rename to ..
11646 <m_builder>: ... this and make private.
11647 (dwarf2_cu::get_builder): New method. Change all users of
11648 `builder' to use this method.
11649 (dwarf2_start_symtab): Move to ...
11650 (dwarf2_cu::start_symtab): ... here. Update all callers
11651 (setup_type_unit_groups): Move to ...
11652 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11653 callers.
11654 (dwarf2_cu::reset_builder): New method.
11655 (process_full_compunit, process_full_type_unit): Use
11656 dwarf2_cu::reset_builder.
11657 (follow_die_offset): Record the ancestor CU if it is different
11658 from the followed DIE's CU.
11659 (follow_die_sig_1): Likewise.
11660
8d64371b
TT
116612019-01-15 Tom Tromey <tom@tromey.com>
11662
11663 * remote.c (class remote_state) <buf>: Now a char_vector.
11664 <buf_size>: Remove.
11665 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11666 parameter.
11667 (remote_target::getpkt_or_notif_sane_1)
11668 (remote_target::getpkt_sane)
11669 (remote_target::getpkt_or_notif_sane): Likewise.
11670 (class remote_target) <putpkt>: New overload.
11671 (remote_target::read_frame): Change type of "buf_p". Remove
11672 sizeof_p parameter.
11673 (packet_ok): New overload.
11674 (packet_check_result): New overload.
11675 Update all uses.
11676
bb277751
TT
116772019-01-14 Tom Tromey <tom@tromey.com>
11678
11679 * remote-notif.c (handle_notification, remote_notif_ack)
11680 (remote_notif_parse): Make "buf" const.
11681 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11682 const.
11683 (remote_notif_parse, remote_notif_ack, handle_notification):
11684 Likewise.
11685 * remote.c (remote_notif_stop_parse): Make "buf" const.
11686 (remote_target::remote_parse_stop_reply): Make "buf" const.
11687 (remote_notif_stop_ack): Make "buf" const.
11688
05be00a8
TT
116892019-01-14 Tom Tromey <tom@tromey.com>
11690
11691 * remote.c (remote_console_output): Make parameter const.
11692
491adeca
TT
116932019-01-14 Tom Tromey <tom@tromey.com>
11694
11695 * target-debug.h (target_debug_print_signals): Constify.
11696 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11697 * procfs.c (procfs_target::pass_signals): Update.
11698 * linux-nat.c (linux_nat_target::pass_signals): Update.
11699 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11700 * target-delegates.c: Rebuild.
11701 * remote.c (remote_target::program_signals): Update.
11702 (remote_target::pass_signals): Update.
11703 * target.c (target_pass_signals): Constify argument.
11704 (target_program_signals): Likewise.
11705 * target.h (struct target_ops) <pass_signals, program_signals>:
11706 Constify argument.
11707 (target_pass_signals, target_program_signals): Constify argument.
11708
bbd94648
TT
117092019-01-14 Tom Tromey <tom@tromey.com>
11710
11711 PR tui/28819:
11712 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11713
6f072a10
PFC
117142019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11715
11716 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11717 field.
11718 * rs6000-tdep.c: Include reggroups.h.
11719 (IS_V_ALIAS_PSEUDOREG): Define.
11720 (rs6000_register_name): Return names for the "vX" aliases.
11721 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11722 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11723 aliases. Call default_register_reggroup_p for all other
11724 pseudo-registers.
11725 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11726 New functions.
11727 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11728 Handle "vX" aliases.
11729 (v_alias_pseudo_register_collect): New function.
11730 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11731 (rs6000_gdbarch_init): Initialize "vX" aliases as
11732 pseudo-registers. Restore registration of
11733 rs6000_pseudo_register_reggroup_p with
11734 set_tdesc_pseudo_register_reggroup_p.
11735
1a782351
MF
117362019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11737
11738 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11739 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11740 set_gdbarch_num_pseudo_regs.
11741
d73cff18
PW
117422019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11743
11744 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11745 Remove arg prefixname, add do_set and do_show.
11746 Add member functions set_list and show_list.
11747 * cli/cli-style.c (class cli_style_option): Update accordingly.
11748 (style_set_list): Move to file scope.
11749 (style_show_list): Likewise.
11750 (set_style): Call help_list.
11751 (show_style): Call cmd_show_list.
11752 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11753 Update to use the new macro.
11754
60a90376
JB
117552019-10-12 Joel Brobecker <brobecker@adacore.com>
11756
11757 * ada-lang.c (_initialize_ada_language): Expand the help text
11758 for the "catch exception" command.
11759
9d7c67bf
PW
117602019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11761
11762 * symtab.c (matching_obj_sections): Initialize obj,
11763 declare it closer to its usage.
11764
7cf47dc4
TT
117652019-01-10 Tom Tromey <tom@tromey.com>
11766
11767 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11768 (basic_inf_threads_range): Remove.
11769 (inf_threads_range, inf_non_exited_threads_range)
11770 (safe_inf_threads_range): Use next_adapter.
11771
d3cb6808
KS
117722019-01-10 Keith Seitz <keiths@redhat.com>
11773
11774 PR gdb/23712
11775 PR symtab/23010
11776 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11777 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11778
63a20375
KS
117792019-01-10 Keith Seitz <keiths@redhat.com>
11780
11781 PR gdb/23712
11782 PR symtab/23010
11783 * dictionary.c (pending_to_vector): Remove.
11784 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11785 Remove _1 suffix, replacing functions of the same name. Update
11786 all callers.
11787 (dict_create_hashed, dict_create_hashed_expandable)
11788 (dict_create_linear, dict_create_linear_expandable, dict_free)
11789 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11790 Make functions static.
11791
b026f593
KS
117922019-01-10 Keith Seitz <keiths@redhat.com>
11793
11794 PR gdb/23712
11795 PR symtab/23010
11796 * dictionary.h (struct dictionary): Replace declaration with
11797 multidictionary.
11798 (dict_create_hashed, dict_create_hashed_expandable)
11799 (dict_create_linear, dict_create_linear_expandable)
11800 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11801 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11802 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11803 taking multidictionary argument.
11804 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11805 * block.h (struct block) <dict>: Change to multidictionary
11806 and rename `multidict'.
11807 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11808 symmisc.c: Update all dictionary references to multidictionary.
11809
c7748ee9
KS
118102019-01-10 Keith Seitz <keiths@redhat.com>
11811
11812 PR gdb/23712
11813 PR symtab/23010
11814 * dictionary.c: Include unordered_map.
11815 (pending_to_vector): New function.
11816 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11817 Rewrite the non-"_1" functions to take vector instead
11818 of linked list.
11819 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11820 "new" _1 versions of the same name.
11821 (multidictionary): Define.
11822 (std::hash<enum language): New definition.
11823 (collate_pending_symbols_by_language, mdict_create_hashed)
11824 (mdict_create_hashed_expandable, mdict_create_linear)
11825 (mdict_create_linear_expandable, mdict_free)
11826 (find_language_dictionary, create_new_language_dictionary)
11827 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11828 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11829 (mdict_size, mdict_empty): New functions.
11830 * dictionary.h (mdict_iterator): Define.
11831
67aa1f3c
PA
118322019-01-10 Pedro Alves <palves@redhat.com>
11833
11834 * breakpoint.c (read_uploaded_action)
11835 (create_tracepoint_from_upload): Adjust to use
11836 gdb::unique_xmalloc_ptr.
11837 * ctf.c (ctf_write_uploaded_tp):
11838 (SET_ARRAY_FIELD): Use emplace_back.
11839 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11840 * tracefile-tfile.c (tfile_write_uploaded_tp):
11841 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11842 gdb::unique_xmalloc_ptr.
11843 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11844 at_string, cond_string, cmd_strings>: Replace char pointers
11845 with gdb::unique_xmalloc_ptr.
11846
2f667667
PA
118472019-01-10 Pedro Alves <palves@redhat.com>
11848
11849 * solib-target.c (library_list_start_library): Don't xstrdup name.
11850
36cb7237
PA
118512019-01-10 Pedro Alves <palves@redhat.com>
11852
11853 * mdebugread.c (parse_partial_symbols): Use
11854 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11855
da584958
AB
118562019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11857
11858 * linux-fork.c (scoped_switch_fork_info)
11859 <~scoped_switch_fork_info>: Fix incorrect variable name.
11860
1ef8573c
AB
118612019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11862
11863 * linux-fork.c (scoped_switch_fork_info)
11864 <scoped_switch_fork_info>: Make explicit.
11865 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11866
8d7bcccb
TT
118672019-01-10 Tom Tromey <tom@tromey.com>
11868
11869 * objfiles.h (objfile::reset_psymtabs): Update.
11870 * objfiles.c (objfile::objfile): Update.
11871 * psymtab.h (psymtab_storage::obstack): Update.
11872 (psymtab_storage::m_obstack): Use gdb::optional.
11873 (class psymtab_storage): Update comment. Remove objfile
11874 parameter.
11875 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11876
b596a3c7
TT
118772019-01-10 Tom Tromey <tom@tromey.com>
11878
11879 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11880 <free_psymtabs>: Now private.
11881 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11882 (allocate_psymtab): Use new method.
11883
a9342b62
TT
118842019-01-10 Tom Tromey <tom@tromey.com>
11885
11886 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11887 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11888 * mdebugread.c (parse_partial_symbols): Use
11889 allocate_dependencies.
11890 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11891 allocate_dependencies.
11892 (process_psymtab_comp_unit_reader)
11893 (build_type_psymtab_dependencies): Likewise.
11894 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11895
5af70966
TT
118962019-01-10 Tom Tromey <tom@tromey.com>
11897
11898 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11899 PSYMBOL_SET_LANGUAGE.
11900 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11901
5923a04c
TT
119022019-01-10 Tom Tromey <tom@tromey.com>
11903
11904 * psymtab.h (psymtab_storage::obstack): New method.
11905 <m_obstack>: Rename from obstack; now private.
11906 * psymtab.c (psymtab_storage): Update.
11907 * dwarf2read.c (create_addrmap_from_index)
11908 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11909 Update.
11910
6d6a12bf
TT
119112019-01-10 Tom Tromey <tom@tromey.com>
11912
11913 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11914 * objfiles.h (objfile::reset_psymtabs): New method.
11915
d320c2b5
TT
119162019-01-10 Tom Tromey <tom@tromey.com>
11917
11918 * symmisc.c (print_symbol_bcache_statistics): Update.
11919 (print_objfile_statistics): Update.
11920 * symfile.c (reread_symbols): Update.
11921 * psymtab.h (class psymtab_storage): New.
11922 * psymtab.c (psymtab_storage): New constructor.
11923 (~psymtab_storage): New destructor.
11924 (require_partial_symbols): Update.
11925 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11926 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11927 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11928 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11929 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11930 (start_psymtab_common, end_psymtab_common)
11931 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11932 (allocate_psymtab): Update.
11933 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11934 Update.
11935 (dump_psymtab_addrmap, maintenance_print_psymbols)
11936 (maintenance_check_psymtabs): Update.
11937 (class objfile_psymtabs): Move to objfiles.h.
11938 * psympriv.h (discard_psymtab): Now inline.
11939 (psymtab_discarder::psymtab_discarder): Update.
11940 (psymtab_discarder::~psymtab_discarder): Update.
11941 (ALL_OBJFILE_PSYMTABS): Rewrite.
11942 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11943 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11944 Remove fields.
11945 <partial_symtabs>: New field.
11946 (class objfile_psymtabs): Move from psymtab.h. Update.
11947 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11948 psymbol_cache.
11949 (objfile::~objfile): Don't destroy psymbol_cache.
11950 * mdebugread.c (parse_partial_symbols): Update.
11951 * dwarf2read.c (create_addrmap_from_index)
11952 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11953 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11954 (add_partial_subprogram, dwarf2_ranges_read): Update.
11955 * dwarf-index-write.c (write_address_map)
11956 (write_one_signatured_type, recursively_write_psymbols)
11957 (class debug_names, class debug_names, write_psymtabs_to_index):
11958 Update.
11959
1d94a5a3
TT
119602019-01-10 Tom Tromey <tom@tromey.com>
11961
11962 * symtab.h (SYMBOL_SET_NAMES): Update.
11963 (symbol_set_names): Update.
11964 (MSYMBOL_SET_NAMES): Update.
11965 * symtab.c (symbol_set_names): Change argument to be an
11966 objfile_per_bfd_storage.
11967 * psymtab.c (add_psymbol_to_bcache): Update.
11968 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11969
0f14768a
TT
119702019-01-10 Tom Tromey <tom@tromey.com>
11971
11972 * symtab.c (create_demangled_names_hash): Change argument to be an
11973 objfile_per_bfd_storage.
11974 (symbol_set_names): Update.
11975
6eee24ce
TT
119762019-01-10 Tom Tromey <tom@tromey.com>
11977
11978 * xcoffread.c (xcoff_initial_scan): Unconditionally call
11979 init_psymbol_list.
11980 * psymtab.c (init_psymbol_list): Do nothing if already called.
11981 * psympriv.h (init_psymbol_list): Add comment.
11982 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
11983 init_psymbol_list.
11984 * dbxread.c (dbx_symfile_read): Unconditionally call
11985 init_psymbol_list.
11986
75aedd27
TT
119872019-01-10 Tom Tromey <tom@tromey.com>
11988
11989 * xcoffread.c (scan_xcoff_symtab): Update.
11990 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
11991 "where".
11992 * mdebugread.c (parse_partial_symbols)
11993 (handle_psymbol_enumerators): Update.
11994 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
11995 * dbxread.c (read_dbx_symtab): Update.
11996 * psympriv.h (psymbol_placement): New enum.
11997 (add_psymbol_to_list): Update.
11998
939652a5
TT
119992019-01-10 Tom Tromey <tom@tromey.com>
12000
12001 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12002 static_psymbols parameters.
12003 (scan_xcoff_symtab): Update.
12004 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12005 static_psymbols parameters.
12006 * psympriv.h (start_psymtab_common): Update.
12007 * mdebugread.c (parse_partial_symbols): Update.
12008 * dwarf2read.c (create_partial_symtab): Update.
12009 * dbxread.c (read_dbx_symtab): Update.
12010 (start_psymtab): Remove global_psymbols and static_psymbols
12011 parameters.
12012
baa62830
TT
120132019-01-10 Tom Tromey <tom@tromey.com>
12014
12015 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12016 * psymtab.c (allocate_psymtab): Add comment.
12017 * psympriv.h (allocate_psymtab): Add comment.
12018 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12019 initializations.
12020 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12021
0e8f53ba
TT
120222019-01-10 Tom Tromey <tom@tromey.com>
12023
12024 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12025 Don't declare.
12026 * mipsread.c: Include mdebugread.h.
12027 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12028 Declare.
12029 * elfread.c: Include mdebugread.h.
12030
b22a7c6a
TT
120312019-01-09 Tom Tromey <tom@tromey.com>
12032
12033 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12034 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12035 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12036 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12037 (psym_lookup_symbol, psym_find_last_source_symtab)
12038 (psym_forget_cached_source_info, psym_print_stats)
12039 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12040 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12041 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12042 (psym_find_compunit_symtab_by_address)
12043 (maintenance_print_psymbols, maintenance_info_psymtabs)
12044 (maintenance_check_psymtabs): Use ranged for.
12045 * psymtab.h (class objfile_psymtabs): New.
12046 (require_partial_symbols): Return objfile_psymtabs.
12047 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12048
3b9d3ac2
TT
120492019-01-09 Tom Tromey <tom@tromey.com>
12050
12051 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12052 (find_pc_mapped_section, list_overlays_command)
12053 (map_overlay_command, unmap_overlay_command)
12054 (simple_overlay_update): Use all_objfiles.
12055 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12056 * printcmd.c (info_symbol_command): Use all_objfiles.
12057 * objfiles.h (ALL_OBJSECTIONS): Remove.
12058 * maint.c (maintenance_translate_address): Use all_objfiles.
12059 * gcore.c (gcore_create_callback): Use all_objfiles.
12060 (objfile_find_memory_regions): Likewise.
12061
8b31193a
TT
120622019-01-09 Tom Tromey <tom@tromey.com>
12063
12064 * symtab.c (find_line_symtab, info_sources_command)
12065 (make_source_files_completion_list): Use objfile_compunits.
12066 * source.c (select_source_symtab): Use objfile_compunits.
12067 * objfiles.h (struct objfile): Update comment.
12068 (ALL_OBJFILES): Remove.
12069 (ALL_FILETABS): Remove.
12070 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12071 objfile_compunits.
12072
d5da8b3c
TT
120732019-01-09 Tom Tromey <tom@tromey.com>
12074
12075 * symmisc.c (print_objfile_statistics, dump_objfile)
12076 (maintenance_print_symbols): Use compunit_filetabs.
12077 * source.c (forget_cached_source_info_for_objfile): Use
12078 compunit_filetabs.
12079 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12080 (ALL_FILETABS): Use compunit_filetabs.
12081 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12082 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12083
5accd1a0
TT
120842019-01-09 Tom Tromey <tom@tromey.com>
12085
12086 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12087 (compunit_filetabs): New.
12088 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12089 compunit_filetabs.
12090 (info_sources_command, make_source_files_completion_list): Remove
12091 declaration.
12092 * symmisc.c (print_objfile_statistics, dump_objfile)
12093 (maintenance_print_symbols): Remove declaration.
12094 (maintenance_info_symtabs): Use compunit_filetabs.
12095 (maintenance_info_line_tables): Likewise.
12096 * source.c (select_source_symtab): Change local variable name.
12097 (forget_cached_source_info_for_objfile): Remove declaration.
12098 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12099 * objfiles.c (objfile_relocate1): Remove declaration.
12100 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12101 declaration.
12102 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12103 * coffread.c (coff_symtab_read): Remove declaration.
12104 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12105 compunit_filetabs.
12106
d8aeb77f
TT
121072019-01-09 Tom Tromey <tom@tromey.com>
12108
12109 * symtab.c (lookup_objfile_from_block)
12110 (find_pc_sect_compunit_symtab, search_symbols)
12111 (default_collect_symbol_completion_matches_break_on): Use
12112 objfile_compunits.
12113 * objfiles.h (ALL_COMPUNITS): Remove.
12114 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12115 * cp-support.c (add_symbol_overload_list_qualified): Use
12116 objfile_compunits.
12117 * ada-lang.c (ada_collect_symbol_completion_matches)
12118 (ada_add_global_exceptions): Use objfile_compunits.
12119
592553c4
TT
121202019-01-09 Tom Tromey <tom@tromey.com>
12121
12122 * source.c (select_source_symtab)
12123 (forget_cached_source_info_for_objfile): Remove declaration.
12124 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12125 declaration.
12126 * maint.c (count_symtabs_and_blocks): Remove declaration.
12127 * cp-support.c (add_symbol_overload_list_qualified): Remove
12128 declaration.
12129 * coffread.c (coff_symtab_read): Remove declaration.
12130 * symtab.c (lookup_symbol_in_objfile_symtabs)
12131 (basic_lookup_transparent_type_1): Use objfile_compunits.
12132 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12133 (info_sources_command, search_symbols)
12134 (default_collect_symbol_completion_matches_break_on)
12135 (make_source_files_completion_list): Remove declaration.
12136 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12137 (ada_collect_symbol_completion_matches)
12138 (ada_add_global_exceptions): Remove declaration.
12139 * linespec.c (iterate_over_all_matching_symtabs): Use
12140 objfile_compunits.
12141 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12142 (class objfile_compunits): New.
12143 (ALL_COMPUNITS): Use objfile_compunits.
12144 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12145 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12146 objfile_compunits.
12147 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12148
5325b9bf
TT
121492019-01-09 Tom Tromey <tom@tromey.com>
12150
12151 * symtab.c (search_symbols)
12152 (default_collect_symbol_completion_matches_break_on): Use
12153 objfile_msymbols.
12154 * ada-lang.c (ada_lookup_simple_minsym)
12155 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12156 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12157 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12158 objfile_msymbols.
12159 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12160 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12161 * objc-lang.c (find_methods): Use objfile_msymbols.
12162 (info_selectors_command, info_classes_command): Likewise.
12163 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12164 * objfiles.h (class objfile_msymbols): New.
12165 (ALL_OBJFILE_MSYMBOLS): Remove.
12166 (ALL_MSYMBOLS): Remove.
12167
cac85af2
TT
121682019-01-09 Tom Tromey <tom@tromey.com>
12169
12170 * common/next-iterator.h (next_adapter): Add Iterator template
12171 parameter.
12172 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12173 (class all_objfiles_safe): New.
12174 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12175 * objfiles.c (put_objfile_before): Update comment.
12176 (add_separate_debug_objfile): Likewise.
12177 (free_all_objfiles): Use all_objfiles_safe.
12178 (objfile_purge_solibs): Likewise.
12179
aed57c53
TT
121802019-01-09 Tom Tromey <tom@tromey.com>
12181
12182 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12183 (expand_symtab_containing_pc, lookup_static_symbol)
12184 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12185 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12186 all_objfiles.
12187 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12188 * breakpoint.c (create_overlay_event_breakpoint)
12189 (create_longjmp_master_breakpoint)
12190 (create_std_terminate_master_breakpoint)
12191 (create_exception_master_breakpoint): Use all_objfiles.
12192 * linux-thread-db.c (try_thread_db_load_from_pdir)
12193 (has_libpthread): Use all_objfiles.
12194 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12195 * linespec.c (iterate_over_all_matching_symtabs)
12196 (search_minsyms_for_name): Use all_objfiles.
12197 * maint.c (maintenance_info_sections): Use all_objfiles.
12198 * main.c (captured_main_1): Use all_objfiles.
12199 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12200 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12201 * guile/scm-pretty-print.c
12202 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12203 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12204 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12205 (maintenance_print_msymbols): Use all_objfiles.
12206 * source.c (select_source_symtab): Use all_objfiles.
12207 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12208 * symfile.c (remove_symbol_file_command)
12209 (expand_symtabs_matching, map_symbol_filenames): Use
12210 all_objfiles.
12211 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12212 all_objfiles.
12213 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12214 * objc-lang.c (find_methods): Use all_objfiles.
12215 * objfiles.c (have_partial_symbols, have_full_symbols)
12216 (have_minimal_symbols, qsort_cmp)
12217 (default_iterate_over_objfiles_in_search_order): Use
12218 all_objfiles.
12219 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12220 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12221 (maintenance_check_psymtabs): Use all_objfiles.
12222 (ALL_PSYMTABS): Remove.
12223 * compile/compile-object-run.c (do_module_cleanup): Use
12224 all_objfiles.
12225 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12226 * cp-support.c (add_symbol_overload_list_qualified): Use
12227 all_objfiles.
12228 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12229 Use all_objfiles.
12230 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12231 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12232 all_objfiles.
12233 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12234 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12235 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12236 Uses all_objfiles.
12237 * solib.c (solib_read_symbols): Use all_objfiles
12238
99d89cde
TT
122392019-01-09 Tom Tromey <tom@tromey.com>
12240
12241 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12242 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12243 all_objfiles.
12244 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12245 * symmisc.c (print_symbol_bcache_statistics)
12246 (print_objfile_statistics, maintenance_print_objfiles)
12247 (maintenance_info_symtabs, maintenance_check_symtabs)
12248 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12249 all_objfiles.
12250 * source.c (forget_cached_source_info): Use all_objfiles.
12251 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12252 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12253 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12254 * objfiles.c (update_section_map): Use all_objfiles.
12255 (shared_objfile_contains_address_p): Likewise.
12256 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12257 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12258
21708325
TT
122592019-01-09 Tom Tromey <tom@tromey.com>
12260
12261 * common/next-iterator.h: New file.
12262 * objfiles.h (class all_objfiles): New.
12263 (struct objfile_iterator): New.
12264
669e09f6
PW
122652019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12266
12267 * NEWS: Move the description of the changed "frame", "select-frame",
12268 and "info frame" commands to the Changed commands section.
12269
041be526
SM
122702019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12271
12272 * gdbtypes.c (check_stub_method_group): Remove handling of old
12273 mangling schemes.
12274 * linespec.c (find_methods): Likewise.
12275 * stabsread.c (read_member_functions): Likewise.
12276 * valops.c (search_struct_method): Likewise.
12277 (value_struct_elt_for_reference): Likewise.
12278 * NEWS: Mention this change.
12279
0e2a2133
AB
122802019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12281
12282 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12283 print_source_lines.
12284 * source.c (print_source_lines_base): Update line number check.
12285 (print_source_lines): New function.
12286 (source_lines_range::source_lines_range): New function.
12287 * source.h (class source_lines_range): New class.
12288 (print_source_lines): New declaration.
12289
1055a3b4
PW
122902019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12291
12292 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12293
cfeadda5
TT
122942019-01-08 Tom Tromey <tom@tromey.com>
12295 Simon Marchi <simon.marchi@ericsson.com>
12296
12297 PR gdb/24060
12298 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12299 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12300 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12301 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12302 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12303 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12304
583068ca
AB
123052019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12306
12307 * source.c (select_source_symtab): Move header comment to
12308 declaration in source.h.
12309 (forget_cached_source_info_for_objfile): Likewise.
12310 (forget_cached_source_info): Likewise.
12311 (identify_source_line): Likewise.
12312 * source.h (identify_source_line): Move declaration from symtab.h
12313 and add comment from source.c
12314 (print_source_lines): Likewise.
12315 (forget_cached_source_info_for_objfile): Likewise.
12316 (forget_cached_source_info): Likewise.
12317 (select_source_symtab): Likewise.
12318 (enum print_source_lines_flag): Move definition from symtab.h.
12319 * symtab.h (identify_source_line): Move declaration to source.h.
12320 (print_source_lines): Likewise.
12321 (forget_cached_source_info_for_objfile): Likewise.
12322 (forget_cached_source_info): Likewise.
12323 (select_source_symtab): Likewise.
12324 (enum print_source_lines_flag): Move definition to source.h.
12325 * tui/tui-hooks.c: Add 'source.h' include.
12326
ec98a4ad
AB
123272019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12328
12329 * source.c (print_source_lines_base): Handle requests to print
12330 reverse line number sequences, and guard against empty lines
12331 string.
12332
62ea19c1
AB
123332019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12334
12335 * source.c (print_source_lines_base): Fix skip of '\r' if next
12336 character is '\n'.
12337
9d30e1fd
TT
123382019-01-06 Tom Tromey <tom@tromey.com>
12339
12340 * c-exp.y (struct c_parse_state) <macro_original_text,
12341 expansion_obstack>: New member.
12342 (macro_original_text, expansion_obstack): Remove globals.
12343 (scan_macro_expansion, scanning_macro_expansion)
12344 (finished_macro_expansion): Update.
12345 (scan_macro_cleanup): Remove.
12346 (yylex, c_parse): Update.
12347
c65bac38
TT
123482019-01-06 Tom Tromey <tom@tromey.com>
12349
12350 * c-exp.y (struct c_parse_state) <strings>: New member.
12351 (operator_stoken): Update.
12352
02e12e38
TT
123532019-01-06 Tom Tromey <tom@tromey.com>
12354
12355 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12356 (union type_stack_elt) <typelist_val>: Now a pointer to
12357 std::vector.
12358 (type_stack_cleanup): Don't declare.
12359 (push_typelist): Update.
12360 * parse.c (pop_typelist): Return a std::vector.
12361 (push_typelist): Take a std::vector.
12362 (follow_types): Update. Do not free args.
12363 (type_stack_cleanup): Remove.
12364 * c-exp.y (struct c_parse_state): New.
12365 (cpstate): New global.
12366 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12367 (nonempty_typelist): Update.
12368 (func_mod): Create a new vector.
12369 (c_parse): Create a c_parse_state.
12370 (check_parameter_typelist): Do not delete params.
12371 (function_method): Update. Do not delete type_list.
12372
f097f5ad
TT
123732019-01-06 Tom Tromey <tom@tromey.com>
12374
12375 PR gdb/28155:
12376 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12377 check_typedef.
12378 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12379 (print_return_value): Likewise.
12380
d2adf9f1
TT
123812019-01-05 Tom Tromey <tom@tromey.com>
12382
12383 * contrib/cleanup_check.py: Remove.
12384 * contrib/gcc-with-excheck: Remove.
12385 * contrib/exsummary.py: Remove.
12386 * contrib/excheck.py: Remove.
12387
2eab46b1
JB
123882019-01-05 Joel Brobecker <brobecker@adacore.com>
12389
12390 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12391 NULL. Initialize tpprev to NULL instead of assigning it
12392 to NULL on the next statement.
12393 * windows-nat.c (windows_delete_thread): Remove check for
12394 main_thread_id before printing thread exit notifications.
12395 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12396 Remove thread ID check against main_thread_id.
12397 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12398 windows_delete_thread.
12399 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12400
48c5e7e2
TT
124012019-01-04 Tom Tromey <tom@tromey.com>
12402
12403 * compile/compile.c (_initialize_compile): Use upper case for
12404 metasyntactic variables.
12405 * symmisc.c (_initialize_symmisc): Use upper case for
12406 metasyntactic variables.
12407 * psymtab.c (_initialize_psymtab): Use upper case for
12408 metasyntactic variables.
12409 * demangle.c (demangle_command): Use upper case for metasyntactic
12410 variables.
12411 (_initialize_demangler): Likewise.
12412 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12413 variables.
12414
986041cd
TT
124152019-01-03 Tom Tromey <tom@tromey.com>
12416
12417 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12418
7c711119
TT
124192019-01-03 Tom Tromey <tom@tromey.com>
12420
12421 * python/py-symtab.c (salpy_str): Update.
12422 (struct salpy_sal_object) <symtab>: Now a PyObject.
12423 (salpy_dealloc): Update.
12424 (del_objfile_sal): Use gdbpy_ref.
12425
1b20edf0
TT
124262019-01-03 Tom Tromey <tom@tromey.com>
12427
12428 * python/py-type.c (convert_field): Use new_reference. Return
12429 gdbpy_ref.
12430 (make_fielditem): Return gdbpy_ref.
12431 (typy_fields): Update.
12432 (typy_getitem): Update.
12433 (field_name): Return gdbpy_ref. Use new_reference.
12434 (typy_iterator_iternext): Update.
12435
ea41325b
TT
124362019-01-03 Tom Tromey <tom@tromey.com>
12437
12438 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12439
2a3c71d6
TT
124402019-01-03 Tom Tromey <tom@tromey.com>
12441
12442 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12443 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12444 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12445 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12446 (pspy_set_type_printers): Likewise.
12447 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12448 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12449 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12450 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12451 (objfpy_set_type_printers): Likewise.
12452
5c329e6a
TT
124532019-01-03 Tom Tromey <tom@tromey.com>
12454
12455 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12456 (gdbpy_print_stack): Use gdbpy_err_fetch.
12457 * python/python-internal.h (class gdbpy_err_fetch): New class.
12458 (class gdbpy_enter) <m_error_type, m_error_value,
12459 m_error_traceback>: Remove.
12460 <m_error>: New member.
12461 (gdbpy_exception_to_string): Don't declare.
12462 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12463 * python/py-value.c (convert_value_from_python): Use
12464 gdbpy_err_fetch.
12465 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12466 gdbpy_exception_to_string.
12467 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12468 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12469 gdbpy_err_fetch.
12470
169bb27b
AB
124712019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12472
12473 * linux-nat.c (delete_lwp_cleanup): Delete.
12474 (struct lwp_deleter): New struct.
12475 (lwp_info_up): New typedef.
12476 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12477 lwp_info_up.
12478
a07c8880
AB
124792019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12480
12481 * linux-fork.c (class scoped_switch_fork_info): New class.
12482 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12483
26089c49
AB
124842019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12485
12486 * valops.c (find_overload_match): Remove use of null_cleanup, and
12487 calls to do_cleanups.
12488
06d3e5b0
AB
124892019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12490
12491 * compile/compile-cplus-types.c
12492 (compile_cplus_instance::decl_name): Handle changes to
12493 cp_func_name.
12494 * cp-support.c (cp_func_name): Update header comment, update
12495 return type.
12496 * cp-support.h (cp_func_name): Update return type in declaration.
12497 * valops.c (find_overload_match): Move temp_func local to top
12498 level of function and change its type. Use temp_func to hold and
12499 delete temporary string obtained from cp_func_name.
12500
66644cd3
AB
125012019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12502
12503 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12504 gdb::char_vector, remove cleanup, and update uses of `msg`.
12505
592d8c0a
JW
125062019-01-03 Jim Wilson <jimw@sifive.com>
12507
12508 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12509
c55d06ec
TT
125102019-01-02 Tom Tromey <tom@tromey.com>
12511
12512 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12513 (tdesc_parse_xml): Remove cleanups.
12514 * target-descriptions.h (make_cleanup_free_target_description):
12515 Don't declare.
12516 (target_desc_deleter): New struct.
12517 (target_desc_up): New typedef.
12518 * target-descriptions.c (target_desc_deleter::operator()): Rename
12519 from free_target_description.
12520 (make_cleanup_free_target_description): Remove.
12521
3a6ae42d
TT
125222019-01-02 Tom Tromey <tom@tromey.com>
12523
12524 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12525 constructor, destructor.
12526 (linespec_parser): Remove typedef.
12527 (~linespec_parser): Rename from linespec_parser_delete.
12528 (linespec_lex_to_end, linespec_complete_label)
12529 (linespec_complete): Update.
12530 (decode_line_full): Remove cleanups.
12531 (decode_line_1): Update.
12532
61fd3e73
TT
125332019-01-02 Tom Tromey <tom@tromey.com>
12534
12535 * python/python-internal.h (inferior_to_inferior_object): Change
12536 return type.
12537 * python/py-exitedevent.c (create_exited_event_object): Update.
12538 * python/py-inferior.c (inferior_to_inferior_object): Return
12539 gdbpy_ref.
12540 (python_new_inferior, python_inferior_deleted)
12541 (thread_to_thread_object, delete_thread_object)
12542 (build_inferior_list, gdbpy_selected_inferior): Update.
12543 * python/py-infthread.c (create_thread_object): Update. Also fail
12544 if inferior_to_inferior_object fails.
12545
d20172fc
SM
125462019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12547
12548 * inferior.h (class inferior) <displaced_step_state>: New field.
12549 * infrun.h (struct displaced_step_state): Move here from
12550 infrun.c. Initialize fields, add constructor.
12551 <inf>: Remove field.
12552 <reset>: New method.
12553 * infrun.c (struct displaced_step_inferior_state): Move to
12554 infrun.h.
12555 (displaced_step_inferior_states): Remove.
12556 (get_displaced_stepping_state): Adust.
12557 (displaced_step_in_progress_any_inferior): Adjust.
12558 (displaced_step_in_progress_thread): Adjust.
12559 (displaced_step_in_progress): Adjust.
12560 (add_displaced_stepping_state): Remove.
12561 (get_displaced_step_closure_by_addr): Adjust.
12562 (remove_displaced_stepping_state): Remove.
12563 (infrun_inferior_exit): Call displaced_step_state.reset.
12564 (use_displaced_stepping): Don't check for NULL.
12565 (displaced_step_prepare_throw): Call
12566 get_displaced_stepping_state.
12567 (displaced_step_fixup): Don't check for NULL.
12568 (prepare_for_detach): Don't check for NULL.
12569
e3319240
PW
125702019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12571
12572 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12573 in case of call that did not complete.
12574
5d36dfb9
AU
125752019-01-02 Andrey Utkin <autkin@undo.io>
12576
12577 * symfile.c (find_separate_debug_file): Fix search of debug files for
12578 remote debuggee.
12579
8833fbf0
TT
125802019-01-02 Tom Tromey <tom@tromey.com>
12581
12582 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12583 indentation.
12584 * python/py-frame.c (frapy_older): Remove cast.
12585 (frapy_newer): Likewise.
12586 * python/py-breakpoint.c (local_setattro): Remove cast.
12587 * python/py-arch.c (archpy_name): Remove local variable.
12588 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12589
4ada3dfd
JB
125902019-01-02 Joel Brobecker <brobecker@adacore.com>
12591
12592 * unittests/basic_string_view/element_access/char/empty.cc:
12593 Fix year range in copyright header.
12594
113b7b81
AB
125952019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12596
12597 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12598 Delete.
12599 <operator==>: Update with for removed field.
12600 <hash>: Likewise.
12601 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12602 <isa_features>: ...this.
12603 <abi_features>: New field.
12604 (riscv_isa_flen): Update comment.
12605 (riscv_abi_xlen): New declaration.
12606 (riscv_abi_flen): New declaration.
12607 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12608 isa_features.
12609 (riscv_abi_xlen): New function.
12610 (riscv_isa_flen): Update to get answer from isa_features.
12611 (riscv_abi_flen): New function.
12612 (riscv_has_fp_abi): Update to get answer from abi_features.
12613 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12614 xlen and flen.
12615 (riscv_call_info) <xlen, flen>: Update comment.
12616 (riscv_call_arg_struct): Remove invalid assertions
12617 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12618 is removed.
12619 (riscv_gdbarch_init): Gather isa features and abi features
12620 separately, ensure both match on the gdbarch when reusing an old
12621 gdbarch. Relax an error check to allow 32-bit abi float to run on
12622 a target with 64-bit float hardware.
12623
b18ca514
PW
126242019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12625
12626 * source.c (search_command_helper): Stop reverse search
12627 when line 1 has been searched.
12628
ec70d8db
PW
126292019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12630
12631 * record-full.c (record_full_base_target::close): Rewrite
12632 record_full_core_buf_list free logic.
12633
5b38f9c1
PW
126342019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12635
12636 * break-catch-syscall.c (print_one_catch_syscall): xfree
12637 the last text.
12638
66d91b39
JB
126392019-01-01 Joel Brobecker <brobecker@adacore.com>
12640
12641 * top.c (print_gdb_version): Update Copyright year in version
12642 message.
12643
42a4f53d
JB
126442019-01-01 Joel Brobecker <brobecker@adacore.com>
12645
12646 Update copyright year range in all GDB files.
12647
7e955d83 126482019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 12649
5bbd631d 12650 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 12651
5bbd631d 12652For older changes see ChangeLog-2018.
c906108c
SS
12653\f
12654Local Variables:
12655mode: change-log
12656left-margin: 8
12657fill-column: 74
12658version-control: never
57da7796 12659coding: utf-8
c906108c 12660End:
5bbd631d 12661
This page took 4.153861 seconds and 4 git commands to generate.