]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
bfd_section_* macros
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2019-09-18 Alan Modra <amodra@gmail.com>
2
3 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
5 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
6 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
7 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
8 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
9 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
10 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
11 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
12 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
13 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
14 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
15 * solib-spu.c, * solib-svr4.c, * solib-target.c,
16 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
17 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
18 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
19 * mi/mi-interp.c: Update throughout for bfd section macro and
20 function changes.
21 * gcore (gcore_create_callback): Use bfd_set_section_lma.
22 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
23
24 2019-09-18 Tom Tromey <tom@tromey.com>
25
26 * NEWS: Add entry.
27 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
28 call rl_initialize.
29 (tui_enable): Do not call rl_initialize.
30
31 2019-09-18 Christian Groessler <chris@groessler.org>
32
33 * alpha-linux-nat.c: Include gdbarch.h.
34
35 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
36
37 * ui-file.c: Include cli/cli-style.h.
38 (term_cli_styling): Remove cli_styling declaration.
39
40 2019-09-18 Alan Modra <amodra@gmail.com>
41
42 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
43 to bfd_asymbol_section.
44
45 2019-09-18 Alan Modra <amodra@gmail.com>
46
47 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
48 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
49 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
50
51 2019-09-18 Alan Modra <amodra@gmail.com>
52
53 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
54 * spu-linux-nat.c (spu_bfd_open): Likewise.
55
56 2019-09-18 Christian Biesinger <cbiesinger@google.com>
57
58 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
59 to bool to match definition in dwarf2read.c.
60
61 2019-09-17 Christian Biesinger <cbiesinger@google.com>
62
63 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
64 (print_signatures): Likewise.
65 (trust_pad_over_xvs): Likewise.
66 * arch/aarch64-insn.c (aarch64_debug): Likewise.
67 * arch/aarch64-insn.h (aarch64_debug): Likewise.
68 * arm-linux-nat.c (arm_apcs_32): Likewise.
69 * arm-linux-tdep.c (arm_apcs_32): Likewise.
70 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
71 * arm-tdep.c (arm_debug): Likewise.
72 (arm_apcs_32): Likewise.
73 * auto-load.c (debug_auto_load): Likewise.
74 (auto_load_gdb_scripts): Likewise.
75 (global_auto_load): Likewise.
76 (auto_load_local_gdbinit): Likewise.
77 (auto_load_local_gdbinit_loaded): Likewise.
78 * auto-load.h (global_auto_load): Likewise.
79 (auto_load_local_gdbinit): Likewise.
80 (auto_load_local_gdbinit_loaded): Likewise.
81 * breakpoint.c (disconnected_dprintf): Likewise.
82 (breakpoint_proceeded): Likewise.
83 (automatic_hardware_breakpoints): Likewise.
84 (always_inserted_mode): Likewise.
85 (target_exact_watchpoints): Likewise.
86 (_initialize_breakpoint): Update.
87 * breakpoint.h (target_exact_watchpoints): Change to bool.
88 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
89 * cli/cli-cmds.c (trace_commands): Likewise.
90 * cli/cli-cmds.h (trace_commands): Likewise.
91 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
92 to bool*.
93 * cli/cli-logging.c (logging_overwrite): Change to bool.
94 (logging_redirect): Likewise.
95 (debug_redirect): Likewise.
96 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
97 (struct boolean_option_def) <get_var_address_cb_>: Change return type
98 to bool.
99 <boolean_option_def>: Update.
100 (struct flag_option_def): Change default type of Context to bool
101 from int.
102 <flag_option_def>: Change return type of var_address_cb_ to bool*.
103 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
104 (get_setshow_command_value_string): Likewise.
105 * cli/cli-style.c (cli_styling): Change to bool.
106 (source_styling): Likewise.
107 * cli/cli-style.h (source_styling): Likewise.
108 (cli_styling): Likewise.
109 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
110 to bool.
111 * command.h (var_types): Update comment.
112 (add_setshow_boolean_cmd): Change int* var argument to bool*.
113 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
114 bool.
115 (debug_compile_cplus_scopes): Likewise.
116 * compile/compile-internal.h (compile_debug): Likewise.
117 * compile/compile.c (compile_debug): Likewise.
118 (struct compile_options) <raw>: Likewise.
119 * cp-support.c (catch_demangler_crashes): Likewise.
120 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
121 (usr_cmd_cris_dwarf2_cfi): Likewise.
122 * csky-tdep.c (csky_debug): Likewise.
123 * darwin-nat.c (enable_mach_exceptions): Likewise.
124 * dcache.c (dcache_enabled_p): Likewise.
125 * defs.h (info_verbose): Likewise.
126 * demangle.c (demangle): Likewise.
127 (asm_demangle): Likewise.
128 * dwarf-index-cache.c (debug_index_cache): Likewise.
129 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
130 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
131 * dwarf2read.c (check_physname): Likewise.
132 (use_deprecated_index_sections): Likewise.
133 (dwarf_always_disassemble): Likewise.
134 * eval.c (overload_resolution): Likewise.
135 * event-top.c (set_editing_cmd_var): Likewise.
136 (exec_done_display_p): Likewise.
137 * event-top.h (set_editing_cmd_var): Likewise.
138 (exec_done_display_p): Likewise.
139 * exec.c (write_files): Likewise.
140 * fbsd-nat.c (debug_fbsd_lwp): Likewise
141 (debug_fbsd_nat): Likewise.
142 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
143 Likewise.
144 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
145 <backtrace_past_entry> Likewise.
146 * gdb-demangle.h (demangle): Likewise.
147 (asm_demangle): Likewise.
148 * gdb_bfd.c (bfd_sharing): Likewise.
149 * gdbcore.h (write_files): Likewise.
150 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
151 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
152 * gdbthread.h (print_thread_events): Likewise.
153 * gdbtypes.c (opaque_type_resolution): Likewise.
154 (strict_type_checking): Likewise.
155 * gnu-nat.c (gnu_debug_flag): Likewise.
156 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
157 * guile/scm-param.c (pascm_variable): Add boolval.
158 (add_setshow_generic): Update.
159 (pascm_param_value): Update.
160 (pascm_set_param_value_x): Update.
161 * hppa-tdep.c (hppa_debug): Change to bool..
162 * infcall.c (may_call_functions_p): Likewise.
163 (coerce_float_to_double_p): Likewise.
164 (unwind_on_signal_p): Likewise.
165 (unwind_on_terminating_exception_p): Likewise.
166 * infcmd.c (startup_with_shell): Likewise.
167 * inferior.c (print_inferior_events): Likewise.
168 * inferior.h (startup_with_shell): Likewise.
169 (print_inferior_events): Likewise.
170 * infrun.c (step_stop_if_no_debug): Likewise.
171 (detach_fork): Likewise.
172 (debug_displaced): Likewise.
173 (disable_randomization): Likewise.
174 (non_stop): Likewise.
175 (non_stop_1): Likewise.
176 (observer_mode): Likewise.
177 (observer_mode_1): Likewise.
178 (set_observer_mode): Update.
179 (sched_multi): Change to bool.
180 * infrun.h (debug_displaced): Likewise.
181 (sched_multi): Likewise.
182 (step_stop_if_no_debug): Likewise.
183 (non_stop): Likewise.
184 (disable_randomization): Likewise.
185 * linux-tdep.c (use_coredump_filter): Likewise.
186 (dump_excluded_mappings): Likewise.
187 * linux-thread-db.c (auto_load_thread_db): Likewise.
188 (check_thread_db_on_load): Likewise.
189 * main.c (captured_main_1): Update.
190 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
191 xx2_opt, boolean_opt>: Change to bool.
192 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
193 * maint.c (maintenance_profile_p): Likewise.
194 (per_command_time): Likewise.
195 (per_command_space): Likewise.
196 (per_command_symtab): Likewise.
197 * memattr.c (inaccessible_by_default): Likewise.
198 * mi/mi-main.c (mi_async): Likewise.
199 (mi_async_1): Likewise.
200 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
201 * nat/fork-inferior.h (startup_with_shell): Likewise.
202 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
203 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
204 * nios2-tdep.c (nios2_debug): Likewise.
205 * or1k-tdep.c (or1k_debug): Likewise.
206 * parse.c (parser_debug): Likewise.
207 * parser-defs.h (parser_debug): Likewise.
208 * printcmd.c (print_symbol_filename): Likewise.
209 * proc-api.c (procfs_trace): Likewise.
210 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
211 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
212 (set_parameter_value): Update.
213 (add_setshow_generic): Update.
214 * python/py-value.c (copy_py_bool_obj): Change argument from int*
215 to bool*.
216 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
217 int*.
218 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
219 * record-btrace.c (record_btrace_target::store_registers): Update.
220 * record-full.c (record_full_memory_query): Change to bool.
221 (record_full_stop_at_limit): Likewise.
222 * record-full.h (record_full_memory_query): Likewise.
223 * remote-notif.c (notif_debug): Likewise.
224 * remote-notif.h (notif_debug): Likewise.
225 * remote.c (use_range_stepping): Likewise.
226 (interrupt_on_connect): Likewise.
227 (remote_break): Likewise.
228 * ser-tcp.c (tcp_auto_retry): Likewise.
229 * ser-unix.c (serial_hwflow): Likewise.
230 * skip.c (debug_skip): Likewise.
231 * solib-aix.c (solib_aix_debug): Likewise.
232 * spu-tdep.c (spu_stop_on_load_p): Likewise.
233 (spu_auto_flush_cache_p): Likewise.
234 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
235 Likewise.
236 (struct info_print_options) <quiet>: Likewise.
237 * symfile-debug.c (debug_symfile): Likewise.
238 * symfile.c (auto_solib_add): Likewise.
239 (separate_debug_file_debug): Likewise.
240 * symfile.h (auto_solib_add): Likewise.
241 (separate_debug_file_debug): Likewise.
242 * symtab.c (basenames_may_differ): Likewise.
243 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
244 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
245 (struct info_types_options) <quiet>: Likewise.
246 * symtab.h (demangle): Likewise.
247 (basenames_may_differ): Likewise.
248 * target-dcache.c (stack_cache_enabled_1): Likewise.
249 (code_cache_enabled_1): Likewise.
250 * target.c (trust_readonly): Likewise.
251 (may_write_registers): Likewise.
252 (may_write_memory): Likewise.
253 (may_insert_breakpoints): Likewise.
254 (may_insert_tracepoints): Likewise.
255 (may_insert_fast_tracepoints): Likewise.
256 (may_stop): Likewise.
257 (auto_connect_native_target): Likewise.
258 (target_stop_and_wait): Update.
259 (target_async_permitted): Change to bool.
260 (target_async_permitted_1): Likewise.
261 (may_write_registers_1): Likewise.
262 (may_write_memory_1): Likewise.
263 (may_insert_breakpoints_1): Likewise.
264 (may_insert_tracepoints_1): Likewise.
265 (may_insert_fast_tracepoints_1): Likewise.
266 (may_stop_1): Likewise.
267 * target.h (target_async_permitted): Likewise.
268 (may_write_registers): Likewise.
269 (may_write_memory): Likewise.
270 (may_insert_breakpoints): Likewise.
271 (may_insert_tracepoints): Likewise.
272 (may_insert_fast_tracepoints): Likewise.
273 (may_stop): Likewise.
274 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
275 (make_thread_apply_all_options_def_group): Change argument from int*
276 to bool*.
277 (thread_apply_all_command): Update.
278 (print_thread_events): Change to bool.
279 * top.c (confirm): Likewise.
280 (command_editing_p): Likewise.
281 (history_expansion_p): Likewise.
282 (write_history_p): Likewise.
283 (info_verbose): Likewise.
284 * top.h (confirm): Likewise.
285 (history_expansion_p): Likewise.
286 * tracepoint.c (disconnected_tracing): Likewise.
287 (circular_trace_buffer): Likewise.
288 * typeprint.c (print_methods): Likewise.
289 (print_typedefs): Likewise.
290 * utils.c (debug_timestamp): Likewise.
291 (sevenbit_strings): Likewise.
292 (pagination_enabled): Likewise.
293 * utils.h (sevenbit_strings): Likewise.
294 (pagination_enabled): Likewise.
295 * valops.c (overload_resolution): Likewise.
296 * valprint.h (struct value_print_options) <prettyformat_arrays,
297 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
298 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
299 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
300 Likewise.
301 * windows-nat.c (new_console): Likewise.
302 (cygwin_exceptions): Likewise.
303 (new_group): Likewise.
304 (debug_exec): Likewise.
305 (debug_events): Likewise.
306 (debug_memory): Likewise.
307 (debug_exceptions): Likewise.
308 (useshell): Likewise.
309 * windows-tdep.c (maint_display_all_tib): Likewise.
310 * xml-support.c (debug_xml): Likewise.
311
312 2019-09-17 Mike Gulick <mgulick@mathworks.com>
313
314 * source.c (prepare_path_for_appending): New function.
315 (openp): Make use of new function.
316 (find_and_open_source): Search for the compilation directory and
317 source file as a relative path beneath the directory search path.
318
319 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
320
321 * source-cache.c (source_cache::get_line_charpos): Catch
322 exceptions and return false, this matches the behaviour documented
323 in the header file.
324
325 2019-09-17 Joel Brobecker <brobecker@adacore.com>
326
327 * ada-tasks.c (info_task): Remove quoting of the task's name.
328
329 2019-09-16 Christian Biesinger <cbiesinger@google.com>
330
331 * symfile.c (auto_solib_add): Replace comment with a reference
332 to the header file.
333
334 2019-09-14 Christian Biesinger <cbiesinger@google.com>
335
336 * NEWS: Mention that gdb can now be compiled with Python 3
337 on Windows.
338
339 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
340
341 * maint.c (maint_print_section_data::maint_print_section_data):
342 Force use of 'float log10 (float)' by casting the argument to
343 float.
344
345 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
346
347 * maint.c: Add 'cmath' include.
348 (struct maint_print_section_data): New structure.
349 (print_section_index): New function.
350 (print_bfd_section_info): Add header comment, small whitespace
351 cleanup, and update to call new print_section_index function.
352 (print_objfile_section_info): Likewise.
353 (maint_obj_section_from_bfd_section): New function.
354 (print_bfd_section_info_maybe_relocated): New function.
355 (maintenance_info_sections): Add header comment, always use
356 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
357
358 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
359
360 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
361 inner scope, add check that the objfile has psymtabs before
362 checking psymtabs_addrmap.
363 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
364
365 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
366
367 * NEWS: Announce that Ada task names are now shown at more places,
368 and between quotes (except in info task output).
369 * gdb/ada-tasks.c (task_to_str): New function.
370 (display_current_task_id): Call task_to_str.
371 (task_command_1): Likewise.
372 (print_ada_task_info): In non-mi mode, Properly align headers and data
373 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
374
375 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
376
377 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
378 prstatus.pr_lwp.pr_info instead of making it up.
379
380 2019-09-11 Christian Biesinger <cbiesinger@google.com>
381
382 * auto-load.c (auto_load_expand_dir_vars): Update.
383 * defs.h (gdb_datadir): Change to std::string.
384 (python_libdir): Likewise.
385 (relocate_gdb_directory): Change return type to std::string.
386 * guile/guile.c (gdbscm_data_directory): Update.
387 (initialize_scheme_side): Update.
388 * jit.c (jit_reader_dir): Change to std::string.
389 (jit_reader_load_command): Update.
390 * main.c (gdb_datadir): Change to std::string.
391 (python_libdir): Likewise.
392 (set_gdb_data_directory): Update.
393 (relocate_path): Change to return std::string.
394 (relocate_gdb_directory): Change to return std::string.
395 (relocate_gdbinit_path_maybe_in_datadir): Update.
396 (captured_main_1): Update.
397 * python/python.c (do_start_initialization): Update.
398 * top.c (show_gdb_datadir): Update.
399 * xml-syscall.c (xml_init_syscalls_info): Update.
400 (init_syscalls_info): Update.
401
402 2019-09-11 Christian Biesinger <cbiesinger@google.com>
403
404 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
405 out of get_init_files.
406 (get_init_files): Update.
407
408 2019-09-11 Christian Biesinger <cbiesinger@google.com>
409
410 * main.c (get_init_files): Change to use std::string.
411 (captured_main_1): Update.
412 (print_gdb_help): Update.
413
414 2019-09-11 Ali Tamur <tamur@google.com>
415
416 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
417 implementation.
418
419 2019-09-11 Christian Biesinger <cbiesinger@google.com>
420
421 * dbxread.c (read_dbx_symtab): Update.
422 * dwarf2read.c (load_partial_dies): Update.
423 * mdebugread.c (parse_partial_symbols): Update.
424 (handle_psymbol_enumerators): Update.
425 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
426 * psymtab.c (add_psymbol_to_bcache): Likewise.
427 (add_psymbol_to_list): Likewise.
428 * symtab.c (symbol_set_names): Likewise.
429 * symtab.h (symbol_set_names): Likewise.
430 * xcoffread.c (scan_xcoff_symtab): Update.
431
432 2019-09-11 Tom Tromey <tom@tromey.com>
433
434 * symfile-mem.c (symbol_file_add_from_memory): Use
435 bfd_set_filename.
436 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
437 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
438
439 2019-09-10 Tom Tromey <tromey@adacore.com>
440
441 * dwarf-index-write.c (write_psymbols): Extend error message.
442 (debug_names::insert): Add Ada code.
443 (debug_names::write_psymbols): Remove Ada check.
444 (debug_names) <m_string_obstack>: New member.
445 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
446 (gdb_index_symbol_name_matcher::matches): Remove.
447 (mapped_index_base::find_name_components_bounds): Add "lang"
448 parameter.
449 (mapped_index_base::build_name_components): Also split names
450 according to Ada syntax.
451 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
452 type of "match_callback".
453 (check_match, check_find_bounds_finds)
454 (dw2_expand_symtabs_matching): Update.
455 (dw2_debug_names_iterator): Add new constructor.
456 (dw2_debug_names_map_matching_symbols): New function.
457 (dw2_debug_names_expand_symtabs_matching): Update.
458 (dwarf2_debug_names_functions): Use
459 dw2_debug_names_map_matching_symbols.
460
461 2019-09-10 Tom Tromey <tromey@adacore.com>
462
463 * dwarf2read.c (dw2_get_file_names_reader): Add the
464 CU's file name to the results.
465
466 2019-09-10 Tom Tromey <tromey@adacore.com>
467
468 * ada-lang.c (add_nonlocal_symbols): Combine calls to
469 map_matching_symbols. Update.
470 * dwarf2read.c (dw2_map_matching_symbols): Update.
471 * psymtab.c (match_partial_symbol): Change type; update.
472 (psym_map_matching_symbols): Likewise.
473 * symfile-debug.c (debug_qf_map_matching_symbols): Change
474 type; update.
475 * symfile.h (struct quick_symbol_functions)
476 <map_matching_symbols>: Change "name" to be a lookup_name_info.
477 Remove "match".
478
479 2019-09-10 Tom Tromey <tromey@adacore.com>
480
481 * psymtab.c (map_block): Remove.
482 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
483 * symtab.c (iterate_over_symbols_terminated): New function.
484 * symtab.c (iterate_over_symbols_terminated): Declare.
485
486 2019-09-10 Tom Tromey <tromey@adacore.com>
487
488 * ada-lang.c (ada_iterate_over_symbols): Return bool.
489 * language.h (struct language_defn) <la_iterate_over_symbols>:
490 Return bool.
491 * symtab.c (iterate_over_symbols): Return bool.
492 * symtab.h (iterate_over_symbols): Return bool.
493
494 2019-09-10 Tom Tromey <tromey@adacore.com>
495
496 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
497 (add_nonlocal_symbols): Update.
498 * dwarf2read.c (dw2_map_matching_symbols): Change type.
499 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
500 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
501 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
502 Change type of "callback". Remove "data".
503
504
505 2019-09-09 Ali Tamur <tamur@google.com>
506
507 * dwarf2read.c (comp_unit_head): Update comment.
508 (dwarf2_dwo_name): New function declaration.
509 (dwarf_unit_type_name): New function declaration.
510 (read_comp_unit_head): Add support for new compilation units,
511 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
512 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
513 (currently named as "signature") in their header. Also clarify error
514 messages.
515 (lookup_dwo_id): New function. Returns the dwo id of the given
516 compile unit.
517 (lookup_dwo_unit): Use the new lookup_dwo_id function.
518 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
519 functions.
520 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
521 (dwarf2_dwo_name): Get the dwo name if present.
522 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
523 purposes.
524
525 2019-09-09 Tom Tromey <tom@tromey.com>
526
527 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
528
529 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
530
531 * python/python.c (do_start_initialization): Make progname_copy static,
532 to avoid a leak report.
533
534 2019-09-08 Tom Tromey <tom@tromey.com>
535
536 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
537
538 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
539
540 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
541 Change type to gdb::optional<block_enum>.
542 (dw2_symtab_iter_init): Change block_index parameter type
543 to gdb::optional<block_enum>.
544 (dw2_lookup_symbol): Change block_index parameter
545 type to block_enum.c
546 (dw2_debug_names_lookup_symbol): Likewise.
547 * psymtab.c (psym_lookup_symbol): Likewise.
548 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
549 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
550 Likewise.
551
552 2019-09-06 Christian Biesinger <cbiesinger@google.com>
553
554 * defs.h (relocate_gdb_directory): Change int to bool in
555 signature and rename flag to relocatable.
556 * main.c (relocate_path): Likewise.
557 (relocate_gdb_directory): Likewise.
558
559 2019-09-06 Alan Modra <amodra@gmail.com>
560
561 * coffread.c (coff_symfile_read): Constify filename variable.
562 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
563 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
564 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
565 * solib.c (reload_shared_libraries_1): Likewise.
566 * symfile.c (reread_symbols): Likewise.
567 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
568 * solib-darwin.c (darwin_bfd_open): Likewise.
569 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
570
571 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
572
573 * psymtab.c (print_partial_symbols): Handle missing domain_enum
574 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
575
576 2019-09-03 Tom Tromey <tromey@adacore.com>
577
578 * ada-valprint.c (ada_val_print_num): Don't recurse for range
579 types.
580 (has_negatives): Unbias a range type bound.
581 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
582 * gdbtypes.c (operator==): Handle new field.
583 (create_range_type): Add "bias" parameter.
584 (create_static_range_type, resolve_dynamic_range): Update.
585 * gdbtypes.h (struct range_bounds) <bias>: New member.
586 (create_range_type): Add bias parameter.
587 * printcmd.c (print_scalar_formatted): Unbias range types.
588 * value.c (unpack_long): Unbias range types.
589 (pack_long): Bias range types.
590
591 2019-09-02 Alan Hayward <alan.hayward@arm.com>
592
593 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
594 probe arguments.
595
596 2019-09-02 Alan Hayward <alan.hayward@arm.com>
597
598 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
599 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
600 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
601 (compile_probe_arg): Likewise.
602 * probe.h (get_argument_count): Likewise.
603 * solib-svr4.c (solib_event_probe_action): Likewise.
604 * stap-probe.c (stap_probe::get_argument_count): Likewise.
605
606 2019-09-02 Alan Hayward <alan.hayward@arm.com>
607
608 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
609 code to here...
610 (svr4_create_solib_event_breakpoints): ...from here.
611
612 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
613
614 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
615 suffix from warning message.
616
617 2019-08-30 Tom Tromey <tom@tromey.com>
618
619 * tui/tui-winsource.h (struct tui_source_window_base)
620 <refresh_all>: Don't declare.
621 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
622 Remove.
623 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
624 tui_show_locator_content.
625 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
626 declare.
627 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
628 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
629 declare.
630
631 2019-08-30 Tom Tromey <tom@tromey.com>
632
633 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
634
635 2019-08-30 Tom Tromey <tom@tromey.com>
636
637 * tui/tui-stack.c (_initialize_tui_stack): Move later.
638 Remove unnecessary forward declarations.
639
640 2019-08-30 Tom Tromey <tom@tromey.com>
641
642 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
643 rerender.
644 (tui_update_locator_fullname, tui_show_frame_info): Don't call
645 tui_show_locator_content.
646
647 2019-08-30 Tom Tromey <tom@tromey.com>
648
649 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
650 (tui_locator_window::rerender): Rewrite using body of previous
651 tui_show_locator_content.
652
653 2019-08-30 Tom Tromey <tom@tromey.com>
654
655 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
656 set_locator_fullname>: New methods.
657 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
658 Rename from tui_set_locator_fullname.
659 (tui_locator_window::set_locator_info): Rename from
660 tui_set_locator_info. Return bool.
661 (tui_update_locator_fullname, tui_show_frame_info): Update.
662
663 2019-08-30 Tom Tromey <tom@tromey.com>
664
665 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
666
667 2019-08-30 Tom Tromey <tom@tromey.com>
668
669 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
670 call touchwin.
671
672 2019-08-30 Tom Tromey <tom@tromey.com>
673
674 * tui/tui-wingeneral.c (box_win): Assume win_info and
675 win_info->handle cannot be NULL.
676
677 2019-08-30 Tom Tromey <tom@tromey.com>
678
679 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
680 refresh_window>: Declare.
681 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
682 resize.
683 (tui_data_item_window::rerender): Rename from
684 tui_display_register.
685 (tui_data_item_window::refresh_window): New method.
686 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
687 no-op.
688
689 2019-08-30 Tom Tromey <tom@tromey.com>
690
691 * tui/tui-regs.h (struct tui_data_window) <regs_content,
692 regs_column_count, current_group>: Move later. Now private.
693 <get_current_group>: New method.
694 * tui/tui-regs.c (tui_reg_command): Update.
695 * tui/tui-layout.c (tui_set_layout): Update.
696
697 2019-08-30 Tom Tromey <tom@tromey.com>
698
699 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
700 (tui_data_window::rerender): Don't call
701 check_and_display_highlight_if_needed.
702 (tui_data_window::refresh_all): Remove call to
703 erase_data_content.
704
705 2019-08-30 Tom Tromey <tom@tromey.com>
706
707 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
708 (tui_data_window::display_registers_from)
709 (tui_data_window::display_reg_element_at_line)
710 (tui_data_window::display_registers_from_line): Remove checks of
711 "empty".
712
713 2019-08-30 Tom Tromey <tom@tromey.com>
714
715 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
716 Don't declare.
717 * tui/tui-regs.c (tui_data_window::show_registers): Call
718 rerender.
719 (tui_data_window::rerender): Rename from display_all_data.
720 (tui_data_window::rerender): Remove old implementation.
721
722 2019-08-30 Tom Tromey <tom@tromey.com>
723
724 * tui/tui-regs.c (tui_data_window::display_all_data): Change
725 text.
726 * tui/tui-data.h (NO_DATA_STRING): Remove define.
727
728 2019-08-29 Bernhard Wodok <barto@gmx.net>
729 Sergio Durigan Junior <sergiodj@redhat.com>
730
731 PR win32/24284
732 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
733
734 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
735
736 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
737 when searching for types.
738
739 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
740
741 * f-lang.c (f_language_defn): Use f_print_typedef.
742 * f-lang.h (f_print_typedef): Declare.
743 * f-typeprint.c (f_print_typedef): Define.
744
745 2019-08-27 Christian Biesinger <cbiesinger@google.com>
746
747 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
748
749 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
750
751 * cli/cli-utils.c (info_print_options_defs): Delete.
752 (make_info_print_options_def_group): Delete.
753 (extract_info_print_options): Delete.
754 (info_print_command_completer): Delete.
755 (info_print_args_help): Add extra parameter, and optionally
756 include text about -n flag.
757 * cli/cli-utils.h (struct info_print_options): Delete.
758 (extract_info_print_options): Delete declaration.
759 (info_print_command_completer): Delete declaration.
760 (info_print_args_help): Add extra parameter, extend header
761 comment.
762 * python/python.c (gdbpy_rbreak): Pass additional parameter to
763 search_symbols.
764 * stack.c (struct info_print_options): New type.
765 (info_print_options_defs): New file scoped variable.
766 (make_info_print_options_def_group): New static function.
767 (info_print_command_completer): New static function.
768 (info_locals_command): Update to use new local functions.
769 (info_args_command): Likewise.
770 (_initialize_stack): Add extra parameter to calls to
771 info_print_args_help.
772 * symtab.c (search_symbols): Add extra parameter, use this to
773 possibly excluse non-debug symbols.
774 (symtab_symbol_info): Add extra parameter, which is passed on to
775 search_symbols.
776 (struct info_print_options): New type.
777 (info_print_options_defs): New file scoped variable.
778 (make_info_print_options_def_group): New static function.
779 (info_print_command_completer): New static function.
780 (info_variables_command): Update to use local functions, and pass
781 extra parameter through to symtab_symbol_info.
782 (info_functions_command): Likewise.
783 (info_types_command): Pass additional argument through to
784 symtab_symbol_info.
785 (rbreak_command): Pass extra argument to search_symbols.
786 (_initialize_symtab): Add extra arguments for calls to
787 info_print_args_help, and update help text for 'info variables',
788 'whereis', and 'info functions' commands.
789 * symtab.h (search_symbols): Add extra argument to declaration.
790 * NEWS: Mention new flags.
791
792 2019-08-26 Christian Biesinger <cbiesinger@google.com>
793
794 * symtab.c (lookup_static_symbol): Call the new function (and move
795 it down to be next to lookup_global_symbol).
796 (struct global_sym_lookup_data): Add block_enum member and rename to...
797 (struct global_or_static_sym_lookup_data): ...this.
798 (lookup_symbol_global_iterator_cb): Pass block_index instead of
799 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
800 (lookup_symbol_global_or_static_iterator_cb): ...this.
801 (lookup_global_or_static_symbol): New function.
802 (lookup_global_symbol): Call new function.
803
804 2019-08-26 Tom de Vries <tdevries@suse.de>
805
806 PR c++/24852
807 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
808 when pc_probe.prob == NULL.
809
810 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
811
812 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
813 variable symbol_linkage to symbol_linkage_.
814
815 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
816
817 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
818 represent whether the symbol is static, dynamic, or we don't
819 know.
820
821 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
822
823 * gdb/rx-tdep.c (rx_register_names): New.
824 (rx_register_name): Delete.
825 (rx_psw_type): Delete.
826 (rx_fpsw_type): Delete.
827 (rx_register_type): Delete.
828 (rx_gdbarch_init): Convert target-descriptions.
829 (_initialize_rx_tdep): Add initialize_tdesc_rx.
830 * gdb/features/Makefile: Add rx.xml.
831 * gdb/features/rx.xml: New.
832 * gdb/features/rx.c: Generated.
833 * gdb/NEWS: Mention target description support.
834
835 2019-08-22 Christian Biesinger <cbiesinger@google.com>
836
837 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
838 *slot_ptr.
839
840 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
841
842 * configure.ac: Don't check for 'dlfcn.h' (moved to
843 gdbsupport/common.m4).
844 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
845 'gdbsupport/'.
846 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
847 * compile/compile-c-support.c: Include
848 'gdbsupport/gdb-dlfcn.h'.
849 * gdbsupport/common.m4: Check for 'dlfcn.h'.
850 * gdb-dlfcn.c: Move to...
851 * gdbsupport/gdb-dlfcn.c: ... here.
852 * gdb-dlfcn.h: Move to...
853 * gdbsupport/gdb-dlfcn.h: ... here.
854
855 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
856
857 * nios2-tdep.c (struct reg_value): Improve comments. Make
858 the offset field signed.
859
860 2019-08-22 Christian Biesinger <cbiesinger@google.com>
861
862 * python/lib/gdb/__init__.py (_execute_file): New function.
863 * python/python.c (python_run_simple_file): Call gdb._execute_file
864 on Windows.
865
866 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
867
868 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
869 all uses as this was never set to anything but a zero value.
870
871 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
872
873 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
874
875 2019-08-21 Christian Biesinger <cbiesinger@google.com>
876
877 * tui/tui-data.h (tui_gen_win_info): Add an =default
878 move constructor, required by some GCC versions.
879
880 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
881
882 * go32-nat.c (go32_sysinfo): Add hygon_p.
883
884 2019-08-20 Tom Tromey <tom@tromey.com>
885
886 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
887 line_from_reg_element_no, first_reg_element_no_inline,
888 display_all_data, delete_data_content_windows,
889 erase_data_content>: Now private.
890
891 2019-08-20 Tom Tromey <tom@tromey.com>
892
893 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
894 (tui_unhighlight_win, tui_highlight_win)
895 (tui_win_info::make_window): Update.
896 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
897
898 2019-08-20 Tom Tromey <tom@tromey.com>
899
900 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
901 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
902 (MAX_PID_WIDTH): Move to tui-stack.c.
903 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
904 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
905 (MAX_PID_WIDTH): Move from tui-data.h.
906
907 2019-08-20 Tom Tromey <tom@tromey.com>
908
909 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
910 * tui/tui-wingeneral.c (box_win): Change type of win_info.
911 (box_win): Update.
912 (tui_gen_win_info::make_window): Rename from tui_make_window.
913 (tui_win_info::make_window): New method.
914 (tui_gen_win_info::make_visible): Update.
915 * tui/tui-source.c (tui_source_window::set_contents): Update.
916 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
917 (tui_data_window::display_registers_from): Update.
918 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
919 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
920 Declare.
921 <can_box>: Remove.
922 <title>: Remove.
923 (struct tui_win_info) <make_window>: Declare.
924 <can_box>: Now virtual.
925 <title>: New member.
926 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
927 * tui/tui-command.c (tui_cmd_window::resize): Update.
928
929 2019-08-20 Tom Tromey <tom@tromey.com>
930
931 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
932 * tui/tui-regs.c (tui_data_window::show_registers): Update.
933 (tui_data_window::check_register_values): Update.
934
935 2019-08-20 Tom Tromey <tom@tromey.com>
936
937 * tui/tui-regs.h (struct tui_data_window): Use
938 DISABLE_COPY_AND_ASSIGN.
939 <regs_content>: Change type, removing unique_ptr.
940 <tui_data_window>: Add move constructor.
941 * tui/tui-regs.c (tui_data_window::show_registers)
942 (tui_data_window::show_register_group)
943 (tui_data_window::display_registers_from)
944 (tui_data_window::display_registers_from)
945 (tui_data_window::first_data_item_displayed)
946 (tui_data_window::delete_data_content_windows)
947 (tui_data_window::rerender, tui_data_window::refresh_window)
948 (tui_data_window::check_register_values): Update.
949
950 2019-08-20 Tom Tromey <tom@tromey.com>
951
952 * tui/tui-regs.h (struct tui_data_window) <show_registers,
953 show_register_group>: Declare.
954 (tui_show_register_group): Don't declare.
955 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
956 tui_show_registers.
957 (tui_data_window::show_register_group): Rename from
958 tui_show_register_group.
959 (tui_data_window::check_register_values, tui_reg_command):
960 Update.
961 * tui/tui-layout.c (tui_set_layout): Update.
962
963 2019-08-20 Tom Tromey <tom@tromey.com>
964
965 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
966 Declare.
967 (tui_check_register_values): Don't declare.
968 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
969 from tui_check_register_values.
970 * tui/tui-hooks.c (tui_register_changed): Update.
971
972 2019-08-20 Tom Tromey <tom@tromey.com>
973
974 * tui/tui-regs.c (tui_reg_layout): Move later.
975 (tui_show_registers): Don't enable TUI mode or change layout.
976
977 2019-08-20 Tom Tromey <tom@tromey.com>
978
979 * tui/tui-regs.h (struct tui_data_item_window)
980 <~tui_data_item_window>: Remove.
981 <content>: Now a unique_xmalloc_ptr.
982 * tui/tui-regs.c (tui_register_format): Return a
983 unique_xmalloc_ptr.
984 (tui_get_register): Update.
985 (~tui_data_item_window): Remove.
986 (tui_data_window::display_registers_from, tui_display_register):
987 Update.
988 * tui/tui-io.h (tui_expand_tabs): Update.
989 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
990 Remove "col" parameter.
991
992 2019-08-20 Tom Tromey <tom@tromey.com>
993
994 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
995 field.
996 * tui/tui-regs.c (~tui_data_item_window): Update.
997
998 2019-08-20 Tom Tromey <tom@tromey.com>
999
1000 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1001 earlier.
1002
1003 2019-08-20 Tom Tromey <tom@tromey.com>
1004
1005 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1006
1007 2019-08-20 Tom Tromey <tom@tromey.com>
1008
1009 * tui/tui-source.h (struct tui_source_window): Update.
1010 * tui/tui-regs.c (tui_show_registers): Update.
1011 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1012 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1013 (NO_REGS_STRING): Remove defines.
1014
1015 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
1016
1017 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1018 unnecessary thread walk if remote doesn't support the packet.
1019
1020 2019-08-19 Tom Tromey <tromey@adacore.com>
1021
1022 * python/py-value.c (value_has_field): Fix indentation.
1023
1024 2019-08-19 Tom Tromey <tromey@adacore.com>
1025
1026 * printcmd.c (do_one_display, info_display_command): Update.
1027 * block.h (contained_in): Return bool. Add allow_nested
1028 parameter.
1029 * block.c (contained_in): Return bool. Add allow_nested
1030 parameter.
1031
1032 2019-08-19 Tom Tromey <tom@tromey.com>
1033
1034 * configure: Rebuild.
1035 * configure.ac: Disallow the combination of -static-libstdc++ and
1036 source highlight.
1037 * source-cache.c (get_language_name): Handle rust.
1038 (source_cache::get_source_lines): Ignore highlighting exceptions.
1039
1040 2019-08-16 Tom Tromey <tom@tromey.com>
1041
1042 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1043 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1044 (struct tui_source_window_base) <make_visible, refresh_window,
1045 resize>: Remove methods.
1046 <execution_info>: Remove field.
1047 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1048 (tui_show_source_line, tui_source_window_base)
1049 (~tui_source_window_base): Update.
1050 (tui_source_window_base::resize)
1051 (tui_source_window_base::make_visible)
1052 (tui_source_window_base::refresh_window): Remove.
1053 (tui_source_window_base::update_exec_info): Update.
1054 * tui/tui-source.c (tui_source_window::set_contents): Update.
1055 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1056
1057 2019-08-16 Tom Tromey <tom@tromey.com>
1058
1059 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1060 deprecated_query_hook.
1061
1062 2019-08-16 Tom Tromey <tom@tromey.com>
1063
1064 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1065 (tui_update_source_windows_with_line): Update.
1066 * tui/tui-source.h (struct tui_source_window)
1067 <show_symtab_source>: Declare.
1068 (tui_show_symtab_source): Don't declare.
1069 * tui/tui-source.c (tui_show_symtab_source): Rename from
1070 tui_show_symtab_source.
1071
1072 2019-08-16 Tom Tromey <tom@tromey.com>
1073
1074 * tui/tui-winsource.h (struct tui_source_window_base)
1075 <set_contents>: Declare.
1076 * tui/tui-winsource.c
1077 (tui_source_window_base::update_source_window_as_is): Update.
1078 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1079 Declare.
1080 (tui_set_source_content): Don't declare.
1081 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1082 tui_set_source_content.
1083 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1084 Declare.
1085 (tui_set_disassem_content): Don't declare.
1086 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1087 tui_set_disassem_content.
1088
1089 2019-08-16 Tom Tromey <tom@tromey.com>
1090
1091 * tui/tui-winsource.h (struct tui_source_window_base)
1092 <update_breakpoint_info>: Declare.
1093 (tui_update_breakpoint_info): Don't declare.
1094 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1095 (tui_update_all_breakpoint_info): Update.
1096 (tui_source_window_base::update_breakpoint_info): Rename from
1097 tui_update_breakpoint_info.
1098 (tui_source_window_base::update_exec_info): Update.
1099
1100 2019-08-16 Tom Tromey <tom@tromey.com>
1101
1102 * tui/tui-winsource.h (struct tui_source_window_base)
1103 <update_source_window>: Declare.
1104 (tui_update_source_window): Don't declare.
1105 * tui/tui-winsource.c
1106 (tui_source_window_base::update_source_window): Rename from
1107 tui_update_source_window.
1108 (tui_source_window_base::rerender): Update.
1109 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1110 * tui/tui-disasm.c (tui_show_disassem)
1111 (tui_show_disassem_and_update_source)
1112 (tui_disasm_window::maybe_update): Update.
1113
1114 2019-08-16 Tom Tromey <tom@tromey.com>
1115
1116 * tui/tui-winsource.h (struct tui_source_window_base)
1117 <update_source_window_as_is>: Declare.
1118 (tui_update_source_window_as_is): Don't declare.
1119 * tui/tui-winsource.c (tui_update_source_window): Update
1120 (tui_source_window_base::update_source_window_as_is): Rename from
1121 tui_update_source_window_as_is.
1122 (tui_source_window_base::refill): Update.
1123 * tui/tui-source.c (tui_show_symtab_source): Update.
1124 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1125 Update.
1126
1127 2019-08-16 Tom Tromey <tom@tromey.com>
1128
1129 * tui/tui-winsource.h (tui_update_source_window)
1130 (tui_update_source_window_as_is): Remove "noerror" parameter.
1131 * tui/tui-winsource.c (tui_update_source_window)
1132 (tui_update_source_window_as_is): Remove "noerror" parameter.
1133 (tui_update_source_windows_with_addr)
1134 (tui_update_source_windows_with_line)
1135 (tui_source_window_base::rerender)
1136 (tui_source_window_base::refill): Update.
1137 * tui/tui-source.h (tui_set_source_content)
1138 (tui_show_symtab_source): Remove "noerror" parameter.
1139 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1140 parameter.
1141 (tui_show_symtab_source): Likewise.
1142 (tui_source_window::maybe_update): Update.
1143 * tui/tui-disasm.c (tui_show_disassem)
1144 (tui_show_disassem_and_update_source)
1145 (tui_disasm_window::do_scroll_vertical)
1146 (tui_disasm_window::maybe_update): Update.
1147
1148 2019-08-16 Tom Tromey <tom@tromey.com>
1149
1150 * tui/tui.c (tui_is_window_visible): Update.
1151 * tui/tui-wingeneral.c (tui_make_window)
1152 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1153 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1154 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1155 (tui_set_win_height_command, parse_scrolling_args): Update.
1156 * tui/tui-source.c (tui_source_window::style_changed): Update.
1157 * tui/tui-regs.c (tui_show_registers)
1158 (tui_data_window::first_data_item_displayed)
1159 (tui_data_window::delete_data_content_windows)
1160 (tui_check_register_values, tui_reg_command): Update.
1161 * tui/tui-disasm.c (tui_show_disassem): Update.
1162 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1163 method.
1164 <is_visible>: Remove field.
1165 * tui/tui-data.c (tui_next_win, tui_prev_win)
1166 (tui_delete_invisible_windows): Update.
1167
1168 2019-08-16 Tom Tromey <tom@tromey.com>
1169
1170 * tui/tui-winsource.h (struct tui_source_window_base)
1171 <m_has_locator>: Remove.
1172 * tui/tui-layout.c (show_source_disasm_command, show_data)
1173 (show_source_or_disasm_and_command): Update.
1174
1175 2019-08-16 Alan Hayward <alan.hayward@arm.com>
1176
1177 * NEWS (Other MI changes): New subsection.
1178 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1179 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1180 * arch-utils.c (default_get_pc_address_flags): New function.
1181 * arch-utils.h (default_get_pc_address_flags): New declaration.
1182 * gdbarch.sh: Add get_pc_address_flags.
1183 * gdbarch.c: Regenerate.
1184 * gdbarch.h: Likewise.
1185 * stack.c (print_pc): New function.
1186 (print_frame_info) (print_frame): Call print_pc.
1187
1188 2019-08-16 Tom de Vries <tdevries@suse.de>
1189
1190 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1191 print_objfile_section_info.
1192
1193 2019-08-15 Tom Tromey <tom@tromey.com>
1194
1195 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1196 calling update_cmdwin_start_line.
1197 * tui/tui-winsource.h (struct tui_source_window_base)
1198 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1199 <rerender>: Declare.
1200 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1201 Call rerender.
1202 (tui_source_window_base::set_new_height): Remove.
1203 (tui_source_window_base::rerender): Rename from
1204 do_make_visible_with_new_height.
1205 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1206 resize method.
1207 (tui_win_info::make_invisible_and_set_new_height)
1208 (tui_win_info::make_visible_with_new_height): Remove.
1209 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1210 Declare.
1211 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1212 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1213 do_make_visible_with_new_height>: Don't declare.
1214 <rerender>: Declare.
1215 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1216 set_new_height.
1217 (tui_data_window::do_make_visible_with_new_height): Remove.
1218 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1219 call tui_show_locator_content.
1220 (tui_gen_win_info::resize): Call rerender.
1221 (show_source_or_disasm_and_command): Don't call
1222 tui_show_locator_content.
1223 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1224 method.
1225 (struct tui_win_info) <rerender>: Declare.
1226 <set_new_height, make_invisible_and_set_new_height,
1227 make_visible_with_new_height>: Don't declare.
1228 * tui/tui-data.c (tui_win_list::rerender): New method.
1229 * tui/tui-command.h (struct tui_cmd_window)
1230 <do_make_visible_with_new_height>: Don't declare.
1231 * tui/tui-command.c
1232 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1233
1234 2019-08-15 Tom Tromey <tromey@adacore.com>
1235
1236 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1237 * ada-lang.c (ada_enum_name): Likewise.
1238
1239 2019-08-15 Christian Biesinger <cbiesinger@google.com>
1240
1241 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1242 leading underscore.
1243 (GdbOutputErrorFile): Likewise.
1244 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1245 accordingly.
1246 (execute_unwinders): Rename to have a leading underscore.
1247 (auto_load_packages): Likewise.
1248 (global scope): Adjust call to auto_load_packages accordingly.
1249 (GdbSetPythonDirectory): Likewise.
1250 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1251 instead of execute_unwinders.
1252
1253 2019-08-15 Tom Tromey <tom@tromey.com>
1254
1255 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1256 (show_data): Don't change window visibility.
1257 (tui_gen_win_info::resize): Remove special case for command
1258 window. Use wresize, when available.
1259 (show_source_or_disasm_and_command): Don't change window
1260 visibility.
1261 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1262 <make_visible>: New method.
1263 * tui/tui-command.c (tui_cmd_window::resize): New method.
1264
1265 2019-08-15 Tom Tromey <tom@tromey.com>
1266
1267 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1268 (struct tui_source_windows): New.
1269 * tui/tui-winsource.c (tui_display_main): Update.
1270 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1271 (new_height_ok, parse_scrolling_args): Update.
1272 * tui/tui-layout.c (show_layout, show_data): Update.
1273 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1274 (tui_add_to_source_windows): Don't declare.
1275 * tui/tui-data.c (source_windows, tui_source_windows)
1276 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1277
1278 2019-08-15 Tom Tromey <tom@tromey.com>
1279
1280 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1281 Rename from reset.
1282 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1283 * tui/tui-layout.c (show_source_disasm_command, show_data):
1284 Update.
1285 (tui_gen_win_info::resize): Rename.
1286 (show_source_or_disasm_and_command): Update.
1287 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1288 reset.
1289
1290 2019-08-15 Tom Tromey <tom@tromey.com>
1291
1292 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1293 * tui/tui-interp.c (tui_interp::init): Don't call
1294 tui_initialize_static_data.
1295 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1296
1297 2019-08-15 Tom Tromey <tom@tromey.com>
1298
1299 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1300 examine tui_win_list.
1301
1302 2019-08-15 Tom Tromey <tom@tromey.com>
1303
1304 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1305 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1306 tui_clear_source_content.
1307 (tui_clear_source_content): Remove.
1308 (tui_source_window_base::do_erase_source_content): Hoist call to
1309 content.clear().
1310 * tui/tui-stack.c (tui_show_frame_info): Don't call
1311 tui_clear_source_content.
1312
1313 2019-08-15 Tom Tromey <tom@tromey.com>
1314
1315 * tui/tui-winsource.h (struct tui_source_window_base)
1316 <do_erase_source_content>: New method.
1317 <erase_source_content>: New method.
1318 (tui_erase_source_content): Don't declare.
1319 * tui/tui-winsource.c (tui_clear_source_content): Update.
1320 (tui_source_window_base::do_erase_source_content): Rename from
1321 tui_erase_source_content.
1322 (tui_source_window_base::show_source_content): Update.
1323 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1324 * tui/tui-source.h (struct tui_source_window)
1325 <erase_source_content>: New method.
1326 * tui/tui-disasm.h (struct tui_disasm_window)
1327 <erase_source_content>: New method.
1328
1329 2019-08-15 Tom Tromey <tom@tromey.com>
1330
1331 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1332 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1333 constructor.
1334 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1335 * tui/tui-source.c (tui_set_source_content): Update.
1336 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1337
1338 2019-08-15 Tom Tromey <tom@tromey.com>
1339
1340 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1341 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1342 tui-source.c.
1343 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1344 Declare.
1345 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1346 method.
1347 (tui_source_window::maybe_update): Update.
1348
1349 2019-08-15 Tom Tromey <tom@tromey.com>
1350
1351 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1352 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1353 tui-disasm.c.
1354 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1355 Declare.
1356 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1357 method.
1358 (tui_disasm_window::maybe_update): Update.
1359
1360 2019-08-15 Tom Tromey <tom@tromey.com>
1361
1362 * tui/tui-winsource.h (struct tui_source_window_base)
1363 <maybe_update>: Declare.
1364 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1365 method.
1366 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1367 Declare.
1368 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1369 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1370 Declare.
1371 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1372
1373 2019-08-15 Tom Tromey <tom@tromey.com>
1374
1375 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1376
1377 2019-08-15 Tom Tromey <tom@tromey.com>
1378
1379 * tui/tui-wingeneral.c: Include tui-stack.h.
1380 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1381 (struct tui_locator_window): Move from tui-data.h.
1382 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1383 (tui_initialize_static_data): Move from tui-data.c.
1384 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1385 (struct tui_locator_window): Move to tui-stack.c.
1386 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1387 (tui_initialize_static_data): Move to tui-stack.c.
1388
1389 2019-08-15 Tom Tromey <tom@tromey.com>
1390
1391 * tui/tui-layout.c (show_source_disasm_command)
1392 (show_source_or_disasm_and_command): Use make_visible method, not
1393 tui_make_window.
1394 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1395 Remove.
1396
1397 2019-08-15 Tom Tromey <tom@tromey.com>
1398
1399 * tui/tui-wingeneral.h (tui_make_window): Update.
1400 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1401 parameter.
1402 (tui_gen_win_info::make_visible): Update.
1403 * tui/tui-regs.c (tui_data_window::display_registers_from):
1404 Update.
1405 * tui/tui-layout.c (show_source_disasm_command)
1406 (show_source_or_disasm_and_command): Update.
1407 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1408 (enum tui_box): Remove.
1409 (struct tui_win_info) <can_box>: New method.
1410 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1411 method.
1412
1413 2019-08-15 Tom de Vries <tdevries@suse.de>
1414
1415 * linux-nat-trad.c: Include gdbarch.h.
1416
1417 2019-08-14 Alan Hayward <alan.hayward@arm.com>
1418
1419 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1420 register sizes.
1421
1422 2019-08-14 Tom Tromey <tromey@adacore.com>
1423
1424 * darwin-nat.c: Include gdbarch.h.
1425 * darwin-nat-info.c: Include gdbarch.h.
1426
1427 2019-08-13 Tom Tromey <tom@tromey.com>
1428
1429 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1430 Remove.
1431 * tui/tui-data.c (tui_initialize_static_data): Update.
1432
1433 2019-08-13 Tom Tromey <tom@tromey.com>
1434
1435 * tui/tui-winsource.h (struct tui_exec_info_window)
1436 <~tui_exec_info_window, maybe_allocate_content, get_content,
1437 m_content>: Remove.
1438 (struct tui_source_window_base) <set_exec_info_content,
1439 show_exec_info_content>: Don't declare.
1440 * tui/tui-winsource.c
1441 (tui_exec_info_window::maybe_allocate_content): Remove.
1442 (tui_source_window_base::update_exec_info): Rename from
1443 set_exec_info_content.
1444 (tui_source_window_base::show_exec_info_content)
1445 (tui_source_window_base::update_exec_info): Remove.
1446
1447 2019-08-13 Tom Tromey <tom@tromey.com>
1448
1449 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1450 declare.
1451 * tui/tui-winsource.c (tui_update_source_window_as_is)
1452 (tui_update_source_windows_with_addr, tui_erase_source_content):
1453 Update.
1454 (tui_clear_exec_info_content): Remove.
1455
1456 2019-08-13 Tom Tromey <tom@tromey.com>
1457
1458 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1459 declare.
1460 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1461 call tui_erase_exec_info_content.
1462 (tui_clear_exec_info_content): Rename from
1463 tui_erase_exec_info_content.
1464 (tui_clear_exec_info_content): Delete.
1465
1466 2019-08-13 Tom Tromey <tom@tromey.com>
1467
1468 * tui/tui-winsource.h (struct tui_source_window_base)
1469 <show_exec_info_content>: Declare.
1470 (tui_show_exec_info_content): Don't declare.
1471 * tui/tui-winsource.c
1472 (tui_source_window_base::show_exec_info_content): Rename from
1473 tui_show_exec_info_content.
1474 (tui_source_window_base::update_exec_info): Update.
1475
1476 2019-08-13 Tom Tromey <tom@tromey.com>
1477
1478 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1479 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1480 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1481 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1482 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1483 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1484 ... here.
1485
1486 2019-08-13 Tom Tromey <tom@tromey.com>
1487
1488 * tui/tui-winsource.h (struct tui_source_window_base)
1489 <update_exec_info>: Declare.
1490 (tui_update_exec_info): Don't declare.
1491 * tui/tui-winsource.c (tui_update_source_window_as_is)
1492 (tui_source_window_base::refresh_all)
1493 (tui_update_all_breakpoint_info): Update.
1494 (tui_source_window_base::update_exec_info): Rename from
1495 tui_update_exec_info.
1496 * tui/tui-stack.c (tui_show_frame_info): Update.
1497
1498 2019-08-13 Tom Tromey <tom@tromey.com>
1499
1500 * tui/tui-winsource.h (struct tui_source_window_base)
1501 <set_exec_info_content>: Declare.
1502 (tui_set_exec_info_content): Don't declare.
1503 * tui/tui-winsource.c
1504 (tui_source_window_base::set_exec_info_content): Rename from
1505 tui_set_exec_info_content.
1506 (tui_update_exec_info): Update.
1507
1508 2019-08-13 Tom Tromey <tom@tromey.com>
1509
1510 * tui/tui-winsource.h (struct tui_source_window_base)
1511 <show_source_content>: Declare.
1512 (tui_show_source_content): Don't declare.
1513 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1514 (tui_source_window_base::show_source_content): Rename from
1515 tui_show_source_content.
1516 (tui_source_window_base::refresh_all): Update.
1517 * tui/tui-layout.c (show_source_disasm_command)
1518 (show_source_or_disasm_and_command): Update.
1519
1520 2019-08-13 Tom Tromey <tom@tromey.com>
1521
1522 * tui/tui-winsource.c (tui_erase_source_content)
1523 (tui_show_source_content, tui_source_window_base::refresh_all):
1524 Update.
1525 * tui/tui-wingeneral.h
1526 (tui_check_and_display_highlight_if_needed): Don't declare.
1527 * tui/tui-wingeneral.c
1528 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1529 check_and_display_highlight_if_needed.
1530 * tui/tui-win.c (tui_rehighlight_all)
1531 (tui_win_info::make_visible_with_new_height): Update.
1532 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1533 (tui_data_window::erase_data_content)
1534 (tui_data_window::display_all_data): Update.
1535 * tui/tui-data.h (struct tui_win_info)
1536 <check_and_display_highlight_if_needed>: Declare.
1537
1538 2019-08-13 Tom Tromey <tom@tromey.com>
1539
1540 * tui/tui-win.c (tui_resize_all): Call
1541 tui_delete_invisible_windows.
1542 * tui/tui-layout.c (show_layout): Call
1543 tui_delete_invisible_windows.
1544 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1545 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1546
1547 2019-08-13 Tom Tromey <tom@tromey.com>
1548
1549 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1550 tui_add_win_to_layout.
1551
1552 2019-08-13 Tom Tromey <tom@tromey.com>
1553
1554 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1555 * tui/tui-layout.c (tui_default_win_height): Now static.
1556
1557 2019-08-13 Tom Tromey <tom@tromey.com>
1558
1559 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1560 single switch.
1561 (show_source_disasm_command, show_source_or_disasm_and_command):
1562 Don't check current layout.
1563
1564 2019-08-13 Tom Tromey <tom@tromey.com>
1565
1566 * tui/tui-wingeneral.c (make_all_visible): Remove.
1567 (tui_make_all_invisible): Simplify.
1568 * tui/tui-layout.c (tui_make_all_invisible): Move from
1569 tui-wingeneral.c; simplify.
1570 (show_layout): Hoist call to tui_make_all_invisible.
1571 (show_data): Don't call tui_make_all_invisible.
1572
1573 2019-08-13 Tom Tromey <tom@tromey.com>
1574
1575 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1576 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1577
1578 2019-08-13 Tom Tromey <tom@tromey.com>
1579
1580 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1581 tui-data.c.
1582 (show_source_disasm_command, show_data)
1583 (show_source_or_disasm_and_command): Don't use
1584 tui_set_current_layout_to.
1585 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1586 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1587 tui-layout.c.
1588 (tui_set_current_layout_to): Remove.
1589
1590 2019-08-13 Tom Tromey <tom@tromey.com>
1591
1592 * tui/tui-layout.c (tui_set_layout): Update.
1593 * tui/tui-data.h (struct tui_layout_def): Remove.
1594 (tui_layout_def): Don't declare.
1595 * tui/tui-data.c (layout_def): Remove.
1596 (tui_layout_def): Remove.
1597
1598 2019-08-13 Tom Tromey <tom@tromey.com>
1599
1600 * tui/tui-winsource.h (struct tui_source_window_base)
1601 <clear_detail>: No longer "override".
1602 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1603 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1604 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1605 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1606 Remove.
1607 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1608
1609 2019-08-13 Tom Tromey <tromey@adacore.com>
1610
1611 * tracepoint.c: Don't include readline.h or history.h.
1612
1613 2019-08-12 Tom Tromey <tom@tromey.com>
1614
1615 * configure: Rebuild.
1616 * configure.ac: Check for readline 7.
1617 * NEWS: Mention readline 7 requirement.
1618 * README: Update.
1619
1620 2019-08-12 Tom Tromey <tom@tromey.com>
1621
1622 * mingw-hdep.c (gdb_select): Remove readline hack.
1623
1624 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1625
1626 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1627 when the function fails.
1628
1629 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1630
1631 * s390-tdep.c (s390_type_align): New function.
1632 (s390_gdbarch_init): Set it as type_align gdbarch method.
1633
1634 2019-08-09 Tom de Vries <tdevries@suse.de>
1635
1636 PR gdb/24591
1637 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1638 pc_low with relocation offset.
1639
1640 2019-08-07 Tom Tromey <tromey@adacore.com>
1641
1642 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1643 (print_frame_args): Update.
1644 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1645 Update.
1646 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1647 * frame.h (struct frame_arg): Add initializers.
1648 <error>: Now a unique_xmalloc_ptr.
1649
1650 2019-08-07 Alan Hayward <alan.hayward@arm.com>
1651
1652 * NEWS: Expand the Pointer Authentication entry.
1653 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1654 (aarch64_frame_unmask_lr): ... to this.
1655 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1656 Call aarch64_frame_unmask_lr.
1657 * frame.c (struct frame_info): Add "masked" variable.
1658 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1659 (fprint_frame): Check for masked pc.
1660 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1661 declarations.
1662 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1663 * stack.c (print_frame): Check for masked pc.
1664
1665 2019-08-06 Tom Tromey <tom@tromey.com>
1666
1667 * stabsread.c (patch_block_stabs, read_one_struct_field)
1668 (read_enum_type): Use obstack_strndup.
1669 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1670 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1671 * dwarf2read.c (guess_full_die_structure_name)
1672 (anonymous_struct_prefix): Use obstack_strndup.
1673 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1674 * c-exp.y (yylex): Use obstack_strndup.
1675 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1676 (write_var_or_type): Use obstack_strndup.
1677
1678 2019-08-06 Tom Tromey <tom@tromey.com>
1679
1680 * symfile.c (reread_symbols): Use obstack_strdup.
1681 * stabsread.c (read_type): Use obstack_strdup.
1682 * gdb_obstack.h (obstack_strdup): New overload.
1683 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1684 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1685 (dwarf2_canonicalize_name): Use obstack_strdup.
1686 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1687 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1688 Use obstack_strdup.
1689
1690 2019-08-06 Tom Tromey <tom@tromey.com>
1691
1692 * gdb_obstack.h (obstack_strdup): Define.
1693 * gdb_obstack.c (obstack_strdup): Don't define.
1694
1695 2019-08-06 Tom Tromey <tom@tromey.com>
1696
1697 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1698 obstack_strdup.
1699 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1700 obstack_strdup.
1701 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1702 * stabsread.c (common_block_start): Use obstack_strdup.
1703 * objfiles.c (set_objfile_main_name, objfile): Use
1704 obstack_strdup.
1705 * namespace.c (add_using_directive): Use obstack_strdup.
1706 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1707 * jit.c (finalize_symtab): Use obstack_strdup.
1708 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1709 (guess_partial_die_structure_name, partial_die_info::fixup)
1710 (dwarf2_name): Use obstack_strdup.
1711 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1712 obstack_strdup.
1713 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1714 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1715 obstack_strdup.
1716 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1717
1718 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1719
1720 * unittests/help-doc-selftests.c: New file.
1721 * Makefile.in: Add the new file.
1722
1723 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1724
1725 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1726 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1727 the full first line, except when FOR_VALUE_PREFIX. In this case,
1728 the trailing '.' is not output, and the first character is uppercased.
1729 (print_help_for_command): Update call to print_doc_line.
1730 (print_doc_of_command): Likewise.
1731 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1732 * cli/cli-option.c (append_indented_doc): Do not append newline.
1733 (build_help_option): Append newline after first appended_indented_doc
1734 only if a second call is done.
1735 (build_help): Append 2 new lines before each option, except the first
1736 one.
1737 * compile/compile.c (_initialize_compile): Add new lines after
1738 %OPTIONS%, when not at the end of the help.
1739 Change help doc or code
1740 producing the help doc to respect the invariants.
1741 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1742 Also removed the new line after 'Options:', as all other commands
1743 do not put an empty line between 'Options:' and the first option.
1744 * printcmd.c (_initialize_printcmd): Likewise.
1745 * stack.c (_initialize_stack): Likewise.
1746 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1747 incorrectly telling COMMAND is optional.
1748 * ada-lang.c (_initialize_ada_language): Change help doc or code
1749 producing the help doc to respect the invariants.
1750 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1751 * breakpoint.c (_initialize_breakpoint): Likewise.
1752 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1753 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1754 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1755 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1756 _initialize_cli_style): Likewise.
1757 * corelow.c (core_target_info): Likewise.
1758 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1759 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1760 * filesystem.c (_initialize_filesystem): Likewise.
1761 * frame.c (_initialize_frame): Likewise.
1762 * gnu-nat.c (add_task_commands): Likewise.
1763 * infcall.c (_initialize_infcall): Likewise.
1764 * infcmd.c (_initialize_infcmd): Likewise.
1765 * interps.c (_initialize_interpreter): Likewise.
1766 * language.c (_initialize_language): Likewise.
1767 * linux-fork.c (_initialize_linux_fork): Likewise.
1768 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1769 * maint.c (_initialize_maint_cmds): Likewise.
1770 * memattr.c (_initialize_mem): Likewise.
1771 * printcmd.c (_initialize_printcmd): Likewise.
1772 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1773 _RegEx): Likewise.
1774 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1775 * record-btrace.c (_initialize_record_btrace): Likewise.
1776 * record-full.c (_initialize_record_full): Likewise.
1777 * record.c (_initialize_record): Likewise.
1778 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1779 * regcache.c (_initialize_regcache): Likewise.
1780 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1781 _initialize_remote): Likewise.
1782 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1783 * serial.c (_initialize_serial): Likewise.
1784 * skip.c (_initialize_step_skip): Likewise.
1785 * source.c (_initialize_source): Likewise.
1786 * stack.c (_initialize_stack): Likewise.
1787 * symfile.c (_initialize_symfile): Likewise.
1788 * symtab.c (_initialize_symtab): Likewise.
1789 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1790 * top.c (init_main): Likewise.
1791 * tracefile-tfile.c (tfile_target_info): Likewise.
1792 * tracepoint.c (_initialize_tracepoint): Likewise.
1793 * tui/tui-win.c (_initialize_tui_win): Likewise.
1794 * utils.c (add_internal_problem_command): Likewise.
1795 * valprint.c (value_print_option_defs): Likewise.
1796
1797 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
1798
1799 PR build/24886
1800 * configure.ac: Drop enable-libmcheck support.
1801 * configure, config.in: Rebuild.
1802 * libmcheck.m4: Remove.
1803 * acinclude.m4: Don't include it.
1804 * Makefile.in: Don't distribute it.
1805 * top.c (print_gdb_configuration): Don't mention it.
1806
1807 2019-08-06 Tom Tromey <tom@tromey.com>
1808
1809 * utils.c (set_output_style): Sometimes pass stream to
1810 emit_style_escape.
1811 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1812 * record-btrace.c (btrace_insn_history): Update.
1813 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1814 method.
1815 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1816 Update initializers.
1817 <m_uiout>: New field.
1818 <m_di>: Move lower.
1819 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1820 Remove "uiout" parameter.
1821 (dump_insns): Update.
1822 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1823 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1824
1825 2019-08-06 Christian Biesinger <cbiesinger@google.com>
1826
1827 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1828 (error_in_psymtab_expansion): Likewise.
1829 (lookup_symbol_via_quick_fns): Likewise.
1830 (basic_lookup_transparent_type_quick): Likewise.
1831 (basic_lookup_transparent_type_1): Likewise.
1832
1833 2019-08-06 Tom Tromey <tromey@adacore.com>
1834
1835 * source.c (last_source_error): Now bool.
1836 (print_source_lines_base): Make "noprint" bool. Only open
1837 source file when last_source_visited changes.
1838
1839 2019-08-06 Tom Tromey <tromey@adacore.com>
1840
1841 * annotate.c (annotate_source_line): Use g_source_cache.
1842 * source-cache.c (source_cache::get_plain_source_lines): Change
1843 parameters. Populate m_offset_cache.
1844 (source_cache::ensure): New method.
1845 (source_cache::get_line_charpos): New method.
1846 (extract_lines): Move lower. Change parameters.
1847 (source_cache::get_source_lines): Move lower.
1848 * source-cache.h (class source_cache): Update comment.
1849 <get_line_charpos>: New method.
1850 <get_source_lines>: Update comment.
1851 <clear>: Clear m_offset_cache.
1852 <get_plain_source_lines>: Change parameters.
1853 <ensure>: New method
1854 <m_offset_cache>: New member.
1855 * source.c (forget_cached_source_info_for_objfile): Update.
1856 (info_source_command): Use g_source_cache.
1857 (find_source_lines, open_source_file_with_line_charpos): Remove.
1858 (print_source_lines_base, search_command_helper): Use g_source_cache.
1859 * source.h (open_source_file_with_line_charpos): Don't declare.
1860 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1861 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1862 Use g_source_cache.
1863
1864 2019-08-06 Tom Tromey <tromey@adacore.com>
1865
1866 * source-cache.c (source_cache::get_plain_source_lines):
1867 Remove "first_line" and "last_line" parameters.
1868 (source_cache::get_source_lines): Cache plain text.
1869 * source-cache.h (class source_cache)
1870 <get_plain_source_lines>: Update.
1871
1872 2019-08-06 Tom Tromey <tromey@adacore.com>
1873
1874 * source-cache.c (extract_lines): No longer a method.
1875 Changed type of parameter. Include final newline.
1876 (selftests::extract_lines_test): New function.
1877 (_initialize_source_cache): Likewise.
1878 * source-cache.h (class source_cache)
1879 <extract_lines>: Don't declare.
1880
1881 2019-08-06 Tom Tromey <tromey@adacore.com>
1882
1883 * breakpoint.c (init_breakpoint_sal): Update.
1884 (breakpoint): Update.
1885 * breakpoint.h (struct breakpoint) <filter>: Now a
1886 unique_xmalloc_ptr.
1887
1888 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1889
1890 * NEWS: Mention dictionary access on blocks.
1891 * python/py-block.c (blpy_getitem): New function.
1892 (block_object_as_mapping): New struct.
1893 (block_object_type): Use new struct for tp_as_mapping field.
1894
1895 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1896
1897 * objfiles.h (objfile): Add a comment describing partial symbols.
1898
1899 2019-08-05 Tom Tromey <tromey@adacore.com>
1900
1901 * compile/compile.c (_initialize_compile): Use _(), not N_().
1902 * thread.c (_initialize_thread): Use _(), not N_().
1903 * stack.c (_initialize_stack): Use _(), not N_().
1904 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1905
1906 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1907
1908 * dwarf2read.c (struct dw2_symtab_iterator):
1909 <want_specific_block>: Remove.
1910 <block_index>: Change type to gdb::optional.
1911 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1912 change type of BLOCK_INDEX parameter to gdb::optional.
1913 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1914 (dw2_lookup_symbol): Don't pass argument for
1915 WANT_SPECIFIC_BLOCK.
1916 (dw2_expand_symtabs_for_function): Don't pass argument for
1917 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1918 (class dw2_debug_names_iterator)
1919 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1920 parameter, change BLOCK_INDEX type to gdb::optional.
1921 <m_want_specific_block>: Remove.
1922 <m_block_index>: Change type to gdb::optional.
1923 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1924 gdb::optional. Re-write in function of gdb::optional.
1925 (dw2_debug_names_lookup_symbol): Don't pass argument for
1926 WANT_SPECIFIC_BLOCK.
1927 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1928 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1929 BLOCK_INDEX.
1930
1931 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1932
1933 * NEWS: Mention changes to "info sources" command.
1934
1935 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1936
1937 * symtab.c (filename_partial_match_opts): New struct type.
1938 (struct output_source_filename_data): New members
1939 regexp, c_regexp, partial_match.
1940 (output_source_filename): Use new members to decide to print file.
1941 (info_sources_option_defs): New variable.
1942 (make_info_sources_options_def_group, print_info_sources_header,
1943 info_sources_command_completer):
1944 New functions.
1945 (info_sources_command): Read new optional arguments.
1946 (_initialize_symtab): Update info sources help.
1947
1948 2019-08-02 Alexandre Oliva <oliva@adacore.com>
1949
1950 * ada-lang.c (exception_support_info_v0): Renamed from...
1951 (default_exception_support_info): ... this. Create new
1952 definition for v1.
1953 (ada_has_this_exception_support): Look up catch_handlers_sym.
1954 (ada_exception_support_info_sniffer): Try v0 after default.
1955
1956 2019-08-01 Tom Tromey <tromey@adacore.com>
1957
1958 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1959 gdbarch.h.
1960
1961 2019-08-01 Christian Biesinger <cbiesinger@google.com>
1962
1963 * s12z-tdep.c: Fix include path for s12z-opc.h.
1964
1965 2019-08-01 Alan Hayward <alan.hayward@arm.com>
1966
1967 * NEWS: Require GNU make 3.82.
1968
1969 2019-07-16 Tom Tromey <tom@tromey.com>
1970
1971 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1972 declare.
1973
1974 2019-07-30 Tom Tromey <tromey@adacore.com>
1975
1976 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1977
1978 2019-07-30 Kevin Buettner <kevinb@redhat.com>
1979
1980 * printcmd.c (print_address_symbolic): Print negative offsets.
1981 (build_address_symbolic): Force signed arithmetic when computing
1982 offset.
1983
1984 2019-07-30 Christian Biesinger <cbiesinger@google.com>
1985
1986 PR/24474: Add a function to lookup static variables.
1987 * NEWS: Mention this new function.
1988 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1989 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1990 * python/python.c (python_GdbMethods): Add new function.
1991
1992 2019-07-29 Christian Biesinger <cbiesinger@google.com>
1993
1994 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1995 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1996 (objfpy_lookup_static_symbol): New function.
1997 (objfile_object_methods): Add new functions.
1998
1999 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2000
2001 * NEWS: Mention 'set|show print frame-info'. Mention new
2002 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2003 backtrace argument. Mention that python frame filtering code
2004 is now consistent with what 'backtrace' command prints.
2005
2006 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2007
2008 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2009 comments.
2010 (print_frame_info_auto, print_frame_info_source_line,
2011 print_frame_info_location, print_frame_info_source_and_location,
2012 print_frame_info_location_and_address, print_frame_info_short_location):
2013 New declarations.
2014 (struct frame_print_options): New member print_frame_info.
2015 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2016 * stack.h (get_user_print_what_frame_info): New declaration.
2017 (frame_show_address): New declaration.
2018 * stack.c (print_frame_arguments_choices): New value 'presence'.
2019 (print_frame_info_auto, print_frame_info_source_line,
2020 print_frame_info_location, print_frame_info_source_and_location,
2021 print_frame_info_location_and_address, print_frame_info_short_location,
2022 print_frame_info_choices, print_frame_info_print_what): New definitions.
2023 (print_frame_args): Only print dots for args if print frame-arguments
2024 is 'presence'.
2025 (frame_print_option_defs): New element for "frame-info".
2026 (get_user_print_what_frame_info): New function.
2027 (frame_show_address): Make non static. Move comment to stack.h.
2028 (print_frame_info_to_print_what): New function.
2029 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2030 to decide what to print.
2031 (backtrace_command_1): Handle the new print_frame_arguments_presence
2032 value.
2033 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2034 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2035 (py_print_frame): In non-mi mode, use LOCATION as default for
2036 print_what, similarly to frame information printed directly by
2037 backtrace command. Handle frame-info user option in non MI mode.
2038
2039 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2040
2041 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2042 Add case for debugging 32-bit target on 64-bit host. Revise
2043 comment.
2044
2045 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2046
2047 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2048 instead of find_function_entry_range_from_pc.
2049
2050 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2051
2052 * stack.c (find_frame_funname): Remove code which preferred
2053 minsym over symtab sym in "certain pathological cases".
2054
2055 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2056 parameter. Change type of "do_demangle" to bool.
2057 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2058 Pass suitable "prefer_sym_over_minsym" flag to
2059 build_address_symbolic(). Don't output "+" for negative offsets.
2060 * printcmd.c (print_address_symbolic): Update invocation of
2061 build_address_symbolic to include a "prefer_sym_over_minsym"
2062 flag.
2063 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2064 Restrict cases in which use of minimal symbol is preferred to that
2065 of a found symbol. Update comments.
2066
2067 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2068 for entry pc when entry pc is out of range for that FDE.
2069
2070 2019-07-26 Brian Callahan <bcallah@openbsd.org>
2071
2072 PR gdb/24839:
2073 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2074 type.
2075
2076 2019-07-25 Christian Biesinger <cbiesinger@google.com>
2077
2078 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2079 this function's Python signature.
2080
2081
2082 2019-07-24 Christian Biesinger <cbiesinger@google.com>
2083
2084 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2085 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2086 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2087 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2088 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2089
2090
2091 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2092
2093 * h8300-tdep.c (h8300_register_name_common): New.
2094 h8300_register_name): Use h8300_register_name_common.
2095 (h8300s_register_name): Likewise.
2096 (h8300sx_register_name): Likewise.
2097 (h8300h_register_nam): New.
2098 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2099
2100
2101 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2102
2103 * arm-tdep.c (arm_skip_cmse_entry): New function.
2104 (arm_is_sgstubs_section): New function.
2105 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2106
2107 2019-07-22 Tom Tromey <tom@tromey.com>
2108
2109 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2110 Don't self-assign.
2111
2112 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2113
2114 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2115 type_print.
2116
2117 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2118
2119 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2120 so that GDB doesn't match any msymbols when searching in the
2121 TYPES_DOMAIN.
2122 (print_symbol_info): Print using typedef_print or type_print based
2123 on the type of the symbol. Add updated FIXME comment moved from...
2124 (_initialize_symtab): ... move and update FIXME comment to above.
2125
2126 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2127
2128 * NEWS: Mention adding -q option to "info types".
2129 * symtab.c (struct info_types_options): New struct.
2130 (info_types_options_defs): New variable.
2131 (make_info_types_options_def_group): New function.
2132 (info_types_command): Use gdb::option framework to parse options.
2133 (info_types_command_completer): New function.
2134 (_initialize_symtab): Extend the help text on "info types" and
2135 register command completer.
2136
2137 2019-07-21 Christian Biesinger <cbiesinger@google.com>
2138
2139 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2140 (lookup_symbol_in_objfile): Change int to block_enum and add a
2141 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2142
2143 2019-07-20 Christian Biesinger <cbiesinger@google.com>
2144
2145 * MAINTAINERS (Write After Approval): Add self.
2146
2147 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2148
2149 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2150 instruction to the dummy code region.
2151
2152 2019-07-19 Tom Tromey <tromey@adacore.com>
2153
2154 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2155 (ARGSUSED, PARAMS, __func__): Remove rules.
2156
2157 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2158
2159 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2160 * features/arm/arm-with-iwmmxt.c: Remove.
2161 * features/arm/arm-with-iwmmxt.xml: Remove.
2162 * features/arm/arm-with-m-fpa-layout.c: Remove.
2163 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2164 * features/arm/arm-with-m-vfp-d16.c: Remove.
2165 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2166 * features/arm/arm-with-m.c: Remove.
2167 * features/arm/arm-with-m.xml: Remove.
2168 * features/arm/arm-with-neon.c: Remove.
2169 * features/arm/arm-with-neon.xml: Remove.
2170 * features/arm/arm-with-vfpv2.c: Remove.
2171 * features/arm/arm-with-vfpv2.xml: Remove.
2172 * features/arm/arm-with-vfpv3.c: Remove.
2173 * features/arm/arm-with-vfpv3.xml: Remove.
2174
2175 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2176
2177 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2178
2179 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2180
2181 * arch/aarch32.c (aarch32_create_target_description): Create
2182 target descriptions using features.
2183 * arch/arm.c (arm_create_target_description)
2184 (arm_create_mprofile_target_description): Likewise.
2185 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2186
2187 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2188
2189 * Makefile.in: Add new files.
2190 * aarch32-tdep.c: New file.
2191 * aarch32-tdep.h: New file.
2192 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2193 Call aarch32_read_description.
2194 * arch/aarch32.c: New file.
2195 * arch/aarch32.h: New file.
2196 * arch/arm.c (arm_create_target_description)
2197 (arm_create_mprofile_target_description): New function.
2198 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2199 (arm_create_target_description)
2200 (arm_create_mprofile_target_description): New declaration.
2201 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2202 read_description functions.
2203 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2204 Likewise.
2205 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2206 * arm-tdep.c (tdesc_arm_list): New variable.
2207 (arm_register_g_packet_guesses): Call create description functions.
2208 (arm_read_description) (arm_read_mprofile_description): New
2209 function.
2210 * arm-tdep.h (arm_read_description)
2211 (arm_read_mprofile_description): Add declaration.
2212 * configure.tgt: Add new files.
2213
2214 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2215
2216 * top.c (new_ui_command): Open specified terminal just once.
2217
2218 2019-07-18 Tom Tromey <tromey@adacore.com>
2219
2220 * symtab.c (main_name): Constify return type.
2221 * symfile.c (set_initial_language): Update.
2222 * symtab.h (main_name): Constify return type.
2223
2224 2019-07-17 Tom Tromey <tom@tromey.com>
2225
2226 * tui/tui-winsource.c (tui_update_source_window)
2227 (tui_update_source_window_as_is)
2228 (tui_update_source_windows_with_line): Remove return.
2229 * tui/tui-disasm.c (tui_show_disassem)
2230 (tui_show_disassem_and_update_source): Remove return.
2231 * tui/tui.c (tui_reset): Remove return.
2232 * tui/tui-wingeneral.c
2233 (tui_check_and_display_highlight_if_needed): Remove return.
2234
2235 2019-07-17 Tom Tromey <tom@tromey.com>
2236
2237 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2238
2239 2019-07-17 Tom Tromey <tom@tromey.com>
2240
2241 * tui/tui-winsource.h (struct tui_exec_info_window)
2242 (struct tui_source_window_base): Move from tui-data.h.
2243 * tui/tui-winsource.c: Move many method definitions from
2244 elsewhere. Remove "structuring" comments.
2245 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2246 (tui_source_window_base::refresh_window): Move to
2247 tui-winsource.c.
2248 * tui/tui-win.c (tui_source_window_base::refresh_all)
2249 (tui_source_window_base::update_tab_width)
2250 (tui_source_window_base::set_new_height)
2251 (tui_source_window_base::do_make_visible_with_new_height): Move to
2252 tui-winsource.c.
2253 * tui/tui-source.h: Update.
2254 * tui/tui-source.c (tui_source_window_base::reset): Move to
2255 tui-winsource.c.
2256 * tui/tui-disasm.h: Update.
2257 * tui/tui-data.h (struct tui_exec_info_window): Move to
2258 tui-winsource.h.
2259 (struct tui_source_window_base): Likewise.
2260 * tui/tui-data.c (tui_source_window_base::clear_detail)
2261 (tui_source_window_base, ~tui_source_window_base): Move to
2262 tui-winsource.c.
2263
2264 2019-07-17 Tom Tromey <tom@tromey.com>
2265
2266 * tui/tui-win.c (tui_resize_all)
2267 (tui_source_window_base::update_tab_width)
2268 (tui_adjust_win_heights): Update.
2269 (tui_win_info::make_invisible_and_set_new_height): Rename from
2270 make_invisible_and_set_new_height.
2271 * tui/tui-data.h (struct tui_win_info)
2272 <make_invisible_and_set_new_height>: New method.
2273
2274 2019-07-17 Tom Tromey <tom@tromey.com>
2275
2276 * tui/tui.c: Update.
2277 * tui/tui-source.h (struct tui_source_window): Move from
2278 tui-data.h.
2279 * tui/tui-layout.c: Update.
2280 * tui/tui-disasm.c: Update.
2281 * tui/tui-data.h (struct tui_source_window): Move to
2282 tui-source.h.
2283
2284 2019-07-17 Tom Tromey <tom@tromey.com>
2285
2286 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2287 tui-data.h.
2288 * tui/tui-data.h (struct tui_disasm_window): Move to
2289 tui-disasm.h.
2290
2291 2019-07-17 Tom Tromey <tom@tromey.com>
2292
2293 * tui/tui-regs.h (struct tui_data_item_window): Move from
2294 tui-data.h.
2295 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2296 * tui/tui-data.h (struct tui_data_item_window): Move to
2297 tui-regs.h.
2298 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2299
2300 2019-07-17 Tom Tromey <tom@tromey.com>
2301
2302 * tui/tui.c: Update.
2303 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2304 (tui_cmd_window::max_height): Move to tui-command.c.
2305 * tui/tui-layout.c: Update.
2306 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2307 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2308 tui-command.c.
2309 * tui/tui-command.h (struct tui_cmd_window): Move from
2310 tui-data.h.
2311 * tui/tui-command.c: Remove "structuring" comments.
2312 (tui_cmd_window::clear_detail)
2313 (tui_cmd_window::do_make_visible_with_new_height)
2314 (tui_cmd_window::max_height): Move from elsewhere.
2315
2316 2019-07-17 Tom Tromey <tom@tromey.com>
2317
2318 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2319 Now static.
2320 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2321 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2322
2323 2019-07-17 Tom Tromey <tom@tromey.com>
2324
2325 * tui/tui.c: Update.
2326 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2327 tui-regs.c.
2328 * tui/tui-windata.h: Remove file.
2329 * tui/tui-windata.c: Remove file.
2330 * tui/tui-win.c (tui_data_window::set_new_height)
2331 (tui_data_window::do_make_visible_with_new_height): Move to
2332 tui-regs.c.
2333 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2334 * tui/tui-regs.c: Remove "structuring" comments.
2335 (tui_data_window::first_data_item_displayed)
2336 (tui_data_window::delete_data_content_windows)
2337 (tui_data_window::erase_data_content)
2338 (tui_data_window::display_all_data)
2339 (tui_data_window::refresh_all)
2340 (tui_data_window::do_scroll_vertical)
2341 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2342 (tui_data_window::do_make_visible_with_new_height)
2343 (tui_data_window::refresh_window): Move from elsewhere.
2344 (_initialize_tui_regs): Move to end of file.
2345 * tui/tui-layout.c: Update.
2346 * tui/tui-hooks.c: Update.
2347 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2348 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2349 tui-regs.c.
2350 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2351
2352 2019-07-17 Tom Tromey <tom@tromey.com>
2353
2354 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2355 seen.
2356
2357 2019-07-17 Tom Tromey <tom@tromey.com>
2358
2359 * tui/tui-win.c (tui_source_window_base::set_new_height)
2360 (tui_source_window_base::do_make_visible_with_new_height): Use
2361 m_has_locator field directly.
2362 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2363 method.
2364 (struct tui_source_window_base) <has_locator>: Likewise.
2365
2366 2019-07-17 Tom Tromey <tom@tromey.com>
2367
2368 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2369 Don't declare.
2370 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2371 Remove.
2372 * tui/tui-win.c (tui_source_window_base::set_new_height)
2373 (tui_source_window_base::set_new_height)
2374 (make_invisible_and_set_new_height)
2375 (tui_source_window_base::do_make_visible_with_new_height)
2376 (tui_source_window_base::do_make_visible_with_new_height):
2377 Update.
2378 * tui/tui-layout.c (show_source_disasm_command, show_data)
2379 (show_source_or_disasm_and_command): Update.
2380 * tui/tui-layout.c (show_layout): Update.
2381
2382 2019-07-17 Tom Tromey <tom@tromey.com>
2383
2384 * tui/tui-layout.c (make_data_window): Remove.
2385 (show_data): Unify creation and re-initialization cases.
2386
2387 2019-07-17 Tom Tromey <tom@tromey.com>
2388
2389 * tui/tui-layout.c (make_source_window, make_disasm_window):
2390 Remove.
2391 (show_data): Unify creation and re-initialization cases.
2392
2393 2019-07-17 Tom Tromey <tom@tromey.com>
2394
2395 * tui/tui-layout.c (make_command_window): Remove.
2396 (show_source_disasm_command, show_source_or_disasm_and_command):
2397 Unify creation and re-initialization cases.
2398
2399 2019-07-17 Tom Tromey <tom@tromey.com>
2400
2401 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2402 creation and re-initialization cases.
2403
2404 2019-07-17 Tom Tromey <tom@tromey.com>
2405
2406 * tui/tui-regs.c (tui_get_register): Return void.
2407
2408 2019-07-17 Tom Tromey <tom@tromey.com>
2409
2410 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2411 Simplify.
2412
2413 2019-07-17 Tom Tromey <tom@tromey.com>
2414
2415 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2416 resetting.
2417
2418 2019-07-17 Tom Tromey <tom@tromey.com>
2419
2420 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2421 * tui/tui-regs.c (tui_reg_layout): New function.
2422 (tui_show_registers, tui_reg_command): Use it.
2423 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2424 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2425 parameters.
2426 (tui_layout_command): Remove.
2427
2428 2019-07-17 Tom Tromey <tom@tromey.com>
2429
2430 * tui/tui-layout.h (tui/tui-layout): Return void.
2431 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2432
2433 2019-07-17 Tom Tromey <tom@tromey.com>
2434
2435 * tui/tui-layout.c (show_source_disasm_command, show_data):
2436 Update.
2437 (reset_locator): Remove.
2438 (show_source_or_disasm_and_command): Update.
2439
2440 2019-07-17 Tom Tromey <tom@tromey.com>
2441
2442 * tui/tui-source.c (tui_source_window_base::reset): Remove
2443 win_type parameter.
2444 * tui/tui-layout.c (make_command_window, make_source_window)
2445 (make_disasm_window, make_data_window)
2446 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2447 (reset_locator, show_source_or_disasm_and_command): Update.
2448 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2449 win_type parameter.
2450 (struct tui_source_window_base) <reset>: Likewise.
2451
2452 2019-07-17 Tom Tromey <tom@tromey.com>
2453
2454 * tui/tui-layout.c (show_source_disasm_command): Use
2455 reset_locator.
2456 (reset_locator): New function.
2457 (init_and_make_win): Remove.
2458 (show_source_or_disasm_and_command): Use reset_locator.
2459
2460 2019-07-17 Tom Tromey <tom@tromey.com>
2461
2462 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2463 condition.
2464 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2465 Remove condition.
2466 * tui/tui-source.c (tui_source_window_base::reset): New method.
2467 * tui/tui-layout.c (make_command_window): Don't call
2468 init_and_make_win.
2469 (make_source_window, make_disasm_window): Don't call
2470 make_source_or_disasm_window.
2471 (make_data_window): Don't call init_and_make_win. Change calling
2472 convention.
2473 (show_source_disasm_command, show_data): Simplify.
2474 (make_source_or_disasm_window): Remove.
2475 (show_source_or_disasm_and_command): Simplify.
2476 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2477 (struct tui_source_window_base) <reset>: Likewise.
2478 <execution_info>: Remove initializer.
2479 * tui/tui-data.c (tui_source_window_base): Initialize
2480 execution_info.
2481
2482 2019-07-17 Tom Tromey <tom@tromey.com>
2483
2484 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2485 variable.
2486
2487 2019-07-17 Tom Tromey <tom@tromey.com>
2488
2489 * tui/tui.c (tui_rl_other_window): Update.
2490 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2491 superclass method first. Always iterate over regs_content.
2492 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2493 method.
2494 * tui/tui-win.c (tui_set_focus_command): Update.
2495
2496 2019-07-17 Tom Tromey <tom@tromey.com>
2497
2498 * tui/tui-win.c (tui_set_focus_command): Rename from
2499 tui_set_focus. Call tui_enable.
2500 (tui_set_focus_command): Remove.
2501
2502 2019-07-17 Tom Tromey <tom@tromey.com>
2503
2504 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2505 refresh_window.
2506 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2507 touchwin.
2508 (tui_data_window::refresh_window): Call refresh_window on data
2509 items. Always call superclass refresh_window.
2510 (tui_win_info::refresh): Remove.
2511 (tui_source_window_base::refresh_window): Update.
2512 (tui_refresh_all): Update.
2513 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2514 refresh_window.
2515 (show_source_or_disasm_and_command): Likewise.
2516 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2517 (struct tui_source_window_base) <refresh>: Likewise.
2518
2519 2019-07-17 Tom Tromey <tom@tromey.com>
2520
2521 * tui/tui-winsource.c (tui_clear_source_content)
2522 (tui_show_source_content): Update.
2523 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2524 whether content is empty.
2525 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2526 Remove.
2527
2528 2019-07-17 Tom Tromey <tom@tromey.com>
2529
2530 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2531 window's contents.
2532 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2533 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2534
2535 2019-07-17 Tom Tromey <tom@tromey.com>
2536
2537 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2538 (struct tui_data_item_window): Update.
2539
2540 2019-07-17 Tom Tromey <tom@tromey.com>
2541
2542 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2543 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2544 defines.
2545
2546 2019-07-17 Tom Tromey <tom@tromey.com>
2547
2548 * tui/tui-winsource.h (tui_erase_source_content)
2549 (tui_clear_source_content): Remove "display_prompt" parameter.
2550 * tui/tui-winsource.c (tui_update_source_window_as_is)
2551 (tui_update_source_windows_with_addr): Update.
2552 (tui_clear_source_content): Remove "display_prompt" parameter.
2553 (tui_erase_source_content): Likewise. Simplify.
2554 (tui_show_source_content): Update.
2555 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2556 * tui/tui-stack.c (tui_show_frame_info): Update.
2557 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2558 Remove defines.
2559
2560 2019-07-17 Tom Tromey <tom@tromey.com>
2561
2562 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2563 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2564 parameter.
2565 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2566 parameter.
2567
2568 2019-07-17 Tom Tromey <tom@tromey.com>
2569
2570 * tui/tui-winsource.c (tui_clear_source_content)
2571 (tui_show_source_content, tui_show_exec_info_content)
2572 (tui_clear_exec_info_content): Update.
2573 * tui/tui-stack.c (tui_show_locator_content): Update.
2574 (tui_show_frame_info): Update.
2575 * tui/tui-source.h (tui_source_window): Don't declare.
2576 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2577 from tui_source_is_displayed.
2578 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2579 Remove field.
2580 (struct tui_source_window_base) <content_in_use>: New field. Now
2581 bool.
2582 (struct tui_source_window) <showing_source_p>: New method.
2583 (TUI_SRC_WIN): Change cast.
2584 * tui/tui-data.c (tui_initialize_static_data): Update.
2585
2586 2019-07-17 Tom Tromey <tom@tromey.com>
2587
2588 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2589 location_matches_p.
2590 * tui/tui-source.c (tui_source_window::location_matches_p): New
2591 method.
2592 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2593 method.
2594 * tui/tui-data.h (struct tui_source_window_base)
2595 <location_matches_p>: New method.
2596 (struct tui_source_window, struct tui_disasm_window)
2597 <location_matches_p>: Likewise.
2598
2599 2019-07-17 Tom Tromey <tom@tromey.com>
2600
2601 * tui/tui-win.c (tui_set_win_height_command): Rename from
2602 tui_set_win_height.
2603 (tui_set_win_height_command): Remove.
2604
2605 2019-07-17 Tom Tromey <tom@tromey.com>
2606
2607 * tui/tui-source.c (tui_source_window): New constructor. Add
2608 observer.
2609 (~tui_source_window): New destructor.
2610 (tui_source_window::style_changed): New method.
2611 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2612 (tui_attach_detach_observers): Update.
2613 * tui/tui-data.h (struct tui_source_window): Make constructor not
2614 inline. Add destructor.
2615 (struct tui_source_window) <style_changed>: New method.
2616 <m_observable>: New member.
2617
2618 2019-07-17 Tom Tromey <tom@tromey.com>
2619
2620 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2621 * tui/tui-win.c (tui_resize_all): Fix typo.
2622
2623 2019-07-17 Tom Tromey <tom@tromey.com>
2624
2625 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2626 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2627 (tui_refresh_all): Remove "list" parameter. Use foreach.
2628 * tui/tui-win.c (window_name_completer): Use foreach.
2629 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2630 (update_tab_width): Likewise.
2631 * tui/tui-layout.c (show_layout): Update.
2632 * tui/tui-data.h (class tui_window_iterator): New.
2633 (struct all_tui_windows): New.
2634 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2635
2636 2019-07-17 Tom Tromey <tom@tromey.com>
2637
2638 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2639 parameter. Don't reference globals.
2640 (tui_reg_command): Update.
2641
2642 2019-07-17 Tom Tromey <tom@tromey.com>
2643
2644 * tui/tui-regs.c (tui_show_registers): Simplify.
2645
2646 2019-07-17 Tom Tromey <tom@tromey.com>
2647
2648 * tui/tui-regs.c (tui_show_registers): Update.
2649 (tui_show_register_group): Add win_info parameter.
2650
2651 2019-07-17 Tom Tromey <tom@tromey.com>
2652
2653 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2654 Rename from tui_display_reg_element_at_line.
2655 (tui_data_window::display_registers_from_line): Update.
2656 * tui/tui-data.h (struct tui_data_window)
2657 <display_reg_element_at_line>: New method.
2658
2659 2019-07-17 Tom Tromey <tom@tromey.com>
2660
2661 * tui/tui-regs.h (tui_display_registers_from)
2662 (tui_display_registers_from_line): Don't declare.
2663 * tui/tui-windata.c (tui_data_window::display_all_data)
2664 (tui_data_window::refresh_all)
2665 (tui_data_window::do_scroll_vertical): Update.
2666 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2667 from tui_display_registers_from.
2668 (tui_display_reg_element_at_line): Update.
2669 (tui_data_window::display_registers_from_line): Rename from
2670 tui_display_registers_from_line.
2671 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2672 display_registers_from_line>: New methods.
2673
2674 2019-07-17 Tom Tromey <tom@tromey.com>
2675
2676 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2677 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2678 from tui_erase_data_content.
2679 (tui_data_window::display_all_data)
2680 (tui_data_window::refresh_all)
2681 (tui_data_window::do_scroll_vertical): Update.
2682 * tui/tui-regs.c (tui_show_registers): Update.
2683 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2684 New method.
2685
2686 2019-07-17 Tom Tromey <tom@tromey.com>
2687
2688 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2689 declare.
2690 * tui/tui-windata.c
2691 (tui_data_window::delete_data_content_windows): Rename from
2692 tui_delete_data_content_windows.
2693 (tui_data_window::display_all_data)
2694 (tui_data_window::do_scroll_vertical): Update.
2695 * tui/tui-data.h (struct tui_data_window)
2696 <delete_data_content_windows>: New method.
2697
2698 2019-07-17 Tom Tromey <tom@tromey.com>
2699
2700 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2701 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2702
2703 2019-07-17 Tom Tromey <tom@tromey.com>
2704
2705 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2706 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2707 from tui_display_all_data.
2708 * tui/tui-win.c
2709 (tui_data_window::do_make_visible_with_new_height): Update.
2710 * tui/tui-regs.c (tui_show_registers): Update.
2711 * tui/tui-layout.c (tui_set_layout): Update.
2712 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2713 method.
2714
2715 2019-07-17 Tom Tromey <tom@tromey.com>
2716
2717 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2718 * tui/tui-windata.c (tui_display_data_from): Remove.
2719 (tui_data_window::refresh_all): Update.
2720
2721 2019-07-17 Tom Tromey <tom@tromey.com>
2722
2723 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2724 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2725 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2726 tui_display_registers_from_line.
2727 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2728 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2729 "force_display" parameter.
2730
2731 2019-07-17 Tom Tromey <tom@tromey.com>
2732
2733 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2734 declare.
2735 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2736 Rename from tui_first_reg_element_no_inline.
2737 (tui_display_reg_element_at_line)
2738 (tui_display_registers_from_line): Update.
2739 * tui/tui-data.h (struct tui_data_window)
2740 <first_reg_element_no_inline>: New method.
2741
2742 2019-07-17 Tom Tromey <tom@tromey.com>
2743
2744 * tui/tui-windata.c (tui_display_data_from)
2745 (tui_data_window::do_scroll_vertical): Update.
2746 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2747 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2748 Rename from tui_line_from_reg_element_no.
2749 (tui_display_registers_from_line): Update.
2750 * tui/tui-data.h (struct tui_data_window)
2751 <line_from_reg_element_no>: New method.
2752
2753 2019-07-17 Tom Tromey <tom@tromey.com>
2754
2755 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2756 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2757 tui_last_regs_line_no.
2758 (tui_display_reg_element_at_line)
2759 (tui_display_registers_from_line): Update.
2760 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2761 method.
2762
2763 2019-07-17 Tom Tromey <tom@tromey.com>
2764
2765 PR tui/24722:
2766 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2767 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2768 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2769 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2770 (tui_update_breakpoint_info): Likewise.
2771 * tui/tui-hooks.c (tui_event_create_breakpoint)
2772 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2773 Update.
2774
2775 2019-07-17 Tom Tromey <tom@tromey.com>
2776
2777 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2778
2779 2019-07-17 Tom Tromey <tom@tromey.com>
2780
2781 * tui/tui-winsource.c (tui_update_source_window_as_is)
2782 (tui_update_source_windows_with_addr): Update.
2783 * tui/tui-source.h (tui_set_source_content)
2784 (tui_show_symtab_source): Add "win_info" parameter.
2785 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2786 parameter.
2787 (tui_show_symtab_source): Likewise.
2788
2789 2019-07-17 Tom Tromey <tom@tromey.com>
2790
2791 * tui/tui-wingeneral.c
2792 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2793
2794 2019-07-17 Tom Tromey <tom@tromey.com>
2795
2796 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2797 (struct tui_cmd_window) <can_scroll>: New method.
2798 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2799 method.
2800
2801 2019-07-17 Tom Tromey <tromey@adacore.com>
2802
2803 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2804 do_field_signed>: Rename. Change type of "value".
2805 * ui-out.c (ui_out::field_signed): Rename from field_int.
2806 Change type of "value".
2807 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2808 type of "value".
2809 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2810 do_field_int. Change type of "value".
2811 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2812 do_field_int. Change type of "value".
2813 * tracepoint.c (trace_status_mi, tfind_1)
2814 (print_one_static_tracepoint_marker): Update.
2815 * thread.c (print_thread_info_1, print_selected_thread_frame):
2816 Update.
2817 * stack.c (print_frame, print_frame_info): Update.
2818 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2819 Update.
2820 * source.c (print_source_lines_base): Update.
2821 * skip.c (info_skip_command): Update.
2822 * record-btrace.c (btrace_ui_out_decode_error)
2823 (btrace_call_history_src_line): Update.
2824 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2825 Update.
2826 * progspace.c (print_program_space): Update.
2827 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2828 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2829 do_field_int. Change type of "value".
2830 * mi/mi-out.c (mi_ui_out::do_table_begin)
2831 (mi_ui_out::do_table_header): Update.
2832 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2833 type of "value".
2834 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2835 (mi_cmd_data_list_changed_registers, output_register)
2836 (mi_cmd_data_read_memory, mi_load_progress)
2837 (mi_cmd_trace_frame_collected): Update.
2838 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2839 Update.
2840 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2841 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2842 (mi_cmd_var_list_children, varobj_update_one): Update.
2843 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2844 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2845 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2846 * inferior.c (print_inferior): Update.
2847 * gdb_bfd.c (print_one_bfd): Update.
2848 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2849 Update.
2850 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2851 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2852 do_field_int. Change type of "value".
2853 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2854 do_field_int. Change type of "value".
2855 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2856 (print_one_breakpoint_location, print_it_catch_fork)
2857 (print_one_catch_fork, print_it_catch_vfork)
2858 (print_one_catch_vfork, print_it_catch_solib)
2859 (print_it_catch_exec, print_it_ranged_breakpoint)
2860 (print_mention_watchpoint, print_mention_masked_watchpoint)
2861 (bkpt_print_it, update_static_tracepoint): Update.
2862 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2863 * break-catch-syscall.c (print_it_catch_syscall): Update.
2864 * ada-tasks.c (print_ada_task_info): Update.
2865 * ada-lang.c (print_it_exception, print_mention_exception):
2866 Update.
2867
2868 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2869
2870 PR breakpoints/24541
2871 * gdbarch.c: Regenerate.
2872 * gdbarch.h: Regenerate.
2873 * gdbarch.sh: Adjust return type and parameter types for
2874 'stap_adjust_register'.
2875 (i386_stap_adjust_register): Adjust signature and return new
2876 register name.
2877 * stap-probe.c (stap_parse_register_operand): Adjust use of
2878 'gdbarch_stap_adjust_register'.
2879
2880 2019-07-17 Tom Tromey <tromey@adacore.com>
2881
2882 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2883 declare VEC.
2884 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2885 std::vector.
2886 (struct s390_process_info): Add initializers.
2887 (s390_add_process): Use new.
2888 (s390_linux_nat_target::low_forget_process): Use delete.
2889 (s390_linux_nat_target::low_new_fork)
2890 (s390_linux_nat_target::stopped_by_watchpoint)
2891 (s390_linux_nat_target::low_prepare_to_resume)
2892 (s390_linux_nat_target::insert_watchpoint)
2893 (s390_linux_nat_target::insert_hw_breakpoint)
2894 (s390_linux_nat_target::remove_watchpoint)
2895 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2896
2897 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2898
2899 * aarch64-fbsd-nat.c: Include regcache.h.
2900 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2901 argument.
2902 (aarch64_fbsd_nat_target::fetch_registers)
2903 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2904 variable.
2905 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2906
2907 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2908
2909 * fbsd-nat.c: Include gdbarch.h.
2910
2911 2019-07-15 Tom Tromey <tromey@adacore.com>
2912
2913 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2914
2915 2019-07-15 Tom Tromey <tromey@adacore.com>
2916
2917 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2918 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2919 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2920 * cli-out.c (cli_ui_out::do_field_int): New method.
2921 * ui-out.c (ui_out::field_unsigned): New method.
2922 * symfile.c (generic_load): Use field_unsigned.
2923 (print_transfer_performance): Likewise.
2924 * record-btrace.c (ui_out_field_uint): Remove.
2925 (btrace_call_history_insn_range, btrace_call_history): Use
2926 field_unsigned.
2927 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2928 field_unsigned.
2929 * ui-out.h (class ui_out) <field_unsigned>: New method.
2930 <do_field_unsigned>: Likewise.
2931
2932 2019-07-15 Tom Tromey <tromey@adacore.com>
2933
2934 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2935 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2936 * target.c (flash_erase_command): Use field_string.
2937 * infrun.c (print_signal_received_reason): Use field_string.
2938 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2939 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2940 field_string.
2941 * ada-tasks.c (print_ada_task_info): Use field_string.
2942
2943 2019-07-15 Tom Tromey <tromey@adacore.com>
2944
2945 * target.c (flash_erase_command): Use field_core_addr.
2946 * symfile.c (generic_load): Use field_core_addr.
2947 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2948 Use field_core_addr.
2949 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2950 field_core_addr.
2951
2952 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2953
2954 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2955 value if its desired type is smaller than a CORE_ADDR and signed.
2956
2957 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2958
2959 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2960 of changes to field names, and use new is_reference field to
2961 decide if a property is a reference or not.
2962 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2963 field.
2964 (struct dwarf2_property_baton): Update header comment, rename
2965 'referenced_type' to 'property_type' and update comments.
2966 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2967 default property type, store in property baton, update to take
2968 accound of renamed field.
2969 (read_func_scope): Update call to attr_to_dynamic_prop.
2970 (read_array_type): Likewise.
2971 (dwarf2_per_cu_addr_sized_int_type): New function.
2972 (read_subrange_index_type): Move type finding code to
2973 dwarf2_per_cu_addr_sized_int_type.
2974 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2975 (dwarf2_per_cu_addr_type): New function.
2976 (set_die_type): Update calls to attr_to_dynamic_prop.
2977
2978 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2979
2980 * dwarf2read.c (read_subrange_index_type): New function.
2981 (read_subrange_type): Move code into new function and call it.
2982 * gdbtypes.c (create_range_type): Add some asserts.
2983
2984 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2985
2986 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2987 update return statements.
2988 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2989 declaration, and update comment to match.
2990 * gdbtypes.c (resolve_dynamic_array): Update call to
2991 dwarf2_evaluate_property to match new return type.
2992
2993 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2994
2995 * valarith.c (value_subscripted_rvalue): Change lowerbound
2996 parameter type from int to LONGEST.
2997 * value.h (value_subscripted_rvalue): Likewise in declaration.
2998
2999 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3000
3001 * cli/cli-utils.c (info_print_command_completer): New function.
3002 * cli/cli-utils.h: Add 'completer.h' include, and forward
3003 declaration for 'struct cmd_list_element'.
3004 (info_print_command_completer): Declare.
3005 * stack.c (_initialize_stack): Add completer for 'info locals' and
3006 'info args'.
3007 * symtab.c (_initialize_symtab): Add completer for 'info
3008 variables' and 'info functions'.
3009 * NEWS: Mention completion for additional info commands.
3010
3011 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3012
3013 * cli/cli-utils.c (extract_info_print_args): Delete.
3014 (extract_arg_maybe_quoted): Delete.
3015 (info_print_options_defs): New variable.
3016 (make_info_print_options_def_group): New function.
3017 (extract_info_print_options): Define new function.
3018 * cli/cli-utils.h (extract_info_print_args): Delete.
3019 (struct info_print_options): New structure.
3020 (extract_info_print_options): Declare new function.
3021 * stack.c (info_locals_command): Update to use new
3022 extract_info_print_options, also add a header comment.
3023 (info_args_command): Likewise.
3024 * symtab.c (info_variables_command): Likewise.
3025 (info_functions_command): Likewise.
3026
3027 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3028
3029 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3030 to extract string arguments.
3031 * common/common-utils.c (extract_string_maybe_quoted): New function.
3032 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3033
3034 2019-07-11 Tom Tromey <tromey@adacore.com>
3035
3036 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3037 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3038 * top.h (gdbinit): Don't declare.
3039 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3040 into...
3041 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3042 * top.c (gdb_init): Don't call init_cli_cmds.
3043 (gdbinit): Remove.
3044 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3045
3046 2019-07-11 Tom Tromey <tromey@adacore.com>
3047
3048 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3049 after it has been moved.
3050
3051 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3052
3053 * valops.c (value_must_coerce_to_target): Change return type to
3054 bool.
3055 * value.h (value_must_coerce_to_target): Likewise.
3056
3057 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
3058
3059 * breakpoint.c (is_hardware_watchpoint): Remove
3060 forward-declaration.
3061 (is_masked_watchpoint): Change return type to bool.
3062 (is_tracepoint): Likewise.
3063 (is_breakpoint): Likewise.
3064 (is_hardware_watchpoint): Likewise.
3065 (is_watchpoint): Likewise.
3066 (is_no_memory_software_watchpoint): Likewise.
3067 (is_catchpoint): Likewise.
3068 (breakpoint_1): Make FILTER parameter's return type bool.
3069 is_masked_watchpoint): Change return type to bool.
3070 (save_breakpoints): Make FILTER parameter's return type bool.
3071 * breakpoint.h (is_breakpoint): Change return type to bool.
3072 (is_watchpoint): Likewise.
3073 (is_catchpoint): Likewise.
3074 (is_tracepoint): Likewise.
3075
3076 2019-07-10 Tom Tromey <tom@tromey.com>
3077
3078 * defs.h: Don't include gdbarch.h.
3079 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3080 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3081 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3082 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3083 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3084 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3085 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3086 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3087 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3088 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3089 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3090 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3091 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3092 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3093 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3094 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3095 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3096 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3097 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3098 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3099 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3100 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3101 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3102 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3103 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3104 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3105 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3106
3107 2019-07-10 Tom Tromey <tromey@adacore.com>
3108
3109 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3110 * breakpoint.c (init_ada_exception_breakpoint): Register as
3111 bp_catchpoint.
3112 (print_one_breakpoint_location, print_one_breakpoint): Use
3113 is_ada_exception_catchpoint.
3114 * ada-lang.c (class ada_catchpoint_location): Pass
3115 bp_loc_software_breakpoint to bp_location constructor.
3116 (is_ada_exception_catchpoint): New function.
3117
3118 2019-07-10 Tom Tromey <tromey@adacore.com>
3119
3120 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3121 VEC.
3122 (struct arm_exidx_entry): New method operator<.
3123 (struct arm_exidx_data) <section_maps>: Change type.
3124 (arm_exidx_data_free): Remove.
3125 (arm_exidx_data_key): Change type. Move lower.
3126 (arm_exidx_new_objfile): Update.
3127 (arm_compare_exidx_entries): Remove.
3128 (arm_find_exidx_entry, _initialize_arm_tdep)
3129
3130 2019-07-10 Tom Tromey <tromey@adacore.com>
3131
3132 * solib-spu.c (ocl_program_data_key): Change type.
3133 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3134 Update.
3135
3136 2019-07-10 Tom Tromey <tromey@adacore.com>
3137
3138 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3139 (struct solib_aix_inferior_data) <library_list>: Change type.
3140 (solib_aix_inferior_data_handle): Change type.
3141 (get_solib_aix_inferior_data): Update.
3142 (solib_aix_free_library_list): Remove.
3143 (library_list_start_library): Update.
3144 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3145 return type.
3146 (solib_aix_get_library_list)
3147 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3148 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3149
3150 2019-07-10 Tom Tromey <tromey@adacore.com>
3151
3152 * solib-dsbt.c (struct dsbt_info): Add initializers.
3153 (solib_dsbt_pspace_data): Change type.
3154 (dsbt_pspace_data_cleanup): Remove.
3155 (get_dsbt_info, _initialize_dsbt_solib): Update.
3156
3157 2019-07-10 Tom Tromey <tromey@adacore.com>
3158
3159 * spu-tdep.c (spu_overlay_data): Change type.
3160 (spu_get_overlay_table, spu_overlay_new_objfile)
3161 (_initialize_spu_tdep): Update.
3162
3163 2019-07-10 Tom Tromey <tromey@adacore.com>
3164
3165 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3166 destructor.
3167 (dbx_objfile_data_key): Change type and declare later.
3168 (DBX_SYMFILE_INFO): Rewrite.
3169 * dbxread.c (dbx_objfile_data_key): Change type.
3170 (dbx_symfile_init): Update.
3171 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3172 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3173 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3174
3175 2019-07-10 Tom Tromey <tromey@adacore.com>
3176
3177 * jit.c (jit_program_space_key): Change type. Move lower.
3178 (get_jit_program_space_data): Update.
3179 (jit_program_space_data_cleanup): Remove.
3180 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3181 Update.
3182 (struct jit_program_space_data): Add initializers.
3183
3184 2019-07-10 Tom Tromey <tromey@adacore.com>
3185
3186 * solib-darwin.c (struct darwin_info): Add initializers.
3187 (solib_darwin_pspace_data): Change type.
3188 (darwin_pspace_data_cleanup): Remove.
3189 (get_darwin_info, _initialize_darwin_solib): Update.
3190
3191 2019-07-10 Tom Tromey <tromey@adacore.com>
3192
3193 * remote-sim.c (struct sim_inferior_data): Add initializers,
3194 constructor, and destructor.
3195 (sim_inferior_data_key): Change type. Move lower.
3196 (check_for_duplicate_sim_descriptor): Update.
3197 (get_sim_inferior_data): Use new. Update.
3198 (~sim_inferior_data_cleanup): Rename from
3199 sim_inferior_data_cleanup. Simplify.
3200 (gdbsim_close_inferior, simulator_command)
3201 (sim_command_completer, _initialize_remote_sim): Update.
3202 (next_pid, INITIAL_PID): Move earlier.
3203
3204 2019-07-10 Tom Tromey <tromey@adacore.com>
3205
3206 * python/python-internal.h (create_thread_object): Return
3207 gdbpy_ref.
3208 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3209 * python/py-inferior.c (struct threadlist_entry): Add
3210 constructor.
3211 <thread_obj>: Now a gdbpy_ref.
3212 (thread_to_thread_object): Update.
3213 (add_thread_object): Use new.
3214 (delete_thread_object): Use delete.
3215 (infpy_threads): Update.
3216 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3217 GIL.
3218
3219 2019-07-10 Tom Tromey <tromey@adacore.com>
3220
3221 * valops.c (value_cast): Specialize error message for Ada.
3222
3223 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3224
3225 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3226
3227 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3228
3229 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3230 bpstat_should_step): Return bool, adjust comments.
3231 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3232 bpstat_should_step): Likewise.
3233
3234 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3235
3236 * features/Makefile: Use feature target descriptions for Arm.
3237 * features/arm/arm-core.c: Generate new file.
3238 * features/arm/arm-fpa.c: Likewise.
3239 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3240 * features/arm/arm-m-profile.c: Likewise.
3241 * features/arm/arm-vfpv2.c: Likewise.
3242 * features/arm/arm-vfpv3.c: Likewise.
3243 * features/arm/xscale-iwmmxt.c: Likewise.
3244 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3245
3246 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3247
3248 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3249 ptrace earlier.
3250
3251 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3252
3253 * features/aarch64-pauth.c: Regenerate.
3254
3255 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3256
3257 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3258 bool.
3259 (bpstat_what): Use false instead of 0.
3260
3261 2019-07-09 Pedro Alves <palves@redhat.com>
3262
3263 * break-catch-throw.c (is_exception_catchpoint): New.
3264 * breakpoint.c (print_one_breakpoint_location): New parameter
3265 'raw_loc'. Handle it. Use
3266 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3267 looking at the breakpoint's type.
3268 (print_one_breakpoint): If handling "maint info breakpoints", also
3269 print locations of exception catchpoints.
3270 * breakpoint.h (is_exception_catchpoint): Declare.
3271
3272 2019-07-09 Pedro Alves <palves@redhat.com>
3273
3274 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3275 "addr" field.
3276 (allocate_location_exception_catchpoint): New.
3277 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3278 (initialize_throw_catchpoint_ops): Install
3279 allocate_location_exception_catchpoint as allocate_location
3280 method.
3281 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3282 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3283 bp_loc_other.
3284 (breakpoint_address_is_meaningful): Delete.
3285 (bl_address_is_meaningful): New.
3286 (breakpoint_locations_match): Adjust comment.
3287 (bp_location_from_bp_type): New, factored out of...
3288 (bp_location::bp_location(breakpoint *)): ... this.
3289 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3290 factored out of...
3291 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3292 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3293 breakpoint_address_is_meaningful.
3294 (bp_locations_compare): Adjust comment.
3295 (update_global_location_list): Use bl_address_is_meaningful
3296 instead of breakpoint_address_is_meaningful.
3297 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3298 explicit.
3299 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3300 * python/py-breakpoint.c (bppy_get_location): No longer check
3301 whether location is null.
3302
3303 2019-07-09 Pedro Alves <palves@redhat.com>
3304
3305 PR c++/15468
3306 * breakpoint.c (print_one_breakpoint_location): Remove
3307 single-location assert.
3308
3309 2019-07-09 Tom Tromey <tom@tromey.com>
3310
3311 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3312 * configure: Rebuild.
3313 * configure.ac: Change common to gdbsupport.
3314 * gdbsupport: Rename from common.
3315 * acinclude.m4: Change common to gdbsupport.
3316 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3317 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3318 gdbsupport.
3319 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3320 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3321 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3322 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3323 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3324 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3325 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3326 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3327 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3328 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3329 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3330 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3331 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3332 coff-pe-read.c, command.h, compile/compile-c-support.c,
3333 compile/compile-c.h, compile/compile-cplus-symbols.c,
3334 compile/compile-cplus-types.c, compile/compile-cplus.h,
3335 compile/compile-loc2c.c, compile/compile.c, completer.c,
3336 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3337 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3338 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3339 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3340 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3341 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3342 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3343 features/aarch64-core.c, features/aarch64-fpu.c,
3344 features/aarch64-pauth.c, features/aarch64-sve.c,
3345 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3346 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3347 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3348 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3349 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3350 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3351 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3352 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3353 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3354 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3355 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3356 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3357 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3358 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3359 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3360 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3361 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3362 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3363 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3364 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3365 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3366 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3367 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3368 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3369 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3370 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3371 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3372 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3373 minsyms.c, mips-linux-tdep.c, namespace.h,
3374 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3375 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3376 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3377 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3378 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3379 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3380 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3381 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3382 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3383 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3384 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3385 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3386 procfs.c, producer.c, progspace.h, psymtab.h,
3387 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3388 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3389 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3390 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3391 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3392 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3393 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3394 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3395 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3396 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3397 target-memory.c, target.c, target.h, target/waitstatus.c,
3398 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3399 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3400 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3401 unittests/array-view-selftests.c,
3402 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3403 unittests/common-utils-selftests.c,
3404 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3405 unittests/format_pieces-selftests.c,
3406 unittests/function-view-selftests.c,
3407 unittests/lookup_name_info-selftests.c,
3408 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3409 unittests/mkdir-recursive-selftests.c,
3410 unittests/observable-selftests.c,
3411 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3412 unittests/parse-connection-spec-selftests.c,
3413 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3414 unittests/scoped_fd-selftests.c,
3415 unittests/scoped_mmap-selftests.c,
3416 unittests/scoped_restore-selftests.c,
3417 unittests/string_view-selftests.c, unittests/style-selftests.c,
3418 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3419 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3420 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3421 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3422 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3423 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3424
3425 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3426
3427 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3428 bool value.
3429 (decode_digits_ordinary): Set explicit_line field in sal.
3430 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3431 symtab_and_line that was set on an explicit line number in
3432 assembler code. Do always update the recorded symtab and line if
3433 we do skip the prologue.
3434
3435 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3436
3437 * breakpoint.c (set_breakpoint_location_function): Remove
3438 explicit_loc parameter.
3439 (momentary_breakpoint_from_master): Update call to
3440 set_breakpoint_location_function.
3441 (add_location_to_breakpoint): Likewise.
3442
3443 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3444
3445 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3446 required features based on default bfd type when no specific bfd
3447 is present.
3448
3449 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3450
3451 * NEWS: Mention that GDB printf and eval commands can now print
3452 C-style and Ada-style convenience var strings without
3453 calling the inferior.
3454 * printcmd.c (printf_c_string): Locally print GDB internal var
3455 instead of transiting via the inferior.
3456 (printf_wide_c_string): Likewise.
3457
3458 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3459
3460 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3461
3462 2019-07-04 Tom Tromey <tom@tromey.com>
3463
3464 PR tui/24724:
3465 * tui/tui-winsource.c (tui_clear_source_content): Update.
3466 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3467 (tui_update_breakpoint_info): Update.
3468 (tui_set_exec_info_content): Update.
3469 * tui/tui-source.c (tui_set_source_content_nil): Update.
3470 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3471 has_break.
3472 * tui/tui-data.h (enum tui_bp_flag): New.
3473 (tui_bp_flags): New enum flags type.
3474 (struct tui_source_element) <break_mode>: Change type. Rename
3475 from has_break.
3476 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3477 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3478 constants.
3479 * tui/tui-winsource.h: Fix comment.
3480
3481 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3482
3483 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3484 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3485 (store_fpregs_to_thread)
3486 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3487 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3488 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3489 (IWMMXT_REGS_SIZE): Add define.
3490 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3491 (fetch_vfp_regs, store_vfp_regs)
3492 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3493 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3494
3495 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3496
3497 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3498 defines.
3499 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3500 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3501 (ARM_INT_REGISTER_SIZE): ...to this.
3502 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3503 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3504 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3505 (arm_linux_collect_gregset, supply_nwfpe_register)
3506 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3507 defines.
3508 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3509 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3510 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3511 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3512 (arm_return_in_memory, arm_store_return_value)
3513 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3514 (arm_record_ld_st_multiple): Likewise.
3515 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3516 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3517
3518 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3519
3520 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3521 AARCH64_DISPLACED_MODIFIED_INSNS.
3522 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3523 (aarch64_displaced_step_copy_insn): Likewise.
3524 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3525 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3526 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3527 ARM_DISPLACED_MODIFIED_INSNS.
3528 * arm-tdep.c (arm_gdbarch_init): Likewise.
3529 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3530 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3531 (struct arm_displaced_step_closure): Use
3532 ARM_DISPLACED_MODIFIED_INSNS.
3533
3534 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3535
3536 * features/Makefile: Remove unused xml files.
3537 * features/aarch64.xml: Remove.
3538 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3539 * features/i386/amd64-avx-avx512.xml: Remove.
3540 * features/i386/amd64-avx-linux.xml: Remove.
3541 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3542 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3543 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3544 * features/i386/amd64-avx-mpx.xml: Remove.
3545 * features/i386/amd64-avx.xml: Remove.
3546 * features/i386/amd64-linux.xml: Remove.
3547 * features/i386/amd64-mpx-linux.xml: Remove.
3548 * features/i386/amd64-mpx.xml: Remove.
3549 * features/i386/amd64.xml: Remove.
3550 * features/i386/i386-avx-avx512-linux.xml: Remove.
3551 * features/i386/i386-avx-avx512.xml: Remove.
3552 * features/i386/i386-avx-linux.xml: Remove.
3553 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3554 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3555 * features/i386/i386-avx-mpx-linux.xml: Remove.
3556 * features/i386/i386-avx-mpx.xml: Remove.
3557 * features/i386/i386-avx.xml: Remove.
3558 * features/i386/i386-linux.xml: Remove.
3559 * features/i386/i386-mmx-linux.xml: Remove.
3560 * features/i386/i386-mmx.xml: Remove.
3561 * features/i386/i386-mpx-linux.xml: Remove.
3562 * features/i386/i386-mpx.xml: Remove.
3563 * features/i386/i386.xml: Remove.
3564 * features/i386/x32-avx-avx512-linux.xml: Remove.
3565 * features/i386/x32-avx-linux.xml: Remove.
3566 * features/i386/x32-linux.xml: Remove.
3567
3568 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3569
3570 * regformats/aarch64.dat: Remove.
3571 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3572 * regformats/i386/amd64-avx-linux.dat: Remove.
3573 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3574 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3575 * regformats/i386/amd64-linux.dat: Remove.
3576 * regformats/i386/amd64-mpx-linux.dat: Remove.
3577 * regformats/i386/amd64.dat: Remove.
3578 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3579 * regformats/i386/i386-avx-linux.dat: Remove.
3580 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3581 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3582 * regformats/i386/i386-linux.dat: Remove.
3583 * regformats/i386/i386-mmx-linux.dat: Remove.
3584 * regformats/i386/i386-mpx-linux.dat: Remove.
3585 * regformats/i386/i386.dat: Remove.
3586 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3587 * regformats/i386/x32-avx-linux.dat: Remove.
3588 * regformats/i386/x32-linux.dat: Remove.
3589
3590 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3591
3592 * aarch64-tdep.c: Remove xml self tests.
3593 * amd64-linux-tdep.c: Likewise.
3594 * amd64-tdep.c: Likewise.
3595 * i386-linux-tdep.c: Likewise.
3596 * i386-tdep.c: Likewise.
3597
3598 2019-07-03 Pedro Alves <palves@redhat.com>
3599
3600 PR cli/24732
3601 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3602 (pipe_cmd_option_defs): New.
3603 (make_pipe_cmd_options_def_group): New.
3604 (pipe_command): Use gdb::option::process_options.
3605 (pipe_command_completer): New function.
3606 (_initialize_cli_cmds): Install completer for "pipe" command.
3607
3608 2019-07-03 Pedro Alves <palves@redhat.com>
3609
3610 * cli/cli-option.c (union option_value) <string>: New field.
3611 (struct option_def_and_value): Add ctor, move ctor, dtor and
3612 use DISABLE_COPY_AND_ASSIGN.
3613 (option_def_and_value::clear_value): New.
3614 (parse_option, save_option_value_in_ctx, get_val_type_str)
3615 (add_setshow_cmds_for_options): Handle var_string.
3616 * cli-option.h (union option_def::var_address) <string>: New
3617 field.
3618 (struct string_option_def): New.
3619 * maint-test-options.c (struct test_options_opts): Add default
3620 ctor and use DISABLE_COPY_AND_ASSIGN.
3621 <string_opt>: New field.
3622 (test_options_opts::~test_options_opts): New.
3623 (test_options_opts::dump): Also dump "-string".
3624 (test_options_option_defs): Install "string.
3625
3626 2019-07-03 Pedro Alves <palves@redhat.com>
3627
3628 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3629 option_value with a null enumeration.
3630 (complete_options): Save the option values in the context.
3631 (save_option_value_in_ctx): New, factored out from ...
3632 (process_options): ... here.
3633 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3634 of the function.
3635 * maint-test-options.c (test_options_opts::dump): New, factored
3636 out from ...
3637 (maintenance_test_options_command_mode): ... here.
3638 (maintenance_test_options_command_completion_result): Delete.
3639 (maintenance_test_options_command_completion_text): Update
3640 comment.
3641 (maintenance_show_test_options_completion_result): Change
3642 prototype. Just print
3643 maintenance_test_options_command_completion_text.
3644 (save_completion_result): New.
3645 (maintenance_test_options_completer_mode): Pass options context to
3646 complete_options, and then save a dump.
3647 (_initialize_maint_test_options): Use add_cmd to install "maint
3648 show test-options-completion-result".
3649
3650 2019-07-03 Pedro Alves <palves@redhat.com>
3651
3652 * NEWS (New commands): Mention "with" and "maint with".
3653 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3654 (with_command, with_command_completer): New.
3655 (pipe_command): Adjust to new repeat_previous
3656 interface.
3657 (_initialize_cli_cmds): Install the "with" command and its "w"
3658 alias.
3659 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3660 declarations.
3661 * cli/cli-setshow.c (parse_cli_var_uinteger)
3662 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3663 argument strings for all var_types.
3664 (get_setshow_command_value_string): New, factored out from ...
3665 (do_show_command): ... this.
3666 * cli/cli-setshow.h: Include <string>.
3667 (get_setshow_command_value_string): Declare.
3668 * command.h (repeat_previous): Now returns const char *. Adjust
3669 comment.
3670 * maint.c: Include "cli/cli-cmds.h".
3671 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3672 (_initialize_maint_cmds): Register the "maintenance with" command.
3673 * top.c (repeat_previous): Move bits from pipe_command here:
3674 Return the saved command line, if any; error out if there's no
3675 command to relaunch.
3676
3677 2019-07-03 Pedro Alves <palves@redhat.com>
3678
3679 * NEWS (New commands): Mention "maint set/show test-settings"
3680 instead of "maint test-settings".
3681 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3682 (maintenance_test_settings_set_list): Rename to ...
3683 (maintenance_set_test_settings_list): ... this.
3684 (maintenance_test_settings_show_list): Rename to ...
3685 (maintenance_show_test_settings_list): ... this.
3686 (maintenance_test_settings_cmd): Delete.
3687 (maintenance_test_settings_set_cmd): ...
3688 (maintenance_set_test_settings_cmd): ... this.
3689 (maintenance_test_settings_show_cmd): ...
3690 (maintenance_show_test_settings_cmd): ... this.
3691 (maintenance_test_settings_show_value_cmd):
3692 (maintenance_show_test_settings_value_cmd): ... this.
3693 (_initialize_maint_test_settings): No longer install the "maint
3694 test-settings" prefix command. Rename "maint test-settings set"
3695 to "maint set test-settings", and "maint test-settings show" to
3696 "maint show test-settings". Adjust all subcommands.
3697
3698 2019-07-03 Pedro Alves <palves@redhat.com>
3699
3700 * maint-test-settings.c: Fix file's intro comment. Replace all
3701 references to "test-options" with references to "test-settings",
3702 in comments.
3703
3704 2019-07-03 Pedro Alves <palves@redhat.com>
3705
3706 * maint-test-settings.c (maintenance_test_settings_xxx)
3707 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3708 New.
3709 (maintenance_test_settings_enums): Use them.
3710 (maintenance_test_settings_enum): Default to
3711 maintenance_test_settings_xxx.
3712 (_initialize_maint_test_settings): Initialize
3713 MAINTENANCE_TEST_SETTINGS_FILENAME.
3714
3715 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3716
3717 * breakpoint.h (remove_breakpoints_inf): Change return type to
3718 void, move function documentation here.
3719 * breakpoint.c (remove_breakpoints_inf): Change return type to
3720 void, move function documentation to header.
3721
3722 2019-07-02 Pedro Alves <palves@redhat.com>
3723
3724 * NEWS (Completion improvements): Mention "info threads".
3725 * thread.c (struct info_threads_opts, info_threads_option_defs)
3726 (make_info_threads_options_def_group): New.
3727 (info_threads_command): Use gdb::option::process_options.
3728 (info_threads_command_completer): New.
3729 (_initialize_thread): Use gdb::option::build_help to build the
3730 help text for "info threads".
3731
3732 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3733
3734 * defs.h (generic_load): Move from here...
3735 * symfile.h (generic_load): ... to here. Rename name parameter
3736 to args.
3737 * symfile.c (generic_load): Add comment.
3738
3739 2019-07-01 Tom Tromey <tromey@adacore.com>
3740
3741 * dwarf2read.c
3742 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3743 declaration of without_params. Fix formatting.
3744
3745 2019-07-01 Tom Tromey <tromey@adacore.com>
3746
3747 * ada-exp.y (find_primitive_type): Update.
3748 * ada-lang.h (ada_lookup_symbol): Update.
3749 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3750 parameter.
3751 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3752
3753 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3754
3755 PR breakpoints/24541
3756 * gdbarch.c: Regenerate.
3757 * gdbarch.h: Regenerate.
3758 * gdbarch.sh: Add 'stap_adjust_register'.
3759 * i386-tdep.c: Include '<unordered_set>'.
3760 (i386_stap_adjust_register): New function.
3761 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3762 * stap-probe.c (stap_parse_register_operand): Call
3763 'gdbarch_stap_adjust_register'.
3764
3765 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3766
3767 PR python/24742
3768 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3769 * python/python.c (do_start_initialization): Use 'xmalloc'
3770 instead of 'PyMem_Malloc'.
3771
3772 2019-06-28 Tom Tromey <tromey@adacore.com>
3773
3774 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3775 for Ada.
3776
3777 2019-06-27 Tom Tromey <tromey@adacore.com>
3778
3779 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3780 objfile_key.
3781 (arm_find_mapping_symbol, arm_record_special_symbol)
3782 (_initialize_arm_tdep): Update.
3783 (arm_objfile_data_free): Remove.
3784
3785 2019-06-27 Tom Tromey <tromey@adacore.com>
3786
3787 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3788 to cp_print_static_field.
3789
3790 2019-06-26 Tom Tromey <tromey@adacore.com>
3791
3792 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3793 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3794 declare.
3795
3796 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3797
3798 * features/aarch64-core.c (create_feature_aarch64_core):
3799 Regenerate.
3800 * features/aarch64-core.xml: Add cpsr flags.
3801
3802 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3803
3804 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3805 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3806
3807 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3808
3809 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3810 field.
3811 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3812 use.
3813 (arm_record_special_symbol): Don't insert new symbol in sorted
3814 position, push it at the end.
3815
3816 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3817
3818 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3819 (arm_mapping_symbol_s): Remove.
3820 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3821 (arm_mapping_symbol_vec): New typedef.
3822 (struct arm_per_objfile): Add constructor.
3823 <section_maps>: Change type to
3824 std::unique_ptr<arm_mapping_symbol_vec[]>.
3825 (arm_compare_mapping_symbols): Remove.
3826 (arm_find_mapping_symbol): Adjust to section_maps type change.
3827 (arm_objfile_data_free): Call delete on arm_per_objfile.
3828 (arm_record_special_symbol): Adjust to section_maps type change.
3829 Allocate arm_per_objfile with new.
3830
3831 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3832
3833 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3834 with the command prefix.
3835
3836 2019-06-25 Tom Tromey <tom@tromey.com>
3837
3838 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3839 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3840
3841 2019-06-25 Tom Tromey <tom@tromey.com>
3842
3843 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3844 type.
3845 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3846 protected.
3847
3848 2019-06-25 Tom Tromey <tom@tromey.com>
3849
3850 * tui/tui-winsource.c
3851 (tui_source_window_base::set_is_exec_point_at): Add check against
3852 LOA_ADDRESS.
3853
3854 2019-06-25 Tom Tromey <tom@tromey.com>
3855
3856 * tui/tui-source.c (tui_set_source_content): Don't check before
3857 xfree.
3858 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3859
3860 2019-06-25 Tom Tromey <tom@tromey.com>
3861
3862 * tui/tui-winsource.h (tui_update_source_window_as_is)
3863 (tui_alloc_source_buffer, tui_line_is_displayed)
3864 (tui_addr_is_displayed): Change type of win_info.
3865 * tui/tui-winsource.c (tui_update_source_window_as_is)
3866 (tui_clear_source_content, tui_show_source_line)
3867 (tui_show_source_content, tui_source_window_base::refill)
3868 (tui_source_window_base::set_is_exec_point_at)
3869 (tui_source_window_base::set_is_exec_point_at)
3870 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3871 (tui_alloc_source_buffer, tui_line_is_displayed)
3872 (tui_addr_is_displayed): Change type of win_info. Update.
3873 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3874 (tui_source_window_base::do_make_visible_with_new_height):
3875 Update.
3876 * tui/tui-source.c (tui_set_source_content)
3877 (tui_set_source_content_nil)
3878 (tui_source_window::do_scroll_vertical): Update.
3879 * tui/tui-layout.c (show_layout): Update.
3880 * tui/tui-disasm.c (tui_set_disassem_content)
3881 (tui_disasm_window::do_scroll_vertical): Update.
3882 * tui/tui-data.h (tui_win_content): Remove.
3883 (struct tui_gen_win_info) <content, content_size>: Remove.
3884 (struct tui_source_element): Add initializers and destructor.
3885 (union tui_which_element, struct tui_win_element): Remove.
3886 (struct tui_source_window_base) <content>: New field.
3887 (struct tui_data_window): Remove destructor.
3888 (tui_alloc_content, tui_free_win_content)
3889 (tui_free_all_source_wins_content): Don't declare.
3890 * tui/tui-data.c (tui_initialize_static_data): Update.
3891 (init_content_element, tui_alloc_content): Remove.
3892 (~tui_gen_win_info): Update.
3893 (~tui_data_window, tui_free_all_source_wins_content)
3894 (tui_free_win_content, free_content, free_content_elements):
3895 Remove.
3896
3897 2019-06-25 Tom Tromey <tom@tromey.com>
3898
3899 * tui/tui-winsource.h (tui_clear_source_content)
3900 (tui_erase_source_content, tui_show_source_content): Change type
3901 of win_info.
3902 * tui/tui-winsource.c (tui_clear_source_content)
3903 (tui_erase_source_content, tui_show_source_content): Change type
3904 of win_info.
3905 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3906 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3907 win_info.
3908 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3909 win_info.
3910 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3911
3912 2019-06-25 Tom Tromey <tom@tromey.com>
3913
3914 * tui/tui-winsource.c (tui_clear_source_content)
3915 (tui_source_window_base::set_is_exec_point_at): Update.
3916 * tui/tui-source.c (tui_set_source_content_nil): Update.
3917 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3918 a bool.
3919 * tui/tui-data.c (init_content_element): Update.
3920
3921 2019-06-25 Tom Tromey <tom@tromey.com>
3922
3923 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3924 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3925 * tui/tui-layout.c (init_and_make_win): Update.
3926 * tui/tui.h (enum tui_win_type): Update.
3927 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3928 tui_win_is_auxillary.
3929 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3930 tui_win_is_auxillary.
3931
3932 2019-06-25 Tom Tromey <tom@tromey.com>
3933
3934 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3935 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3936 (tui_delete_data_content_windows, tui_display_all_data)
3937 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3938 Update.
3939 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3940 * tui/tui-regs.c (tui_last_regs_line_no)
3941 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3942 (tui_show_registers): Update.
3943 (tui_show_register_group): Return void. Update.
3944 (tui_display_registers_from, tui_display_reg_element_at_line)
3945 (tui_display_registers_from_line, tui_check_register_values):
3946 Update.
3947 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3948 member.
3949 (struct tui_data_window) <regs_content>: Now a std::vector.
3950 <regs_content_count>: Remove.
3951 (tui_add_content_elements, tui_free_data_content): Don't declare.
3952 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3953 (init_content_element): Remove DATA_WIN case. Add assert.
3954 (tui_add_content_elements): Remove.
3955 (tui_data_window): Update.
3956 (tui_free_data_content): Remove.
3957 (free_content_elements): Remove DATA_WIN case.
3958
3959 2019-06-25 Tom Tromey <tom@tromey.com>
3960
3961 * tui/tui-data.c (tui_data_item_window): Update.
3962 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3963 * tui/tui-windata.c (tui_display_all_data)
3964 (tui_display_data_from_line): Update.
3965 (tui_check_data_values): Remove.
3966 * tui/tui-regs.c (tui_show_register_group)
3967 (tui_display_reg_element_at_line): Update.
3968 * tui/tui-hooks.c (tui_register_changed)
3969 (tui_refresh_frame_and_register_information): Call
3970 tui_check_register_values.
3971 * tui/tui-data.h (struct tui_data_window) <data_content,
3972 data_content_count, data_type>: Remove.
3973 (enum tui_data_type): Remove.
3974
3975 * tui/tui-data.c (tui_data_window::clear_detail)
3976 (~tui_data_window): Update.
3977
3978 2019-06-25 Tom Tromey <tom@tromey.com>
3979
3980 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3981 declare.
3982 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3983 Rename from tui_first_data_item_displayed. Update.
3984 (tui_data_window::refresh_all)
3985 (tui_data_window::do_scroll_vertical): Update.
3986 * tui/tui-data.h (struct tui_data_window)
3987 <first_data_item_displayed>: Declare new method.
3988
3989 2019-06-25 Tom Tromey <tom@tromey.com>
3990
3991 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3992 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3993 contents...
3994 (tui_initialize_static_data): ...here.
3995
3996 2019-06-25 Tom Tromey <tom@tromey.com>
3997
3998 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3999 (tui_display_registers_from, tui_check_register_values): Update.
4000 (tui_display_register): Remove win_info parameter; update.
4001 (tui_get_register): Change type of parameters.
4002 * tui/tui-data.h (struct tui_data_element): Remove.
4003 (union tui_which_element) <data>: Remove.
4004 <data_window>: Change type.
4005 (struct tui_data_item_window): New.
4006 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4007 case. Add assert.
4008 (~tui_data_item_window): New destructor.
4009 (free_content_elements): Remove DATA_ITEM_WIN case.
4010
4011 2019-06-25 Tom Tromey <tom@tromey.com>
4012
4013 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4014 Remove.
4015
4016 2019-06-25 Tom Tromey <tom@tromey.com>
4017
4018 * tui/tui-data.h (struct tui_command_element): Remove.
4019 (union tui_which_element) <command>: Remove.
4020 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4021 assert.
4022 (free_content_elements): Remove CMD_WIN case.
4023
4024 2019-06-25 Tom Tromey <tom@tromey.com>
4025
4026 * tui/tui-layout.c (tui_set_layout): Update.
4027 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4028 * tui/tui-data.c (layout_def): Update.
4029
4030 2019-06-25 Tom Tromey <tom@tromey.com>
4031
4032 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4033 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4034 (tui_source_window_base::set_new_height): Update.
4035 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4036 Update.
4037 (tui_set_locator_fullname, tui_set_locator_info)
4038 (tui_show_frame_info): Update.
4039 * tui/tui-source.c (tui_set_source_content)
4040 (tui_source_is_displayed): Update.
4041 * tui/tui-layout.c (show_source_disasm_command, show_data)
4042 (show_source_or_disasm_and_command): Update.
4043 * tui/tui-disasm.c (tui_set_disassem_content)
4044 (tui_get_begin_asm_address): Update.
4045 * tui/tui-data.h (struct tui_locator_element): Remove.
4046 (union tui_which_element) <locator>: Remove.
4047 (struct tui_locator_window): New.
4048 (tui_locator_win_info_ptr): Change return type.
4049 * tui/tui-data.c (_locator): Change type.
4050 (tui_locator_win_info_ptr): Change return type.
4051 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4052 (tui_alloc_content): Add assert.
4053
4054 2019-06-25 Tom Tromey <tom@tromey.com>
4055
4056 * tui/tui-winsource.c
4057 (tui_exec_info_window::maybe_allocate_content): New method.
4058 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4059 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4060 (make_source_or_disasm_window): Add cast.
4061 * tui/tui-data.h (union tui_which_element) <simple_string>:
4062 Remove.
4063 (struct tui_source_info): New.
4064 (struct tui_source_window_base) <execution_info>: Change type.
4065 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4066 case, and add assert.
4067 (tui_alloc_content): Add assert.
4068
4069 2019-06-25 Tom Tromey <tom@tromey.com>
4070
4071 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4072 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4073 * tui/tui-data.c (tui_alloc_win_info): Remove.
4074
4075 2019-06-25 Tom Tromey <tom@tromey.com>
4076
4077 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4078 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4079 can_highlight.
4080
4081 2019-06-25 Tom Tromey <tom@tromey.com>
4082
4083 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4084 make_visible_with_new_height method.
4085 (tui_win_info::make_visible_with_new_height): New method.
4086 (tui_source_window_base::do_make_visible_with_new_height)
4087 (tui_data_window::do_make_visible_with_new_height)
4088 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4089 (make_visible_with_new_height): Remove.
4090 (tui_resize_all, tui_adjust_win_heights): Use
4091 make_visible_with_new_height method.
4092 * tui/tui-data.h (struct tui_win_info)
4093 <do_make_visible_with_new_height, make_visible_with_new_height>:
4094 New methods.
4095 (struct tui_source_window_base, struct tui_data_window)
4096 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4097 methods.
4098
4099 2019-06-25 Tom Tromey <tom@tromey.com>
4100
4101 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4102 method.
4103 (update_tab_width): Call update_tab_width method.
4104 * tui/tui-data.h (struct tui_win_info)
4105 (struct tui_source_window_base) <update_tab_width>: New methods.
4106
4107 2019-06-25 Tom Tromey <tom@tromey.com>
4108
4109 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4110 parameter.
4111 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4112 parameter.
4113 (tui_gen_win_info::make_visible): Update.
4114 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4115 parameter.
4116 * tui/tui-data.h (enum tui_box): New enum.
4117 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4118
4119 2019-06-25 Tom Tromey <tom@tromey.com>
4120
4121 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4122 init_and_make_win for EXEC_INFO_WIN.
4123 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4124 longer inline.
4125 (struct tui_win_info) <~tui_win_info>: Inline.
4126 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4127 Don't declare.
4128 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4129 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4130 Remove.
4131 (tui_initialize_static_data): Update.
4132 (~tui_gen_win_info): Handle more cleanup here.
4133 (~tui_source_window_base): Delete "execution_info".
4134 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4135
4136 2019-06-25 Tom Tromey <tom@tromey.com>
4137
4138 * tui/tui-layout.c (make_command_window): Don't set
4139 can_highlight.
4140 (show_source_disasm_command): Call the reset method.
4141 (show_data): Don't set can_highlight. Call the reset method.
4142 (tui_gen_win_info::reset): Rename from init_gen_win_info
4143 (init_and_make_win): Simplify. Return tui_gen_win_info.
4144 (show_source_or_disasm_and_command): Call the reset method.
4145 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4146 (struct tui_cmd_window): Set can_highlight.
4147
4148 2019-06-25 Tom Tromey <tom@tromey.com>
4149
4150 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4151 from make_visible.
4152 (tui_make_visible, tui_make_invisible): Rewrite.
4153 (tui_win_info::make_visible): Remove.
4154 (tui_source_window_base::make_visible): Update.
4155 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4156 method. Moved from...
4157 (struct tui_win_info) <make_visible>: ...here.
4158
4159 2019-06-25 Tom Tromey <tom@tromey.com>
4160
4161 * tui/tui-winsource.c
4162 (tui_source_window_base::do_scroll_horizontal): Remove direction
4163 parameter.
4164 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4165 direction parameter.
4166 * tui/tui-win.c (tui_win_info::forward_scroll)
4167 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4168 (tui_win_info::right_scroll): Update.
4169 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4170 direction parameter.
4171 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4172 direction parameter.
4173 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4174 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4175 Remove direction parameter.
4176 (struct tui_source_window_base, struct tui_source_window)
4177 (struct tui_disasm_window, struct tui_data_window)
4178 (struct tui_cmd_window): Update.
4179
4180 2019-06-25 Tom Tromey <tom@tromey.com>
4181
4182 * tui/tui-winsource.h (tui_set_exec_info_content)
4183 (tui_show_exec_info_content, tui_erase_exec_info_content)
4184 (tui_clear_exec_info_content, tui_update_exec_info): Change
4185 argument to tui_source_window_base.
4186 * tui/tui-winsource.c (tui_set_exec_info_content)
4187 (tui_show_exec_info_content, tui_erase_exec_info_content)
4188 (tui_clear_exec_info_content, tui_update_exec_info): Change
4189 argument to tui_source_window_base.
4190
4191 2019-06-25 Tom Tromey <tom@tromey.com>
4192
4193 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4194 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4195
4196 2019-06-25 Tom Tromey <tom@tromey.com>
4197
4198 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4199 check.
4200
4201 2019-06-25 Tom Tromey <tom@tromey.com>
4202
4203 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4204 type to void.
4205 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4206 type to void.
4207 * tui/tui-source.c (tui_set_source_content): Update.
4208 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4209
4210 2019-06-25 Tom Tromey <tom@tromey.com>
4211
4212 * tui/tui-win.c (window_name_completer, tui_set_focus)
4213 (tui_all_windows_info): Use name method.
4214 * tui/tui-data.h (struct tui_gen_win_info)
4215 (struct tui_source_window, struct tui_disasm_window)
4216 (struct tui_data_window, struct tui_cmd_window) <name>: New
4217 method.
4218 (tui_win_name): Don't declare.
4219 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4220 (tui_win_name): Remove.
4221
4222 2019-06-25 Tom Tromey <tom@tromey.com>
4223
4224 * tui/tui-winsource.h (tui_update_source_window)
4225 (tui_update_source_window_as_is): Change parameter type.
4226 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4227 to be a tui_source_window_base.
4228 (tui_update_source_window_as_is): Likewise.
4229 * tui/tui-win.c (make_visible_with_new_height): Update.
4230
4231 2019-06-25 Tom Tromey <tom@tromey.com>
4232
4233 * tui/tui-winsource.c (tui_erase_source_content)
4234 (tui_show_source_content, tui_show_exec_info_content)
4235 (tui_erase_exec_info_content): Use refresh_window method.
4236 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4237 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4238 from tui_refresh_win.
4239 (tui_data_window::refresh_window): New method.
4240 (tui_win_info::refresh, tui_source_window_base::refresh)
4241 (tui_refresh_all): Use refresh_window method.
4242 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4243 method.
4244 * tui/tui-regs.c (tui_display_register): Call refresh_window
4245 method.
4246 * tui/tui-layout.c (show_source_disasm_command)
4247 (show_source_or_disasm_and_command): Call refresh_window method.
4248 * tui/tui-data.h (struct tui_gen_win_info)
4249 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4250 New method.
4251
4252 2019-06-25 Tom Tromey <tom@tromey.com>
4253
4254 * tui/tui.c (tui_rl_other_window, tui_enable)
4255 (tui_is_window_visible, tui_get_command_dimension): Update.
4256 * tui/tui-winsource.c (tui_update_source_window_as_is)
4257 (tui_clear_source_content, tui_erase_source_content)
4258 (tui_show_source_line, tui_source_window_base::refill)
4259 (tui_source_window_base::do_scroll_horizontal)
4260 (tui_source_window_base::set_is_exec_point_at)
4261 (tui_update_breakpoint_info, tui_set_exec_info_content)
4262 (tui_alloc_source_buffer, tui_line_is_displayed)
4263 (tui_addr_is_displayed): Update.
4264 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4265 (tui_check_and_display_highlight_if_needed)
4266 (tui_win_info::make_visible, tui_win_info::refresh)
4267 (tui_refresh_all): Update.
4268 * tui/tui-windata.c (tui_first_data_item_displayed)
4269 (tui_delete_data_content_windows, tui_erase_data_content)
4270 (tui_display_all_data, tui_data_window::refresh_all)
4271 (tui_check_data_values): Update.
4272 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4273 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4274 (tui_win_info::backward_scroll, tui_refresh_all_win)
4275 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4276 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4277 (tui_source_window_base::set_new_height)
4278 (tui_data_window::set_new_height)
4279 (make_invisible_and_set_new_height)
4280 (make_visible_with_new_height, new_height_ok)
4281 (parse_scrolling_args): Update.
4282 * tui/tui-stack.c (tui_show_frame_info): Update.
4283 * tui/tui-source.c (tui_set_source_content)
4284 (tui_set_source_content_nil, tui_source_is_displayed)
4285 (tui_source_window::do_scroll_vertical): Update.
4286 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4287 (tui_display_registers_from, tui_display_reg_element_at_line)
4288 (tui_check_register_values, tui_reg_command): Update.
4289 * tui/tui-layout.c (tui_default_win_height)
4290 (show_source_disasm_command, show_data, init_and_make_win)
4291 (show_source_or_disasm_and_command): Update.
4292 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4293 (tui_redisplay_readline, tui_mld_flush)
4294 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4295 (tui_getc): Update.
4296 * tui/tui-disasm.c (tui_set_disassem_content)
4297 (tui_disasm_window::do_scroll_vertical): Update.
4298 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4299 Now virtual.
4300 (struct tui_win_info): Derive from tui_gen_win_info.
4301 <~tui_win_info>: Mark as override.
4302 <generic>: Remove member.
4303 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4304 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4305 (~tui_data_window, ~tui_win_info)
4306 (tui_free_all_source_wins_content): Update.
4307 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4308
4309 2019-06-25 Tom Tromey <tom@tromey.com>
4310
4311 * tui/tui-layout.c (init_and_make_win): Use new.
4312 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4313 destructor, initializers.
4314 (tui_alloc_generic_win_info): Don't declare.
4315 * tui/tui-data.c (_locator): Add argument to constructor.
4316 (source_win, disasm_win): New globals.
4317 (exec_info): Remove.
4318 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4319 Update.
4320 (tui_alloc_generic_win_info): Remove.
4321 (init_content_element): Use new.
4322 (tui_win_info::tui_win_info): Update.
4323 (free_content_elements) <case DATA_WIN>: Use delete.
4324
4325 2019-06-25 Tom Tromey <tom@tromey.com>
4326
4327 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4328 * tui/tui-windata.c (tui_first_data_item_displayed)
4329 (tui_delete_data_content_windows): Update.
4330 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4331 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4332 (tui_display_registers_from, tui_check_register_values): Update.
4333 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4334 pointer.
4335 * tui/tui-data.c (init_content_element): Update. Allocate the new
4336 window.
4337 (tui_free_data_content): Update.
4338 (free_content_elements) <case DATA_WIN>: Free the window.
4339
4340 2019-06-25 Tom Tromey <tom@tromey.com>
4341
4342 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4343 Update.
4344 * tui/tui-layout.c (make_command_window)
4345 (show_source_disasm_command, show_data, init_and_make_win)
4346 (show_source_or_disasm_and_command): Update.
4347 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4348 method.
4349 <can_highight, is_highlighted>: Now bool.
4350 (tui_set_win_highlight): Don't declare.
4351 * tui/tui-data.c (tui_set_win_highlight): Remove.
4352
4353 2019-06-25 Tom Tromey <tom@tromey.com>
4354
4355 * tui/tui-wingeneral.c (make_visible): Remove check of window
4356 type.
4357
4358 2019-06-25 Tom Tromey <tom@tromey.com>
4359
4360 * tui/tui-win.c (tui_win_info::max_height)
4361 (tui_cmd_window::max_height): New methods.
4362 (new_height_ok): Call max_height.
4363 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4364 <max_height>: New method.
4365
4366 2019-06-25 Tom Tromey <tom@tromey.com>
4367
4368 * tui/tui-win.c (tui_source_window_base::set_new_height)
4369 (tui_data_window::set_new_height): New methods.
4370 (make_invisible_and_set_new_height): Call set_new_height method.
4371 * tui/tui-data.h (struct tui_win_info)
4372 (struct tui_source_window_base, struct tui_data_window)
4373 <set_new_height>: New method.
4374
4375 2019-06-25 Tom Tromey <tom@tromey.com>
4376
4377 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4378 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4379 tui_refresh_data_win.
4380 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4381 method.
4382 (tui_refresh_all_win): Call the refresh_all method.
4383 (tui_set_focus): Likewise.
4384 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4385 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4386 Likewise.
4387
4388 2019-06-25 Tom Tromey <tom@tromey.com>
4389
4390 * tui/tui-winsource.h (tui_refill_source_window)
4391 (tui_set_is_exec_point_at): Don't declare.
4392 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4393 (tui_source_window_base::refill): Rename from
4394 tui_refill_source_window.
4395 (tui_source_window_base::do_scroll_horizontal): Update.
4396 (tui_source_window_base::set_is_exec_point_at): Rename from
4397 tui_set_is_exec_point_at.
4398 (tui_update_all_breakpoint_info): Update.
4399 * tui/tui-stack.c (tui_show_frame_info): Update.
4400 * tui/tui-layout.c (show_data): Add cast.
4401 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4402 * tui/tui-data.h (struct tui_source_window_base) <refill,
4403 set_is_exec_point_at>: New methods.
4404 (tui_source_windows, tui_add_to_source_windows): Update types.
4405 (tui_add_to_source_windows): Remove redundant declaration.
4406 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4407 (tui_source_windows): Change return type.
4408 (tui_clear_source_windows_detail): Update.
4409 (tui_add_to_source_windows): Change type of parameter.
4410 (tui_free_all_source_wins_content): Update.
4411
4412 2019-06-25 Tom Tromey <tom@tromey.com>
4413
4414 * tui/tui-wingeneral.c (tui_win_info::refresh)
4415 (tui_source_window_base::refresh): New methods.
4416 (tui_refresh_all): Call the refresh method.
4417 * tui/tui-data.h (struct tui_win_info)
4418 (struct tui_source_window_base) <refresh>: New method.
4419
4420 2019-06-25 Tom Tromey <tom@tromey.com>
4421
4422 * tui/tui.h (tui_is_window_visible): Return bool.
4423 * tui/tui.c (tui_is_window_visible): Return bool.
4424 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4425 (tui_make_visible, tui_make_invisible)
4426 (tui_win_info::make_visible)
4427 (tui_source_window_base::make_visible, make_all_visible)
4428 (tui_make_all_visible, tui_make_all_invisible): Update.
4429 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4430 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4431 bool.
4432 (struct tui_win_info, struct tui_source_window_base)
4433 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4434 * tui/tui-data.c (tui_init_generic_part): Update.
4435
4436 2019-06-25 Tom Tromey <tom@tromey.com>
4437
4438 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4439 (tui_source_window_base::make_visible): New methods.
4440 (make_all_visible): Make method call.
4441 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4442 (struct tui_source_window_base, struct tui_cmd_window): Override
4443 make_visible.
4444 (tui_win_is_source_type): Don't declare.
4445 * tui/tui-data.c (tui_win_is_source_type): Remove.
4446
4447 2019-06-25 Tom Tromey <tom@tromey.com>
4448
4449 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4450 NULL check.
4451
4452 2019-06-25 Tom Tromey <tom@tromey.com>
4453
4454 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4455 Inline constructor. Add initializers for members.
4456 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4457 constructors; now inline in class.
4458
4459 2019-06-25 Tom Tromey <tom@tromey.com>
4460
4461 * tui/tui-regs.c (tui_show_registers): Update.
4462 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4463 bool.
4464 * tui/tui-data.c (tui_data_window::clear_detail)
4465 (tui_data_window): Update.
4466
4467 2019-06-25 Tom Tromey <tom@tromey.com>
4468
4469 * tui/tui-windata.c (tui_display_all_data)
4470 (tui_display_data_from_line, tui_display_data_from)
4471 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4472 Update.
4473 * tui/tui-regs.c (tui_last_regs_line_no)
4474 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4475 (tui_show_registers, tui_show_register_group)
4476 (tui_display_registers_from, tui_display_reg_element_at_line)
4477 (tui_display_registers_from_line, tui_check_register_values)
4478 (tui_reg_next, tui_reg_prev): Update.
4479 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4480 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4481 tui_data_window.
4482 (struct tui_win_info) <detail>: Remove. Add new fields from
4483 tui_data_info.
4484 (TUI_DATA_WIN): Add cast.
4485 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4486 (~tui_data_window): Simplify.
4487
4488 2019-06-25 Tom Tromey <tom@tromey.com>
4489
4490 * tui/tui-layout.c (show_source_disasm_command)
4491 (show_source_or_disasm_and_command): Update.
4492 * tui/tui-io.c (update_cmdwin_start_line)
4493 (tui_redisplay_readline): Update.
4494 * tui/tui-data.h (struct tui_command_info): Remove.
4495 (struct tui_win_info) <detail>: Remove command_info member.
4496 (struct tui_data_window) <start_line>: New member, from
4497 tui_command_info.
4498 (TUI_CMD_WIN): Add casts.
4499
4500 2019-06-25 Tom Tromey <tom@tromey.com>
4501
4502 * tui/tui-winsource.c (tui_update_source_window)
4503 (tui_refill_source_window)
4504 (tui_source_window_base::do_scroll_horizontal)
4505 (tui_update_breakpoint_info, tui_set_exec_info_content)
4506 (tui_show_exec_info_content, tui_erase_exec_info_content)
4507 (tui_clear_exec_info_content): Update.
4508 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4509 Update.
4510 * tui/tui-win.c (make_invisible_and_set_new_height)
4511 (make_visible_with_new_height): Update.
4512 * tui/tui-source.c (tui_set_source_content)
4513 (tui_show_symtab_source): Update.
4514 * tui/tui-layout.c (extract_display_start_addr)
4515 (show_source_disasm_command, show_data)
4516 (make_source_or_disasm_window)
4517 (show_source_or_disasm_and_command): Update.
4518 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4519 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4520 "gdbarch".
4521 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4522 to tui_source_window_base.
4523 (struct tui_win_info) <detail>: Remove source_info member.
4524 (struct tui_source_window_base) <has_locator>: Inline.
4525 Move contents from tui_source_info; rename has_locator member to
4526 m_has_locator.
4527 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4528 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4529 header file.
4530 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4531 Simplify.
4532 (tui_free_all_source_wins_content): Cast to
4533 tui_source_window_base.
4534
4535 2019-06-25 Tom Tromey <tom@tromey.com>
4536
4537 * tui/tui-win.c (make_invisible_and_set_new_height)
4538 (make_visible_with_new_height): Call has_locator method.
4539 * tui/tui-layout.c (show_source_disasm_command, show_data)
4540 (show_source_or_disasm_and_command): Update for bool change.
4541 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4542 (tui_win_info) <has_locator>: New method.
4543 (struct tui_source_window_base) <has_locator>: New method.
4544 (tui_win_has_locator): Don't declare.
4545 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4546 from tui_win_has_locator.
4547 (tui_source_window_base): Use false, not FALSE.
4548
4549 2019-06-25 Tom Tromey <tom@tromey.com>
4550
4551 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4552 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4553 clear_detail method directly.
4554 (tui_clear_win_detail): Remove.
4555
4556 2019-06-25 Tom Tromey <tom@tromey.com>
4557
4558 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4559 "this", not TUI_DISASM_WIN.
4560
4561 2019-06-25 Tom Tromey <tom@tromey.com>
4562
4563 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4564 declare.
4565 * tui/tui-winsource.c
4566 (tui_source_window_base::do_scroll_horizontal): Rename from
4567 tui_horizontal_source_scroll.
4568 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4569 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4570 from tui_vertical_data_scroll.
4571 * tui/tui-win.h (tui_scroll): Don't declare.
4572 * tui/tui-win.c (tui_win_info::forward_scroll)
4573 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4574 (tui_win_info::right_scroll): Rename and update.
4575 (tui_scroll_forward_command, tui_scroll_backward_command)
4576 (tui_scroll_left_command, tui_scroll_right_command): Update.
4577 (tui_scroll): Remove.
4578 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4579 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4580 from tui_vertical_source_scroll.
4581 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4582 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4583 from tui_vertical_disassem_scroll.
4584 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4585 do_scroll_horizontal>: New methods.
4586 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4587 Likewise.
4588 (struct tui_source_window_base): Add do_scroll_horizontal.
4589 (struct tui_source_window, struct tui_disasm_window): Add
4590 do_scroll_vertical.
4591 (struct tui_data_window, struct tui_cmd_window): Add
4592 do_scroll_horizontal and do_scroll_vertical.
4593 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4594
4595 2019-06-25 Tom Tromey <tom@tromey.com>
4596
4597 * tui/tui-data.h (struct tui_source_window_base): New struct.
4598 (struct tui_source_window): Derive from tui_source_window_base.
4599 (struct tui_disasm_window): New struct.
4600 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4601 from tui_source_window::clear_detail.
4602 (tui_source_window_base): Rename from tui_source_window.
4603 (~tui_source_window_base): Rename from ~tui_source_window.
4604 (tui_alloc_win_info): Create a tui_disasm_window.
4605
4606 2019-06-25 Tom Tromey <tom@tromey.com>
4607
4608 * tui/tui-data.h (struct tui_source_window)
4609 (struct tui_data_window): Declare destructors.
4610 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4611 destructors.
4612 (tui_win_info): Simplify.
4613
4614 2019-06-25 Tom Tromey <tom@tromey.com>
4615
4616 * tui/tui-winsource.c (tui_display_main)
4617 (tui_update_source_windows_with_addr)
4618 (tui_update_all_breakpoint_info): Update.
4619 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4620 (new_height_ok, parse_scrolling_args): Update.
4621 * tui/tui-stack.c (tui_show_frame_info): Update.
4622 * tui/tui-data.h (struct tui_list): Remove.
4623 (tui_source_windows): Return a reference to a std::vector.
4624 * tui/tui-data.c (source_windows): Now a std::vector.
4625 (tui_source_windows): Change return type.
4626 (tui_clear_source_windows): Rewrite.
4627 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4628 (tui_free_all_source_wins_content): Rewrite.
4629
4630 2019-06-25 Tom Tromey <tom@tromey.com>
4631
4632 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4633 (struct tui_data_window, struct tui_cmd_window): Declare
4634 clear_detail method.
4635 * tui/tui-data.c (tui_source_window::clear_detail)
4636 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4637 methods.
4638 (tui_clear_win_detail): Simplify.
4639
4640 2019-06-25 Tom Tromey <tom@tromey.com>
4641
4642 * tui/tui-layout.c (make_source_window, make_disasm_window)
4643 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4644 Return the new window.
4645 (show_source_disasm_command, show_data)
4646 (show_source_or_disasm_and_command): Update.
4647
4648 2019-06-25 Tom Tromey <tom@tromey.com>
4649
4650 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4651 parameter. Return the new window.
4652 (show_source_disasm_command): Update and remove NULL check.
4653 (show_source_or_disasm_and_command): Update.
4654
4655 2019-06-25 Tom Tromey <tom@tromey.com>
4656
4657 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4658
4659 2019-06-25 Tom Tromey <tom@tromey.com>
4660
4661 * tui/tui-data.h (struct tui_win_info): Make constructor
4662 protected. Make destructor virtual. Add initializers.
4663 (tui_source_window, tui_data_window, tui_cmd_window): New
4664 classes.
4665 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4666 constructor. Add "type" parameter.
4667 (tui_source_window, tui_data_window, tui_cmd_window): New
4668 constructors.
4669 (tui_alloc_win_info): Instantiate the appropriate subclass.
4670
4671 2019-06-25 Tom Tromey <tom@tromey.com>
4672
4673 * tui/tui-win.c (tui_resize_all): Use delete.
4674 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4675 destructor.
4676 (tui_free_window): Don't declare.
4677 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4678 Update.
4679
4680 2019-06-25 Tom Tromey <tom@tromey.com>
4681
4682 * tui/tui-data.h (struct tui_win_info): Add constructor.
4683 * tui/tui-data.c (tui_alloc_win_info): Use new.
4684 (tui_free_window): Use delete.
4685
4686 2019-06-22 Tom Tromey <tom@tromey.com>
4687
4688 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4689 declare.
4690 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4691
4692 2019-06-22 Tom Tromey <tom@tromey.com>
4693
4694 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4695 declare.
4696 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4697
4698 2019-06-22 Tom de Vries <tdevries@suse.de>
4699
4700 * dwarf2read.c (create_addrmap_from_aranges)
4701 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4702 instead of '%zu'.
4703
4704 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
4705
4706 * dwarf2read.h (dwarf2_section_info_def): Remove.
4707 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4708 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4709 std::vector<dwarf2_section_info>.
4710 (struct dwo_file) <~dwo_file>: Remove.
4711 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4712 types field.
4713 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4714 (dwarf2_read_debug_names): Likewise.
4715 (create_debug_types_hash_table): Change parameter type to
4716 array_view, adjust code accordingly.
4717 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4718 (partial_die_info::fixup): Likewise.
4719 (determine_prefix): Likewise.
4720 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4721
4722 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4723
4724 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4725 gdb_bfd_ref_ptr.
4726 <~dwo_file>: Remove call to gdb_bfd_unref.
4727 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4728 gdb_bfd_ref_ptr::get.
4729
4730 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4731
4732 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4733 type to htab_up.
4734 * dwarf2read.c (struct dwo_file): Initialize fields.
4735 <~dwo_file>: New.
4736 (free_dwo_file): Remove, move content to ~dwo_file.
4737 (struct dwo_file_deleter): Remove.
4738 (dwo_file_up>: Remove custom deleter.
4739 (free_dwo_files): Remove.
4740 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4741 dwo_files.
4742 (process_skeletonless_type_units): Call unique_ptr::get.
4743 (allocate_dwo_file_hash_table): Add deleter to created hash
4744 table. Change return type to htab_up.
4745 (lookup_dwo_file_slot): Don't memset dwo_file, call
4746 unique_ptr::get.
4747 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4748 (create_dwo_unit_in_dwp_v2): Likewise.
4749 (open_and_init_dwo_file): Likewise.
4750 (free_dwo_file_from_slot): Remove.
4751
4752 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4753
4754 * dwarf2read.h (struct dwarf2_section_info) <readin,
4755 is_virtual>: Change type to bool.
4756 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4757 true instead of 1.
4758
4759 2019-06-19 Tom Tromey <tom@tromey.com>
4760
4761 * tui/tui-data.h (tui_init_content_element): Don't declare.
4762
4763 2019-06-19 Tom Tromey <tom@tromey.com>
4764
4765 * tui/tui-data.h (tui_init_win_info): Don't declare.
4766
4767 2019-06-19 Tom de Vries <tdevries@suse.de>
4768
4769 * dwarf2read.h (abstract_to_concrete): Change type to
4770 std::unordered_map<sect_offset, std::vector<sect_offset>,
4771 gdb::hash_enum<sect_offset>>.
4772
4773 2019-06-19 Tom Tromey <tromey@adacore.com>
4774
4775 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4776 EVAL_AVOID_SIDE_EFFECTS specially.
4777
4778 2019-06-19 Tom Tromey <tromey@adacore.com>
4779
4780 * source-cache.c (highlighter): New global.
4781 (source_cache::get_source_lines): Create a highlighter on demand.
4782
4783 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4784
4785 * defs.h (deprecated_interactive_hook): Delete declaration.
4786 * interps.c (clear_interpreter_hooks): Remove use of
4787 deprecated_interactive_hook.
4788 * top.c (deprecated_interactive_hook): Delete definition.
4789 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4790
4791 2019-06-18 Tom de Vries <tdevries@suse.de>
4792
4793 PR gdb/24515
4794 * dwarf2read.h (abstract_to_concrete): Change type from
4795 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4796 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4797 * dwarf2read.c (read_variable): Update.
4798 (dwarf2_fetch_die_loc_sect_off): Update.
4799
4800 2019-06-17 Tom de Vries <tdevries@suse.de>
4801
4802 PR gdb/24617
4803 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4804 accessing parent[parent_len - 1].
4805
4806 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4807
4808 PR gdb/24364
4809 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4810 call dtrace_process_dof with NULL dof.
4811
4812 2019-06-16 Tom de Vries <tdevries@suse.de>
4813
4814 PR gdb/24445
4815 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4816
4817 2019-06-16 Tom Tromey <tom@tromey.com>
4818
4819 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4820 (make_all_visible): Use address of member.
4821
4822 2019-06-16 Tom Tromey <tom@tromey.com>
4823
4824 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4825 (tui_free_window, free_content, free_content_elements): Remove
4826 unnecessary cast.
4827 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4828 cast.
4829 * tui/tui-regs.c (tui_show_register_group)
4830 (tui_display_registers_from, tui_display_reg_element_at_line):
4831 Remove unnecessary cast.
4832
4833 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4834
4835 * linux-nat.c (normal_mask): Delete.
4836 (_initialize_linux_nat): Don't initialise normal_mask.
4837
4838 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4839
4840 PR gdb/24445
4841 * dwarf-index-write.h (write_psymtabs_to_index): Add
4842 dwz_basename parameter.
4843 * dwarf-index-write.c (write_gdbindex): Move file writing to
4844 write_gdbindex_1. Change return type void.
4845 (assert_file_size): Move up, remove filename parameter.
4846 (write_gdbindex_1): New function.
4847 (write_debug_names): Change return type to void, call
4848 assert_file_size.
4849 (struct index_wip_file): New struct.
4850 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4851 file logic to index_wip_file. Write index for dwz file if
4852 needed.
4853 (save_gdb_index_command): Pass basename of dwz file, if present.
4854 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4855 build-id of dwz file, if present.
4856 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4857 (dwarf2_get_dwz_file): Likewise.
4858 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4859 (dwarf2_get_dwz_file): Likewise.
4860
4861 2019-06-16 Tom Tromey <tom@tromey.com>
4862
4863 * coffread.c (process_coff_symbol): Use xstrdup.
4864 * value.c (create_internalvar): Use xstrdup.
4865
4866 2019-06-16 Tom Tromey <tom@tromey.com>
4867
4868 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4869 * breakpoint.c (stopin_command, stopat_command)
4870 (until_break_command, decode_location_default): Remove unnecessary
4871 cast.
4872 * utils.c (subset_compare): Remove unnecessary cast.
4873 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4874 cast.
4875 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4876 cast.
4877 * infcmd.c (path_command): Remove unnecessary cast.
4878 * coffread.c (decode_type): Remove unnecessary cast.
4879 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4880 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4881 * tui/tui-stack.c (tui_show_locator_content)
4882 (tui_show_frame_info): Remove unnecessary cast.
4883 * tui/tui-win.c (tui_scroll_forward_command)
4884 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4885 (parse_scrolling_args): Remove unnecessary cast.
4886 * tui/tui-data.c (init_win_info, tui_del_window)
4887 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4888 (free_content_elements): Remove unnecessary cast.
4889 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4890 unnecessary cast.
4891 * tui/tui-source.c (tui_set_source_content)
4892 (tui_vertical_source_scroll): Remove unnecessary cast.
4893 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4894 cast.
4895 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4896 * tui/tui-regs.c (tui_display_registers_from)
4897 (tui_display_register): Remove unnecessary cast.
4898 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4899 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4900 (make_visible): Remove unnecessary cast.
4901 * tui/tui-winsource.c (tui_erase_source_content)
4902 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4903 unnecessary cast.
4904 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4905 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4906 * stabsread.c (read_type, read_array_type, read_range_type):
4907 Remove unnecessary cast.
4908 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4909 (parse_symbol, parse_type, upgrade_type, parse_external)
4910 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4911 unnecessary cast.
4912 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4913
4914 2019-06-16 Tom Tromey <tom@tromey.com>
4915
4916 * tui/tui-data.c (tui_alloc_generic_win_info)
4917 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4918 checks.
4919
4920 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4921 Andrew Burgess <andrew.burgess@embecosm.com>
4922
4923 * f-typeprint.c (f_print_type): Don't return early for not
4924 associated or not allocated types.
4925 (f_type_print_varspec_suffix): Add print_rank parameter and print
4926 ranks of array types in case they dangling.
4927 (f_type_print_base): Add print_rank parameter.
4928
4929 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4930
4931 * NEWS: Mention new MI commands.
4932 * break-catch-throw.c (enum exception_event_kind): Move to
4933 breakpoint.h.
4934 (print_mention_exception_catchpoint): Output text as a single
4935 message.
4936 (catch_exception_command_1): Rename to...
4937 (catch_exception_event): ...this, make non-static, update header
4938 command, and change some parameter types.
4939 (catch_catch_command): Update for changes to
4940 catch_exception_command_1.
4941 (catch_throw_command): Likewise.
4942 (catch_rethrow_command): Likewise.
4943 * breakpoint.c (enum exception_event_kind): Delete.
4944 * breakpoint.h (enum exception_event_kind): Moved here from
4945 break-catch-throw.c.
4946 (catch_exception_event): Declare.
4947 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4948 (mi_cmd_catch_throw): New function.
4949 (mi_cmd_catch_rethrow): New function.
4950 (mi_cmd_catch_catch): New function.
4951 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4952 'catch-catch' entries.
4953 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4954 (mi_cmd_catch_rethrow): Declare.
4955 (mi_cmd_catch_catch): Declare.
4956
4957 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4958
4959 * annotate.c (annotate_source_line): Change return type to void,
4960 update implementation to match.
4961 * annotate.h (annotate_source_line): Change return type to void,
4962 update header comment.
4963 * stack.c (print_frame_info): Don't change what frame information
4964 is printed based on whether annotations are on or not.
4965
4966 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4967
4968 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4969 (annotate_source): Make static.
4970 (annotate_source_line): Moved from source.c and renamed from
4971 identify_source_line. Update the return type.
4972 * annotate.h (annotate_source): Delete declaration.
4973 (annotate_source_line): Declaration moved from source.h, and
4974 renamed from identify_source_line. Return type updated.
4975 * source.c (identify_source_line): Moved to annotate.c and renamed
4976 to annotate_source_line.
4977 (info_line_command): Remove check of annotation_level.
4978 * source.h (identify_source_line): Move declaration to annotate.h
4979 and rename to annotate_source_line.
4980 * stack.c: Add 'annotate.h' include.
4981 (print_frame_info): Remove check of annotation_level before
4982 calling annotate_source_line.
4983
4984 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4985
4986 * source-cache.c (source_cache::get_plain_source_lines): Use
4987 open_source_file_with_line_charpos instead of just
4988 open_source_file, remove call to find_source_lines.
4989 (source_cache::get_source_lines): Likewise.
4990 * source.c (find_source_lines): Make static.
4991 (get_filename_and_charpos): Renamed into...
4992 (open_source_file_with_line_charpos): ..this along with changes to
4993 return a scoped_fd, and some other minor clean ups.
4994 (identify_source_line): Use open_source_file_with_line_charpos.
4995 (search_command_helper): Use open_source_file_with_line_charpos
4996 instead of just open_source_file, remove call to
4997 find_source_lines.
4998 * source.h (open_source_file_with_line_charpos): Declare new
4999 function.
5000 (find_source_lines): Delete declaration.
5001
5002 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5003
5004 * source.c (get_filename_and_charpos): Remove fullname
5005 parameter.
5006 (identify_source_line): Update call to get_filename_and_charpos.
5007
5008 2019-06-14 Tom Tromey <tromey@adacore.com>
5009
5010 PR gdb/24502:
5011 * ui-style.h (skip_ansi_escape): Update comment.
5012 * ui-file.h (class no_terminal_escape_file): New class.
5013 * ui-file.c (no_terminal_escape_file::write)
5014 (no_terminal_escape_file::puts): New methods.
5015 * cli/cli-logging.c (handle_redirections): Use
5016 no_terminal_escape_file.
5017
5018 2019-06-14 Tom Tromey <tromey@adacore.com>
5019
5020 * NEWS: Move convenience variable news above Python news.
5021
5022 2019-06-14 Tom Tromey <tom@tromey.com>
5023
5024 * gnulib: Move directory to top-level.
5025 * configure.ac: Don't configure gnulib.
5026 * configure: Rebuild.
5027 * common/common-defs.h: Use new path to gnulib.
5028 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5029 (GNULIB_H): Remove.
5030 (INCGNU): Look in new gnulib location.
5031 (HFILES_NO_SRCDIR): Remove gnulib files.
5032 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5033 (generated_files): Remove GNULIB_H.
5034 ($(LIBGNU), all-lib): Remove targets.
5035 (distclean): Don't mention GNULIB_BUILDDIR.
5036 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5037
5038 2019-06-14 Tom Tromey <tromey@adacore.com>
5039
5040 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5041 Warn if symbol file does not provide any symbols.
5042
5043 2019-06-14 Tom Tromey <tromey@adacore.com>
5044
5045 * source.c (find_and_open_source): Respect basenames_may_differ.
5046
5047 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5048
5049 * annotate.c (annotate_breakpoints_invalid): Make use of
5050 scoped_restore_terminal_state.
5051 (annotate_frames_invalid): Likewise.
5052
5053 2019-06-14 Tom Tromey <tromey@adacore.com>
5054
5055 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5056 allow assignment to an internalvar.
5057
5058 2019-06-14 Tom Tromey <tromey@adacore.com>
5059
5060 * ada-lex.l: Allow "_" in attribute names.
5061
5062 2019-06-14 Tom Tromey <tromey@adacore.com>
5063
5064 PR gdb/24653:
5065 * regcache.c (registers_changed): Don't call alloca.
5066 * top.c (execute_command): Don't call alloca.
5067
5068 2019-06-13 Pedro Alves <palves@redhat.com>
5069
5070 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5071 'expression'. When parsing an expression, error out if there's
5072 junk after "unlimited".
5073 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5074 (do_set_command): Adjust calls to is_unlimited_literal.
5075
5076 2019-06-13 Pedro Alves <palves@redhat.com>
5077
5078 * compile/compile.c (make_compile_options_def_group): Add braces
5079 around array_view initializer.
5080 * thread.c (make_thread_apply_all_options_def_group)
5081 (make_thread_apply_all_options_def_group): Likewise.
5082
5083 2019-06-13 Pedro Alves <palves@redhat.com>
5084
5085 * NEWS (New commands): Mention "maint test-options
5086 require-delimiter", "maint test-options unknown-is-error", "maint
5087 test-options unknown-is-operand" and "maint show
5088 test-options-completion-result".
5089 (New command options, command completion): New section.
5090 (Completion improvements): New section.
5091 Mention that you can abbreviate "unlimited".
5092
5093 2019-06-13 Pedro Alves <palves@redhat.com>
5094
5095 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5096 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5097 * unittests/cli-utils-selftests.c (test_parse_flags)
5098 (test_parse_flags_qcs): Delete.
5099 (test_cli_utils): Don't call deleted functions.
5100
5101 2019-06-13 Pedro Alves <palves@redhat.com>
5102
5103 * thread.c: Include "cli/cli-option.h".
5104 (tp_array_compar_ascending): Global.
5105 (tp_array_compar): Delete function.
5106 (tp_array_compar_ascending, tp_array_compar_descending): New
5107 functions.
5108 (ascending_option_def, qcs_flag_option_def)
5109 (thr_qcs_flags_option_defs)
5110 (make_thread_apply_all_options_def_group)
5111 (make_thread_apply_options_def_group): New.
5112 (thread_apply_all_command): Use gdb::option::process_options.
5113 (thread_apply_command_completer)
5114 (thread_apply_all_command_completer): New.
5115 (thread_apply_command): Use gdb::option::process_options.
5116 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5117 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5118 to generate help text of "thread apply". Adjust "taas"'s help.
5119 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5120 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5121
5122 2019-06-13 Pedro Alves <palves@redhat.com>
5123
5124 * thread.c (thread_apply_command): Check for invalid TID with
5125 isdigit instead of !isalpha.
5126
5127 2019-06-13 Pedro Alves <palves@redhat.com>
5128
5129 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5130 (validate_flags_qcs): New.
5131 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5132 (validate_flags_qcs): Declare.
5133 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5134 (make_frame_apply_options_def_group): New.
5135 (frame_apply_command_count): Process options with
5136 gdb::option::process_options.
5137 (frame_apply_completer): New.
5138 (frame_apply_level_completer, frame_apply_all_completer)
5139 (frame_apply_completer): New.
5140 (_initialize_stack): Update help of "frame apply", "frame apply
5141 level", "frame apply all" and "faas" to mention supported options
5142 and install command completers.
5143 * stack.h (frame_apply_all_completer): Declare.
5144 * thread.c: Include "stack.h".
5145 (tfaas_command): Add "--".
5146 (_initialize_thread): Update help "tfaas" to mention supported
5147 options and install command completer.
5148
5149 2019-06-13 Pedro Alves <palves@redhat.com>
5150
5151 * completer.c (complete_nested_command_line): New.
5152 (gdb_completion_word_break_characters_throw): Add assertion.
5153 * completer.h (complete_nested_command_line): Declare.
5154
5155 2019-06-13 Pedro Alves <palves@redhat.com>
5156
5157 * stack.c (parse_backtrace_qualifiers): New.
5158 (backtrace_command): Use it.
5159 (backtrace_command_completer): Complete on qualifiers.
5160
5161 2019-06-13 Pedro Alves <palves@redhat.com>
5162
5163 * frame.c: Include "cli/cli-option.h.
5164 (user_set_backtrace_options): New.
5165 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5166 Delete.
5167 (get_prev_frame): Adjust.
5168 (boolean_option_def, uinteger_option_def)
5169 (set_backtrace_option_defs): New.
5170 (_initialize_frame): Adjust and use
5171 gdb::option::add_setshow_cmds_for_options to install "set
5172 backtrace past-main" and "set backtrace past-entry".
5173 * frame.h: Include "cli/cli-option.h".
5174 (struct frame_print_options): Forward declare.
5175 (print_frame_arguments_all, print_frame_arguments_scalars)
5176 (print_frame_arguments_none): Declare.
5177 (print_entry_values): Delete declaration.
5178 (struct frame_print_options, user_frame_print_options): New.
5179 (struct set_backtrace_options): New.
5180 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5181 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5182 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5183 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5184 (list_args_or_locals): Add frame_print_options parameter.
5185 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5186 * python/py-framefilter.c (enumerate_args): Pass down
5187 USER_FRAME_PRINT_OPTIONS.
5188 * stack.c: Include "cli/cli-option.h".
5189 (print_frame_arguments_all, print_frame_arguments_scalars)
5190 (print_frame_arguments_none): Declare.
5191 (print_raw_frame_arguments, print_entry_values): Delete.
5192 (user_frame_print_options): New.
5193 (boolean_option_def, enum_option_def, frame_print_option_defs):
5194 New.
5195 (struct backtrace_cmd_options): New.
5196 (bt_flag_option_def): New.
5197 (backtrace_command_option_defs): New.
5198 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5199 (print_frame_arg, read_frame_arg, print_frame_args)
5200 (print_frame_info, print_frame): Add frame_print_options parameter
5201 and use it.
5202 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5203 (backtrace_command_1): Add frame_print_options and
5204 backtrace_cmd_options parameters and use them.
5205 (make_backtrace_options_def_group): New.
5206 (backtrace_command): Process command options with
5207 gdb::option::process_options.
5208 (backtrace_command_completer): New.
5209 (_initialize_stack): Extend "backtrace"'s help to mention
5210 supported options. Install completer for "backtrace".
5211 Install some settings commands with add_setshow_cmds_for_options.
5212
5213 2019-06-13 Pedro Alves <palves@redhat.com>
5214
5215 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5216 and that "set/show print raw frame-arguments" are now deprecated.
5217
5218 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5219 command.
5220 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5221 * stack.c (_initialize_stack): Install "set/show print
5222 raw-frame-arguments", and deprecate "set/show print raw
5223 frame-arguments".
5224 * valprint.c (_initialize_valprint): Deprecate "set/show print
5225 raw".
5226
5227 2019-06-13 Pedro Alves <palves@redhat.com>
5228
5229 * compile/compile.c (struct compile_options): New.
5230 (compile_flag_option_def, compile_command_option_defs)
5231 (make_compile_options_def_group): New.
5232 (compile_file_command): Handle options with
5233 gdb::option::process_options.
5234 (compile_file_command_completer): New function.
5235 (compile_code_command): Handle options with
5236 gdb::option::process_options.
5237 (compile_code_command_completer): New function.
5238 (_initialize_compiler): Install completers for "compile code" and
5239 "compile file". Mention available options in "compile code" and
5240 "compile code"'s help.
5241 * completer.c (advance_to_completion_word): New, factored out from
5242 ...
5243 (advance_to_expression_complete_word_point): ... this.
5244 (advance_to_filename_complete_word_point): New.
5245 * completer.h (advance_to_filename_complete_word_point): New
5246 declaration.
5247
5248 2019-06-13 Pedro Alves <palves@redhat.com>
5249
5250 * compile/compile.c: Include "cli/cli-option.h".
5251 (compile_print_value): Scope data pointer is now a
5252 value_print_options pointer; adjust.
5253 (compile_print_command): Process options. Scope data pointer is
5254 now a value_print_options pointer; adjust.
5255 (_initialize_compile): Update "compile print"'s help to include
5256 supported options. Install a completer for "compile print".
5257 * cp-valprint.c (show_vtblprint, show_objectprint)
5258 (show_static_field_print): Delete.
5259 (_initialize_cp_valprint): Don't install "set print
5260 static-members", "set print vtbl", "set print object" here.
5261 * printcmd.c: Include "cli/cli-option.h" and
5262 "common/gdb_optional.h".
5263 (print_command_parse_format): Rework to fill in a
5264 value_print_options instead of a format_data.
5265 (print_value): Change parameter type from format_data pointer to
5266 value_print_options reference. Adjust.
5267 (print_command_1): Process options. Adjust to pass down a
5268 value_print_options.
5269 (print_command_completer): New.
5270 (_initialize_printcmd): Install print_command_completer as
5271 handle_brkchars completer for the "print" command. Update
5272 "print"'s help to include supported options.
5273 * valprint.c: Include "cli/cli-option.h".
5274 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5275 here from cp-valprint.c.
5276 (boolean_option_def, uinteger_option_def)
5277 (value_print_option_defs, make_value_print_options_def_group):
5278 New. Use gdb::option::add_setshow_cmds_for_options to install
5279 "set print elements", "set print null-stop", "set print repeats",
5280 "set print pretty", "set print union", "set print array", "set
5281 print address", "set print symbol", "set print array-indexes".
5282 * valprint.h: Include <string> and "cli/cli-option.h".
5283 (make_value_print_options_def_group): Declare.
5284 (print_value): Change parameter type from format_data pointer to
5285 value_print_options reference.
5286 (print_command_completer): Declare.
5287
5288 2019-06-13 Pedro Alves <palves@redhat.com>
5289
5290 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5291 (COMMON_SFILES): Add maint-test-settings.c.
5292 * cli/cli-decode.c (boolean_enums): New global, factored out from
5293 ...
5294 (add_setshow_boolean_cmd): ... here.
5295 * cli/cli-decode.h (boolean_enums): Declare.
5296 * cli/cli-option.c: New file.
5297 * cli/cli-option.h: New file.
5298 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5299 factored out from ...
5300 (parse_cli_boolean_value(const char *)): ... this.
5301 (is_unlimited_literal): Change parameter type to pointer to
5302 pointer. Adjust and advance ARG pointer.
5303 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5304 (parse_cli_var_enum): New, factored out from ...
5305 (do_set_command): ... this. Adjust.
5306 * cli/cli-setshow.h (parse_cli_boolean_value)
5307 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5308 (parse_cli_var_enum): Declare.
5309 * cli/cli-utils.c: Include "cli/cli-option.h".
5310 (get_ulongest): New.
5311 * cli/cli-utils.h (get_ulongest): Declare.
5312 (check_for_argument): New overloads.
5313 * maint-test-options.c: New file.
5314
5315 2019-06-13 Pedro Alves <palves@redhat.com>
5316
5317 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5318 parse a range if "-" is at the end of the string.
5319
5320 2019-06-13 Pedro Alves <palves@redhat.com>
5321
5322 * cli/cli-setshow.c (parse_auto_binary_operation)
5323 (parse_cli_boolean_value): Don't allow "o".
5324
5325 2019-06-13 Pedro Alves <palves@redhat.com>
5326
5327 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5328 * NEWS: Mention maint test-settings KIND.
5329 * maint-test-settings.c: New file.
5330
5331 2019-06-13 Pedro Alves <palves@redhat.com>
5332
5333 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5334 completer.
5335 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5336 "set" completers.
5337
5338 2019-06-13 Pedro Alves <palves@redhat.com>
5339
5340 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5341 after item.
5342
5343 2019-06-13 Pedro Alves <palves@redhat.com>
5344
5345 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5346
5347 2019-06-13 Pedro Alves <palves@redhat.com>
5348
5349 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5350 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5351 call.
5352 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5353 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5354 calls.
5355 (check_for_argument): Skip spaces after argument.
5356
5357 2019-06-13 Pedro Alves <palves@redhat.com>
5358
5359 * thread.c (thread_apply_command): Adjust TID parsing.
5360 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5361 detected before end of string.
5362 (tid_is_in_list): Error out if LIST is invalid.
5363
5364 2019-06-13 Pedro Alves <palves@redhat.com>
5365
5366 * completer.c (complete_line_internal_1): Rewind completion word
5367 point.
5368 (completion_tracker::advance_custom_word_point_by): Change
5369 parameter type to int.
5370 * completer.h (completion_tracker::advance_custom_word_point_by):
5371 Likewise.
5372
5373 2019-06-13 Pedro Alves <palves@redhat.com>
5374
5375 * completer.c (advance_to_completion_word): Handle delimiters.
5376
5377 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5378
5379 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5380
5381 2019-06-11 Tom Tromey <tom@tromey.com>
5382
5383 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5384 (xmalloc_failed): Move to alloc.c.
5385 * alloc.c: New file.
5386 * Makefile.in (COMMON_SFILES): Add alloc.c.
5387
5388 2019-06-11 Tom Tromey <tom@tromey.com>
5389
5390 * nat/linux-waitpid.c: Don't include server.h.
5391 (linux_debug): Remove.
5392 (my_waitpid): Update.
5393
5394 2019-06-11 Tom Tromey <tromey@adacore.com>
5395
5396 * infcall.c (_initialize_infcall): Remove trailing newline from
5397 help.
5398 * user-regs.c (_initialize_user_regs): Remove trailing newline
5399 from help.
5400 * typeprint.c (_initialize_typeprint): Remove trailing newline
5401 from help.
5402 * reverse.c (_initialize_reverse): Remove trailing newlines from
5403 help.
5404 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5405 from help.
5406 * language.c (add_set_language_command): Remove trailing newline
5407 from help.
5408 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5409 help.
5410 * disasm.c (_initialize_disasm): Remove trailing newline from
5411 help.
5412 * top.c (init_main): Remove trailing newline from help.
5413 * interps.c (_initialize_interpreter): Remove trailing newline
5414 from help.
5415 * btrace.c (_initialize_btrace): Remove trailing newlines from
5416 help.
5417 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5418 from help.
5419 * python/python.c (_initialize_python): Remove trailing newline
5420 from help.
5421 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5422 help.
5423 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5424 from help. Reformat some text.
5425 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5426 from help.
5427 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5428 newline from help.
5429
5430 2019-06-11 Tom Tromey <tromey@adacore.com>
5431
5432 * darwin-nat.c (darwin_decode_exception_message)
5433 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5434
5435 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5436
5437 * valops.c (value_slice): Check for not allocated or not
5438 associated values.
5439
5440 2019-06-10 Tom de Vries <tdevries@suse.de>
5441
5442 PR gdb/24618
5443 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5444 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5445 invalid.
5446
5447 2019-06-10 Tom de Vries <tdevries@suse.de>
5448
5449 PR gdb/24611
5450 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5451 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5452
5453 2019-06-10 Tom de Vries <tdevries@suse.de>
5454
5455 PR symtab/24545
5456 * symtab.c (struct demangled_name_entry): Add language field.
5457 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5458 static minimal symbol". Set and use language field.
5459
5460 2019-06-10 Tom Tromey <tromey@adacore.com>
5461
5462 * ada-lang.c (_initialize_ada_language): Update help text.
5463
5464 2019-06-10 Tom Tromey <tromey@adacore.com>
5465
5466 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5467 with a newline.
5468 * guile/guile.c (handle_boot_error): Don't end warning with a
5469 newline.
5470 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5471 warning with a newline.
5472 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5473 newline.
5474 (s12z_frame_cache): Likewise.
5475 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5476 a newline.
5477 * solib-svr4.c (disable_probes_interface): Don't end warning with
5478 a newline.
5479 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5480 newline.
5481 * python/python.c (do_finish_initialization): Don't end warning
5482 with a newline.
5483
5484 2019-06-10 Tom Tromey <tom@tromey.com>
5485
5486 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5487 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5488 gdbpy_enter.
5489
5490 2019-06-10 Tom Tromey <tromey@adacore.com>
5491
5492 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5493 data.
5494 (elf_new_init): Don't call stabsread_new_init.
5495 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5496 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5497 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5498
5499 2019-06-10 Tom de Vries <tdevries@suse.de>
5500
5501 PR symtab/16264
5502 PR symtab/24517
5503 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5504
5505 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5506
5507 * source.c (find_and_open_source): Also rewrite relative file
5508 names.
5509
5510 2019-04-26 Amos Bird <amosbird@gmail.com>
5511
5512 * annotate.c (annotate_thread_exited): Add "thread-exited"
5513 annotation.
5514
5515 2019-06-06 Tom Tromey <tromey@adacore.com>
5516
5517 * maint.h (class scoped_command_stats): Use
5518 DISABLE_COPY_AND_ASSIGN.
5519 <print_time>: New method.
5520 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5521 print_time.
5522 (scoped_command_stats::print_time): New method.
5523
5524 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5525
5526 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5527 instructions of lengths 6 or 8 bytes.
5528
5529 2019-06-04 Pedro Alves <palves@redhat.com>
5530
5531 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5532
5533 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5534 * breakpoint.c (condition_completer): Likewise.
5535 * cli/cli-dump.c (scan_expression): Likewise.
5536 * common/filestuff.c (mkdir_recursive): Likewise.
5537 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5538 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5539 (gdb_abspath): Likewise.
5540 * compile/compile-cplus-types.c
5541 (compile_cplus_instance::decl_name): Likewise.
5542 * completer.c (complete_explicit_location):
5543 (signal_completer, reg_or_group_completer_1): Likewise.
5544 * cp-support.c (cp_remove_params_if_any): Likewise.
5545 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5546 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5547 * infcmd.c (strip_bg_char): Likewise.
5548 * linespec.c (copy_token_string): Likewise.
5549 * mi/mi-main.c (output_cores): Likewise.
5550 * psymtab.c (psymtab_search_name):
5551 * symfile.c (test_set_ext_lang_command): Likewise.
5552 * target.c (target_fileio_read_stralloc): Likewise.
5553 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5554 * value.c (complete_internalvar): Likewise.
5555
5556 2019-06-04 Christian Biesinger <cbiesinger@google.com>
5557
5558 Add objfile property to gdb.Type.
5559 * NEWS: Mention Python API addition.
5560 * python/py-type.c (typy_get_objfile): New method.
5561
5562 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5563
5564 * NEWS: Mention the new set|show style [title|highlight].
5565 Mention changes to "show style", "help" and "apropos".
5566
5567 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5568
5569 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5570 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5571 instead of print_help_for_command.
5572 (print_doc_of_command): New function.
5573 (help_list): Add 'apropos -v word' suggestion.
5574 (print_help_for_command): Style the command name using title style.
5575 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5576 (_initialize_cli_cmds): Describe -v in apropos_command help.
5577
5578 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5579
5580 * cli/cli-style.h (cli_style_option): Add name in constructor,
5581 add m_name class member, add constructor with intensity,
5582 add name class function.
5583 (cli_style_option::add_setshow_commands): Remove name argument.
5584 (highlight_style, title_style): New styles.
5585 * cli/cli-style.c (do_show): New function that shows a style
5586 characteristic styling the style name with itself.
5587 (set_style_name): New function.
5588 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5589 Update all callers according to the changes in cli/cli-style.h.
5590 * utils.h (fputs_highlighted): New function.
5591 * utils.c (fputs_highlighted): Likewise.
5592
5593 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5594
5595 * NEWS: Mention new pipe command and new convenience variables.
5596
5597 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5598
5599 * cli/cli-cmds.c (pipe_command): New function.
5600 (_initialize_cli_cmds): Call add_com for pipe_command.
5601 Define | as an alias for pipe.
5602 (exit_status_set_internal_vars): New function.
5603 (shell_escape): Call exit_status_set_internal_vars.
5604 cli/cli-decode.c (find_command_name_length): Recognize | as
5605 a single character command.
5606
5607 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5608
5609 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5610 top.c (execute_command_to_ui_file): New function, mostly a copy
5611 of execute_command_to_string.
5612 (execute_command_to_string): Implement by calling
5613 execute_command_to_ui_file.
5614
5615 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5616
5617 * top.h (saved_command_line): Remove declaration.
5618 * top.c (previous_saved_command_line, previous_repeat_arguments):
5619 New variables.
5620 (saved_command_line): Make static, define together with other
5621 'repeat variables'.
5622 (dont_repeat): Clear repeat_arguments.
5623 (repeat_previous, get_saved_command_line, save_command_line):
5624 New functions.
5625 (gdb_init): Initialize saved_command_line
5626 and previous_saved_command_line.
5627 * main.c (captured_main_1): Remove saved_command_line initialization.
5628 * event-top.c (handle_line_of_input): Update to use
5629 the new 'repeat' related functions instead of direct access to
5630 saved_command_line.
5631 * command.h (repeat_previous, get_saved_command_line,
5632 save_command_line): New declarations.
5633 (dont_repeat): Add comment.
5634
5635 2019-05-30 Tom Tromey <tromey@adacore.com>
5636
5637 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5638 Fix comment.
5639 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5640
5641 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5642
5643 PR cli/24587
5644 * completer.c (complete): Initialize variable word.
5645
5646 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5647
5648 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5649 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5650 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5651 'body' is NULL to the outter 'if', protecting the '!is_define'
5652 situation as well.
5653
5654 2019-05-29 Tom Tromey <tromey@adacore.com>
5655
5656 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5657 (dwarf_unknown): New function.
5658 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5659 (dwarf_type_encoding_name): Use dwarf_unknown.
5660
5661 2019-05-29 Tom Tromey <tromey@adacore.com>
5662
5663 PR c++/20020:
5664 * cp-valprint.c (cp_print_value_fields): Call
5665 cp_print_static_field inside "try".
5666
5667 2019-05-29 Tom Tromey <tromey@adacore.com>
5668
5669 * inflow.c (struct terminal_info): Add default operator=.
5670 * configure: Rebuild.
5671 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5672 -Wdeprecated-copy-dtor, -Wredundant-move.
5673
5674 2019-05-29 Tom Tromey <tromey@adacore.com>
5675
5676 * NEWS: Add entry.
5677 * infcmd.c (print_return_value_1): Handle finish_print
5678 option.
5679 (show_print_finish): New function.
5680 (_initialize_infcmd): Add "set/show print finish" commands.
5681 * valprint.c (user_print_options): Initialize new member.
5682 * valprint.h (struct value_print_options) <finish_print>: New
5683 member.
5684
5685 2019-05-28 Tom Tromey <tromey@adacore.com>
5686
5687 * ada-lang.c (ada_remove_Xbn_suffix)
5688 (find_old_style_renaming_symbol)
5689 (parse_old_style_renaming): Remove.
5690 (ada_find_renaming_symbol): Don't call
5691 find_old_style_renaming_symbol.
5692 (ada_is_renaming_symbol): Rename from
5693 ada_find_renaming_symbol. Remove "block" parameter. Return
5694 bool. Now static.
5695 (ada_read_var_value): Update and simplify.
5696 * ada-exp.y (write_var_or_type): Remove old code.
5697
5698 2019-05-28 Alan Hayward <alan.hayward@arm.com>
5699
5700 * event-top.c: Remove include comment.
5701 * inflow.c (class scoped_ignore_sigttou): Move from here...
5702 * inflow.h (class scoped_ignore_sigttou): ...to here.
5703 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5704 * top.c: Remove include comment.
5705
5706 2019-05-27 Tom Tromey <tom@tromey.com>
5707
5708 * NEWS: Fix typo.
5709
5710 2019-05-22 Tom Tromey <tromey@adacore.com>
5711
5712 * target.c (target_follow_exec): Constify parameter.
5713 * target-delegates.c: Rebuild.
5714 * remote.c (remote_target::follow_exec): Constify parameter.
5715 * infrun.c (follow_exec): Constify parameter.
5716 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5717 (target_follow_exec): Likewise.
5718
5719 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5720
5721 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5722 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5723
5724 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5725
5726 * NEWS: Add debugredirect and testsuite sections.
5727
5728 2019-05-22 Simon Cook <simon.cook@embecosm.com>
5729
5730 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5731 target descriptions using exclusively floating point register name
5732 aliases.
5733
5734 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5735
5736 PR gdb/18644:
5737 * f-lang.c (build_fortran_types): Handle the case where
5738 gdbarch_floatformat_for_type returns a nullptr.
5739
5740 2019-05-21 Tom de Vries <tdevries@suse.de>
5741
5742 PR cli/24587
5743 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5744
5745 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5746
5747 PR gdb/18644:
5748 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5749 16-byte floats.
5750 * i386-tdep.c (i386_floatformat_for_type): Use
5751 floatformats_ia64_quad for the 16-byte floating point component
5752 within a fortran 32-byte complex number.
5753
5754 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5755
5756 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5757 delete default constructor.
5758 (find_partial_die): Update to return const struct.
5759 (partial_die_parent_scope): Move variable declaration into scope
5760 of its use and change its type to auto.
5761 (guess_partial_die_structure_name): Likewise.
5762 (partial_die_info::fixup): Likewise.
5763
5764 2019-05-17 Tom Tromey <tromey@adacore.com>
5765
5766 * source.c (find_and_open_source): Remove cast.
5767
5768 2019-05-17 Tom Tromey <tromey@adacore.com>
5769
5770 * annotate.c (annotate_source): Make "filename" const.
5771 * annotate.h (annotate_source): Use const.
5772
5773 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5774
5775 * disasm.c (set_disassembler_options): Send errors to stderr.
5776
5777 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5778
5779 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5780 (cli_interp_base::set_logging): Check debug_redirect.
5781 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5782 * cli/cli-logging.c (debug_redirect): Add static variable.
5783 (pop_output_files): Add default param.
5784 (handle_redirections): Print debug setting.
5785 (show_logging_command): Likewise.
5786 (_initialize_cli_logging): Add debugredirect command.
5787 * interps.c (current_interp_set_logging): Add debug_redirect
5788 parameter.
5789 * interps.h (set_logging): Add debug_redirect parameter.
5790 (current_interp_set_logging): Likewise.
5791 * mi/mi-common.h: Likewise.
5792 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5793
5794 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5795 Tom Tromey <tromey@adacore.com>
5796
5797 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5798 directly.
5799 * cli/cli-interp.h (make_logging_output): Remove declaration.
5800 * cli/cli-logging.c (make_logging_output): Remove function.
5801 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5802 directly.
5803 * ui-file.c (tee_file::tee_file): Remove bools.
5804 (tee_file::~tee_file): Remove deletes.
5805 * ui-file.h (tee_file): Remove bools.
5806
5807 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5808
5809 * mi/mi-cmds.h (mi_cmd_complete): New function.
5810 * mi/mi-main.c (mi_cmd_complete): Likewise.
5811 * mi/mi-cmds.c: Define new MI command -complete.
5812 * NEWS: Mention new -complete command.
5813
5814 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5815
5816 * completer.h (complete): New function.
5817 * completer.c (complete): Likewise.
5818 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5819 function defined in completer.h.
5820
5821 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5822
5823 * MAINTAINERS (Write After Approval): Add myself.
5824
5825 2019-05-17 Tom de Vries <tdevries@suse.de>
5826
5827 PR gdb/24094
5828 * dwarf2read.c (struct cu_partial_die_info): New struct.
5829 (find_partial_die): Return cu_partial_die_info.
5830 (partial_die_parent_scope, guess_partial_die_structure_name)
5831 (partial_die_info::fixup): Handle new return type of find_partial_die.
5832
5833 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5834
5835 PR breakpoints/24541
5836 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5837 "std::string", simplifying the algorithm.
5838
5839 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5840
5841 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5842 (stap_static_probe_ops::get_probes): Likewise.
5843
5844 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5845
5846 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5847 '-')" and "else if".
5848 (stap_parse_single_operand): Join checks for
5849 "gdbarch_stap_parse_special_token_p" and
5850 "gdbarch_stap_parse_special_token" in the same "if" statement.
5851 Invert check when verifying for operation on register
5852 displacement.
5853
5854 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5855
5856 * stap-probe.c (stap_get_opcode): Update comment.
5857 (stap_get_expected_argument_type): Likewise.
5858 (handle_stap_probe): Likewise.
5859
5860 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5861
5862 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5863 return type to 'bool'. Adjust comment. Use 'bool' when
5864 appropriate.
5865 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5866 * stap-probe.c (stap_parse_argument_1): Likewise.
5867 (stap_is_operator): Likewise.
5868 (stap_is_generic_prefix): Likewise.
5869 (stap_is_register_prefix): Likewise.
5870 (stap_is_register_indirection_prefix): Likewise.
5871 (stap_is_integer_prefix): Likewise.
5872 (stap_generic_check_suffix): Likewise.
5873 (stap_check_integer_suffix): Likewise.
5874 (stap_check_register_suffix): Likewise.
5875 (stap_check_register_indirection_suffix): Likewise.
5876 (stap_parse_register_operand): Likewise.
5877 (stap_parse_single_operand): Likewise.
5878 (stap_parse_argument_1): Likewise.
5879 (stap_probe::get_argument_count): Likewise.
5880 (stap_is_operator): Likewise.
5881
5882 2019-05-16 Tom Tromey <tromey@adacore.com>
5883
5884 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5885 keyword to foreach.
5886
5887 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
5888
5889 * linux-thread-db.c (try_thread_db_load_1): Change return type
5890 to bool.
5891 (try_thread_db_load): Likewise.
5892 (try_thread_db_load_from_pdir_1): Likewise.
5893 (try_thread_db_load_from_pdir): Likewise.
5894 (try_thread_db_load_from_sdir): Likewise.
5895 (try_thread_db_load_from_dir): Likewise.
5896 (thread_db_load_search): Likewise.
5897 (has_libpthread): Likewise.
5898 (thread_db_load): Likewise.
5899
5900 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5901
5902 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5903 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5904 NULL, and complain/return if that's the case.
5905
5906 2019-05-15 John Darrington <john@darrington.wattle.id.au>
5907
5908 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5909 (advance, posn, abstract_read_memory): New functions.
5910 [struct mem_read_abstraction]: New struct.
5911 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5912
5913 2019-05-14 Tom Tromey <tromey@adacore.com>
5914
5915 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5916 value is not lval_memory.
5917
5918 2019-05-14 Tom Tromey <tromey@adacore.com>
5919
5920 * solib.c (info_sharedlibrary_command): Style the file name.
5921
5922 2019-05-14 Alan Hayward <alan.hayward@arm.com>
5923
5924 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5925 (aarch64_vnv_type): Likewise.
5926 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5927 * common/tdesc.c: Likewise.
5928 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5929 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5930 * features/aarch64-fpu.xml: Add ieee half view.
5931 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5932 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5933 * gdbtypes.h (struct builtin_type): Likewise.
5934 (struct objfile_type): Likewise.
5935
5936 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
5937
5938 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5939 typo.
5940 * location.h (string_to_event_location): Likewise.
5941
5942 2019-05-11 Joel Brobecker <brobecker@adacore.com>
5943
5944 GDB 8.3 released.
5945
5946 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5947
5948 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5949 New variable declaration.
5950 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5951 New variable.
5952 (print_one_breakpoint): Use ui_out::test_flags and new global
5953 variable to compute use_fixed_output.
5954 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5955 Remove.
5956 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5957 (mi_multi_location_breakpoint_output_fixed): Remove.
5958 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5959 new variable.
5960 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5961 fix_multi_location_breakpoint_output flag if version >= 3.
5962 * ui-out.h (enum ui_out_flag)
5963 <fix_multi_location_breakpoint_output>: New enumerator.
5964
5965 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5966
5967 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5968
5969 2019-05-10 Tom Tromey <tromey@adacore.com>
5970
5971 * ada-lang.c (catch_ada_completer): New function.
5972 (_initialize_ada_language): Use it.
5973
5974 2019-05-10 Tom Tromey <tromey@adacore.com>
5975
5976 * thread.c (print_thread_info): Make "requested_threads" const.
5977 * gdbthread.h (print_thread_info): Make "requested_threads"
5978 const.
5979 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5980 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5981
5982 2019-05-08 Tom Tromey <tom@tromey.com>
5983
5984 * gdbtypes.c (objfile_type_data): Change type.
5985 (objfile_type, _initialize_gdbtypes): Update.
5986
5987 2019-05-08 Tom Tromey <tom@tromey.com>
5988
5989 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5990 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5991 (_initialize_dwarf2_frame): Update.
5992
5993 2019-05-08 Tom Tromey <tom@tromey.com>
5994
5995 * objc-lang.c (objc_objfile_data): Change type.
5996 (find_methods): Update.
5997 (_initialize_objc_lang): Remove.
5998
5999 2019-05-08 Tom Tromey <tom@tromey.com>
6000
6001 * stabsread.c (rs6000_builtin_type_data): Change type.
6002 (rs6000_builtin_type, _initialize_stabsread): Update.
6003
6004 2019-05-08 Tom Tromey <tom@tromey.com>
6005
6006 * mips-tdep.c (mips_pdr_data): Remove.
6007 (_initialize_mips_tdep): Update.
6008
6009 2019-05-08 Tom Tromey <tom@tromey.com>
6010
6011 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6012 (hppa_init_objfile_priv_data, read_unwind_info)
6013 (find_unwind_entry, _initialize_hppa_tdep): Update.
6014
6015 2019-05-08 Tom Tromey <tom@tromey.com>
6016
6017 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6018 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6019 on obstack.
6020 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6021
6022 2019-05-08 Tom Tromey <tom@tromey.com>
6023
6024 * mdebugread.c (basic_type_data): Change type.
6025 (basic_type, _initialize_mdebugread): Update.
6026
6027 2019-05-08 Tom Tromey <tom@tromey.com>
6028
6029 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6030
6031 2019-05-08 Tom Tromey <tom@tromey.com>
6032
6033 * nto-tdep.c (nto_inferior_data_reg): Change type.
6034 (nto_inferior_data): Update.
6035 (nto_inferior_data_cleanup, nto_new_inferior_data)
6036 (_initialize_nto_tdep): Remove.
6037 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6038
6039 2019-05-08 Tom Tromey <tom@tromey.com>
6040
6041 * ada-lang.c (struct ada_inferior_data): Add initializers.
6042 (ada_inferior_data): Change type.
6043 (ada_inferior_data_cleanup): Remove.
6044 (get_ada_inferior_data, ada_inferior_exit)
6045 (struct ada_pspace_data): Add initializers, destructor.
6046 (ada_pspace_data_handle): Change type.
6047 (get_ada_pspace_data): Update.
6048 (ada_pspace_data_cleanup): Remove.
6049
6050 2019-05-08 Tom Tromey <tom@tromey.com>
6051
6052 * coffread.c (struct coff_symfile_info): Add initializers.
6053 (coff_objfile_data_key): Move lower. Change type.
6054 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6055 Update.
6056 (coff_free_info): Remove.
6057
6058 2019-05-08 Tom Tromey <tom@tromey.com>
6059
6060 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6061 (fbsd_pspace_data_handle): Move lower. Change type.
6062 (get_fbsd_pspace_data): Update.
6063 (fbsd_pspace_data_cleanup): Remove.
6064 (_initialize_fbsd_tdep): Update.
6065
6066 2019-05-08 Tom Tromey <tom@tromey.com>
6067
6068 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6069 (get_ada_tasks_pspace_data): Update.
6070 (ada_tasks_pspace_data_cleanup): Remove.
6071 (_initialize_tasks): Update.
6072 (ada_tasks_inferior_data_handle): Change type.
6073 (get_ada_tasks_inferior_data): Update.
6074 (ada_tasks_inferior_data_cleanup): Remove.
6075 (struct ada_tasks_pspace_data): Add initializers.
6076
6077 2019-05-08 Tom Tromey <tom@tromey.com>
6078
6079 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6080 * symfile-debug.c (debug_sym_get_probes): Change type.
6081 * stap-probe.c (handle_stap_probe):
6082 (stap_static_probe_ops::get_probes): Change type.
6083 * probe.h (class static_probe_ops) <get_probes>: Change type.
6084 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6085 (parse_probes_in_pspace): Update.
6086 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6087 Update.
6088 (any_static_probe_ops::get_probes): Change type.
6089 * elfread.c (elfread_data): New typedef.
6090 (probe_key): Change type.
6091 (elf_get_probes): Likewise. Update.
6092 (probe_key_free): Remove.
6093 (_initialize_elfread): Update.
6094 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6095 Change type.
6096 (dtrace_process_dof_probe, dtrace_process_dof)
6097 (dtrace_static_probe_ops::get_probe): Change type.
6098
6099 2019-05-08 Tom Tromey <tom@tromey.com>
6100
6101 * xcoffread.c (struct xcoff_symfile_info): Rename from
6102 coff_symfile_info. Add initializers.
6103 (xcoff_objfile_data_key): Move lower. Change type.
6104 (XCOFF_DATA): Rewrite.
6105 (xcoff_free_info): Remove.
6106 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6107 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6108 (xcoff_initial_scan): Update.
6109
6110 2019-05-08 Tom Tromey <tom@tromey.com>
6111
6112 * solib-svr4.c (struct svr4_info): Add initializers and
6113 destructor.
6114 <probes_table>: Now an htab_up.
6115 (solib_svr4_pspace_data): Change type.
6116 (free_probes_table): Simplify.
6117 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6118 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6119 (probes_table_remove_objfile_probes, register_solib_event_probe)
6120 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6121 (_initialize_svr4_solib): Update.
6122
6123 2019-05-08 Tom Tromey <tom@tromey.com>
6124
6125 * remote.c (remote_pspace_data): Change type.
6126 (remote_pspace_data_cleanup): Remove.
6127 (get_remote_exec_file, set_pspace_remote_exec_file)
6128 (_initialize_remote): Update.
6129
6130 2019-05-08 Tom Tromey <tom@tromey.com>
6131
6132 * breakpoint.c (breakpoint_objfile_key): Change type.
6133 (get_breakpoint_objfile_data): Update.
6134 (free_breakpoint_objfile_data): Remove.
6135 (_initialize_breakpoint): Update.
6136
6137 2019-05-08 Tom Tromey <tom@tromey.com>
6138
6139 * linux-tdep.c (struct linux_info): Add initializers.
6140 (linux_inferior_data): Move. Change type.
6141 (invalidate_linux_cache_inf): Update.
6142 (linux_inferior_data_cleanup): Remove.
6143 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6144
6145 2019-05-08 Tom Tromey <tom@tromey.com>
6146
6147 * auxv.c (auxv_inferior_data): Move. Change type.
6148 (auxv_inferior_data_cleanup): Remove.
6149 (invalidate_auxv_cache_inf): Rewrite.
6150 (get_auxv_inferior_data, _initialize_auxv): Update.
6151
6152 2019-05-08 Tom Tromey <tom@tromey.com>
6153
6154 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6155 (symfile_debug_objfile_data_key): Change type.
6156 (symfile_debug_installed, debug_qf_has_symbols)
6157 (debug_qf_find_last_source_symtab)
6158 (debug_qf_forget_cached_source_info)
6159 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6160 (debug_qf_print_stats, debug_qf_dump)
6161 (debug_qf_expand_symtabs_for_function)
6162 (debug_qf_expand_all_symtabs)
6163 (debug_qf_expand_symtabs_with_fullname)
6164 (debug_qf_map_matching_symbols)
6165 (debug_qf_expand_symtabs_matching)
6166 (debug_qf_find_pc_sect_compunit_symtab)
6167 (debug_qf_map_symbol_filenames)
6168 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6169 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6170 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6171 (debug_sym_read_linetable, debug_sym_relocate): Update.
6172 (symfile_debug_free_objfile): Remove.
6173 (install_symfile_debug_logging, _initialize_symfile_debug):
6174 Update.
6175
6176 2019-05-08 Tom Tromey <tom@tromey.com>
6177
6178 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6179 allocate_on_obstack.
6180 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6181 (get_dwarf2_per_objfile): Update.
6182 (set_dwarf2_per_objfile): Remove.
6183 (dwarf2_has_info, dwarf2_get_section_info): Update.
6184 (dwarf2_free_objfile): Remove.
6185 (_initialize_dwarf2_read): Update.
6186
6187 2019-05-08 Tom Tromey <tom@tromey.com>
6188
6189 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6190 initializers.
6191 <unsupported_script_warning_printed,
6192 script_not_found_warning_printed>: Now bool.
6193 (auto_load_pspace_data): Change type.
6194 (~auto_load_pspace_info): Rename from
6195 auto_load_pspace_data_cleanup.
6196 (get_auto_load_pspace_data, init_loaded_scripts_info)
6197 (clear_section_scripts, maybe_print_unsupported_script_warning)
6198 (maybe_print_script_not_found_warning, _initialize_auto_load):
6199 Update.
6200
6201 2019-05-08 Tom Tromey <tom@tromey.com>
6202
6203 * objfiles.c (objfile_pspace_info): Add destructor and
6204 initializers.
6205 (objfiles_pspace_data): Change type.
6206 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6207 (get_objfile_pspace_data): Update.
6208 (objfiles_bfd_data): Change type.
6209 (get_objfile_bfd_data): Update.
6210 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6211
6212 2019-05-08 Tom Tromey <tom@tromey.com>
6213
6214 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6215 Change type.
6216 (get_catch_syscall_inferior_data): Update.
6217 (catch_syscall_inferior_data_cleanup): Remove.
6218 (_initialize_break_catch_syscall): Update.
6219
6220 2019-05-08 Tom Tromey <tom@tromey.com>
6221
6222 * inflow.c (struct terminal_info): Add destructor and
6223 initializers.
6224 (inflow_inferior_data): Change type.
6225 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6226 (get_inflow_inferior_data, inflow_inferior_exit)
6227 (swap_terminal_info, _initialize_inflow): Update.
6228
6229 2019-05-08 Tom Tromey <tom@tromey.com>
6230
6231 * target-dcache.c (target_dcache_cleanup): Remove.
6232 (target_dcache_aspace_key): Change type.
6233 (target_dcache_init_p, target_dcache_invalidate)
6234 (target_dcache_get, target_dcache_get_or_init)
6235 (_initialize_target_dcache): Update.
6236 * dcache.h (struct dcache_deleter): New.
6237
6238 2019-05-08 Tom Tromey <tom@tromey.com>
6239
6240 * symtab.c (struct symbol_cache): Add destructor and
6241 initializers.
6242 (symbol_cache_key): Move. Change type.
6243 (make_symbol_cache, free_symbol_cache): Remove.
6244 (get_symbol_cache): Update.
6245 (symbol_cache_cleanup): Remove.
6246 (ALL_PSPACES, symbol_cache_flush)
6247 (maintenance_print_symbol_cache)
6248 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6249 Update.
6250
6251 2019-05-08 Tom Tromey <tom@tromey.com>
6252
6253 * symtab.c (struct main_info): Add destructor and initializers.
6254 (main_progspace_key): Move. Change type.
6255 (get_main_info): Update.
6256 (main_info_cleanup): Remove.
6257 (_initialize_symtab): Update.
6258
6259 2019-05-08 Tom Tromey <tom@tromey.com>
6260
6261 * registry.h (DECLARE_REGISTRY): Define the _key class.
6262
6263 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6264
6265 * NEWS: Merge two 'New commands' sections.
6266
6267 2019-05-08 Joel Brobecker <brobecker@adacore.com>
6268
6269 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6270 parameter and use Ada language definition instead.
6271 (ada_val_print_ptr): Remove unused language parameter.
6272 (ada_val_print_num): Remove language parameter and use Ada language
6273 definition instead.
6274 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6275 parameter.
6276 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6277 parameter and use Ada language definition instead.
6278 (ada_val_print_1): Update all ada_val_print_xxx calls.
6279 Remove language parameter.
6280 (ada_val_print): Update ada_val_print_1 call.
6281
6282 2019-05-08 Tom Tromey <tromey@adacore.com>
6283
6284 * remote.c (remote_hw_watchpoint_limit)
6285 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6286 Now static.
6287
6288 2019-05-08 Tom Tromey <tromey@adacore.com>
6289
6290 * maint.c (_initialize_maint_cmds): Move initialization code to
6291 remote.c.
6292 (watchdog, show_watchdog): Move to remote.c.
6293 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6294 "watchdog" static.
6295 (_initialize_remote): Move initialization code from maint.c.
6296 * defs.h (watchdog): Don't declare.
6297
6298 2019-05-08 Tom Tromey <tromey@adacore.com>
6299
6300 * tui/tui-interp.c: Include main.h.
6301 * interps.c: Include main.h.
6302 * main.h (interpreter_p): Declare.
6303 * defs.h (interpreter_p): Don't declare.
6304
6305 2019-05-08 Tom Tromey <tromey@adacore.com>
6306
6307 * dwarf2loc.c: Include dwarf2read.h.
6308 * defs.h (read_unsigned_leb128): Don't declare.
6309 * dwarf2read.h (read_unsigned_leb128): Declare.
6310
6311 2019-05-08 Tom Tromey <tromey@adacore.com>
6312
6313 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6314 method.
6315
6316 2019-05-08 Tom Tromey <tromey@adacore.com>
6317
6318 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6319 when no wrap column is set.
6320
6321 2019-05-08 Tom Tromey <tromey@adacore.com>
6322
6323 * c-lang.c (c_get_string): Handle non-C-style arrays.
6324
6325 2019-05-08 Tom Tromey <tromey@adacore.com>
6326
6327 * typeprint.c (print_offset_data::update): Print the bit offset,
6328 not the number of bits remaining.
6329
6330 2019-05-08 Tom Tromey <tromey@adacore.com>
6331
6332 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6333 padding at end of comment.
6334
6335 2019-05-08 Tom Tromey <tromey@adacore.com>
6336
6337 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6338 Compare main types.
6339
6340 2019-05-06 Tom Tromey <tom@tromey.com>
6341
6342 * common/scoped_mmap.c: Include common-defs.h.
6343 * common/scoped_mmap.h: Don't include config.h.
6344
6345 2019-05-04 Tom Tromey <tom@tromey.com>
6346
6347 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6348 (struct aarch64_call_info): Add initializers.
6349 <si>: Now a std::vector.
6350 (pass_on_stack, aarch64_push_dummy_call): Update.
6351
6352 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
6353 Tom Tromey <tom@tromey.com>
6354
6355 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6356 (ppc_threads): Now a std::vector. Now static.
6357 (hwdebug_find_thread_points_by_tid)
6358 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6359 Update.
6360
6361 2019-05-04 Tom Tromey <tom@tromey.com>
6362
6363 * arc-tdep.c (arc_tdesc_init): Return bool.
6364
6365 2019-05-04 Tom Tromey <tom@tromey.com>
6366
6367 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6368 Use gdb_assert_not_reached.
6369
6370 2019-05-04 Tom Tromey <tom@tromey.com>
6371
6372 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6373 "false".
6374
6375 2019-05-04 Tom Tromey <tom@tromey.com>
6376
6377 * arc-tdep.c (arc_tdesc_init): Use bool.
6378
6379 2019-05-04 Tom Tromey <tom@tromey.com>
6380
6381 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6382
6383 2019-05-04 Tom Tromey <tom@tromey.com>
6384
6385 * cli/cli-cmds.c (valid_command_p): Return bool.
6386
6387 2019-05-04 Tom Tromey <tom@tromey.com>
6388
6389 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6390 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6391
6392 2019-05-04 Raul Tambre <raul@tambre.ee>
6393
6394 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6395 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6396 operator for comparison.
6397
6398 2019-05-04 Tom Tromey <tom@tromey.com>
6399
6400 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6401 (lookup_partial_symbol, print_partial_symbols)
6402 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6403 (psymbol_compare): Update.
6404 (add_psymbol_to_bcache): Clear the entire psymbol.
6405 (maintenance_check_psymtabs): Update.
6406 * psympriv.h (struct partial_symbol): Don't derive from
6407 general_symbol_info.
6408 <obj_section, unrelocated_address, address,
6409 set_unrelocated_address>: Update.
6410 <ginfo>: New member.
6411 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6412 (debug_names::write_psymbols): Update.
6413
6414 2019-05-04 Tom de Vries <tdevries@suse.de>
6415
6416 * contrib/cc-with-tweaks.sh: Support -n arg.
6417
6418 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6419
6420 * corelow.c (core_target::detach): Ensure frame cache and
6421 register caches are cleared.
6422 inferior.c (exit_inferior_1): Likewise.
6423
6424 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6425 Tom Tromey <tom@tromey.com>
6426
6427 * dictionary.c (collate_pending_symbols_by_language): Remove
6428 "struct" from foreach.
6429 * symtab.c (lookup_global_symbol_from_objfile)
6430 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6431 foreach.
6432 * ser-tcp.c (net_open): Remove "struct" from foreach.
6433 * objfiles.c (objfile_relocate, objfile_rebase)
6434 (objfile_has_symbols): Remove "struct" from foreach.
6435 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6436 from foreach.
6437 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6438 foreach.
6439 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6440 "struct" from foreach.
6441 * ada-lang.c (create_excep_cond_exprs)
6442 (ada_exception_catchpoint_cond_string): Remove "struct" from
6443 foreach.
6444
6445 2019-05-03 Tom Tromey <tromey@adacore.com>
6446
6447 * ada-exp.y (convert_char_literal): Check suffix of each
6448 enumerator.
6449
6450 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6451
6452 PR ada/21406:
6453 * ada-exp.y (yywrap): Don't define.
6454 * ada-lex.l (%option): Add noyywrap
6455 (yywrap): Remove.
6456
6457 2019-05-03 Eli Zaretskii <eliz@gnu.org>
6458
6459 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6460 _WIN32_WINNT to the XP level, unless already defined to a higher
6461 level.
6462
6463 * unittests/parse-connection-spec-selftests.c:
6464 * ser-tcp.c:
6465 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6466 override.
6467
6468 * symfile.c (find_separate_debug_file): Remove colon from the
6469 drive spec of DOS/Windows file names of the target, so that the
6470 file name produced from DEBUGDIR and the target's directory will
6471 be valid on DOS/Windows systems.
6472
6473 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6474
6475 * rust-lang.c (val_print_struct): Handle printing structures
6476 containing strings.
6477
6478 2019-05-02 Tom Tromey <tromey@adacore.com>
6479
6480 * valarith.c (_initialize_valarith): Remove.
6481
6482 2019-05-01 Tom Tromey <tromey@adacore.com>
6483
6484 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6485 bitfields.
6486
6487 2019-05-01 Tom Tromey <tromey@adacore.com>
6488
6489 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6490 for big-endian copies.
6491
6492 2019-04-30 Ali Tamur <tamur@google.com>
6493 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6494 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6495 (read_3_bytes): New function.
6496
6497 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6498
6499 * windows-nat.c (main_thread_id): Delete.
6500 (handle_output_debug_string): Replace main_thread_id by
6501 current_event.dwThreadId.
6502 (fake_create_process): Likewise.
6503 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6504 Do not set main_thread_id.
6505 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6506 current_event.dwThreadId.
6507 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6508
6509 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6510
6511 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6512 Use current_event.dwThreadId instead of main_thread_id.
6513
6514 2019-04-30 Tom Tromey <tromey@adacore.com>
6515
6516 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6517 (create_excep_cond_exprs): Iterate over program spaces.
6518 (ada_exception_catchpoint_cond_string): Examine all minimal
6519 symbols for exception types.
6520
6521 2019-04-30 Tom Tromey <tromey@adacore.com>
6522
6523 PR c++/24470:
6524 * dwarf2read.c (process_structure_scope): Handle case where type
6525 has template parameters but no symbol was created.
6526
6527 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6528 Chris January <chris.january@arm.com>
6529
6530 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6531 qualifier.
6532 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6533
6534 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6535
6536 * f-typeprint.c (f_print_type): Update rules for printing
6537 whitespace.
6538 (f_type_print_varspec_suffix): Likewise.
6539
6540 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6541 Chris January <chris.january@arm.com>
6542
6543 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6544 function arguments.
6545
6546 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6547
6548 * f-lang.c (build_fortran_types): Change name of void type to
6549 lower case.
6550 * f-typeprint.c (f_type_print_base): Print the name of the void
6551 type, rather than a fixed string.
6552 * f-valprint.c (f_decorations): Use lower case void string.
6553
6554 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6555 Chris January <chris.january@arm.com>
6556
6557 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6558 types for Fortran.
6559
6560 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6561 Chris January <chris.january@arm.com>
6562 David Lecomber <david.lecomber@arm.com>
6563
6564 * f-exp.y (BINOP_INTRINSIC): New token.
6565 (exp): New parser rule handling BINOP_INTRINSIC.
6566 (f77_keywords): Add new builtin procedures.
6567 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6568 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6569 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6570 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6571 (print_unop_subexp_f): New function.
6572 (print_binop_subexp_f): New function.
6573 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6574 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6575 (dump_subexp_body_f): Likewise.
6576 (operator_check_f): Likewise.
6577 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6578 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6579
6580 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6581
6582 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6583 UNOP_KIND.
6584 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6585 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6586 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6587 (operator_length_f): New fuction.
6588 (print_subexp_f): New function.
6589 (op_name_f): New function.
6590 (dump_subexp_body_f): New function.
6591 (operator_check_f): New function.
6592 (exp_descriptor_f): Replace standard expression handling functions
6593 with new functions.
6594 * gdb/fortran-operator.def: New file.
6595 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6596 * gdb/std-operator.def: Remove UNOP_KIND.
6597
6598 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6599
6600 * std-operator.def: Remove unbalanced, stray double quote
6601 character.
6602
6603 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6604 Chris January <chris.january@arm.com>
6605 Daniel Everett <daniel.everett@arm.com>
6606 Nick Forrington <nick.forrington@arm.com>
6607 Richard Bunt <richard.bunt@arm.com>
6608
6609 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6610 of depth when printing anonymous structs or unions.
6611 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6612 Don't print either the top-level value, or the children if the
6613 max-depth is exceeded.
6614 (ppscm_print_children): When printing the key of a map, allow one
6615 extra level of depth.
6616 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6617 print either the top-level value, or the children if the max-depth
6618 is exceeded.
6619 (print_children): When printing the key of a map, allow one extra
6620 level of depth.
6621 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6622 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6623 (user_print_options): Initialise max_depth field.
6624 (val_print_scalar_or_string_type_p): New function.
6625 (val_print): Check to see if the max depth has been reached.
6626 (val_print_check_max_depth): Define new function.
6627 (show_print_max_depth): New function.
6628 (_initialize_valprint): Add 'print max-depth' option.
6629 * valprint.h (struct value_print_options) <max_depth>: New field.
6630 (val_print_check_max_depth): Declare new function.
6631 * NEWS: Document new feature.
6632
6633 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6634
6635 * ada-lang.c (ada_language_defn): Initialise new field.
6636 * c-lang.c (c_is_string_type_p): New function.
6637 (c_language_defn): Initialise new field.
6638 (cplus_language_defn): Initialise new field.
6639 (asm_language_defn): Initialise new field.
6640 (minimal_language_defn): Initialise new field.
6641 * c-lang.h (c_is_string_type_p): Declare new function.
6642 * d-lang.c (d_language_defn): Initialise new field.
6643 * f-lang.c (f_is_string_type_p): New function.
6644 (f_language_defn): Initialise new field.
6645 * go-lang.c (go_is_string_type_p): New function.
6646 (go_language_defn): Initialise new field.
6647 * language.c (default_is_string_type_p): New function.
6648 (unknown_language_defn): Initialise new field.
6649 (auto_language_defn): Initialise new field.
6650 * language.h (struct language_defn) <la_is_string_type_p>: New
6651 member variable.
6652 (default_is_string_type_p): Declare new function.
6653 * m2-lang.c (m2_language_defn): Initialise new field.
6654 * objc-lang.c (objc_language_defn): Initialise new field.
6655 * opencl-lang.c (opencl_language_defn): Initialise new field.
6656 * p-lang.c (pascal_is_string_type_p): New function.
6657 (pascal_language_defn): Initialise new field.
6658 * rust-lang.c (rust_is_string_type_p): New function.
6659 (rust_language_defn): Initialise new field.
6660
6661 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6662
6663 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6664 New field.
6665 * ada-lang.c (ada_language_defn): Initialise new field.
6666 * c-lang.c (c_language_defn): Likewise.
6667 (cplus_language_defn): Likewise.
6668 (asm_language_defn): Likewise.
6669 (minimal_language_defn): Likewise.
6670 * d-lang.c (d_language_defn): Likewise.
6671 * f-lang.c (f_language_defn): Likewise.
6672 * go-lang.c (go_language_defn): Likewise.
6673 * language.c (unknown_language_defn): Likewise.
6674 (auto_language_defn): Likewise.
6675 * m2-lang.c (m2_language_defn): Likewise.
6676 * objc-lang.c (objc_language_defn): Likewise.
6677 * opencl-lang.c (opencl_language_defn): Likewise.
6678 * p-lang.c (pascal_language_defn): Likewise.
6679 * rust-lang.c (rust_language_defn): Likewise.
6680
6681 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6682
6683 * ada-lang.c (ada_is_character_type): Change return type to bool.
6684 (ada_is_string_type): Likewise.
6685 * ada-lang.h (ada_is_character_type): Update declaration
6686 (ada_is_string_type): Likewise.
6687
6688 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6689
6690 Support style in 'frame|thread apply'
6691
6692 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6693 * record.c (record_start, record_stop): Update callers of
6694 execute_command_to_string with false.
6695 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6696 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6697 methods.
6698 (class string_file): New constructor with term_out parameter.
6699 Override methods term_out and can_emit_style_escape. New member
6700 term_out.
6701 (class stdio_file): Override can_emit_style_escape.
6702 (class tee_file): Override term_out and can_emit_style_escape.
6703 * utils.h (can_emit_style_escape): Remove.
6704 * utils.c (can_emit_style_escape): Likewise.
6705 Update all callers of can_emit_style_escape (SOMESTREAM) to
6706 SOMESTREAM->can_emit_style_escape.
6707 * source-cache.c (source_cache::get_source_lines): Likewise.
6708 * stack.c (frame_apply_command_count): Call execute_command_to_string
6709 passing the term_out characteristic of the current gdb_stdout.
6710 * thread.c (thr_try_catch_cmd): Likewise.
6711 * top.c (execute_command_to_string): pass term_out parameter
6712 to construct the string_file for the command output.
6713 * ui-file.c (term_cli_styling): New function (most code moved
6714 from utils.c can_emit_style_escape).
6715 (string_file::string_file, string_file::can_emit_style_escape,
6716 stdio_file::can_emit_style_escape, tee_file::term_out,
6717 tee_file::can_emit_style_escape): New functions.
6718
6719 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6720
6721 * NEWS: Mention the new set|show may-call-functions.
6722 * infcall.c (may_call_functions_p): New variable.
6723 (show_may_call_functions_p): New function.
6724 (call_function_by_hand_dummy): Throws an error if not
6725 may-call-functions.
6726 (_initialize_infcall): Call add_setshow_boolean_cmd for
6727 may-call-functions.
6728
6729 2019-04-25 Keith Seitz <keiths@redhat.com>
6730
6731 PR c++/24367
6732 * cp-support.c (inspect_type): Don't attempt substitutions
6733 of symbol with the same name.
6734
6735 2019-04-25 Tom Tromey <tromey@adacore.com>
6736
6737 PR gdb/24475:
6738 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6739 static.
6740
6741 2019-04-25 Tom Tromey <tromey@adacore.com>
6742
6743 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6744 rvalue reference.
6745 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6746 (gdb_xml_parser::parse): Use std::move.
6747 * python/python-internal.h (gdbpy_convert_exception): Take a const
6748 reference.
6749 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6750 std::move.
6751 * python/py-utils.c (gdbpy_convert_exception): Take a const
6752 reference.
6753 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6754 Use std::move.
6755 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6756 Use std::move.
6757 * mi/mi-main.c (mi_print_exception): Take a const reference.
6758 * main.c (handle_command_errors): Take a const reference.
6759 * linespec.c (parse_linespec): Use std::move.
6760 * infcall.c (run_inferior_call): Use std::move.
6761 (call_function_by_hand_dummy): Use std::move.
6762 * exec.c (try_open_exec_file): Use std::move.
6763 * exceptions.h (exception_print, exception_fprintf)
6764 (exception_print_same): Update.
6765 * exceptions.c (print_exception, exception_print)
6766 (exception_fprintf, exception_print_same): Change parameters to
6767 const reference.
6768 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6769 * common/new-op.c: Use std::move.
6770 * common/common-exceptions.h (struct gdb_exception): Add move
6771 constructor.
6772 (struct gdb_exception_error, struct gdb_exception_quit, struct
6773 gdb_quit_bad_alloc): Change constructor to move constructor.
6774 (throw_exception): Change parameter to rvalue reference.
6775 * common/common-exceptions.c (throw_exception): Take rvalue
6776 reference.
6777 * cli/cli-interp.c (safe_execute_command): Use std::move.
6778 * breakpoint.c (insert_bp_location, location_to_sals): Use
6779 std::move.
6780
6781 2019-04-25 Tom Tromey <tromey@adacore.com>
6782
6783 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6784 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6785 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6786 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6787 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6788 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6789 guile/scm-value.c: Use unpack.
6790 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6791 gdbscm_gdb_exception.
6792 (gdbscm_throw_gdb_exception): Likewise.
6793 (struct gdbscm_gdb_exception): New.
6794 (unpack): New function.
6795 (gdbscm_wrap): Use unpack.
6796
6797 2019-04-25 Tom Tromey <tromey@adacore.com>
6798
6799 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6800 (gdb_rl_callback_handler): Use std::move.
6801 * common/common-exceptions.h (struct gdb_exception): Add move
6802 assignment operator.
6803 (throw_exception_sjlj): Change "exception" to const reference.
6804 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6805 (throw_exception_sjlj): Change "exception" to const reference.
6806
6807 2019-04-25 Tom Tromey <tromey@adacore.com>
6808
6809 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6810 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6811 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6812 Update.
6813 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6814 Update.
6815 * mi/mi-interp.c (mi_interp::exec): Update.
6816 * linespec.c (parse_linespec): Update.
6817 * infcall.c (run_inferior_call): Update.
6818 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6819 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6820 (gdbscm_lookup_global_symbol): Update.
6821 * guile/scm-param.c (gdbscm_parameter_value): Update.
6822 * guile/scm-frame.c (gdbscm_frame_read_register)
6823 (gdbscm_frame_read_var): Update.
6824 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6825 * exec.c (try_open_exec_file): Update.
6826 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6827 (gdb_rl_callback_handler): Update.
6828 * common/common-exceptions.h (exception_none): Don't declare.
6829 * common/common-exceptions.c (exception_none): Don't define.
6830 (struct catcher) <exception>: Update.
6831 * cli/cli-interp.c (safe_execute_command): Update.
6832 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6833
6834 2019-04-25 Ali Tamur <tamur@google.com>
6835
6836 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6837 (read_attribute_value): Likewise.
6838 (dwarf2_read_addr_index): Update comment.
6839 (read_str_index): Add DW_FORM_strx.
6840 (dwarf2_string_attr): Likewise.
6841 (dwarf2_const_value_attr): Likewise.
6842 (dump_die_shallow): Likewise.
6843 (dwarf2_fetch_constant_bytes): Likewise.
6844 (skip_form_bytes): Likewise.
6845 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6846
6847 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6848
6849 PR corefiles/11608
6850 PR corefiles/18187
6851 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6852 OFFSET. Verify if current mapping contains an ELF header.
6853 (linux_find_memory_regions_full): Adjust call to
6854 dump_mapping_p.
6855
6856 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6857 Kang Li <kanglictf@gmail.com>
6858
6859 PR gdb/21600
6860
6861 * dwarf2-frame.c (read_initial_length): Be consistent about using
6862 unsigned representation of length.
6863 (decode_frame_entry_1): Likewise. Check for wraparound of
6864 end pointer as well as buffer overflow.
6865
6866 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6867
6868 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6869 "vq".
6870
6871 2019-04-24 Tom Tromey <tromey@adacore.com>
6872
6873 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6874
6875 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6876
6877 * s12z-tdep.c (s12z_unwind_pc): Delete.
6878 (s12z_unwind_sp): Delete.
6879 (s12z_gdbarch_init): Don't register deleted functions with
6880 gdbarch.
6881
6882 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6883
6884 * rl78-tdep.c (rl78_unwind_sp): Delete.
6885 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6886
6887 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6888
6889 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6890 (xstormy16_unwind_pc): Delete.
6891 (xstormy16_dummy_id): Delete.
6892 (xstormy16_gdbarch_init): Don't register deleted functions with
6893 gdbarch.
6894
6895 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6896
6897 * vax-tdep.c (vax_unwind_pc): Delete.
6898 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6899
6900 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6901
6902 * v850-tdep.c (v850_unwind_sp): Delete.
6903 (v850_unwind_pc): Delete.
6904 (v850_dummy_id): Delete.
6905 (v850_gdbarch_init): Don't register deleted functions with
6906 gdbarch.
6907
6908 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6909
6910 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6911 (tilegx_unwind_pc): Delete.
6912 (tilegx_unwind_dummy_id): Delete.
6913 (tilegx_gdbarch_init): Don't register deleted functions with
6914 gdbarch.
6915
6916 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6917
6918 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6919 (tic6x_dummy_id): Delete.
6920 (tic6x_gdbarch_init): Don't register deleted functions with
6921 gdbarch.
6922
6923 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6924
6925 * sparc-tdep.c (sparc_unwind_pc): Delete.
6926 (sparc32_gdbarch_init): Don't register deleted function with
6927 gdbarch.
6928
6929 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6930
6931 * sh-tdep.c (sh_unwind_sp): Delete.
6932 (sh_unwind_pc): Delete.
6933 (sh_dummy_id): Delete.
6934 (sh_gdbarch_init): Don't register deleted functions with
6935 gdbarch.
6936
6937 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6938
6939 * score-tdep.c (score_unwind_sp): Delete.
6940 (score_unwind_pc): Delete.
6941 (score_dummy_id): Delete.
6942 (score_gdbarch_init): Don't register deleted functions with
6943 gdbarch.
6944
6945 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6946
6947 * rx-tdep.c (rx_unwind_pc): Delete.
6948 (rx_unwind_sp): Delete.
6949 (rx_dummy_id): Delete.
6950 (rx_gdbarch_init): Don't register deleted functions with
6951 gdbarch. Update comment.
6952
6953 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6954
6955 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6956 (rs6000_dummy_id): Delete.
6957 (rs6000_gdbarch_init): Don't register deleted functions with
6958 gdbarch.
6959
6960 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6961
6962 * or1k-tdep.c (or1k_dummy_id): Delete.
6963 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6964
6965 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6966
6967 * nios2-tdep.c (nios2_dummy_id): Delete.
6968 (nios2_unwind_sp): Delete.
6969 (nios2_gdbarch_init): Don't register deleted functions with
6970 gdbarch.
6971
6972 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6973
6974 * nds32-tdep.c (nds32_dummy_id): Delete.
6975 (nds32_unwind_pc): Delete.
6976 (nds32_unwind_sp): Delete.
6977 (nds32_gdbarch_init): Don't register deleted functions with
6978 gdbarch.
6979
6980 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6981
6982 * msp430-tdep.c (msp430_unwind_pc): Delete.
6983 (msp430_unwind_sp): Delete.
6984 (msp430_dummy_id): Delete.
6985 (msp430_gdbarch_init): Don't register deleted functions with
6986 gdbarch.
6987
6988 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6989
6990 * moxie-tdep.c (moxie_unwind_sp): Delete.
6991 (moxie_unwind_pc): Delete.
6992 (moxie_dummy_id): Delete.
6993 (moxie_gdbarch_init): Don't register deleted functions with
6994 gdbarch.
6995
6996 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6997
6998 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6999 (mn10300_unwind_pc): Delete.
7000 (mn10300_unwind_sp): Delete.
7001 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7002 mn10300_unwind_sp.
7003 (mn10300_frame_unwind_init): Don't register deleted functions with
7004 gdbarch.
7005
7006 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7007
7008 * mep-tdep.c (mep_unwind_pc): Delete.
7009 (mep_unwind_sp): Delete.
7010 (mep_dummy_id): Delete.
7011 (mep_gdbarch_init): Don't register deleted functions with
7012 gdbarch.
7013
7014 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7015
7016 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7017 (m68hc11_unwind_sp): Delete.
7018 (m68hc11_gdbarch_init): Don't register deleted functions with
7019 gdbarch.
7020
7021 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7022
7023 * m32r-tdep.c (m32r_unwind_sp): Delete.
7024 (m32r_unwind_pc): Delete.
7025 (m32r_dummy_id): Delete.
7026 (m32r_gdbarch_init): Don't register deleted functions with
7027 gdbarch.
7028
7029 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7030
7031 * m32c-tdep.c (m32c_unwind_pc): Delete.
7032 (m32c_unwind_sp): Delete.
7033 (m32c_dummy_id): Delete.
7034 (m32c_gdbarch_init): Don't register deleted functions with
7035 gdbarch.
7036
7037 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7038
7039 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7040 (lm32_unwind_pc): Delete.
7041 (lm32_dummy_id): Delete.
7042 (lm32_gdbarch_init): Don't register deleted functions with
7043 gdbarch.
7044
7045 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7046
7047 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7048 (iq2000_unwind_pc): Delete.
7049 (iq2000_dummy_id): Delete.
7050 (iq2000_gdbarch_init): Don't register deleted functions with
7051 gdbarch.
7052
7053 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7054
7055 * nds32-tdep.c (nds32_type_align): Delete.
7056 (nds32_push_dummy_call): Use type_align instead.
7057
7058 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7059
7060 * arm-tdep.c (arm_type_align): Only handle vector override case.
7061 (arm_push_dummy_call): Use type_align.
7062 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7063
7064 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7065
7066 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7067 case.
7068 (pass_on_stack): Use type_align.
7069 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7070 function.
7071
7072 2019-04-23 Tom Tromey <tromey@adacore.com>
7073
7074 * dwarf2read.c (line_header::file_name_at): Remove unused
7075 overload.
7076
7077 2019-04-23 Tom de Vries <tdevries@suse.de>
7078
7079 PR gdb/24438
7080 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7081 invocation.
7082
7083
7084 2019-03-27 Ali Tamur <tamur@google.com>
7085
7086 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7087 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7088 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7089 (dwarf_expr_context::get_addr_index): Likewise
7090 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7091 (symbol_needs_eval_context::get_addr_index): Likewise
7092 (disassemble_dwarf_expression): Add DW_OP_addrx
7093 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7094 (read_cutu_die_from_dwo): Update comment
7095 (skip_one_die): Add DW_FORM_addrx
7096 (read_attribute_value): Likewise
7097 (var_decode_location): Add DW_OP_addrx
7098 (dwarf2_const_value_attr): Add DW_FORM_addrx
7099 (dump_die_shallow): Likewise
7100 (dwarf2_fetch_constant_bytes): Likewise
7101 (decode_locdesc): Add DW_OP_addrx
7102 (skip_form_bytes): Add DW_FORM_addrx
7103
7104 2019-04-22 Ali Tamur <tamur@google.com>
7105
7106 * MAINTAINERS (Write After Approval): Add self.
7107
7108 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
7109
7110 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7111 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7112 (open_symbol_file_object): Likewise.
7113 (svr4_default_sos): Add info parameter.
7114 (svr4_read_so_list): Likewise.
7115 (svr4_current_sos_direct): Adjust functions calls to pass down
7116 info.
7117 (svr4_current_sos_1): Add info parameter.
7118 (svr4_current_sos): Call get_svr4_info, pass info down to
7119 svr4_current_sos_1.
7120 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7121 get_svr4_info.
7122 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7123 get_svr4_info.
7124 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7125 to get_svr4_info.
7126 (probes_table_remove_objfile_probes): Likewise.
7127 (register_solib_event_probe): Add info parameter.
7128 (solist_update_incremental): Pass info parameter down to
7129 svr4_read_so_list.
7130 (disable_probes_interface): Add info parameter.
7131 (svr4_handle_solib_event): Pass current_program_space to
7132 get_svr4_info. Adjust disable_probes_interface cleanup.
7133 (svr4_create_probe_breakpoints): Add info parameter, pass it
7134 down to register_solib_event_probe.
7135 (svr4_create_solib_event_breakpoints): Add info parameter,
7136 pass it down to svr4_create_probe_breakpoints.
7137 (enable_break): Pass info down to
7138 svr4_create_solib_event_breakpoints.
7139 (svr4_solib_create_inferior_hook): Pass current_program_space to
7140 get_svr4_info.
7141 (svr4_clear_solib): Likewise.
7142
7143 2019-04-22 Pedro Alves <palves@redhat.com>
7144
7145 * solib-svr4.c (svr4_free_objfile_observer): New.
7146 (probe_and_action::objfile): New field.
7147 (probes_table_htab_remove_objfile_probes)
7148 (probes_table_remove_objfile_probes): New functions.
7149 (register_solib_event_probe): Add 'objfile' parameter. Store it
7150 in the new probe_and_action. Don't store the probe in 'lookup'.
7151 (svr4_create_probe_breakpoints): Pass objfile to
7152 register_solib_event_probe.
7153 (_initialize_svr4_solib): Register a free_objfile observer.
7154
7155 2019-04-19 Tom Tromey <tom@tromey.com>
7156
7157 * common/queue.h: Remove.
7158
7159 2019-04-19 Tom Tromey <tom@tromey.com>
7160
7161 * event-loop.c: Don't include "common/queue.h".
7162
7163 2019-04-19 Tom Tromey <tom@tromey.com>
7164
7165 * remote.c (remote_target): Use delete.
7166 * remote-notif.h: Include <list>, not "common/queue.h".
7167 (notif_client_p): Remove typedef.
7168 (remote_notif_state): Add constructor, destructor, initializer.
7169 <notif_queue>: Now a std::list.
7170 (remote_notif_state_xfree): Don't declare.
7171 * remote-notif.c (remote_notif_process, handle_notification)
7172 (remote_notif_state_allocate): Update.
7173 (~remote_notif_state): Rename from remote_notif_state_xfree.
7174
7175 2019-04-19 Tom Tromey <tom@tromey.com>
7176
7177 * symfile.c (reread_symbols): Update.
7178 * objfiles.c (objfile_register_static_link)
7179 (objfile_lookup_static_link): Update
7180 (~objfile) Don't delete static_links.
7181 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7182
7183 2019-04-19 Tom Tromey <tom@tromey.com>
7184
7185 * type-stack.h (struct type_stack) <insert>: Constify string.
7186 * type-stack.c (type_stack::insert): Constify string.
7187 * gdbtypes.h (lookup_template_type): Update.
7188 (address_space_name_to_int): Update.
7189 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7190 const.
7191 (lookup_template_type): Make name const.
7192 * c-exp.y: Update rules.
7193 (lex_one_token, classify_name, classify_inner_name)
7194 (c_print_token): Update.
7195 * p-exp.y: Update rules.
7196 (yylex): Update.
7197 * f-exp.y: Update rules.
7198 (yylex): Update.
7199 * d-exp.y: Update rules.
7200 (lex_one_token, classify_name, classify_inner_name): Update.
7201 * parse.c (write_dollar_variable, copy_name): Return std::string.
7202 * parser-defs.h (copy_name): Change return type.
7203 * m2-exp.y: Update rules.
7204 (yylex): Update.
7205 * go-exp.y (lex_one_token): Update.
7206 Update rules.
7207 (classify_unsafe_function, classify_packaged_name)
7208 (classify_name, yylex): Update.
7209
7210 2019-04-19 Sergei Trofimovich <siarheit@google.com>
7211
7212 * configure.ac: add --enable-source-highlight switch.
7213 * configure: Regenerate.
7214 * top.c (print_gdb_version): plumb --enable-source-highlight
7215 status to "show configuration".
7216
7217 2019-04-19 Tom Tromey <tromey@adacore.com>
7218
7219 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7220 Check ADA_TYPE_P.
7221 (empty_record, ada_template_to_fixed_record_type_1)
7222 (template_to_static_fixed_type)
7223 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7224 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7225 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7226 macros.
7227
7228 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7229
7230 PR symtab/24423:
7231 * source.c (print_source_lines_base): Advance "iter" when a
7232 control character is seen.
7233
7234 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7235
7236 * inferior.h (struct infcall_suspend_state_deleter):
7237 Catch exception in destructor to avoid crash.
7238
7239 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7240
7241 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7242 close to the add_com "shell".
7243
7244 2019-04-18 Tom Tromey <tromey@adacore.com>
7245
7246 * process-stratum-target.h (class process_stratum_target)
7247 <stratum>: Add "final".
7248
7249 2019-04-17 Tom Tromey <tromey@adacore.com>
7250
7251 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7252 against nullptr before use.
7253
7254 2019-04-17 Alan Hayward <alan.hayward@arm.com>
7255
7256 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7257
7258 2019-04-17 Jim Wilson <jimw@sifive.com>
7259 Andrew Burgess <andrew.burgess@embecosm.com>
7260
7261 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7262 code read might fail, assume 4-byte breakpoint in that case.
7263
7264 2019-04-15 Leszek Swirski <leszeks@google.com>
7265
7266 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7267 rather than a hand-rolled POD check when checking for forced MEMORY
7268 classification.
7269
7270 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7271
7272 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7273 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7274 function.
7275 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7276 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7277 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7278 declaration.
7279
7280 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7281
7282 * aarch64-linux-nat.c
7283 (aarch64_linux_nat_target::thread_architecture): Add override.
7284 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7285 each VQ.
7286
7287 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7288
7289 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7290
7291 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7292
7293 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7294 target types of size 96-bits, add some additional comments, and
7295 check that the builtin type we found was the correct size.
7296
7297 2019-04-12 Eli Zaretskii <eliz@gnu.org>
7298
7299 * utils.c (prompt_for_continue): Don't restore the styling at the
7300 end, as applied_style has the wrong value. This fixes styling in
7301 long lists of file names that are interrupted by the "Continue?"
7302 prompt.
7303
7304 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7305
7306 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7307 * c-lang.c (c_language_defn): Likewise.
7308 (cplus_language_defn): Likewise.
7309 (asm_language_defn): Likewise.
7310 (minimal_language_defn): Likewise.
7311 * d-lang.c (d_language_defn): Likewise.
7312 * f-lang.c (f_language_defn): Likewise.
7313 * go-lang.c (go_language_defn): Likewise.
7314 * language.c (unknown_language_defn): Likewise.
7315 (auto_language_defn): Likewise.
7316 * language.h (struct language_defn): Remove la_magic field.
7317 (LANG_MAGIC): Delete.
7318 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7319 * objc-lang.c (objc_language_defn): Likewise.
7320 * opencl-lang.c (opencl_language_defn): Likewise.
7321 * p-lang.c (pascal_language_defn): Likewise.
7322 * rust-lang.c (rust_language_defn): Likewise.
7323
7324 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7325
7326 * riscv-tdep.c (riscv_type_align): New function.
7327 (riscv_type_alignment): Delete.
7328 (riscv_arg_location): Use 'type_align'.
7329 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7330
7331 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7332
7333 * gdbtypes.c (type_align): A struct with no non-static fields also
7334 has alignment of 1.
7335
7336 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7337
7338 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7339 component to 0.
7340 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7341 member.
7342 (riscv_struct_info::analyse): New implementation using new
7343 analyse_inner member function.
7344 (riscv_struct_info::field_offset): New member function.
7345 (riscv_struct_info::m_offsets): New member variable.
7346 (riscv_struct_info::analyse_inner): New private member function,
7347 takes the old implementation of riscv_struct_info::analyse but
7348 extended to track field offsets.
7349 (riscv_call_arg_struct): Update the struct folding special cases
7350 to handle cases where empty C++ structs, which are non-zero
7351 length, are found.
7352 (riscv_arg_location): Initialise the length of each location, a
7353 non-zero length now indicates the location is in use.
7354 (riscv_push_dummy_call): Allow for the first location having a
7355 non-zero offset when setting up arguments.
7356 (riscv_return_value): Likewise, but for return values.
7357
7358 2019-04-11 Tom Tromey <tromey@adacore.com>
7359
7360 * utils.c (internal_vproblem): Make "msg" const.
7361
7362 2019-04-11 Alan Hayward <alan.hayward@arm.com>
7363
7364 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7365 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7366 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7367 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7368
7369 2019-04-10 Kevin Buettner <kevinb@redhat.com>
7370
7371 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7372 function.
7373 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7374 of amd64_collect_native_gregset.
7375 (amd64_linux_nat_target::store_registers): Likewise.
7376
7377 2019-04-10 Tom Tromey <tom@tromey.com>
7378
7379 * symtab.c (lookup_global_symbol_from_objfile)
7380 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7381 * objfiles.h (class separate_debug_iterator): New.
7382 (class separate_debug_range): New.
7383 (struct objfile) <separate_debug_objfiles>: New method.
7384 (objfile_separate_debug_iterate): Don't declare.
7385 * objfiles.c (separate_debug_iterator::operator++): Rename from
7386 objfile_separate_debug_iterate.
7387 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7388 iterator.
7389 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7390 iterator.
7391
7392 2019-04-10 Tom Tromey <tom@tromey.com>
7393
7394 * symfile.c (reread_symbols): Remove old comment.
7395 * objfiles.c (free_all_objfiles): Fix a typo.
7396
7397 2019-04-10 Tom Tromey <tom@tromey.com>
7398
7399 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7400 * minsyms.c (lookup_minimal_symbol): Use foreach.
7401 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7402 (lookup_minimal_symbol_solib_trampoline): Likewise.
7403 * symfile.c (reread_symbols): Use foreach.
7404
7405 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
7406 Tom Tromey <tromey@adacore.com>
7407
7408 PR rust/24414:
7409 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7410 (rust_lex_int_test): Change "value" to be LONGEST.
7411 (rust_lex_tests): Add test for long integer literal.
7412
7413 2019-04-09 Tom Tromey <tromey@adacore.com>
7414
7415 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7416 to bool.
7417 (extended_remote_target::attach): Update.
7418 (remote_target::remote_notice_new_inferior): Update.
7419 (remote_target::add_current_inferior_and_thread): Update.
7420 * inferior.c (exit_inferior_1): Use "false".
7421 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7422
7423 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
7424
7425 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
7426 the "start" command.
7427
7428 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7429
7430 * python/py-inferior.c (infpy_thread_from_thread_handle):
7431 Adjust comments to reflect renaming of thread_from_thread_handle
7432 to thread_from_handle. Adjust keywords. Fix type error message.
7433 (inferior_object_methods): Add thread_from_handle. Retain
7434 thread_from_thread_handle, but mark it as deprecated.
7435
7436 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7437
7438 * gdbthread.h (find_thread_by_handle): Revise declaration.
7439 * thread.c (find_thread_by_handle): Likewise. Adjust
7440 implementation too.
7441 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7442 support for buffer objects as handles.
7443
7444 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7445
7446 * python/py-infthread.c (thpy_thread_handle): New function.
7447 (thread_object_methods): Register thpy_thread_handle.
7448
7449 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7450
7451 * gdbthread.h (thread_to_thread_handle): Declare.
7452 * thread.c (gdbtypes.h): Include.
7453 (thread_to_thread_handle): New function.
7454
7455 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7456 (target_thread_info_to_thread_handle): Declare.
7457 * target.c (target_thread_info_to_thread_handle): New function.
7458 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7459 * target-delegates.c: Regenerate.
7460
7461 * linux-thread-db.c (class thread_db_target): Add method
7462 thread_info_to_thread_handle.
7463 (thread_db_target::thread_info_to_thread_handle): Define.
7464 * remote.c (class remote_target): Add new method
7465 thread_info_to_thread_handle.
7466 (remote_target::thread_info_to_thread_handle): Define.
7467
7468 2019-04-08 Pedro Alves <palves@redhat.com>
7469
7470 * common/common-exceptions.c (throw_exception): Don't create
7471 named object to throw; throw directly.
7472 (throw_it): Likewise. Don't initialize gdb_exception::message
7473 here, with new; pass FMT and AP to the ctor instead.
7474 * common/common-exceptions.h: Include <string>.
7475 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7476 const char *, va_list)): New ctor. Use std::make_shared.
7477 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7478 errors)): Delete.
7479 (gdb_exception_error::gdb_exception_error(enum errors, const char
7480 *, va_list)): New.
7481 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7482 Add assertion.
7483 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7484 errors)): Delete.
7485 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7486 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7487 Add assertion.
7488
7489 2019-04-08 Tom Tromey <tom@tromey.com>
7490
7491 * valops.c (value_rtti_indirect_type): Replace throw_exception
7492 with throw.
7493 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7494 with throw.
7495 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7496 throw.
7497 * target.c (target_translate_tls_address): Replace throw_exception
7498 with throw.
7499 * stack.c (frame_apply_command_count): Replace throw_exception
7500 with throw.
7501 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7502 throw.
7503 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7504 with throw.
7505 * rs6000-tdep.c (rs6000_frame_cache)
7506 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7507 * remote.c: Replace throw_exception with throw.
7508 * record-full.c (record_full_message, record_full_wait_1)
7509 (record_full_restore): Replace throw_exception with throw.
7510 * record-btrace.c:
7511 (get_thread_current_frame_id, record_btrace_start_replaying)
7512 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7513 (cmd_record_btrace_start): Replace throw_exception with throw.
7514 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7515 throw.
7516 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7517 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7518 * linespec.c:
7519 (find_linespec_symbols): Replace throw_exception with throw.
7520 * infrun.c (displaced_step_prepare, resume): Replace
7521 throw_exception with throw.
7522 * infcmd.c (post_create_inferior): Replace throw_exception with
7523 throw.
7524 * inf-loop.c (inferior_event_handler): Replace throw_exception
7525 with throw.
7526 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7527 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7528 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7529 (get_prev_frame_always, get_frame_pc_if_available)
7530 (get_frame_address_in_block_if_available, get_frame_language):
7531 Replace throw_exception with throw.
7532 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7533 throw_exception with throw.
7534 * eval.c (fetch_subexp_value, evaluate_var_value)
7535 (evaluate_funcall, evaluate_subexp_standard): Replace
7536 throw_exception with throw.
7537 * dwarf2loc.c (call_site_find_chain)
7538 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7539 Replace throw_exception with throw.
7540 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7541 with throw.
7542 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7543 throw.
7544 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7545 * completer.c (complete_line_internal): Replace throw_exception
7546 with throw.
7547 * compile/compile-object-run.c (compile_object_run): Replace
7548 throw_exception with throw.
7549 * cli/cli-script.c (process_next_line): Replace throw_exception
7550 with throw.
7551 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7552 (btrace_enable, btrace_maint_update_pt_packets): Replace
7553 throw_exception with throw.
7554 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7555 throw_exception with throw.
7556 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7557 throw_exception with throw.
7558 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7559 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7560 * aarch64-tdep.c (aarch64_make_prologue_cache)
7561 (aarch64_make_stub_cache): Replace throw_exception with throw.
7562
7563 2019-04-08 Tom Tromey <tom@tromey.com>
7564
7565 * common/common-exceptions.c (throw_exception): Rename from
7566 throw_exception_cxx. Remove old copy. Make argument const.
7567 (throw_it): Create and throw exception objects directly.
7568 * common/common-exceptions.h (throw_exception): Make argument
7569 const.
7570 (struct gdb_exception_error): Add constructor.
7571 (struct gdb_exception_quit): Add constructor.
7572
7573 2019-04-08 Tom Tromey <tom@tromey.com>
7574
7575 * common/common-exceptions.h (exception_rethrow): Don't declare.
7576 (TRY_SJLJ): Update comment.
7577 (TRY, CATCH, END_CATCH): Remove.
7578 * common/common-exceptions.c (exception_rethrow): Remove.
7579
7580 2019-04-08 Tom Tromey <tom@tromey.com>
7581
7582 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7583 Remove.
7584 (gdb_exception_error): Rename from
7585 gdb_exception_RETURN_MASK_ERROR.
7586 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7587 (gdb_quit_bad_alloc): Update.
7588 * aarch64-tdep.c: Update.
7589 * ada-lang.c: Update.
7590 * ada-typeprint.c: Update.
7591 * ada-valprint.c: Update.
7592 * amd64-tdep.c: Update.
7593 * arch-utils.c: Update.
7594 * break-catch-throw.c: Update.
7595 * breakpoint.c: Update.
7596 * btrace.c: Update.
7597 * c-varobj.c: Update.
7598 * cli/cli-cmds.c: Update.
7599 * cli/cli-interp.c: Update.
7600 * cli/cli-script.c: Update.
7601 * common/common-exceptions.c: Update.
7602 * common/new-op.c: Update.
7603 * common/selftest.c: Update.
7604 * compile/compile-c-symbols.c: Update.
7605 * compile/compile-cplus-symbols.c: Update.
7606 * compile/compile-object-load.c: Update.
7607 * compile/compile-object-run.c: Update.
7608 * completer.c: Update.
7609 * corelow.c: Update.
7610 * cp-abi.c: Update.
7611 * cp-support.c: Update.
7612 * cp-valprint.c: Update.
7613 * darwin-nat.c: Update.
7614 * disasm-selftests.c: Update.
7615 * dtrace-probe.c: Update.
7616 * dwarf-index-cache.c: Update.
7617 * dwarf-index-write.c: Update.
7618 * dwarf2-frame-tailcall.c: Update.
7619 * dwarf2-frame.c: Update.
7620 * dwarf2loc.c: Update.
7621 * dwarf2read.c: Update.
7622 * eval.c: Update.
7623 * event-loop.c: Update.
7624 * event-top.c: Update.
7625 * exec.c: Update.
7626 * f-valprint.c: Update.
7627 * fbsd-tdep.c: Update.
7628 * frame-unwind.c: Update.
7629 * frame.c: Update.
7630 * gdbtypes.c: Update.
7631 * gnu-v3-abi.c: Update.
7632 * guile/guile-internal.h: Update.
7633 * guile/scm-block.c: Update.
7634 * guile/scm-breakpoint.c: Update.
7635 * guile/scm-cmd.c: Update.
7636 * guile/scm-disasm.c: Update.
7637 * guile/scm-frame.c: Update.
7638 * guile/scm-lazy-string.c: Update.
7639 * guile/scm-math.c: Update.
7640 * guile/scm-param.c: Update.
7641 * guile/scm-ports.c: Update.
7642 * guile/scm-pretty-print.c: Update.
7643 * guile/scm-symbol.c: Update.
7644 * guile/scm-symtab.c: Update.
7645 * guile/scm-type.c: Update.
7646 * guile/scm-value.c: Update.
7647 * i386-linux-tdep.c: Update.
7648 * i386-tdep.c: Update.
7649 * inf-loop.c: Update.
7650 * infcall.c: Update.
7651 * infcmd.c: Update.
7652 * infrun.c: Update.
7653 * jit.c: Update.
7654 * language.c: Update.
7655 * linespec.c: Update.
7656 * linux-fork.c: Update.
7657 * linux-nat.c: Update.
7658 * linux-tdep.c: Update.
7659 * linux-thread-db.c: Update.
7660 * main.c: Update.
7661 * mi/mi-cmd-break.c: Update.
7662 * mi/mi-cmd-stack.c: Update.
7663 * mi/mi-interp.c: Update.
7664 * mi/mi-main.c: Update.
7665 * objc-lang.c: Update.
7666 * p-valprint.c: Update.
7667 * parse.c: Update.
7668 * ppc-linux-tdep.c: Update.
7669 * printcmd.c: Update.
7670 * python/py-arch.c: Update.
7671 * python/py-breakpoint.c: Update.
7672 * python/py-cmd.c: Update.
7673 * python/py-finishbreakpoint.c: Update.
7674 * python/py-frame.c: Update.
7675 * python/py-framefilter.c: Update.
7676 * python/py-gdb-readline.c: Update.
7677 * python/py-inferior.c: Update.
7678 * python/py-infthread.c: Update.
7679 * python/py-lazy-string.c: Update.
7680 * python/py-linetable.c: Update.
7681 * python/py-objfile.c: Update.
7682 * python/py-param.c: Update.
7683 * python/py-prettyprint.c: Update.
7684 * python/py-progspace.c: Update.
7685 * python/py-record-btrace.c: Update.
7686 * python/py-record.c: Update.
7687 * python/py-symbol.c: Update.
7688 * python/py-type.c: Update.
7689 * python/py-unwind.c: Update.
7690 * python/py-utils.c: Update.
7691 * python/py-value.c: Update.
7692 * python/python.c: Update.
7693 * record-btrace.c: Update.
7694 * record-full.c: Update.
7695 * remote-fileio.c: Update.
7696 * remote.c: Update.
7697 * riscv-tdep.c: Update.
7698 * rs6000-aix-tdep.c: Update.
7699 * rs6000-tdep.c: Update.
7700 * rust-exp.y: Update.
7701 * rust-lang.c: Update.
7702 * s390-tdep.c: Update.
7703 * selftest-arch.c: Update.
7704 * solib-dsbt.c: Update.
7705 * solib-frv.c: Update.
7706 * solib-spu.c: Update.
7707 * solib-svr4.c: Update.
7708 * solib.c: Update.
7709 * sparc64-linux-tdep.c: Update.
7710 * stack.c: Update.
7711 * symfile-mem.c: Update.
7712 * symmisc.c: Update.
7713 * target.c: Update.
7714 * thread.c: Update.
7715 * top.c: Update.
7716 * tracefile-tfile.c: Update.
7717 * tui/tui.c: Update.
7718 * typeprint.c: Update.
7719 * unittests/cli-utils-selftests.c: Update.
7720 * unittests/parse-connection-spec-selftests.c: Update.
7721 * valops.c: Update.
7722 * valprint.c: Update.
7723 * value.c: Update.
7724 * varobj.c: Update.
7725 * windows-nat.c: Update.
7726 * x86-linux-nat.c: Update.
7727 * xml-support.c: Update.
7728
7729 2019-04-08 Tom Tromey <tom@tromey.com>
7730
7731 * xml-support.c: Use C++ exception handling.
7732 * x86-linux-nat.c: Use C++ exception handling.
7733 * windows-nat.c: Use C++ exception handling.
7734 * varobj.c: Use C++ exception handling.
7735 * value.c: Use C++ exception handling.
7736 * valprint.c: Use C++ exception handling.
7737 * valops.c: Use C++ exception handling.
7738 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7739 handling.
7740 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7741 * typeprint.c: Use C++ exception handling.
7742 * tui/tui.c: Use C++ exception handling.
7743 * tracefile-tfile.c: Use C++ exception handling.
7744 * top.c: Use C++ exception handling.
7745 * thread.c: Use C++ exception handling.
7746 * target.c: Use C++ exception handling.
7747 * symmisc.c: Use C++ exception handling.
7748 * symfile-mem.c: Use C++ exception handling.
7749 * stack.c: Use C++ exception handling.
7750 * sparc64-linux-tdep.c: Use C++ exception handling.
7751 * solib.c: Use C++ exception handling.
7752 * solib-svr4.c: Use C++ exception handling.
7753 * solib-spu.c: Use C++ exception handling.
7754 * solib-frv.c: Use C++ exception handling.
7755 * solib-dsbt.c: Use C++ exception handling.
7756 * selftest-arch.c: Use C++ exception handling.
7757 * s390-tdep.c: Use C++ exception handling.
7758 * rust-lang.c: Use C++ exception handling.
7759 * rust-exp.y: Use C++ exception handling.
7760 * rs6000-tdep.c: Use C++ exception handling.
7761 * rs6000-aix-tdep.c: Use C++ exception handling.
7762 * riscv-tdep.c: Use C++ exception handling.
7763 * remote.c: Use C++ exception handling.
7764 * remote-fileio.c: Use C++ exception handling.
7765 * record-full.c: Use C++ exception handling.
7766 * record-btrace.c: Use C++ exception handling.
7767 * python/python.c: Use C++ exception handling.
7768 * python/py-value.c: Use C++ exception handling.
7769 * python/py-utils.c: Use C++ exception handling.
7770 * python/py-unwind.c: Use C++ exception handling.
7771 * python/py-type.c: Use C++ exception handling.
7772 * python/py-symbol.c: Use C++ exception handling.
7773 * python/py-record.c: Use C++ exception handling.
7774 * python/py-record-btrace.c: Use C++ exception handling.
7775 * python/py-progspace.c: Use C++ exception handling.
7776 * python/py-prettyprint.c: Use C++ exception handling.
7777 * python/py-param.c: Use C++ exception handling.
7778 * python/py-objfile.c: Use C++ exception handling.
7779 * python/py-linetable.c: Use C++ exception handling.
7780 * python/py-lazy-string.c: Use C++ exception handling.
7781 * python/py-infthread.c: Use C++ exception handling.
7782 * python/py-inferior.c: Use C++ exception handling.
7783 * python/py-gdb-readline.c: Use C++ exception handling.
7784 * python/py-framefilter.c: Use C++ exception handling.
7785 * python/py-frame.c: Use C++ exception handling.
7786 * python/py-finishbreakpoint.c: Use C++ exception handling.
7787 * python/py-cmd.c: Use C++ exception handling.
7788 * python/py-breakpoint.c: Use C++ exception handling.
7789 * python/py-arch.c: Use C++ exception handling.
7790 * printcmd.c: Use C++ exception handling.
7791 * ppc-linux-tdep.c: Use C++ exception handling.
7792 * parse.c: Use C++ exception handling.
7793 * p-valprint.c: Use C++ exception handling.
7794 * objc-lang.c: Use C++ exception handling.
7795 * mi/mi-main.c: Use C++ exception handling.
7796 * mi/mi-interp.c: Use C++ exception handling.
7797 * mi/mi-cmd-stack.c: Use C++ exception handling.
7798 * mi/mi-cmd-break.c: Use C++ exception handling.
7799 * main.c: Use C++ exception handling.
7800 * linux-thread-db.c: Use C++ exception handling.
7801 * linux-tdep.c: Use C++ exception handling.
7802 * linux-nat.c: Use C++ exception handling.
7803 * linux-fork.c: Use C++ exception handling.
7804 * linespec.c: Use C++ exception handling.
7805 * language.c: Use C++ exception handling.
7806 * jit.c: Use C++ exception handling.
7807 * infrun.c: Use C++ exception handling.
7808 * infcmd.c: Use C++ exception handling.
7809 * infcall.c: Use C++ exception handling.
7810 * inf-loop.c: Use C++ exception handling.
7811 * i386-tdep.c: Use C++ exception handling.
7812 * i386-linux-tdep.c: Use C++ exception handling.
7813 * guile/scm-value.c: Use C++ exception handling.
7814 * guile/scm-type.c: Use C++ exception handling.
7815 * guile/scm-symtab.c: Use C++ exception handling.
7816 * guile/scm-symbol.c: Use C++ exception handling.
7817 * guile/scm-pretty-print.c: Use C++ exception handling.
7818 * guile/scm-ports.c: Use C++ exception handling.
7819 * guile/scm-param.c: Use C++ exception handling.
7820 * guile/scm-math.c: Use C++ exception handling.
7821 * guile/scm-lazy-string.c: Use C++ exception handling.
7822 * guile/scm-frame.c: Use C++ exception handling.
7823 * guile/scm-disasm.c: Use C++ exception handling.
7824 * guile/scm-cmd.c: Use C++ exception handling.
7825 * guile/scm-breakpoint.c: Use C++ exception handling.
7826 * guile/scm-block.c: Use C++ exception handling.
7827 * guile/guile-internal.h: Use C++ exception handling.
7828 * gnu-v3-abi.c: Use C++ exception handling.
7829 * gdbtypes.c: Use C++ exception handling.
7830 * frame.c: Use C++ exception handling.
7831 * frame-unwind.c: Use C++ exception handling.
7832 * fbsd-tdep.c: Use C++ exception handling.
7833 * f-valprint.c: Use C++ exception handling.
7834 * exec.c: Use C++ exception handling.
7835 * event-top.c: Use C++ exception handling.
7836 * event-loop.c: Use C++ exception handling.
7837 * eval.c: Use C++ exception handling.
7838 * dwarf2read.c: Use C++ exception handling.
7839 * dwarf2loc.c: Use C++ exception handling.
7840 * dwarf2-frame.c: Use C++ exception handling.
7841 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7842 * dwarf-index-write.c: Use C++ exception handling.
7843 * dwarf-index-cache.c: Use C++ exception handling.
7844 * dtrace-probe.c: Use C++ exception handling.
7845 * disasm-selftests.c: Use C++ exception handling.
7846 * darwin-nat.c: Use C++ exception handling.
7847 * cp-valprint.c: Use C++ exception handling.
7848 * cp-support.c: Use C++ exception handling.
7849 * cp-abi.c: Use C++ exception handling.
7850 * corelow.c: Use C++ exception handling.
7851 * completer.c: Use C++ exception handling.
7852 * compile/compile-object-run.c: Use C++ exception handling.
7853 * compile/compile-object-load.c: Use C++ exception handling.
7854 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7855 * compile/compile-c-symbols.c: Use C++ exception handling.
7856 * common/selftest.c: Use C++ exception handling.
7857 * common/new-op.c: Use C++ exception handling.
7858 * cli/cli-script.c: Use C++ exception handling.
7859 * cli/cli-interp.c: Use C++ exception handling.
7860 * cli/cli-cmds.c: Use C++ exception handling.
7861 * c-varobj.c: Use C++ exception handling.
7862 * btrace.c: Use C++ exception handling.
7863 * breakpoint.c: Use C++ exception handling.
7864 * break-catch-throw.c: Use C++ exception handling.
7865 * arch-utils.c: Use C++ exception handling.
7866 * amd64-tdep.c: Use C++ exception handling.
7867 * ada-valprint.c: Use C++ exception handling.
7868 * ada-typeprint.c: Use C++ exception handling.
7869 * ada-lang.c: Use C++ exception handling.
7870 * aarch64-tdep.c: Use C++ exception handling.
7871
7872 2019-04-08 Tom Tromey <tom@tromey.com>
7873
7874 * xml-support.c (gdb_xml_parser::parse): Update.
7875 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7876 * value.c (show_convenience): Update.
7877 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7878 (test_parse_flags_qcs): Update.
7879 * thread.c (thr_try_catch_cmd): Update.
7880 * target.c (target_translate_tls_address): Update.
7881 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7882 (info_frame_command_core, frame_apply_command_count): Update.
7883 * rust-exp.y (rust_lex_exception_test): Update.
7884 * riscv-tdep.c (riscv_print_one_register_info): Update.
7885 * remote.c (remote_target::enable_btrace): Update.
7886 * record-btrace.c (record_btrace_enable_warn): Update.
7887 * python/py-utils.c (gdbpy_convert_exception): Update.
7888 * printcmd.c (do_one_display, print_variable_and_value): Update.
7889 * mi/mi-main.c (mi_print_exception): Update.
7890 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7891 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7892 * linux-nat.c (linux_nat_target::attach): Update.
7893 * linux-fork.c (class scoped_switch_fork_info): Update.
7894 * infrun.c (displaced_step_prepare): Update.
7895 * infcall.c (call_function_by_hand_dummy): Update.
7896 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7897 * gnu-v3-abi.c (print_one_vtable): Update.
7898 * frame.c (get_prev_frame_always): Update.
7899 * f-valprint.c (info_common_command_for_block): Update.
7900 * exec.c (try_open_exec_file): Update.
7901 * exceptions.c (print_exception, exception_print)
7902 (exception_fprintf, exception_print_same): Update.
7903 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7904 * dwarf-index-cache.c (index_cache::store)
7905 (index_cache::lookup_gdb_index): Update.
7906 * darwin-nat.c (maybe_cache_shell): Update.
7907 * cp-valprint.c (cp_print_value_fields): Update.
7908 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7909 (gcc_cplus_symbol_address): Update.
7910 * compile/compile-c-symbols.c (gcc_convert_symbol)
7911 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7912 * common/selftest.c: Update.
7913 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7914 a std::string.
7915 (exception_try_scope_entry, exception_try_scope_exit): Don't
7916 declare.
7917 (struct exception_try_scope): Remove.
7918 (TRY): Don't use exception_try_scope.
7919 (struct gdb_exception): Add constructor, operator=.
7920 <what>: New method.
7921 (struct gdb_exception_RETURN_MASK_ALL)
7922 (struct gdb_exception_RETURN_MASK_ERROR)
7923 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7924 (struct gdb_quit_bad_alloc): Update.
7925 * common/common-exceptions.c (exception_none): Change
7926 initializer.
7927 (struct catcher) <state, exception>: Initialize inline.
7928 <prev>: Remove member.
7929 (current_catcher): Remove.
7930 (catchers): New global.
7931 (exceptions_state_mc_init): Simplify.
7932 (catcher_pop): Remove.
7933 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7934 (try_scope_depth, exception_try_scope_entry)
7935 (exception_try_scope_exit): Remove.
7936 (throw_exception_sjlj): Update.
7937 (exception_messages, exception_messages_size): Remove.
7938 (throw_it): Simplify.
7939 (gdb_exception_sliced_copy): Remove.
7940 (throw_exception_cxx): Update.
7941 * cli/cli-script.c (script_from_file): Update.
7942 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7943 Update.
7944 * ada-valprint.c (ada_val_print): Update.
7945 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7946 (create_excep_cond_exprs): Update.
7947
7948 2019-04-08 Tom Tromey <tom@tromey.com>
7949
7950 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7951 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7952 (TRY, CATCH, END_CATCH): Remove some definitions.
7953 * common/common-exceptions.c: Don't use GDB_XCPT.
7954 (catcher_list_size): Remove.
7955 (throw_exception, throw_it): Simplify.
7956
7957 2019-04-05 Tom Tromey <tom@tromey.com>
7958
7959 Revert the header-sorting patch.
7960 * ft32-tdep.c: Revert.
7961 * frv-tdep.c: Revert.
7962 * frv-linux-tdep.c: Revert.
7963 * frame.c: Revert.
7964 * frame-unwind.c: Revert.
7965 * frame-base.c: Revert.
7966 * fork-child.c: Revert.
7967 * findvar.c: Revert.
7968 * findcmd.c: Revert.
7969 * filesystem.c: Revert.
7970 * filename-seen-cache.h: Revert.
7971 * filename-seen-cache.c: Revert.
7972 * fbsd-tdep.c: Revert.
7973 * fbsd-nat.h: Revert.
7974 * fbsd-nat.c: Revert.
7975 * f-valprint.c: Revert.
7976 * f-typeprint.c: Revert.
7977 * f-lang.c: Revert.
7978 * extension.h: Revert.
7979 * extension.c: Revert.
7980 * extension-priv.h: Revert.
7981 * expprint.c: Revert.
7982 * exec.h: Revert.
7983 * exec.c: Revert.
7984 * exceptions.c: Revert.
7985 * event-top.c: Revert.
7986 * event-loop.c: Revert.
7987 * eval.c: Revert.
7988 * elfread.c: Revert.
7989 * dwarf2read.h: Revert.
7990 * dwarf2read.c: Revert.
7991 * dwarf2loc.c: Revert.
7992 * dwarf2expr.h: Revert.
7993 * dwarf2expr.c: Revert.
7994 * dwarf2-frame.c: Revert.
7995 * dwarf2-frame-tailcall.c: Revert.
7996 * dwarf-index-write.h: Revert.
7997 * dwarf-index-write.c: Revert.
7998 * dwarf-index-common.c: Revert.
7999 * dwarf-index-cache.h: Revert.
8000 * dwarf-index-cache.c: Revert.
8001 * dummy-frame.c: Revert.
8002 * dtrace-probe.c: Revert.
8003 * disasm.h: Revert.
8004 * disasm.c: Revert.
8005 * disasm-selftests.c: Revert.
8006 * dictionary.c: Revert.
8007 * dicos-tdep.c: Revert.
8008 * demangle.c: Revert.
8009 * dcache.h: Revert.
8010 * dcache.c: Revert.
8011 * darwin-nat.h: Revert.
8012 * darwin-nat.c: Revert.
8013 * darwin-nat-info.c: Revert.
8014 * d-valprint.c: Revert.
8015 * d-namespace.c: Revert.
8016 * d-lang.c: Revert.
8017 * ctf.c: Revert.
8018 * csky-tdep.c: Revert.
8019 * csky-linux-tdep.c: Revert.
8020 * cris-tdep.c: Revert.
8021 * cris-linux-tdep.c: Revert.
8022 * cp-valprint.c: Revert.
8023 * cp-support.c: Revert.
8024 * cp-namespace.c: Revert.
8025 * cp-abi.c: Revert.
8026 * corelow.c: Revert.
8027 * corefile.c: Revert.
8028 * continuations.c: Revert.
8029 * completer.h: Revert.
8030 * completer.c: Revert.
8031 * complaints.c: Revert.
8032 * coffread.c: Revert.
8033 * coff-pe-read.c: Revert.
8034 * cli-out.h: Revert.
8035 * cli-out.c: Revert.
8036 * charset.c: Revert.
8037 * c-varobj.c: Revert.
8038 * c-valprint.c: Revert.
8039 * c-typeprint.c: Revert.
8040 * c-lang.c: Revert.
8041 * buildsym.c: Revert.
8042 * buildsym-legacy.c: Revert.
8043 * build-id.h: Revert.
8044 * build-id.c: Revert.
8045 * btrace.c: Revert.
8046 * bsd-uthread.c: Revert.
8047 * breakpoint.h: Revert.
8048 * breakpoint.c: Revert.
8049 * break-catch-throw.c: Revert.
8050 * break-catch-syscall.c: Revert.
8051 * break-catch-sig.c: Revert.
8052 * blockframe.c: Revert.
8053 * block.c: Revert.
8054 * bfin-tdep.c: Revert.
8055 * bfin-linux-tdep.c: Revert.
8056 * bfd-target.c: Revert.
8057 * bcache.c: Revert.
8058 * ax-general.c: Revert.
8059 * ax-gdb.h: Revert.
8060 * ax-gdb.c: Revert.
8061 * avr-tdep.c: Revert.
8062 * auxv.c: Revert.
8063 * auto-load.c: Revert.
8064 * arm-wince-tdep.c: Revert.
8065 * arm-tdep.c: Revert.
8066 * arm-symbian-tdep.c: Revert.
8067 * arm-pikeos-tdep.c: Revert.
8068 * arm-obsd-tdep.c: Revert.
8069 * arm-nbsd-tdep.c: Revert.
8070 * arm-nbsd-nat.c: Revert.
8071 * arm-linux-tdep.c: Revert.
8072 * arm-linux-nat.c: Revert.
8073 * arm-fbsd-tdep.c: Revert.
8074 * arm-fbsd-nat.c: Revert.
8075 * arm-bsd-tdep.c: Revert.
8076 * arch-utils.c: Revert.
8077 * arc-tdep.c: Revert.
8078 * arc-newlib-tdep.c: Revert.
8079 * annotate.h: Revert.
8080 * annotate.c: Revert.
8081 * amd64-windows-tdep.c: Revert.
8082 * amd64-windows-nat.c: Revert.
8083 * amd64-tdep.c: Revert.
8084 * amd64-sol2-tdep.c: Revert.
8085 * amd64-obsd-tdep.c: Revert.
8086 * amd64-obsd-nat.c: Revert.
8087 * amd64-nbsd-tdep.c: Revert.
8088 * amd64-nbsd-nat.c: Revert.
8089 * amd64-nat.c: Revert.
8090 * amd64-linux-tdep.c: Revert.
8091 * amd64-linux-nat.c: Revert.
8092 * amd64-fbsd-tdep.c: Revert.
8093 * amd64-fbsd-nat.c: Revert.
8094 * amd64-dicos-tdep.c: Revert.
8095 * amd64-darwin-tdep.c: Revert.
8096 * amd64-bsd-nat.c: Revert.
8097 * alpha-tdep.c: Revert.
8098 * alpha-obsd-tdep.c: Revert.
8099 * alpha-nbsd-tdep.c: Revert.
8100 * alpha-mdebug-tdep.c: Revert.
8101 * alpha-linux-tdep.c: Revert.
8102 * alpha-linux-nat.c: Revert.
8103 * alpha-bsd-tdep.c: Revert.
8104 * alpha-bsd-nat.c: Revert.
8105 * aix-thread.c: Revert.
8106 * agent.c: Revert.
8107 * addrmap.c: Revert.
8108 * ada-varobj.c: Revert.
8109 * ada-valprint.c: Revert.
8110 * ada-typeprint.c: Revert.
8111 * ada-tasks.c: Revert.
8112 * ada-lang.c: Revert.
8113 * aarch64-tdep.c: Revert.
8114 * aarch64-ravenscar-thread.c: Revert.
8115 * aarch64-newlib-tdep.c: Revert.
8116 * aarch64-linux-tdep.c: Revert.
8117 * aarch64-linux-nat.c: Revert.
8118 * aarch64-fbsd-tdep.c: Revert.
8119 * aarch64-fbsd-nat.c: Revert.
8120 * aarch32-linux-nat.c: Revert.
8121
8122 2019-04-05 Tom Tromey <tom@tromey.com>
8123
8124 * ft32-tdep.c: Sort headers.
8125 * frv-tdep.c: Sort headers.
8126 * frv-linux-tdep.c: Sort headers.
8127 * frame.c: Sort headers.
8128 * frame-unwind.c: Sort headers.
8129 * frame-base.c: Sort headers.
8130 * fork-child.c: Sort headers.
8131 * findvar.c: Sort headers.
8132 * findcmd.c: Sort headers.
8133 * filesystem.c: Sort headers.
8134 * filename-seen-cache.h: Sort headers.
8135 * filename-seen-cache.c: Sort headers.
8136 * fbsd-tdep.c: Sort headers.
8137 * fbsd-nat.h: Sort headers.
8138 * fbsd-nat.c: Sort headers.
8139 * f-valprint.c: Sort headers.
8140 * f-typeprint.c: Sort headers.
8141 * f-lang.c: Sort headers.
8142 * extension.h: Sort headers.
8143 * extension.c: Sort headers.
8144 * extension-priv.h: Sort headers.
8145 * expprint.c: Sort headers.
8146 * exec.h: Sort headers.
8147 * exec.c: Sort headers.
8148 * exceptions.c: Sort headers.
8149 * event-top.c: Sort headers.
8150 * event-loop.c: Sort headers.
8151 * eval.c: Sort headers.
8152 * elfread.c: Sort headers.
8153 * dwarf2read.h: Sort headers.
8154 * dwarf2read.c: Sort headers.
8155 * dwarf2loc.c: Sort headers.
8156 * dwarf2expr.h: Sort headers.
8157 * dwarf2expr.c: Sort headers.
8158 * dwarf2-frame.c: Sort headers.
8159 * dwarf2-frame-tailcall.c: Sort headers.
8160 * dwarf-index-write.h: Sort headers.
8161 * dwarf-index-write.c: Sort headers.
8162 * dwarf-index-common.c: Sort headers.
8163 * dwarf-index-cache.h: Sort headers.
8164 * dwarf-index-cache.c: Sort headers.
8165 * dummy-frame.c: Sort headers.
8166 * dtrace-probe.c: Sort headers.
8167 * disasm.h: Sort headers.
8168 * disasm.c: Sort headers.
8169 * disasm-selftests.c: Sort headers.
8170 * dictionary.c: Sort headers.
8171 * dicos-tdep.c: Sort headers.
8172 * demangle.c: Sort headers.
8173 * dcache.h: Sort headers.
8174 * dcache.c: Sort headers.
8175 * darwin-nat.h: Sort headers.
8176 * darwin-nat.c: Sort headers.
8177 * darwin-nat-info.c: Sort headers.
8178 * d-valprint.c: Sort headers.
8179 * d-namespace.c: Sort headers.
8180 * d-lang.c: Sort headers.
8181 * ctf.c: Sort headers.
8182 * csky-tdep.c: Sort headers.
8183 * csky-linux-tdep.c: Sort headers.
8184 * cris-tdep.c: Sort headers.
8185 * cris-linux-tdep.c: Sort headers.
8186 * cp-valprint.c: Sort headers.
8187 * cp-support.c: Sort headers.
8188 * cp-namespace.c: Sort headers.
8189 * cp-abi.c: Sort headers.
8190 * corelow.c: Sort headers.
8191 * corefile.c: Sort headers.
8192 * continuations.c: Sort headers.
8193 * completer.h: Sort headers.
8194 * completer.c: Sort headers.
8195 * complaints.c: Sort headers.
8196 * coffread.c: Sort headers.
8197 * coff-pe-read.c: Sort headers.
8198 * cli-out.h: Sort headers.
8199 * cli-out.c: Sort headers.
8200 * charset.c: Sort headers.
8201 * c-varobj.c: Sort headers.
8202 * c-valprint.c: Sort headers.
8203 * c-typeprint.c: Sort headers.
8204 * c-lang.c: Sort headers.
8205 * buildsym.c: Sort headers.
8206 * buildsym-legacy.c: Sort headers.
8207 * build-id.h: Sort headers.
8208 * build-id.c: Sort headers.
8209 * btrace.c: Sort headers.
8210 * bsd-uthread.c: Sort headers.
8211 * breakpoint.h: Sort headers.
8212 * breakpoint.c: Sort headers.
8213 * break-catch-throw.c: Sort headers.
8214 * break-catch-syscall.c: Sort headers.
8215 * break-catch-sig.c: Sort headers.
8216 * blockframe.c: Sort headers.
8217 * block.c: Sort headers.
8218 * bfin-tdep.c: Sort headers.
8219 * bfin-linux-tdep.c: Sort headers.
8220 * bfd-target.c: Sort headers.
8221 * bcache.c: Sort headers.
8222 * ax-general.c: Sort headers.
8223 * ax-gdb.h: Sort headers.
8224 * ax-gdb.c: Sort headers.
8225 * avr-tdep.c: Sort headers.
8226 * auxv.c: Sort headers.
8227 * auto-load.c: Sort headers.
8228 * arm-wince-tdep.c: Sort headers.
8229 * arm-tdep.c: Sort headers.
8230 * arm-symbian-tdep.c: Sort headers.
8231 * arm-pikeos-tdep.c: Sort headers.
8232 * arm-obsd-tdep.c: Sort headers.
8233 * arm-nbsd-tdep.c: Sort headers.
8234 * arm-nbsd-nat.c: Sort headers.
8235 * arm-linux-tdep.c: Sort headers.
8236 * arm-linux-nat.c: Sort headers.
8237 * arm-fbsd-tdep.c: Sort headers.
8238 * arm-fbsd-nat.c: Sort headers.
8239 * arm-bsd-tdep.c: Sort headers.
8240 * arch-utils.c: Sort headers.
8241 * arc-tdep.c: Sort headers.
8242 * arc-newlib-tdep.c: Sort headers.
8243 * annotate.h: Sort headers.
8244 * annotate.c: Sort headers.
8245 * amd64-windows-tdep.c: Sort headers.
8246 * amd64-windows-nat.c: Sort headers.
8247 * amd64-tdep.c: Sort headers.
8248 * amd64-sol2-tdep.c: Sort headers.
8249 * amd64-obsd-tdep.c: Sort headers.
8250 * amd64-obsd-nat.c: Sort headers.
8251 * amd64-nbsd-tdep.c: Sort headers.
8252 * amd64-nbsd-nat.c: Sort headers.
8253 * amd64-nat.c: Sort headers.
8254 * amd64-linux-tdep.c: Sort headers.
8255 * amd64-linux-nat.c: Sort headers.
8256 * amd64-fbsd-tdep.c: Sort headers.
8257 * amd64-fbsd-nat.c: Sort headers.
8258 * amd64-dicos-tdep.c: Sort headers.
8259 * amd64-darwin-tdep.c: Sort headers.
8260 * amd64-bsd-nat.c: Sort headers.
8261 * alpha-tdep.c: Sort headers.
8262 * alpha-obsd-tdep.c: Sort headers.
8263 * alpha-nbsd-tdep.c: Sort headers.
8264 * alpha-mdebug-tdep.c: Sort headers.
8265 * alpha-linux-tdep.c: Sort headers.
8266 * alpha-linux-nat.c: Sort headers.
8267 * alpha-bsd-tdep.c: Sort headers.
8268 * alpha-bsd-nat.c: Sort headers.
8269 * aix-thread.c: Sort headers.
8270 * agent.c: Sort headers.
8271 * addrmap.c: Sort headers.
8272 * ada-varobj.c: Sort headers.
8273 * ada-valprint.c: Sort headers.
8274 * ada-typeprint.c: Sort headers.
8275 * ada-tasks.c: Sort headers.
8276 * ada-lang.c: Sort headers.
8277 * aarch64-tdep.c: Sort headers.
8278 * aarch64-ravenscar-thread.c: Sort headers.
8279 * aarch64-newlib-tdep.c: Sort headers.
8280 * aarch64-linux-tdep.c: Sort headers.
8281 * aarch64-linux-nat.c: Sort headers.
8282 * aarch64-fbsd-tdep.c: Sort headers.
8283 * aarch64-fbsd-nat.c: Sort headers.
8284 * aarch32-linux-nat.c: Sort headers.
8285
8286 2019-04-04 Tom Tromey <tom@tromey.com>
8287
8288 * varobj.c (varobj_create): Update.
8289 * rust-exp.y (struct rust_parser) <update_innermost_block,
8290 lookup_symbol>: New methods.
8291 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8292 Rename.
8293 (rust_parser::rust_lookup_type)
8294 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8295 * printcmd.c (display_command, do_one_display): Update.
8296 * parser-defs.h (struct parser_state) <parser_state>: Add
8297 "tracker" parameter.
8298 (block_tracker): New member.
8299 (class innermost_block_tracker) <innermost_block_tracker>: Add
8300 "types" parameter.
8301 <reset>: Remove method.
8302 (innermost_block): Don't declare.
8303 (null_post_parser): Update.
8304 * parse.c (innermost_block): Remove global.
8305 (write_dollar_variable): Update.
8306 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8307 Remove "tracker_types" parameter.
8308 (parse_expression): Add "tracker" parameter.
8309 (parse_expression_for_completion): Update.
8310 (null_post_parser): Add "tracker" parameter.
8311 * p-exp.y: Update rules.
8312 * m2-exp.y: Update rules.
8313 * language.h (struct language_defn) <la_post_parser>: Add
8314 "tracker" parameter.
8315 * go-exp.y: Update rules.
8316 * f-exp.y: Update rules.
8317 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8318 parameter.
8319 * d-exp.y: Update rules.
8320 * c-exp.y: Update rules.
8321 * breakpoint.c (set_breakpoint_condition): Create an
8322 innermost_block_tracker.
8323 (watch_command_1): Likewise.
8324 * ada-lang.c (resolve): Add "tracker" parameter.
8325 (resolve_subexp): Likewise.
8326 * ada-exp.y (write_var_from_sym): Update.
8327
8328 2019-04-04 Tom Tromey <tom@tromey.com>
8329
8330 * type-stack.h: New file.
8331 * type-stack.c: New file.
8332 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8333 type-stack.h.
8334 (insert_into_type_stack, insert_type, push_type, push_type_int)
8335 (insert_type_address_space, pop_type, pop_type_int)
8336 (pop_typelist, pop_type_stack, append_type_stack)
8337 (push_type_stack, get_type_stack, push_typelist)
8338 (follow_type_instance_flags, follow_types): Don't declare.
8339 * parse.c (type_stack): Remove global.
8340 (parse_exp_in_context): Update.
8341 (insert_into_type_stack, insert_type, push_type, push_type_int)
8342 (insert_type_address_space, pop_type, pop_type_int)
8343 (pop_typelist, pop_type_stack, append_type_stack)
8344 (push_type_stack, get_type_stack, push_typelist)
8345 (follow_type_instance_flags, follow_types): Remove (moved to
8346 type-stack.c).
8347 * f-exp.y (type_stack): New global.
8348 Update rules.
8349 (push_kind_type, f_parse): Update.
8350 * d-exp.y (type_stack): New global.
8351 Update rules.
8352 (d_parse): Update.
8353 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8354 Update rules.
8355 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8356 (HFILES_NO_SRCDIR): Add type-stack.h.
8357
8358 2019-04-04 Tom Tromey <tom@tromey.com>
8359
8360 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8361 (rust_parser::convert_ast_to_expression, rust_parse)
8362 (rust_lex_test_completion, rust_lex_tests): Update.
8363 * parser-defs.h (struct expr_completion_state): New.
8364 (struct parser_state) <parser_state>: Add completion parameter.
8365 <mark_struct_expression, mark_completion_tag>: New methods.
8366 <parse_completion, m_completion_state>: New members.
8367 (prefixify_expression, null_post_parser): Update.
8368 (mark_struct_expression, mark_completion_tag): Don't declare.
8369 * parse.c (parse_completion, expout_last_struct)
8370 (expout_tag_completion_type, expout_completion_name): Remove
8371 globals.
8372 (parser_state::mark_struct_expression)
8373 (parser_state::mark_completion_tag): Now methods.
8374 (prefixify_expression): Add last_struct parameter.
8375 (prefixify_subexp): Likewise.
8376 (parse_exp_1): Update.
8377 (parse_exp_in_context): Add cstate parameter. Update.
8378 (parse_expression_for_completion): Create an
8379 expr_completion_state.
8380 (null_post_parser): Add "completion" parameter.
8381 * p-exp.y: Update rules.
8382 (yylex): Update.
8383 * language.h (struct language_defn) <la_post_parser>: Add
8384 "completing" parameter.
8385 * go-exp.y: Update rules.
8386 (lex_one_token): Update.
8387 * expression.h (parse_completion): Don't declare.
8388 * d-exp.y: Update rules.
8389 (lex_one_token): Update rules.
8390 * c-exp.y: Update rules.
8391 (lex_one_token): Update.
8392 * ada-lang.c (resolve): Add "parse_completion" parameter.
8393 (resolve_subexp): Likewise.
8394 (ada_resolve_function): Likewise.
8395
8396 2019-04-04 Tom Tromey <tom@tromey.com>
8397
8398 * parser-defs.h (struct parser_state) <start_arglist,
8399 end_arglist>: New methods.
8400 <arglist_len, m_funcall_chain>: New members.
8401 (arglist_len, start_arglist, end_arglist): Don't declare.
8402 * parse.c (arglist_len, funcall_chain): Remove global.
8403 (start_arglist, end_arglist): Remove functions.
8404 (parse_exp_in_context): Update.
8405 * p-exp.y: Update rules.
8406 * m2-exp.y: Update rules.
8407 * go-exp.y: Update rules.
8408 * f-exp.y: Update rules.
8409 * d-exp.y: Update rules.
8410 * c-exp.y: Update rules.
8411
8412 2019-04-04 Tom Tromey <tom@tromey.com>
8413
8414 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8415 lex_operator, push_back>: New methods.
8416 Update all rules.
8417 (rust_parser::lex_hex, lex_escape): Rename and update.
8418 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8419 (rust_parser::lex_operator): Rename and update.
8420 (rust_parser::lex_number, rustyylex, rustyyerror)
8421 (rust_lex_test_init, rust_lex_test_sequence)
8422 (rust_lex_test_push_back, rust_lex_tests): Update.
8423 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8424 parameter.
8425 <lexptr, prev_lexptr>: New members.
8426 (lexptr, prev_lexptr): Don't declare.
8427 * parse.c (lexptr, prev_lexptr): Remove globals.
8428 (parse_exp_in_context): Update.
8429 * p-exp.y (yylex, yyerror): Update.
8430 * m2-exp.y (parse_number, yylex, yyerror): Update.
8431 * go-exp.y (lex_one_token, yyerror): Update.
8432 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8433 * d-exp.y (lex_one_token, yyerror): Update.
8434 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8435 (lex_one_token, yyerror): Update.
8436 * ada-lex.l (YY_INPUT): Update.
8437 (rewind_to_char): Update.
8438 * ada-exp.y (yyerror): Update.
8439
8440 2019-04-04 Tom Tromey <tom@tromey.com>
8441
8442 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8443 * parser-defs.h (struct parser_state) <parser_state>: Add new
8444 parameter.
8445 <comma_terminates>: New member.
8446 (comma_terminates): Don't declare global.
8447 * parse.c (comma_terminates): Remove global.
8448 (parse_exp_in_context): Update.
8449 * p-exp.y (yylex): Update.
8450 * m2-exp.y (yylex): Update.
8451 * go-exp.y (lex_one_token): Update.
8452 * f-exp.y (yylex): Update.
8453 * d-exp.y (lex_one_token): Update.
8454 * c-exp.y (lex_one_token): Update.
8455 * ada-lex.l: Update.
8456
8457 2019-04-04 Tom Tromey <tom@tromey.com>
8458
8459 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8460 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8461 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8462 * parser-defs.h (paren_depth): Don't declare.
8463 * parse.c (paren_depth): Remove global.
8464 (parse_exp_in_context): Update.
8465 * p-exp.y (paren_depth): New global.
8466 (pascal_parse): Initialize it.
8467 * m2-exp.y (paren_depth): New global.
8468 (m2_parse): Initialize it.
8469 * go-exp.y (paren_depth): New global.
8470 (go_parse): Initialize it.
8471 * f-exp.y (paren_depth): New global.
8472 (f_parse): Initialize it.
8473 * d-exp.y (paren_depth): New global.
8474 (d_parse): Initialize it.
8475 * c-exp.y (paren_depth): New global.
8476 (c_parse): Initialize it.
8477 * ada-lex.l (paren_depth): New global.
8478 (lexer_init): Initialize it.
8479
8480 2019-04-04 Tom Tromey <tom@tromey.com>
8481
8482 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8483 (rust_parser::convert_ast_to_type)
8484 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8485 * parser-defs.h (struct parser_state) <parser_state>: Add
8486 parameters. Initialize new members.
8487 <expression_context_block, expression_context_pc>: New members.
8488 * parse.c (expression_context_block, expression_context_pc):
8489 Remove globals.
8490 (parse_exp_in_context): Update.
8491 * p-exp.y: Update all rules.
8492 (yylex): Update.
8493 * m2-exp.y: Update all rules.
8494 (yylex): Update.
8495 * go-exp.y (yylex): Update.
8496 * f-exp.y (yylex): Update.
8497 * d-exp.y: Update all rules.
8498 (yylex): Update.
8499 * c-exp.y: Update all rules.
8500 (lex_one_token, classify_name, yylex, c_parse): Update.
8501 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8502
8503 2019-04-04 Tom Tromey <tom@tromey.com>
8504
8505 * gdbarch.h, gdbarch.c: Rebuild.
8506 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8507 * stap-probe.h:
8508 (struct stap_parse_info): Replace "parser_state" with
8509 "expr_builder".
8510 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8511 (parser_state): New class.
8512 * parse.c (expr_builder): Rename.
8513 (expr_builder::release): Rename.
8514 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8515 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8516 (write_exp_elt_longcst, write_exp_elt_floatcst)
8517 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8518 (write_exp_string_vector, write_exp_bitstring)
8519 (write_exp_msymbol, mark_struct_expression)
8520 (write_dollar_variable)
8521 (insert_type_address_space, increase_expout_size): Replace
8522 "parser_state" with "expr_builder".
8523 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8524 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8525 "parser_state" with "expr_builder".
8526
8527 2019-04-04 Tom Tromey <tom@tromey.com>
8528
8529 * rust-exp.y: Replace "parse_language" with method call.
8530 * p-exp.y:
8531 (yylex): Replace "parse_language" with method call.
8532 * m2-exp.y:
8533 (yylex): Replace "parse_language" with method call.
8534 * go-exp.y (classify_name): Replace "parse_language" with method
8535 call.
8536 * f-exp.y (yylex): Replace "parse_language" with method call.
8537 * d-exp.y (lex_one_token): Replace "parse_language" with method
8538 call.
8539 * c-exp.y:
8540 (lex_one_token, classify_name, yylex): Replace "parse_language"
8541 with method call.
8542 * ada-exp.y (find_primitive_type, type_char)
8543 (type_system_address): Replace "parse_language" with method call.
8544
8545 2019-04-04 Tom Tromey <tom@tromey.com>
8546
8547 * rust-exp.y: Replace "parse_gdbarch" with method call.
8548 * parse.c (write_dollar_variable, insert_type_address_space):
8549 Replace "parse_gdbarch" with method call.
8550 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8551 call.
8552 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8553 call.
8554 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8555 "parse_gdbarch" with method call.
8556 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8557 with method call.
8558 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8559 "parse_gdbarch" with method call.
8560 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8561 "parse_gdbarch" with method call.
8562 * c-exp.y (parse_type, parse_number, classify_name): Replace
8563 "parse_gdbarch" with method call.
8564 * ada-lex.l: Replace "parse_gdbarch" with method call.
8565 * ada-exp.y (parse_type, find_primitive_type, type_char)
8566 (type_system_address): Replace "parse_gdbarch" with method call.
8567
8568 2019-04-04 Tom Tromey <tom@tromey.com>
8569
8570 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8571 * stap-probe.c (stap_parse_argument): Update.
8572 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8573 initial_size parameter.
8574 * rust-exp.y (rust_lex_tests): Update.
8575 * parse.c (parser_state): Update.
8576 (parse_exp_in_context): Update.
8577 * parser-defs.h (struct parser_state) <parser_state>: Remove
8578 "initial_size" parameter.
8579
8580 2019-04-04 Tom Tromey <tom@tromey.com>
8581
8582 * parser-defs.h (increase_expout_size): Don't declare.
8583 * parse.c (increase_expout_size): Now static.
8584
8585 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8586
8587 * gnu-nat.c (gnu_nat_target::wait): Fix
8588 target_waitstatus_to_string call.
8589
8590 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8591
8592 * eval.c (evaluate_subexp_standard): Handle internal functions
8593 during Fortran function call handling.
8594
8595 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8596
8597 * NEWS: Mention new internal functions.
8598 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8599 (read_base_type): Use dwarf2_init_complex_target_type.
8600 * value.c (creal_internal_fn): New function.
8601 (cimag_internal_fn): New function.
8602 (_initialize_values): Register new internal functions.
8603
8604 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8605
8606 * infrun.c (stop_all_threads): If debug_infrun, always
8607 trace the wait status after wait_one, using
8608 target_waitstatus_to_string and target_pid_to_str.
8609 (handle_inferior_event): Replace various trace of
8610 wait status kind by a single trace.
8611 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8612 wait status kind image by target_waitstatus_to_string.
8613 * target/waitstatus.c (target_waitstatus_to_string): Fix
8614 obsolete comment.
8615
8616 2019-04-01 Tom Tromey <tromey@adacore.com>
8617
8618 PR symtab/23331:
8619 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8620
8621 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8622 Pedro Alves <palves@redhat.com>
8623
8624 * top.c (quit_force): Call 'finalize_values'.
8625 * value.c (finalize_values): New function.
8626 * value.h (finalize_values): Declare.
8627
8628 2019-03-30 Eli Zaretskii <eliz@gnu.org>
8629
8630 * NEWS: Announce $_gdb_major and $_gdb_minor.
8631
8632 * top.c (init_gdb_version_vars): New function.
8633 (gdb_init): Call init_gdb_version_vars.
8634
8635 2019-03-29 Tom Tromey <tromey@adacore.com>
8636
8637 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8638 help text. Remove dead code.
8639
8640 2019-03-29 Keith Seitz <keiths@redhat.com>
8641
8642 From Siddhesh Poyarekar:
8643 * f-lang.h (f77_get_upperbound): Return LONGEST.
8644 (f77_get_lowerbound): Likewise.
8645 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8646 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8647 print them.
8648 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8649 plongest to format print it.
8650 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8651 (f77_get_upperbound): Likewise.
8652 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8653 LOWER_BOUND to LONGEST.
8654 (f77_create_arrayprint_offset_tbl): Likewise.
8655
8656 2019-03-29 Keith Seitz <keiths@redhat.com>
8657
8658 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8659 %s/pulongest for TYPE_LENGTH instead of %d in format
8660 strings.
8661 * ada-typerint.c (ada_print_type): Likewise.
8662 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8663 * compile/compile-c-support.c (generate_register_struct): Likewise.
8664 * gdbtypes.c (recursive_dump_type): Likewise.
8665 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8666 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8667 instead of %d in format strings.
8668 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8669 to std::min to ULONGEST.
8670 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8671 instead of %d in format strings.
8672 * tracepoint.c (info_scope_command): Likewise.
8673 * typeprint.c (print_offset_data::update)
8674 (print_offset_data::finish): Likewise.
8675 * xtensa-tdep.c (xtensa_store_return_value)
8676 (xtensa_push_dummy_call): Likewise.
8677
8678 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8679
8680 * windows-nat.c (display_selector): Fixed format specifications
8681 for 64-bit Cygwin.
8682
8683 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8684
8685 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8686
8687 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8688
8689 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8690 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8691 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8692 (nios2_linux_init_abi): Install it.
8693
8694 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8695
8696 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8697
8698 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8699
8700 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8701
8702 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8703 Tom Tromey <tromey@adacore.com>
8704
8705 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8706
8707 2019-03-26 Joel Brobecker <brobecker@adacore.com>
8708
8709 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8710 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8711 method to compute the bounds of range types. Also print "[evaluated]"
8712 if the bounds' values come from a dynamic evaluation.
8713
8714 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8715
8716 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8717 whitespace when pretty printing is on.
8718
8719 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8720
8721 * ppc-linux-nat.c: Add include.
8722
8723 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8724
8725 * NEWS: Mention AArch64 Pointer Authentication.
8726
8727 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8728
8729 * arm-linux-nat.c: Add include.
8730
8731 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8732
8733 * source-cache.c (source_cache::get_source_lines): Re-read
8734 fullname after calling open_source_file.
8735
8736 2019-03-25 John Baldwin <jhb@FreeBSD.org>
8737
8738 * NEWS: Mention TLS support for FreeBSD.
8739
8740 2019-03-25 Tom Tromey <tromey@adacore.com>
8741
8742 * minsyms.c (BUNCH_SIZE): Update comment.
8743 (~minimal_symbol_reader): Remove old comment.
8744 (compact_minimal_symbols): Update comment.
8745 (minimal_symbol_reader::install): Remove old comment. Update
8746 other comments.
8747
8748 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8749
8750 * s390-linux-nat.c: Add include.
8751
8752 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8753
8754 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8755 Call linux_get_hwcap.
8756 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8757 Likewise.
8758 (aarch64_linux_get_hwcap): Remove function.
8759 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8760 declaration.
8761 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8762 linux_get_hwcap.
8763 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8764 * linux-tdep.c (linux_get_hwcap): Add function.
8765 (linux_get_hwcap2): Likewise.
8766 * linux-tdep.h (linux_get_hwcap): Add declaration.
8767 (linux_get_hwcap2): Likewise.
8768 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8769 (ppc_linux_get_hwcap2): Likewise.
8770 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8771 linux_get_hwcap.
8772 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8773 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8774 (ppc_linux_nat_target::read_description): Likewise.
8775 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8776 * s390-linux-nat.c: Likewise.
8777 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8778
8779 2019-03-24 Tom Tromey <tom@tromey.com>
8780
8781 * ada-lang.c (standard_lookup): Simplify initialization.
8782 (ada_lookup_symbol_nonlocal): Simplify return.
8783 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8784 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8785 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8786 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8787 initialization.
8788 * solib.c (solib_global_lookup): Simplify.
8789 * symtab.c (null_block_symbol): Remove.
8790 (symbol_cache_lookup): Simplify returns.
8791 (lookup_language_this): Simplify returns.
8792 (lookup_symbol_aux): Simplify return.
8793 (lookup_local_symbol): Simplify returns.
8794 (lookup_global_symbol_from_objfile): Simplify return.
8795 (lookup_symbol_in_objfile_symtabs)
8796 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8797 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8798 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8799 * cp-namespace.c (cp_lookup_bare_symbol)
8800 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8801 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8802 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8803 (cp_lookup_symbol_via_imports): Simplify initialization.
8804 (find_symbol_in_baseclass): Likewise.
8805 * symtab.h (null_block_symbol): Remove.
8806 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8807 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8808 (d_lookup_symbol_module): Likewise.
8809 (find_symbol_in_baseclass): Simplify initialization.
8810
8811 2019-03-24 Tom Tromey <tom@tromey.com>
8812
8813 * expression.h: Don't include symtab.h.
8814 (struct block): Forward declare.
8815
8816 2019-03-24 Tom Tromey <tom@tromey.com>
8817
8818 * c-exp.y (typebase): Remove casts.
8819 * gdbtypes.c (lookup_unsigned_typename, )
8820 (lookup_signed_typename): Remove cast.
8821 * eval.c (parse_to_comma_and_eval): Remove cast.
8822 * parse.c (write_dollar_variable): Remove cast.
8823 * block.h (struct block) <superblock>: Now const.
8824 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8825 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8826 (map_block): Make "block" const.
8827 * symfile.h (struct quick_symbol_functions)
8828 <map_matching_symbols>: Constify block argument to "callback".
8829 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8830 const.
8831 (find_pc_sect_compunit_symtab): Make "b" const.
8832 (find_symbol_at_address): Likewise.
8833 (search_symbols): Likewise.
8834 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8835 (dw2_debug_names_lookup_symbol): Likewise.
8836 (dw2_map_matching_symbols): Update.
8837 * p-valprint.c (pascal_val_print): Remove "block".
8838 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8839 (aux_add_nonlocal_symbols): Make "block" const.
8840 (resolve_subexp): Remove cast.
8841 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8842 const.
8843 (iterate_over_file_blocks): Likewise.
8844 * f-exp.y (%union) <bval>: Remove.
8845 * coffread.c (patch_opaque_types): Make "b" const.
8846 * spu-tdep.c (spu_catch_start): Make "block" const.
8847 * c-valprint.c (print_unpacked_pointer): Remove "block".
8848 * symmisc.c (dump_symtab_1): Make "b" const.
8849 (block_depth): Make "block" const.
8850 * d-exp.y (%union) <bval>: Remove.
8851 * cp-support.h (cp_lookup_rtti_type): Update.
8852 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8853 * psymtab.c (psym_lookup_symbol): Make "block" const.
8854 (maintenance_check_psymtabs): Make "b" const.
8855 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8856 (enumerate_locals, enumerate_args): Update.
8857 * python/py-symtab.c (stpy_global_block): Make "block" const.
8858 (stpy_static_block): Likewise.
8859 * inline-frame.c (block_starting_point_at): Make "new_block"
8860 const.
8861 * block.c (find_block_in_blockvector): Make return type const.
8862 (blockvector_for_pc_sect): Make "b" const.
8863 (find_block_in_blockvector): Make "b" const.
8864
8865 2019-03-23 Tom Tromey <tom@tromey.com>
8866
8867 * varobj.c (varobj_create): Update.
8868 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8869 * printcmd.c (display_command, do_one_display): Don't reset
8870 innermost_block.
8871 * parser-defs.h (enum innermost_block_tracker_type): Move to
8872 expression.h.
8873 (innermost_block): Update comment.
8874 * parse.c (parse_exp_1): Add tracker_types parameter.
8875 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8876 tracker_types parameter. Reset innermost_block.
8877 (parse_exp_in_context): Remove.
8878 (parse_expression_for_completion): Update.
8879 * objfiles.c (~objfile): Don't reset expression_context_block or
8880 innermost_block.
8881 * expression.h (enum innermost_block_tracker_type): Move from
8882 parser-defs.h.
8883 (parse_exp_1): Add tracker_types parameter.
8884 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8885 reset innermost_block.
8886
8887 2019-03-23 Tom Tromey <tom@tromey.com>
8888
8889 * objfiles.h: Include bcache.h.
8890
8891 2019-03-23 Tom Tromey <tom@tromey.com>
8892
8893 * linespec.c (get_current_search_block): Use
8894 scoped_restore_current_language.
8895 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8896
8897 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8898 Jiong Wang <jiong.wang@arm.com>
8899
8900 * aarch64-linux-tdep.c
8901 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8902 section.
8903 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8904
8905 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8906 Jiong Wang <jiong.wang@arm.com>
8907
8908 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8909 instructions.
8910 (aarch64_analyze_prologue_test): Add PACIASP test.
8911 (aarch64_prologue_prev_register): Unmask PC value.
8912
8913 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8914 Jiong Wang <jiong.wang@arm.com>
8915
8916 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8917 (aarch64_dwarf2_prev_register): Unmask PC value.
8918 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8919 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8920 DW_CFA_AARCH64_negate_ra_state.
8921 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8922
8923 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8924 Jiong Wang <jiong.wang@arm.com>
8925
8926 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8927 registers.
8928 (aarch64_pseudo_register_name): Likewise.
8929 (aarch64_pseudo_register_type): Likewise.
8930 (aarch64_pseudo_register_reggroup_p): Likewise.
8931 (aarch64_gdbarch_init): Add pauth registers.
8932 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8933 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8934 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8935 (struct gdbarch_tdep): Add regnum for ra_state.
8936
8937 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8938 Jiong Wang <jiong.wang@arm.com>
8939
8940 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8941
8942 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8943 Jiong Wang <jiong.wang@arm.com>
8944
8945 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8946 function.
8947 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8948 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8949 (aarch64_gdbarch_init): Add puth registers.
8950 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8951 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8952 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8953
8954 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8955 Jiong Wang <jiong.wang@arm.com>
8956
8957 * aarch64-linux-nat.c
8958 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8959 * aarch64-linux-tdep.c
8960 (aarch64_linux_core_read_description): Likewise.
8961 (aarch64_linux_get_hwcap): New function.
8962 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8963 (aarch64_linux_get_hwcap): New declaration.
8964
8965 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8966 Jiong Wang <jiong.wang@arm.com>
8967
8968 * aarch64-linux-nat.c
8969 (aarch64_linux_nat_target::read_description): Add pauth param.
8970 * aarch64-linux-tdep.c
8971 (aarch64_linux_core_read_description): Likewise.
8972 * aarch64-tdep.c (struct target_desc): Add in pauth.
8973 (aarch64_read_description): Add pauth param.
8974 (aarch64_gdbarch_init): Likewise.
8975 * aarch64-tdep.h (aarch64_read_description): Likewise.
8976 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8977 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8978 * features/Makefile: Add new files.
8979 * features/aarch64-pauth.c: New file.
8980 * features/aarch64-pauth.xml: New file.
8981
8982 2019-03-20 Tom Tromey <tromey@adacore.com>
8983
8984 * infrun.c (handle_inferior_event): Rename from
8985 handle_inferior_event_1. Create a scoped_value_mark.
8986 (handle_inferior_event): Remove.
8987
8988 2019-03-19 Tom Tromey <tromey@adacore.com>
8989
8990 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8991 * infrun.h (print_stop_event): Add "displays" parameter.
8992 * infrun.c (print_stop_event): Add "displays" parameter.
8993
8994 2019-03-19 Pedro Alves <palves@redhat.com>
8995
8996 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8997 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8998 to -1. Fix TABs vs spaces.
8999 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9000 * tui/tui-out.h (tui_ui_out) Add intro comments.
9001 <m_line, m_start_of_line>: In-class initialize, and add describing
9002 comment.
9003
9004 2019-03-18 Alan Hayward <alan.hayward@arm.com>
9005
9006 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9007 variable names.
9008 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9009
9010 2019-03-18 Pedro Alves <palves@redhat.com>
9011 Eli Zaretskii <eliz@gnu.org>
9012
9013 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9014 m_line and m_start_of_line.
9015
9016 2019-03-18 Eli Zaretskii <eliz@gnu.org>
9017
9018 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9019 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9020 it returns a newline. This fixes a regression in TU mode, whereby
9021 the next line is output on the same screen line as the user input.
9022
9023 2019-03-18 Tom Tromey <tromey@adacore.com>
9024
9025 * minsyms.c (minimal_symbol_reader::install): Remove call to
9026 obstack_blank.
9027
9028 2019-03-18 Pedro Alves <palves@redhat.com>
9029
9030 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9031 New globals.
9032 (apply_style): New, factored out from ...
9033 (apply_ansi_escape): ... this. Handle reverse video mode.
9034 (tui_set_reverse_mode): New function.
9035 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9036 * tui/tui-winsource.c (tui_show_source_line): Use
9037 tui_set_reverse_mode instead of setting A_STANDOUT.
9038 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9039 New setter methods.
9040
9041 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
9042
9043 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9044 Handle tabs.
9045
9046 2019-03-18 Tom Tromey <tromey@adacore.com>
9047
9048 * ada-lang.c (empty_array): Add "high" parameter.
9049 (ada_evaluate_subexp): Update.
9050
9051 2019-03-17 Sergei Trofimovich <siarheit@google.com>
9052
9053 * unittests/string_view-selftests.c: Define
9054 _initialize_string_view_selftests unconditionally.
9055
9056 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9057
9058 PR gdb/24350
9059 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9060
9061 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9062
9063 PR gdb/24351
9064 * windows-nat.c (display_selector): Fix format specifiers.
9065
9066 2019-03-17 Eli Zaretskii <eliz@gnu.org>
9067
9068 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9069 tui_refill_source_window instead of tui_refresh_win, to update the
9070 current execution line. This fixes redisplay of the current line
9071 when stepping through the code with "next" or "step".
9072
9073 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9074
9075 * source-cache.c (source_cache::get_source_lines): Call
9076 find_source_lines to initialize s->nlines. This fixes vertical
9077 scrolling of TUI source window when the DOWN arrow is pressed.
9078
9079 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9080
9081 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9082 linux-thread-db.c (_initialize_thread_db): Likewise.
9083
9084 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9085
9086 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9087 wclrtoeol in tui_show_source_line". This reverts changes made in
9088 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9089
9090 2019-03-15 Tom Tromey <tom@tromey.com>
9091
9092 * symtab.h (struct minimal_symbol): Derive from
9093 general_symbol_info.
9094 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9095 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9096 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9097 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9098 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9099 (MSYMBOL_SEARCH_NAME): Update.
9100 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9101 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9102 * minsyms.c (minimal_symbol_reader::record_full): Update.
9103
9104 2019-03-15 Tom Tromey <tom@tromey.com>
9105
9106 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9107
9108 2019-03-15 Tom Tromey <tom@tromey.com>
9109
9110 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9111 unique_xmalloc_ptr.
9112 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9113 Update.
9114 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9115 (build_minimal_symbol_hash_tables)
9116 (minimal_symbol_reader::install): Update.
9117
9118 2019-03-15 Tom Tromey <tom@tromey.com>
9119
9120 * symtab.c (create_demangled_names_hash): Update.
9121 (symbol_set_names): Update.
9122 * objfiles.h (struct objfile_per_bfd_storage)
9123 <demangled_names_hash>: Now an htab_up.
9124 * objfiles.c (objfile_per_bfd_storage): Simplify.
9125
9126 2019-03-15 Tom Tromey <tom@tromey.com>
9127
9128 * objfiles.h (struct objfile_per_bfd_storage): Declare
9129 destructor.
9130 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9131 New.
9132 (get_objfile_bfd_data): Use new. Don't initialize
9133 language_of_main.
9134 (free_objfile_per_bfd_storage): Remove.
9135 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9136
9137 2019-03-15 Tom Tromey <tom@tromey.com>
9138
9139 * symfile.c (reread_symbols): Update.
9140 * objfiles.c (objfile::objfile): Update.
9141 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9142 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9143 comment.
9144 (minimal_symbol_reader::install): Update.
9145 (terminate_minimal_symbol_table): Remove.
9146 * jit.c (jit_object_close_impl): Update.
9147
9148 2019-03-15 Tom Tromey <tom@tromey.com>
9149
9150 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9151 initializations.
9152
9153 2019-03-15 Tom Tromey <tom@tromey.com>
9154
9155 * objfiles.h (struct objfile_per_bfd_storage)
9156 <demangled_hash_languages>: Now a bitset.
9157 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9158 (lookup_minimal_symbol): Update.
9159
9160 2019-03-15 Tom Tromey <tom@tromey.com>
9161
9162 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9163 Don't return the symbol.
9164 * coffread.c (record_minimal_symbol): Use record_full.
9165
9166 2019-03-14 Eli Zaretskii <eliz@gnu.org>
9167
9168 The MS-Windows port of ncurses fails to switch to a color pair if
9169 one or both of the colors are the implicit default colors. This
9170 change records the default colors when TUI is initialized, and
9171 then specifies them explicitly when a color pair uses the default
9172 colors. This allows color styling in TUI mode on MS-Windows.
9173
9174 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9175 ncurses_norm_attr.
9176 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9177 colors in ncurses_norm_attr.
9178 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9179 "none", replace it with the default color recorded in
9180 ncurses_norm_attr.
9181
9182 2019-03-14 Tom Tromey <tromey@adacore.com>
9183
9184 * source-cache.h (class source_cache) <get_source_lines>: Return
9185 std::string.
9186 * source-cache.c (source_cache::extract_lines): Handle case where
9187 first_pos==npos. Return std::string.
9188 (source_cache::get_source_lines): Update.
9189
9190 2019-03-14 Tom Tromey <tromey@adacore.com>
9191
9192 * NEWS: Add item for "style sources" commands.
9193 * source-cache.c (source_cache::get_source_lines): Check
9194 source_styling.
9195 * cli/cli-style.c (source_styling): New global.
9196 (_initialize_cli_style): Add "style sources" commands.
9197 (show_style_sources): New function.
9198 * cli/cli-style.h (source_styling): Declare.
9199
9200 2019-03-14 Pedro Alves <palves@redhat.com>
9201 Tom Tromey <tromey@adacore.com>
9202
9203 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9204 * tui/tui-winsource.c (tui_refill_source_window): New function,
9205 from...
9206 (tui_horizontal_source_scroll): ... here. Move some logic.
9207 * cli/cli-style.c (set_style_enabled): Notify new observable.
9208 * tui/tui-hooks.c (tui_redisplay_source): New function.
9209 (tui_attach_detach_observers): Attach or detach
9210 tui_redisplay_source.
9211 * observable.h (source_styling_changed): New observable.
9212 * observable.c: Define source_styling_changed observable.
9213
9214 2019-03-13 Tom Tromey <tromey@adacore.com>
9215
9216 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9217 (i386_gnu_nat_target::store_registers): Update.
9218 * target-debug.h (target_debug_print_std_string): New macro.
9219 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9220 * windows-tdep.c (display_one_tib): Update.
9221 * tui/tui-stack.c (tui_make_status_line): Update.
9222 * top.c (print_inferior_quit_action): Update.
9223 * thread.c (thr_try_catch_cmd): Update.
9224 (add_thread_with_info): Update.
9225 (thread_target_id_str): Update.
9226 (thr_try_catch_cmd): Update.
9227 (thread_command): Update.
9228 (thread_find_command): Update.
9229 * record-btrace.c (record_btrace_target::info_record)
9230 (record_btrace_resume_thread, record_btrace_target::resume)
9231 (record_btrace_cancel_resume, record_btrace_step_thread)
9232 (record_btrace_target::wait, record_btrace_target::wait)
9233 (record_btrace_target::wait, record_btrace_target::stop): Update.
9234 * progspace.c (print_program_space): Update.
9235 * process-stratum-target.c
9236 (process_stratum_target::thread_address_space): Update.
9237 * linux-fork.c (linux_fork_mourn_inferior)
9238 (detach_checkpoint_command, info_checkpoints_command)
9239 (linux_fork_context): Update.
9240 (linux_fork_detach): Update.
9241 (class scoped_switch_fork_info): Update.
9242 (delete_checkpoint_command): Update.
9243 * infrun.c (follow_fork_inferior): Update.
9244 (follow_fork_inferior): Update.
9245 (proceed_after_vfork_done): Update.
9246 (handle_vfork_child_exec_or_exit): Update.
9247 (follow_exec): Update.
9248 (displaced_step_prepare_throw): Update.
9249 (displaced_step_restore): Update.
9250 (start_step_over): Update.
9251 (resume_1): Update.
9252 (clear_proceed_status_thread): Update.
9253 (proceed): Update.
9254 (print_target_wait_results): Update.
9255 (do_target_wait): Update.
9256 (context_switch): Update.
9257 (stop_all_threads): Update.
9258 (restart_threads): Update.
9259 (finish_step_over): Update.
9260 (handle_signal_stop): Update.
9261 (switch_back_to_stepped_thread): Update.
9262 (keep_going_pass_signal): Update.
9263 (print_exited_reason): Update.
9264 (normal_stop): Update.
9265 * inferior.c (inferior_pid_to_str): Change return type.
9266 (print_selected_inferior): Update.
9267 (add_inferior): Update.
9268 (detach_inferior): Update.
9269 * dummy-frame.c (fprint_dummy_frames): Update.
9270 * dcache.c (dcache_info_1): Update.
9271 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9272 (btrace_fetch, btrace_clear): Update.
9273 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9274 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9275 type.
9276 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9277 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9278 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9279 * gdbarch.c, gdbarch.h: Rebuild.
9280 * gdbarch.sh (core_pid_to_str): Change return type.
9281 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9282 return type.
9283 (windows_nat_target::pid_to_str): Change return type.
9284 (windows_delete_thread): Update.
9285 (windows_nat_target::attach): Update.
9286 (windows_nat_target::files_info): Update.
9287 * target-delegates.c: Rebuild.
9288 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9289 return type.
9290 (sol_thread_target::pid_to_str): Change return type.
9291 * remote.c (class remote_target) <pid_to_str>: Change return
9292 type.
9293 (remote_target::pid_to_str): Change return type.
9294 (extended_remote_target::attach, remote_target::remote_stop_ns)
9295 (remote_target::remote_notif_remove_queued_reply)
9296 (remote_target::push_stop_reply, remote_target::disable_btrace):
9297 Update.
9298 (extended_remote_target::attach): Update.
9299 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9300 type.
9301 (gdbsim_target::pid_to_str): Change return type.
9302 * ravenscar-thread.c (struct ravenscar_thread_target)
9303 <pid_to_str>: Change return type.
9304 (ravenscar_thread_target::pid_to_str): Change return type.
9305 * procfs.c (class procfs_target) <pid_to_str>: Change return
9306 type.
9307 (procfs_target::pid_to_str): Change return type.
9308 (procfs_target::attach): Update.
9309 (procfs_target::detach): Update.
9310 (procfs_target::fetch_registers): Update.
9311 (procfs_target::store_registers): Update.
9312 (procfs_target::wait): Update.
9313 (procfs_target::files_info): Update.
9314 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9315 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9316 return type.
9317 (nto_procfs_target::pid_to_str): Change return type.
9318 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9319 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9320 return type.
9321 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9322 (exit_lwp): Update.
9323 (attach_proc_task_lwp_callback, get_detach_signal)
9324 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9325 (linux_nat_target::resume, wait_lwp, stop_callback)
9326 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9327 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9328 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9329 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9330 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9331 type.
9332 (inf_ptrace_target::attach): Update.
9333 (inf_ptrace_target::files_info): Update.
9334 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9335 type.
9336 (go32_nat_target::pid_to_str): Change return type.
9337 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9338 (gnu_nat_target::wait): Update.
9339 (gnu_nat_target::wait): Update.
9340 (gnu_nat_target::resume): Update.
9341 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9342 (fbsd_nat_target::wait): Update.
9343 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9344 type.
9345 (darwin_nat_target::attach): Update.
9346 * corelow.c (class core_target) <pid_to_str>: Change return type.
9347 (core_target::pid_to_str): Change return type.
9348 * target.c (normal_pid_to_str): Change return type.
9349 (default_pid_to_str): Likewise.
9350 (target_pid_to_str): Change return type.
9351 (target_translate_tls_address): Update.
9352 (target_announce_detach): Update.
9353 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9354 return type.
9355 (bsd_uthread_target::pid_to_str): Change return type.
9356 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9357 type.
9358 (bsd_kvm_target::pid_to_str): Change return type.
9359 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9360 return type.
9361 (aix_thread_target::pid_to_str): Change return type.
9362 * target.h (struct target_ops) <pid_to_str>: Change return type.
9363 (target_pid_to_str, normal_pid_to_str): Likewise.
9364 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9365 type.
9366 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9367 type.
9368 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9369 return type.
9370 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9371 type.
9372 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9373 type.
9374 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9375 return type.
9376
9377 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9378
9379 * NEWS: Mention that the new default MI version is 3. Mention
9380 changes to the output of commands and events that deal with
9381 multi-location breakpoints.
9382 * breakpoint.c: Include "mi/mi-out.h".
9383 (print_one_breakpoint): Change output syntax if using MI version
9384 >= 3.
9385 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9386 New.
9387 (mi_multi_location_breakpoint_output_fixed): New.
9388 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9389 (mi_cmd_fix_multi_location_breakpoint_output): New.
9390 (mi_multi_location_breakpoint_output_fixed): New.
9391 * mi/mi-cmds.c (mi_cmds): Register command
9392 -fix-multi-location-breakpoint-output.
9393 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9394 interpreter "mi".
9395
9396 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9397
9398 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9399 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9400 instantiate mi_ui_out based on interpreter name.
9401 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9402 * mi/mi-main.c (mi_load_progress): Likewise.
9403
9404 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9405
9406 * NEWS: Combine separate "New targets" sections for 8.3.
9407
9408 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9409
9410 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9411 (ppcfbsd_init_abi): Install gdbarch
9412 "fetch_tls_load_module_address" and "get_thread_local_address"
9413 methods.
9414
9415 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9416
9417 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9418 (riscv_fbsd_init_abi): Install gdbarch
9419 "fetch_tls_load_module_address" and "get_thread_local_address"
9420 methods.
9421
9422 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9423
9424 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9425 (i386fbsd_init_abi): Install gdbarch
9426 "fetch_tls_load_module_address" and "get_thread_local_address"
9427 methods.
9428
9429 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9430
9431 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9432 (amd64fbsd_init_abi): Install gdbarch
9433 "fetch_tls_load_module_address" and "get_thread_local_address"
9434 methods.
9435
9436 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9437
9438 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9439 (struct fbsd_pspace_data): New type.
9440 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9441 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9442 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9443 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9444 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9445
9446 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9447
9448 * gdbtypes.c (lookup_struct_elt): New function.
9449 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9450 * gdbtypes.h (struct struct_elt): New type.
9451 (lookup_struct_elt): New prototype.
9452
9453 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9454
9455 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9456 remove disabled code block.
9457
9458 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9459
9460 * gdbarch.sh (get_thread_local_address): New method.
9461 * gdbarch.h, gdbarch.c: Regenerate.
9462 * target.c (target_translate_tls_address): Use
9463 gdbarch_get_thread_local_address if present instead of
9464 target::get_thread_local_address.
9465
9466 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9467
9468 * target.h (target::get_thread_local_address): Update comment.
9469
9470 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9471
9472 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9473 objfile->separate_debug_objfile_backlink if not NULL.
9474
9475 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9476
9477 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9478 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9479 (amd64bsd_store_inferior_registers): Likewise.
9480 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9481 Enable segment base registers.
9482 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9483 PT_GETFSBASE and PT_GETGSBASE.
9484 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9485 PT_SETGSBASE.
9486 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9487 segment base registers.
9488 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9489
9490 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9491
9492 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9493 Update calls to i386_target_description to add 'segments'
9494 parameter.
9495 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9496 add segment base registers.
9497 * arch/i386.c (i386_create_target_description): Add 'segments'
9498 parameter to enable segment base registers.
9499 * arch/i386.h (i386_create_target_description): Likewise.
9500 * features/i386/32bit-segments.xml: New file.
9501 * features/i386/32bit-segments.c: Generate.
9502 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9503 call to i386_target_description to add 'segments' parameter.
9504 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9505 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9506 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9507 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9508 if feature is present.
9509 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9510 Add 'segments' parameter to call to i386_target_description.
9511 (i386_target_description): Add 'segments' parameter to enable
9512 segment base registers.
9513 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9514 to call to i386_target_description.
9515 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9516 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9517 Define I386_NUM_REGS.
9518 (i386_target_description): Add 'segments' parameter to enable
9519 segment base registers.
9520
9521 2019-03-12 Eli Zaretskii <eliz@gnu.org>
9522
9523 PR/24325
9524 * source-cache.c: #undef open and close, to avoid unresolved
9525 externals during linking.
9526
9527 2019-03-12 Tom Tromey <tromey@adacore.com>
9528
9529 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9530 const. Add initializers.
9531 (_initialize_remote): Don't initialize ptid globals.
9532
9533 2019-03-12 Pedro Alves <palves@redhat.com>
9534
9535 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9536
9537 2019-03-12 Pedro Alves <palves@redhat.com>
9538
9539 * cp-name-parser.y (main): Remove unused 'len' variable.
9540
9541 2019-03-12 Tom Tromey <tromey@adacore.com>
9542
9543 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9544 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9545
9546 2019-03-12 Tom Tromey <tromey@adacore.com>
9547
9548 * linux-nat.c (iterate_over_lwps): Update.
9549 (stop_callback): Remove parameter.
9550 (stop_wait_callback, detach_callback, resume_set_callback)
9551 (select_singlestep_lwp_callback, set_ignore_sigint)
9552 (status_callback, resumed_callback, resume_clear_callback)
9553 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9554 data parameter.
9555 (linux_nat_target::detach, linux_nat_target::resume)
9556 (linux_stop_and_wait_all_lwps, select_event_lwp)
9557 (linux_nat_filter_event, linux_nat_wait_1)
9558 (linux_nat_target::kill, linux_nat_target::stop)
9559 (linux_nat_target::stop): Update.
9560 (linux_nat_resume_callback): Change type.
9561 (resume_stopped_resumed_lwps, count_events_callback)
9562 (select_event_lwp_callback): Likewise.
9563 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9564 * arm-linux-nat.c (struct update_registers_data): Remove.
9565 (update_registers_callback): Change type.
9566 (arm_linux_insert_hw_breakpoint1): Update.
9567 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9568 parameter.
9569 (x86_linux_dr_set_addr): Update.
9570 (x86_linux_dr_set_control): Update.
9571 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9572 (iterate_over_lwps): Use gdb::function_view.
9573 * nat/aarch64-linux-hw-point.c (struct
9574 aarch64_dr_update_callback_param): Remove.
9575 (debug_reg_change_callback): Change type.
9576 (aarch64_notify_debug_reg_change): Update.
9577 * s390-linux-nat.c (s390_refresh_per_info): Update.
9578
9579 2019-03-11 Tom Tromey <tromey@adacore.com>
9580
9581 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9582 redundant assignment to "this_cu".
9583
9584 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9585
9586 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9587
9588 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9589
9590 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9591 from...
9592 (rank_one_type): ... this.
9593
9594 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9595
9596 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9597 from...
9598 (rank_one_type): ... this.
9599
9600 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9601
9602 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9603 from...
9604 (rank_one_type): ... this.
9605
9606 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9607
9608 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9609 from...
9610 (rank_one_type): ... this.
9611
9612 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9613
9614 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9615 from...
9616 (rank_one_type): ... this.
9617
9618 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9619
9620 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9621 from...
9622 (rank_one_type): ... this.
9623
9624 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9625
9626 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9627 from...
9628 (rank_one_type): ... this.
9629
9630 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9631
9632 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9633 from...
9634 (rank_one_type): ... this.
9635
9636 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9637
9638 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9639 from...
9640 (rank_one_type): ... this.
9641
9642 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9643
9644 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9645 from...
9646 (rank_one_type): ... this.
9647
9648 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9649
9650 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9651 from...
9652 (rank_one_type): ... this.
9653
9654 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9655
9656 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9657 from...
9658 (rank_one_type): ... this.
9659
9660 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9661
9662 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9663 inferior-events' shows the example events.
9664
9665 2019-03-08 Eli Zaretskii <eliz@gnu.org>
9666
9667 Support styling on native MS-Windows console
9668
9669 PR/24315
9670 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9671 on MS-Windows if $TERM is not defined.
9672
9673 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9674
9675 * posix-hdep.c (gdb_console_fputs):
9676 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9677 functions.
9678 * ui-file.h (gdb_console_fputs): Add prototype.
9679
9680 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9681 back to fputs only if the former returns zero.
9682
9683 2019-03-07 Tom Tromey <tom@tromey.com>
9684
9685 * symmisc.c (print_symbol_bcache_statistics): Update.
9686 (print_objfile_statistics): Update.
9687 * symfile.c (allocate_symtab): Update.
9688 * stabsread.c: Don't include bcache.h.
9689 * psymtab.h (struct psymbol_bcache): Don't declare.
9690 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9691 (psymbol_bcache_init, psymbol_bcache_free)
9692 (psymbol_bcache_get_bcache): Don't declare.
9693 * psymtab.c (struct psymbol_bcache): Remove.
9694 (psymtab_storage::psymtab_storage): Update.
9695 (psymtab_storage::~psymtab_storage): Update.
9696 (psymbol_bcache_init, psymbol_bcache_free)
9697 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9698 (add_psymbol_to_bcache): Update.
9699 (allocate_psymtab): Update.
9700 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9701 macro_cache>: No longer pointers.
9702 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9703 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9704 * macrotab.c (macro_bcache): Update.
9705 * macroexp.c: Don't include bcache.h.
9706 * gdbtypes.c (check_types_worklist): Update.
9707 (types_deeply_equal): Remove TRY/CATCH. Update.
9708 * elfread.c (elf_symtab_read): Update.
9709 * dwarf2read.c: Don't include bcache.h.
9710 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9711 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9712 (print_bcache_statistics, bcache_memory_used): Don't declare.
9713 (struct bcache): Move from bcache.c. Add constructor, destructor,
9714 methods. Rename all data members.
9715 * bcache.c (struct bcache): Move to bcache.h.
9716 (bcache::expand_hash_table): Rename from expand_hash_table.
9717 (bcache): Remove.
9718 (bcache::insert): Rename from bcache_full.
9719 (bcache::compare): Rename from bcache_compare.
9720 (bcache_xmalloc): Remove.
9721 (bcache::~bcache): Rename from bcache_xfree.
9722 (bcache::print_statistics): Rename from print_bcache_statistics.
9723 (bcache::memory_used): Rename from bcache_memory_used.
9724
9725 2019-03-07 Pedro Alves <palves@redhat.com>
9726
9727 * infrun.c (normal_stop): Also check for
9728 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9729
9730 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9731
9732 * f-lang.c (value_from_host_double): Moved to...
9733 * value.c (value_from_host_double): ...here.
9734 * value.h (value_from_host_double): Declare.
9735 * guile/scm-math.c (vlscm_convert_typed_number): Use
9736 value_from_host_double.
9737 (vlscm_convert_number): Likewise.
9738 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9739 * python/py-value.c (convert_value_from_python): Likewise.
9740
9741 2019-03-06 Tom Tromey <tom@tromey.com>
9742
9743 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9744
9745 2019-03-06 Tom Tromey <tom@tromey.com>
9746
9747 * utils.h (free_current_contents): Don't declare.
9748 * utils.c (free_current_contents): Remove.
9749
9750 2019-03-06 Tom Tromey <tom@tromey.com>
9751
9752 * top.c (quit_force): Update.
9753 * main.c (captured_command_loop): Update.
9754 * common/new-op.c (operator new): Update.
9755 * common/common-exceptions.c (struct catcher)
9756 <save_cleanup_chain>: Remove member.
9757 (exceptions_state_mc_init): Update.
9758 (exception_try_scope_entry): Return nullptr.
9759 (exception_try_scope_exit, exception_rethrow)
9760 (throw_exception_sjlj, throw_exception_cxx): Update.
9761 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9762 (all_cleanups, do_cleanups, discard_cleanups)
9763 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9764 (restore_cleanups, restore_final_cleanups): Don't declare.
9765 (do_final_cleanups): Remove parameter.
9766 * common/cleanups.c (cleanup_chain, make_cleanup)
9767 (make_cleanup_dtor, all_cleanups, do_cleanups)
9768 (discard_my_cleanups, discard_cleanups)
9769 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9770 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9771 (null_cleanup): Remove.
9772 (do_final_cleanups): Remove parameter.
9773
9774 2019-03-06 Tom Tromey <tom@tromey.com>
9775
9776 * remote.c (remote_target::remote_parse_stop_reply): Use
9777 unique_xmalloc_ptr.
9778
9779 2019-03-06 Tom Tromey <tom@tromey.com>
9780
9781 * stabsread.c (struct stabs_field_info): Rename from field_info.
9782 <list, fnlist>: Add initializers.
9783 <obstack>: New member.
9784 (read_member_functions, read_struct_fields, read_baseclasses):
9785 Allocate on obstack. Don't use cleanups.
9786 (read_one_struct_field, read_member_functions, read_struct_fields)
9787 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9788 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9789 (read_struct_type): Update.
9790
9791 2019-03-06 Tom Tromey <tom@tromey.com>
9792
9793 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9794 * common/filestuff.h (make_cleanup_close): Don't declare.
9795 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9796 Remove.
9797
9798 2019-03-06 Tom Tromey <tom@tromey.com>
9799
9800 * solib-aix.c: Use make_scope_exit.
9801
9802 2019-03-06 Tom Tromey <tom@tromey.com>
9803
9804 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9805 Use make_scope_exit.
9806
9807 2019-03-06 Tom Tromey <tom@tromey.com>
9808
9809 * solib-svr4.c (disable_probes_interface): Remove parameter.
9810 (svr4_handle_solib_event): Use make_scope_exit.
9811
9812 2019-03-06 Tom Tromey <tom@tromey.com>
9813
9814 * remote.c (struct stop_reply_deleter): Remove.
9815 (stop_reply_up): Update.
9816 (struct stop_reply): Derive from notif_event. Don't typedef.
9817 <regcache>: Now a std::vector.
9818 (stop_reply_xfree): Remove.
9819 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9820 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9821 (remote_target::discard_pending_stop_replies): Use delete.
9822 (remote_target::remote_parse_stop_reply): Update.
9823 (remote_target::process_stop_reply): Update.
9824 * remote-notif.h (struct notif_event): Add virtual destructor.
9825 Remove "dtr" member.
9826 (struct notif_client) <alloc_event>: Return a unique_ptr.
9827 (notif_event_xfree): Don't declare.
9828 (notif_event_up): New typedef.
9829 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9830 (notif_event_xfree, do_notif_event_xfree): Remove.
9831 (remote_notif_state_xfree): Update.
9832
9833 2019-03-06 Tom Tromey <tom@tromey.com>
9834
9835 * infrun.c (displaced_step_clear_cleanup): Now a
9836 forward_scope_exit type.
9837 (displaced_step_prepare_throw): Update.
9838 (displaced_step_fixup): Update.
9839
9840 2019-03-06 Tom Tromey <tom@tromey.com>
9841
9842 * inferior.h (class inferior): Update comment.
9843 * gdbthread.h (class thread_info): Update comment.
9844
9845 2019-03-06 Joel Brobecker <brobecker@adacore.com>
9846 Tom Tromey <tom@tromey.com>
9847
9848 * stabsread.h (struct stab_section_list): Remove.
9849 (coffstab_build_psymtabs): Update.
9850 * dbxread.c (symbuf_sections): Now a std::vector.
9851 (sect_idx): New global.
9852 (fill_symbuf): Update.
9853 (coffstab_build_psymtabs): Change type of stabsects parameter.
9854 Update.
9855 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9856 std::vector.
9857 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9858 (coff_locate_sections): Update.
9859 (coff_symfile_read): Remove cleanups. Update.
9860 (init_stringtab): Add storage parameter.
9861 (free_stringtab, free_stringtab_cleanup): Remove.
9862 (init_lineno): Add storage parameter.
9863 (free_linetab, free_linetab_cleanup): Remove.
9864
9865 2019-03-06 Pedro Alves <palves@redhat.com>
9866
9867 * linux-fork.c (fork_info::clobber_regs): Delete.
9868 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9869 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9870 comment. Adjust.
9871 (scoped_switch_fork_info::scoped_switch_fork_info)
9872 (checkpoint_command, linux_fork_context): Adjust
9873 fork_save_infrun_state calls.
9874
9875 2019-03-06 Pedro Alves <palves@redhat.com>
9876
9877 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9878 (inf_has_multiple_threads): Return 'bool' and rewrite using
9879 inferior_info::threads().
9880
9881 2019-03-06 Pedro Alves <palves@redhat.com>
9882
9883 * linux-fork.c: Include <list>.
9884 (fork_list): Now a std::list instance.
9885 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9886 (forks_exist_p, find_last_fork): Adjust.
9887 (new_fork): Delete.
9888 (one_fork_p): New.
9889 (add_fork): Adjust.
9890 (free_fork): Delete, folded into fork_info::~fork_info().
9891 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9892 Adjust.
9893 (init_fork_list): Delete.
9894 (linux_fork_killall, linux_fork_mourn_inferior)
9895 (linux_fork_detach, info_checkpoints_command): Adjust.
9896 (_initialize_linux_fork): No longer call init_fork_list.
9897
9898 2019-03-06 Pedro Alves <palves@redhat.com>
9899
9900 * linux-fork.c (new_fork): New, split out of ...
9901 (add_fork): ... this. Return void. Move "first fork" special
9902 case from here, to ...
9903 (checkpoint_command): ... here.
9904 * linux-linux.h (add_fork): Return void.
9905
9906 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9907
9908 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9909
9910 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9911 Chris January <chris.january@arm.com>
9912 David Lecomber <david.lecomber@arm.com>
9913
9914 * f-exp.y: New token, UNOP_INTRINSIC.
9915 (exp): New pattern using UNOP_INTRINSIC token.
9916 (f77_keywords): Add 'abs' keyword.
9917 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9918 (value_from_host_double): New function.
9919 (evaluate_subexp_f): Support UNOP_ABS.
9920
9921 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9922
9923 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9924 types.
9925
9926 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9927
9928 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9929 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9930 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9931
9932 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9933
9934 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9935
9936 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9937 Chris January <chris.january@arm.com>
9938
9939 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9940 * f-exp.y: Define 'KIND' token.
9941 (exp): New pattern for KIND expressions.
9942 (ptype): Handle types with a kind extension.
9943 (direct_abs_decl): Extend to spot kind extensions.
9944 (f77_keywords): Add 'kind' to the list.
9945 (push_kind_type): New function.
9946 (convert_to_kind_type): New function.
9947 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9948 * parse.c (operator_length_standard): Likewise.
9949 * parser-defs.h (enum type_pieces): Add tp_kind.
9950 * std-operator.def: Add UNOP_KIND.
9951
9952 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9953
9954 * f-exp.y (f_parse): Set yydebug.
9955
9956 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9957
9958 * f-lang.c (evaluate_subexp_f): New function.
9959 (exp_descriptor_f): New global.
9960 (f_language_defn): Use exp_descriptor_f instead of
9961 exp_descriptor_standard.
9962
9963 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9964
9965 * f-exp.y (struct token): Add comments.
9966 (dot_ops): Remove uppercase versions and the end marker.
9967 (f77_keywords): Likewise.
9968 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9969 entries in the dot_ops array are case insensitive, and use
9970 strncasecmp to compare strings. Also some whitespace cleanup in
9971 this area. Similar for the f77_keywords array, except entries in
9972 this list might be case sensitive.
9973
9974 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9975
9976 * f-exp.y (struct f77_boolean_val): Add comments.
9977 (boolean_values): Remove uppercase versions, and end marker.
9978 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9979 and use strncasecmp to achieve case insensitivity. Additionally,
9980 perform whitespace cleanup around this code.
9981
9982 2019-03-06 Tom Tromey <tromey@adacore.com>
9983
9984 * remote-sim.c (gdbsim_target_open): Use result of
9985 gdb_argv::release.
9986
9987 2019-03-06 Richard Bunt <richard.bunt@arm.com>
9988 Dirk Schubert <dirk.schubert@arm.com>
9989 Chris January <chris.january@arm.com>
9990
9991 * eval.c (evaluate_subexp_standard): Call Fortran argument
9992 wrapping logic.
9993 * f-lang.c (struct value): A value which can be passed into a
9994 Fortran function call.
9995 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9996 where appropriate.
9997 (struct type): Value ready for a Fortran function call.
9998 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9999 is needed.
10000 * f-lang.h (fortran_argument_convert): Declaration.
10001 (fortran_preserve_arg_pointer): Declaration.
10002 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10003
10004 2019-03-05 Tom Tromey <tromey@adacore.com>
10005
10006 * python/py-prettyprint.c (print_string_repr): Remove #if.
10007 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10008
10009 2019-03-05 Tom Tromey <tromey@adacore.com>
10010
10011 * target.c (the_dummy_target): Move later. Change type to
10012 "dummy_target".
10013 (initialize_targets): Don't initialize the_dummy_target.
10014
10015 2019-03-05 Tom Tromey <tromey@adacore.com>
10016
10017 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10018 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10019
10020 2019-03-05 Tom Tromey <tromey@adacore.com>
10021
10022 * windows-nat.c (windows_nat_target::attach)
10023 (windows_nat_target::detach): Don't call gdb_flush.
10024 * valprint.c (generic_val_print, val_print, val_print_string):
10025 Don't call gdb_flush.
10026 * utils.c (defaulted_query): Don't call gdb_flush.
10027 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10028 * target.c (target_announce_detach): Don't call gdb_flush.
10029 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10030 * remote.c (extended_remote_target::attach): Don't call
10031 gdb_flush.
10032 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10033 * printcmd.c (do_examine): Don't call gdb_flush.
10034 (info_display_command): Don't call gdb_flush.
10035 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10036 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10037 * memattr.c (info_mem_command): Don't call gdb_flush.
10038 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10039 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10040 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10041 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10042 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10043 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10044 (gnu_nat_target::detach): Don't call gdb_flush.
10045 * f-valprint.c (f_val_print): Don't call gdb_flush.
10046 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10047 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10048 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10049 gdb_flush.
10050 * c-valprint.c (c_val_print): Don't call gdb_flush.
10051 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10052
10053 2019-03-05 Tom Tromey <tromey@adacore.com>
10054
10055 * varobj.c (update_dynamic_varobj_children): Update.
10056 (install_default_visualizer): Use reset, not release.
10057 * value.c (set_internalvar): Update.
10058 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10059 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10060 ATTRIBUTE_UNUSED_RESULT.
10061
10062 2019-03-05 Tom Tromey <tromey@adacore.com>
10063
10064 * remote.c (class scoped_remote_fd) <release>: Add
10065 ATTRIBUTE_UNUSED_RESULT.
10066
10067 2019-03-05 Tom Tromey <tromey@adacore.com>
10068
10069 * macroexp.c (struct macro_buffer) <release>: Add
10070 ATTRIBUTE_UNUSED_RESULT.
10071
10072 2019-03-05 Tom Tromey <tromey@adacore.com>
10073
10074 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10075 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10076 ATTRIBUTE_UNUSED_RESULT.
10077
10078 2019-03-05 Tom Tromey <tromey@adacore.com>
10079
10080 * common/scoped_fd.h (class scoped_fd) <release>: Add
10081 ATTRIBUTE_UNUSED_RESULT.
10082
10083 2019-03-05 Tom Tromey <tromey@adacore.com>
10084
10085 * parser-defs.h (struct parser_state) <release>: Add
10086 ATTRIBUTE_UNUSED_RESULT.
10087
10088 2019-03-05 Tom Tromey <tromey@adacore.com>
10089
10090 * utils.h (class gdb_argv) <release>: Add
10091 ATTRIBUTE_UNUSED_RESULT.
10092 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10093
10094 2019-03-02 Eli Zaretskii <eliz@gnu.org>
10095
10096 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10097 for-loop range, to avoid compiler warnings.
10098
10099 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10100 avoid compiler warnings about unused variables.
10101
10102 * NEWS: Mention end of support for native debugging on MS-Windows
10103 before XP.
10104
10105 PR gdb/24292
10106 * common/netstuff.c:
10107 * gdbserver/gdbreplay.c
10108 * gdbserver/remote-utils.c:
10109 * ser-tcp.c:
10110 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10111 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10112 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10113 'getaddrinfo' and 'freeaddrinfo' were not available before
10114 Windows XP, and mingw.org's MinGW headers by default define
10115 _WIN32_WINNT to 0x500.
10116
10117 2019-03-01 Gary Benson <gbenson@redhat.com>
10118
10119 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10120
10121 2019-02-28 Brian Vandenberg <phantall@gmail.com>
10122 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10123
10124 PR gdb/8527
10125 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10126 set_sigint_trap, clear_sigint_trap.
10127
10128 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10129
10130 * target.c (target_detach): Clear the regcache and the
10131 frame cache.
10132
10133 2019-02-27 Pedro Alves <palves@redhat.com>
10134
10135 * utils.c (set_screen_size): When we cap the height/width sizes,
10136 tweak the corresponding command variable to show "unlimited":
10137
10138 2019-02-27 Saagar Jha <saagar@saagarjha.com>
10139 Pedro Alves <palves@redhat.com>
10140
10141 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10142 before calling rl_set_screen_size.
10143
10144 2019-02-27 Tom Tromey <tromey@adacore.com>
10145
10146 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10147 define.
10148 * python/py-value.c: Remove Python 2.4 workaround.
10149 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10150 workaround.
10151 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10152 Python 2.4 workaround.
10153 * python/python-internal.h: Remove Python 2.4 comment.
10154 (Py_ssize_t): Don't define.
10155 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10156 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10157 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10158 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10159 * python/python.c (do_start_initialization): Remove Python 2.4
10160 workaround.
10161 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10162 (print_children): Remove Python 2.4 workaround.
10163 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10164 workaround.
10165 (CHARBUFFERPROC_NAME): Remove.
10166 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10167 Python 2.4 workaround.
10168
10169 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10170
10171 * NEWS: Note minimum Python version.
10172
10173 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10174
10175 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10176 code from these functions. Remove corresponding ifdefs. Use
10177 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10178 Remove gotos and target of gotos.
10179 (infpy_search_memory): Likewise.
10180
10181 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10182
10183 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10184 (hppa_gdbarch_init): Don't register deleted functions with
10185 gdbarch.
10186
10187 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10188
10189 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10190 (h8300_unwind_sp): Delete.
10191 (h8300_dummy_id): Delete.
10192 (h8300_gdbarch_init): Don't register deleted functions with
10193 gdbarch.
10194
10195 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10196
10197 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10198 (ft32_unwind_pc): Delete.
10199 (ft32_unwind_sp): Delete.
10200 (ft32_gdbarch_init): Don't register deleted functions with
10201 gdbarch.
10202
10203 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10204
10205 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10206 (frv_unwind_pc): Delete.
10207 (frv_unwind_sp): Delete.
10208 (frv_gdbarch_init): Don't register deleted functions with
10209 gdbarch.
10210
10211 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10212
10213 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10214 (riscv_unwind_pc): Delete.
10215 (riscv_unwind_sp): Delete.
10216 (riscv_gdbarch_init): Don't register deleted functions with
10217 gdbarch.
10218
10219 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10220
10221 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10222 (csky_unwind_pc): Delete.
10223 (csky_unwind_sp): Delete.
10224 (csky_gdbarch_init): Don't register deleted functions with
10225 gdbarch.
10226
10227 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10228
10229 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10230 (cris_unwind_pc): Delete.
10231 (cris_unwind_sp): Delete.
10232 (cris_gdbarch_init): Don't register deleted functions with
10233 gdbarch.
10234
10235 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10236
10237 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10238 (bfin_unwind_pc): Delete.
10239 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10240
10241 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10242
10243 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10244 (arm_unwind_pc): Delete.
10245 (arm_unwind_sp): Delete.
10246 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10247
10248 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10249
10250 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10251 (arc_unwind_pc): Delete.
10252 (arc_unwind_sp): Delete.
10253 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10254
10255 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10256
10257 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10258 (alpha_unwind_pc): Delete.
10259 (alpha_gdbarch_init): Don't register deleted functions with
10260 gdbarch.
10261
10262 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10263
10264 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10265 (aarch64_unwind_pc): Delete.
10266 (aarch64_unwind_sp): Delete.
10267 (aarch64_gdbarch_init): Don't register deleted functions with
10268 gdbarch.
10269
10270 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10271
10272 * gdbtypes.c (type_align): Don't consider static members when
10273 computing structure alignment.
10274
10275 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10276
10277 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10278 return 0 for other types.
10279 * arch-utils.c (default_type_align): Always return 0.
10280 * gdbarch.h: Regenerate.
10281 * gdbarch.sh (type_align): Extend comment.
10282 * gdbtypes.c (type_align): Add additional comments, always call
10283 gdbarch_type_align before applying the default rules.
10284 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10285 generic code will then apply a suitable default.
10286 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10287 types, return 0 for other types.
10288
10289 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10290
10291 * NEWS: Create a new section for the next release branch.
10292 Rename the section of the current branch, now that it has
10293 been cut.
10294
10295 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10296
10297 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10298 * version.in: Bump version to 8.3.50.DATE-git.
10299
10300 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
10301
10302 * aix-thread.c (ptid_cmp): Remove unused variable.
10303 (get_signaled_thread): Likewise.
10304 (store_regs_user_thread): Likewise.
10305 (store_regs_kernel_thread): Likewise.
10306 (fetch_regs_kernel_thread): Remove shadowed variable.
10307
10308 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10309
10310 * features/riscv/32bit-cpu.xml: Add register numbers.
10311 * features/riscv/32bit-fpu.c: Regenerate.
10312 * features/riscv/32bit-fpu.xml: Add register numbers.
10313 * features/riscv/64bit-cpu.xml: Add register numbers.
10314 * features/riscv/64bit-fpu.c: Regenerate.
10315 * features/riscv/64bit-fpu.xml: Add register numbers.
10316
10317 2019-02-26 Kevin Buettner <kevinb@redhat.com>
10318
10319 * NEWS: Mention two argument form of gdb.Value constructor.
10320 * python/py-value.c (convert_buffer_and_type_to_value): New
10321 function.
10322 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10323 Add support for handling an optional second argument. Call
10324 convert_buffer_and_type_to_value as appropriate.
10325 * python/python-internal.h (Py_buffer_deleter): New struct.
10326 (Py_buffer_up): New typedef.
10327
10328 2019-02-25 John Baldwin <jhb@FreeBSD.org>
10329
10330 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10331 instead of releasing ownership.
10332
10333 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
10334
10335 * dwarf2read.c (open_and_init_dwp_file): Call
10336 elf_numsections instead of bfd_count_sections to initialize
10337 dwp_file->num_sections.
10338
10339 2019-02-25 Tom Tromey <tromey@adacore.com>
10340
10341 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10342
10343 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10344
10345 * gcore.in: Add '--readnever' option when invoking GDB.
10346
10347 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10348
10349 * MAINTAINERS: Update my email address.
10350
10351 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10352
10353 * build-id.c (build_id_to_debug_bfd_1): New function.
10354 (build_id_to_debug_bfd): Look for separate debug file in
10355 sysroot.
10356
10357 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10358
10359 * gdbarch.sh: Update the copyright year range that is placed into
10360 generated files.
10361
10362 2019-02-22 Keith Seitz <keiths@redhat.com>
10363
10364 PR symtab/23853
10365 * linespec.c (create_sals_line_offset): Search for the default
10366 symtab's filename instead of its fullname.
10367
10368 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10369
10370 * NEWS: Update style defaults.
10371
10372 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10373
10374 * main.c (captured_main_1): Disable styling in batch mode.
10375
10376 2019-02-20 Tom Tromey <tom@tromey.com>
10377
10378 * symtab.c (symtab_symbol_info): Fix typos.
10379
10380 2019-02-20 Tom Tromey <tromey@adacore.com>
10381
10382 * findcmd.c (_initialize_mem_search): Use upper case for
10383 metasyntactic variables.
10384
10385 2019-02-20 Alan Hayward <alan.hayward@arm.com>
10386
10387 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10388 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10389
10390 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10391
10392 * top.h (source_file_name): Change to std::string.
10393 * top.c (source_file_name): Likewise.
10394 (command_line_input): Adjust.
10395 * cli/cli-script.c (script_from_file): Adjust.
10396
10397 2019-02-19 Tom Tromey <tromey@adacore.com>
10398
10399 * ravenscar-thread.c
10400 (ravenscar_thread_target::update_thread_list): Don't call
10401 ada_build_task_list.
10402 * ada-lang.h (ada_build_task_list): Don't declare.
10403 * ada-tasks.c (struct ada_tasks_inferior_data)
10404 <task_list_valid_p>: Now bool.
10405 (read_known_tasks, ada_task_list_changed)
10406 (ada_tasks_invalidate_inferior_data): Update.
10407 (read_known_tasks_array): Return bool.
10408 (read_known_tasks_list): Likewise.
10409 (read_known_tasks): Return void.
10410 (ada_build_task_list): Now static.
10411
10412 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10413
10414 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10415 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10416
10417 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10418
10419 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10420 variant for ada_tasks_pspace_data_handle and
10421 ada_tasks_inferior_data_handle.
10422 (ada_tasks_pspace_data_cleanup): New function.
10423 (ada_tasks_inferior_data_cleanup): New function.
10424
10425 2019-02-17 Tom Tromey <tom@tromey.com>
10426
10427 * macrotab.h (macro_source_fullname): Return a std::string.
10428 * macrotab.c (macro_include, check_for_redefinition)
10429 (macro_undef, macro_lookup_definition, foreach_macro)
10430 (foreach_macro_in_scope): Update.
10431 (macro_source_fullname): Return a std::string.
10432 * macrocmd.c (show_pp_source_pos): Update.
10433
10434 2019-02-17 Tom Tromey <tom@tromey.com>
10435
10436 * macrocmd.c (show_pp_source_pos): Style the file names.
10437
10438 2019-02-17 Tom Tromey <tom@tromey.com>
10439
10440 PR tui/24197:
10441 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10442
10443 2019-02-17 Tom Tromey <tom@tromey.com>
10444
10445 * ada-lang.c (user_select_syms): Use filtered printing.
10446 * utils.c (wrap_style): New global.
10447 (desired_style): Remove.
10448 (emit_style_escape): Add stream parameter.
10449 (set_output_style, reset_terminal_style, prompt_for_continue):
10450 Update.
10451 (flush_wrap_buffer): Only flush gdb_stdout.
10452 (wrap_here): Set wrap_style.
10453 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10454 treat escape sequences as a character. Change when wrap buffer is
10455 flushed.
10456 (fputs_styled): Do not set the output style when the default is
10457 requested.
10458 * ui-style.h (struct ui_file_style) <is_default>: New method.
10459 * source.c (print_source_lines_base): Emit escape sequences in one
10460 piece.
10461
10462 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10463
10464 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10465 integers and enumeration types.
10466
10467 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10468
10469 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10470 instead of lookup_symbol_in_language
10471 (do_exact_match): New function.
10472 (ada_get_symbol_name_matcher): Return do_exact_match when
10473 doing a verbatim match.
10474
10475 2019-02-15 Tom Tromey <tromey@adacore.com>
10476
10477 * ravenscar-thread.c (ravenscar_thread_target::resume)
10478 (ravenscar_thread_target::wait): Special case wildcard requests.
10479
10480 2019-02-15 Tom Tromey <tromey@adacore.com>
10481
10482 * ravenscar-thread.c (base_ptid): Remove.
10483 (struct ravenscar_thread_target) <close>: New method.
10484 <m_base_ptid>: New member.
10485 <update_inferior_ptid, active_task, task_is_currently_active,
10486 runtime_initialized>: Declare methods.
10487 <ravenscar_thread_target>: Add constructor.
10488 (ravenscar_thread_target::task_is_currently_active)
10489 (ravenscar_thread_target::update_inferior_ptid)
10490 (ravenscar_runtime_initialized): Rename. Now methods.
10491 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10492 (ravenscar_thread_target::update_thread_list): Update.
10493 (ravenscar_thread_target::active_task): Now method.
10494 (ravenscar_thread_target::store_registers)
10495 (ravenscar_thread_target::prepare_to_store)
10496 (ravenscar_thread_target::prepare_to_store)
10497 (ravenscar_thread_target::mourn_inferior): Update.
10498 (ravenscar_inferior_created): Use "new" to create target.
10499 (ravenscar_thread_target::get_ada_task_ptid): Update.
10500 (_initialize_ravenscar): Don't initialize base_ptid.
10501 (ravenscar_ops): Remove global.
10502
10503 2019-02-15 Tom Tromey <tromey@adacore.com>
10504
10505 * target.h (push_target): Declare new overload.
10506 * target.c (push_target): New overload, taking an rvalue reference.
10507 * remote.c (remote_target::open_1): Use push_target overload.
10508 * corelow.c (core_target_open): Use push_target overload.
10509
10510 2019-02-15 Tom Tromey <tromey@adacore.com>
10511
10512 * ravenscar-thread.c (is_ravenscar_task)
10513 (ravenscar_task_is_currently_active): Return bool.
10514 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10515 (_initialize_ravenscar): Remove "(void)".
10516 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10517 Return bool.
10518
10519 2019-02-15 Tom Tromey <tromey@adacore.com>
10520
10521 * ravenscar-thread.c (ravenscar_runtime_initializer)
10522 (has_ravenscar_runtime, get_running_thread_id)
10523 (ravenscar_thread_target::resume): Fix indentation.
10524
10525 2019-02-15 Tom Tromey <tromey@adacore.com>
10526
10527 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10528 from ravenscar_arch_ops.
10529 (sparc_ravenscar_ops::fetch_registers)
10530 (sparc_ravenscar_ops::store_registers): Now methods.
10531 (sparc_ravenscar_prepare_to_store): Remove.
10532 (sparc_ravenscar_ops): Redefine.
10533 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10534 methods and destructor. Remove members.
10535 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10536 (ravenscar_thread_target::store_registers)
10537 (ravenscar_thread_target::prepare_to_store): Update.
10538 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10539 Remove.
10540 (struct ppc_ravenscar_powerpc_ops): Derive from
10541 ravenscar_arch_ops.
10542 (ppc_ravenscar_powerpc_ops::fetch_registers)
10543 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10544 (ppc_ravenscar_powerpc_ops): Redefine.
10545 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10546 (ppc_ravenscar_e500_ops::fetch_registers)
10547 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10548 (ppc_ravenscar_e500_ops): Redefine.
10549 * aarch64-ravenscar-thread.c
10550 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10551 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10552 (aarch64_ravenscar_fetch_registers)
10553 (aarch64_ravenscar_store_registers): Now methods.
10554 (aarch64_ravenscar_ops): Redefine.
10555
10556 2019-02-15 Tom Tromey <tromey@adacore.com>
10557
10558 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10559 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10560 (ravenscar_thread_target::stopped_by_watchpoint)
10561 (ravenscar_thread_target::stopped_data_address)
10562 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10563
10564 2019-02-15 Tom Tromey <tromey@adacore.com>
10565
10566 * ravenscar-thread.c: Fix some typos.
10567
10568 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10569 Tom Tromey <tromey@adacore.com>
10570
10571 * ada-lang.c (ada_exception_sal): Change addr_string to a
10572 std::string.
10573 (create_ada_exception_catchpoint): Update.
10574
10575 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10576 Tom Tromey <tromey@adacore.com>
10577
10578 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10579 (bp_location_ops): Remove.
10580 (base_breakpoint_allocate_location): Update.
10581 (free_bp_location): Update.
10582 * ada-lang.c (class ada_catchpoint_location)
10583 <ada_catchpoint_location>: Remove ops parameter.
10584 (ada_catchpoint_location_dtor): Remove.
10585 (ada_catchpoint_location_ops): Remove.
10586 (allocate_location_exception): Update.
10587 * breakpoint.h (struct bp_location_ops): Remove.
10588 (class bp_location) <bp_location>: Remove bp_location_ops
10589 parameter.
10590 <~bp_location>: Add destructor.
10591 <ops>: Remove.
10592
10593 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10594 Pedro Alves <palves@redhat.com>
10595
10596 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10597 'PATH_MAX'.
10598
10599 2019-02-14 David Michael <fedora.dm0@gmail.com>
10600 Samuel Thibault <samuel.thibault@gnu.org>
10601 Thomas Schwinge <thomas@codesourcery.com>
10602
10603 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10604 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10605
10606 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10607
10608 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10609 (check_empty): Use "const char *".
10610
10611 * gnu-nat.c (gnu_nat_target::detach): Instead of
10612 'detach_inferior (pid)' call
10613 'detach_inferior (find_inferior_pid (pid))'.
10614
10615 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10616 'nat/fork-inferior.o'.
10617 * gnu-nat.c: #include "nat/fork-inferior.h".
10618
10619 * gnu-nat.c (gnu_nat_target::detach): Instead of
10620 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10621 * gnu-nat.h: #include "inf-child.h".
10622 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10623 'i386_gnu_nat_target::fetch_registers'.
10624 (gnu_store_registers): Rename/move to
10625 'i386_gnu_nat_target::store_registers'.
10626
10627 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10628 * gnu-nat.h (mach_thread_info): New function.
10629 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10630
10631 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10632
10633 2019-02-14 Frederic Konrad <konrad@adacore.com>
10634
10635 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10636
10637 2019-02-14 Joel Brobecker <brobecker@adacore.com>
10638
10639 * windows-nat.c (windows_add_thread): Add new parameter
10640 "main_thread_p" with default value set to false. Update
10641 function documentation as well as all callers.
10642 (windows_delete_thread): Likewise.
10643 (fake_create_process): Update call to windows_add_thread.
10644 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10645 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10646 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10647 call to windows_delete_thread.
10648
10649 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10650
10651 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10652
10653 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10654
10655 * symfile.c (find_separate_debug_file): Use canonical path of
10656 sysroot with child_path instead of gdb_sysroot if it is valid.
10657
10658 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10659
10660 * symfile.c (find_separate_debug_file): Use child_path to
10661 determine if an object file is under a sysroot.
10662
10663 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10664
10665 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10666 unittests/child-path-selftests.c.
10667 * common/pathstuff.c (child_path): New function.
10668 * common/pathstuff.h (child_path): New prototype.
10669 * unittests/child-path-selftests.c: New file.
10670
10671 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10672
10673 * symfile.c (find_separate_debug_file): Look for separate debug
10674 files in debug directories under the sysroot.
10675
10676 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10677
10678 * symtab.h (struct minimal_symbol data_p): New const method.
10679 (struct minimal_symbol text_p): Likewise.
10680 * symtab.c (output_source_filename): Use file name style
10681 to print file name.
10682 (print_symbol_info): Likewise.
10683 (print_msymbol_info): Use address style to print addresses.
10684 Use function name style to print executable text symbols.
10685 (expand_symtab_containing_pc): Use data_p.
10686 (find_pc_sect_compunit_symtab): Likewise.
10687
10688 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10689
10690 * breakpoint.c (describe_other_breakpoints): Use address style
10691 to print addresses.
10692 (say_where): Likewise.
10693
10694 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10695
10696 * ada-typeprint.c (print_func_type): Print function name
10697 style to print function name.
10698 * c-typeprint.c (c_print_type_1): Likewise.
10699
10700 2019-02-11 Alan Hayward <alan.hayward@arm.com>
10701
10702 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10703 for execve.
10704
10705 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10706
10707 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10708 type_stack.
10709
10710 2019-02-10 Joel Brobecker <brobecker@adacore.com>
10711
10712 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10713 TYPE_CODE_REF types.
10714
10715 2019-02-08 Jim Wilson <jimw@sifive.com>
10716
10717 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10718 (riscv_linux_fregset): New.
10719 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10720
10721 2019-02-07 Tom Tromey <tom@tromey.com>
10722
10723 * thread.c (thread_cancel_execution_command): Update.
10724 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10725 methods.
10726 (struct thread_fsm_ops): Remove.
10727 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10728 (thread_fsm_should_stop, thread_fsm_return_value)
10729 (thread_fsm_set_finished, thread_fsm_finished_p)
10730 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10731 Don't declare.
10732 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10733 * infrun.c (clear_proceed_status_thread)
10734 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10735 (print_stop_event): Update.
10736 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10737 Add constructor.
10738 (step_command_fsm_ops): Remove.
10739 (new_step_command_fsm): Remove.
10740 (step_1): Update.
10741 (step_command_fsm::should_stop): Rename from
10742 step_command_fsm_should_stop.
10743 (step_command_fsm::clean_up): Rename from
10744 step_command_fsm_clean_up.
10745 (step_command_fsm::do_async_reply_reason): Rename from
10746 step_command_fsm_async_reply_reason.
10747 (struct until_next_fsm): Inherit from thread_fsm. Add
10748 constructor.
10749 (until_next_fsm_ops): Remove.
10750 (new_until_next_fsm): Remove.
10751 (until_next_fsm::should_stop): Rename from
10752 until_next_fsm_should_stop.
10753 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10754 (until_next_fsm::do_async_reply_reason): Rename from
10755 until_next_fsm_async_reply_reason.
10756 (struct finish_command_fsm): Inherit from thread_fsm. Add
10757 constructor. Change type of breakpoint.
10758 (finish_command_fsm_ops): Remove.
10759 (new_finish_command_fsm): Remove.
10760 (finish_command_fsm::should_stop): Rename from
10761 finish_command_fsm_should_stop.
10762 (finish_command_fsm::clean_up): Rename from
10763 finish_command_fsm_clean_up.
10764 (finish_command_fsm::return_value): Rename from
10765 finish_command_fsm_return_value.
10766 (finish_command_fsm::do_async_reply_reason): Rename from
10767 finish_command_fsm_async_reply_reason.
10768 (finish_command): Update.
10769 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10770 Add constructor.
10771 (call_thread_fsm_ops): Remove.
10772 (call_thread_fsm::call_thread_fsm): Rename from
10773 new_call_thread_fsm.
10774 (call_thread_fsm::should_stop): Rename from
10775 call_thread_fsm_should_stop.
10776 (call_thread_fsm::should_notify_stop): Rename from
10777 call_thread_fsm_should_notify_stop.
10778 (run_inferior_call, call_function_by_hand_dummy): Update.
10779 * cli/cli-interp.c (should_print_stop_to_console): Update.
10780 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10781 Add constructor. Change type of location_breakpoint,
10782 caller_breakpoint.
10783 (until_break_fsm_ops): Remove.
10784 (new_until_break_fsm): Remove.
10785 (until_break_fsm::should_stop): Rename from
10786 until_break_fsm_should_stop.
10787 (until_break_fsm::clean_up): Rename from
10788 until_break_fsm_clean_up.
10789 (until_break_fsm::do_async_reply_reason): Rename from
10790 until_break_fsm_async_reply_reason.
10791 (until_break_command): Update.
10792 * thread-fsm.c: Remove.
10793 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10794
10795 2019-02-07 Tom Tromey <tom@tromey.com>
10796
10797 * yy-remap.h: Add include guard.
10798 * xtensa-tdep.h: Add include guard.
10799 * xcoffread.h: Rename include guard.
10800 * varobj-iter.h: Add include guard.
10801 * tui/tui.h: Rename include guard.
10802 * tui/tui-winsource.h: Rename include guard.
10803 * tui/tui-wingeneral.h: Rename include guard.
10804 * tui/tui-windata.h: Rename include guard.
10805 * tui/tui-win.h: Rename include guard.
10806 * tui/tui-stack.h: Rename include guard.
10807 * tui/tui-source.h: Rename include guard.
10808 * tui/tui-regs.h: Rename include guard.
10809 * tui/tui-out.h: Rename include guard.
10810 * tui/tui-layout.h: Rename include guard.
10811 * tui/tui-io.h: Rename include guard.
10812 * tui/tui-hooks.h: Rename include guard.
10813 * tui/tui-file.h: Rename include guard.
10814 * tui/tui-disasm.h: Rename include guard.
10815 * tui/tui-data.h: Rename include guard.
10816 * tui/tui-command.h: Rename include guard.
10817 * tic6x-tdep.h: Add include guard.
10818 * target/waitstatus.h: Rename include guard.
10819 * target/wait.h: Rename include guard.
10820 * target/target.h: Rename include guard.
10821 * target/resume.h: Rename include guard.
10822 * target-float.h: Rename include guard.
10823 * stabsread.h: Add include guard.
10824 * rs6000-tdep.h: Add include guard.
10825 * riscv-fbsd-tdep.h: Add include guard.
10826 * regformats/regdef.h: Rename include guard.
10827 * record.h: Rename include guard.
10828 * python/python.h: Rename include guard.
10829 * python/python-internal.h: Rename include guard.
10830 * python/py-stopevent.h: Rename include guard.
10831 * python/py-ref.h: Rename include guard.
10832 * python/py-record.h: Rename include guard.
10833 * python/py-record-full.h: Rename include guard.
10834 * python/py-record-btrace.h: Rename include guard.
10835 * python/py-instruction.h: Rename include guard.
10836 * python/py-events.h: Rename include guard.
10837 * python/py-event.h: Rename include guard.
10838 * procfs.h: Add include guard.
10839 * proc-utils.h: Add include guard.
10840 * p-lang.h: Add include guard.
10841 * or1k-tdep.h: Rename include guard.
10842 * observable.h: Rename include guard.
10843 * nto-tdep.h: Rename include guard.
10844 * nat/x86-linux.h: Rename include guard.
10845 * nat/x86-linux-dregs.h: Rename include guard.
10846 * nat/x86-gcc-cpuid.h: Add include guard.
10847 * nat/x86-dregs.h: Rename include guard.
10848 * nat/x86-cpuid.h: Rename include guard.
10849 * nat/ppc-linux.h: Rename include guard.
10850 * nat/mips-linux-watch.h: Rename include guard.
10851 * nat/linux-waitpid.h: Rename include guard.
10852 * nat/linux-ptrace.h: Rename include guard.
10853 * nat/linux-procfs.h: Rename include guard.
10854 * nat/linux-osdata.h: Rename include guard.
10855 * nat/linux-nat.h: Rename include guard.
10856 * nat/linux-namespaces.h: Rename include guard.
10857 * nat/linux-btrace.h: Rename include guard.
10858 * nat/glibc_thread_db.h: Rename include guard.
10859 * nat/gdb_thread_db.h: Rename include guard.
10860 * nat/gdb_ptrace.h: Rename include guard.
10861 * nat/fork-inferior.h: Rename include guard.
10862 * nat/amd64-linux-siginfo.h: Rename include guard.
10863 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10864 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10865 * nat/aarch64-linux.h: Rename include guard.
10866 * nat/aarch64-linux-hw-point.h: Rename include guard.
10867 * mn10300-tdep.h: Add include guard.
10868 * mips-linux-tdep.h: Add include guard.
10869 * mi/mi-parse.h: Rename include guard.
10870 * mi/mi-out.h: Rename include guard.
10871 * mi/mi-main.h: Rename include guard.
10872 * mi/mi-interp.h: Rename include guard.
10873 * mi/mi-getopt.h: Rename include guard.
10874 * mi/mi-console.h: Rename include guard.
10875 * mi/mi-common.h: Rename include guard.
10876 * mi/mi-cmds.h: Rename include guard.
10877 * mi/mi-cmd-break.h: Rename include guard.
10878 * m2-lang.h: Add include guard.
10879 * location.h: Rename include guard.
10880 * linux-record.h: Rename include guard.
10881 * linux-nat.h: Add include guard.
10882 * linux-fork.h: Add include guard.
10883 * i386-darwin-tdep.h: Rename include guard.
10884 * hppa-linux-offsets.h: Add include guard.
10885 * guile/guile.h: Rename include guard.
10886 * guile/guile-internal.h: Rename include guard.
10887 * gnu-nat.h: Rename include guard.
10888 * gdb-stabs.h: Rename include guard.
10889 * frv-tdep.h: Add include guard.
10890 * f-lang.h: Add include guard.
10891 * event-loop.h: Add include guard.
10892 * darwin-nat.h: Rename include guard.
10893 * cp-abi.h: Rename include guard.
10894 * config/sparc/nm-sol2.h: Rename include guard.
10895 * config/nm-nto.h: Rename include guard.
10896 * config/nm-linux.h: Add include guard.
10897 * config/i386/nm-i386gnu.h: Rename include guard.
10898 * config/djgpp/nl_types.h: Rename include guard.
10899 * config/djgpp/langinfo.h: Rename include guard.
10900 * compile/gcc-cp-plugin.h: Add include guard.
10901 * compile/gcc-c-plugin.h: Add include guard.
10902 * compile/compile.h: Rename include guard.
10903 * compile/compile-object-run.h: Rename include guard.
10904 * compile/compile-object-load.h: Rename include guard.
10905 * compile/compile-internal.h: Rename include guard.
10906 * compile/compile-cplus.h: Rename include guard.
10907 * compile/compile-c.h: Rename include guard.
10908 * common/xml-utils.h: Rename include guard.
10909 * common/x86-xstate.h: Rename include guard.
10910 * common/version.h: Rename include guard.
10911 * common/vec.h: Rename include guard.
10912 * common/tdesc.h: Rename include guard.
10913 * common/selftest.h: Rename include guard.
10914 * common/scoped_restore.h: Rename include guard.
10915 * common/scoped_mmap.h: Rename include guard.
10916 * common/scoped_fd.h: Rename include guard.
10917 * common/safe-iterator.h: Rename include guard.
10918 * common/run-time-clock.h: Rename include guard.
10919 * common/refcounted-object.h: Rename include guard.
10920 * common/queue.h: Rename include guard.
10921 * common/ptid.h: Rename include guard.
10922 * common/print-utils.h: Rename include guard.
10923 * common/preprocessor.h: Rename include guard.
10924 * common/pathstuff.h: Rename include guard.
10925 * common/observable.h: Rename include guard.
10926 * common/netstuff.h: Rename include guard.
10927 * common/job-control.h: Rename include guard.
10928 * common/host-defs.h: Rename include guard.
10929 * common/gdb_wait.h: Rename include guard.
10930 * common/gdb_vecs.h: Rename include guard.
10931 * common/gdb_unlinker.h: Rename include guard.
10932 * common/gdb_unique_ptr.h: Rename include guard.
10933 * common/gdb_tilde_expand.h: Rename include guard.
10934 * common/gdb_sys_time.h: Rename include guard.
10935 * common/gdb_string_view.h: Rename include guard.
10936 * common/gdb_splay_tree.h: Rename include guard.
10937 * common/gdb_setjmp.h: Rename include guard.
10938 * common/gdb_ref_ptr.h: Rename include guard.
10939 * common/gdb_optional.h: Rename include guard.
10940 * common/gdb_locale.h: Rename include guard.
10941 * common/gdb_assert.h: Rename include guard.
10942 * common/filtered-iterator.h: Rename include guard.
10943 * common/filestuff.h: Rename include guard.
10944 * common/fileio.h: Rename include guard.
10945 * common/environ.h: Rename include guard.
10946 * common/common-utils.h: Rename include guard.
10947 * common/common-types.h: Rename include guard.
10948 * common/common-regcache.h: Rename include guard.
10949 * common/common-inferior.h: Rename include guard.
10950 * common/common-gdbthread.h: Rename include guard.
10951 * common/common-exceptions.h: Rename include guard.
10952 * common/common-defs.h: Rename include guard.
10953 * common/common-debug.h: Rename include guard.
10954 * common/cleanups.h: Rename include guard.
10955 * common/buffer.h: Rename include guard.
10956 * common/btrace-common.h: Rename include guard.
10957 * common/break-common.h: Rename include guard.
10958 * cli/cli-utils.h: Rename include guard.
10959 * cli/cli-style.h: Rename include guard.
10960 * cli/cli-setshow.h: Rename include guard.
10961 * cli/cli-script.h: Rename include guard.
10962 * cli/cli-interp.h: Rename include guard.
10963 * cli/cli-decode.h: Rename include guard.
10964 * cli/cli-cmds.h: Rename include guard.
10965 * charset-list.h: Add include guard.
10966 * buildsym-legacy.h: Rename include guard.
10967 * bfin-tdep.h: Add include guard.
10968 * ax.h: Rename include guard.
10969 * arm-linux-tdep.h: Add include guard.
10970 * arm-fbsd-tdep.h: Add include guard.
10971 * arch/xtensa.h: Rename include guard.
10972 * arch/tic6x.h: Add include guard.
10973 * arch/i386.h: Add include guard.
10974 * arch/arm.h: Rename include guard.
10975 * arch/arm-linux.h: Rename include guard.
10976 * arch/arm-get-next-pcs.h: Rename include guard.
10977 * arch/amd64.h: Add include guard.
10978 * arch/aarch64-insn.h: Rename include guard.
10979 * arch-utils.h: Rename include guard.
10980 * annotate.h: Add include guard.
10981 * amd64-darwin-tdep.h: Rename include guard.
10982 * aarch64-linux-tdep.h: Add include guard.
10983 * aarch64-fbsd-tdep.h: Add include guard.
10984 * aarch32-linux-nat.h: Add include guard.
10985
10986 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10987
10988 * macrotab.c (macro_define_internal): New function that
10989 factorizes macro_define_object_internal and macro_define_function
10990 code.
10991 (macro_define_object_internal): Use macro_define_internal.
10992 (macro_define_function): Likewise.
10993
10994 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10995
10996 * macrocmd.c (extract_identifier): Return
10997 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10998 callers.
10999
11000 2019-02-06 John Baldwin <jhb@FreeBSD.org>
11001
11002 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11003
11004 2019-02-05 Tom Tromey <tom@tromey.com>
11005
11006 * target.c (target_stack::unpush): Move assertion earlier.
11007
11008 2019-01-30 Tom Tromey <tom@tromey.com>
11009
11010 PR python/23615:
11011 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11012 (gdbpy_parse_and_eval): Likewise.
11013 * python/python-internal.h (gdbpy_allow_threads): New class.
11014
11015 2019-01-28 John Baldwin <jhb@FreeBSD.org>
11016
11017 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11018 (aarch64_fbsd_fpregmap): Move earlier.
11019 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11020 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11021 instead of individual calls to trad_frame_set_reg_addr.
11022 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11023 earlier.
11024 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11025 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11026 instead of individual calls to trad_frame_set_reg_addr.
11027
11028 2019-01-28 Alan Hayward <alan.hayward@arm.com>
11029
11030 * CONTRIBUTE: Replace contribution list with wiki link.
11031
11032 2019-01-25 Tom Tromey <tom@tromey.com>
11033
11034 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11035
11036 2019-01-25 Tom Tromey <tom@tromey.com>
11037
11038 * xtensa-linux-nat.c: Fix common/ includes.
11039 * xml-support.h: Fix common/ includes.
11040 * xml-support.c: Fix common/ includes.
11041 * x86-linux-nat.c: Fix common/ includes.
11042 * windows-nat.c: Fix common/ includes.
11043 * varobj.h: Fix common/ includes.
11044 * varobj.c: Fix common/ includes.
11045 * value.c: Fix common/ includes.
11046 * valops.c: Fix common/ includes.
11047 * utils.c: Fix common/ includes.
11048 * unittests/xml-utils-selftests.c: Fix common/ includes.
11049 * unittests/utils-selftests.c: Fix common/ includes.
11050 * unittests/unpack-selftests.c: Fix common/ includes.
11051 * unittests/tracepoint-selftests.c: Fix common/ includes.
11052 * unittests/style-selftests.c: Fix common/ includes.
11053 * unittests/string_view-selftests.c: Fix common/ includes.
11054 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11055 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11056 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11057 * unittests/rsp-low-selftests.c: Fix common/ includes.
11058 * unittests/parse-connection-spec-selftests.c: Fix common/
11059 includes.
11060 * unittests/optional-selftests.c: Fix common/ includes.
11061 * unittests/offset-type-selftests.c: Fix common/ includes.
11062 * unittests/observable-selftests.c: Fix common/ includes.
11063 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11064 * unittests/memrange-selftests.c: Fix common/ includes.
11065 * unittests/memory-map-selftests.c: Fix common/ includes.
11066 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11067 * unittests/function-view-selftests.c: Fix common/ includes.
11068 * unittests/environ-selftests.c: Fix common/ includes.
11069 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11070 * unittests/common-utils-selftests.c: Fix common/ includes.
11071 * unittests/cli-utils-selftests.c: Fix common/ includes.
11072 * unittests/array-view-selftests.c: Fix common/ includes.
11073 * ui-file.c: Fix common/ includes.
11074 * tui/tui-io.c: Fix common/ includes.
11075 * tracepoint.h: Fix common/ includes.
11076 * tracepoint.c: Fix common/ includes.
11077 * tracefile-tfile.c: Fix common/ includes.
11078 * top.h: Fix common/ includes.
11079 * top.c: Fix common/ includes.
11080 * thread.c: Fix common/ includes.
11081 * target/waitstatus.h: Fix common/ includes.
11082 * target/waitstatus.c: Fix common/ includes.
11083 * target.h: Fix common/ includes.
11084 * target.c: Fix common/ includes.
11085 * target-memory.c: Fix common/ includes.
11086 * target-descriptions.c: Fix common/ includes.
11087 * symtab.h: Fix common/ includes.
11088 * symfile.c: Fix common/ includes.
11089 * stap-probe.c: Fix common/ includes.
11090 * spu-linux-nat.c: Fix common/ includes.
11091 * sparc-nat.c: Fix common/ includes.
11092 * source.c: Fix common/ includes.
11093 * solib.c: Fix common/ includes.
11094 * solib-target.c: Fix common/ includes.
11095 * ser-unix.c: Fix common/ includes.
11096 * ser-tcp.c: Fix common/ includes.
11097 * ser-pipe.c: Fix common/ includes.
11098 * ser-base.c: Fix common/ includes.
11099 * selftest-arch.c: Fix common/ includes.
11100 * s12z-tdep.c: Fix common/ includes.
11101 * rust-exp.y: Fix common/ includes.
11102 * rs6000-aix-tdep.c: Fix common/ includes.
11103 * riscv-tdep.c: Fix common/ includes.
11104 * remote.c: Fix common/ includes.
11105 * remote-notif.h: Fix common/ includes.
11106 * remote-fileio.h: Fix common/ includes.
11107 * remote-fileio.c: Fix common/ includes.
11108 * regcache.h: Fix common/ includes.
11109 * regcache.c: Fix common/ includes.
11110 * record-btrace.c: Fix common/ includes.
11111 * python/python.c: Fix common/ includes.
11112 * python/py-type.c: Fix common/ includes.
11113 * python/py-inferior.c: Fix common/ includes.
11114 * progspace.h: Fix common/ includes.
11115 * producer.c: Fix common/ includes.
11116 * procfs.c: Fix common/ includes.
11117 * proc-api.c: Fix common/ includes.
11118 * printcmd.c: Fix common/ includes.
11119 * ppc-linux-nat.c: Fix common/ includes.
11120 * parser-defs.h: Fix common/ includes.
11121 * osdata.c: Fix common/ includes.
11122 * obsd-nat.c: Fix common/ includes.
11123 * nat/x86-linux.c: Fix common/ includes.
11124 * nat/x86-linux-dregs.c: Fix common/ includes.
11125 * nat/x86-dregs.h: Fix common/ includes.
11126 * nat/x86-dregs.c: Fix common/ includes.
11127 * nat/ppc-linux.c: Fix common/ includes.
11128 * nat/mips-linux-watch.h: Fix common/ includes.
11129 * nat/mips-linux-watch.c: Fix common/ includes.
11130 * nat/linux-waitpid.c: Fix common/ includes.
11131 * nat/linux-ptrace.h: Fix common/ includes.
11132 * nat/linux-ptrace.c: Fix common/ includes.
11133 * nat/linux-procfs.c: Fix common/ includes.
11134 * nat/linux-personality.c: Fix common/ includes.
11135 * nat/linux-osdata.c: Fix common/ includes.
11136 * nat/linux-namespaces.c: Fix common/ includes.
11137 * nat/linux-btrace.h: Fix common/ includes.
11138 * nat/linux-btrace.c: Fix common/ includes.
11139 * nat/fork-inferior.c: Fix common/ includes.
11140 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11141 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11142 * nat/aarch64-linux.c: Fix common/ includes.
11143 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11144 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11145 * namespace.h: Fix common/ includes.
11146 * mips-linux-tdep.c: Fix common/ includes.
11147 * minsyms.c: Fix common/ includes.
11148 * mi/mi-parse.h: Fix common/ includes.
11149 * mi/mi-main.c: Fix common/ includes.
11150 * mi/mi-cmd-env.c: Fix common/ includes.
11151 * memrange.h: Fix common/ includes.
11152 * memattr.c: Fix common/ includes.
11153 * maint.h: Fix common/ includes.
11154 * maint.c: Fix common/ includes.
11155 * main.c: Fix common/ includes.
11156 * machoread.c: Fix common/ includes.
11157 * location.c: Fix common/ includes.
11158 * linux-thread-db.c: Fix common/ includes.
11159 * linux-nat.c: Fix common/ includes.
11160 * linux-fork.c: Fix common/ includes.
11161 * inline-frame.c: Fix common/ includes.
11162 * infrun.c: Fix common/ includes.
11163 * inflow.c: Fix common/ includes.
11164 * inferior.h: Fix common/ includes.
11165 * inferior.c: Fix common/ includes.
11166 * infcmd.c: Fix common/ includes.
11167 * inf-ptrace.c: Fix common/ includes.
11168 * inf-child.c: Fix common/ includes.
11169 * ia64-linux-nat.c: Fix common/ includes.
11170 * i387-tdep.c: Fix common/ includes.
11171 * i386-tdep.c: Fix common/ includes.
11172 * i386-linux-tdep.c: Fix common/ includes.
11173 * i386-linux-nat.c: Fix common/ includes.
11174 * i386-go32-tdep.c: Fix common/ includes.
11175 * i386-fbsd-tdep.c: Fix common/ includes.
11176 * i386-fbsd-nat.c: Fix common/ includes.
11177 * guile/scm-type.c: Fix common/ includes.
11178 * guile/guile.c: Fix common/ includes.
11179 * go32-nat.c: Fix common/ includes.
11180 * gnu-nat.c: Fix common/ includes.
11181 * gdbthread.h: Fix common/ includes.
11182 * gdbarch-selftests.c: Fix common/ includes.
11183 * gdb_usleep.c: Fix common/ includes.
11184 * gdb_select.h: Fix common/ includes.
11185 * gdb_bfd.c: Fix common/ includes.
11186 * gcore.c: Fix common/ includes.
11187 * fork-child.c: Fix common/ includes.
11188 * findvar.c: Fix common/ includes.
11189 * fbsd-nat.c: Fix common/ includes.
11190 * event-top.c: Fix common/ includes.
11191 * event-loop.c: Fix common/ includes.
11192 * dwarf2read.c: Fix common/ includes.
11193 * dwarf2loc.c: Fix common/ includes.
11194 * dwarf2-frame.c: Fix common/ includes.
11195 * dwarf-index-cache.c: Fix common/ includes.
11196 * dtrace-probe.c: Fix common/ includes.
11197 * disasm-selftests.c: Fix common/ includes.
11198 * defs.h: Fix common/ includes.
11199 * csky-tdep.c: Fix common/ includes.
11200 * cp-valprint.c: Fix common/ includes.
11201 * cp-support.h: Fix common/ includes.
11202 * cp-support.c: Fix common/ includes.
11203 * corelow.c: Fix common/ includes.
11204 * completer.h: Fix common/ includes.
11205 * completer.c: Fix common/ includes.
11206 * compile/compile.c: Fix common/ includes.
11207 * compile/compile-loc2c.c: Fix common/ includes.
11208 * compile/compile-cplus-types.c: Fix common/ includes.
11209 * compile/compile-cplus-symbols.c: Fix common/ includes.
11210 * command.h: Fix common/ includes.
11211 * cli/cli-dump.c: Fix common/ includes.
11212 * cli/cli-cmds.c: Fix common/ includes.
11213 * charset.c: Fix common/ includes.
11214 * build-id.c: Fix common/ includes.
11215 * btrace.h: Fix common/ includes.
11216 * btrace.c: Fix common/ includes.
11217 * breakpoint.h: Fix common/ includes.
11218 * breakpoint.c: Fix common/ includes.
11219 * ax.h:
11220 (enum agent_op): Fix common/ includes.
11221 * ax-general.c (struct aop_map): Fix common/ includes.
11222 * ax-gdb.c: Fix common/ includes.
11223 * auxv.c: Fix common/ includes.
11224 * auto-load.c: Fix common/ includes.
11225 * arm-tdep.c: Fix common/ includes.
11226 * arch/riscv.c: Fix common/ includes.
11227 * arch/ppc-linux-common.c: Fix common/ includes.
11228 * arch/i386.c: Fix common/ includes.
11229 * arch/arm.c: Fix common/ includes.
11230 * arch/arm-linux.c: Fix common/ includes.
11231 * arch/arm-get-next-pcs.c: Fix common/ includes.
11232 * arch/amd64.c: Fix common/ includes.
11233 * arch/aarch64.c: Fix common/ includes.
11234 * arch/aarch64-insn.c: Fix common/ includes.
11235 * arch-utils.c: Fix common/ includes.
11236 * amd64-windows-tdep.c: Fix common/ includes.
11237 * amd64-tdep.c: Fix common/ includes.
11238 * amd64-sol2-tdep.c: Fix common/ includes.
11239 * amd64-obsd-tdep.c: Fix common/ includes.
11240 * amd64-nbsd-tdep.c: Fix common/ includes.
11241 * amd64-linux-tdep.c: Fix common/ includes.
11242 * amd64-linux-nat.c: Fix common/ includes.
11243 * amd64-fbsd-tdep.c: Fix common/ includes.
11244 * amd64-fbsd-nat.c: Fix common/ includes.
11245 * amd64-dicos-tdep.c: Fix common/ includes.
11246 * amd64-darwin-tdep.c: Fix common/ includes.
11247 * agent.c: Fix common/ includes.
11248 * ada-lang.h: Fix common/ includes.
11249 * ada-lang.c: Fix common/ includes.
11250 * aarch64-tdep.c: Fix common/ includes.
11251
11252 2019-01-25 Tom Tromey <tom@tromey.com>
11253
11254 * common/create-version.sh: Use common/version.h.
11255
11256 2019-01-24 Pedro Alves <palves@redhat.com>
11257
11258 * infrun.c (signal_stop, signal_print, signal_program)
11259 (signal_catch, signal_pass): Now arrays instead of pointers.
11260 (update_signals_program_target, do_target_resume)
11261 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11262 * linux-nat.c (linux_nat_target::pass_signals)
11263 (linux_nat_target::create_inferior, linux_nat_target::attach):
11264 Adjust.
11265 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11266 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11267 * procfs.c (procfs_target::pass_signals): Adjust.
11268 * record-full.c (record_full_target::resume): Adjust.
11269 * remote.c (remote_target::pass_signals)
11270 (remote_target::program_signals): Adjust.
11271 * target-debug.h (target_debug_print_signals): Now takes a
11272 gdb::array_view as parameter. Adjust.
11273 * target.h (target_ops) <pass_signals, program_signals>: Replace
11274 pointer and length parameters with gdb::array_view.
11275 (target_pass_signals, target_program_signals): Likewise.
11276 * target-delegates.c: Regenerate.
11277
11278 2019-01-24 Pedro Alves <palves@redhat.com>
11279
11280 * common/forward-scope-exit.h
11281 (forward_scope_exit::forward_scope_exit): Pass arguments to
11282 m_bind_function directly, instead of creating a std::bind and
11283 copying that.
11284
11285 2019-01-24 Alan Hayward <alan.hayward@arm.com>
11286
11287 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11288 for static members.
11289 (pass_in_v_vfp_candidate): Likewise.
11290
11291 2019-01-23 Tom Tromey <tom@tromey.com>
11292 Pedro Alves <palves@redhat.com>
11293
11294 * regcache.c (class regcache_invalidator): Remove.
11295 (regcache::raw_write): Use make_scope_exit.
11296
11297 2019-01-23 Tom Tromey <tom@tromey.com>
11298
11299 * ui-out.h (class ui_out_emit_type): Update comment.
11300
11301 2019-01-23 Tom Tromey <tom@tromey.com>
11302
11303 * infrun.c (fetch_inferior_event): Update comment.
11304
11305 2019-01-23 Tom Tromey <tom@tromey.com>
11306 Pedro Alves <palves@redhat.com>
11307
11308 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11309 parameter.
11310 (fetch_inferior_event): Use SCOPE_EXIT.
11311
11312
11313 2019-01-23 Tom Tromey <tom@tromey.com>
11314 Pedro Alves <palves@redhat.com>
11315
11316 * infrun.c (disable_thread_events): Delete.
11317 (stop_all_threads): Use SCOPE_EXIT.
11318
11319 2019-01-23 Tom Tromey <tom@tromey.com>
11320 Pedro Alves <palves@redhat.com>
11321
11322 * symfile.c: Include forward-scope-exit.h.
11323 (clear_symtab_users_cleanup): Replace forward declaration with
11324 a FORWARD_SCOPE_EXIT.
11325 (syms_from_objfile_1): Use the forward_scope_exit and
11326 gdb::optional instead of cleanup_function.
11327 (reread_symbols): Use the forward_scope_exit instead of
11328 cleanup_function.
11329 (clear_symtab_users_cleanup): Remove function.
11330
11331 2019-01-23 Tom Tromey <tom@tromey.com>
11332 Pedro Alves <palves@redhat.com>
11333
11334 * linux-nat.c: Include scope-exit.h.
11335 (cleanup_target_stop): Remove.
11336 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11337 SCOPE_EXIT.
11338
11339 2019-01-23 Tom Tromey <tom@tromey.com>
11340 Pedro Alves <palves@redhat.com>
11341
11342 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11343 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11344
11345 2019-01-23 Tom Tromey <tom@tromey.com>
11346 Andrew Burgess <andrew.burgess@embecosm.com>
11347 Pedro Alves <palves@redhat.com>
11348
11349 * infrun.c (fetch_inferior_event): Use scope_exit.
11350 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11351 * top.c (execute_command): Use scope_exit.
11352 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11353 * utils.c (do_bpstat_clear_actions_cleanup)
11354 (make_bpstat_clear_actions_cleanup): Remove.
11355
11356 2019-01-23 Tom Tromey <tom@tromey.com>
11357 Pedro Alves <palves@redhat.com>
11358
11359 * infrun.c: Include "common/scope-exit.h"
11360 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11361 (wait_for_inferior): Use SCOPE_EXIT.
11362 (fetch_inferior_event): Use scope_exit.
11363
11364 2019-01-23 Tom Tromey <tom@tromey.com>
11365 Pedro Alves <palves@redhat.com>
11366
11367 * breakpoint.c (create_breakpoint): Remove cleanup.
11368
11369 2019-01-23 Tom Tromey <tom@tromey.com>
11370 Andrew Burgess <andrew.burgess@embecosm.com>
11371 Pedro Alves <palves@redhat.com>
11372
11373 2019-01-23 Pedro Alves <palves@redhat.com>
11374
11375 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11376
11377 2019-01-23 Pedro Alves <palves@redhat.com>
11378 Andrew Burgess <andrew.burgess@embecosm.com>
11379
11380 * gdbthread.h: Include "common/forward-scope-exit.h".
11381 (scoped_finish_thread_state): Redefine custom class in terms of
11382 forward_scope_exit.
11383
11384 2019-01-23 Pedro Alves <palves@redhat.com>
11385 Andrew Burgess <andrew.burgess@embecosm.com>
11386
11387 * common/forward-scope-exit.h: New file.
11388
11389 2019-01-23 Pedro Alves <palves@redhat.com>
11390 Andrew Burgess <andrew.burgess@embecosm.com>
11391 Tom Tromey <tom@tromey.com>
11392
11393 * common/scope-exit.h: New file.
11394
11395 2019-01-23 Pedro Alves <palves@redhat.com>
11396
11397 * common/preprocessor.h (ESC): Rename to ...
11398 (ESC_PARENS): ... this.
11399 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11400 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11401
11402 2019-01-23 Tom Tromey <tom@tromey.com>
11403
11404 * language.h (class scoped_switch_to_sym_language_if_auto):
11405 Initialize m_lang in both cases.
11406
11407 2019-01-23 Alan Hayward <alan.hayward@arm.com>
11408
11409 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11410 with XCNEW.
11411
11412 2019-01-22 Tom Tromey <tom@tromey.com>
11413
11414 * corelow.c: Do not include sys/file.h.
11415
11416 2019-01-22 Tom Tromey <tom@tromey.com>
11417
11418 * tui/tui-wingeneral.h: Include gdb_curses.h.
11419
11420 2019-01-22 Tom Tromey <tom@tromey.com>
11421
11422 * source-cache.h (class source_cache) <get_source_lines,
11423 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11424
11425 2019-01-22 Tom Tromey <tom@tromey.com>
11426
11427 * remote-fileio.h (struct remote_target): Declare.
11428
11429 2019-01-22 Tom Tromey <tom@tromey.com>
11430
11431 * python/py-arch.c: Do not include py-ref.h.
11432 * python/py-bpevent.c: Do not include py-ref.h.
11433 * python/py-cmd.c: Do not include py-ref.h.
11434 * python/py-continueevent.c: Do not include py-ref.h.
11435 * python/py-event.h: Do not include py-ref.h.
11436 * python/py-evtregistry.c: Do not include py-ref.h.
11437 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11438 * python/py-frame.c: Do not include py-ref.h.
11439 * python/py-framefilter.c: Do not include py-ref.h.
11440 * python/py-function.c: Do not include py-ref.h.
11441 * python/py-infevents.c: Do not include py-ref.h.
11442 * python/py-linetable.c: Do not include py-ref.h.
11443 * python/py-objfile.c: Do not include py-ref.h.
11444 * python/py-param.c: Do not include py-ref.h.
11445 * python/py-prettyprint.c: Do not include py-ref.h.
11446 * python/py-progspace.c: Do not include py-ref.h.
11447 * python/py-symbol.c: Do not include py-ref.h.
11448 * python/py-symtab.c: Do not include py-ref.h.
11449 * python/py-type.c: Do not include py-ref.h.
11450 * python/py-unwind.c: Do not include py-ref.h.
11451 * python/py-utils.c: Do not include py-ref.h.
11452 * python/py-value.c: Do not include py-ref.h.
11453 * python/py-varobj.c: Do not include py-ref.h.
11454 * python/py-xmethods.c: Do not include py-ref.h.
11455 * python/python.c: Do not include py-ref.h.
11456 * varobj.c: Do not include py-ref.h.
11457
11458 2019-01-22 Tom Tromey <tom@tromey.com>
11459
11460 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11461 keyword for bcache.
11462
11463 2019-01-22 Tom Tromey <tom@tromey.com>
11464
11465 * compile/compile-cplus-types.c: Remove a comment by #include.
11466
11467 2019-01-22 Tom Tromey <tom@tromey.com>
11468
11469 * compile/gcc-c-plugin.h: Include compile-internal.h.
11470
11471 2019-01-22 Tom Tromey <tom@tromey.com>
11472
11473 * stabsread.c (EXTERN): Do not define.
11474 (symnum, next_symbol_text_func, processing_gcc_compilation)
11475 (within_function, global_sym_chain, global_stabs)
11476 (previous_stab_code, this_object_header_files)
11477 (n_this_object_header_files)
11478 (n_allocated_this_object_header_files): Define.
11479 * stabsread.h (EXTERN): Never define. Use "extern".
11480
11481 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11482
11483 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11484 history_value.
11485
11486 2019-01-21 Tom Tromey <tom@tromey.com>
11487
11488 * ui-out.c: Fix includes.
11489 * tui/tui-source.c: Fix includes.
11490 * target.c: Fix includes.
11491 * remote.c: Fix includes.
11492 * regcache.c: Fix includes.
11493 * python/py-block.c: Fix includes.
11494 * printcmd.c: Fix includes.
11495 * or1k-tdep.c: Fix includes.
11496 * mi/mi-main.c: Fix includes.
11497 * m32r-tdep.c: Fix includes.
11498 * csky-tdep.c: Fix includes.
11499 * compile/compile-cplus-types.c: Fix includes.
11500 * cli/cli-interp.c: Fix includes.
11501
11502 2019-01-21 Alan Hayward <alan.hayward@arm.com>
11503
11504 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11505 for padding.
11506
11507 2019-01-16 Tom Tromey <tom@tromey.com>
11508
11509 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11510 earlier.
11511 (struct objfile) <msymbols_range>: Move from top level.
11512 <msymbols>: New method.
11513 (class objfile_msymbols): Remove.
11514 * symtab.c (default_collect_symbol_completion_matches_break_on):
11515 Update.
11516 * symmisc.c (dump_msymbols): Update.
11517 * stabsread.c (scan_file_globals): Update.
11518 * objc-lang.c (info_selectors_command, info_classes_command)
11519 (find_methods): Update.
11520 * minsyms.c (find_solib_trampoline_target): Update.
11521 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11522 * coffread.c (coff_symfile_read): Update.
11523 * ada-lang.c (ada_lookup_simple_minsym)
11524 (ada_collect_symbol_completion_matches): Update.
11525
11526 2019-01-16 Tom Tromey <tom@tromey.com>
11527
11528 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11529 type. Remove no-argument constructor.
11530 <iterator::operator++>: Simplify.
11531 <begin>: Update.
11532 <end>: Use minimal_symbol_count.
11533
11534 2019-01-16 Tom Tromey <tom@tromey.com>
11535
11536 * objfiles.h (struct objfile) <psymtabs>: New method.
11537 (class objfile_psymtabs): Remove.
11538 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11539 typedef.
11540 <range>: New method.
11541 (require_partial_symbols): Change return type.
11542 * psymtab.c (require_partial_symbols)
11543 (psym_expand_symtabs_matching): Update.
11544 * mdebugread.c (parse_partial_symbols): Update.
11545 * dbxread.c (dbx_end_psymtab): Update.
11546
11547 2019-01-15 Tom Tromey <tom@tromey.com>
11548
11549 * symtab.c (lookup_objfile_from_block)
11550 (lookup_symbol_in_objfile_symtabs)
11551 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11552 (find_line_symtab, info_sources_command)
11553 (default_collect_symbol_completion_matches_break_on)
11554 (make_source_files_completion_list): Update.
11555 * symmisc.c (print_objfile_statistics, dump_objfile)
11556 (maintenance_print_symbols, maintenance_info_symtabs)
11557 (maintenance_check_symtabs, maintenance_info_line_tables):
11558 Update.
11559 * source.c (select_source_symtab)
11560 (forget_cached_source_info_for_objfile): Update.
11561 * objfiles.h (class objfile_compunits): Remove.
11562 (struct objfile) <compunits_range>: New typedef.
11563 (compunits): New method.
11564 * objfiles.c (objfile_relocate1): Update.
11565 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11566 * maint.c (count_symtabs_and_blocks): Update.
11567 * linespec.c (iterate_over_all_matching_symtabs): Update.
11568 * cp-support.c (add_symbol_overload_list_qualified): Update.
11569 * coffread.c (coff_symtab_read): Update.
11570 * ada-lang.c (add_nonlocal_symbols)
11571 (ada_collect_symbol_completion_matches)
11572 (ada_add_global_exceptions): Update.
11573
11574 2019-01-15 Tom Tromey <tom@tromey.com>
11575
11576 * progspace.h (program_space) <objfiles_safe_range>: New
11577 typedef.
11578 <objfiles_safe>: New method.
11579 * objfiles.h (class all_objfiles_safe): Remove.
11580 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11581 * jit.c (jit_inferior_exit_hook): Update.
11582
11583 2019-01-17 Tom Tromey <tom@tromey.com>
11584
11585 * progspace.h (program_space) <objfiles_range>: New typedef.
11586 <objfiles>: New method.
11587 <objfiles_head>: Rename from objfiles.
11588 (object_files): Update.
11589 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11590 * guile/scm-pretty-print.c
11591 (ppscm_find_pretty_printer_from_objfiles): Update.
11592 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11593 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11594 Update.
11595 * python/py-progspace.c (pspy_get_objfiles): Update.
11596 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11597 Update.
11598 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11599 (objfpy_lookup_objfile_by_build_id): Update.
11600 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11601 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11602 Update.
11603 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11604 (expand_symtab_containing_pc, lookup_objfile_from_block)
11605 (lookup_static_symbol, basic_lookup_transparent_type)
11606 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11607 (find_line_symtab, info_sources_command)
11608 (default_collect_symbol_completion_matches_break_on)
11609 (make_source_files_completion_list, find_main_name): Update.
11610 * symmisc.c (print_symbol_bcache_statistics)
11611 (print_objfile_statistics, maintenance_print_symbols)
11612 (maintenance_print_msymbols, maintenance_print_objfiles)
11613 (maintenance_info_symtabs, maintenance_check_symtabs)
11614 (maintenance_expand_symtabs, maintenance_info_line_tables):
11615 Update.
11616 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11617 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11618 (map_overlay_command, unmap_overlay_command)
11619 (simple_overlay_update, expand_symtabs_matching)
11620 (map_symbol_filenames): Update.
11621 * symfile-debug.c (set_debug_symfile): Update.
11622 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11623 Update.
11624 * source.c (select_source_symtab, forget_cached_source_info):
11625 Update.
11626 * solib.c (solib_read_symbols): Update.
11627 * solib-spu.c (append_ocl_sos): Update.
11628 * psymtab.c (maintenance_print_psymbols)
11629 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11630 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11631 * printcmd.c (info_symbol_command): Update.
11632 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11633 Update.
11634 * objfiles.h (class all_objfiles): Remove.
11635 * objfiles.c (have_partial_symbols, have_full_symbols)
11636 (have_minimal_symbols, qsort_cmp, update_section_map)
11637 (shared_objfile_contains_address_p)
11638 (default_iterate_over_objfiles_in_search_order): Update.
11639 * objc-lang.c (info_selectors_command, info_classes_command)
11640 (find_methods): Update.
11641 * minsyms.c (find_solib_trampoline_target): Update.
11642 * maint.c (maintenance_info_sections)
11643 (maintenance_translate_address, count_symtabs_and_blocks):
11644 Update.
11645 * main.c (captured_main_1): Update.
11646 * linux-thread-db.c (try_thread_db_load_from_pdir)
11647 (has_libpthread): Update.
11648 * linespec.c (iterate_over_all_matching_symtabs)
11649 (search_minsyms_for_name): Update.
11650 * jit.c (jit_find_objf_with_entry_addr): Update.
11651 * hppa-tdep.c (find_unwind_entry)
11652 (hppa_lookup_stub_minimal_symbol): Update.
11653 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11654 Update.
11655 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11656 (elf_gnu_ifunc_resolve_by_got): Update.
11657 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11658 * dwarf-index-write.c (save_gdb_index_command): Update.
11659 * cp-support.c (add_symbol_overload_list_qualified): Update.
11660 * breakpoint.c (create_overlay_event_breakpoint)
11661 (create_longjmp_master_breakpoint)
11662 (create_std_terminate_master_breakpoint)
11663 (create_exception_master_breakpoint): Update.
11664 * blockframe.c (find_pc_partial_function): Update.
11665 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11666 (ada_collect_symbol_completion_matches)
11667 (ada_add_global_exceptions): Update.
11668
11669 2019-01-17 Tom Tromey <tom@tromey.com>
11670
11671 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11672 declare VEC.
11673 (solib_target_parse_libraries): Change return type.
11674 (library_list_start_segment, library_list_start_section)
11675 (library_list_end_library, library_list_start_library); Update.
11676 (solib_target_free_library_list): Remove.
11677 (solib_target_parse_libraries): Remove cleanup. Change return
11678 type.
11679 (solib_target_current_sos): Update.
11680
11681 2019-01-17 Tom Tromey <tromey@bapiya>
11682
11683 * valprint.c: Replace "the the" with "the".
11684 * symtab.c: Replace "the the" with "the".
11685 * solib.c: Replace "the the" with "the".
11686 * solib-dsbt.c: Replace "the the" with "the".
11687 * linespec.c: Replace "the the" with "the".
11688 * dwarf2loc.h: Replace "the the" with "the".
11689 * amd64-windows-tdep.c: Replace "the the" with "the".
11690 * aarch64-tdep.c: Replace "the the" with "the".
11691
11692 2019-01-16 Keith Seitz <keiths@redhat.com>
11693
11694 PR gdb/23773
11695 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11696 <builder>: Rename to ..
11697 <m_builder>: ... this and make private.
11698 (dwarf2_cu::get_builder): New method. Change all users of
11699 `builder' to use this method.
11700 (dwarf2_start_symtab): Move to ...
11701 (dwarf2_cu::start_symtab): ... here. Update all callers
11702 (setup_type_unit_groups): Move to ...
11703 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11704 callers.
11705 (dwarf2_cu::reset_builder): New method.
11706 (process_full_compunit, process_full_type_unit): Use
11707 dwarf2_cu::reset_builder.
11708 (follow_die_offset): Record the ancestor CU if it is different
11709 from the followed DIE's CU.
11710 (follow_die_sig_1): Likewise.
11711
11712 2019-01-15 Tom Tromey <tom@tromey.com>
11713
11714 * remote.c (class remote_state) <buf>: Now a char_vector.
11715 <buf_size>: Remove.
11716 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11717 parameter.
11718 (remote_target::getpkt_or_notif_sane_1)
11719 (remote_target::getpkt_sane)
11720 (remote_target::getpkt_or_notif_sane): Likewise.
11721 (class remote_target) <putpkt>: New overload.
11722 (remote_target::read_frame): Change type of "buf_p". Remove
11723 sizeof_p parameter.
11724 (packet_ok): New overload.
11725 (packet_check_result): New overload.
11726 Update all uses.
11727
11728 2019-01-14 Tom Tromey <tom@tromey.com>
11729
11730 * remote-notif.c (handle_notification, remote_notif_ack)
11731 (remote_notif_parse): Make "buf" const.
11732 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11733 const.
11734 (remote_notif_parse, remote_notif_ack, handle_notification):
11735 Likewise.
11736 * remote.c (remote_notif_stop_parse): Make "buf" const.
11737 (remote_target::remote_parse_stop_reply): Make "buf" const.
11738 (remote_notif_stop_ack): Make "buf" const.
11739
11740 2019-01-14 Tom Tromey <tom@tromey.com>
11741
11742 * remote.c (remote_console_output): Make parameter const.
11743
11744 2019-01-14 Tom Tromey <tom@tromey.com>
11745
11746 * target-debug.h (target_debug_print_signals): Constify.
11747 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11748 * procfs.c (procfs_target::pass_signals): Update.
11749 * linux-nat.c (linux_nat_target::pass_signals): Update.
11750 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11751 * target-delegates.c: Rebuild.
11752 * remote.c (remote_target::program_signals): Update.
11753 (remote_target::pass_signals): Update.
11754 * target.c (target_pass_signals): Constify argument.
11755 (target_program_signals): Likewise.
11756 * target.h (struct target_ops) <pass_signals, program_signals>:
11757 Constify argument.
11758 (target_pass_signals, target_program_signals): Constify argument.
11759
11760 2019-01-14 Tom Tromey <tom@tromey.com>
11761
11762 PR tui/28819:
11763 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11764
11765 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11766
11767 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11768 field.
11769 * rs6000-tdep.c: Include reggroups.h.
11770 (IS_V_ALIAS_PSEUDOREG): Define.
11771 (rs6000_register_name): Return names for the "vX" aliases.
11772 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11773 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11774 aliases. Call default_register_reggroup_p for all other
11775 pseudo-registers.
11776 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11777 New functions.
11778 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11779 Handle "vX" aliases.
11780 (v_alias_pseudo_register_collect): New function.
11781 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11782 (rs6000_gdbarch_init): Initialize "vX" aliases as
11783 pseudo-registers. Restore registration of
11784 rs6000_pseudo_register_reggroup_p with
11785 set_tdesc_pseudo_register_reggroup_p.
11786
11787 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11788
11789 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11790 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11791 set_gdbarch_num_pseudo_regs.
11792
11793 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11794
11795 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11796 Remove arg prefixname, add do_set and do_show.
11797 Add member functions set_list and show_list.
11798 * cli/cli-style.c (class cli_style_option): Update accordingly.
11799 (style_set_list): Move to file scope.
11800 (style_show_list): Likewise.
11801 (set_style): Call help_list.
11802 (show_style): Call cmd_show_list.
11803 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11804 Update to use the new macro.
11805
11806 2019-10-12 Joel Brobecker <brobecker@adacore.com>
11807
11808 * ada-lang.c (_initialize_ada_language): Expand the help text
11809 for the "catch exception" command.
11810
11811 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11812
11813 * symtab.c (matching_obj_sections): Initialize obj,
11814 declare it closer to its usage.
11815
11816 2019-01-10 Tom Tromey <tom@tromey.com>
11817
11818 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11819 (basic_inf_threads_range): Remove.
11820 (inf_threads_range, inf_non_exited_threads_range)
11821 (safe_inf_threads_range): Use next_adapter.
11822
11823 2019-01-10 Keith Seitz <keiths@redhat.com>
11824
11825 PR gdb/23712
11826 PR symtab/23010
11827 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11828 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11829
11830 2019-01-10 Keith Seitz <keiths@redhat.com>
11831
11832 PR gdb/23712
11833 PR symtab/23010
11834 * dictionary.c (pending_to_vector): Remove.
11835 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11836 Remove _1 suffix, replacing functions of the same name. Update
11837 all callers.
11838 (dict_create_hashed, dict_create_hashed_expandable)
11839 (dict_create_linear, dict_create_linear_expandable, dict_free)
11840 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11841 Make functions static.
11842
11843 2019-01-10 Keith Seitz <keiths@redhat.com>
11844
11845 PR gdb/23712
11846 PR symtab/23010
11847 * dictionary.h (struct dictionary): Replace declaration with
11848 multidictionary.
11849 (dict_create_hashed, dict_create_hashed_expandable)
11850 (dict_create_linear, dict_create_linear_expandable)
11851 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11852 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11853 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11854 taking multidictionary argument.
11855 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11856 * block.h (struct block) <dict>: Change to multidictionary
11857 and rename `multidict'.
11858 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11859 symmisc.c: Update all dictionary references to multidictionary.
11860
11861 2019-01-10 Keith Seitz <keiths@redhat.com>
11862
11863 PR gdb/23712
11864 PR symtab/23010
11865 * dictionary.c: Include unordered_map.
11866 (pending_to_vector): New function.
11867 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11868 Rewrite the non-"_1" functions to take vector instead
11869 of linked list.
11870 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11871 "new" _1 versions of the same name.
11872 (multidictionary): Define.
11873 (std::hash<enum language): New definition.
11874 (collate_pending_symbols_by_language, mdict_create_hashed)
11875 (mdict_create_hashed_expandable, mdict_create_linear)
11876 (mdict_create_linear_expandable, mdict_free)
11877 (find_language_dictionary, create_new_language_dictionary)
11878 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11879 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11880 (mdict_size, mdict_empty): New functions.
11881 * dictionary.h (mdict_iterator): Define.
11882
11883 2019-01-10 Pedro Alves <palves@redhat.com>
11884
11885 * breakpoint.c (read_uploaded_action)
11886 (create_tracepoint_from_upload): Adjust to use
11887 gdb::unique_xmalloc_ptr.
11888 * ctf.c (ctf_write_uploaded_tp):
11889 (SET_ARRAY_FIELD): Use emplace_back.
11890 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11891 * tracefile-tfile.c (tfile_write_uploaded_tp):
11892 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11893 gdb::unique_xmalloc_ptr.
11894 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11895 at_string, cond_string, cmd_strings>: Replace char pointers
11896 with gdb::unique_xmalloc_ptr.
11897
11898 2019-01-10 Pedro Alves <palves@redhat.com>
11899
11900 * solib-target.c (library_list_start_library): Don't xstrdup name.
11901
11902 2019-01-10 Pedro Alves <palves@redhat.com>
11903
11904 * mdebugread.c (parse_partial_symbols): Use
11905 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11906
11907 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11908
11909 * linux-fork.c (scoped_switch_fork_info)
11910 <~scoped_switch_fork_info>: Fix incorrect variable name.
11911
11912 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11913
11914 * linux-fork.c (scoped_switch_fork_info)
11915 <scoped_switch_fork_info>: Make explicit.
11916 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11917
11918 2019-01-10 Tom Tromey <tom@tromey.com>
11919
11920 * objfiles.h (objfile::reset_psymtabs): Update.
11921 * objfiles.c (objfile::objfile): Update.
11922 * psymtab.h (psymtab_storage::obstack): Update.
11923 (psymtab_storage::m_obstack): Use gdb::optional.
11924 (class psymtab_storage): Update comment. Remove objfile
11925 parameter.
11926 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11927
11928 2019-01-10 Tom Tromey <tom@tromey.com>
11929
11930 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11931 <free_psymtabs>: Now private.
11932 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11933 (allocate_psymtab): Use new method.
11934
11935 2019-01-10 Tom Tromey <tom@tromey.com>
11936
11937 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11938 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11939 * mdebugread.c (parse_partial_symbols): Use
11940 allocate_dependencies.
11941 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11942 allocate_dependencies.
11943 (process_psymtab_comp_unit_reader)
11944 (build_type_psymtab_dependencies): Likewise.
11945 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11946
11947 2019-01-10 Tom Tromey <tom@tromey.com>
11948
11949 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11950 PSYMBOL_SET_LANGUAGE.
11951 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11952
11953 2019-01-10 Tom Tromey <tom@tromey.com>
11954
11955 * psymtab.h (psymtab_storage::obstack): New method.
11956 <m_obstack>: Rename from obstack; now private.
11957 * psymtab.c (psymtab_storage): Update.
11958 * dwarf2read.c (create_addrmap_from_index)
11959 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11960 Update.
11961
11962 2019-01-10 Tom Tromey <tom@tromey.com>
11963
11964 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11965 * objfiles.h (objfile::reset_psymtabs): New method.
11966
11967 2019-01-10 Tom Tromey <tom@tromey.com>
11968
11969 * symmisc.c (print_symbol_bcache_statistics): Update.
11970 (print_objfile_statistics): Update.
11971 * symfile.c (reread_symbols): Update.
11972 * psymtab.h (class psymtab_storage): New.
11973 * psymtab.c (psymtab_storage): New constructor.
11974 (~psymtab_storage): New destructor.
11975 (require_partial_symbols): Update.
11976 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11977 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11978 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11979 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11980 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11981 (start_psymtab_common, end_psymtab_common)
11982 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11983 (allocate_psymtab): Update.
11984 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11985 Update.
11986 (dump_psymtab_addrmap, maintenance_print_psymbols)
11987 (maintenance_check_psymtabs): Update.
11988 (class objfile_psymtabs): Move to objfiles.h.
11989 * psympriv.h (discard_psymtab): Now inline.
11990 (psymtab_discarder::psymtab_discarder): Update.
11991 (psymtab_discarder::~psymtab_discarder): Update.
11992 (ALL_OBJFILE_PSYMTABS): Rewrite.
11993 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11994 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11995 Remove fields.
11996 <partial_symtabs>: New field.
11997 (class objfile_psymtabs): Move from psymtab.h. Update.
11998 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11999 psymbol_cache.
12000 (objfile::~objfile): Don't destroy psymbol_cache.
12001 * mdebugread.c (parse_partial_symbols): Update.
12002 * dwarf2read.c (create_addrmap_from_index)
12003 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12004 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12005 (add_partial_subprogram, dwarf2_ranges_read): Update.
12006 * dwarf-index-write.c (write_address_map)
12007 (write_one_signatured_type, recursively_write_psymbols)
12008 (class debug_names, class debug_names, write_psymtabs_to_index):
12009 Update.
12010
12011 2019-01-10 Tom Tromey <tom@tromey.com>
12012
12013 * symtab.h (SYMBOL_SET_NAMES): Update.
12014 (symbol_set_names): Update.
12015 (MSYMBOL_SET_NAMES): Update.
12016 * symtab.c (symbol_set_names): Change argument to be an
12017 objfile_per_bfd_storage.
12018 * psymtab.c (add_psymbol_to_bcache): Update.
12019 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12020
12021 2019-01-10 Tom Tromey <tom@tromey.com>
12022
12023 * symtab.c (create_demangled_names_hash): Change argument to be an
12024 objfile_per_bfd_storage.
12025 (symbol_set_names): Update.
12026
12027 2019-01-10 Tom Tromey <tom@tromey.com>
12028
12029 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12030 init_psymbol_list.
12031 * psymtab.c (init_psymbol_list): Do nothing if already called.
12032 * psympriv.h (init_psymbol_list): Add comment.
12033 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12034 init_psymbol_list.
12035 * dbxread.c (dbx_symfile_read): Unconditionally call
12036 init_psymbol_list.
12037
12038 2019-01-10 Tom Tromey <tom@tromey.com>
12039
12040 * xcoffread.c (scan_xcoff_symtab): Update.
12041 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12042 "where".
12043 * mdebugread.c (parse_partial_symbols)
12044 (handle_psymbol_enumerators): Update.
12045 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12046 * dbxread.c (read_dbx_symtab): Update.
12047 * psympriv.h (psymbol_placement): New enum.
12048 (add_psymbol_to_list): Update.
12049
12050 2019-01-10 Tom Tromey <tom@tromey.com>
12051
12052 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12053 static_psymbols parameters.
12054 (scan_xcoff_symtab): Update.
12055 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12056 static_psymbols parameters.
12057 * psympriv.h (start_psymtab_common): Update.
12058 * mdebugread.c (parse_partial_symbols): Update.
12059 * dwarf2read.c (create_partial_symtab): Update.
12060 * dbxread.c (read_dbx_symtab): Update.
12061 (start_psymtab): Remove global_psymbols and static_psymbols
12062 parameters.
12063
12064 2019-01-10 Tom Tromey <tom@tromey.com>
12065
12066 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12067 * psymtab.c (allocate_psymtab): Add comment.
12068 * psympriv.h (allocate_psymtab): Add comment.
12069 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12070 initializations.
12071 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12072
12073 2019-01-10 Tom Tromey <tom@tromey.com>
12074
12075 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12076 Don't declare.
12077 * mipsread.c: Include mdebugread.h.
12078 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12079 Declare.
12080 * elfread.c: Include mdebugread.h.
12081
12082 2019-01-09 Tom Tromey <tom@tromey.com>
12083
12084 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12085 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12086 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12087 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12088 (psym_lookup_symbol, psym_find_last_source_symtab)
12089 (psym_forget_cached_source_info, psym_print_stats)
12090 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12091 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12092 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12093 (psym_find_compunit_symtab_by_address)
12094 (maintenance_print_psymbols, maintenance_info_psymtabs)
12095 (maintenance_check_psymtabs): Use ranged for.
12096 * psymtab.h (class objfile_psymtabs): New.
12097 (require_partial_symbols): Return objfile_psymtabs.
12098 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12099
12100 2019-01-09 Tom Tromey <tom@tromey.com>
12101
12102 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12103 (find_pc_mapped_section, list_overlays_command)
12104 (map_overlay_command, unmap_overlay_command)
12105 (simple_overlay_update): Use all_objfiles.
12106 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12107 * printcmd.c (info_symbol_command): Use all_objfiles.
12108 * objfiles.h (ALL_OBJSECTIONS): Remove.
12109 * maint.c (maintenance_translate_address): Use all_objfiles.
12110 * gcore.c (gcore_create_callback): Use all_objfiles.
12111 (objfile_find_memory_regions): Likewise.
12112
12113 2019-01-09 Tom Tromey <tom@tromey.com>
12114
12115 * symtab.c (find_line_symtab, info_sources_command)
12116 (make_source_files_completion_list): Use objfile_compunits.
12117 * source.c (select_source_symtab): Use objfile_compunits.
12118 * objfiles.h (struct objfile): Update comment.
12119 (ALL_OBJFILES): Remove.
12120 (ALL_FILETABS): Remove.
12121 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12122 objfile_compunits.
12123
12124 2019-01-09 Tom Tromey <tom@tromey.com>
12125
12126 * symmisc.c (print_objfile_statistics, dump_objfile)
12127 (maintenance_print_symbols): Use compunit_filetabs.
12128 * source.c (forget_cached_source_info_for_objfile): Use
12129 compunit_filetabs.
12130 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12131 (ALL_FILETABS): Use compunit_filetabs.
12132 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12133 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12134
12135 2019-01-09 Tom Tromey <tom@tromey.com>
12136
12137 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12138 (compunit_filetabs): New.
12139 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12140 compunit_filetabs.
12141 (info_sources_command, make_source_files_completion_list): Remove
12142 declaration.
12143 * symmisc.c (print_objfile_statistics, dump_objfile)
12144 (maintenance_print_symbols): Remove declaration.
12145 (maintenance_info_symtabs): Use compunit_filetabs.
12146 (maintenance_info_line_tables): Likewise.
12147 * source.c (select_source_symtab): Change local variable name.
12148 (forget_cached_source_info_for_objfile): Remove declaration.
12149 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12150 * objfiles.c (objfile_relocate1): Remove declaration.
12151 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12152 declaration.
12153 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12154 * coffread.c (coff_symtab_read): Remove declaration.
12155 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12156 compunit_filetabs.
12157
12158 2019-01-09 Tom Tromey <tom@tromey.com>
12159
12160 * symtab.c (lookup_objfile_from_block)
12161 (find_pc_sect_compunit_symtab, search_symbols)
12162 (default_collect_symbol_completion_matches_break_on): Use
12163 objfile_compunits.
12164 * objfiles.h (ALL_COMPUNITS): Remove.
12165 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12166 * cp-support.c (add_symbol_overload_list_qualified): Use
12167 objfile_compunits.
12168 * ada-lang.c (ada_collect_symbol_completion_matches)
12169 (ada_add_global_exceptions): Use objfile_compunits.
12170
12171 2019-01-09 Tom Tromey <tom@tromey.com>
12172
12173 * source.c (select_source_symtab)
12174 (forget_cached_source_info_for_objfile): Remove declaration.
12175 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12176 declaration.
12177 * maint.c (count_symtabs_and_blocks): Remove declaration.
12178 * cp-support.c (add_symbol_overload_list_qualified): Remove
12179 declaration.
12180 * coffread.c (coff_symtab_read): Remove declaration.
12181 * symtab.c (lookup_symbol_in_objfile_symtabs)
12182 (basic_lookup_transparent_type_1): Use objfile_compunits.
12183 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12184 (info_sources_command, search_symbols)
12185 (default_collect_symbol_completion_matches_break_on)
12186 (make_source_files_completion_list): Remove declaration.
12187 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12188 (ada_collect_symbol_completion_matches)
12189 (ada_add_global_exceptions): Remove declaration.
12190 * linespec.c (iterate_over_all_matching_symtabs): Use
12191 objfile_compunits.
12192 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12193 (class objfile_compunits): New.
12194 (ALL_COMPUNITS): Use objfile_compunits.
12195 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12196 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12197 objfile_compunits.
12198 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12199
12200 2019-01-09 Tom Tromey <tom@tromey.com>
12201
12202 * symtab.c (search_symbols)
12203 (default_collect_symbol_completion_matches_break_on): Use
12204 objfile_msymbols.
12205 * ada-lang.c (ada_lookup_simple_minsym)
12206 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12207 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12208 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12209 objfile_msymbols.
12210 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12211 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12212 * objc-lang.c (find_methods): Use objfile_msymbols.
12213 (info_selectors_command, info_classes_command): Likewise.
12214 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12215 * objfiles.h (class objfile_msymbols): New.
12216 (ALL_OBJFILE_MSYMBOLS): Remove.
12217 (ALL_MSYMBOLS): Remove.
12218
12219 2019-01-09 Tom Tromey <tom@tromey.com>
12220
12221 * common/next-iterator.h (next_adapter): Add Iterator template
12222 parameter.
12223 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12224 (class all_objfiles_safe): New.
12225 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12226 * objfiles.c (put_objfile_before): Update comment.
12227 (add_separate_debug_objfile): Likewise.
12228 (free_all_objfiles): Use all_objfiles_safe.
12229 (objfile_purge_solibs): Likewise.
12230
12231 2019-01-09 Tom Tromey <tom@tromey.com>
12232
12233 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12234 (expand_symtab_containing_pc, lookup_static_symbol)
12235 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12236 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12237 all_objfiles.
12238 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12239 * breakpoint.c (create_overlay_event_breakpoint)
12240 (create_longjmp_master_breakpoint)
12241 (create_std_terminate_master_breakpoint)
12242 (create_exception_master_breakpoint): Use all_objfiles.
12243 * linux-thread-db.c (try_thread_db_load_from_pdir)
12244 (has_libpthread): Use all_objfiles.
12245 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12246 * linespec.c (iterate_over_all_matching_symtabs)
12247 (search_minsyms_for_name): Use all_objfiles.
12248 * maint.c (maintenance_info_sections): Use all_objfiles.
12249 * main.c (captured_main_1): Use all_objfiles.
12250 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12251 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12252 * guile/scm-pretty-print.c
12253 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12254 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12255 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12256 (maintenance_print_msymbols): Use all_objfiles.
12257 * source.c (select_source_symtab): Use all_objfiles.
12258 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12259 * symfile.c (remove_symbol_file_command)
12260 (expand_symtabs_matching, map_symbol_filenames): Use
12261 all_objfiles.
12262 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12263 all_objfiles.
12264 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12265 * objc-lang.c (find_methods): Use all_objfiles.
12266 * objfiles.c (have_partial_symbols, have_full_symbols)
12267 (have_minimal_symbols, qsort_cmp)
12268 (default_iterate_over_objfiles_in_search_order): Use
12269 all_objfiles.
12270 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12271 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12272 (maintenance_check_psymtabs): Use all_objfiles.
12273 (ALL_PSYMTABS): Remove.
12274 * compile/compile-object-run.c (do_module_cleanup): Use
12275 all_objfiles.
12276 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12277 * cp-support.c (add_symbol_overload_list_qualified): Use
12278 all_objfiles.
12279 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12280 Use all_objfiles.
12281 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12282 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12283 all_objfiles.
12284 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12285 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12286 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12287 Uses all_objfiles.
12288 * solib.c (solib_read_symbols): Use all_objfiles
12289
12290 2019-01-09 Tom Tromey <tom@tromey.com>
12291
12292 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12293 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12294 all_objfiles.
12295 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12296 * symmisc.c (print_symbol_bcache_statistics)
12297 (print_objfile_statistics, maintenance_print_objfiles)
12298 (maintenance_info_symtabs, maintenance_check_symtabs)
12299 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12300 all_objfiles.
12301 * source.c (forget_cached_source_info): Use all_objfiles.
12302 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12303 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12304 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12305 * objfiles.c (update_section_map): Use all_objfiles.
12306 (shared_objfile_contains_address_p): Likewise.
12307 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12308 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12309
12310 2019-01-09 Tom Tromey <tom@tromey.com>
12311
12312 * common/next-iterator.h: New file.
12313 * objfiles.h (class all_objfiles): New.
12314 (struct objfile_iterator): New.
12315
12316 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12317
12318 * NEWS: Move the description of the changed "frame", "select-frame",
12319 and "info frame" commands to the Changed commands section.
12320
12321 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12322
12323 * gdbtypes.c (check_stub_method_group): Remove handling of old
12324 mangling schemes.
12325 * linespec.c (find_methods): Likewise.
12326 * stabsread.c (read_member_functions): Likewise.
12327 * valops.c (search_struct_method): Likewise.
12328 (value_struct_elt_for_reference): Likewise.
12329 * NEWS: Mention this change.
12330
12331 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12332
12333 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12334 print_source_lines.
12335 * source.c (print_source_lines_base): Update line number check.
12336 (print_source_lines): New function.
12337 (source_lines_range::source_lines_range): New function.
12338 * source.h (class source_lines_range): New class.
12339 (print_source_lines): New declaration.
12340
12341 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12342
12343 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12344
12345 2019-01-08 Tom Tromey <tom@tromey.com>
12346 Simon Marchi <simon.marchi@ericsson.com>
12347
12348 PR gdb/24060
12349 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12350 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12351 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12352 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12353 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12354 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12355
12356 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12357
12358 * source.c (select_source_symtab): Move header comment to
12359 declaration in source.h.
12360 (forget_cached_source_info_for_objfile): Likewise.
12361 (forget_cached_source_info): Likewise.
12362 (identify_source_line): Likewise.
12363 * source.h (identify_source_line): Move declaration from symtab.h
12364 and add comment from source.c
12365 (print_source_lines): Likewise.
12366 (forget_cached_source_info_for_objfile): Likewise.
12367 (forget_cached_source_info): Likewise.
12368 (select_source_symtab): Likewise.
12369 (enum print_source_lines_flag): Move definition from symtab.h.
12370 * symtab.h (identify_source_line): Move declaration to source.h.
12371 (print_source_lines): Likewise.
12372 (forget_cached_source_info_for_objfile): Likewise.
12373 (forget_cached_source_info): Likewise.
12374 (select_source_symtab): Likewise.
12375 (enum print_source_lines_flag): Move definition to source.h.
12376 * tui/tui-hooks.c: Add 'source.h' include.
12377
12378 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12379
12380 * source.c (print_source_lines_base): Handle requests to print
12381 reverse line number sequences, and guard against empty lines
12382 string.
12383
12384 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12385
12386 * source.c (print_source_lines_base): Fix skip of '\r' if next
12387 character is '\n'.
12388
12389 2019-01-06 Tom Tromey <tom@tromey.com>
12390
12391 * c-exp.y (struct c_parse_state) <macro_original_text,
12392 expansion_obstack>: New member.
12393 (macro_original_text, expansion_obstack): Remove globals.
12394 (scan_macro_expansion, scanning_macro_expansion)
12395 (finished_macro_expansion): Update.
12396 (scan_macro_cleanup): Remove.
12397 (yylex, c_parse): Update.
12398
12399 2019-01-06 Tom Tromey <tom@tromey.com>
12400
12401 * c-exp.y (struct c_parse_state) <strings>: New member.
12402 (operator_stoken): Update.
12403
12404 2019-01-06 Tom Tromey <tom@tromey.com>
12405
12406 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12407 (union type_stack_elt) <typelist_val>: Now a pointer to
12408 std::vector.
12409 (type_stack_cleanup): Don't declare.
12410 (push_typelist): Update.
12411 * parse.c (pop_typelist): Return a std::vector.
12412 (push_typelist): Take a std::vector.
12413 (follow_types): Update. Do not free args.
12414 (type_stack_cleanup): Remove.
12415 * c-exp.y (struct c_parse_state): New.
12416 (cpstate): New global.
12417 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12418 (nonempty_typelist): Update.
12419 (func_mod): Create a new vector.
12420 (c_parse): Create a c_parse_state.
12421 (check_parameter_typelist): Do not delete params.
12422 (function_method): Update. Do not delete type_list.
12423
12424 2019-01-06 Tom Tromey <tom@tromey.com>
12425
12426 PR gdb/28155:
12427 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12428 check_typedef.
12429 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12430 (print_return_value): Likewise.
12431
12432 2019-01-05 Tom Tromey <tom@tromey.com>
12433
12434 * contrib/cleanup_check.py: Remove.
12435 * contrib/gcc-with-excheck: Remove.
12436 * contrib/exsummary.py: Remove.
12437 * contrib/excheck.py: Remove.
12438
12439 2019-01-05 Joel Brobecker <brobecker@adacore.com>
12440
12441 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12442 NULL. Initialize tpprev to NULL instead of assigning it
12443 to NULL on the next statement.
12444 * windows-nat.c (windows_delete_thread): Remove check for
12445 main_thread_id before printing thread exit notifications.
12446 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12447 Remove thread ID check against main_thread_id.
12448 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12449 windows_delete_thread.
12450 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12451
12452 2019-01-04 Tom Tromey <tom@tromey.com>
12453
12454 * compile/compile.c (_initialize_compile): Use upper case for
12455 metasyntactic variables.
12456 * symmisc.c (_initialize_symmisc): Use upper case for
12457 metasyntactic variables.
12458 * psymtab.c (_initialize_psymtab): Use upper case for
12459 metasyntactic variables.
12460 * demangle.c (demangle_command): Use upper case for metasyntactic
12461 variables.
12462 (_initialize_demangler): Likewise.
12463 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12464 variables.
12465
12466 2019-01-03 Tom Tromey <tom@tromey.com>
12467
12468 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12469
12470 2019-01-03 Tom Tromey <tom@tromey.com>
12471
12472 * python/py-symtab.c (salpy_str): Update.
12473 (struct salpy_sal_object) <symtab>: Now a PyObject.
12474 (salpy_dealloc): Update.
12475 (del_objfile_sal): Use gdbpy_ref.
12476
12477 2019-01-03 Tom Tromey <tom@tromey.com>
12478
12479 * python/py-type.c (convert_field): Use new_reference. Return
12480 gdbpy_ref.
12481 (make_fielditem): Return gdbpy_ref.
12482 (typy_fields): Update.
12483 (typy_getitem): Update.
12484 (field_name): Return gdbpy_ref. Use new_reference.
12485 (typy_iterator_iternext): Update.
12486
12487 2019-01-03 Tom Tromey <tom@tromey.com>
12488
12489 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12490
12491 2019-01-03 Tom Tromey <tom@tromey.com>
12492
12493 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12494 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12495 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12496 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12497 (pspy_set_type_printers): Likewise.
12498 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12499 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12500 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12501 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12502 (objfpy_set_type_printers): Likewise.
12503
12504 2019-01-03 Tom Tromey <tom@tromey.com>
12505
12506 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12507 (gdbpy_print_stack): Use gdbpy_err_fetch.
12508 * python/python-internal.h (class gdbpy_err_fetch): New class.
12509 (class gdbpy_enter) <m_error_type, m_error_value,
12510 m_error_traceback>: Remove.
12511 <m_error>: New member.
12512 (gdbpy_exception_to_string): Don't declare.
12513 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12514 * python/py-value.c (convert_value_from_python): Use
12515 gdbpy_err_fetch.
12516 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12517 gdbpy_exception_to_string.
12518 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12519 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12520 gdbpy_err_fetch.
12521
12522 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12523
12524 * linux-nat.c (delete_lwp_cleanup): Delete.
12525 (struct lwp_deleter): New struct.
12526 (lwp_info_up): New typedef.
12527 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12528 lwp_info_up.
12529
12530 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12531
12532 * linux-fork.c (class scoped_switch_fork_info): New class.
12533 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12534
12535 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12536
12537 * valops.c (find_overload_match): Remove use of null_cleanup, and
12538 calls to do_cleanups.
12539
12540 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12541
12542 * compile/compile-cplus-types.c
12543 (compile_cplus_instance::decl_name): Handle changes to
12544 cp_func_name.
12545 * cp-support.c (cp_func_name): Update header comment, update
12546 return type.
12547 * cp-support.h (cp_func_name): Update return type in declaration.
12548 * valops.c (find_overload_match): Move temp_func local to top
12549 level of function and change its type. Use temp_func to hold and
12550 delete temporary string obtained from cp_func_name.
12551
12552 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12553
12554 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12555 gdb::char_vector, remove cleanup, and update uses of `msg`.
12556
12557 2019-01-03 Jim Wilson <jimw@sifive.com>
12558
12559 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12560
12561 2019-01-02 Tom Tromey <tom@tromey.com>
12562
12563 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12564 (tdesc_parse_xml): Remove cleanups.
12565 * target-descriptions.h (make_cleanup_free_target_description):
12566 Don't declare.
12567 (target_desc_deleter): New struct.
12568 (target_desc_up): New typedef.
12569 * target-descriptions.c (target_desc_deleter::operator()): Rename
12570 from free_target_description.
12571 (make_cleanup_free_target_description): Remove.
12572
12573 2019-01-02 Tom Tromey <tom@tromey.com>
12574
12575 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12576 constructor, destructor.
12577 (linespec_parser): Remove typedef.
12578 (~linespec_parser): Rename from linespec_parser_delete.
12579 (linespec_lex_to_end, linespec_complete_label)
12580 (linespec_complete): Update.
12581 (decode_line_full): Remove cleanups.
12582 (decode_line_1): Update.
12583
12584 2019-01-02 Tom Tromey <tom@tromey.com>
12585
12586 * python/python-internal.h (inferior_to_inferior_object): Change
12587 return type.
12588 * python/py-exitedevent.c (create_exited_event_object): Update.
12589 * python/py-inferior.c (inferior_to_inferior_object): Return
12590 gdbpy_ref.
12591 (python_new_inferior, python_inferior_deleted)
12592 (thread_to_thread_object, delete_thread_object)
12593 (build_inferior_list, gdbpy_selected_inferior): Update.
12594 * python/py-infthread.c (create_thread_object): Update. Also fail
12595 if inferior_to_inferior_object fails.
12596
12597 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12598
12599 * inferior.h (class inferior) <displaced_step_state>: New field.
12600 * infrun.h (struct displaced_step_state): Move here from
12601 infrun.c. Initialize fields, add constructor.
12602 <inf>: Remove field.
12603 <reset>: New method.
12604 * infrun.c (struct displaced_step_inferior_state): Move to
12605 infrun.h.
12606 (displaced_step_inferior_states): Remove.
12607 (get_displaced_stepping_state): Adust.
12608 (displaced_step_in_progress_any_inferior): Adjust.
12609 (displaced_step_in_progress_thread): Adjust.
12610 (displaced_step_in_progress): Adjust.
12611 (add_displaced_stepping_state): Remove.
12612 (get_displaced_step_closure_by_addr): Adjust.
12613 (remove_displaced_stepping_state): Remove.
12614 (infrun_inferior_exit): Call displaced_step_state.reset.
12615 (use_displaced_stepping): Don't check for NULL.
12616 (displaced_step_prepare_throw): Call
12617 get_displaced_stepping_state.
12618 (displaced_step_fixup): Don't check for NULL.
12619 (prepare_for_detach): Don't check for NULL.
12620
12621 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12622
12623 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12624 in case of call that did not complete.
12625
12626 2019-01-02 Andrey Utkin <autkin@undo.io>
12627
12628 * symfile.c (find_separate_debug_file): Fix search of debug files for
12629 remote debuggee.
12630
12631 2019-01-02 Tom Tromey <tom@tromey.com>
12632
12633 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12634 indentation.
12635 * python/py-frame.c (frapy_older): Remove cast.
12636 (frapy_newer): Likewise.
12637 * python/py-breakpoint.c (local_setattro): Remove cast.
12638 * python/py-arch.c (archpy_name): Remove local variable.
12639 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12640
12641 2019-01-02 Joel Brobecker <brobecker@adacore.com>
12642
12643 * unittests/basic_string_view/element_access/char/empty.cc:
12644 Fix year range in copyright header.
12645
12646 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12647
12648 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12649 Delete.
12650 <operator==>: Update with for removed field.
12651 <hash>: Likewise.
12652 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12653 <isa_features>: ...this.
12654 <abi_features>: New field.
12655 (riscv_isa_flen): Update comment.
12656 (riscv_abi_xlen): New declaration.
12657 (riscv_abi_flen): New declaration.
12658 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12659 isa_features.
12660 (riscv_abi_xlen): New function.
12661 (riscv_isa_flen): Update to get answer from isa_features.
12662 (riscv_abi_flen): New function.
12663 (riscv_has_fp_abi): Update to get answer from abi_features.
12664 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12665 xlen and flen.
12666 (riscv_call_info) <xlen, flen>: Update comment.
12667 (riscv_call_arg_struct): Remove invalid assertions
12668 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12669 is removed.
12670 (riscv_gdbarch_init): Gather isa features and abi features
12671 separately, ensure both match on the gdbarch when reusing an old
12672 gdbarch. Relax an error check to allow 32-bit abi float to run on
12673 a target with 64-bit float hardware.
12674
12675 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12676
12677 * source.c (search_command_helper): Stop reverse search
12678 when line 1 has been searched.
12679
12680 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12681
12682 * record-full.c (record_full_base_target::close): Rewrite
12683 record_full_core_buf_list free logic.
12684
12685 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12686
12687 * break-catch-syscall.c (print_one_catch_syscall): xfree
12688 the last text.
12689
12690 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12691
12692 * top.c (print_gdb_version): Update Copyright year in version
12693 message.
12694
12695 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12696
12697 Update copyright year range in all GDB files.
12698
12699 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
12700
12701 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
12702
12703 For older changes see ChangeLog-2018.
12704 \f
12705 Local Variables:
12706 mode: change-log
12707 left-margin: 8
12708 fill-column: 74
12709 version-control: never
12710 coding: utf-8
12711 End:
12712