]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Introduce alternate_signal_stack RAII class
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-26 Tom Tromey <tom@tromey.com>
2
3 * main.c (setup_alternate_signal_stack): Remove.
4 (captured_main_1): Use gdb::alternate_signal_stack.
5 * gdbsupport/alt-stack.h: New file.
6
7 2019-11-26 Tom Tromey <tom@tromey.com>
8
9 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
10 Remove comment.
11 (save_original_signals_state, restore_original_signals_state): Use
12 gdb_sigmask.
13 * linux-nat.c (block_child_signals, restore_child_signals_mask)
14 (_initialize_linux_nat): Use gdb_sigmask.
15 * guile/guile.c (_initialize_guile): Use block_signals.
16 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
17 * gdbsupport/gdb-sigmask.h: New file.
18 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
19 * cp-support.c (gdb_demangle): Use gdb_sigmask.
20 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
21 pthread_sigmask.
22 * configure, config.in: Rebuild.
23 * gdbsupport/block-signals.h: New file.
24
25 2019-11-26 Tom Tromey <tom@tromey.com>
26
27 * acinclude.m4: Include ax_pthread.m4.
28 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
29 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
30 (CLIBS): Use PTHREAD_LIBS.
31 (aclocal_m4_deps): Add ax_pthread.m4.
32 * config.in, configure: Rebuild.
33 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
34
35 2019-11-26 Tom Tromey <tom@tromey.com>
36
37 * symtab.h (struct minimal_symbol) <name_set>: New member.
38 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
39 Don't call symbol_set_names.
40 (minimal_symbol_reader::install): Call symbol_set_names.
41
42 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
43
44 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
45 restore_active_ext_lang, as GIL is needed for (indirectly)
46 called PyOS_InterruptOccurred.
47
48 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
49
50 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
51 definition.
52
53 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
54
55 * remote-sim.c (simulator_command): Make static, remove
56 declaration.
57
58 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
59
60 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
61 static.
62 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
63 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
64 (main): Likewise.
65 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
66 (main): Likewise.
67 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
68 (main): Likewise.
69 * unittests/basic_string_view/element_access/char/1.cc (test01):
70 Likewise.
71 (main): Likewise.
72 * unittests/basic_string_view/element_access/char/empty.cc (main):
73 Likewise.
74 * unittests/basic_string_view/element_access/char/front_back.cc
75 (test01): Likewise.
76 (main): Likewise.
77 * unittests/basic_string_view/inserters/char/2.cc (test05):
78 Likewise.
79 (main): Likewise.
80 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
81 (test01): Likewise.
82 (main): Likewise.
83 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
84 (test01): Likewise.
85 (main): Likewise.
86 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
87 Likewise.
88 * unittests/basic_string_view/operations/compare/char/1.cc
89 (test01): Likewise.
90 (main): Likewise.
91 * unittests/basic_string_view/operations/compare/char/13650.cc
92 (test01): Likewise.
93 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
94 Likewise.
95 (main): Likewise.
96 * unittests/basic_string_view/operations/data/char/1.cc (test01):
97 Likewise.
98 (main): Likewise.
99 * unittests/basic_string_view/operations/find/char/1.cc (test01):
100 Likewise.
101 (main): Likewise.
102 * unittests/basic_string_view/operations/find/char/2.cc (test02):
103 Likewise.
104 (main): Likewise.
105 * unittests/basic_string_view/operations/find/char/3.cc (test03):
106 Likewise.
107 (main): Likewise.
108 * unittests/basic_string_view/operations/find/char/4.cc (main):
109 Likewise.
110 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
111 Likewise.
112 (main): Likewise.
113 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
114 Likewise.
115 (main): Likewise.
116 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
117 Likewise.
118 (main): Likewise.
119 * unittests/basic_string_view/operations/substr/char/1.cc
120 (test01): Likewise.
121 (main): Likewise.
122 * unittests/basic_string_view/operators/char/2.cc (main):
123 Likewise.
124 * unittests/optional/assignment/1.cc (test): Likewise.
125 * unittests/optional/assignment/2.cc (test): Likewise.
126 * unittests/optional/assignment/3.cc (test): Likewise.
127 * unittests/optional/assignment/4.cc (test): Likewise.
128 * unittests/optional/assignment/5.cc (test): Likewise.
129 * unittests/optional/assignment/6.cc (test): Likewise.
130 * unittests/optional/assignment/7.cc (test): Likewise.
131 * unittests/optional/cons/copy.cc (test): Likewise.
132 * unittests/optional/cons/default.cc (test): Likewise.
133 * unittests/optional/cons/move.cc (test): Likewise.
134 * unittests/optional/cons/value.cc (test): Likewise.
135 * unittests/optional/in_place.cc (test): Likewise.
136 * unittests/optional/observers/1.cc (test): Likewise.
137 * unittests/optional/observers/2.cc (test): Likewise.
138
139 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
140
141 * tui-win.h (tui_set_var_cmd): Remove.
142 * tui-win.c (tui_set_var_cmd): Make static.
143
144 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
145
146 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
147 rbreak_command_wrapper): Remove.
148 * symtab.c (rbreak_command_wrapper): Remove.
149
150 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
151
152 * inferior.h (info_terminal_command): Remove declaration.
153 * inflow.c (info_terminal_command): Make static.
154
155 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
156
157 * inferior.c (exit_inferior_silent): Remove.
158
159 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
160
161 * dictionary.c (dict_empty, mdict_empty): Remove.
162 * dictionary.c (mdict_empty): Remove.
163
164 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
165
166 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
167 (arc_insn_get_memory_offset): Likewise.
168 (arc_insn_dump): Likewise.
169 * cp-support.c (test_cp_symbol_name_matches): Likewise.
170 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
171 * dictionary.c (dict_iterator_next): Likewise.
172 (dict_iter_match_first): Likewise.
173 (dict_iter_match_next): Likewise.
174 * f-lang.c (evaluate_subexp_f): Likewise.
175 * hppa-tdep.c (hppa_read_pc): Likewise.
176 * i386-tdep.c (i386_floatformat_for_type): Likewise.
177 * parse.c (write_exp_elt_msym): Likewise.
178 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
179 * remote.c (remote_packet_size): Likewise.
180 (remote_notif_stop_parse): Likewise.
181 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
182 * s12z-tdep.c (s12z_disassemble_info): Likewise.
183 * source.c (prepare_path_for_appending): Likewise.
184 * sparc64-linux-tdep.c
185 (sparc64_linux_handle_segmentation_fault); Likewise.
186 * stack.c (frame_selection_by_function_completer): Likewise.
187
188 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
189
190 * completer.c (set_gdb_completion_word_break_characters):
191 Remove.
192
193 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
194
195 * dwarf-index-write.c: Include dwarf-index-write.h.
196 * mi/mi-interp.c: Include mi/mi-interp.h.
197
198 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
199
200 * aarch32-tdep.c: Include aarch32-tdep.h.
201 * aarch32-tdep.h: Forward-declare struct target_desc.
202
203 2019-11-26 Christian Biesinger <cbiesinger@google.com>
204
205 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
206 strerror.
207 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
208 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
209
210 2019-11-25 Tom de Vries <tdevries@suse.de>
211
212 * contrib/words.sh: Add -c option.
213
214 2019-11-25 Christian Biesinger <cbiesinger@google.com>
215
216 * solib.c (solib_find_1): Change int to bool.
217 (exec_file_find): Change int to bool.
218 (solib_find): Change int to bool.
219 (solib_read_symbols): Change int to bool.
220 (solib_used): Change int to bool.
221 (solib_add): Change int to bool.
222 (info_sharedlibrary_command): Change int to bool.
223 (solib_contains_address_p): Change int to bool.
224 (solib_keep_data_in_core): Change int to bool.
225 (in_solib_dynsym_resolve_code): Change int to bool.
226 (reload_shared_libraries_1): Change int to bool.
227 (gdb_sysroot_changed): Change int to bool.
228 * solib.h (solib_read_symbols): Change int to bool.
229 (solib_contains_address_p): Change int to bool.
230 (solib_keep_data_in_core): Change int to bool.
231 (in_solib_dynsym_resolve_code): Change int to bool.
232 (libpthread_name_p): Change int to bool.
233
234 2019-11-25 Luis Machado <luis.machado@linaro.org>
235
236 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
237 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
238 (remote_packet_max_chars): New static global.
239 (show_remote_packet_max_chars): New function.
240 (remote_target::putpkt_binary): Adjust to use new
241 remote_packet_max_chars option.
242 (remote_target::getpkt_or_notif_sane_1): Likewise.
243 (_initialize_remote): Register new remote-packet-max-chars option.
244
245 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
246
247 * m68k-linux-nat.c: Include gdbarch.h.
248
249 2019-11-24 Tom Tromey <tom@tromey.com>
250
251 * symfile.c (read_symbols): Update.
252 * psymtab.c (require_partial_symbols): Change type of "verbose" to
253 bool.
254 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
255 (psym_lookup_symbol, psym_find_last_source_symtab)
256 (psym_forget_cached_source_info, psym_print_stats)
257 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
258 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
259 (psym_map_matching_symbols, psym_expand_symtabs_matching)
260 (psym_find_compunit_symtab_by_address)
261 (maintenance_print_psymbols, maintenance_info_psymtabs)
262 (maintenance_check_psymtabs): Update.
263 * psymtab.h (require_partial_symbols): Change type of "verbose" to
264 bool.
265
266 2019-11-22 Tom Tromey <tom@tromey.com>
267
268 * observable.h: Update comments.
269
270 2019-11-22 Tom Tromey <tromey@adacore.com>
271
272 * ada-tasks.c (ada_task_is_alive): Make parameter const.
273 (print_ada_task_info): Don't try to fetch thread id if task is not
274 alive.
275
276 2019-11-22 Christian Biesinger <cbiesinger@google.com>
277
278 * ada-exp.y: Update.
279 * ada-lang.c (sort_choices): Update.
280 (ada_print_symbol_signature): Update.
281 (resolve_subexp): Update.
282 (ada_parse_renaming): Update.
283 (ada_read_renaming_var_value): Update.
284 (lesseq_defined_than): Update.
285 (remove_extra_symbols): Update.
286 (remove_irrelevant_renamings): Update.
287 (ada_add_block_symbols): Update.
288 (ada_collect_symbol_completion_matches): Update.
289 (ada_is_renaming_symbol): Update.
290 (aggregate_assign_from_choices): Update.
291 (ada_evaluate_subexp): Update.
292 (ada_has_this_exception_support): Update.
293 (ada_is_non_standard_exception_sym): Update.
294 (ada_add_exceptions_from_frame): Update.
295 (ada_add_global_exceptions): Update.
296 (ada_print_subexp): Update.
297 * ax-gdb.c (gen_var_ref): Update.
298 (gen_maybe_namespace_elt): Update.
299 (gen_expr_for_cast): Update.
300 (gen_expr): Update.
301 * block.h: Update.
302 * blockframe.c (find_pc_partial_function): Update.
303 * breakpoint.c (print_breakpoint_location): Update.
304 (update_static_tracepoint): Update.
305 * btrace.c (ftrace_print_function_name): Update.
306 (ftrace_function_switched): Update.
307 * buildsym.c (find_symbol_in_list): Update.
308 * c-exp.y: Update.
309 * c-typeprint.c (c_print_typedef): Update.
310 (c_type_print_template_args): Update.
311 * cli/cli-cmds.c (edit_command): Update.
312 (list_command): Update.
313 (print_sal_location): Update.
314 * coffread.c (patch_opaque_types): Update.
315 (process_coff_symbol): Update.
316 (coff_read_enum_type): Update.
317 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
318 (convert_one_symbol): Update.
319 (hash_symname): Update.
320 (eq_symname): Update.
321 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
322 * compile/compile-cplus-types.c (debug_print_scope): Update.
323 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
324 * compile/compile-object-load.c (get_out_value_type): Update.
325 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
326 (search_symbol_list): Update.
327 (cp_lookup_symbol_imports_or_template): Update.
328 * cp-support.c (overload_list_add_symbol): Update.
329 * ctfread.c (psymtab_to_symtab): Update.
330 * dbxread.c (cp_set_block_scope): Update.
331 * dictionary.c (iter_match_first_hashed): Update.
332 (iter_match_next_hashed): Update.
333 (insert_symbol_hashed): Update.
334 (iter_match_next_linear): Update.
335 * dictionary.h: Update.
336 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
337 (locexpr_describe_location_piece): Update.
338 (locexpr_describe_location_1): Update.
339 (locexpr_generate_c_location): Update.
340 (loclist_describe_location): Update.
341 (loclist_generate_c_location): Update.
342 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
343 (read_func_scope): Update.
344 (process_enumeration_scope): Update.
345 (new_symbol): Update.
346 (dwarf2_const_value): Update.
347 (dwarf2_symbol_mark_computed): Update.
348 * eval.c (evaluate_funcall): Update.
349 (evaluate_subexp_standard): Update.
350 * expprint.c (print_subexp_standard): Update.
351 (dump_subexp_body_standard): Update.
352 * f-valprint.c (info_common_command_for_block): Update.
353 * findvar.c (get_hosting_frame): Update.
354 (default_read_var_value): Update.
355 * go-lang.c (go_symbol_package_name): Update.
356 * guile/scm-block.c (bkscm_print_block_smob): Update.
357 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
358 (gdbscm_symbol_name): Update.
359 (gdbscm_symbol_linkage_name): Update.
360 (gdbscm_symbol_print_name): Update.
361 * infcall.c (get_function_name): Update.
362 * infcmd.c (jump_command): Update.
363 (finish_command): Update.
364 * infrun.c (insert_exception_resume_breakpoint): Update.
365 * linespec.c (canonicalize_linespec): Update.
366 (create_sals_line_offset): Update.
367 (convert_linespec_to_sals): Update.
368 (complete_label): Update.
369 (find_label_symbols_in_block): Update.
370 * m2-typeprint.c (m2_print_typedef): Update.
371 * mdebugread.c (mdebug_reg_to_regnum): Update.
372 (parse_symbol): Update.
373 (mylookup_symbol): Update.
374 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
375 (list_args_or_locals): Update.
376 * objc-lang.c (compare_selectors): Update.
377 (info_selectors_command): Update.
378 (compare_classes): Update.
379 (info_classes_command): Update.
380 (find_imps): Update.
381 * p-typeprint.c (pascal_print_typedef): Update.
382 * printcmd.c (build_address_symbolic): Update.
383 (info_address_command): Update.
384 (print_variable_and_value): Update.
385 * python/py-framefilter.c (extract_sym): Update.
386 (py_print_single_arg): Update.
387 * python/py-symbol.c (sympy_str): Update.
388 (sympy_get_name): Update.
389 (sympy_get_linkage_name): Update.
390 * python/python.c (gdbpy_rbreak): Update.
391 * record-btrace.c (btrace_get_bfun_name): Update.
392 (btrace_call_history): Update.
393 * rust-lang.c (rust_print_typedef): Update.
394 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
395 * stabsread.c (stab_reg_to_regnum): Update.
396 (define_symbol): Update.
397 (read_enum_type): Update.
398 (common_block_end): Update.
399 (cleanup_undefined_types_1): Update.
400 (scan_file_globals): Update.
401 * stack.c (print_frame_arg): Update.
402 (print_frame_args): Update.
403 (find_frame_funname): Update.
404 (info_frame_command_core): Update.
405 (iterate_over_block_locals): Update.
406 (print_block_frame_labels): Update.
407 (do_print_variable_and_value): Update.
408 (iterate_over_block_arg_vars): Update.
409 (return_command): Update.
410 * symmisc.c (dump_symtab_1): Update.
411 (print_symbol): Update.
412 * symtab.c (eq_symbol_entry): Update.
413 (symbol_cache_dump): Update.
414 (lookup_language_this): Update.
415 (find_pc_sect_line): Update.
416 (skip_prologue_sal): Update.
417 (symbol_search::compare_search_syms): Update.
418 (treg_matches_sym_type_name): Update.
419 (search_symbols): Update.
420 (print_symbol_info): Update.
421 (rbreak_command): Update.
422 (completion_list_add_symbol): Update.
423 (find_gnu_ifunc): Update.
424 (get_symbol_address): Update.
425 (search_module_symbols): Update.
426 (info_module_subcommand): Update.
427 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
428 (SYMBOL_LINKAGE_NAME): Remove.
429 (SYMBOL_DEMANGLED_NAME): Remove.
430 (SYMBOL_PRINT_NAME): Remove.
431 (SYMBOL_SEARCH_NAME): Remove.
432 * tracepoint.c (set_traceframe_context): Update.
433 (validate_actionline): Update.
434 (collection_list::collect_symbol): Update.
435 (encode_actions_1): Update.
436 (info_scope_command): Update.
437 (print_one_static_tracepoint_marker): Update.
438 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
439 * valops.c (address_of_variable): Update.
440 (find_overload_match): Update.
441 (find_oload_champ): Update.
442
443 2019-11-22 Christian Biesinger <cbiesinger@google.com>
444
445 * ada-lang.c (ada_lookup_simple_minsym): Update.
446 (ada_collect_symbol_completion_matches): Update.
447 * ada-tasks.c (read_atcb): Update.
448 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
449 (amd64_windows_skip_trampoline_code): Update.
450 * arm-tdep.c (skip_prologue_function): Update.
451 (arm_skip_stack_protector): Update.
452 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
453 (arm_wince_skip_main_prologue): Update.
454 * ax-gdb.c (gen_expr): Update.
455 * block.c (call_site_for_pc): Update.
456 * blockframe.c (find_pc_partial_function): Update.
457 * breakpoint.c (set_breakpoint_location_function): Update.
458 * btrace.c (ftrace_print_function_name): Update.
459 (ftrace_function_switched): Update.
460 * c-valprint.c (print_unpacked_pointer): Update.
461 * coffread.c (coff_symfile_read): Update.
462 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
463 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
464 * dwarf-index-write.c (write_psymbols): Update.
465 * dwarf2loc.c (call_site_to_target_addr): Update.
466 (func_verify_no_selftailcall): Update.
467 (tailcall_dump): Update.
468 (call_site_find_chain_1): Update.
469 (dwarf_expr_reg_to_entry_parameter): Update.
470 * elfread.c (elf_gnu_ifunc_record_cache): Update.
471 * eval.c (evaluate_funcall): Update.
472 (evaluate_subexp_standard): Update.
473 (evaluate_subexp_for_sizeof): Update.
474 * expprint.c (print_subexp_standard): Update.
475 (dump_subexp_body_standard): Update.
476 * frame.c (get_prev_frame_always_1): Update.
477 * frv-tdep.c (frv_skip_main_prologue): Update.
478 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
479 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
480 (gnuv3_get_typename_from_type_info): Update.
481 (gnuv3_skip_trampoline): Update.
482 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
483 * i386-tdep.c (i386_skip_main_prologue): Update.
484 (i386_pe_skip_trampoline_code): Update.
485 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
486 * infcall.c (get_function_name): Update.
487 * linespec.c (minsym_found): Update.
488 * linux-fork.c (info_checkpoints_command): Update.
489 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
490 (m32c_m16c_pointer_to_address): Update.
491 * maint.c (maintenance_translate_address): Update.
492 * minsyms.c (add_minsym_to_hash_table): Update.
493 (add_minsym_to_demangled_hash_table): Update.
494 (lookup_minimal_symbol_mangled): Update.
495 (lookup_minimal_symbol_demangled): Update.
496 (lookup_minimal_symbol_linkage): Update.
497 (lookup_minimal_symbol_text): Update.
498 (lookup_minimal_symbol_by_pc_name): Update.
499 (minimal_symbol_is_less_than): Update.
500 (compact_minimal_symbols): Update.
501 (build_minimal_symbol_hash_tables): Update.
502 (find_solib_trampoline_target): Update.
503 * mips-tdep.c (mips_stub_frame_sniffer): Update.
504 (mips_skip_pic_trampoline_code): Update.
505 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
506 * objc-lang.c (info_selectors_command): Update.
507 (info_classes_command): Update.
508 (find_methods): Update.
509 (find_imps): Update.
510 * p-valprint.c (pascal_val_print): Update.
511 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
512 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
513 * printcmd.c (build_address_symbolic): Update.
514 (info_symbol_command): Update.
515 * psymtab.c (psymbol_name_matches): Update.
516 (match_partial_symbol): Update.
517 (lookup_partial_symbol): Update.
518 (print_partial_symbols): Update.
519 (sort_pst_symbols): Update.
520 (maintenance_check_psymtabs): Update.
521 * python/py-framefilter.c (py_print_frame): Update.
522 * python/python.c (gdbpy_rbreak): Update.
523 * record-btrace.c (btrace_get_bfun_name): Update.
524 (btrace_call_history): Update.
525 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
526 (rs6000_skip_trampoline_code): Update.
527 * sol-thread.c (info_cb): Update.
528 * stabsread.c (scan_file_globals): Update.
529 * stack.c (find_frame_funname): Update.
530 (info_frame_command_core): Update.
531 * symmisc.c (dump_msymbols): Update.
532 * symtab.c (symbol_natural_name): Rename to..,
533 (general_symbol_info::natural_name): ...this.
534 (symbol_demangled_name): Rename to...
535 (general_symbol_info::demangled_name): ...this.
536 (symbol_search_name): Rename to...
537 (general_symbol_info::search_name): ...this.
538 (symbol_matches_search_name): Update.
539 (find_pc_sect_line): Update.
540 (skip_prologue_sal): Update.
541 (search_symbols): Update.
542 (print_msymbol_info): Update.
543 (rbreak_command): Update.
544 (completion_list_add_msymbol): Update.
545 (completion_list_objc_symbol): Update.
546 (get_msymbol_address): Update.
547 * symtab.h (struct general_symbol_info): Add member functions
548 natural_name (), linkage_name (), print_name (), demangled_name (),
549 and search_name ().
550 (SYMBOL_NATURAL_NAME): Update.
551 (symbol_natural_name): Move to a member function on general_symbol_info.
552 (SYMBOL_DEMANGLED_NAME): Update.
553 (symbol_demangled_name): Move to a member function on
554 general_symbol_info.
555 (SYMBOL_SEARCH_NAME): Update.
556 (symbol_search_name): Move to a member function on general_symbol_info.
557 (MSYMBOL_NATURAL_NAME): Remove.
558 (MSYMBOL_LINKAGE_NAME): Remove.
559 (MSYMBOL_PRINT_NAME): Remove.
560 (MSYMBOL_DEMANGLED_NAME): Remove.
561 (MSYMBOL_SEARCH_NAME): Remove.
562 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
563
564 2019-11-22 Christian Biesinger <cbiesinger@google.com>
565
566 * symtab.c (create_demangled_names_hash): Use per_bfd->
567 minimal_symbol_count for computing the initial size, if greater
568 than our default size.
569
570 2019-11-22 Tom de Vries <tdevries@suse.de>
571
572 * contrib/words.sh: Improve words extraction.
573
574 2019-11-22 Tom de Vries <tdevries@suse.de>
575
576 * contrib/words.sh: Combine sed invocations.
577
578 2019-11-21 Christian Biesinger <cbiesinger@google.com>
579
580 * Makefile.in: Update.
581 * demangle.c: Rename to...
582 * gdb-demangle.c: ..this.
583 (is_cplus_marker): Change return type to bool.
584 (_initialize_demangler): Rename to...
585 (_initialize_gdb_demangle): ...this.
586 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
587 * symtab.h (demangle): Remove declaration; instead include
588 gdb-demangle.h.
589
590 2019-11-21 Tom Tromey <tromey@adacore.com>
591
592 * gdbsupport/format.c (format_pieces): Parse %I64d.
593 * unittests/format_pieces-selftests.c (test_windows_formats): New
594 function.
595 (run_tests): Call it.
596
597 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
598
599 Byte reverse display of variables with DW_END_big, DW_END_little
600 (DW_AT_endianity) dwarf attributes if different than the native
601 byte order.
602 * ada-lang.c (ada_value_binop):
603 Use type_byte_order instead of gdbarch_byte_order.
604 * ada-valprint.c (printstr):
605 (ada_val_print_string):
606 * ada-lang.c (value_pointer):
607 (ada_value_binop):
608 Use type_byte_order instead of gdbarch_byte_order.
609 * c-lang.c (c_get_string):
610 Use type_byte_order instead of gdbarch_byte_order.
611 * c-valprint.c (c_val_print_array):
612 Use type_byte_order instead of gdbarch_byte_order.
613 * cp-valprint.c (cp_print_class_member):
614 Use type_byte_order instead of gdbarch_byte_order.
615 * dwarf2loc.c (rw_pieced_value):
616 Use type_byte_order instead of gdbarch_byte_order.
617 * dwarf2read.c (read_base_type): Handle DW_END_big,
618 DW_END_little
619 * f-lang.c (f_get_encoding):
620 Use type_byte_order instead of gdbarch_byte_order.
621 * findvar.c (default_read_var_value):
622 Use type_byte_order instead of gdbarch_byte_order.
623 * gdbtypes.c (check_types_equal):
624 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
625 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
626 and TYPE_ENDIANITY_LITTLE if set.
627 (type_byte_order): new function.
628 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
629 (struct main_type) <flag_endianity_not_default>:
630 New field.
631 (type_byte_order): New function.
632 * infcmd.c (default_print_one_register_info):
633 Use type_byte_order instead of gdbarch_byte_order.
634 * p-lang.c (pascal_printstr):
635 Use type_byte_order instead of gdbarch_byte_order.
636 * p-valprint.c (pascal_val_print):
637 Use type_byte_order instead of gdbarch_byte_order.
638 * printcmd.c (print_scalar_formatted):
639 Use type_byte_order instead of gdbarch_byte_order.
640 * solib-darwin.c (darwin_current_sos):
641 Use type_byte_order instead of gdbarch_byte_order.
642 * solib-svr4.c (solib_svr4_r_ldsomap):
643 Use type_byte_order instead of gdbarch_byte_order.
644 * stap-probe.c (stap_modify_semaphore):
645 Use type_byte_order instead of gdbarch_byte_order.
646 * target-float.c (target_float_same_format_p):
647 Use type_byte_order instead of gdbarch_byte_order.
648 * valarith.c (scalar_binop):
649 (value_bit_index):
650 Use type_byte_order instead of gdbarch_byte_order.
651 * valops.c (value_cast):
652 Use type_byte_order instead of gdbarch_byte_order.
653 * valprint.c (generic_emit_char):
654 (generic_printstr):
655 (val_print_string):
656 Use type_byte_order instead of gdbarch_byte_order.
657 * value.c (unpack_long):
658 (unpack_bits_as_long):
659 (unpack_value_bitfield):
660 (modify_field):
661 (pack_long):
662 (pack_unsigned_long):
663 Use type_byte_order instead of gdbarch_byte_order.
664 * findvar.c (unsigned_pointer_to_address):
665 (signed_pointer_to_address):
666 (unsigned_address_to_pointer):
667 (address_to_signed_pointer):
668 (default_read_var_value):
669 (default_value_from_register):
670 Use type_byte_order instead of gdbarch_byte_order.
671 * gnu-v3-abi.c (gnuv3_make_method_ptr):
672 Use type_byte_order instead of gdbarch_byte_order.
673 * riscv-tdep.c (riscv_print_one_register_info):
674 Use type_byte_order instead of gdbarch_byte_order.
675
676 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
677
678 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
679 (current_ui_gdb_stdin_ptr): Likewise.
680 (current_ui_gdb_stderr_ptr): Likewise.
681 (current_ui_gdb_stdlog_ptr): Likewise.
682 (current_ui_current_uiout_ptr): Likewise.
683 (gen_ret_current_ui_field_ptr): Remove.
684
685 2019-11-21 Tom de Vries <tdevries@suse.de>
686
687 PR gdb/24956
688 * cli/cli-script.c (execute_control_command): Only switch to
689 INTERP_CONSOLE's ui_out when INTERP_MI is active.
690
691 2019-11-19 Tom Tromey <tom@tromey.com>
692
693 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
694 Now static. Change type of "name".
695 (tui_set_win_height_command): Don't copy "arg".
696 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
697 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
698
699 2019-11-19 Ali Tamur <tamur@google.com>
700
701 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
702 "if (attr != nullptr)".
703 (dwarf2_find_base_address): Likewise.
704 (dwarf2_build_include_psymtabs): Likewise.
705 (read_cutu_die_from_dwo): Likewise.
706 (read_func_scope): Likewise.
707 (read_call_site_scope): Likewise.
708 (dwarf2_get_pc_bounds): Likewise.
709 (dwarf2_record_block_ranges): Likewise.
710 (dwarf2_add_field): Likewise.
711 (dwarf2_add_member_fn): Likewise.
712 (read_structure_type): Likewise.
713 (read_enumeration_type): Likewise.
714 (read_array_type): Likewise.
715 (read_array_order): Likewise.
716 (read_set_type): Likewise.
717 (read_common_block): Likewise.
718 (read_tag_reference_type): Likewise.
719 (read_tag_string_type): Likewise.
720 (read_subroutine_type): Likewise.
721 (read_base_type): Likewise.
722 (read_subrange_type): Likewise.
723 (new_symbol): Likewise.
724 (prepare_one_comp_unit): Likewise.
725
726 2019-11-19 Tom Tromey <tromey@adacore.com>
727
728 * windows-nat.c (windows_nat_target::attach): Include GetLastError
729 result in error when DebugActiveProcess fails.
730
731 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
732 Pedro Alves <palves@redhat.com>
733
734 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
735 * target.c (target_stack::push): Call 'unpush' if there's a
736 target on top of the stack.
737
738 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
739
740 * python/py-block.c (blpy_dealloc): Call tp_free.
741 (blpy_block_syms_dealloc): Likewise.
742 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
743 * python/py-inferior.c (infpy_dealloc): Likewise.
744 * python/py-lazy-string.c (stpy_dealloc): Likewise.
745 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
746 * python/py-symbol.c (sympy_dealloc): Likewise.
747 * python/py-symtab.c (stpy_dealloc): Likewise.
748 * python/py-type.c (typy_iterator_dealloc): Likewise.
749
750 2019-11-18 Christian Biesinger <cbiesinger@google.com>
751
752 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
753 constructor instead of using a class initializer.
754
755 2019-11-15 Christian Biesinger <cbiesinger@google.com>
756
757 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
758 * configure: Regenerate.
759 * configure.ac: Don't source common.host.
760 * gdbsupport/common.host: Remove.
761 * gdbsupport/mingw-strerror.c: Remove.
762 * gdbsupport/posix-strerror.c: Rename to...
763 * gdbsupport/safe-strerror.c: ...this.
764
765 2019-11-15 Christian Biesinger <cbiesinger@google.com>
766
767 * maint.c (scoped_command_stats::print_time): Use localtime_r
768 instead of localtime (provided through gnulib if necessary).
769 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
770 of ctime.
771
772 2019-11-15 Christian Biesinger <cbiesinger@google.com>
773
774 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
775 avoid compile errors.
776
777 2019-11-15 Christian Biesinger <cbiesinger@google.com>
778
779 * config.in: Regenerate.
780 * configure: Regenerate.
781 * gdbsupport/common.m4: No longer check for strerror_r.
782 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
783 POSIX version of strerror_r, now that gnulib provides it if
784 necessary.
785
786 2019-11-14 Christian Biesinger <cbiesinger@google.com>
787
788 * README (`configure' options): Update.
789
790 2019-11-14 Tom Tromey <tromey@adacore.com>
791
792 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
793 expected type for the RHS if the LHS is a convenience variable.
794
795 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
796
797 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
798 Provide explicit default and copy constructor.
799
800 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
801
802 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
803 only call Py_INCREF (newbp) in the bppy_pending_object case.
804
805 2019-11-13 Tom Tromey <tromey@adacore.com>
806
807 PR build/25182:
808 * psympriv.h (partial_symbol): Remove static assert.
809 * symtab.h (general_symbol_info, symbol): Remove static assert.
810
811 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
812
813 * gdbsupport/format.c (format_pieces::format_pieces): Support
814 printf 'z' size modifier.
815 * gdbsupport/format.h (enum argclass): Add size_t_arg.
816 * printcmd.c (ui_printf): Handle size_t_arg.
817 * ui-out.c (ui_out::vmessage): Likewise.
818 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
819 function.
820 (run_tests): Call test_format_int_sizes.
821
822 2019-11-12 Christian Biesinger <cbiesinger@google.com>
823
824 * ada-exp.y (write_ambiguous_var): Update.
825 * buildsym.c (add_symbol_to_list): Update.
826 * dwarf2read.c (read_variable): Update.
827 (new_symbol): Update.
828 * jit.c (finalize_symtab): Update.
829 * language.c (language_alloc_type_symbol): Update.
830 * symtab.c (fixup_symbol_section): Update.
831 (initialize_objfile_symbol_1): Move code to...
832 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
833 (allocate_symbol): Update.
834 (allocate_template_symbol): Update.
835 (get_symbol_address): Update.
836 * symtab.h (struct symbol): Inherit from general_symbol_info instead
837 of having as a field, and add a constructor.
838 (SYMBOL_VALUE): Update.
839 (SYMBOL_VALUE_ADDRESS): Update.
840 (SET_SYMBOL_VALUE_ADDRESS): Update.
841 (SYMBOL_VALUE_BYTES): Update.
842 (SYMBOL_VALUE_COMMON_BLOCK): Update.
843 (SYMBOL_BLOCK_VALUE): Update.
844 (SYMBOL_VALUE_CHAIN): Update.
845 (SYMBOL_LANGUAGE): Update.
846 (SYMBOL_SECTION): Update.
847 (SYMBOL_OBJ_SECTION): Update.
848 (SYMBOL_SET_LANGUAGE): Update.
849 (SYMBOL_SET_LINKAGE_NAME): Update.
850 (SYMBOL_SET_NAMES): Update.
851 (SYMBOL_NATURAL_NAME): Update.
852 (SYMBOL_LINKAGE_NAME): Update.
853 (SYMBOL_DEMANGLED_NAME): Update.
854 (SYMBOL_SEARCH_NAME): Update.
855 (SYMBOL_MATCHES_SEARCH_NAME): Update.
856 (struct symbol): Update.
857 (struct template_symbol): Update.
858 (struct rust_vtable_symbol): Update.
859 * xcoffread.c (SYMBOL_DUP): Update.
860
861 2019-11-12 Tom Tromey <tom@tromey.com>
862
863 * tui/tui-layout.c (show_layout): Set current_layout.
864 (show_source_disasm_command, show_data)
865 (show_source_or_disasm_and_command): Don't set current_layout.
866
867 2019-11-12 Tom Tromey <tom@tromey.com>
868
869 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
870
871 2019-11-12 Tom Tromey <tom@tromey.com>
872
873 * tui/tui-win.c (resize_message): New global.
874 (show_tui_resize_message): New function.
875 (tui_async_resize_screen): Print message if requested.
876 (_initialize_tui_win): Add tui-resize-message setting.
877 * NEWS: Add entry for new commands.
878
879 2019-11-11 Tom Tromey <tom@tromey.com>
880
881 * tui/tui.c (tui_initialize_readline): Add new bindable readline
882 functions.
883
884 2019-11-11 Christian Biesinger <cbiesinger@google.com>
885
886 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
887
888 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
889
890 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
891 function.
892 * python/python-internal.h (gdbpy_lookup_static_symbols):
893 Declare new function.
894 * python/python.c (python_GdbMethods): Add
895 gdb.lookup_static_symbols method.
896 * NEWS: Mention gdb.lookup_static_symbols.
897
898 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
899
900 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
901 static block of current object file first. Also fix typo in
902 header comment.
903
904 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
905
906 * stack.c (set_last_displayed_sal): Delete.
907 (last_displayed_sal_valid): Delete.
908 (last_displayed_pspace): Delete.
909 (last_displayed_addr): Delete.
910 (last_displayed_symtab): Delete.
911 (last_displayed_line): Delete.
912 (class last_displayed_symtab_info_type): New.
913 (last_displayed_symtab_info): New static global variable.
914 (print_frame_info): Call methods on last_displayed_symtab_info.
915 (clear_last_displayed_sal): Update header comment, and make use of
916 last_displayed_symtab_info.
917 (last_displayed_sal_is_valid): Likewise.
918 (get_last_displayed_pspace): Likewise.
919 (get_last_displayed_addr): Likewise.
920 (get_last_displayed_symtab): Likewise.
921 (get_last_displayed_line): Likewise.
922 (get_last_displayed_sal): Likewise.
923 * stack.h (clear_last_displayed_sal): Update header comment.
924 (last_displayed_sal_is_valid): Likewise.
925 (get_last_displayed_pspace): Likewise.
926 (get_last_displayed_addr): Likewise.
927 (get_last_displayed_symtab): Likewise.
928 (get_last_displayed_line): Likewise.
929 (get_last_displayed_sal): Likewise.
930
931 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
932
933 * stack.c (frame_show_address): Convert return type to bool.
934 * stack.h (frame_show_address): Likewise, and update header
935 comment.
936
937 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
938
939 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
940 * unittests/vec-utils-selftests.c: New file.
941 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
942
943 2019-11-10 Tom Tromey <tom@tromey.com>
944
945 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
946 (tui_highlight_win): Likewise.
947 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
948 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
949 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
950 Don't set can_highlight.
951
952 2019-11-10 Tom Tromey <tom@tromey.com>
953
954 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
955 Remove unused declaration.
956
957 2019-11-08 Tom Tromey <tromey@adacore.com>
958
959 * top.c (read_command_file): Update.
960 (command_line_input): Make return type const.
961 * python/py-gdb-readline.c: Update.
962 * linespec.c (decode_line_2): Update.
963 * defs.h (command_line_input): Make return type const.
964 * cli/cli-script.c (read_next_line): Make return type const.
965 * ada-lang.c (get_selections): Update.
966
967 2019-11-06 Christian Biesinger <cbiesinger@google.com>
968
969 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
970 * mi/mi-main.c (output_cores): Likewise.
971 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
972 (linux_xfer_osdata_modules): Likewise.
973 * remote.c (register_remote_support_xml): Likewise.
974 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
975 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
976
977 2019-11-06 Tom Tromey <tom@tromey.com>
978
979 * tui/tui-interp.c: Don't include readline.h.
980 * tui/tui-hooks.c: Don't include readline.h.
981 * symmisc.c: Include tilde.h, not readline.h.
982 * symfile.c: Include tilde.h, not readline.h.
983 * source.c: Include tilde.h, not readline.h.
984 * solib.c: Include tilde.h, not readline.h.
985 * psymtab.c: Include tilde.h, not readline.h.
986 * exec.c: Include tilde.h, not readline.h.
987 * corelow.c: Include tilde.h, not readline.h.
988 * cli/cli-dump.c: Include tilde.h, not readline.h.
989 * cli/cli-cmds.c: Don't include readline.h.
990
991 2019-11-05 Tom Tromey <tom@tromey.com>
992
993 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
994 (tui_disassemble): Set addr_size.
995 (tui_disasm_window::set_contents): Use addr_size.
996
997 2019-11-05 Tom Tromey <tom@tromey.com>
998
999 * rust-lang.c (rust_language_defn): Update.
1000 * python/py-value.c (valpy_string): Call c_get_string.
1001 * p-lang.c (pascal_language_defn): Update.
1002 * opencl-lang.c (opencl_language_defn): Update.
1003 * objc-lang.c (objc_language_defn): Update.
1004 * m2-lang.c (m2_language_defn): Update.
1005 * language.c (unknown_language_defn, auto_language_defn): Update.
1006 (default_get_string): Remove.
1007 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1008 * go-lang.c (go_language_defn): Update.
1009 * f-lang.c (f_language_defn): Update.
1010 * d-lang.c (d_language_defn): Update.
1011 * c-lang.c (c_language_defn, cplus_language_defn)
1012 (asm_language_defn, minimal_language_defn): Update.
1013 * ada-lang.c (ada_language_defn): Update.
1014 * language.h (struct language_defn) <la_get_string>: Remove.
1015 (LA_GET_STRING): Remove.
1016 (default_get_string): Don't declare.
1017
1018 2019-11-05 Tom Tromey <tom@tromey.com>
1019
1020 * tui/tui-source.h (struct tui_source_window): Inline
1021 constructor. Remove destructor.
1022 <style_changed, m_observable>: Move to superclass.
1023 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1024 (struct tui_source_window_base): Move private members to end.
1025 <style_changed, m_observable>: Move from tui_source_window.
1026 * tui/tui-winsource.c (tui_copy_source_line): Move from
1027 tui-source.c. Rename from copy_source_line. Add special handling
1028 for negative line number.
1029 (tui_source_window_base::style_changed): Move from
1030 tui_source_window.
1031 (tui_source_window_base): Register observer.
1032 (~tui_source_window_base): New.
1033 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1034 rename.
1035 (tui_source_window::set_contents): Use tui_copy_source_line.
1036 (tui_source_window::tui_source_window): Move to tui-source.h.
1037 (tui_source_window::~tui_source_window): Remove.
1038 (tui_source_window::style_changed): Move to superclass.
1039 * tui/tui-disasm.c (tui_disassemble): Create string file with
1040 styling, when possible. Add "addr_size" parameter.
1041 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1042 Don't compute maximum size.
1043 (len_without_escapes): New function
1044
1045 2019-11-05 Tom Tromey <tom@tromey.com>
1046
1047 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1048 std::string.
1049 * tui/tui-winsource.c (tui_show_source_line): Update.
1050 * tui/tui-source.c (tui_source_window::set_contents): Update.
1051 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1052
1053 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1054
1055 * symtab.h (gdb_static_assert): Put && operator at the beginning
1056 of the line instead of the end.
1057
1058 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1059
1060 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1061 and sizeof (symbol).
1062 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1063
1064 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1065
1066 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1067 * configure.host: Mark *-*-solaris2.10* obsolete.
1068 * configure.tgt: Mark Solaris < 11 obsolete.
1069 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1070 Update target triplet.
1071
1072 2019-11-01 Tom Tromey <tromey@adacore.com>
1073
1074 * utils.c (print_sys_errmsg): Simplify.
1075
1076 2019-11-01 Tom Tromey <tromey@adacore.com>
1077
1078 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1079
1080 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1081
1082 * configure: Regenerate.
1083 * configure.ac: Remove check for strerror_r.
1084 * gdbsupport/common.m4: Check for strerror_r.
1085
1086 2019-11-01 Luis Machado <luis.machado@linaro.org>
1087
1088 PR gdb/25124
1089
1090 * arm-tdep.c (arm_per_objfile): Rename to ...
1091 (arm_per_bfd): ... this.
1092 (arm_objfile_data_key): Rename to ...
1093 (arm_bfd_data_key): ... this.
1094 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1095 data.
1096 (arm_record_special_symbol): Likewise.
1097
1098 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1099
1100 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1101 end.
1102 * c-typeprint.c (c_print_typedef): Likewise.
1103 * f-typeprint.c (f_print_typedef): Likewise.
1104 * m2-typeprint.c (m2_print_typedef): Likewise.
1105 * p-typeprint.c (pascal_print_typedef): Likewise.
1106 * rust-lang.c (rust_print_typedef): Likewise.
1107 * symtab.c (print_symbol_info): Print a newline after calling
1108 typedef_print.
1109
1110 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1111
1112 * symtab.c (info_module_cmdlist): New variable.
1113 (info_module_command): New function.
1114 (search_module_symbols): New function.
1115 (info_module_subcommand): New function.
1116 (struct info_modules_var_func_options): New struct.
1117 (info_modules_var_func_options_defs): New variable.
1118 (make_info_modules_var_func_options_def_group): New function.
1119 (info_module_functions_command): New function.
1120 (info_module_variables_command): New function.
1121 (info_module_var_func_command_completer): New function.
1122 (_initialize_symtab): Register new 'info module functions' and
1123 'info module variables' commands.
1124 * symtab.h (typedef symbol_search_in_module): New typedef.
1125 (search_module_symbols): Declare new function.
1126 * NEWS: Mention new commands.
1127
1128 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1129
1130 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1131 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1132 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1133 MODULES_DOMAIN.
1134 (scan_partial_symbols): Only create partial module symbols for non
1135 declarations.
1136 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1137 and MODULES_DOMAIN.
1138 * symtab.c (search_domain_name): Likewise.
1139 (search_symbols): Likewise.
1140 (print_symbol_info): Likewise.
1141 (symtab_symbol_info): Likewise.
1142 (info_modules_command): New function.
1143 (_initialize_symtab): Register 'info modules' command.
1144 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1145 * NEWS: Mention new 'info modules' command.
1146
1147 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1148
1149 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1150 and $_gdb_maint_setting_str.
1151
1152 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1153
1154 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1155 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1156 (str_value_from_setting, gdb_setting_str_internal_fn)
1157 (gdb_maint_setting_str_internal_fn): New functions.
1158 (_initialize_cli_cmds): Define the new convenience functions.
1159 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1160 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1161
1162 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1163
1164 * agent.c (set_can_use_agent): When the setting is turned on,
1165 look up agent symbols if we don't have them yet.
1166 (agent_new_objfile): Don't look up agent symbols when the agent
1167 setting is off.
1168
1169 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1170
1171 * config.in: Regenerate.
1172
1173 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1174
1175 * configure: Regenerate.
1176 * configure.ac: Check for strerror_r.
1177 * gdbsupport/common-utils.h (safe_strerror): Change return value
1178 to const char * and document that this function is now threadsafe.
1179 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1180 thread_local and call strerror_r, if available.
1181 * utils.c (perror_string): Update.
1182 (print_sys_errmsg): Update.
1183
1184 2019-10-31 Luis Machado <luis.machado@linaro.org>
1185
1186 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1187 objfile_key.
1188 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1189 objfile to fetch per-bfd data.
1190 (arm_find_exidx_entry): Likewise.
1191
1192 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1193
1194 * gdbsupport/agent.c (debug_agent): Change type to bool.
1195 (use_agent): Likewise.
1196 (all_agent_symbols_look_up): Likewise.
1197 (agent_loaded_p): Change return value to bool.
1198 (agent_look_up_symbols): Update.
1199 (agent_capability_check): Change return value to bool.
1200 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1201 (debug_agent): Change type to bool.
1202 (use_agent): Likewise.
1203 (agent_capability_check): Change return value to bool.
1204
1205 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1206
1207 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1208 (build_minimal_symbol_hash_tables): Code to clear the table moved
1209 to clear_minimal_symbol_hash_tables.
1210 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1211 when needed.
1212
1213 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1214
1215 * infcmd.c: Remove includes.
1216 * infrun.c: Remove includes.
1217
1218 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1219
1220 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1221 (grow_vect): Remove declaration.
1222 (ada_type_of_array): Remove declaration.
1223 (ada_update_initial_language): Remove declaration.
1224 (ada_fold_name): Remove declaration.
1225 (ada_fill_in_ada_prototype): Remove declaration.
1226 (user_select_syms): Remove declaration.
1227 (get_selections): Remove declaration.
1228 (ada_tag_type): Remove declaration.
1229 (ada_value_tag): Remove declaration.
1230 (ada_is_others_clause): Remove declaration.
1231 (ada_in_variant): Remove declaration.
1232 (ada_value_struct_elt): Remove declaration.
1233 (ada_attribute_name): Remove declaration.
1234 (ada_system_address_type): Remove declaration.
1235 * ada-lang.c (ada_watch_location_expression): Make static.
1236 (GROW_VECT): Move here from ada-lang.h.
1237 (grow_vect): Make static.
1238 (ada_update_initial_language): Make static.
1239 (ada_fold_name): Make static.
1240 (ada_type_of_array): Make static.
1241 (encoded_ordered_before): Move up.
1242 (sort_choices): Move up.
1243 (print_signatures): Move up.
1244 (ada_print_symbol_signature): Move up.
1245 (get_selections): Move up and make static.
1246 (user_select_syms): Move up and make static.
1247 (ada_value_struct_elt): Move up and make static.
1248 (ada_tag_type): Make static.
1249 (ada_value_tag): Make static.
1250 (ada_is_others_clause): Make static.
1251 (ada_in_variant): Make static.
1252 (ada_attribute_name): Make static.
1253
1254 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1255
1256 * ada-lang.c: Remove includes.
1257 * ada-typeprint.c: Remove includes.
1258 * ada-valprint.c: Remove includes.
1259
1260 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1261
1262 * addrmap.c: Add static assertions of type size, moved from
1263 _initialize_addrmap.
1264 (_initialize_addrmap): Remove.
1265
1266 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1267
1268 * coffread.c (record_minimal_symbol): Update.
1269 (process_coff_symbol): Update.
1270 * dbxread.c (read_dbx_symtab): Update.
1271 * dwarf2read.c (add_partial_symbol): Update.
1272 (fixup_go_packaging): Update.
1273 (load_partial_dies): Update.
1274 (new_symbol): Update.
1275 * elfread.c (record_minimal_symbol): Change signature to use
1276 gdb::string_view instead of name+len.
1277 (elf_symtab_read): Update.
1278 (elf_rel_plt_read): Update.
1279 * mdebugread.c (parse_partial_symbols): Update.
1280 (handle_psymbol_enumerators): Update.
1281 (new_symbol): Update.
1282 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1283 to use gdb::string_view instead of name+len.
1284 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1285 * psympriv.h (add_psymbol_to_list): Likewise.
1286 * psymtab.c (add_psymbol_to_bcache): Likewise.
1287 (add_psymbol_to_list): Likewise.
1288 * stabsread.c (define_symbol): Update.
1289 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1290 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1291 (symbol_set_names): Likewise.
1292 * xcoffread.c (scan_xcoff_symtab): Update.
1293
1294 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1295
1296 * symtab.h (symbol_set_names): Document that copy_name must be
1297 set to true for non-nullterminated strings.
1298 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1299 linkage_name if the entry was not found and we need to demangle.
1300
1301 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1302
1303 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1304 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1305 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1306 * gdbsupport/gdb_binary_search.h: New file.
1307
1308 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1309
1310 * NEWS: Mention new --with-system-gdbinit-dir option.
1311 * config.in: Regenerate.
1312 * configure: Regenerate.
1313 * configure.ac: Add new option --with-system-gdbinit-dir.
1314 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1315 for a ".gdb" suffix.
1316 * main.c (get_init_files): Change system_gdbinit argument to
1317 a vector and return the files in SYSTEM_GDBINIT_DIR in
1318 addition to SYSTEM_GDBINIT.
1319 (captured_main_1): Update.
1320 (print_gdb_help): Update.
1321 * top.c (print_gdb_configuration): Also print the value of
1322 SYSTEM_GDBINIT_DIR.
1323
1324 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1325
1326 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1327 that takes gdb::string_view arguments.
1328
1329 2019-10-26 Tom de Vries <tdevries@suse.de>
1330
1331 * aarch64-linux-tdep.c: Fix typos in comments.
1332 * aarch64-tdep.c: Same.
1333 * ada-lang.c: Same.
1334 * amd64-nat.c: Same.
1335 * arc-tdep.c: Same.
1336 * arch/aarch64-insn.c: Same.
1337 * block.c: Same.
1338 * breakpoint.h: Same.
1339 * btrace.h: Same.
1340 * c-varobj.c: Same.
1341 * cli/cli-decode.c: Same.
1342 * cli/cli-script.c: Same.
1343 * cli/cli-utils.h: Same.
1344 * coff-pe-read.c: Same.
1345 * coffread.c: Same.
1346 * compile/compile-cplus-symbols.c: Same.
1347 * compile/compile-object-run.c: Same.
1348 * completer.c: Same.
1349 * corelow.c: Same.
1350 * cp-support.c: Same.
1351 * demangle.c: Same.
1352 * dwarf-index-write.c: Same.
1353 * dwarf2-frame.c: Same.
1354 * dwarf2-frame.h: Same.
1355 * eval.c: Same.
1356 * frame-base.h: Same.
1357 * frame.h: Same.
1358 * gdbcmd.h: Same.
1359 * gdbtypes.h: Same.
1360 * gnu-nat.c: Same.
1361 * guile/scm-objfile.c: Same.
1362 * i386-tdep.c: Same.
1363 * i386-tdep.h: Same.
1364 * infcall.c: Same.
1365 * infcall.h: Same.
1366 * linux-nat.c: Same.
1367 * m68k-tdep.c: Same.
1368 * macroexp.c: Same.
1369 * memattr.c: Same.
1370 * mi/mi-cmd-disas.c: Same.
1371 * mi/mi-getopt.h: Same.
1372 * mi/mi-main.c: Same.
1373 * minsyms.c: Same.
1374 * nat/aarch64-sve-linux-sigcontext.h: Same.
1375 * objfiles.h: Same.
1376 * ppc-linux-nat.c: Same.
1377 * ppc-linux-tdep.c: Same.
1378 * ppc-tdep.h: Same.
1379 * progspace.h: Same.
1380 * prologue-value.h: Same.
1381 * python/py-evtregistry.c: Same.
1382 * python/py-instruction.h: Same.
1383 * record-btrace.c: Same.
1384 * record-full.c: Same.
1385 * remote.c: Same.
1386 * rs6000-tdep.c: Same.
1387 * ser-tcp.c: Same.
1388 * sol-thread.c: Same.
1389 * sparc-sol2-tdep.c: Same.
1390 * sparc64-tdep.c: Same.
1391 * stabsread.c: Same.
1392 * symfile.c: Same.
1393 * symtab.h: Same.
1394 * target.c: Same.
1395 * tracepoint.c: Same.
1396 * tui/tui-data.h: Same.
1397 * tui/tui-io.c: Same.
1398 * tui/tui-win.c: Same.
1399 * tui/tui.c: Same.
1400 * unittests/rsp-low-selftests.c: Same.
1401 * user-regs.h: Same.
1402 * utils.c: Same.
1403 * utils.h: Same.
1404 * valarith.c: Same.
1405 * valops.c: Same.
1406 * valprint.c: Same.
1407 * valprint.h: Same.
1408 * value.c: Same.
1409 * value.h: Same.
1410 * varobj.c: Same.
1411 * x86-nat.h: Same.
1412 * xtensa-tdep.c: Same.
1413
1414 2019-10-25 Ali Tamur <tamur@google.com>
1415
1416 * charset.c (find_charset_names): Reflect API change.
1417
1418 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1419
1420 * symtab.c (struct demangled_name_entry): Change demangled name
1421 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1422 part of the struct anymore.
1423 (symbol_set_names): No longer obstack allocate + copy the demangled
1424 name, just store the allocated name from bfd.
1425
1426 2019-10-25 Tom Tromey <tromey@adacore.com>
1427
1428 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1429 (bsearch_cie_cmp, add_cie): Remove.
1430 (find_cie): Reimplement.
1431 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1432 (dwarf2_build_frame_info): Update.
1433
1434 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1435
1436 PR gdb/25126
1437 * symfile.c (reread_symbols): Call forget_cached_source_info to
1438 clear the stale source cache.
1439
1440 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1441
1442 * configure: Regenerate.
1443 * configure.ac: Remove code that sets python_has_threads.
1444
1445 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1446
1447 * config.in: Regenerate.
1448 * configure: Regenerate.
1449 * configure.ac: Remove the code that uses sed to get the python
1450 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1451
1452 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1453
1454 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1455 error paths.
1456
1457 2019-10-23 Tom Tromey <tom@tromey.com>
1458
1459 * arc-tdep.c: Remove ".." from include.
1460 * frv-tdep.c: Remove ".." from include.
1461 * lm32-tdep.c: Remove ".." from include.
1462 * microblaze-tdep.c: Remove ".." from include.
1463 * or1k-tdep.h: Remove ".." from include.
1464 * s12z-tdep.c: Remove ".." from include.
1465 * Makefile.in (OPCODES_CFLAGS): Add comment.
1466 (TOP_CFLAGS): New variable.
1467 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1468
1469 2019-10-23 Tom Tromey <tom@tromey.com>
1470
1471 * Makefile.in (READLINE_DIR): Update.
1472
1473 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1474
1475 * infcall.c (call_function_by_hand_dummy): Fix the function
1476 comment. And extract out a code section into...
1477 (reserve_stack_space): ...this new function.
1478
1479 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1480
1481 * infcall.c (value_arg_coerce): Remove an unused parameter.
1482 (call_function_by_hand_dummy): Update the call to
1483 'value_arg_coerce'.
1484
1485 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1486
1487 * infcall.c (call_function_by_hand_dummy): Refactor.
1488
1489 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1490
1491 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1492
1493 2019-10-23 Tom Tromey <tom@tromey.com>
1494
1495 * configure: Rebuild.
1496 * configure.ac: Don't check for sigprocmask.
1497 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1498
1499 2019-10-23 Tom Tromey <tom@tromey.com>
1500
1501 * configure: Rebuild.
1502 * acinclude.m4: Use m4_include, not sinclude.
1503
1504 2019-10-23 Tom de Vries <tdevries@suse.de>
1505
1506 PR breakpoints/24687
1507 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1508
1509 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1510
1511 * symtab.c (struct demangled_name_entry) <language>: Change from
1512 bitfield to regular variable.
1513
1514 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1515
1516 * symtab.c (struct demangled_name_entry): Add a constructor.
1517 (free_demangled_name_entry): New function to call the destructor
1518 for demangled_name_entry.
1519 (create_demangled_names_hash): Pass free_demangled_name_entry to
1520 htab_create_alloc.
1521 (symbol_set_names): Call placement new for demangled_name_entry.
1522 * utils.c: No longer include xxhash.h here, now that fast_hash
1523 is inlined in the header.
1524 * utils.h: Instead, include it here.
1525
1526 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1527
1528 * Makefile.in: Link with libxxhash.
1529 * config.in: Regenerate.
1530 * configure: Regenerate.
1531 * configure.ac: Search for libxxhash.
1532 * utils.c (fast_hash): Use xxhash if present.
1533
1534 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1535
1536 * utils.h (fast_hash): New function.
1537 * symtab.c (hash_demangled_name_entry): Call new function
1538 fast_hash.
1539
1540 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1541
1542 * symtab.c (struct demangled_name_entry): Change type of mangled
1543 to gdb::string_view. Also adds a constructor that takes the
1544 mangled name.
1545 (hash_demangled_name_entry): Update.
1546 (eq_demangled_name_entry): Update.
1547 (free_demangled_name_entry): New function to call the destructor
1548 now that this is not a POD anymore.
1549 (create_demangled_names_hash): Pass free_demangled_name_entry to
1550 htab_create_alloc.
1551 (symbol_set_names): Update.
1552
1553 2019-10-21 Ali Tamur <tamu@google.com>
1554
1555 * dwarf2read.c (dir_index): Change type.
1556 (file_name_index): Likewise.
1557 (line_header::include_dir_at): Change comment and implementation on
1558 whether it is DWARF 5.
1559 (line_header::is_valid_file_index): New function.
1560 (line_header::file_name_at): Change comment and implementation on
1561 whether it is DWARF 5.
1562 (line_header::file_names): Change to private field renamed as
1563 m_file_names and introduce a new accessor method.
1564 (line_header::file_names_size): New method.
1565 (line_header::include_dirs): Change to private field and rename as
1566 m_include_dirs.
1567 (dw2_get_file_names_reader): Define local var at a smaller scope and
1568 reflect API change.
1569 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1570 (process_structure_scope): Likewise.
1571 (line_header::add_include_dir): Change message and reflect renaming.
1572 (line_header::add_file_name): Likewise.
1573 (read_formatted_entries): Handle DW_FORM_data16.
1574 (dwarf_decode_line_header): Fix line header length calculation.
1575 (psymtab_include_file_name): Change comment and API.
1576 (lnp_state_machine::m_file): Update comment and reflect type change.
1577 (lnp_state_machine::record_line): Reflect type change.
1578 (dwarf_decode_lines): Reflect API change.
1579 (file_file_name): Likewise.
1580 (file_full_name): Likewise.
1581
1582 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1583
1584 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1585
1586 2019-10-21 Tom Tromey <tom@tromey.com>
1587
1588 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1589
1590 2019-10-21 Tom Tromey <tom@tromey.com>
1591
1592 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1593 NM_H. Use AC_CONFIG_LINKS.
1594 * configure: Rebuild.
1595 * Makefile.in (NM_H): New variable.
1596 (generated_files): Add NM_H. Remove gcore.
1597 (nm.h, stamp-nmh): New targets.
1598
1599 2019-10-20 Tom Tromey <tom@tromey.com>
1600
1601 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1602 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1603 obsolete comment.
1604 (put_objfile_before): Now static.
1605
1606 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1607
1608 * gdbsupport/common-utils.h (startswith): Change return type to
1609 bool.
1610
1611 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1612
1613 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1614 * breakpoint.c (bp_locations_compare): Rename to...
1615 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1616 (update_global_location_list): Use std::sort instead of qsort.
1617 * buildsym.c (compare_line_numbers): Rename to...
1618 (lte_is_less_than): ...this, and change to std::sort semantics.
1619 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1620 instead of qsort.
1621 * disasm.c (compare_lines): Rename to...
1622 (line_is_less_than): ...this, and change to std::sort semantics.
1623 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1624 of qsort.
1625 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1626 (fde_is_less_than): ...this, and change to std::sort semantics.
1627 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1628 * mdebugread.c (compare_blocks):
1629 (block_is_less_than): ...this, and change to std::sort semantics.
1630 (sort_blocks): Call std::sort instead of qsort.
1631 * objfiles.c (qsort_cmp): Rename to...
1632 (sort_cmp): ...this, and change to std::sort semantics.
1633 (update_section_map): Call std::sort instead of qsort.
1634 * remote.c (compare_pnums): Remove.
1635 (map_regcache_remote_table): Call std::sort instead of qsort.
1636 * utils.c (compare_positive_ints): Remove.
1637 * utils.h (compare_positive_ints): Remove.
1638 * xcoffread.c (compare_lte): Remove.
1639 (arrange_linetable): Call std::sort instead of qsort.
1640
1641 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1642
1643 * symfile.c (init_entry_point_info): Fix typo.
1644 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1645
1646 2019-10-18 Tom de Vries <tdevries@suse.de>
1647
1648 * aarch64-tdep.c: Fix typos in comments.
1649 * ada-lang.c: Same.
1650 * ada-tasks.c: Same.
1651 * alpha-tdep.c: Same.
1652 * alpha-tdep.h: Same.
1653 * amd64-nat.c: Same.
1654 * amd64-windows-tdep.c: Same.
1655 * arc-tdep.c: Same.
1656 * arc-tdep.h: Same.
1657 * arch-utils.c: Same.
1658 * arm-nbsd-tdep.c: Same.
1659 * arm-tdep.c: Same.
1660 * ax-gdb.c: Same.
1661 * blockframe.c: Same.
1662 * btrace.c: Same.
1663 * c-varobj.c: Same.
1664 * coff-pe-read.c: Same.
1665 * coffread.c: Same.
1666 * cris-tdep.c: Same.
1667 * darwin-nat.c: Same.
1668 * dbxread.c: Same.
1669 * dcache.c: Same.
1670 * disasm.c: Same.
1671 * dtrace-probe.c: Same.
1672 * dwarf-index-write.c: Same.
1673 * dwarf2-frame-tailcall.c: Same.
1674 * dwarf2-frame.c: Same.
1675 * dwarf2read.c: Same.
1676 * eval.c: Same.
1677 * exceptions.c: Same.
1678 * fbsd-tdep.c: Same.
1679 * findvar.c: Same.
1680 * frame.c: Same.
1681 * frv-tdep.c: Same.
1682 * gnu-v3-abi.c: Same.
1683 * go32-nat.c: Same.
1684 * h8300-tdep.c: Same.
1685 * hppa-tdep.c: Same.
1686 * i386-linux-tdep.c: Same.
1687 * i386-tdep.c: Same.
1688 * ia64-libunwind-tdep.c: Same.
1689 * ia64-tdep.c: Same.
1690 * infcmd.c: Same.
1691 * infrun.c: Same.
1692 * linespec.c: Same.
1693 * linux-nat.c: Same.
1694 * linux-thread-db.c: Same.
1695 * machoread.c: Same.
1696 * mdebugread.c: Same.
1697 * mep-tdep.c: Same.
1698 * mn10300-tdep.c: Same.
1699 * namespace.c: Same.
1700 * objfiles.c: Same.
1701 * opencl-lang.c: Same.
1702 * or1k-tdep.c: Same.
1703 * osabi.c: Same.
1704 * ppc-linux-nat.c: Same.
1705 * ppc-linux-tdep.c: Same.
1706 * ppc-sysv-tdep.c: Same.
1707 * printcmd.c: Same.
1708 * procfs.c: Same.
1709 * record-btrace.c: Same.
1710 * record-full.c: Same.
1711 * remote-fileio.c: Same.
1712 * remote.c: Same.
1713 * rs6000-tdep.c: Same.
1714 * s12z-tdep.c: Same.
1715 * score-tdep.c: Same.
1716 * ser-base.c: Same.
1717 * ser-go32.c: Same.
1718 * skip.c: Same.
1719 * sol-thread.c: Same.
1720 * solib-svr4.c: Same.
1721 * solib.c: Same.
1722 * source.c: Same.
1723 * sparc-nat.c: Same.
1724 * sparc-sol2-tdep.c: Same.
1725 * sparc-tdep.c: Same.
1726 * sparc64-tdep.c: Same.
1727 * stabsread.c: Same.
1728 * stack.c: Same.
1729 * symfile.c: Same.
1730 * symtab.c: Same.
1731 * target-descriptions.c: Same.
1732 * target-float.c: Same.
1733 * thread.c: Same.
1734 * utils.c: Same.
1735 * valops.c: Same.
1736 * valprint.c: Same.
1737 * value.c: Same.
1738 * varobj.c: Same.
1739 * windows-nat.c: Same.
1740 * xcoffread.c: Same.
1741 * xstormy16-tdep.c: Same.
1742 * xtensa-tdep.c: Same.
1743
1744 2019-10-17 Tom Tromey <tromey@adacore.com>
1745
1746 * configure: Rebuild.
1747 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1748 in AC_CONFIG_FILES invocation.
1749 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1750 new-style config.status invocation.
1751
1752 2019-10-17 Tom de Vries <tdevries@suse.de>
1753
1754 * arm-nbsd-nat.c: Fix typos in comments.
1755 * arm-tdep.c: Same.
1756 * darwin-nat-info.c: Same.
1757 * dwarf2read.c: Same.
1758 * elfread.c: Same.
1759 * event-top.c: Same.
1760 * findvar.c: Same.
1761 * gdbtypes.c: Same.
1762 * hppa-tdep.c: Same.
1763 * i386-tdep.c: Same.
1764 * jit.c: Same.
1765 * main.c: Same.
1766 * mdebugread.c: Same.
1767 * moxie-tdep.c: Same.
1768 * nto-procfs.c: Same.
1769 * osabi.c: Same.
1770 * ppc-linux-tdep.c: Same.
1771 * remote.c: Same.
1772 * riscv-tdep.c: Same.
1773 * s390-tdep.c: Same.
1774 * sh-tdep.c: Same.
1775 * sparc-linux-tdep.c: Same.
1776 * sparc-nat.c: Same.
1777 * stack.c: Same.
1778 * target-descriptions.c: Same.
1779 * top.c: Same.
1780 * varobj.c: Same.
1781
1782 2019-10-16 Tom Tromey <tom@tromey.com>
1783
1784 * objfiles.h (struct objfile) <original_name>: Now const.
1785
1786 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1787
1788 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1789 pass on to sigsetjmp's second argument.
1790 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1791
1792 2019-10-16 Keith Seitz <keiths@redhat.com>
1793
1794 PR gdb/23567
1795 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1796 sections whose size is greater than the file size.
1797
1798 2019-10-16 Jim Wilson <jimw@sifive.com>
1799
1800 * riscv-tdep.c (riscv_gcc_target_options): New.
1801 (riscv_gnu_triplet_regexp): New.
1802 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1803 set_gdbarch_gnu_triplet_regexp.
1804
1805 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1806
1807 * Makefile.in: Add xml-builtin.h.
1808 * features/feature_to_c.sh: Add an include for xml-builtin.h
1809 to ensure that the compiler checks that the types match.
1810 * xml-builtin.h: New file.
1811 * xml-support.c (fetch_xml_builtin): Add missing const.
1812 * xml-support.h: Remove declaration of xml_builtins.
1813
1814 2019-10-16 Tom de Vries <tdevries@suse.de>
1815
1816 PR tdep/25096
1817 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1818 (amd64_classify_aggregate): ... here.
1819 (amd64_classify_aggregate_field): Handled fiels of nested structs
1820 recursively.
1821
1822 2019-10-16 Tom de Vries <tdevries@suse.de>
1823
1824 PR tdep/24104
1825 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1826 that handles 'theclass'.
1827
1828 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1829
1830 * linespec.c (decode_digits_ordinary): Update comment.
1831 * make-target-delegates: No longer need to handle VEC case.
1832 * memrange.c (normalize_mem_ranges): Update comment.
1833 * namespace.c (add_using_directive): Update comment.
1834 * objc-lang.c (uniquify_strings): Update comment.
1835 * ppc-linux-nat.c (struct thread_points): Update comment.
1836 * probe.h (find_probes_in_objfile): Update comment.
1837 * target.h (enum flash_preserve_mode): Update comment.
1838 * varobj.c (varobj_restrict_range): Update comment.
1839 * varobj.h (varobj_list_children): Update comment.
1840
1841 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1842
1843 * Makefile.in: Remove references to vec.h and vec.c.
1844 * aarch64-tdep.c: No longer include vec.h.
1845 * ada-lang.c: Likewise.
1846 * ada-lang.h: Likewise.
1847 * arm-tdep.c: Likewise.
1848 * ax.h: Likewise.
1849 * breakpoint.h: Likewise.
1850 * charset.c: Likewise.
1851 * cp-support.h: Likewise.
1852 * dtrace-probe.c: Likewise.
1853 * dwarf2read.c: Likewise.
1854 * extension.h: Likewise.
1855 * gdb_bfd.c: Likewise.
1856 * gdbsupport/gdb_vecs.h: Likewise.
1857 * gdbsupport/vec.c: Remove.
1858 * gdbsupport/vec.h: Remove.
1859 * gdbthread.h: Likewise.
1860 * guile/scm-type.c: Likewise.
1861 * inline-frame.c: Likewise.
1862 * machoread.c: Likewise.
1863 * memattr.c: Likewise.
1864 * memrange.h: Likewise.
1865 * namespace.h: Likewise.
1866 * nat/linux-btrace.h: Likewise.
1867 * osdata.c: Likewise.
1868 * parser-defs.h: Likewise.
1869 * progspace.h: Likewise.
1870 * python/py-type.c: Likewise.
1871 * record-btrace.c: Likewise.
1872 * rust-exp.y: Likewise.
1873 * solib-target.c: Likewise.
1874 * stap-probe.c: Likewise.
1875 * target-descriptions.c: Likewise.
1876 * target-memory.c: Likewise.
1877 * target.h: Likewise.
1878 * varobj.c: Likewise.
1879 * varobj.h: Likewise.
1880 * xml-support.h: Likewise.
1881
1882 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1883
1884 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1885 Update for new std::vector based implementation.
1886 (process_psymtab_comp_unit_reader): Likewise.
1887 (scan_partial_symbols): Likewise.
1888 (recursively_compute_inclusions): Likewise.
1889 (compute_compunit_symtab_includes): Likewise.
1890 (process_imported_unit_die): Likewise.
1891 (queue_and_load_dwo_tu): Likewise.
1892 (follow_die_sig_1): Likewise.
1893 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1894 (typedef dwarf2_per_cu_ptr): Remove.
1895 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1896 function.
1897 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1898 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1899 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1900 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1901 std::vector.
1902
1903 2019-10-15 Tom Tromey <tromey@adacore.com>
1904
1905 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1906 TID.
1907
1908 2019-10-15 Tom Tromey <tromey@adacore.com>
1909
1910 * windows-nat.c (windows_nat_target::fetch_registers)
1911 (windows_nat_target::store_registers): Rename "pid" to "tid".
1912
1913 2019-10-15 Tom Tromey <tromey@adacore.com>
1914
1915 * gdbarch.h, gdbarch.c: Rebuild.
1916 * gdbarch.sh (gcc_target_options): Change return type to
1917 std::string.
1918 * compile/compile.c (get_args): Update.
1919 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1920 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1921 std::string.
1922 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1923 std::string.
1924 * arch-utils.c (default_gcc_target_options): Return std::string.
1925 * arch-utils.h (default_gcc_target_options): Return std::string.
1926 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1927
1928 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1929
1930 * breakpoint.c (breakpoint_chain): Make static.
1931 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1932 of accessing breakpoint_chain.
1933
1934 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1935
1936 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1937 to a gdb::function_view and return value to bool.
1938 * breakpoint.h (iterate_over_breakpoints): Likewise.
1939 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1940 (pop_dummy_frame): Update.
1941 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1942 (gdbscm_breakpoints): Update.
1943 * python/py-breakpoint.c (build_bp_list): Update.
1944 (gdbpy_breakpoints): Update.
1945 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1946 Update.
1947 (bpfinishpy_handle_stop): Update.
1948 (bpfinishpy_handle_exit): Update.
1949 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1950 (svr4_update_solib_event_breakpoints): Update.
1951
1952 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1953
1954 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1955 when unwrapping single-field structs.
1956
1957 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1958
1959 * dwarf2read.c: Remove includes.
1960
1961 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1962
1963 * ui-out.c (ui_out::call_do_message): Silence
1964 -Wformat-nonliteral warning.
1965
1966 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1967
1968 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1969 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1970 include: readline/tilde.h.
1971
1972 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1973
1974 * remote.c (remote_target::get_trace_status): Remove declaration of
1975 trace_regblock_size.
1976
1977 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1978
1979 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1980 (show_user): Remove declaration of cmdlist.
1981 * cli/cli-cmds.h (max_user_call_depth): Declare.
1982 * cli/cli-script.c (execute_user_command): Remove declaration
1983 of max_user_call_depth.
1984
1985 2019-10-11 Jim Wilson <jimw@sifive.com>
1986
1987 * gdbsupport/print-utils.h (pulongest): Fix comment.
1988 (plongest): Likewise.
1989 (phex): Add missing comment, mention leading zeros.
1990 (phex_nz): Add mention of no leading zeros to comment.
1991
1992 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1993 plongest instead of unsigned long long cast.
1994
1995 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1996
1997 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1998 for external_editor_command and gdbtk_test.
1999
2000 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2001
2002 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2003 * varobj.c (varobjdebug): Move comment to...
2004 * varobj.h (varobjdebug): ...here, and declare.
2005
2006 2019-10-09 Tom Tromey <tom@tromey.com>
2007
2008 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2009 erase_data_content.
2010
2011 2019-10-09 Tom Tromey <tom@tromey.com>
2012
2013 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2014 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2015 * tui/tui-command.c (tui_cmd_window::resize)
2016 (tui_refresh_cmd_win): Update.
2017 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2018 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2019 * tui/tui-data.c (~tui_gen_win_info): Remove.
2020 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2021 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2022 (tui_redisplay_readline, tui_mld_flush)
2023 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2024 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2025 (tui_data_window::erase_data_content)
2026 (tui_data_item_window::rerender)
2027 (tui_data_item_window::refresh_window): Update.
2028 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2029 (box_win, tui_gen_win_info::make_window)
2030 (tui_gen_win_info::make_visible): Update.
2031 (tui_delete_win): Remove.
2032 * tui/tui-winsource.c
2033 (tui_source_window_base::do_erase_source_content): Update.
2034 (tui_show_source_line, tui_source_window_base::update_tab_width)
2035 (tui_source_window_base::update_exec_info): Update.
2036 * tui/tui-data.h (struct curses_deleter): New.
2037 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2038 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2039
2040 2019-10-09 Tom Tromey <tom@tromey.com>
2041
2042 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2043
2044 2019-10-09 Tom Tromey <tom@tromey.com>
2045
2046 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2047 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2048
2049 2019-10-09 Tom Tromey <tom@tromey.com>
2050
2051 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2052 window height directly.
2053 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2054 declare.
2055 * tui/tui-layout.c (tui_default_win_height): Remove.
2056 (tui_default_win_viewport_height): Remove.
2057
2058 2019-10-09 Tom Tromey <tom@tromey.com>
2059
2060 * tui/tui.h: Remove comments.
2061
2062 2019-10-09 Tom de Vries <tdevries@suse.de>
2063
2064 * python/lib/gdb/printer/bound_registers.py: Use
2065 '^builtin_type_bound128' as regexp argument for
2066 add_builtin_pretty_printer.
2067
2068 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2069
2070 * guile/guile.c (guile_extension_script_ops): Remove forward
2071 declaration and mark as static.
2072 (guile_script_ops): Likewise.
2073 (extension_language_guile): Move further down in the file so
2074 it can reference the definitions for guile_{extension_,}script_ops.
2075
2076 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2077
2078 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2079 except SORTL, DFLTCC, and KDSA.
2080
2081 2019-10-08 Tom Tromey <tromey@adacore.com>
2082
2083 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2084 (struct safe_symbol_file_add_args): Remove.
2085
2086 2019-10-08 Tom Tromey <tromey@adacore.com>
2087
2088 * windows-nat.c: Don't include buildsym-legacy.h.
2089
2090 2019-10-08 Tom Tromey <tromey@adacore.com>
2091
2092 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2093
2094 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2095
2096 * gdbtypes.c (overload_debug): Move comment to header.
2097 * gdbtypes.h (overload_debug): Declare.
2098 * valops.c: Remove declaration of overload_debug, instead
2099 include gdbtypes.h.
2100
2101 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2102
2103 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2104 through _().
2105 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2106 move comment...
2107 * language.h (lang_frame_mismatch_warn): ... here. Also add
2108 declaration.
2109 * top.c (lang_frame_mismatch_warn): Remove declaration.
2110 (check_frame_language_change): Pass lang_frame_mismatch_warn
2111 through _().
2112
2113 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2114
2115 * c-lang.h (vtbl_ptr_name): Declare.
2116 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2117 it from the header.
2118 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2119
2120 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2121
2122 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2123 gdb_static_assert.
2124
2125 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2126
2127 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2128 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2129 * ctfread.c: New file.
2130 * ctfread.h: New file.
2131 * elfread.c: Include ctfread.h.
2132 (struct elfinfo text_p): New member ctfsect.
2133 (elf_locate_sections): Mark CTF section.
2134 (elf_symfile_read): Call elfctf_build_psymtabs.
2135 * Makefile.in (LIBCTF): Add.
2136 (CLIBS): Use it.
2137 (CDEPS): Likewise.
2138 (DIST): Add ctfread.c.
2139
2140 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2141
2142 * ctfread.c (struct nextfield): Renamed to ...
2143 (struct ctf_nextfield): ... this.
2144 (struct field_info): Renamed to ...
2145 (strut ctf_field_info): ... this.
2146 (attach_fields_to_type): Update for renamed structures.
2147 (ctf_add_member_cb): Likewise.
2148 (ctf_add_enum_member_cb): Likewise.
2149 (process_struct_members): Likewise.
2150 (process_enum_type): Likewise.
2151
2152 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2153
2154 * tracectf.h: Rename, was ctf.h.
2155 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2156 * tracefile.c: Likewise.
2157 * tracepoint.c: Remove unused include ctf.h.
2158 * mi/mi-main.c: Likewise.
2159 * Makefile.in Replace ctf.c with tracectf.c.
2160
2161 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2162
2163 * version.in: Change version number to "9.0.50.DATE-git".
2164
2165 2019-10-03 Tom Tromey <tom@tromey.com>
2166
2167 PR rust/24976:
2168 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2169
2170 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2171
2172 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2173 cp_search_name_hash.
2174 * NEWS: Add entry about nested function support.
2175
2176 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2177 Andrew Burgess <andrew.burgess@embecosm.com>
2178
2179 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2180 for nested static variables when searchin VAR_DOMAIN.
2181 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2182 global scope, update comment.
2183 (add_partial_subprogram): Call add_partial_subprogram recursively
2184 for nested subroutines when processinng Fortran.
2185 (load_partial_dies): Process the child entities of a subprogram
2186 when processing Fortran.
2187 (partial_die_parent_scope): Handle building scope
2188 for Fortran nested functions.
2189 (process_die): Record that nested functions have a scope.
2190 (new_symbol): Always record Fortran subprograms on the global
2191 symbol list.
2192 (determine_prefix): How to build the prefix for Fortran
2193 subprograms.
2194
2195 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2196
2197 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2198 have just sent the thread a SIGSTOP and are waiting for it to
2199 arrive.
2200
2201 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2202
2203 * btrace.c (btrace_add_pc): Remove whitespace before the template
2204 parameter in 'std::vector <...>'.
2205 (parse_xml_btrace_block): Likewise.
2206 (btrace_maint_decode_pt): Likewise.
2207 (btrace_maint_update_packets): Likewise.
2208 (btrace_maint_print_packets): Likewise.
2209 * btrace.h (struct btrace_maint_info): Likewise.
2210 * dwarf2read.c (struct type_unit_group): Likewise.
2211 (build_type_psymtabs_reader): Likewise.
2212 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2213 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2214 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2215
2216 2019-10-03 Tom de Vries <tdevries@suse.de>
2217
2218 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2219 the first line of the help text for set/show style metadata.
2220
2221 2019-10-02 Tom Tromey <tromey@adacore.com>
2222
2223 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2224 * gdbsupport/common-inferior.c: New file.
2225 * infcmd.c (startup_with_shell): Don't define.
2226 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2227 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2228 * inferior.h (startup_with_shell): Don't declare.
2229
2230 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2231
2232 * gdbsupport/gdb_assert.h: Include errors.h.
2233 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2234
2235 2019-10-02 Tom Tromey <tromey@adacore.com>
2236
2237 * NEWS: Add $_ada_exception entry.
2238 * ada-lang.c (struct ada_catchpoint): Add constructor.
2239 <m_kind>: New member.
2240 (allocate_location_exception, re_set_exception): Remove
2241 "ex" parameter.
2242 (should_stop_exception): Compute $_ada_exception.
2243 (check_status_exception, print_it_exception)
2244 (print_one_exception, print_mention_exception): Remove
2245 "ex" parameter.
2246 (allocate_location_catch_exception, re_set_catch_exception)
2247 (check_status_exception, print_it_catch_exception)
2248 (print_one_catch_exception, print_mention_catch_exception)
2249 (print_recreate_catch_exception)
2250 (allocate_location_catch_exception_unhandled)
2251 (re_set_catch_exception_unhandled)
2252 (check_status_exception, print_it_catch_exception_unhandled)
2253 (print_one_catch_exception_unhandled)
2254 (print_mention_catch_exception_unhandled)
2255 (print_recreate_catch_exception_unhandled)
2256 (allocate_location_catch_assert, re_set_catch_assert)
2257 (check_status_assert, print_it_catch_assert)
2258 (print_one_catch_assert, print_mention_catch_assert)
2259 (print_recreate_catch_assert)
2260 (allocate_location_catch_handlers, re_set_catch_handlers)
2261 (check_status_handlers, print_it_catch_handlers)
2262 (print_one_catch_handlers, print_mention_catch_handlers)
2263 (print_recreate_catch_handlers): Remove.
2264 (create_ada_exception_catchpoint): Update.
2265 (initialize_ada_catchpoint_ops): Update.
2266
2267 2019-10-02 Tom Tromey <tromey@adacore.com>
2268
2269 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2270 (create_excep_cond_exprs): Simplify exception string computation.
2271 (ada_exception_catchpoint_cond_string): Likewise.
2272
2273 2019-10-02 Tom Tromey <tromey@adacore.com>
2274
2275 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2276 * ada-lang.c (lesseq_defined_than): Handle
2277 LOC_STATIC.
2278 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2279 parameter.
2280 (dwarf2_has_info): Likewise.
2281 (new_symbol): Set maybe_copied on symbol when
2282 appropriate.
2283 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2284 parameter.
2285 <can_copy>: New member.
2286 * elfread.c (record_minimal_symbol): Set maybe_copied
2287 on symbol when appropriate.
2288 (elf_symfile_read): Update call to dwarf2_has_info.
2289 * minsyms.c (lookup_minimal_symbol_linkage): New
2290 function.
2291 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2292 * symtab.c (get_symbol_address, get_msymbol_address):
2293 New functions.
2294 * symtab.h (get_symbol_address, get_msymbol_address):
2295 Declare.
2296 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2297 maybe_copied.
2298 (struct symbol, struct minimal_symbol) <maybe_copied>:
2299 New member.
2300
2301 2019-10-02 Tom Tromey <tromey@adacore.com>
2302
2303 * source.c (struct current_source_location): New.
2304 (current_source_key): New global.
2305 (current_source_symtab, current_source_line)
2306 (current_source_pspace): Remove.
2307 (get_source_location): New function.
2308 (get_current_source_symtab_and_line)
2309 (set_default_source_symtab_and_line)
2310 (set_current_source_symtab_and_line)
2311 (clear_current_source_symtab_and_line, select_source_symtab)
2312 (info_source_command, print_source_lines_base)
2313 (info_line_command, search_command_helper, _initialize_source):
2314 Update.
2315
2316 2019-10-02 Tom Tromey <tromey@adacore.com>
2317
2318 * source.c (select_source_symtab): Don't call
2319 decode_line_with_current_source.
2320
2321 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2322
2323 * symtab.c (lookup_global_symbol): Search global block.
2324
2325 2019-10-02 Tom Tromey <tromey@adacore.com>
2326
2327 * coffread.c (process_coff_symbol): Update.
2328 * dwarf2read.c (var_decode_location, new_symbol): Update.
2329 * mdebugread.c (parse_symbol): Update.
2330 * objfiles.c (relocate_one_symbol): Update.
2331 * stabsread.c (define_symbol, fix_common_block)
2332 (scan_file_globals): Update.
2333 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2334 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2335 * xcoffread.c (process_xcoff_symbol): Update.
2336
2337 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2338
2339 * MAINTAINERS: Update my email address.
2340
2341 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2342
2343 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2344 std::vector.
2345 (build_type_psymtabs_reader): Update for std::vector.
2346 (build_type_psymtab_dependencies): Likewise.
2347 * dwarf2read.h: Remove use of DEF_VEC_P.
2348 (typedef sig_type_ptr): Delete.
2349
2350 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2351
2352 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2353 to std::vector.
2354 (btrace_maint_decode_pt): Likewise, and move allocation of the
2355 vector outside of the loop.
2356 (btrace_maint_update_packets): Update to handle change from VEC to
2357 std::vector.
2358 (btrace_maint_print_packets): Likewise.
2359 (maint_info_btrace_cmd): Likewise.
2360 * btrace.h: Remove use of DEF_VEC_O.
2361 (typedef btrace_pt_packet_s): Delete.
2362 (struct btrace_maint_info) <packets>: Change fromm VEC to
2363 std::vector.
2364 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2365
2366 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2367
2368 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2369 make accesses into the vector constant references.
2370 (btrace_add_pc): Update for std::vector.
2371 (btrace_stitch_bts): Likewise.
2372 (parse_xml_btrace_block): Likewise.
2373 (btrace_maint_update_packets): Likewise.
2374 (btrace_maint_print_packets): Likewise.
2375 (maint_info_btrace_cmd): Likewise.
2376 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2377 std::vector.
2378 (btrace_data::empty): Likewise.
2379 (btrace_data_append): Likewise.
2380 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2381 (typedef btrace_block_s): Delete.
2382 (struct btrace_block): Add constructor.
2383 (struct btrace_data_bts) <blocks>: Change to std::vector.
2384 * nat/linux-btrace.c (perf_event_read_bts): Update for
2385 std::vector.
2386 (linux_read_bts): Likewise.
2387
2388 2019-10-01 Tom Tromey <tom@tromey.com>
2389
2390 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2391
2392 2019-10-01 Tom Tromey <tom@tromey.com>
2393
2394 * stack.c (print_frame, info_frame_command_core): Use
2395 styled_string.
2396 * linux-thread-db.c (try_thread_db_load_1)
2397 (try_thread_db_load_from_pdir_1): Use styled_string.
2398 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2399 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2400 (maybe_print_unsupported_script_warning)
2401 (maybe_print_script_not_found_warning): Use styled_string.
2402 * ada-lang.c (user_select_syms): Use styled_string.
2403
2404 2019-10-01 Tom Tromey <tom@tromey.com>
2405
2406 * p-lang.c (pascal_printstr): Use metadata style.
2407 * value.c (show_convenience): Use metadata style.
2408 * valprint.c (valprint_check_validity, val_print_optimized_out)
2409 (val_print_not_saved, val_print_unavailable)
2410 (val_print_invalid_address, generic_val_print, val_print)
2411 (value_check_printable, val_print_array_elements): Use metadata
2412 style.
2413 * ui-out.h (class ui_out) <field_fmt>: New overload.
2414 <do_field_fmt>: Add style parameter.
2415 * ui-out.c (ui_out::field_fmt): New overload.
2416 * typeprint.c (type_print_unknown_return_type)
2417 (val_print_not_allocated, val_print_not_associated): Use metadata
2418 style.
2419 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2420 parameter.
2421 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2422 * tracepoint.c (tvariables_info_1): Use metadata style.
2423 * stack.c (print_frame_arg, print_frame_info, print_frame)
2424 (info_frame_command_core): Use metadata style.
2425 * skip.c (info_skip_command): Use metadata style.
2426 * rust-lang.c (rust_print_enum): Use metadata style.
2427 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2428 metadata style.
2429 * python/py-framefilter.c (py_print_single_arg): Use metadata
2430 style.
2431 * printcmd.c (do_one_display, print_variable_and_value): Use
2432 metadata style.
2433 * p-valprint.c (pascal_val_print)
2434 (pascal_object_print_value_fields): Use metadata style.
2435 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2436 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2437 parameter.
2438 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2439 * m2-valprint.c (m2_print_long_set): Use metadata style.
2440 * m2-typeprint.c (m2_print_type): Use metadata style.
2441 * infcmd.c (print_return_value_1): Use metadata style.
2442 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2443 * f-valprint.c (info_common_command_for_block): Use metadata
2444 style.
2445 * f-typeprint.c (f_type_print_base): Use metadata style.
2446 * expprint.c (print_subexp_standard): Use metadata style.
2447 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2448 * cli/cli-style.h (class cli_style_option): Add constructor.
2449 (metadata_style): Declare.
2450 * cli/cli-style.c (metadata_style): New global.
2451 (_initialize_cli_style): Register metadata style.
2452 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2453 parameter.
2454 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2455 * c-typeprint.c (c_type_print_base_struct_union)
2456 (c_type_print_base_1): Use metadata style.
2457 * breakpoint.c (watchpoint_value_print)
2458 (print_one_breakpoint_location): Use metadata style.
2459 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2460 style.
2461 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2462 style.
2463 * ada-valprint.c (val_print_packed_array_elements, printstr)
2464 (print_field_values, ada_val_print_ref, ada_val_print): Use
2465 metadata style.
2466 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2467 style.
2468 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2469 style.
2470 * ada-lang.c (user_select_syms): Use metadata style.
2471
2472 2019-10-01 Tom Tromey <tom@tromey.com>
2473
2474 * cli/cli-cmds.c (pwd_command): Style output.
2475
2476 2019-10-01 Pedro Alves <palves@redhat.com>
2477 Tom Tromey <tom@tromey.com>
2478
2479 * symtab.c (print_symbol_info): Use %ps.
2480 (print_msymbol_info): Use %ps.
2481 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2482 * printcmd.c (print_variable_and_value): Use %ps.
2483 * macrocmd.c (show_pp_source_pos): Use %ps.
2484 * infrun.c (print_exited_reason): Use ui_out::message.
2485 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2486 (describe_other_breakpoints): Use ui_out::message and new
2487 formats.
2488 (say_where): Use new formats.
2489 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2490 and new formats.
2491
2492 2019-10-01 Pedro Alves <palves@redhat.com>
2493 Tom Tromey <tom@tromey.com>
2494
2495 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2496 (test_gdb_formats): New function.
2497 (run_tests): Call it.
2498 (test_format_specifier): Update.
2499 * utils.h (fputs_filtered): Update comment.
2500 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2501 (fputs_styled_unfiltered): Declare.
2502 * utils.c (fputs_styled_unfiltered): New function.
2503 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2504 (vfprintf_filtered): Update.
2505 (vfprintf_unfiltered, vprintf_filtered): Update.
2506 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2507 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2508 disallow_ui_out_field>: New constants.
2509 (enum class field_kind): New.
2510 (struct base_field_s, struct signed_field_s): New.
2511 (signed_field): New function.
2512 (struct string_field_s): New.
2513 (string_field): New function.
2514 (struct styled_string_s): New.
2515 (styled_string): New function.
2516 (class ui_out) <message>: Add comment.
2517 <vmessage, call_do_message>: New methods.
2518 <do_message>: Add style parameter.
2519 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2520 methods.
2521 (ui_out::message): Rewrite.
2522 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2523 parameter.
2524 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2525 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2526 gdb_extensions parameter.
2527 (class format_piece): Add parameter to constructor.
2528 (n_int_args): New field.
2529 * gdbsupport/format.c (format_pieces::format_pieces): Add
2530 gdb_extensions parameter. Handle '*'.
2531 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2532 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2533 vfprintf_styled_no_gdbfmt.
2534 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2535 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2536 unfiltered output.
2537 * ui-style.h (struct ui_file_style) <ptr>: New method.
2538
2539 2019-10-01 Tom Tromey <tom@tromey.com>
2540
2541 * unittests/format_pieces-selftests.c: Update. Add final format.
2542 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2543 empty literal pieces.
2544
2545 2019-10-01 Tom Tromey <tom@tromey.com>
2546
2547 * ui-out.h (enum class ui_out_style_kind): Remove.
2548 (class ui_out) <field_string, field_stsream, do_field_string>:
2549 Change type of "style".
2550 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2551 (ui_out::field_string): Update.
2552 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2553 of "style".
2554 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2555 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2556 * stack.c (print_frame_arg, print_frame_info, print_frame):
2557 Update.
2558 * source.c (print_source_lines_base): Update.
2559 * solib.c (info_sharedlibrary_command): Update.
2560 * skip.c (info_skip_command): Update.
2561 * record-btrace.c (btrace_call_history_src_line)
2562 (btrace_call_history): Update.
2563 * python/py-framefilter.c (py_print_frame): Update.
2564 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2565 "style".
2566 * mi/mi-out.c (mi_ui_out::do_table_header)
2567 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2568 (mi_ui_out::do_field_string): Update.
2569 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2570 Update.
2571 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2572 "style".
2573 * cli-out.c (cli_ui_out::do_table_header)
2574 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2575 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2576 (cli_ui_out::do_field_fmt): Update.
2577 * breakpoint.c (print_breakpoint_location): Update.
2578 (update_static_tracepoint): Update.
2579
2580 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2581
2582 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2583 conversion of gdb_datadir.
2584 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2585 remove not needed c_str ().
2586
2587 2019-09-30 Ali Tamur <tamur@google.com>
2588
2589 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2590 (dwarf2_string_attr): Likewise.
2591
2592 2019-09-30 Ali Tamur <tamur@google.com>
2593
2594 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2595 (process_full_type_unit): Likewise.
2596 (dump_die_shallow): Likewise.
2597 (cu_debug_loc_section): Likewise.
2598
2599 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2600
2601 * minsyms.c (compare_minimal_symbols): Rename to...
2602 (minimal_symbol_is_less_than): ...this, and adjust to STL
2603 conventions (return bool, take arguments as references)
2604 (minimal_symbol_reader::install): Call std::sort instead
2605 of qsort.
2606
2607 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2608
2609 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2610 hash and why.
2611 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2612 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2613
2614 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2615
2616 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2617 * psympriv.h (add_psymbol_to_list): Move comment here and update
2618 it.
2619
2620 2019-09-29 Tom de Vries <tdevries@suse.de>
2621
2622 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2623 Use $tmpdir/$(basename "$output_file").dwz instead of
2624 "${output_file}.dwz".
2625
2626 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2627
2628 PR gdb/25045
2629 * hppa-linux-nat.c: Include gdbarch.h.
2630
2631 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2632
2633 * blockframe.c (find_pc_partial_function): Change return type to bool.
2634 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2635 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2636 (stub_gnu_ifunc_resolve_name): Likewise.
2637 * symtab.c (compare_filenames_for_search): Likewise.
2638 (compare_glob_filenames_for_search): Likewise.
2639 (matching_obj_sections): Likewise.
2640 (symbol_matches_domain): Likewise.
2641 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2642 (find_line_pc): Change return type to bool.
2643 (find_line_pc_range): Likewise.
2644 (producer_is_realview): Likewise.
2645 * symtab.h (symbol_matches_domain): Likewise.
2646 (find_pc_partial_function): Likewise.
2647 (find_pc_line_pc_range): Likewise.
2648 (in_gnu_ifunc_stub): Likewise.
2649 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2650 (find_line_pc): Likewise.
2651 (find_line_pc_range): Likewise.
2652 (matching_obj_sections): Likewise.
2653 (find_line_symtab): Change out parameter to bool.
2654 (producer_is_realview): Change return type to bool.
2655 (compare_filenames_for_search): Likewise.
2656 (compare_glob_filenames_for_search): Likewise.
2657
2658 2019-09-26 Tom Tromey <tom@tromey.com>
2659
2660 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2661 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2662 * gdb_usleep.h: Remove.
2663 * gdb_usleep.c: Remove.
2664 * utils.c: Don't include gdb_usleep.h.
2665
2666 2019-09-26 Tom Tromey <tromey@adacore.com>
2667
2668 * python/py-type.c (type_to_type_object): Call check_typedef
2669 for stub types.
2670
2671 2019-09-26 Tom Tromey <tom@tromey.com>
2672
2673 * utils.h (initialize_utils): Don't declare.
2674 * top.c (gdb_init): Don't call initialize_utils.
2675 * utils.c (initialize_utils): Remove. Move contents...
2676 (_initialize_utils): ... here.
2677
2678 2019-09-25 Tom Tromey <tom@tromey.com>
2679
2680 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2681 * utils.h (make_hex_string): Don't declare.
2682 * utils.c (make_hex_string): Remove.
2683
2684 2019-09-24 Tom de Vries <tdevries@suse.de>
2685
2686 PR gdb/23815
2687 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2688 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2689
2690 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2691
2692 * NEWS: Mention new simulator port for PRU.
2693
2694 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2695
2696 * ada-exp.y (write_object_remaining): Update.
2697 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2698 and eliminate the static buffer.
2699 (ada_decode_symbol): Update.
2700 (ada_la_decode): Update.
2701 (ada_sniff_from_mangled_name): Update.
2702 (is_valid_name_for_wild_match): Update.
2703 (ada_lookup_name_info::matches): Update and simplify.
2704 (name_matches_regex): Update.
2705 (ada_add_global_exceptions): Update.
2706 * ada-lang.h (ada_decode): Update signature.
2707 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2708 * dwarf-index-write.c (debug_names::insert): Update.
2709
2710 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2711
2712 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2713 formatting.
2714
2715 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2716
2717 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2718 Change "nonzero" to "true" in documentation.
2719
2720 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2721
2722 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2723 (_initialize_darwin_solib): Don't set
2724 darwin_so_ops.lookup_lib_global_symbol.
2725 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2726 set_gdbarch_iterate_over_objfiles_in_search_order.
2727 (elf_lookup_lib_symbol): Rename to...
2728 (svr4_iterate_over_objfiles_in_search_order): this, and update
2729 to iterate semantics.
2730 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2731 * solib.c (solib_global_lookup): Remove.
2732 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2733 (solib_global_lookup): Remove.
2734 * symtab.c (lookup_global_or_static_symbol): Remove call to
2735 solib_global_lookup.
2736
2737 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2738
2739 * NEWS: Move entries about default MI version now being
2740 version 3, and about the GDB/MI fix for multi-location
2741 breakpoints to the "since GDB 8.3" section.
2742
2743 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2744
2745 GDB 8.3.1 released.
2746
2747 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2748
2749 * NEWS: Mention that Cell/B.E. debugging support was removed.
2750 * MAINTAINERS: Remove spu target.
2751
2752 * config/djgpp/fnchange.lst: Remove entries for removed files.
2753
2754 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2755 spu-multiarch.o, and spu-tdep.o.
2756 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2757 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2758 spu-multiarch.c, and spu-tdep.c.
2759 * spu-linux-nat.c: Remove file.
2760 * spu-multiarch.c: Remove file.
2761 * spu-tdep.c: Remove file.
2762 * spu-tdep.h: Remove file.
2763 * solib-spu.c: Remove file.
2764 * solib-spu.h: Remove file.
2765
2766 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2767 * configure.nat (spu-linux): Remove.
2768 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2769 solib-multiarch.o from gdb_target_obs.
2770 (spu*-*-*): Remove.
2771
2772 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2773 feature flag.
2774 (ppc_linux_no_features): Update.
2775 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2776 Cell/B.E. support.
2777 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2778 (tdesc_powerpc_cell64l): Likewise.
2779 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2780 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2781 Cell/B.E. support.
2782 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2783 Do not include "features/rs6000/powerpc-cell32l.c" or
2784 "features/rs6000/powerpc-cell64l.c".
2785 (ppc_linux_spu_section): Remove.
2786 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2787 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2788 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2789 (ppc_linux_spe_context_lookup): Remove.
2790 (ppc_linux_spe_context_inferior_created): Remove.
2791 (ppc_linux_spe_context_solib_loaded): Remove.
2792 (ppc_linux_spe_context_solib_unloaded): Remove.
2793 (ppc_linux_spe_context): Remove.
2794 (struct ppu2spu_cache): Remove.
2795 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2796 (struct ppu2spu_data): Remove.
2797 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2798 ppu2spu_unwind): Remove.
2799 (ppc_linux_init_abi): Remove Cell/B.E. support.
2800 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2801
2802 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2803 (rs6000/powerpc-cell64l-expedite): Likewise
2804 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2805 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2806 rs6000/powerpc-cell64l.xml.
2807 * features/rs6000/powerpc-cell32l.xml: Remove.
2808 * features/rs6000/powerpc-cell64l.xml: Likewise.
2809 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2810 * features/rs6000/powerpc-cell64l.c: Likewise.
2811 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2812 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2813 * regformats/reg-spu.dat: Remove.
2814
2815 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2816 * corelow.c (struct spuid_list): Remove.
2817 (add_to_spuid_list): Remove.
2818 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2819 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2820 (remote_protocol_features): Remove associated entries.
2821 (_initialize_remote): No longer initialize them.
2822 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2823 * linux-nat.c (SPUFS_MAGIC): Remove.
2824 (linux_proc_xfer_spu): Remove.
2825 (spu_enumerate_spu_ids): Remove.
2826 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2827 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2828 (linux_make_corefile_notes): No longer call it.
2829
2830 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2831 (cooked_write_test): Likewise.
2832
2833 2019-09-20 Tom Tromey <tom@tromey.com>
2834
2835 * NEWS: Mention case-sensitivity of TUI commands.
2836 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2837 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2838 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2839
2840 2019-09-20 Tom Tromey <tom@tromey.com>
2841
2842 * tui/tui-source.c (tui_source_window::set_contents): Use
2843 make_unique_xstrdup.
2844 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2845 make_unique_xstrdup.
2846
2847 2019-09-20 Tom Tromey <tom@tromey.com>
2848
2849 * tui/tui-data.c: Remove separator comments.
2850 * tui/tui-layout.c: Remove separator comments.
2851 * tui/tui-win.c: Remove separator comments.
2852 * tui/tui-wingeneral.c: Remove separator comments.
2853
2854 2019-09-20 Tom Tromey <tom@tromey.com>
2855
2856 * tui/tui.h (strcat_to_buf): Don't declare.
2857 * tui/tui.c (strcat_to_buf): Remove.
2858
2859 2019-09-20 Tom Tromey <tom@tromey.com>
2860
2861 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2862 from "fullname".
2863 * tui/tui-source.c (tui_source_window::set_contents)
2864 (tui_source_window::location_matches_p)
2865 (tui_source_window::maybe_update): Update.
2866
2867 2019-09-20 Tom Tromey <tom@tromey.com>
2868
2869 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2870 Update.
2871 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2872 prefix.
2873 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2874 (tui_data_window::line_from_reg_element_no)
2875 (tui_data_window::first_reg_element_no_inline)
2876 (tui_data_window::show_registers)
2877 (tui_data_window::show_register_group)
2878 (tui_data_window::display_registers_from)
2879 (tui_data_window::display_registers_from_line)
2880 (tui_data_window::first_data_item_displayed)
2881 (tui_data_window::delete_data_content_windows)
2882 (tui_data_window::erase_data_content)
2883 (tui_data_window::do_scroll_vertical)
2884 (tui_data_window::refresh_window)
2885 (tui_data_window::check_register_values): Update.
2886
2887 2019-09-20 Tom Tromey <tom@tromey.com>
2888
2889 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2890 (struct tui_locator_window) <full_name, proc_name>: Now
2891 std::string.
2892 * tui/tui-stack.c (tui_locator_window::make_status_line)
2893 (tui_locator_window::set_locator_fullname)
2894 (tui_locator_window::set_locator_info): Update.
2895 * tui/tui-source.c (tui_source_window::set_contents)
2896 (tui_source_window::showing_source_p): Update.
2897
2898 2019-09-20 Tom Tromey <tom@tromey.com>
2899
2900 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2901 Don't call tui_locator_win_info_ptr.
2902
2903 2019-09-20 Tom Tromey <tom@tromey.com>
2904
2905 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2906
2907 2019-09-20 Tom Tromey <tom@tromey.com>
2908
2909 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2910 height for locator.
2911 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2912 * tui/tui-layout.c (show_source_disasm_command, show_data)
2913 (show_source_or_disasm_and_command): Use 1 as height for locator.
2914
2915 2019-09-20 Tom Tromey <tom@tromey.com>
2916
2917 * tui/tui.c (tui_enable): Update.
2918 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2919 Update.
2920 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2921 Update.
2922 * tui/tui-data.c (win_resized): Now bool.
2923 (tui_win_resized): Return bool.
2924 (tui_set_win_resized_to): Accept a bool.
2925
2926 2019-09-20 Tom Tromey <tom@tromey.com>
2927
2928 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2929 Change type of "refresh_values_only".
2930 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2931 type of "refresh_values_only".
2932
2933 2019-09-20 Tom Tromey <tom@tromey.com>
2934
2935 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2936 std::string.
2937 (tui_disassemble): Add "pos" parameter.
2938 (tui_disasm_window::set_contents): Simplify.
2939
2940 2019-09-20 Tom Tromey <tom@tromey.com>
2941
2942 * tui/tui-winsource.h (struct tui_source_window_base)
2943 <show_source_content>: Now private.
2944 * tui/tui-winsource.c
2945 (tui_source_window_base::show_source_content): Don't handle empty
2946 content case.
2947
2948 2019-09-20 Tom Tromey <tom@tromey.com>
2949
2950 * tui/tui-layout.c (show_source_disasm_command)
2951 (show_source_or_disasm_and_command): Don't call
2952 show_source_content.
2953
2954 2019-09-20 Tom Tromey <tom@tromey.com>
2955
2956 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2957 Declare.
2958 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2959 from tui_make_status_line.
2960 (tui_locator_window::rerender): Update.
2961
2962 2019-09-20 Tom Tromey <tom@tromey.com>
2963
2964 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2965 (tui_locator_window::rerender): Update.
2966
2967 2019-09-20 Tom Tromey <tom@tromey.com>
2968
2969 * tui/tui-winsource.h (struct tui_source_window_base)
2970 <~tui_source_window_base>: Don't declare.
2971 <fullname>: Remove.
2972 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2973 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2974 member.
2975 * tui/tui-source.c (tui_source_window::set_contents): Update.
2976 (tui_source_window::location_matches_p)
2977 (tui_source_window::maybe_update): Update.
2978
2979 2019-09-20 Tom Tromey <tom@tromey.com>
2980
2981 * tui/tui-winsource.h (~tui_source_element): Remove.
2982 (tui_source_element): Update.
2983 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2984 * tui/tui-winsource.c (tui_show_source_line): Update.
2985 * tui/tui-source.c (tui_source_window::set_contents): Update.
2986 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2987
2988 2019-09-20 Tom Tromey <tom@tromey.com>
2989
2990 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2991 declare.
2992 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2993 tui_clear_source_windows_detail.
2994 * tui/tui-winsource.h (struct tui_source_window_base)
2995 <clear_detail>: Don't declare.
2996 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2997 Remove.
2998 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2999
3000 2019-09-20 Tom Tromey <tromey@adacore.com>
3001
3002 PR ada/24919:
3003 * block.c (contained_in): Fix final return value.
3004
3005 2019-09-20 Alan Modra <amodra@gmail.com>
3006
3007 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3008 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3009 (read_indirect_string_from_dwz): Use bfd accessor.
3010 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3011 * machoread.c (macho_symfile_read_all_oso): Likewise.
3012 * solib.c (solib_bfd_open): Likewise.
3013
3014 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3015
3016 * eval.c: Move declaration of overload_resolution to...
3017 * value.h: ...here.
3018
3019 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3020
3021 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3022 * arm-linux-tdep.c: Likewise.
3023 * arm-nbsd-nat.c: Likewise.
3024 * arm-tdep.h: Declare arm_apcs_32.
3025 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3026
3027 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3028
3029 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3030 * dwarf2read.h: Declare dwarf_always_disassemble.
3031
3032 2019-09-19 Tom de Vries <tdevries@suse.de>
3033
3034 PR gdb/25009
3035 * source-cache.c (source_cache::ensure): Catch exception thrown during
3036 construction of the highlighter.
3037
3038 2019-09-18 Alan Modra <amodra@gmail.com>
3039
3040 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3041 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3042 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3043 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3044 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3045 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3046 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3047 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3048 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3049 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3050 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3051 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3052 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3053 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3054 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3055 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3056 * mi/mi-interp.c: Update throughout for bfd section macro and
3057 function changes.
3058 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3059 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3060
3061 2019-09-18 Tom Tromey <tom@tromey.com>
3062
3063 * NEWS: Add entry.
3064 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3065 call rl_initialize.
3066 (tui_enable): Do not call rl_initialize.
3067
3068 2019-09-18 Christian Groessler <chris@groessler.org>
3069
3070 * alpha-linux-nat.c: Include gdbarch.h.
3071
3072 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3073
3074 * ui-file.c: Include cli/cli-style.h.
3075 (term_cli_styling): Remove cli_styling declaration.
3076
3077 2019-09-18 Alan Modra <amodra@gmail.com>
3078
3079 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3080 to bfd_asymbol_section.
3081
3082 2019-09-18 Alan Modra <amodra@gmail.com>
3083
3084 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3085 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3086 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3087
3088 2019-09-18 Alan Modra <amodra@gmail.com>
3089
3090 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3091 * spu-linux-nat.c (spu_bfd_open): Likewise.
3092
3093 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3094
3095 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3096 to bool to match definition in dwarf2read.c.
3097
3098 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3099
3100 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3101 (print_signatures): Likewise.
3102 (trust_pad_over_xvs): Likewise.
3103 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3104 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3105 * arm-linux-nat.c (arm_apcs_32): Likewise.
3106 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3107 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3108 * arm-tdep.c (arm_debug): Likewise.
3109 (arm_apcs_32): Likewise.
3110 * auto-load.c (debug_auto_load): Likewise.
3111 (auto_load_gdb_scripts): Likewise.
3112 (global_auto_load): Likewise.
3113 (auto_load_local_gdbinit): Likewise.
3114 (auto_load_local_gdbinit_loaded): Likewise.
3115 * auto-load.h (global_auto_load): Likewise.
3116 (auto_load_local_gdbinit): Likewise.
3117 (auto_load_local_gdbinit_loaded): Likewise.
3118 * breakpoint.c (disconnected_dprintf): Likewise.
3119 (breakpoint_proceeded): Likewise.
3120 (automatic_hardware_breakpoints): Likewise.
3121 (always_inserted_mode): Likewise.
3122 (target_exact_watchpoints): Likewise.
3123 (_initialize_breakpoint): Update.
3124 * breakpoint.h (target_exact_watchpoints): Change to bool.
3125 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3126 * cli/cli-cmds.c (trace_commands): Likewise.
3127 * cli/cli-cmds.h (trace_commands): Likewise.
3128 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3129 to bool*.
3130 * cli/cli-logging.c (logging_overwrite): Change to bool.
3131 (logging_redirect): Likewise.
3132 (debug_redirect): Likewise.
3133 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3134 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3135 to bool.
3136 <boolean_option_def>: Update.
3137 (struct flag_option_def): Change default type of Context to bool
3138 from int.
3139 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3140 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3141 (get_setshow_command_value_string): Likewise.
3142 * cli/cli-style.c (cli_styling): Change to bool.
3143 (source_styling): Likewise.
3144 * cli/cli-style.h (source_styling): Likewise.
3145 (cli_styling): Likewise.
3146 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3147 to bool.
3148 * command.h (var_types): Update comment.
3149 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3150 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3151 bool.
3152 (debug_compile_cplus_scopes): Likewise.
3153 * compile/compile-internal.h (compile_debug): Likewise.
3154 * compile/compile.c (compile_debug): Likewise.
3155 (struct compile_options) <raw>: Likewise.
3156 * cp-support.c (catch_demangler_crashes): Likewise.
3157 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3158 (usr_cmd_cris_dwarf2_cfi): Likewise.
3159 * csky-tdep.c (csky_debug): Likewise.
3160 * darwin-nat.c (enable_mach_exceptions): Likewise.
3161 * dcache.c (dcache_enabled_p): Likewise.
3162 * defs.h (info_verbose): Likewise.
3163 * demangle.c (demangle): Likewise.
3164 (asm_demangle): Likewise.
3165 * dwarf-index-cache.c (debug_index_cache): Likewise.
3166 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3167 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3168 * dwarf2read.c (check_physname): Likewise.
3169 (use_deprecated_index_sections): Likewise.
3170 (dwarf_always_disassemble): Likewise.
3171 * eval.c (overload_resolution): Likewise.
3172 * event-top.c (set_editing_cmd_var): Likewise.
3173 (exec_done_display_p): Likewise.
3174 * event-top.h (set_editing_cmd_var): Likewise.
3175 (exec_done_display_p): Likewise.
3176 * exec.c (write_files): Likewise.
3177 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3178 (debug_fbsd_nat): Likewise.
3179 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3180 Likewise.
3181 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3182 <backtrace_past_entry> Likewise.
3183 * gdb-demangle.h (demangle): Likewise.
3184 (asm_demangle): Likewise.
3185 * gdb_bfd.c (bfd_sharing): Likewise.
3186 * gdbcore.h (write_files): Likewise.
3187 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3188 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3189 * gdbthread.h (print_thread_events): Likewise.
3190 * gdbtypes.c (opaque_type_resolution): Likewise.
3191 (strict_type_checking): Likewise.
3192 * gnu-nat.c (gnu_debug_flag): Likewise.
3193 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3194 * guile/scm-param.c (pascm_variable): Add boolval.
3195 (add_setshow_generic): Update.
3196 (pascm_param_value): Update.
3197 (pascm_set_param_value_x): Update.
3198 * hppa-tdep.c (hppa_debug): Change to bool..
3199 * infcall.c (may_call_functions_p): Likewise.
3200 (coerce_float_to_double_p): Likewise.
3201 (unwind_on_signal_p): Likewise.
3202 (unwind_on_terminating_exception_p): Likewise.
3203 * infcmd.c (startup_with_shell): Likewise.
3204 * inferior.c (print_inferior_events): Likewise.
3205 * inferior.h (startup_with_shell): Likewise.
3206 (print_inferior_events): Likewise.
3207 * infrun.c (step_stop_if_no_debug): Likewise.
3208 (detach_fork): Likewise.
3209 (debug_displaced): Likewise.
3210 (disable_randomization): Likewise.
3211 (non_stop): Likewise.
3212 (non_stop_1): Likewise.
3213 (observer_mode): Likewise.
3214 (observer_mode_1): Likewise.
3215 (set_observer_mode): Update.
3216 (sched_multi): Change to bool.
3217 * infrun.h (debug_displaced): Likewise.
3218 (sched_multi): Likewise.
3219 (step_stop_if_no_debug): Likewise.
3220 (non_stop): Likewise.
3221 (disable_randomization): Likewise.
3222 * linux-tdep.c (use_coredump_filter): Likewise.
3223 (dump_excluded_mappings): Likewise.
3224 * linux-thread-db.c (auto_load_thread_db): Likewise.
3225 (check_thread_db_on_load): Likewise.
3226 * main.c (captured_main_1): Update.
3227 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3228 xx2_opt, boolean_opt>: Change to bool.
3229 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3230 * maint.c (maintenance_profile_p): Likewise.
3231 (per_command_time): Likewise.
3232 (per_command_space): Likewise.
3233 (per_command_symtab): Likewise.
3234 * memattr.c (inaccessible_by_default): Likewise.
3235 * mi/mi-main.c (mi_async): Likewise.
3236 (mi_async_1): Likewise.
3237 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3238 * nat/fork-inferior.h (startup_with_shell): Likewise.
3239 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3240 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3241 * nios2-tdep.c (nios2_debug): Likewise.
3242 * or1k-tdep.c (or1k_debug): Likewise.
3243 * parse.c (parser_debug): Likewise.
3244 * parser-defs.h (parser_debug): Likewise.
3245 * printcmd.c (print_symbol_filename): Likewise.
3246 * proc-api.c (procfs_trace): Likewise.
3247 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3248 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3249 (set_parameter_value): Update.
3250 (add_setshow_generic): Update.
3251 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3252 to bool*.
3253 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3254 int*.
3255 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3256 * record-btrace.c (record_btrace_target::store_registers): Update.
3257 * record-full.c (record_full_memory_query): Change to bool.
3258 (record_full_stop_at_limit): Likewise.
3259 * record-full.h (record_full_memory_query): Likewise.
3260 * remote-notif.c (notif_debug): Likewise.
3261 * remote-notif.h (notif_debug): Likewise.
3262 * remote.c (use_range_stepping): Likewise.
3263 (interrupt_on_connect): Likewise.
3264 (remote_break): Likewise.
3265 * ser-tcp.c (tcp_auto_retry): Likewise.
3266 * ser-unix.c (serial_hwflow): Likewise.
3267 * skip.c (debug_skip): Likewise.
3268 * solib-aix.c (solib_aix_debug): Likewise.
3269 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3270 (spu_auto_flush_cache_p): Likewise.
3271 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3272 Likewise.
3273 (struct info_print_options) <quiet>: Likewise.
3274 * symfile-debug.c (debug_symfile): Likewise.
3275 * symfile.c (auto_solib_add): Likewise.
3276 (separate_debug_file_debug): Likewise.
3277 * symfile.h (auto_solib_add): Likewise.
3278 (separate_debug_file_debug): Likewise.
3279 * symtab.c (basenames_may_differ): Likewise.
3280 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3281 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3282 (struct info_types_options) <quiet>: Likewise.
3283 * symtab.h (demangle): Likewise.
3284 (basenames_may_differ): Likewise.
3285 * target-dcache.c (stack_cache_enabled_1): Likewise.
3286 (code_cache_enabled_1): Likewise.
3287 * target.c (trust_readonly): Likewise.
3288 (may_write_registers): Likewise.
3289 (may_write_memory): Likewise.
3290 (may_insert_breakpoints): Likewise.
3291 (may_insert_tracepoints): Likewise.
3292 (may_insert_fast_tracepoints): Likewise.
3293 (may_stop): Likewise.
3294 (auto_connect_native_target): Likewise.
3295 (target_stop_and_wait): Update.
3296 (target_async_permitted): Change to bool.
3297 (target_async_permitted_1): Likewise.
3298 (may_write_registers_1): Likewise.
3299 (may_write_memory_1): Likewise.
3300 (may_insert_breakpoints_1): Likewise.
3301 (may_insert_tracepoints_1): Likewise.
3302 (may_insert_fast_tracepoints_1): Likewise.
3303 (may_stop_1): Likewise.
3304 * target.h (target_async_permitted): Likewise.
3305 (may_write_registers): Likewise.
3306 (may_write_memory): Likewise.
3307 (may_insert_breakpoints): Likewise.
3308 (may_insert_tracepoints): Likewise.
3309 (may_insert_fast_tracepoints): Likewise.
3310 (may_stop): Likewise.
3311 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3312 (make_thread_apply_all_options_def_group): Change argument from int*
3313 to bool*.
3314 (thread_apply_all_command): Update.
3315 (print_thread_events): Change to bool.
3316 * top.c (confirm): Likewise.
3317 (command_editing_p): Likewise.
3318 (history_expansion_p): Likewise.
3319 (write_history_p): Likewise.
3320 (info_verbose): Likewise.
3321 * top.h (confirm): Likewise.
3322 (history_expansion_p): Likewise.
3323 * tracepoint.c (disconnected_tracing): Likewise.
3324 (circular_trace_buffer): Likewise.
3325 * typeprint.c (print_methods): Likewise.
3326 (print_typedefs): Likewise.
3327 * utils.c (debug_timestamp): Likewise.
3328 (sevenbit_strings): Likewise.
3329 (pagination_enabled): Likewise.
3330 * utils.h (sevenbit_strings): Likewise.
3331 (pagination_enabled): Likewise.
3332 * valops.c (overload_resolution): Likewise.
3333 * valprint.h (struct value_print_options) <prettyformat_arrays,
3334 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3335 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3336 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3337 Likewise.
3338 * windows-nat.c (new_console): Likewise.
3339 (cygwin_exceptions): Likewise.
3340 (new_group): Likewise.
3341 (debug_exec): Likewise.
3342 (debug_events): Likewise.
3343 (debug_memory): Likewise.
3344 (debug_exceptions): Likewise.
3345 (useshell): Likewise.
3346 * windows-tdep.c (maint_display_all_tib): Likewise.
3347 * xml-support.c (debug_xml): Likewise.
3348
3349 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3350
3351 * source.c (prepare_path_for_appending): New function.
3352 (openp): Make use of new function.
3353 (find_and_open_source): Search for the compilation directory and
3354 source file as a relative path beneath the directory search path.
3355
3356 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3357
3358 * source-cache.c (source_cache::get_line_charpos): Catch
3359 exceptions and return false, this matches the behaviour documented
3360 in the header file.
3361
3362 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3363
3364 * ada-tasks.c (info_task): Remove quoting of the task's name.
3365
3366 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3367
3368 * symfile.c (auto_solib_add): Replace comment with a reference
3369 to the header file.
3370
3371 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3372
3373 * NEWS: Mention that gdb can now be compiled with Python 3
3374 on Windows.
3375
3376 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3377
3378 * maint.c (maint_print_section_data::maint_print_section_data):
3379 Force use of 'float log10 (float)' by casting the argument to
3380 float.
3381
3382 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3383
3384 * maint.c: Add 'cmath' include.
3385 (struct maint_print_section_data): New structure.
3386 (print_section_index): New function.
3387 (print_bfd_section_info): Add header comment, small whitespace
3388 cleanup, and update to call new print_section_index function.
3389 (print_objfile_section_info): Likewise.
3390 (maint_obj_section_from_bfd_section): New function.
3391 (print_bfd_section_info_maybe_relocated): New function.
3392 (maintenance_info_sections): Add header comment, always use
3393 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3394
3395 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3396
3397 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3398 inner scope, add check that the objfile has psymtabs before
3399 checking psymtabs_addrmap.
3400 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3401
3402 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3403
3404 * NEWS: Announce that Ada task names are now shown at more places,
3405 and between quotes (except in info task output).
3406 * gdb/ada-tasks.c (task_to_str): New function.
3407 (display_current_task_id): Call task_to_str.
3408 (task_command_1): Likewise.
3409 (print_ada_task_info): In non-mi mode, Properly align headers and data
3410 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3411
3412 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3413
3414 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3415 prstatus.pr_lwp.pr_info instead of making it up.
3416
3417 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3418
3419 * auto-load.c (auto_load_expand_dir_vars): Update.
3420 * defs.h (gdb_datadir): Change to std::string.
3421 (python_libdir): Likewise.
3422 (relocate_gdb_directory): Change return type to std::string.
3423 * guile/guile.c (gdbscm_data_directory): Update.
3424 (initialize_scheme_side): Update.
3425 * jit.c (jit_reader_dir): Change to std::string.
3426 (jit_reader_load_command): Update.
3427 * main.c (gdb_datadir): Change to std::string.
3428 (python_libdir): Likewise.
3429 (set_gdb_data_directory): Update.
3430 (relocate_path): Change to return std::string.
3431 (relocate_gdb_directory): Change to return std::string.
3432 (relocate_gdbinit_path_maybe_in_datadir): Update.
3433 (captured_main_1): Update.
3434 * python/python.c (do_start_initialization): Update.
3435 * top.c (show_gdb_datadir): Update.
3436 * xml-syscall.c (xml_init_syscalls_info): Update.
3437 (init_syscalls_info): Update.
3438
3439 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3440
3441 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3442 out of get_init_files.
3443 (get_init_files): Update.
3444
3445 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3446
3447 * main.c (get_init_files): Change to use std::string.
3448 (captured_main_1): Update.
3449 (print_gdb_help): Update.
3450
3451 2019-09-11 Ali Tamur <tamur@google.com>
3452
3453 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3454 implementation.
3455
3456 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3457
3458 * dbxread.c (read_dbx_symtab): Update.
3459 * dwarf2read.c (load_partial_dies): Update.
3460 * mdebugread.c (parse_partial_symbols): Update.
3461 (handle_psymbol_enumerators): Update.
3462 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3463 * psymtab.c (add_psymbol_to_bcache): Likewise.
3464 (add_psymbol_to_list): Likewise.
3465 * symtab.c (symbol_set_names): Likewise.
3466 * symtab.h (symbol_set_names): Likewise.
3467 * xcoffread.c (scan_xcoff_symtab): Update.
3468
3469 2019-09-11 Tom Tromey <tom@tromey.com>
3470
3471 * symfile-mem.c (symbol_file_add_from_memory): Use
3472 bfd_set_filename.
3473 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3474 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3475
3476 2019-09-10 Tom Tromey <tromey@adacore.com>
3477
3478 * dwarf-index-write.c (write_psymbols): Extend error message.
3479 (debug_names::insert): Add Ada code.
3480 (debug_names::write_psymbols): Remove Ada check.
3481 (debug_names) <m_string_obstack>: New member.
3482 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3483 (gdb_index_symbol_name_matcher::matches): Remove.
3484 (mapped_index_base::find_name_components_bounds): Add "lang"
3485 parameter.
3486 (mapped_index_base::build_name_components): Also split names
3487 according to Ada syntax.
3488 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3489 type of "match_callback".
3490 (check_match, check_find_bounds_finds)
3491 (dw2_expand_symtabs_matching): Update.
3492 (dw2_debug_names_iterator): Add new constructor.
3493 (dw2_debug_names_map_matching_symbols): New function.
3494 (dw2_debug_names_expand_symtabs_matching): Update.
3495 (dwarf2_debug_names_functions): Use
3496 dw2_debug_names_map_matching_symbols.
3497
3498 2019-09-10 Tom Tromey <tromey@adacore.com>
3499
3500 * dwarf2read.c (dw2_get_file_names_reader): Add the
3501 CU's file name to the results.
3502
3503 2019-09-10 Tom Tromey <tromey@adacore.com>
3504
3505 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3506 map_matching_symbols. Update.
3507 * dwarf2read.c (dw2_map_matching_symbols): Update.
3508 * psymtab.c (match_partial_symbol): Change type; update.
3509 (psym_map_matching_symbols): Likewise.
3510 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3511 type; update.
3512 * symfile.h (struct quick_symbol_functions)
3513 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3514 Remove "match".
3515
3516 2019-09-10 Tom Tromey <tromey@adacore.com>
3517
3518 * psymtab.c (map_block): Remove.
3519 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3520 * symtab.c (iterate_over_symbols_terminated): New function.
3521 * symtab.c (iterate_over_symbols_terminated): Declare.
3522
3523 2019-09-10 Tom Tromey <tromey@adacore.com>
3524
3525 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3526 * language.h (struct language_defn) <la_iterate_over_symbols>:
3527 Return bool.
3528 * symtab.c (iterate_over_symbols): Return bool.
3529 * symtab.h (iterate_over_symbols): Return bool.
3530
3531 2019-09-10 Tom Tromey <tromey@adacore.com>
3532
3533 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3534 (add_nonlocal_symbols): Update.
3535 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3536 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3537 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3538 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3539 Change type of "callback". Remove "data".
3540
3541
3542 2019-09-09 Ali Tamur <tamur@google.com>
3543
3544 * dwarf2read.c (comp_unit_head): Update comment.
3545 (dwarf2_dwo_name): New function declaration.
3546 (dwarf_unit_type_name): New function declaration.
3547 (read_comp_unit_head): Add support for new compilation units,
3548 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3549 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3550 (currently named as "signature") in their header. Also clarify error
3551 messages.
3552 (lookup_dwo_id): New function. Returns the dwo id of the given
3553 compile unit.
3554 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3555 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3556 functions.
3557 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3558 (dwarf2_dwo_name): Get the dwo name if present.
3559 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3560 purposes.
3561
3562 2019-09-09 Tom Tromey <tom@tromey.com>
3563
3564 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3565
3566 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3567
3568 * python/python.c (do_start_initialization): Make progname_copy static,
3569 to avoid a leak report.
3570
3571 2019-09-08 Tom Tromey <tom@tromey.com>
3572
3573 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3574
3575 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3576
3577 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3578 Change type to gdb::optional<block_enum>.
3579 (dw2_symtab_iter_init): Change block_index parameter type
3580 to gdb::optional<block_enum>.
3581 (dw2_lookup_symbol): Change block_index parameter
3582 type to block_enum.c
3583 (dw2_debug_names_lookup_symbol): Likewise.
3584 * psymtab.c (psym_lookup_symbol): Likewise.
3585 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3586 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3587 Likewise.
3588
3589 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3590
3591 * defs.h (relocate_gdb_directory): Change int to bool in
3592 signature and rename flag to relocatable.
3593 * main.c (relocate_path): Likewise.
3594 (relocate_gdb_directory): Likewise.
3595
3596 2019-09-06 Alan Modra <amodra@gmail.com>
3597
3598 * coffread.c (coff_symfile_read): Constify filename variable.
3599 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3600 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3601 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3602 * solib.c (reload_shared_libraries_1): Likewise.
3603 * symfile.c (reread_symbols): Likewise.
3604 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3605 * solib-darwin.c (darwin_bfd_open): Likewise.
3606 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3607
3608 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3609
3610 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3611 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3612
3613 2019-09-03 Tom Tromey <tromey@adacore.com>
3614
3615 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3616 types.
3617 (has_negatives): Unbias a range type bound.
3618 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3619 * gdbtypes.c (operator==): Handle new field.
3620 (create_range_type): Add "bias" parameter.
3621 (create_static_range_type, resolve_dynamic_range): Update.
3622 * gdbtypes.h (struct range_bounds) <bias>: New member.
3623 (create_range_type): Add bias parameter.
3624 * printcmd.c (print_scalar_formatted): Unbias range types.
3625 * value.c (unpack_long): Unbias range types.
3626 (pack_long): Bias range types.
3627
3628 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3629
3630 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3631 probe arguments.
3632
3633 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3634
3635 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3636 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3637 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3638 (compile_probe_arg): Likewise.
3639 * probe.h (get_argument_count): Likewise.
3640 * solib-svr4.c (solib_event_probe_action): Likewise.
3641 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3642
3643 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3644
3645 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3646 code to here...
3647 (svr4_create_solib_event_breakpoints): ...from here.
3648
3649 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3650
3651 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3652 suffix from warning message.
3653
3654 2019-08-30 Tom Tromey <tom@tromey.com>
3655
3656 * tui/tui-winsource.h (struct tui_source_window_base)
3657 <refresh_all>: Don't declare.
3658 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3659 Remove.
3660 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3661 tui_show_locator_content.
3662 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3663 declare.
3664 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3665 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3666 declare.
3667
3668 2019-08-30 Tom Tromey <tom@tromey.com>
3669
3670 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3671
3672 2019-08-30 Tom Tromey <tom@tromey.com>
3673
3674 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3675 Remove unnecessary forward declarations.
3676
3677 2019-08-30 Tom Tromey <tom@tromey.com>
3678
3679 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3680 rerender.
3681 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3682 tui_show_locator_content.
3683
3684 2019-08-30 Tom Tromey <tom@tromey.com>
3685
3686 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3687 (tui_locator_window::rerender): Rewrite using body of previous
3688 tui_show_locator_content.
3689
3690 2019-08-30 Tom Tromey <tom@tromey.com>
3691
3692 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3693 set_locator_fullname>: New methods.
3694 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3695 Rename from tui_set_locator_fullname.
3696 (tui_locator_window::set_locator_info): Rename from
3697 tui_set_locator_info. Return bool.
3698 (tui_update_locator_fullname, tui_show_frame_info): Update.
3699
3700 2019-08-30 Tom Tromey <tom@tromey.com>
3701
3702 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3703
3704 2019-08-30 Tom Tromey <tom@tromey.com>
3705
3706 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3707 call touchwin.
3708
3709 2019-08-30 Tom Tromey <tom@tromey.com>
3710
3711 * tui/tui-wingeneral.c (box_win): Assume win_info and
3712 win_info->handle cannot be NULL.
3713
3714 2019-08-30 Tom Tromey <tom@tromey.com>
3715
3716 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3717 refresh_window>: Declare.
3718 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3719 resize.
3720 (tui_data_item_window::rerender): Rename from
3721 tui_display_register.
3722 (tui_data_item_window::refresh_window): New method.
3723 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3724 no-op.
3725
3726 2019-08-30 Tom Tromey <tom@tromey.com>
3727
3728 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3729 regs_column_count, current_group>: Move later. Now private.
3730 <get_current_group>: New method.
3731 * tui/tui-regs.c (tui_reg_command): Update.
3732 * tui/tui-layout.c (tui_set_layout): Update.
3733
3734 2019-08-30 Tom Tromey <tom@tromey.com>
3735
3736 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3737 (tui_data_window::rerender): Don't call
3738 check_and_display_highlight_if_needed.
3739 (tui_data_window::refresh_all): Remove call to
3740 erase_data_content.
3741
3742 2019-08-30 Tom Tromey <tom@tromey.com>
3743
3744 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3745 (tui_data_window::display_registers_from)
3746 (tui_data_window::display_reg_element_at_line)
3747 (tui_data_window::display_registers_from_line): Remove checks of
3748 "empty".
3749
3750 2019-08-30 Tom Tromey <tom@tromey.com>
3751
3752 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3753 Don't declare.
3754 * tui/tui-regs.c (tui_data_window::show_registers): Call
3755 rerender.
3756 (tui_data_window::rerender): Rename from display_all_data.
3757 (tui_data_window::rerender): Remove old implementation.
3758
3759 2019-08-30 Tom Tromey <tom@tromey.com>
3760
3761 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3762 text.
3763 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3764
3765 2019-08-29 Bernhard Wodok <barto@gmx.net>
3766 Sergio Durigan Junior <sergiodj@redhat.com>
3767
3768 PR win32/24284
3769 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3770
3771 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3772
3773 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3774 when searching for types.
3775
3776 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3777
3778 * f-lang.c (f_language_defn): Use f_print_typedef.
3779 * f-lang.h (f_print_typedef): Declare.
3780 * f-typeprint.c (f_print_typedef): Define.
3781
3782 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3783
3784 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3785
3786 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3787
3788 * cli/cli-utils.c (info_print_options_defs): Delete.
3789 (make_info_print_options_def_group): Delete.
3790 (extract_info_print_options): Delete.
3791 (info_print_command_completer): Delete.
3792 (info_print_args_help): Add extra parameter, and optionally
3793 include text about -n flag.
3794 * cli/cli-utils.h (struct info_print_options): Delete.
3795 (extract_info_print_options): Delete declaration.
3796 (info_print_command_completer): Delete declaration.
3797 (info_print_args_help): Add extra parameter, extend header
3798 comment.
3799 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3800 search_symbols.
3801 * stack.c (struct info_print_options): New type.
3802 (info_print_options_defs): New file scoped variable.
3803 (make_info_print_options_def_group): New static function.
3804 (info_print_command_completer): New static function.
3805 (info_locals_command): Update to use new local functions.
3806 (info_args_command): Likewise.
3807 (_initialize_stack): Add extra parameter to calls to
3808 info_print_args_help.
3809 * symtab.c (search_symbols): Add extra parameter, use this to
3810 possibly excluse non-debug symbols.
3811 (symtab_symbol_info): Add extra parameter, which is passed on to
3812 search_symbols.
3813 (struct info_print_options): New type.
3814 (info_print_options_defs): New file scoped variable.
3815 (make_info_print_options_def_group): New static function.
3816 (info_print_command_completer): New static function.
3817 (info_variables_command): Update to use local functions, and pass
3818 extra parameter through to symtab_symbol_info.
3819 (info_functions_command): Likewise.
3820 (info_types_command): Pass additional argument through to
3821 symtab_symbol_info.
3822 (rbreak_command): Pass extra argument to search_symbols.
3823 (_initialize_symtab): Add extra arguments for calls to
3824 info_print_args_help, and update help text for 'info variables',
3825 'whereis', and 'info functions' commands.
3826 * symtab.h (search_symbols): Add extra argument to declaration.
3827 * NEWS: Mention new flags.
3828
3829 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3830
3831 * symtab.c (lookup_static_symbol): Call the new function (and move
3832 it down to be next to lookup_global_symbol).
3833 (struct global_sym_lookup_data): Add block_enum member and rename to...
3834 (struct global_or_static_sym_lookup_data): ...this.
3835 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3836 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3837 (lookup_symbol_global_or_static_iterator_cb): ...this.
3838 (lookup_global_or_static_symbol): New function.
3839 (lookup_global_symbol): Call new function.
3840
3841 2019-08-26 Tom de Vries <tdevries@suse.de>
3842
3843 PR c++/24852
3844 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3845 when pc_probe.prob == NULL.
3846
3847 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3848
3849 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3850 variable symbol_linkage to symbol_linkage_.
3851
3852 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3853
3854 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3855 represent whether the symbol is static, dynamic, or we don't
3856 know.
3857
3858 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3859
3860 * gdb/rx-tdep.c (rx_register_names): New.
3861 (rx_register_name): Delete.
3862 (rx_psw_type): Delete.
3863 (rx_fpsw_type): Delete.
3864 (rx_register_type): Delete.
3865 (rx_gdbarch_init): Convert target-descriptions.
3866 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3867 * gdb/features/Makefile: Add rx.xml.
3868 * gdb/features/rx.xml: New.
3869 * gdb/features/rx.c: Generated.
3870 * gdb/NEWS: Mention target description support.
3871
3872 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3873
3874 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3875 *slot_ptr.
3876
3877 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3878
3879 * configure.ac: Don't check for 'dlfcn.h' (moved to
3880 gdbsupport/common.m4).
3881 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3882 'gdbsupport/'.
3883 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3884 * compile/compile-c-support.c: Include
3885 'gdbsupport/gdb-dlfcn.h'.
3886 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3887 * gdb-dlfcn.c: Move to...
3888 * gdbsupport/gdb-dlfcn.c: ... here.
3889 * gdb-dlfcn.h: Move to...
3890 * gdbsupport/gdb-dlfcn.h: ... here.
3891
3892 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3893
3894 * nios2-tdep.c (struct reg_value): Improve comments. Make
3895 the offset field signed.
3896
3897 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3898
3899 * python/lib/gdb/__init__.py (_execute_file): New function.
3900 * python/python.c (python_run_simple_file): Call gdb._execute_file
3901 on Windows.
3902
3903 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3904
3905 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3906 all uses as this was never set to anything but a zero value.
3907
3908 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3909
3910 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3911
3912 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3913
3914 * tui/tui-data.h (tui_gen_win_info): Add an =default
3915 move constructor, required by some GCC versions.
3916
3917 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3918
3919 * go32-nat.c (go32_sysinfo): Add hygon_p.
3920
3921 2019-08-20 Tom Tromey <tom@tromey.com>
3922
3923 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3924 line_from_reg_element_no, first_reg_element_no_inline,
3925 display_all_data, delete_data_content_windows,
3926 erase_data_content>: Now private.
3927
3928 2019-08-20 Tom Tromey <tom@tromey.com>
3929
3930 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3931 (tui_unhighlight_win, tui_highlight_win)
3932 (tui_win_info::make_window): Update.
3933 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3934
3935 2019-08-20 Tom Tromey <tom@tromey.com>
3936
3937 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3938 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3939 (MAX_PID_WIDTH): Move to tui-stack.c.
3940 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3941 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3942 (MAX_PID_WIDTH): Move from tui-data.h.
3943
3944 2019-08-20 Tom Tromey <tom@tromey.com>
3945
3946 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3947 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3948 (box_win): Update.
3949 (tui_gen_win_info::make_window): Rename from tui_make_window.
3950 (tui_win_info::make_window): New method.
3951 (tui_gen_win_info::make_visible): Update.
3952 * tui/tui-source.c (tui_source_window::set_contents): Update.
3953 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3954 (tui_data_window::display_registers_from): Update.
3955 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3956 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3957 Declare.
3958 <can_box>: Remove.
3959 <title>: Remove.
3960 (struct tui_win_info) <make_window>: Declare.
3961 <can_box>: Now virtual.
3962 <title>: New member.
3963 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3964 * tui/tui-command.c (tui_cmd_window::resize): Update.
3965
3966 2019-08-20 Tom Tromey <tom@tromey.com>
3967
3968 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3969 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3970 (tui_data_window::check_register_values): Update.
3971
3972 2019-08-20 Tom Tromey <tom@tromey.com>
3973
3974 * tui/tui-regs.h (struct tui_data_window): Use
3975 DISABLE_COPY_AND_ASSIGN.
3976 <regs_content>: Change type, removing unique_ptr.
3977 <tui_data_window>: Add move constructor.
3978 * tui/tui-regs.c (tui_data_window::show_registers)
3979 (tui_data_window::show_register_group)
3980 (tui_data_window::display_registers_from)
3981 (tui_data_window::display_registers_from)
3982 (tui_data_window::first_data_item_displayed)
3983 (tui_data_window::delete_data_content_windows)
3984 (tui_data_window::rerender, tui_data_window::refresh_window)
3985 (tui_data_window::check_register_values): Update.
3986
3987 2019-08-20 Tom Tromey <tom@tromey.com>
3988
3989 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3990 show_register_group>: Declare.
3991 (tui_show_register_group): Don't declare.
3992 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3993 tui_show_registers.
3994 (tui_data_window::show_register_group): Rename from
3995 tui_show_register_group.
3996 (tui_data_window::check_register_values, tui_reg_command):
3997 Update.
3998 * tui/tui-layout.c (tui_set_layout): Update.
3999
4000 2019-08-20 Tom Tromey <tom@tromey.com>
4001
4002 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4003 Declare.
4004 (tui_check_register_values): Don't declare.
4005 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4006 from tui_check_register_values.
4007 * tui/tui-hooks.c (tui_register_changed): Update.
4008
4009 2019-08-20 Tom Tromey <tom@tromey.com>
4010
4011 * tui/tui-regs.c (tui_reg_layout): Move later.
4012 (tui_show_registers): Don't enable TUI mode or change layout.
4013
4014 2019-08-20 Tom Tromey <tom@tromey.com>
4015
4016 * tui/tui-regs.h (struct tui_data_item_window)
4017 <~tui_data_item_window>: Remove.
4018 <content>: Now a unique_xmalloc_ptr.
4019 * tui/tui-regs.c (tui_register_format): Return a
4020 unique_xmalloc_ptr.
4021 (tui_get_register): Update.
4022 (~tui_data_item_window): Remove.
4023 (tui_data_window::display_registers_from, tui_display_register):
4024 Update.
4025 * tui/tui-io.h (tui_expand_tabs): Update.
4026 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4027 Remove "col" parameter.
4028
4029 2019-08-20 Tom Tromey <tom@tromey.com>
4030
4031 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4032 field.
4033 * tui/tui-regs.c (~tui_data_item_window): Update.
4034
4035 2019-08-20 Tom Tromey <tom@tromey.com>
4036
4037 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4038 earlier.
4039
4040 2019-08-20 Tom Tromey <tom@tromey.com>
4041
4042 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4043
4044 2019-08-20 Tom Tromey <tom@tromey.com>
4045
4046 * tui/tui-source.h (struct tui_source_window): Update.
4047 * tui/tui-regs.c (tui_show_registers): Update.
4048 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4049 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4050 (NO_REGS_STRING): Remove defines.
4051
4052 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4053
4054 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4055 unnecessary thread walk if remote doesn't support the packet.
4056
4057 2019-08-19 Tom Tromey <tromey@adacore.com>
4058
4059 * python/py-value.c (value_has_field): Fix indentation.
4060
4061 2019-08-19 Tom Tromey <tromey@adacore.com>
4062
4063 * printcmd.c (do_one_display, info_display_command): Update.
4064 * block.h (contained_in): Return bool. Add allow_nested
4065 parameter.
4066 * block.c (contained_in): Return bool. Add allow_nested
4067 parameter.
4068
4069 2019-08-19 Tom Tromey <tom@tromey.com>
4070
4071 * configure: Rebuild.
4072 * configure.ac: Disallow the combination of -static-libstdc++ and
4073 source highlight.
4074 * source-cache.c (get_language_name): Handle rust.
4075 (source_cache::get_source_lines): Ignore highlighting exceptions.
4076
4077 2019-08-16 Tom Tromey <tom@tromey.com>
4078
4079 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4080 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4081 (struct tui_source_window_base) <make_visible, refresh_window,
4082 resize>: Remove methods.
4083 <execution_info>: Remove field.
4084 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4085 (tui_show_source_line, tui_source_window_base)
4086 (~tui_source_window_base): Update.
4087 (tui_source_window_base::resize)
4088 (tui_source_window_base::make_visible)
4089 (tui_source_window_base::refresh_window): Remove.
4090 (tui_source_window_base::update_exec_info): Update.
4091 * tui/tui-source.c (tui_source_window::set_contents): Update.
4092 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4093
4094 2019-08-16 Tom Tromey <tom@tromey.com>
4095
4096 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4097 deprecated_query_hook.
4098
4099 2019-08-16 Tom Tromey <tom@tromey.com>
4100
4101 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4102 (tui_update_source_windows_with_line): Update.
4103 * tui/tui-source.h (struct tui_source_window)
4104 <show_symtab_source>: Declare.
4105 (tui_show_symtab_source): Don't declare.
4106 * tui/tui-source.c (tui_show_symtab_source): Rename from
4107 tui_show_symtab_source.
4108
4109 2019-08-16 Tom Tromey <tom@tromey.com>
4110
4111 * tui/tui-winsource.h (struct tui_source_window_base)
4112 <set_contents>: Declare.
4113 * tui/tui-winsource.c
4114 (tui_source_window_base::update_source_window_as_is): Update.
4115 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4116 Declare.
4117 (tui_set_source_content): Don't declare.
4118 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4119 tui_set_source_content.
4120 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4121 Declare.
4122 (tui_set_disassem_content): Don't declare.
4123 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4124 tui_set_disassem_content.
4125
4126 2019-08-16 Tom Tromey <tom@tromey.com>
4127
4128 * tui/tui-winsource.h (struct tui_source_window_base)
4129 <update_breakpoint_info>: Declare.
4130 (tui_update_breakpoint_info): Don't declare.
4131 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4132 (tui_update_all_breakpoint_info): Update.
4133 (tui_source_window_base::update_breakpoint_info): Rename from
4134 tui_update_breakpoint_info.
4135 (tui_source_window_base::update_exec_info): Update.
4136
4137 2019-08-16 Tom Tromey <tom@tromey.com>
4138
4139 * tui/tui-winsource.h (struct tui_source_window_base)
4140 <update_source_window>: Declare.
4141 (tui_update_source_window): Don't declare.
4142 * tui/tui-winsource.c
4143 (tui_source_window_base::update_source_window): Rename from
4144 tui_update_source_window.
4145 (tui_source_window_base::rerender): Update.
4146 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4147 * tui/tui-disasm.c (tui_show_disassem)
4148 (tui_show_disassem_and_update_source)
4149 (tui_disasm_window::maybe_update): Update.
4150
4151 2019-08-16 Tom Tromey <tom@tromey.com>
4152
4153 * tui/tui-winsource.h (struct tui_source_window_base)
4154 <update_source_window_as_is>: Declare.
4155 (tui_update_source_window_as_is): Don't declare.
4156 * tui/tui-winsource.c (tui_update_source_window): Update
4157 (tui_source_window_base::update_source_window_as_is): Rename from
4158 tui_update_source_window_as_is.
4159 (tui_source_window_base::refill): Update.
4160 * tui/tui-source.c (tui_show_symtab_source): Update.
4161 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4162 Update.
4163
4164 2019-08-16 Tom Tromey <tom@tromey.com>
4165
4166 * tui/tui-winsource.h (tui_update_source_window)
4167 (tui_update_source_window_as_is): Remove "noerror" parameter.
4168 * tui/tui-winsource.c (tui_update_source_window)
4169 (tui_update_source_window_as_is): Remove "noerror" parameter.
4170 (tui_update_source_windows_with_addr)
4171 (tui_update_source_windows_with_line)
4172 (tui_source_window_base::rerender)
4173 (tui_source_window_base::refill): Update.
4174 * tui/tui-source.h (tui_set_source_content)
4175 (tui_show_symtab_source): Remove "noerror" parameter.
4176 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4177 parameter.
4178 (tui_show_symtab_source): Likewise.
4179 (tui_source_window::maybe_update): Update.
4180 * tui/tui-disasm.c (tui_show_disassem)
4181 (tui_show_disassem_and_update_source)
4182 (tui_disasm_window::do_scroll_vertical)
4183 (tui_disasm_window::maybe_update): Update.
4184
4185 2019-08-16 Tom Tromey <tom@tromey.com>
4186
4187 * tui/tui.c (tui_is_window_visible): Update.
4188 * tui/tui-wingeneral.c (tui_make_window)
4189 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4190 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4191 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4192 (tui_set_win_height_command, parse_scrolling_args): Update.
4193 * tui/tui-source.c (tui_source_window::style_changed): Update.
4194 * tui/tui-regs.c (tui_show_registers)
4195 (tui_data_window::first_data_item_displayed)
4196 (tui_data_window::delete_data_content_windows)
4197 (tui_check_register_values, tui_reg_command): Update.
4198 * tui/tui-disasm.c (tui_show_disassem): Update.
4199 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4200 method.
4201 <is_visible>: Remove field.
4202 * tui/tui-data.c (tui_next_win, tui_prev_win)
4203 (tui_delete_invisible_windows): Update.
4204
4205 2019-08-16 Tom Tromey <tom@tromey.com>
4206
4207 * tui/tui-winsource.h (struct tui_source_window_base)
4208 <m_has_locator>: Remove.
4209 * tui/tui-layout.c (show_source_disasm_command, show_data)
4210 (show_source_or_disasm_and_command): Update.
4211
4212 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4213
4214 * NEWS (Other MI changes): New subsection.
4215 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4216 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4217 * arch-utils.c (default_get_pc_address_flags): New function.
4218 * arch-utils.h (default_get_pc_address_flags): New declaration.
4219 * gdbarch.sh: Add get_pc_address_flags.
4220 * gdbarch.c: Regenerate.
4221 * gdbarch.h: Likewise.
4222 * stack.c (print_pc): New function.
4223 (print_frame_info) (print_frame): Call print_pc.
4224
4225 2019-08-16 Tom de Vries <tdevries@suse.de>
4226
4227 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4228 print_objfile_section_info.
4229
4230 2019-08-15 Tom Tromey <tom@tromey.com>
4231
4232 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4233 calling update_cmdwin_start_line.
4234 * tui/tui-winsource.h (struct tui_source_window_base)
4235 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4236 <rerender>: Declare.
4237 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4238 Call rerender.
4239 (tui_source_window_base::set_new_height): Remove.
4240 (tui_source_window_base::rerender): Rename from
4241 do_make_visible_with_new_height.
4242 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4243 resize method.
4244 (tui_win_info::make_invisible_and_set_new_height)
4245 (tui_win_info::make_visible_with_new_height): Remove.
4246 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4247 Declare.
4248 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4249 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4250 do_make_visible_with_new_height>: Don't declare.
4251 <rerender>: Declare.
4252 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4253 set_new_height.
4254 (tui_data_window::do_make_visible_with_new_height): Remove.
4255 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4256 call tui_show_locator_content.
4257 (tui_gen_win_info::resize): Call rerender.
4258 (show_source_or_disasm_and_command): Don't call
4259 tui_show_locator_content.
4260 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4261 method.
4262 (struct tui_win_info) <rerender>: Declare.
4263 <set_new_height, make_invisible_and_set_new_height,
4264 make_visible_with_new_height>: Don't declare.
4265 * tui/tui-data.c (tui_win_list::rerender): New method.
4266 * tui/tui-command.h (struct tui_cmd_window)
4267 <do_make_visible_with_new_height>: Don't declare.
4268 * tui/tui-command.c
4269 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4270
4271 2019-08-15 Tom Tromey <tromey@adacore.com>
4272
4273 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4274 * ada-lang.c (ada_enum_name): Likewise.
4275
4276 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4277
4278 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4279 leading underscore.
4280 (GdbOutputErrorFile): Likewise.
4281 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4282 accordingly.
4283 (execute_unwinders): Rename to have a leading underscore.
4284 (auto_load_packages): Likewise.
4285 (global scope): Adjust call to auto_load_packages accordingly.
4286 (GdbSetPythonDirectory): Likewise.
4287 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4288 instead of execute_unwinders.
4289
4290 2019-08-15 Tom Tromey <tom@tromey.com>
4291
4292 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4293 (show_data): Don't change window visibility.
4294 (tui_gen_win_info::resize): Remove special case for command
4295 window. Use wresize, when available.
4296 (show_source_or_disasm_and_command): Don't change window
4297 visibility.
4298 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4299 <make_visible>: New method.
4300 * tui/tui-command.c (tui_cmd_window::resize): New method.
4301
4302 2019-08-15 Tom Tromey <tom@tromey.com>
4303
4304 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4305 (struct tui_source_windows): New.
4306 * tui/tui-winsource.c (tui_display_main): Update.
4307 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4308 (new_height_ok, parse_scrolling_args): Update.
4309 * tui/tui-layout.c (show_layout, show_data): Update.
4310 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4311 (tui_add_to_source_windows): Don't declare.
4312 * tui/tui-data.c (source_windows, tui_source_windows)
4313 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4314
4315 2019-08-15 Tom Tromey <tom@tromey.com>
4316
4317 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4318 Rename from reset.
4319 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4320 * tui/tui-layout.c (show_source_disasm_command, show_data):
4321 Update.
4322 (tui_gen_win_info::resize): Rename.
4323 (show_source_or_disasm_and_command): Update.
4324 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4325 reset.
4326
4327 2019-08-15 Tom Tromey <tom@tromey.com>
4328
4329 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4330 * tui/tui-interp.c (tui_interp::init): Don't call
4331 tui_initialize_static_data.
4332 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4333
4334 2019-08-15 Tom Tromey <tom@tromey.com>
4335
4336 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4337 examine tui_win_list.
4338
4339 2019-08-15 Tom Tromey <tom@tromey.com>
4340
4341 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4342 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4343 tui_clear_source_content.
4344 (tui_clear_source_content): Remove.
4345 (tui_source_window_base::do_erase_source_content): Hoist call to
4346 content.clear().
4347 * tui/tui-stack.c (tui_show_frame_info): Don't call
4348 tui_clear_source_content.
4349
4350 2019-08-15 Tom Tromey <tom@tromey.com>
4351
4352 * tui/tui-winsource.h (struct tui_source_window_base)
4353 <do_erase_source_content>: New method.
4354 <erase_source_content>: New method.
4355 (tui_erase_source_content): Don't declare.
4356 * tui/tui-winsource.c (tui_clear_source_content): Update.
4357 (tui_source_window_base::do_erase_source_content): Rename from
4358 tui_erase_source_content.
4359 (tui_source_window_base::show_source_content): Update.
4360 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4361 * tui/tui-source.h (struct tui_source_window)
4362 <erase_source_content>: New method.
4363 * tui/tui-disasm.h (struct tui_disasm_window)
4364 <erase_source_content>: New method.
4365
4366 2019-08-15 Tom Tromey <tom@tromey.com>
4367
4368 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4369 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4370 constructor.
4371 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4372 * tui/tui-source.c (tui_set_source_content): Update.
4373 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4374
4375 2019-08-15 Tom Tromey <tom@tromey.com>
4376
4377 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4378 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4379 tui-source.c.
4380 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4381 Declare.
4382 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4383 method.
4384 (tui_source_window::maybe_update): Update.
4385
4386 2019-08-15 Tom Tromey <tom@tromey.com>
4387
4388 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4389 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4390 tui-disasm.c.
4391 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4392 Declare.
4393 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4394 method.
4395 (tui_disasm_window::maybe_update): Update.
4396
4397 2019-08-15 Tom Tromey <tom@tromey.com>
4398
4399 * tui/tui-winsource.h (struct tui_source_window_base)
4400 <maybe_update>: Declare.
4401 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4402 method.
4403 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4404 Declare.
4405 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4406 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4407 Declare.
4408 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4409
4410 2019-08-15 Tom Tromey <tom@tromey.com>
4411
4412 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4413
4414 2019-08-15 Tom Tromey <tom@tromey.com>
4415
4416 * tui/tui-wingeneral.c: Include tui-stack.h.
4417 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4418 (struct tui_locator_window): Move from tui-data.h.
4419 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4420 (tui_initialize_static_data): Move from tui-data.c.
4421 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4422 (struct tui_locator_window): Move to tui-stack.c.
4423 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4424 (tui_initialize_static_data): Move to tui-stack.c.
4425
4426 2019-08-15 Tom Tromey <tom@tromey.com>
4427
4428 * tui/tui-layout.c (show_source_disasm_command)
4429 (show_source_or_disasm_and_command): Use make_visible method, not
4430 tui_make_window.
4431 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4432 Remove.
4433
4434 2019-08-15 Tom Tromey <tom@tromey.com>
4435
4436 * tui/tui-wingeneral.h (tui_make_window): Update.
4437 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4438 parameter.
4439 (tui_gen_win_info::make_visible): Update.
4440 * tui/tui-regs.c (tui_data_window::display_registers_from):
4441 Update.
4442 * tui/tui-layout.c (show_source_disasm_command)
4443 (show_source_or_disasm_and_command): Update.
4444 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4445 (enum tui_box): Remove.
4446 (struct tui_win_info) <can_box>: New method.
4447 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4448 method.
4449
4450 2019-08-15 Tom de Vries <tdevries@suse.de>
4451
4452 * linux-nat-trad.c: Include gdbarch.h.
4453
4454 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4455
4456 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4457 register sizes.
4458
4459 2019-08-14 Tom Tromey <tromey@adacore.com>
4460
4461 * darwin-nat.c: Include gdbarch.h.
4462 * darwin-nat-info.c: Include gdbarch.h.
4463
4464 2019-08-13 Tom Tromey <tom@tromey.com>
4465
4466 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4467 Remove.
4468 * tui/tui-data.c (tui_initialize_static_data): Update.
4469
4470 2019-08-13 Tom Tromey <tom@tromey.com>
4471
4472 * tui/tui-winsource.h (struct tui_exec_info_window)
4473 <~tui_exec_info_window, maybe_allocate_content, get_content,
4474 m_content>: Remove.
4475 (struct tui_source_window_base) <set_exec_info_content,
4476 show_exec_info_content>: Don't declare.
4477 * tui/tui-winsource.c
4478 (tui_exec_info_window::maybe_allocate_content): Remove.
4479 (tui_source_window_base::update_exec_info): Rename from
4480 set_exec_info_content.
4481 (tui_source_window_base::show_exec_info_content)
4482 (tui_source_window_base::update_exec_info): Remove.
4483
4484 2019-08-13 Tom Tromey <tom@tromey.com>
4485
4486 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4487 declare.
4488 * tui/tui-winsource.c (tui_update_source_window_as_is)
4489 (tui_update_source_windows_with_addr, tui_erase_source_content):
4490 Update.
4491 (tui_clear_exec_info_content): Remove.
4492
4493 2019-08-13 Tom Tromey <tom@tromey.com>
4494
4495 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4496 declare.
4497 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4498 call tui_erase_exec_info_content.
4499 (tui_clear_exec_info_content): Rename from
4500 tui_erase_exec_info_content.
4501 (tui_clear_exec_info_content): Delete.
4502
4503 2019-08-13 Tom Tromey <tom@tromey.com>
4504
4505 * tui/tui-winsource.h (struct tui_source_window_base)
4506 <show_exec_info_content>: Declare.
4507 (tui_show_exec_info_content): Don't declare.
4508 * tui/tui-winsource.c
4509 (tui_source_window_base::show_exec_info_content): Rename from
4510 tui_show_exec_info_content.
4511 (tui_source_window_base::update_exec_info): Update.
4512
4513 2019-08-13 Tom Tromey <tom@tromey.com>
4514
4515 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4516 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4517 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4518 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4519 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4520 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4521 ... here.
4522
4523 2019-08-13 Tom Tromey <tom@tromey.com>
4524
4525 * tui/tui-winsource.h (struct tui_source_window_base)
4526 <update_exec_info>: Declare.
4527 (tui_update_exec_info): Don't declare.
4528 * tui/tui-winsource.c (tui_update_source_window_as_is)
4529 (tui_source_window_base::refresh_all)
4530 (tui_update_all_breakpoint_info): Update.
4531 (tui_source_window_base::update_exec_info): Rename from
4532 tui_update_exec_info.
4533 * tui/tui-stack.c (tui_show_frame_info): Update.
4534
4535 2019-08-13 Tom Tromey <tom@tromey.com>
4536
4537 * tui/tui-winsource.h (struct tui_source_window_base)
4538 <set_exec_info_content>: Declare.
4539 (tui_set_exec_info_content): Don't declare.
4540 * tui/tui-winsource.c
4541 (tui_source_window_base::set_exec_info_content): Rename from
4542 tui_set_exec_info_content.
4543 (tui_update_exec_info): Update.
4544
4545 2019-08-13 Tom Tromey <tom@tromey.com>
4546
4547 * tui/tui-winsource.h (struct tui_source_window_base)
4548 <show_source_content>: Declare.
4549 (tui_show_source_content): Don't declare.
4550 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4551 (tui_source_window_base::show_source_content): Rename from
4552 tui_show_source_content.
4553 (tui_source_window_base::refresh_all): Update.
4554 * tui/tui-layout.c (show_source_disasm_command)
4555 (show_source_or_disasm_and_command): Update.
4556
4557 2019-08-13 Tom Tromey <tom@tromey.com>
4558
4559 * tui/tui-winsource.c (tui_erase_source_content)
4560 (tui_show_source_content, tui_source_window_base::refresh_all):
4561 Update.
4562 * tui/tui-wingeneral.h
4563 (tui_check_and_display_highlight_if_needed): Don't declare.
4564 * tui/tui-wingeneral.c
4565 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4566 check_and_display_highlight_if_needed.
4567 * tui/tui-win.c (tui_rehighlight_all)
4568 (tui_win_info::make_visible_with_new_height): Update.
4569 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4570 (tui_data_window::erase_data_content)
4571 (tui_data_window::display_all_data): Update.
4572 * tui/tui-data.h (struct tui_win_info)
4573 <check_and_display_highlight_if_needed>: Declare.
4574
4575 2019-08-13 Tom Tromey <tom@tromey.com>
4576
4577 * tui/tui-win.c (tui_resize_all): Call
4578 tui_delete_invisible_windows.
4579 * tui/tui-layout.c (show_layout): Call
4580 tui_delete_invisible_windows.
4581 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4582 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4583
4584 2019-08-13 Tom Tromey <tom@tromey.com>
4585
4586 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4587 tui_add_win_to_layout.
4588
4589 2019-08-13 Tom Tromey <tom@tromey.com>
4590
4591 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4592 * tui/tui-layout.c (tui_default_win_height): Now static.
4593
4594 2019-08-13 Tom Tromey <tom@tromey.com>
4595
4596 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4597 single switch.
4598 (show_source_disasm_command, show_source_or_disasm_and_command):
4599 Don't check current layout.
4600
4601 2019-08-13 Tom Tromey <tom@tromey.com>
4602
4603 * tui/tui-wingeneral.c (make_all_visible): Remove.
4604 (tui_make_all_invisible): Simplify.
4605 * tui/tui-layout.c (tui_make_all_invisible): Move from
4606 tui-wingeneral.c; simplify.
4607 (show_layout): Hoist call to tui_make_all_invisible.
4608 (show_data): Don't call tui_make_all_invisible.
4609
4610 2019-08-13 Tom Tromey <tom@tromey.com>
4611
4612 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4613 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4614
4615 2019-08-13 Tom Tromey <tom@tromey.com>
4616
4617 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4618 tui-data.c.
4619 (show_source_disasm_command, show_data)
4620 (show_source_or_disasm_and_command): Don't use
4621 tui_set_current_layout_to.
4622 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4623 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4624 tui-layout.c.
4625 (tui_set_current_layout_to): Remove.
4626
4627 2019-08-13 Tom Tromey <tom@tromey.com>
4628
4629 * tui/tui-layout.c (tui_set_layout): Update.
4630 * tui/tui-data.h (struct tui_layout_def): Remove.
4631 (tui_layout_def): Don't declare.
4632 * tui/tui-data.c (layout_def): Remove.
4633 (tui_layout_def): Remove.
4634
4635 2019-08-13 Tom Tromey <tom@tromey.com>
4636
4637 * tui/tui-winsource.h (struct tui_source_window_base)
4638 <clear_detail>: No longer "override".
4639 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4640 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4641 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4642 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4643 Remove.
4644 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4645
4646 2019-08-13 Tom Tromey <tromey@adacore.com>
4647
4648 * tracepoint.c: Don't include readline.h or history.h.
4649
4650 2019-08-12 Tom Tromey <tom@tromey.com>
4651
4652 * configure: Rebuild.
4653 * configure.ac: Check for readline 7.
4654 * NEWS: Mention readline 7 requirement.
4655 * README: Update.
4656
4657 2019-08-12 Tom Tromey <tom@tromey.com>
4658
4659 * mingw-hdep.c (gdb_select): Remove readline hack.
4660
4661 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4662
4663 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4664 when the function fails.
4665
4666 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4667
4668 * s390-tdep.c (s390_type_align): New function.
4669 (s390_gdbarch_init): Set it as type_align gdbarch method.
4670
4671 2019-08-09 Tom de Vries <tdevries@suse.de>
4672
4673 PR gdb/24591
4674 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4675 pc_low with relocation offset.
4676
4677 2019-08-07 Tom Tromey <tromey@adacore.com>
4678
4679 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4680 (print_frame_args): Update.
4681 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4682 Update.
4683 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4684 * frame.h (struct frame_arg): Add initializers.
4685 <error>: Now a unique_xmalloc_ptr.
4686
4687 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4688
4689 * NEWS: Expand the Pointer Authentication entry.
4690 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4691 (aarch64_frame_unmask_lr): ... to this.
4692 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4693 Call aarch64_frame_unmask_lr.
4694 * frame.c (struct frame_info): Add "masked" variable.
4695 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4696 (fprint_frame): Check for masked pc.
4697 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4698 declarations.
4699 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4700 * stack.c (print_frame): Check for masked pc.
4701
4702 2019-08-06 Tom Tromey <tom@tromey.com>
4703
4704 * stabsread.c (patch_block_stabs, read_one_struct_field)
4705 (read_enum_type): Use obstack_strndup.
4706 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4707 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4708 * dwarf2read.c (guess_full_die_structure_name)
4709 (anonymous_struct_prefix): Use obstack_strndup.
4710 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4711 * c-exp.y (yylex): Use obstack_strndup.
4712 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4713 (write_var_or_type): Use obstack_strndup.
4714
4715 2019-08-06 Tom Tromey <tom@tromey.com>
4716
4717 * symfile.c (reread_symbols): Use obstack_strdup.
4718 * stabsread.c (read_type): Use obstack_strdup.
4719 * gdb_obstack.h (obstack_strdup): New overload.
4720 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4721 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4722 (dwarf2_canonicalize_name): Use obstack_strdup.
4723 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4724 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4725 Use obstack_strdup.
4726
4727 2019-08-06 Tom Tromey <tom@tromey.com>
4728
4729 * gdb_obstack.h (obstack_strdup): Define.
4730 * gdb_obstack.c (obstack_strdup): Don't define.
4731
4732 2019-08-06 Tom Tromey <tom@tromey.com>
4733
4734 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4735 obstack_strdup.
4736 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4737 obstack_strdup.
4738 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4739 * stabsread.c (common_block_start): Use obstack_strdup.
4740 * objfiles.c (set_objfile_main_name, objfile): Use
4741 obstack_strdup.
4742 * namespace.c (add_using_directive): Use obstack_strdup.
4743 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4744 * jit.c (finalize_symtab): Use obstack_strdup.
4745 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4746 (guess_partial_die_structure_name, partial_die_info::fixup)
4747 (dwarf2_name): Use obstack_strdup.
4748 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4749 obstack_strdup.
4750 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4751 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4752 obstack_strdup.
4753 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4754
4755 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4756
4757 * unittests/help-doc-selftests.c: New file.
4758 * Makefile.in: Add the new file.
4759
4760 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4761
4762 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4763 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4764 the full first line, except when FOR_VALUE_PREFIX. In this case,
4765 the trailing '.' is not output, and the first character is uppercased.
4766 (print_help_for_command): Update call to print_doc_line.
4767 (print_doc_of_command): Likewise.
4768 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4769 * cli/cli-option.c (append_indented_doc): Do not append newline.
4770 (build_help_option): Append newline after first appended_indented_doc
4771 only if a second call is done.
4772 (build_help): Append 2 new lines before each option, except the first
4773 one.
4774 * compile/compile.c (_initialize_compile): Add new lines after
4775 %OPTIONS%, when not at the end of the help.
4776 Change help doc or code
4777 producing the help doc to respect the invariants.
4778 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4779 Also removed the new line after 'Options:', as all other commands
4780 do not put an empty line between 'Options:' and the first option.
4781 * printcmd.c (_initialize_printcmd): Likewise.
4782 * stack.c (_initialize_stack): Likewise.
4783 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4784 incorrectly telling COMMAND is optional.
4785 * ada-lang.c (_initialize_ada_language): Change help doc or code
4786 producing the help doc to respect the invariants.
4787 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4788 * breakpoint.c (_initialize_breakpoint): Likewise.
4789 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4790 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4791 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4792 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4793 _initialize_cli_style): Likewise.
4794 * corelow.c (core_target_info): Likewise.
4795 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4796 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4797 * filesystem.c (_initialize_filesystem): Likewise.
4798 * frame.c (_initialize_frame): Likewise.
4799 * gnu-nat.c (add_task_commands): Likewise.
4800 * infcall.c (_initialize_infcall): Likewise.
4801 * infcmd.c (_initialize_infcmd): Likewise.
4802 * interps.c (_initialize_interpreter): Likewise.
4803 * language.c (_initialize_language): Likewise.
4804 * linux-fork.c (_initialize_linux_fork): Likewise.
4805 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4806 * maint.c (_initialize_maint_cmds): Likewise.
4807 * memattr.c (_initialize_mem): Likewise.
4808 * printcmd.c (_initialize_printcmd): Likewise.
4809 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4810 _RegEx): Likewise.
4811 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4812 * record-btrace.c (_initialize_record_btrace): Likewise.
4813 * record-full.c (_initialize_record_full): Likewise.
4814 * record.c (_initialize_record): Likewise.
4815 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4816 * regcache.c (_initialize_regcache): Likewise.
4817 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4818 _initialize_remote): Likewise.
4819 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4820 * serial.c (_initialize_serial): Likewise.
4821 * skip.c (_initialize_step_skip): Likewise.
4822 * source.c (_initialize_source): Likewise.
4823 * stack.c (_initialize_stack): Likewise.
4824 * symfile.c (_initialize_symfile): Likewise.
4825 * symtab.c (_initialize_symtab): Likewise.
4826 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4827 * top.c (init_main): Likewise.
4828 * tracefile-tfile.c (tfile_target_info): Likewise.
4829 * tracepoint.c (_initialize_tracepoint): Likewise.
4830 * tui/tui-win.c (_initialize_tui_win): Likewise.
4831 * utils.c (add_internal_problem_command): Likewise.
4832 * valprint.c (value_print_option_defs): Likewise.
4833
4834 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4835
4836 PR build/24886
4837 * configure.ac: Drop enable-libmcheck support.
4838 * configure, config.in: Rebuild.
4839 * libmcheck.m4: Remove.
4840 * acinclude.m4: Don't include it.
4841 * Makefile.in: Don't distribute it.
4842 * top.c (print_gdb_configuration): Don't mention it.
4843
4844 2019-08-06 Tom Tromey <tom@tromey.com>
4845
4846 * utils.c (set_output_style): Sometimes pass stream to
4847 emit_style_escape.
4848 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4849 * record-btrace.c (btrace_insn_history): Update.
4850 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4851 method.
4852 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4853 Update initializers.
4854 <m_uiout>: New field.
4855 <m_di>: Move lower.
4856 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4857 Remove "uiout" parameter.
4858 (dump_insns): Update.
4859 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4860 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4861
4862 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4863
4864 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4865 (error_in_psymtab_expansion): Likewise.
4866 (lookup_symbol_via_quick_fns): Likewise.
4867 (basic_lookup_transparent_type_quick): Likewise.
4868 (basic_lookup_transparent_type_1): Likewise.
4869
4870 2019-08-06 Tom Tromey <tromey@adacore.com>
4871
4872 * source.c (last_source_error): Now bool.
4873 (print_source_lines_base): Make "noprint" bool. Only open
4874 source file when last_source_visited changes.
4875
4876 2019-08-06 Tom Tromey <tromey@adacore.com>
4877
4878 * annotate.c (annotate_source_line): Use g_source_cache.
4879 * source-cache.c (source_cache::get_plain_source_lines): Change
4880 parameters. Populate m_offset_cache.
4881 (source_cache::ensure): New method.
4882 (source_cache::get_line_charpos): New method.
4883 (extract_lines): Move lower. Change parameters.
4884 (source_cache::get_source_lines): Move lower.
4885 * source-cache.h (class source_cache): Update comment.
4886 <get_line_charpos>: New method.
4887 <get_source_lines>: Update comment.
4888 <clear>: Clear m_offset_cache.
4889 <get_plain_source_lines>: Change parameters.
4890 <ensure>: New method
4891 <m_offset_cache>: New member.
4892 * source.c (forget_cached_source_info_for_objfile): Update.
4893 (info_source_command): Use g_source_cache.
4894 (find_source_lines, open_source_file_with_line_charpos): Remove.
4895 (print_source_lines_base, search_command_helper): Use g_source_cache.
4896 * source.h (open_source_file_with_line_charpos): Don't declare.
4897 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4898 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4899 Use g_source_cache.
4900
4901 2019-08-06 Tom Tromey <tromey@adacore.com>
4902
4903 * source-cache.c (source_cache::get_plain_source_lines):
4904 Remove "first_line" and "last_line" parameters.
4905 (source_cache::get_source_lines): Cache plain text.
4906 * source-cache.h (class source_cache)
4907 <get_plain_source_lines>: Update.
4908
4909 2019-08-06 Tom Tromey <tromey@adacore.com>
4910
4911 * source-cache.c (extract_lines): No longer a method.
4912 Changed type of parameter. Include final newline.
4913 (selftests::extract_lines_test): New function.
4914 (_initialize_source_cache): Likewise.
4915 * source-cache.h (class source_cache)
4916 <extract_lines>: Don't declare.
4917
4918 2019-08-06 Tom Tromey <tromey@adacore.com>
4919
4920 * breakpoint.c (init_breakpoint_sal): Update.
4921 (breakpoint): Update.
4922 * breakpoint.h (struct breakpoint) <filter>: Now a
4923 unique_xmalloc_ptr.
4924
4925 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4926
4927 * NEWS: Mention dictionary access on blocks.
4928 * python/py-block.c (blpy_getitem): New function.
4929 (block_object_as_mapping): New struct.
4930 (block_object_type): Use new struct for tp_as_mapping field.
4931
4932 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4933
4934 * objfiles.h (objfile): Add a comment describing partial symbols.
4935
4936 2019-08-05 Tom Tromey <tromey@adacore.com>
4937
4938 * compile/compile.c (_initialize_compile): Use _(), not N_().
4939 * thread.c (_initialize_thread): Use _(), not N_().
4940 * stack.c (_initialize_stack): Use _(), not N_().
4941 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4942
4943 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4944
4945 * dwarf2read.c (struct dw2_symtab_iterator):
4946 <want_specific_block>: Remove.
4947 <block_index>: Change type to gdb::optional.
4948 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4949 change type of BLOCK_INDEX parameter to gdb::optional.
4950 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4951 (dw2_lookup_symbol): Don't pass argument for
4952 WANT_SPECIFIC_BLOCK.
4953 (dw2_expand_symtabs_for_function): Don't pass argument for
4954 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4955 (class dw2_debug_names_iterator)
4956 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4957 parameter, change BLOCK_INDEX type to gdb::optional.
4958 <m_want_specific_block>: Remove.
4959 <m_block_index>: Change type to gdb::optional.
4960 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4961 gdb::optional. Re-write in function of gdb::optional.
4962 (dw2_debug_names_lookup_symbol): Don't pass argument for
4963 WANT_SPECIFIC_BLOCK.
4964 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4965 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4966 BLOCK_INDEX.
4967
4968 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4969
4970 * NEWS: Mention changes to "info sources" command.
4971
4972 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4973
4974 * symtab.c (filename_partial_match_opts): New struct type.
4975 (struct output_source_filename_data): New members
4976 regexp, c_regexp, partial_match.
4977 (output_source_filename): Use new members to decide to print file.
4978 (info_sources_option_defs): New variable.
4979 (make_info_sources_options_def_group, print_info_sources_header,
4980 info_sources_command_completer):
4981 New functions.
4982 (info_sources_command): Read new optional arguments.
4983 (_initialize_symtab): Update info sources help.
4984
4985 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4986
4987 * ada-lang.c (exception_support_info_v0): Renamed from...
4988 (default_exception_support_info): ... this. Create new
4989 definition for v1.
4990 (ada_has_this_exception_support): Look up catch_handlers_sym.
4991 (ada_exception_support_info_sniffer): Try v0 after default.
4992
4993 2019-08-01 Tom Tromey <tromey@adacore.com>
4994
4995 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4996 gdbarch.h.
4997
4998 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4999
5000 * s12z-tdep.c: Fix include path for s12z-opc.h.
5001
5002 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5003
5004 * NEWS: Require GNU make 3.82.
5005
5006 2019-07-16 Tom Tromey <tom@tromey.com>
5007
5008 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5009 declare.
5010
5011 2019-07-30 Tom Tromey <tromey@adacore.com>
5012
5013 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5014
5015 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5016
5017 * printcmd.c (print_address_symbolic): Print negative offsets.
5018 (build_address_symbolic): Force signed arithmetic when computing
5019 offset.
5020
5021 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5022
5023 PR/24474: Add a function to lookup static variables.
5024 * NEWS: Mention this new function.
5025 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5026 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5027 * python/python.c (python_GdbMethods): Add new function.
5028
5029 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5030
5031 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5032 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5033 (objfpy_lookup_static_symbol): New function.
5034 (objfile_object_methods): Add new functions.
5035
5036 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5037
5038 * NEWS: Mention 'set|show print frame-info'. Mention new
5039 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5040 backtrace argument. Mention that python frame filtering code
5041 is now consistent with what 'backtrace' command prints.
5042
5043 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5044
5045 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5046 comments.
5047 (print_frame_info_auto, print_frame_info_source_line,
5048 print_frame_info_location, print_frame_info_source_and_location,
5049 print_frame_info_location_and_address, print_frame_info_short_location):
5050 New declarations.
5051 (struct frame_print_options): New member print_frame_info.
5052 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5053 * stack.h (get_user_print_what_frame_info): New declaration.
5054 (frame_show_address): New declaration.
5055 * stack.c (print_frame_arguments_choices): New value 'presence'.
5056 (print_frame_info_auto, print_frame_info_source_line,
5057 print_frame_info_location, print_frame_info_source_and_location,
5058 print_frame_info_location_and_address, print_frame_info_short_location,
5059 print_frame_info_choices, print_frame_info_print_what): New definitions.
5060 (print_frame_args): Only print dots for args if print frame-arguments
5061 is 'presence'.
5062 (frame_print_option_defs): New element for "frame-info".
5063 (get_user_print_what_frame_info): New function.
5064 (frame_show_address): Make non static. Move comment to stack.h.
5065 (print_frame_info_to_print_what): New function.
5066 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5067 to decide what to print.
5068 (backtrace_command_1): Handle the new print_frame_arguments_presence
5069 value.
5070 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5071 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5072 (py_print_frame): In non-mi mode, use LOCATION as default for
5073 print_what, similarly to frame information printed directly by
5074 backtrace command. Handle frame-info user option in non MI mode.
5075
5076 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5077
5078 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5079 Add case for debugging 32-bit target on 64-bit host. Revise
5080 comment.
5081
5082 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5083
5084 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5085 instead of find_function_entry_range_from_pc.
5086
5087 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5088
5089 * stack.c (find_frame_funname): Remove code which preferred
5090 minsym over symtab sym in "certain pathological cases".
5091
5092 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5093 parameter. Change type of "do_demangle" to bool.
5094 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5095 Pass suitable "prefer_sym_over_minsym" flag to
5096 build_address_symbolic(). Don't output "+" for negative offsets.
5097 * printcmd.c (print_address_symbolic): Update invocation of
5098 build_address_symbolic to include a "prefer_sym_over_minsym"
5099 flag.
5100 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5101 Restrict cases in which use of minimal symbol is preferred to that
5102 of a found symbol. Update comments.
5103
5104 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5105 for entry pc when entry pc is out of range for that FDE.
5106
5107 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5108
5109 PR gdb/24839:
5110 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5111 type.
5112
5113 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5114
5115 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5116 this function's Python signature.
5117
5118
5119 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5120
5121 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5122 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5123 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5124 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5125 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5126
5127
5128 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5129
5130 * h8300-tdep.c (h8300_register_name_common): New.
5131 h8300_register_name): Use h8300_register_name_common.
5132 (h8300s_register_name): Likewise.
5133 (h8300sx_register_name): Likewise.
5134 (h8300h_register_nam): New.
5135 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5136
5137
5138 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5139
5140 * arm-tdep.c (arm_skip_cmse_entry): New function.
5141 (arm_is_sgstubs_section): New function.
5142 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5143
5144 2019-07-22 Tom Tromey <tom@tromey.com>
5145
5146 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5147 Don't self-assign.
5148
5149 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5150
5151 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5152 type_print.
5153
5154 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5155
5156 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5157 so that GDB doesn't match any msymbols when searching in the
5158 TYPES_DOMAIN.
5159 (print_symbol_info): Print using typedef_print or type_print based
5160 on the type of the symbol. Add updated FIXME comment moved from...
5161 (_initialize_symtab): ... move and update FIXME comment to above.
5162
5163 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5164
5165 * NEWS: Mention adding -q option to "info types".
5166 * symtab.c (struct info_types_options): New struct.
5167 (info_types_options_defs): New variable.
5168 (make_info_types_options_def_group): New function.
5169 (info_types_command): Use gdb::option framework to parse options.
5170 (info_types_command_completer): New function.
5171 (_initialize_symtab): Extend the help text on "info types" and
5172 register command completer.
5173
5174 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5175
5176 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5177 (lookup_symbol_in_objfile): Change int to block_enum and add a
5178 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5179
5180 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5181
5182 * MAINTAINERS (Write After Approval): Add self.
5183
5184 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5185
5186 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5187 instruction to the dummy code region.
5188
5189 2019-07-19 Tom Tromey <tromey@adacore.com>
5190
5191 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5192 (ARGSUSED, PARAMS, __func__): Remove rules.
5193
5194 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5195
5196 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5197 * features/arm/arm-with-iwmmxt.c: Remove.
5198 * features/arm/arm-with-iwmmxt.xml: Remove.
5199 * features/arm/arm-with-m-fpa-layout.c: Remove.
5200 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5201 * features/arm/arm-with-m-vfp-d16.c: Remove.
5202 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5203 * features/arm/arm-with-m.c: Remove.
5204 * features/arm/arm-with-m.xml: Remove.
5205 * features/arm/arm-with-neon.c: Remove.
5206 * features/arm/arm-with-neon.xml: Remove.
5207 * features/arm/arm-with-vfpv2.c: Remove.
5208 * features/arm/arm-with-vfpv2.xml: Remove.
5209 * features/arm/arm-with-vfpv3.c: Remove.
5210 * features/arm/arm-with-vfpv3.xml: Remove.
5211
5212 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5213
5214 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5215
5216 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5217
5218 * arch/aarch32.c (aarch32_create_target_description): Create
5219 target descriptions using features.
5220 * arch/arm.c (arm_create_target_description)
5221 (arm_create_mprofile_target_description): Likewise.
5222 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5223
5224 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5225
5226 * Makefile.in: Add new files.
5227 * aarch32-tdep.c: New file.
5228 * aarch32-tdep.h: New file.
5229 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5230 Call aarch32_read_description.
5231 * arch/aarch32.c: New file.
5232 * arch/aarch32.h: New file.
5233 * arch/arm.c (arm_create_target_description)
5234 (arm_create_mprofile_target_description): New function.
5235 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5236 (arm_create_target_description)
5237 (arm_create_mprofile_target_description): New declaration.
5238 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5239 read_description functions.
5240 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5241 Likewise.
5242 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5243 * arm-tdep.c (tdesc_arm_list): New variable.
5244 (arm_register_g_packet_guesses): Call create description functions.
5245 (arm_read_description) (arm_read_mprofile_description): New
5246 function.
5247 * arm-tdep.h (arm_read_description)
5248 (arm_read_mprofile_description): Add declaration.
5249 * configure.tgt: Add new files.
5250
5251 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5252
5253 * top.c (new_ui_command): Open specified terminal just once.
5254
5255 2019-07-18 Tom Tromey <tromey@adacore.com>
5256
5257 * symtab.c (main_name): Constify return type.
5258 * symfile.c (set_initial_language): Update.
5259 * symtab.h (main_name): Constify return type.
5260
5261 2019-07-17 Tom Tromey <tom@tromey.com>
5262
5263 * tui/tui-winsource.c (tui_update_source_window)
5264 (tui_update_source_window_as_is)
5265 (tui_update_source_windows_with_line): Remove return.
5266 * tui/tui-disasm.c (tui_show_disassem)
5267 (tui_show_disassem_and_update_source): Remove return.
5268 * tui/tui.c (tui_reset): Remove return.
5269 * tui/tui-wingeneral.c
5270 (tui_check_and_display_highlight_if_needed): Remove return.
5271
5272 2019-07-17 Tom Tromey <tom@tromey.com>
5273
5274 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5275
5276 2019-07-17 Tom Tromey <tom@tromey.com>
5277
5278 * tui/tui-winsource.h (struct tui_exec_info_window)
5279 (struct tui_source_window_base): Move from tui-data.h.
5280 * tui/tui-winsource.c: Move many method definitions from
5281 elsewhere. Remove "structuring" comments.
5282 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5283 (tui_source_window_base::refresh_window): Move to
5284 tui-winsource.c.
5285 * tui/tui-win.c (tui_source_window_base::refresh_all)
5286 (tui_source_window_base::update_tab_width)
5287 (tui_source_window_base::set_new_height)
5288 (tui_source_window_base::do_make_visible_with_new_height): Move to
5289 tui-winsource.c.
5290 * tui/tui-source.h: Update.
5291 * tui/tui-source.c (tui_source_window_base::reset): Move to
5292 tui-winsource.c.
5293 * tui/tui-disasm.h: Update.
5294 * tui/tui-data.h (struct tui_exec_info_window): Move to
5295 tui-winsource.h.
5296 (struct tui_source_window_base): Likewise.
5297 * tui/tui-data.c (tui_source_window_base::clear_detail)
5298 (tui_source_window_base, ~tui_source_window_base): Move to
5299 tui-winsource.c.
5300
5301 2019-07-17 Tom Tromey <tom@tromey.com>
5302
5303 * tui/tui-win.c (tui_resize_all)
5304 (tui_source_window_base::update_tab_width)
5305 (tui_adjust_win_heights): Update.
5306 (tui_win_info::make_invisible_and_set_new_height): Rename from
5307 make_invisible_and_set_new_height.
5308 * tui/tui-data.h (struct tui_win_info)
5309 <make_invisible_and_set_new_height>: New method.
5310
5311 2019-07-17 Tom Tromey <tom@tromey.com>
5312
5313 * tui/tui.c: Update.
5314 * tui/tui-source.h (struct tui_source_window): Move from
5315 tui-data.h.
5316 * tui/tui-layout.c: Update.
5317 * tui/tui-disasm.c: Update.
5318 * tui/tui-data.h (struct tui_source_window): Move to
5319 tui-source.h.
5320
5321 2019-07-17 Tom Tromey <tom@tromey.com>
5322
5323 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5324 tui-data.h.
5325 * tui/tui-data.h (struct tui_disasm_window): Move to
5326 tui-disasm.h.
5327
5328 2019-07-17 Tom Tromey <tom@tromey.com>
5329
5330 * tui/tui-regs.h (struct tui_data_item_window): Move from
5331 tui-data.h.
5332 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5333 * tui/tui-data.h (struct tui_data_item_window): Move to
5334 tui-regs.h.
5335 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5336
5337 2019-07-17 Tom Tromey <tom@tromey.com>
5338
5339 * tui/tui.c: Update.
5340 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5341 (tui_cmd_window::max_height): Move to tui-command.c.
5342 * tui/tui-layout.c: Update.
5343 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5344 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5345 tui-command.c.
5346 * tui/tui-command.h (struct tui_cmd_window): Move from
5347 tui-data.h.
5348 * tui/tui-command.c: Remove "structuring" comments.
5349 (tui_cmd_window::clear_detail)
5350 (tui_cmd_window::do_make_visible_with_new_height)
5351 (tui_cmd_window::max_height): Move from elsewhere.
5352
5353 2019-07-17 Tom Tromey <tom@tromey.com>
5354
5355 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5356 Now static.
5357 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5358 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5359
5360 2019-07-17 Tom Tromey <tom@tromey.com>
5361
5362 * tui/tui.c: Update.
5363 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5364 tui-regs.c.
5365 * tui/tui-windata.h: Remove file.
5366 * tui/tui-windata.c: Remove file.
5367 * tui/tui-win.c (tui_data_window::set_new_height)
5368 (tui_data_window::do_make_visible_with_new_height): Move to
5369 tui-regs.c.
5370 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5371 * tui/tui-regs.c: Remove "structuring" comments.
5372 (tui_data_window::first_data_item_displayed)
5373 (tui_data_window::delete_data_content_windows)
5374 (tui_data_window::erase_data_content)
5375 (tui_data_window::display_all_data)
5376 (tui_data_window::refresh_all)
5377 (tui_data_window::do_scroll_vertical)
5378 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5379 (tui_data_window::do_make_visible_with_new_height)
5380 (tui_data_window::refresh_window): Move from elsewhere.
5381 (_initialize_tui_regs): Move to end of file.
5382 * tui/tui-layout.c: Update.
5383 * tui/tui-hooks.c: Update.
5384 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5385 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5386 tui-regs.c.
5387 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5388
5389 2019-07-17 Tom Tromey <tom@tromey.com>
5390
5391 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5392 seen.
5393
5394 2019-07-17 Tom Tromey <tom@tromey.com>
5395
5396 * tui/tui-win.c (tui_source_window_base::set_new_height)
5397 (tui_source_window_base::do_make_visible_with_new_height): Use
5398 m_has_locator field directly.
5399 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5400 method.
5401 (struct tui_source_window_base) <has_locator>: Likewise.
5402
5403 2019-07-17 Tom Tromey <tom@tromey.com>
5404
5405 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5406 Don't declare.
5407 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5408 Remove.
5409 * tui/tui-win.c (tui_source_window_base::set_new_height)
5410 (tui_source_window_base::set_new_height)
5411 (make_invisible_and_set_new_height)
5412 (tui_source_window_base::do_make_visible_with_new_height)
5413 (tui_source_window_base::do_make_visible_with_new_height):
5414 Update.
5415 * tui/tui-layout.c (show_source_disasm_command, show_data)
5416 (show_source_or_disasm_and_command): Update.
5417 * tui/tui-layout.c (show_layout): Update.
5418
5419 2019-07-17 Tom Tromey <tom@tromey.com>
5420
5421 * tui/tui-layout.c (make_data_window): Remove.
5422 (show_data): Unify creation and re-initialization cases.
5423
5424 2019-07-17 Tom Tromey <tom@tromey.com>
5425
5426 * tui/tui-layout.c (make_source_window, make_disasm_window):
5427 Remove.
5428 (show_data): Unify creation and re-initialization cases.
5429
5430 2019-07-17 Tom Tromey <tom@tromey.com>
5431
5432 * tui/tui-layout.c (make_command_window): Remove.
5433 (show_source_disasm_command, show_source_or_disasm_and_command):
5434 Unify creation and re-initialization cases.
5435
5436 2019-07-17 Tom Tromey <tom@tromey.com>
5437
5438 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5439 creation and re-initialization cases.
5440
5441 2019-07-17 Tom Tromey <tom@tromey.com>
5442
5443 * tui/tui-regs.c (tui_get_register): Return void.
5444
5445 2019-07-17 Tom Tromey <tom@tromey.com>
5446
5447 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5448 Simplify.
5449
5450 2019-07-17 Tom Tromey <tom@tromey.com>
5451
5452 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5453 resetting.
5454
5455 2019-07-17 Tom Tromey <tom@tromey.com>
5456
5457 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5458 * tui/tui-regs.c (tui_reg_layout): New function.
5459 (tui_show_registers, tui_reg_command): Use it.
5460 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5461 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5462 parameters.
5463 (tui_layout_command): Remove.
5464
5465 2019-07-17 Tom Tromey <tom@tromey.com>
5466
5467 * tui/tui-layout.h (tui/tui-layout): Return void.
5468 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5469
5470 2019-07-17 Tom Tromey <tom@tromey.com>
5471
5472 * tui/tui-layout.c (show_source_disasm_command, show_data):
5473 Update.
5474 (reset_locator): Remove.
5475 (show_source_or_disasm_and_command): Update.
5476
5477 2019-07-17 Tom Tromey <tom@tromey.com>
5478
5479 * tui/tui-source.c (tui_source_window_base::reset): Remove
5480 win_type parameter.
5481 * tui/tui-layout.c (make_command_window, make_source_window)
5482 (make_disasm_window, make_data_window)
5483 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5484 (reset_locator, show_source_or_disasm_and_command): Update.
5485 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5486 win_type parameter.
5487 (struct tui_source_window_base) <reset>: Likewise.
5488
5489 2019-07-17 Tom Tromey <tom@tromey.com>
5490
5491 * tui/tui-layout.c (show_source_disasm_command): Use
5492 reset_locator.
5493 (reset_locator): New function.
5494 (init_and_make_win): Remove.
5495 (show_source_or_disasm_and_command): Use reset_locator.
5496
5497 2019-07-17 Tom Tromey <tom@tromey.com>
5498
5499 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5500 condition.
5501 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5502 Remove condition.
5503 * tui/tui-source.c (tui_source_window_base::reset): New method.
5504 * tui/tui-layout.c (make_command_window): Don't call
5505 init_and_make_win.
5506 (make_source_window, make_disasm_window): Don't call
5507 make_source_or_disasm_window.
5508 (make_data_window): Don't call init_and_make_win. Change calling
5509 convention.
5510 (show_source_disasm_command, show_data): Simplify.
5511 (make_source_or_disasm_window): Remove.
5512 (show_source_or_disasm_and_command): Simplify.
5513 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5514 (struct tui_source_window_base) <reset>: Likewise.
5515 <execution_info>: Remove initializer.
5516 * tui/tui-data.c (tui_source_window_base): Initialize
5517 execution_info.
5518
5519 2019-07-17 Tom Tromey <tom@tromey.com>
5520
5521 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5522 variable.
5523
5524 2019-07-17 Tom Tromey <tom@tromey.com>
5525
5526 * tui/tui.c (tui_rl_other_window): Update.
5527 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5528 superclass method first. Always iterate over regs_content.
5529 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5530 method.
5531 * tui/tui-win.c (tui_set_focus_command): Update.
5532
5533 2019-07-17 Tom Tromey <tom@tromey.com>
5534
5535 * tui/tui-win.c (tui_set_focus_command): Rename from
5536 tui_set_focus. Call tui_enable.
5537 (tui_set_focus_command): Remove.
5538
5539 2019-07-17 Tom Tromey <tom@tromey.com>
5540
5541 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5542 refresh_window.
5543 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5544 touchwin.
5545 (tui_data_window::refresh_window): Call refresh_window on data
5546 items. Always call superclass refresh_window.
5547 (tui_win_info::refresh): Remove.
5548 (tui_source_window_base::refresh_window): Update.
5549 (tui_refresh_all): Update.
5550 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5551 refresh_window.
5552 (show_source_or_disasm_and_command): Likewise.
5553 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5554 (struct tui_source_window_base) <refresh>: Likewise.
5555
5556 2019-07-17 Tom Tromey <tom@tromey.com>
5557
5558 * tui/tui-winsource.c (tui_clear_source_content)
5559 (tui_show_source_content): Update.
5560 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5561 whether content is empty.
5562 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5563 Remove.
5564
5565 2019-07-17 Tom Tromey <tom@tromey.com>
5566
5567 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5568 window's contents.
5569 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5570 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5571
5572 2019-07-17 Tom Tromey <tom@tromey.com>
5573
5574 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5575 (struct tui_data_item_window): Update.
5576
5577 2019-07-17 Tom Tromey <tom@tromey.com>
5578
5579 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5580 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5581 defines.
5582
5583 2019-07-17 Tom Tromey <tom@tromey.com>
5584
5585 * tui/tui-winsource.h (tui_erase_source_content)
5586 (tui_clear_source_content): Remove "display_prompt" parameter.
5587 * tui/tui-winsource.c (tui_update_source_window_as_is)
5588 (tui_update_source_windows_with_addr): Update.
5589 (tui_clear_source_content): Remove "display_prompt" parameter.
5590 (tui_erase_source_content): Likewise. Simplify.
5591 (tui_show_source_content): Update.
5592 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5593 * tui/tui-stack.c (tui_show_frame_info): Update.
5594 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5595 Remove defines.
5596
5597 2019-07-17 Tom Tromey <tom@tromey.com>
5598
5599 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5600 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5601 parameter.
5602 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5603 parameter.
5604
5605 2019-07-17 Tom Tromey <tom@tromey.com>
5606
5607 * tui/tui-winsource.c (tui_clear_source_content)
5608 (tui_show_source_content, tui_show_exec_info_content)
5609 (tui_clear_exec_info_content): Update.
5610 * tui/tui-stack.c (tui_show_locator_content): Update.
5611 (tui_show_frame_info): Update.
5612 * tui/tui-source.h (tui_source_window): Don't declare.
5613 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5614 from tui_source_is_displayed.
5615 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5616 Remove field.
5617 (struct tui_source_window_base) <content_in_use>: New field. Now
5618 bool.
5619 (struct tui_source_window) <showing_source_p>: New method.
5620 (TUI_SRC_WIN): Change cast.
5621 * tui/tui-data.c (tui_initialize_static_data): Update.
5622
5623 2019-07-17 Tom Tromey <tom@tromey.com>
5624
5625 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5626 location_matches_p.
5627 * tui/tui-source.c (tui_source_window::location_matches_p): New
5628 method.
5629 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5630 method.
5631 * tui/tui-data.h (struct tui_source_window_base)
5632 <location_matches_p>: New method.
5633 (struct tui_source_window, struct tui_disasm_window)
5634 <location_matches_p>: Likewise.
5635
5636 2019-07-17 Tom Tromey <tom@tromey.com>
5637
5638 * tui/tui-win.c (tui_set_win_height_command): Rename from
5639 tui_set_win_height.
5640 (tui_set_win_height_command): Remove.
5641
5642 2019-07-17 Tom Tromey <tom@tromey.com>
5643
5644 * tui/tui-source.c (tui_source_window): New constructor. Add
5645 observer.
5646 (~tui_source_window): New destructor.
5647 (tui_source_window::style_changed): New method.
5648 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5649 (tui_attach_detach_observers): Update.
5650 * tui/tui-data.h (struct tui_source_window): Make constructor not
5651 inline. Add destructor.
5652 (struct tui_source_window) <style_changed>: New method.
5653 <m_observable>: New member.
5654
5655 2019-07-17 Tom Tromey <tom@tromey.com>
5656
5657 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5658 * tui/tui-win.c (tui_resize_all): Fix typo.
5659
5660 2019-07-17 Tom Tromey <tom@tromey.com>
5661
5662 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5663 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5664 (tui_refresh_all): Remove "list" parameter. Use foreach.
5665 * tui/tui-win.c (window_name_completer): Use foreach.
5666 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5667 (update_tab_width): Likewise.
5668 * tui/tui-layout.c (show_layout): Update.
5669 * tui/tui-data.h (class tui_window_iterator): New.
5670 (struct all_tui_windows): New.
5671 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5672
5673 2019-07-17 Tom Tromey <tom@tromey.com>
5674
5675 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5676 parameter. Don't reference globals.
5677 (tui_reg_command): Update.
5678
5679 2019-07-17 Tom Tromey <tom@tromey.com>
5680
5681 * tui/tui-regs.c (tui_show_registers): Simplify.
5682
5683 2019-07-17 Tom Tromey <tom@tromey.com>
5684
5685 * tui/tui-regs.c (tui_show_registers): Update.
5686 (tui_show_register_group): Add win_info parameter.
5687
5688 2019-07-17 Tom Tromey <tom@tromey.com>
5689
5690 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5691 Rename from tui_display_reg_element_at_line.
5692 (tui_data_window::display_registers_from_line): Update.
5693 * tui/tui-data.h (struct tui_data_window)
5694 <display_reg_element_at_line>: New method.
5695
5696 2019-07-17 Tom Tromey <tom@tromey.com>
5697
5698 * tui/tui-regs.h (tui_display_registers_from)
5699 (tui_display_registers_from_line): Don't declare.
5700 * tui/tui-windata.c (tui_data_window::display_all_data)
5701 (tui_data_window::refresh_all)
5702 (tui_data_window::do_scroll_vertical): Update.
5703 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5704 from tui_display_registers_from.
5705 (tui_display_reg_element_at_line): Update.
5706 (tui_data_window::display_registers_from_line): Rename from
5707 tui_display_registers_from_line.
5708 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5709 display_registers_from_line>: New methods.
5710
5711 2019-07-17 Tom Tromey <tom@tromey.com>
5712
5713 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5714 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5715 from tui_erase_data_content.
5716 (tui_data_window::display_all_data)
5717 (tui_data_window::refresh_all)
5718 (tui_data_window::do_scroll_vertical): Update.
5719 * tui/tui-regs.c (tui_show_registers): Update.
5720 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5721 New method.
5722
5723 2019-07-17 Tom Tromey <tom@tromey.com>
5724
5725 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5726 declare.
5727 * tui/tui-windata.c
5728 (tui_data_window::delete_data_content_windows): Rename from
5729 tui_delete_data_content_windows.
5730 (tui_data_window::display_all_data)
5731 (tui_data_window::do_scroll_vertical): Update.
5732 * tui/tui-data.h (struct tui_data_window)
5733 <delete_data_content_windows>: New method.
5734
5735 2019-07-17 Tom Tromey <tom@tromey.com>
5736
5737 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5738 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5739
5740 2019-07-17 Tom Tromey <tom@tromey.com>
5741
5742 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5743 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5744 from tui_display_all_data.
5745 * tui/tui-win.c
5746 (tui_data_window::do_make_visible_with_new_height): Update.
5747 * tui/tui-regs.c (tui_show_registers): Update.
5748 * tui/tui-layout.c (tui_set_layout): Update.
5749 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5750 method.
5751
5752 2019-07-17 Tom Tromey <tom@tromey.com>
5753
5754 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5755 * tui/tui-windata.c (tui_display_data_from): Remove.
5756 (tui_data_window::refresh_all): Update.
5757
5758 2019-07-17 Tom Tromey <tom@tromey.com>
5759
5760 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5761 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5762 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5763 tui_display_registers_from_line.
5764 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5765 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5766 "force_display" parameter.
5767
5768 2019-07-17 Tom Tromey <tom@tromey.com>
5769
5770 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5771 declare.
5772 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5773 Rename from tui_first_reg_element_no_inline.
5774 (tui_display_reg_element_at_line)
5775 (tui_display_registers_from_line): Update.
5776 * tui/tui-data.h (struct tui_data_window)
5777 <first_reg_element_no_inline>: New method.
5778
5779 2019-07-17 Tom Tromey <tom@tromey.com>
5780
5781 * tui/tui-windata.c (tui_display_data_from)
5782 (tui_data_window::do_scroll_vertical): Update.
5783 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5784 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5785 Rename from tui_line_from_reg_element_no.
5786 (tui_display_registers_from_line): Update.
5787 * tui/tui-data.h (struct tui_data_window)
5788 <line_from_reg_element_no>: New method.
5789
5790 2019-07-17 Tom Tromey <tom@tromey.com>
5791
5792 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5793 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5794 tui_last_regs_line_no.
5795 (tui_display_reg_element_at_line)
5796 (tui_display_registers_from_line): Update.
5797 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5798 method.
5799
5800 2019-07-17 Tom Tromey <tom@tromey.com>
5801
5802 PR tui/24722:
5803 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5804 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5805 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5806 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5807 (tui_update_breakpoint_info): Likewise.
5808 * tui/tui-hooks.c (tui_event_create_breakpoint)
5809 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5810 Update.
5811
5812 2019-07-17 Tom Tromey <tom@tromey.com>
5813
5814 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5815
5816 2019-07-17 Tom Tromey <tom@tromey.com>
5817
5818 * tui/tui-winsource.c (tui_update_source_window_as_is)
5819 (tui_update_source_windows_with_addr): Update.
5820 * tui/tui-source.h (tui_set_source_content)
5821 (tui_show_symtab_source): Add "win_info" parameter.
5822 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5823 parameter.
5824 (tui_show_symtab_source): Likewise.
5825
5826 2019-07-17 Tom Tromey <tom@tromey.com>
5827
5828 * tui/tui-wingeneral.c
5829 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5830
5831 2019-07-17 Tom Tromey <tom@tromey.com>
5832
5833 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5834 (struct tui_cmd_window) <can_scroll>: New method.
5835 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5836 method.
5837
5838 2019-07-17 Tom Tromey <tromey@adacore.com>
5839
5840 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5841 do_field_signed>: Rename. Change type of "value".
5842 * ui-out.c (ui_out::field_signed): Rename from field_int.
5843 Change type of "value".
5844 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5845 type of "value".
5846 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5847 do_field_int. Change type of "value".
5848 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5849 do_field_int. Change type of "value".
5850 * tracepoint.c (trace_status_mi, tfind_1)
5851 (print_one_static_tracepoint_marker): Update.
5852 * thread.c (print_thread_info_1, print_selected_thread_frame):
5853 Update.
5854 * stack.c (print_frame, print_frame_info): Update.
5855 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5856 Update.
5857 * source.c (print_source_lines_base): Update.
5858 * skip.c (info_skip_command): Update.
5859 * record-btrace.c (btrace_ui_out_decode_error)
5860 (btrace_call_history_src_line): Update.
5861 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5862 Update.
5863 * progspace.c (print_program_space): Update.
5864 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5865 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5866 do_field_int. Change type of "value".
5867 * mi/mi-out.c (mi_ui_out::do_table_begin)
5868 (mi_ui_out::do_table_header): Update.
5869 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5870 type of "value".
5871 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5872 (mi_cmd_data_list_changed_registers, output_register)
5873 (mi_cmd_data_read_memory, mi_load_progress)
5874 (mi_cmd_trace_frame_collected): Update.
5875 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5876 Update.
5877 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5878 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5879 (mi_cmd_var_list_children, varobj_update_one): Update.
5880 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5881 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5882 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5883 * inferior.c (print_inferior): Update.
5884 * gdb_bfd.c (print_one_bfd): Update.
5885 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5886 Update.
5887 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5888 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5889 do_field_int. Change type of "value".
5890 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5891 do_field_int. Change type of "value".
5892 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5893 (print_one_breakpoint_location, print_it_catch_fork)
5894 (print_one_catch_fork, print_it_catch_vfork)
5895 (print_one_catch_vfork, print_it_catch_solib)
5896 (print_it_catch_exec, print_it_ranged_breakpoint)
5897 (print_mention_watchpoint, print_mention_masked_watchpoint)
5898 (bkpt_print_it, update_static_tracepoint): Update.
5899 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5900 * break-catch-syscall.c (print_it_catch_syscall): Update.
5901 * ada-tasks.c (print_ada_task_info): Update.
5902 * ada-lang.c (print_it_exception, print_mention_exception):
5903 Update.
5904
5905 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5906
5907 PR breakpoints/24541
5908 * gdbarch.c: Regenerate.
5909 * gdbarch.h: Regenerate.
5910 * gdbarch.sh: Adjust return type and parameter types for
5911 'stap_adjust_register'.
5912 (i386_stap_adjust_register): Adjust signature and return new
5913 register name.
5914 * stap-probe.c (stap_parse_register_operand): Adjust use of
5915 'gdbarch_stap_adjust_register'.
5916
5917 2019-07-17 Tom Tromey <tromey@adacore.com>
5918
5919 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5920 declare VEC.
5921 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5922 std::vector.
5923 (struct s390_process_info): Add initializers.
5924 (s390_add_process): Use new.
5925 (s390_linux_nat_target::low_forget_process): Use delete.
5926 (s390_linux_nat_target::low_new_fork)
5927 (s390_linux_nat_target::stopped_by_watchpoint)
5928 (s390_linux_nat_target::low_prepare_to_resume)
5929 (s390_linux_nat_target::insert_watchpoint)
5930 (s390_linux_nat_target::insert_hw_breakpoint)
5931 (s390_linux_nat_target::remove_watchpoint)
5932 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5933
5934 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5935
5936 * aarch64-fbsd-nat.c: Include regcache.h.
5937 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5938 argument.
5939 (aarch64_fbsd_nat_target::fetch_registers)
5940 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5941 variable.
5942 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5943
5944 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5945
5946 * fbsd-nat.c: Include gdbarch.h.
5947
5948 2019-07-15 Tom Tromey <tromey@adacore.com>
5949
5950 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5951
5952 2019-07-15 Tom Tromey <tromey@adacore.com>
5953
5954 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5955 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5956 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5957 * cli-out.c (cli_ui_out::do_field_int): New method.
5958 * ui-out.c (ui_out::field_unsigned): New method.
5959 * symfile.c (generic_load): Use field_unsigned.
5960 (print_transfer_performance): Likewise.
5961 * record-btrace.c (ui_out_field_uint): Remove.
5962 (btrace_call_history_insn_range, btrace_call_history): Use
5963 field_unsigned.
5964 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5965 field_unsigned.
5966 * ui-out.h (class ui_out) <field_unsigned>: New method.
5967 <do_field_unsigned>: Likewise.
5968
5969 2019-07-15 Tom Tromey <tromey@adacore.com>
5970
5971 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5972 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5973 * target.c (flash_erase_command): Use field_string.
5974 * infrun.c (print_signal_received_reason): Use field_string.
5975 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5976 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5977 field_string.
5978 * ada-tasks.c (print_ada_task_info): Use field_string.
5979
5980 2019-07-15 Tom Tromey <tromey@adacore.com>
5981
5982 * target.c (flash_erase_command): Use field_core_addr.
5983 * symfile.c (generic_load): Use field_core_addr.
5984 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5985 Use field_core_addr.
5986 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5987 field_core_addr.
5988
5989 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5990
5991 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5992 value if its desired type is smaller than a CORE_ADDR and signed.
5993
5994 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5995
5996 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5997 of changes to field names, and use new is_reference field to
5998 decide if a property is a reference or not.
5999 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6000 field.
6001 (struct dwarf2_property_baton): Update header comment, rename
6002 'referenced_type' to 'property_type' and update comments.
6003 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6004 default property type, store in property baton, update to take
6005 accound of renamed field.
6006 (read_func_scope): Update call to attr_to_dynamic_prop.
6007 (read_array_type): Likewise.
6008 (dwarf2_per_cu_addr_sized_int_type): New function.
6009 (read_subrange_index_type): Move type finding code to
6010 dwarf2_per_cu_addr_sized_int_type.
6011 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6012 (dwarf2_per_cu_addr_type): New function.
6013 (set_die_type): Update calls to attr_to_dynamic_prop.
6014
6015 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6016
6017 * dwarf2read.c (read_subrange_index_type): New function.
6018 (read_subrange_type): Move code into new function and call it.
6019 * gdbtypes.c (create_range_type): Add some asserts.
6020
6021 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6022
6023 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6024 update return statements.
6025 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6026 declaration, and update comment to match.
6027 * gdbtypes.c (resolve_dynamic_array): Update call to
6028 dwarf2_evaluate_property to match new return type.
6029
6030 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6031
6032 * valarith.c (value_subscripted_rvalue): Change lowerbound
6033 parameter type from int to LONGEST.
6034 * value.h (value_subscripted_rvalue): Likewise in declaration.
6035
6036 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6037
6038 * cli/cli-utils.c (info_print_command_completer): New function.
6039 * cli/cli-utils.h: Add 'completer.h' include, and forward
6040 declaration for 'struct cmd_list_element'.
6041 (info_print_command_completer): Declare.
6042 * stack.c (_initialize_stack): Add completer for 'info locals' and
6043 'info args'.
6044 * symtab.c (_initialize_symtab): Add completer for 'info
6045 variables' and 'info functions'.
6046 * NEWS: Mention completion for additional info commands.
6047
6048 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6049
6050 * cli/cli-utils.c (extract_info_print_args): Delete.
6051 (extract_arg_maybe_quoted): Delete.
6052 (info_print_options_defs): New variable.
6053 (make_info_print_options_def_group): New function.
6054 (extract_info_print_options): Define new function.
6055 * cli/cli-utils.h (extract_info_print_args): Delete.
6056 (struct info_print_options): New structure.
6057 (extract_info_print_options): Declare new function.
6058 * stack.c (info_locals_command): Update to use new
6059 extract_info_print_options, also add a header comment.
6060 (info_args_command): Likewise.
6061 * symtab.c (info_variables_command): Likewise.
6062 (info_functions_command): Likewise.
6063
6064 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6065
6066 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6067 to extract string arguments.
6068 * common/common-utils.c (extract_string_maybe_quoted): New function.
6069 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6070
6071 2019-07-11 Tom Tromey <tromey@adacore.com>
6072
6073 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6074 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6075 * top.h (gdbinit): Don't declare.
6076 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6077 into...
6078 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6079 * top.c (gdb_init): Don't call init_cli_cmds.
6080 (gdbinit): Remove.
6081 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6082
6083 2019-07-11 Tom Tromey <tromey@adacore.com>
6084
6085 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6086 after it has been moved.
6087
6088 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6089
6090 * valops.c (value_must_coerce_to_target): Change return type to
6091 bool.
6092 * value.h (value_must_coerce_to_target): Likewise.
6093
6094 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6095
6096 * breakpoint.c (is_hardware_watchpoint): Remove
6097 forward-declaration.
6098 (is_masked_watchpoint): Change return type to bool.
6099 (is_tracepoint): Likewise.
6100 (is_breakpoint): Likewise.
6101 (is_hardware_watchpoint): Likewise.
6102 (is_watchpoint): Likewise.
6103 (is_no_memory_software_watchpoint): Likewise.
6104 (is_catchpoint): Likewise.
6105 (breakpoint_1): Make FILTER parameter's return type bool.
6106 is_masked_watchpoint): Change return type to bool.
6107 (save_breakpoints): Make FILTER parameter's return type bool.
6108 * breakpoint.h (is_breakpoint): Change return type to bool.
6109 (is_watchpoint): Likewise.
6110 (is_catchpoint): Likewise.
6111 (is_tracepoint): Likewise.
6112
6113 2019-07-10 Tom Tromey <tom@tromey.com>
6114
6115 * defs.h: Don't include gdbarch.h.
6116 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6117 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6118 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6119 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6120 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6121 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6122 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6123 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6124 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6125 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6126 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6127 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6128 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6129 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6130 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6131 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6132 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6133 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6134 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6135 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6136 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6137 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6138 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6139 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6140 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6141 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6142 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6143
6144 2019-07-10 Tom Tromey <tromey@adacore.com>
6145
6146 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6147 * breakpoint.c (init_ada_exception_breakpoint): Register as
6148 bp_catchpoint.
6149 (print_one_breakpoint_location, print_one_breakpoint): Use
6150 is_ada_exception_catchpoint.
6151 * ada-lang.c (class ada_catchpoint_location): Pass
6152 bp_loc_software_breakpoint to bp_location constructor.
6153 (is_ada_exception_catchpoint): New function.
6154
6155 2019-07-10 Tom Tromey <tromey@adacore.com>
6156
6157 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6158 VEC.
6159 (struct arm_exidx_entry): New method operator<.
6160 (struct arm_exidx_data) <section_maps>: Change type.
6161 (arm_exidx_data_free): Remove.
6162 (arm_exidx_data_key): Change type. Move lower.
6163 (arm_exidx_new_objfile): Update.
6164 (arm_compare_exidx_entries): Remove.
6165 (arm_find_exidx_entry, _initialize_arm_tdep)
6166
6167 2019-07-10 Tom Tromey <tromey@adacore.com>
6168
6169 * solib-spu.c (ocl_program_data_key): Change type.
6170 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6171 Update.
6172
6173 2019-07-10 Tom Tromey <tromey@adacore.com>
6174
6175 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6176 (struct solib_aix_inferior_data) <library_list>: Change type.
6177 (solib_aix_inferior_data_handle): Change type.
6178 (get_solib_aix_inferior_data): Update.
6179 (solib_aix_free_library_list): Remove.
6180 (library_list_start_library): Update.
6181 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6182 return type.
6183 (solib_aix_get_library_list)
6184 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6185 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6186
6187 2019-07-10 Tom Tromey <tromey@adacore.com>
6188
6189 * solib-dsbt.c (struct dsbt_info): Add initializers.
6190 (solib_dsbt_pspace_data): Change type.
6191 (dsbt_pspace_data_cleanup): Remove.
6192 (get_dsbt_info, _initialize_dsbt_solib): Update.
6193
6194 2019-07-10 Tom Tromey <tromey@adacore.com>
6195
6196 * spu-tdep.c (spu_overlay_data): Change type.
6197 (spu_get_overlay_table, spu_overlay_new_objfile)
6198 (_initialize_spu_tdep): Update.
6199
6200 2019-07-10 Tom Tromey <tromey@adacore.com>
6201
6202 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6203 destructor.
6204 (dbx_objfile_data_key): Change type and declare later.
6205 (DBX_SYMFILE_INFO): Rewrite.
6206 * dbxread.c (dbx_objfile_data_key): Change type.
6207 (dbx_symfile_init): Update.
6208 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6209 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6210 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6211
6212 2019-07-10 Tom Tromey <tromey@adacore.com>
6213
6214 * jit.c (jit_program_space_key): Change type. Move lower.
6215 (get_jit_program_space_data): Update.
6216 (jit_program_space_data_cleanup): Remove.
6217 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6218 Update.
6219 (struct jit_program_space_data): Add initializers.
6220
6221 2019-07-10 Tom Tromey <tromey@adacore.com>
6222
6223 * solib-darwin.c (struct darwin_info): Add initializers.
6224 (solib_darwin_pspace_data): Change type.
6225 (darwin_pspace_data_cleanup): Remove.
6226 (get_darwin_info, _initialize_darwin_solib): Update.
6227
6228 2019-07-10 Tom Tromey <tromey@adacore.com>
6229
6230 * remote-sim.c (struct sim_inferior_data): Add initializers,
6231 constructor, and destructor.
6232 (sim_inferior_data_key): Change type. Move lower.
6233 (check_for_duplicate_sim_descriptor): Update.
6234 (get_sim_inferior_data): Use new. Update.
6235 (~sim_inferior_data_cleanup): Rename from
6236 sim_inferior_data_cleanup. Simplify.
6237 (gdbsim_close_inferior, simulator_command)
6238 (sim_command_completer, _initialize_remote_sim): Update.
6239 (next_pid, INITIAL_PID): Move earlier.
6240
6241 2019-07-10 Tom Tromey <tromey@adacore.com>
6242
6243 * python/python-internal.h (create_thread_object): Return
6244 gdbpy_ref.
6245 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6246 * python/py-inferior.c (struct threadlist_entry): Add
6247 constructor.
6248 <thread_obj>: Now a gdbpy_ref.
6249 (thread_to_thread_object): Update.
6250 (add_thread_object): Use new.
6251 (delete_thread_object): Use delete.
6252 (infpy_threads): Update.
6253 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6254 GIL.
6255
6256 2019-07-10 Tom Tromey <tromey@adacore.com>
6257
6258 * valops.c (value_cast): Specialize error message for Ada.
6259
6260 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6261
6262 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6263
6264 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6265
6266 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6267 bpstat_should_step): Return bool, adjust comments.
6268 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6269 bpstat_should_step): Likewise.
6270
6271 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6272
6273 * features/Makefile: Use feature target descriptions for Arm.
6274 * features/arm/arm-core.c: Generate new file.
6275 * features/arm/arm-fpa.c: Likewise.
6276 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6277 * features/arm/arm-m-profile.c: Likewise.
6278 * features/arm/arm-vfpv2.c: Likewise.
6279 * features/arm/arm-vfpv3.c: Likewise.
6280 * features/arm/xscale-iwmmxt.c: Likewise.
6281 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6282
6283 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6284
6285 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6286 ptrace earlier.
6287
6288 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6289
6290 * features/aarch64-pauth.c: Regenerate.
6291
6292 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6293
6294 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6295 bool.
6296 (bpstat_what): Use false instead of 0.
6297
6298 2019-07-09 Pedro Alves <palves@redhat.com>
6299
6300 * break-catch-throw.c (is_exception_catchpoint): New.
6301 * breakpoint.c (print_one_breakpoint_location): New parameter
6302 'raw_loc'. Handle it. Use
6303 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6304 looking at the breakpoint's type.
6305 (print_one_breakpoint): If handling "maint info breakpoints", also
6306 print locations of exception catchpoints.
6307 * breakpoint.h (is_exception_catchpoint): Declare.
6308
6309 2019-07-09 Pedro Alves <palves@redhat.com>
6310
6311 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6312 "addr" field.
6313 (allocate_location_exception_catchpoint): New.
6314 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6315 (initialize_throw_catchpoint_ops): Install
6316 allocate_location_exception_catchpoint as allocate_location
6317 method.
6318 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6319 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6320 bp_loc_other.
6321 (breakpoint_address_is_meaningful): Delete.
6322 (bl_address_is_meaningful): New.
6323 (breakpoint_locations_match): Adjust comment.
6324 (bp_location_from_bp_type): New, factored out of...
6325 (bp_location::bp_location(breakpoint *)): ... this.
6326 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6327 factored out of...
6328 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6329 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6330 breakpoint_address_is_meaningful.
6331 (bp_locations_compare): Adjust comment.
6332 (update_global_location_list): Use bl_address_is_meaningful
6333 instead of breakpoint_address_is_meaningful.
6334 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6335 explicit.
6336 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6337 * python/py-breakpoint.c (bppy_get_location): No longer check
6338 whether location is null.
6339
6340 2019-07-09 Pedro Alves <palves@redhat.com>
6341
6342 PR c++/15468
6343 * breakpoint.c (print_one_breakpoint_location): Remove
6344 single-location assert.
6345
6346 2019-07-09 Tom Tromey <tom@tromey.com>
6347
6348 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6349 * configure: Rebuild.
6350 * configure.ac: Change common to gdbsupport.
6351 * gdbsupport: Rename from common.
6352 * acinclude.m4: Change common to gdbsupport.
6353 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6354 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6355 gdbsupport.
6356 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6357 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6358 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6359 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6360 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6361 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6362 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6363 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6364 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6365 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6366 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6367 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6368 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6369 coff-pe-read.c, command.h, compile/compile-c-support.c,
6370 compile/compile-c.h, compile/compile-cplus-symbols.c,
6371 compile/compile-cplus-types.c, compile/compile-cplus.h,
6372 compile/compile-loc2c.c, compile/compile.c, completer.c,
6373 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6374 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6375 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6376 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6377 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6378 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6379 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6380 features/aarch64-core.c, features/aarch64-fpu.c,
6381 features/aarch64-pauth.c, features/aarch64-sve.c,
6382 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6383 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6384 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6385 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6386 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6387 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6388 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6389 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6390 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6391 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6392 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6393 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6394 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6395 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6396 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6397 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6398 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6399 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6400 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6401 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6402 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6403 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6404 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6405 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6406 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6407 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6408 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6409 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6410 minsyms.c, mips-linux-tdep.c, namespace.h,
6411 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6412 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6413 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6414 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6415 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6416 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6417 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6418 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6419 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6420 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6421 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6422 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6423 procfs.c, producer.c, progspace.h, psymtab.h,
6424 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6425 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6426 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6427 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6428 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6429 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6430 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6431 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6432 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6433 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6434 target-memory.c, target.c, target.h, target/waitstatus.c,
6435 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6436 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6437 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6438 unittests/array-view-selftests.c,
6439 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6440 unittests/common-utils-selftests.c,
6441 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6442 unittests/format_pieces-selftests.c,
6443 unittests/function-view-selftests.c,
6444 unittests/lookup_name_info-selftests.c,
6445 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6446 unittests/mkdir-recursive-selftests.c,
6447 unittests/observable-selftests.c,
6448 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6449 unittests/parse-connection-spec-selftests.c,
6450 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6451 unittests/scoped_fd-selftests.c,
6452 unittests/scoped_mmap-selftests.c,
6453 unittests/scoped_restore-selftests.c,
6454 unittests/string_view-selftests.c, unittests/style-selftests.c,
6455 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6456 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6457 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6458 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6459 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6460 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6461
6462 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6463
6464 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6465 bool value.
6466 (decode_digits_ordinary): Set explicit_line field in sal.
6467 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6468 symtab_and_line that was set on an explicit line number in
6469 assembler code. Do always update the recorded symtab and line if
6470 we do skip the prologue.
6471
6472 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6473
6474 * breakpoint.c (set_breakpoint_location_function): Remove
6475 explicit_loc parameter.
6476 (momentary_breakpoint_from_master): Update call to
6477 set_breakpoint_location_function.
6478 (add_location_to_breakpoint): Likewise.
6479
6480 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6481
6482 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6483 required features based on default bfd type when no specific bfd
6484 is present.
6485
6486 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6487
6488 * NEWS: Mention that GDB printf and eval commands can now print
6489 C-style and Ada-style convenience var strings without
6490 calling the inferior.
6491 * printcmd.c (printf_c_string): Locally print GDB internal var
6492 instead of transiting via the inferior.
6493 (printf_wide_c_string): Likewise.
6494
6495 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6496
6497 PR breakpoints/25011
6498 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6499
6500 2019-07-04 Tom Tromey <tom@tromey.com>
6501
6502 PR tui/24724:
6503 * tui/tui-winsource.c (tui_clear_source_content): Update.
6504 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6505 (tui_update_breakpoint_info): Update.
6506 (tui_set_exec_info_content): Update.
6507 * tui/tui-source.c (tui_set_source_content_nil): Update.
6508 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6509 has_break.
6510 * tui/tui-data.h (enum tui_bp_flag): New.
6511 (tui_bp_flags): New enum flags type.
6512 (struct tui_source_element) <break_mode>: Change type. Rename
6513 from has_break.
6514 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6515 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6516 constants.
6517 * tui/tui-winsource.h: Fix comment.
6518
6519 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6520
6521 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6522 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6523 (store_fpregs_to_thread)
6524 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6525 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6526 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6527 (IWMMXT_REGS_SIZE): Add define.
6528 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6529 (fetch_vfp_regs, store_vfp_regs)
6530 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6531 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6532
6533 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6534
6535 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6536 defines.
6537 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6538 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6539 (ARM_INT_REGISTER_SIZE): ...to this.
6540 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6541 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6542 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6543 (arm_linux_collect_gregset, supply_nwfpe_register)
6544 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6545 defines.
6546 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6547 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6548 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6549 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6550 (arm_return_in_memory, arm_store_return_value)
6551 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6552 (arm_record_ld_st_multiple): Likewise.
6553 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6554 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6555
6556 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6557
6558 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6559 AARCH64_DISPLACED_MODIFIED_INSNS.
6560 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6561 (aarch64_displaced_step_copy_insn): Likewise.
6562 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6563 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6564 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6565 ARM_DISPLACED_MODIFIED_INSNS.
6566 * arm-tdep.c (arm_gdbarch_init): Likewise.
6567 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6568 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6569 (struct arm_displaced_step_closure): Use
6570 ARM_DISPLACED_MODIFIED_INSNS.
6571
6572 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6573
6574 * features/Makefile: Remove unused xml files.
6575 * features/aarch64.xml: Remove.
6576 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6577 * features/i386/amd64-avx-avx512.xml: Remove.
6578 * features/i386/amd64-avx-linux.xml: Remove.
6579 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6580 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6581 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6582 * features/i386/amd64-avx-mpx.xml: Remove.
6583 * features/i386/amd64-avx.xml: Remove.
6584 * features/i386/amd64-linux.xml: Remove.
6585 * features/i386/amd64-mpx-linux.xml: Remove.
6586 * features/i386/amd64-mpx.xml: Remove.
6587 * features/i386/amd64.xml: Remove.
6588 * features/i386/i386-avx-avx512-linux.xml: Remove.
6589 * features/i386/i386-avx-avx512.xml: Remove.
6590 * features/i386/i386-avx-linux.xml: Remove.
6591 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6592 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6593 * features/i386/i386-avx-mpx-linux.xml: Remove.
6594 * features/i386/i386-avx-mpx.xml: Remove.
6595 * features/i386/i386-avx.xml: Remove.
6596 * features/i386/i386-linux.xml: Remove.
6597 * features/i386/i386-mmx-linux.xml: Remove.
6598 * features/i386/i386-mmx.xml: Remove.
6599 * features/i386/i386-mpx-linux.xml: Remove.
6600 * features/i386/i386-mpx.xml: Remove.
6601 * features/i386/i386.xml: Remove.
6602 * features/i386/x32-avx-avx512-linux.xml: Remove.
6603 * features/i386/x32-avx-linux.xml: Remove.
6604 * features/i386/x32-linux.xml: Remove.
6605
6606 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6607
6608 * regformats/aarch64.dat: Remove.
6609 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6610 * regformats/i386/amd64-avx-linux.dat: Remove.
6611 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6612 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6613 * regformats/i386/amd64-linux.dat: Remove.
6614 * regformats/i386/amd64-mpx-linux.dat: Remove.
6615 * regformats/i386/amd64.dat: Remove.
6616 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6617 * regformats/i386/i386-avx-linux.dat: Remove.
6618 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6619 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6620 * regformats/i386/i386-linux.dat: Remove.
6621 * regformats/i386/i386-mmx-linux.dat: Remove.
6622 * regformats/i386/i386-mpx-linux.dat: Remove.
6623 * regformats/i386/i386.dat: Remove.
6624 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6625 * regformats/i386/x32-avx-linux.dat: Remove.
6626 * regformats/i386/x32-linux.dat: Remove.
6627
6628 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6629
6630 * aarch64-tdep.c: Remove xml self tests.
6631 * amd64-linux-tdep.c: Likewise.
6632 * amd64-tdep.c: Likewise.
6633 * i386-linux-tdep.c: Likewise.
6634 * i386-tdep.c: Likewise.
6635
6636 2019-07-03 Pedro Alves <palves@redhat.com>
6637
6638 PR cli/24732
6639 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6640 (pipe_cmd_option_defs): New.
6641 (make_pipe_cmd_options_def_group): New.
6642 (pipe_command): Use gdb::option::process_options.
6643 (pipe_command_completer): New function.
6644 (_initialize_cli_cmds): Install completer for "pipe" command.
6645
6646 2019-07-03 Pedro Alves <palves@redhat.com>
6647
6648 * cli/cli-option.c (union option_value) <string>: New field.
6649 (struct option_def_and_value): Add ctor, move ctor, dtor and
6650 use DISABLE_COPY_AND_ASSIGN.
6651 (option_def_and_value::clear_value): New.
6652 (parse_option, save_option_value_in_ctx, get_val_type_str)
6653 (add_setshow_cmds_for_options): Handle var_string.
6654 * cli-option.h (union option_def::var_address) <string>: New
6655 field.
6656 (struct string_option_def): New.
6657 * maint-test-options.c (struct test_options_opts): Add default
6658 ctor and use DISABLE_COPY_AND_ASSIGN.
6659 <string_opt>: New field.
6660 (test_options_opts::~test_options_opts): New.
6661 (test_options_opts::dump): Also dump "-string".
6662 (test_options_option_defs): Install "string.
6663
6664 2019-07-03 Pedro Alves <palves@redhat.com>
6665
6666 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6667 option_value with a null enumeration.
6668 (complete_options): Save the option values in the context.
6669 (save_option_value_in_ctx): New, factored out from ...
6670 (process_options): ... here.
6671 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6672 of the function.
6673 * maint-test-options.c (test_options_opts::dump): New, factored
6674 out from ...
6675 (maintenance_test_options_command_mode): ... here.
6676 (maintenance_test_options_command_completion_result): Delete.
6677 (maintenance_test_options_command_completion_text): Update
6678 comment.
6679 (maintenance_show_test_options_completion_result): Change
6680 prototype. Just print
6681 maintenance_test_options_command_completion_text.
6682 (save_completion_result): New.
6683 (maintenance_test_options_completer_mode): Pass options context to
6684 complete_options, and then save a dump.
6685 (_initialize_maint_test_options): Use add_cmd to install "maint
6686 show test-options-completion-result".
6687
6688 2019-07-03 Pedro Alves <palves@redhat.com>
6689
6690 * NEWS (New commands): Mention "with" and "maint with".
6691 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6692 (with_command, with_command_completer): New.
6693 (pipe_command): Adjust to new repeat_previous
6694 interface.
6695 (_initialize_cli_cmds): Install the "with" command and its "w"
6696 alias.
6697 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6698 declarations.
6699 * cli/cli-setshow.c (parse_cli_var_uinteger)
6700 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6701 argument strings for all var_types.
6702 (get_setshow_command_value_string): New, factored out from ...
6703 (do_show_command): ... this.
6704 * cli/cli-setshow.h: Include <string>.
6705 (get_setshow_command_value_string): Declare.
6706 * command.h (repeat_previous): Now returns const char *. Adjust
6707 comment.
6708 * maint.c: Include "cli/cli-cmds.h".
6709 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6710 (_initialize_maint_cmds): Register the "maintenance with" command.
6711 * top.c (repeat_previous): Move bits from pipe_command here:
6712 Return the saved command line, if any; error out if there's no
6713 command to relaunch.
6714
6715 2019-07-03 Pedro Alves <palves@redhat.com>
6716
6717 * NEWS (New commands): Mention "maint set/show test-settings"
6718 instead of "maint test-settings".
6719 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6720 (maintenance_test_settings_set_list): Rename to ...
6721 (maintenance_set_test_settings_list): ... this.
6722 (maintenance_test_settings_show_list): Rename to ...
6723 (maintenance_show_test_settings_list): ... this.
6724 (maintenance_test_settings_cmd): Delete.
6725 (maintenance_test_settings_set_cmd): ...
6726 (maintenance_set_test_settings_cmd): ... this.
6727 (maintenance_test_settings_show_cmd): ...
6728 (maintenance_show_test_settings_cmd): ... this.
6729 (maintenance_test_settings_show_value_cmd):
6730 (maintenance_show_test_settings_value_cmd): ... this.
6731 (_initialize_maint_test_settings): No longer install the "maint
6732 test-settings" prefix command. Rename "maint test-settings set"
6733 to "maint set test-settings", and "maint test-settings show" to
6734 "maint show test-settings". Adjust all subcommands.
6735
6736 2019-07-03 Pedro Alves <palves@redhat.com>
6737
6738 * maint-test-settings.c: Fix file's intro comment. Replace all
6739 references to "test-options" with references to "test-settings",
6740 in comments.
6741
6742 2019-07-03 Pedro Alves <palves@redhat.com>
6743
6744 * maint-test-settings.c (maintenance_test_settings_xxx)
6745 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6746 New.
6747 (maintenance_test_settings_enums): Use them.
6748 (maintenance_test_settings_enum): Default to
6749 maintenance_test_settings_xxx.
6750 (_initialize_maint_test_settings): Initialize
6751 MAINTENANCE_TEST_SETTINGS_FILENAME.
6752
6753 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6754
6755 * breakpoint.h (remove_breakpoints_inf): Change return type to
6756 void, move function documentation here.
6757 * breakpoint.c (remove_breakpoints_inf): Change return type to
6758 void, move function documentation to header.
6759
6760 2019-07-02 Pedro Alves <palves@redhat.com>
6761
6762 * NEWS (Completion improvements): Mention "info threads".
6763 * thread.c (struct info_threads_opts, info_threads_option_defs)
6764 (make_info_threads_options_def_group): New.
6765 (info_threads_command): Use gdb::option::process_options.
6766 (info_threads_command_completer): New.
6767 (_initialize_thread): Use gdb::option::build_help to build the
6768 help text for "info threads".
6769
6770 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6771
6772 * defs.h (generic_load): Move from here...
6773 * symfile.h (generic_load): ... to here. Rename name parameter
6774 to args.
6775 * symfile.c (generic_load): Add comment.
6776
6777 2019-07-01 Tom Tromey <tromey@adacore.com>
6778
6779 * dwarf2read.c
6780 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6781 declaration of without_params. Fix formatting.
6782
6783 2019-07-01 Tom Tromey <tromey@adacore.com>
6784
6785 * ada-exp.y (find_primitive_type): Update.
6786 * ada-lang.h (ada_lookup_symbol): Update.
6787 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6788 parameter.
6789 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6790
6791 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6792
6793 PR breakpoints/24541
6794 * gdbarch.c: Regenerate.
6795 * gdbarch.h: Regenerate.
6796 * gdbarch.sh: Add 'stap_adjust_register'.
6797 * i386-tdep.c: Include '<unordered_set>'.
6798 (i386_stap_adjust_register): New function.
6799 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6800 * stap-probe.c (stap_parse_register_operand): Call
6801 'gdbarch_stap_adjust_register'.
6802
6803 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6804
6805 PR python/24742
6806 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6807 * python/python.c (do_start_initialization): Use 'xmalloc'
6808 instead of 'PyMem_Malloc'.
6809
6810 2019-06-28 Tom Tromey <tromey@adacore.com>
6811
6812 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6813 for Ada.
6814
6815 2019-06-27 Tom Tromey <tromey@adacore.com>
6816
6817 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6818 objfile_key.
6819 (arm_find_mapping_symbol, arm_record_special_symbol)
6820 (_initialize_arm_tdep): Update.
6821 (arm_objfile_data_free): Remove.
6822
6823 2019-06-27 Tom Tromey <tromey@adacore.com>
6824
6825 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6826 to cp_print_static_field.
6827
6828 2019-06-26 Tom Tromey <tromey@adacore.com>
6829
6830 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6831 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6832 declare.
6833
6834 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6835
6836 * features/aarch64-core.c (create_feature_aarch64_core):
6837 Regenerate.
6838 * features/aarch64-core.xml: Add cpsr flags.
6839
6840 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6841
6842 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6843 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6844
6845 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6846
6847 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6848 field.
6849 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6850 use.
6851 (arm_record_special_symbol): Don't insert new symbol in sorted
6852 position, push it at the end.
6853
6854 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6855
6856 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6857 (arm_mapping_symbol_s): Remove.
6858 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6859 (arm_mapping_symbol_vec): New typedef.
6860 (struct arm_per_objfile): Add constructor.
6861 <section_maps>: Change type to
6862 std::unique_ptr<arm_mapping_symbol_vec[]>.
6863 (arm_compare_mapping_symbols): Remove.
6864 (arm_find_mapping_symbol): Adjust to section_maps type change.
6865 (arm_objfile_data_free): Call delete on arm_per_objfile.
6866 (arm_record_special_symbol): Adjust to section_maps type change.
6867 Allocate arm_per_objfile with new.
6868
6869 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6870
6871 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6872 with the command prefix.
6873
6874 2019-06-25 Tom Tromey <tom@tromey.com>
6875
6876 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6877 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6878
6879 2019-06-25 Tom Tromey <tom@tromey.com>
6880
6881 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6882 type.
6883 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6884 protected.
6885
6886 2019-06-25 Tom Tromey <tom@tromey.com>
6887
6888 * tui/tui-winsource.c
6889 (tui_source_window_base::set_is_exec_point_at): Add check against
6890 LOA_ADDRESS.
6891
6892 2019-06-25 Tom Tromey <tom@tromey.com>
6893
6894 * tui/tui-source.c (tui_set_source_content): Don't check before
6895 xfree.
6896 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6897
6898 2019-06-25 Tom Tromey <tom@tromey.com>
6899
6900 * tui/tui-winsource.h (tui_update_source_window_as_is)
6901 (tui_alloc_source_buffer, tui_line_is_displayed)
6902 (tui_addr_is_displayed): Change type of win_info.
6903 * tui/tui-winsource.c (tui_update_source_window_as_is)
6904 (tui_clear_source_content, tui_show_source_line)
6905 (tui_show_source_content, tui_source_window_base::refill)
6906 (tui_source_window_base::set_is_exec_point_at)
6907 (tui_source_window_base::set_is_exec_point_at)
6908 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6909 (tui_alloc_source_buffer, tui_line_is_displayed)
6910 (tui_addr_is_displayed): Change type of win_info. Update.
6911 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6912 (tui_source_window_base::do_make_visible_with_new_height):
6913 Update.
6914 * tui/tui-source.c (tui_set_source_content)
6915 (tui_set_source_content_nil)
6916 (tui_source_window::do_scroll_vertical): Update.
6917 * tui/tui-layout.c (show_layout): Update.
6918 * tui/tui-disasm.c (tui_set_disassem_content)
6919 (tui_disasm_window::do_scroll_vertical): Update.
6920 * tui/tui-data.h (tui_win_content): Remove.
6921 (struct tui_gen_win_info) <content, content_size>: Remove.
6922 (struct tui_source_element): Add initializers and destructor.
6923 (union tui_which_element, struct tui_win_element): Remove.
6924 (struct tui_source_window_base) <content>: New field.
6925 (struct tui_data_window): Remove destructor.
6926 (tui_alloc_content, tui_free_win_content)
6927 (tui_free_all_source_wins_content): Don't declare.
6928 * tui/tui-data.c (tui_initialize_static_data): Update.
6929 (init_content_element, tui_alloc_content): Remove.
6930 (~tui_gen_win_info): Update.
6931 (~tui_data_window, tui_free_all_source_wins_content)
6932 (tui_free_win_content, free_content, free_content_elements):
6933 Remove.
6934
6935 2019-06-25 Tom Tromey <tom@tromey.com>
6936
6937 * tui/tui-winsource.h (tui_clear_source_content)
6938 (tui_erase_source_content, tui_show_source_content): Change type
6939 of win_info.
6940 * tui/tui-winsource.c (tui_clear_source_content)
6941 (tui_erase_source_content, tui_show_source_content): Change type
6942 of win_info.
6943 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6944 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6945 win_info.
6946 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6947 win_info.
6948 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6949
6950 2019-06-25 Tom Tromey <tom@tromey.com>
6951
6952 * tui/tui-winsource.c (tui_clear_source_content)
6953 (tui_source_window_base::set_is_exec_point_at): Update.
6954 * tui/tui-source.c (tui_set_source_content_nil): Update.
6955 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6956 a bool.
6957 * tui/tui-data.c (init_content_element): Update.
6958
6959 2019-06-25 Tom Tromey <tom@tromey.com>
6960
6961 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6962 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6963 * tui/tui-layout.c (init_and_make_win): Update.
6964 * tui/tui.h (enum tui_win_type): Update.
6965 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6966 tui_win_is_auxillary.
6967 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6968 tui_win_is_auxillary.
6969
6970 2019-06-25 Tom Tromey <tom@tromey.com>
6971
6972 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6973 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6974 (tui_delete_data_content_windows, tui_display_all_data)
6975 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6976 Update.
6977 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6978 * tui/tui-regs.c (tui_last_regs_line_no)
6979 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6980 (tui_show_registers): Update.
6981 (tui_show_register_group): Return void. Update.
6982 (tui_display_registers_from, tui_display_reg_element_at_line)
6983 (tui_display_registers_from_line, tui_check_register_values):
6984 Update.
6985 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6986 member.
6987 (struct tui_data_window) <regs_content>: Now a std::vector.
6988 <regs_content_count>: Remove.
6989 (tui_add_content_elements, tui_free_data_content): Don't declare.
6990 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6991 (init_content_element): Remove DATA_WIN case. Add assert.
6992 (tui_add_content_elements): Remove.
6993 (tui_data_window): Update.
6994 (tui_free_data_content): Remove.
6995 (free_content_elements): Remove DATA_WIN case.
6996
6997 2019-06-25 Tom Tromey <tom@tromey.com>
6998
6999 * tui/tui-data.c (tui_data_item_window): Update.
7000 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7001 * tui/tui-windata.c (tui_display_all_data)
7002 (tui_display_data_from_line): Update.
7003 (tui_check_data_values): Remove.
7004 * tui/tui-regs.c (tui_show_register_group)
7005 (tui_display_reg_element_at_line): Update.
7006 * tui/tui-hooks.c (tui_register_changed)
7007 (tui_refresh_frame_and_register_information): Call
7008 tui_check_register_values.
7009 * tui/tui-data.h (struct tui_data_window) <data_content,
7010 data_content_count, data_type>: Remove.
7011 (enum tui_data_type): Remove.
7012
7013 * tui/tui-data.c (tui_data_window::clear_detail)
7014 (~tui_data_window): Update.
7015
7016 2019-06-25 Tom Tromey <tom@tromey.com>
7017
7018 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7019 declare.
7020 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7021 Rename from tui_first_data_item_displayed. Update.
7022 (tui_data_window::refresh_all)
7023 (tui_data_window::do_scroll_vertical): Update.
7024 * tui/tui-data.h (struct tui_data_window)
7025 <first_data_item_displayed>: Declare new method.
7026
7027 2019-06-25 Tom Tromey <tom@tromey.com>
7028
7029 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7030 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7031 contents...
7032 (tui_initialize_static_data): ...here.
7033
7034 2019-06-25 Tom Tromey <tom@tromey.com>
7035
7036 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7037 (tui_display_registers_from, tui_check_register_values): Update.
7038 (tui_display_register): Remove win_info parameter; update.
7039 (tui_get_register): Change type of parameters.
7040 * tui/tui-data.h (struct tui_data_element): Remove.
7041 (union tui_which_element) <data>: Remove.
7042 <data_window>: Change type.
7043 (struct tui_data_item_window): New.
7044 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7045 case. Add assert.
7046 (~tui_data_item_window): New destructor.
7047 (free_content_elements): Remove DATA_ITEM_WIN case.
7048
7049 2019-06-25 Tom Tromey <tom@tromey.com>
7050
7051 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7052 Remove.
7053
7054 2019-06-25 Tom Tromey <tom@tromey.com>
7055
7056 * tui/tui-data.h (struct tui_command_element): Remove.
7057 (union tui_which_element) <command>: Remove.
7058 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7059 assert.
7060 (free_content_elements): Remove CMD_WIN case.
7061
7062 2019-06-25 Tom Tromey <tom@tromey.com>
7063
7064 * tui/tui-layout.c (tui_set_layout): Update.
7065 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7066 * tui/tui-data.c (layout_def): Update.
7067
7068 2019-06-25 Tom Tromey <tom@tromey.com>
7069
7070 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7071 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7072 (tui_source_window_base::set_new_height): Update.
7073 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7074 Update.
7075 (tui_set_locator_fullname, tui_set_locator_info)
7076 (tui_show_frame_info): Update.
7077 * tui/tui-source.c (tui_set_source_content)
7078 (tui_source_is_displayed): Update.
7079 * tui/tui-layout.c (show_source_disasm_command, show_data)
7080 (show_source_or_disasm_and_command): Update.
7081 * tui/tui-disasm.c (tui_set_disassem_content)
7082 (tui_get_begin_asm_address): Update.
7083 * tui/tui-data.h (struct tui_locator_element): Remove.
7084 (union tui_which_element) <locator>: Remove.
7085 (struct tui_locator_window): New.
7086 (tui_locator_win_info_ptr): Change return type.
7087 * tui/tui-data.c (_locator): Change type.
7088 (tui_locator_win_info_ptr): Change return type.
7089 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7090 (tui_alloc_content): Add assert.
7091
7092 2019-06-25 Tom Tromey <tom@tromey.com>
7093
7094 * tui/tui-winsource.c
7095 (tui_exec_info_window::maybe_allocate_content): New method.
7096 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7097 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7098 (make_source_or_disasm_window): Add cast.
7099 * tui/tui-data.h (union tui_which_element) <simple_string>:
7100 Remove.
7101 (struct tui_source_info): New.
7102 (struct tui_source_window_base) <execution_info>: Change type.
7103 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7104 case, and add assert.
7105 (tui_alloc_content): Add assert.
7106
7107 2019-06-25 Tom Tromey <tom@tromey.com>
7108
7109 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7110 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7111 * tui/tui-data.c (tui_alloc_win_info): Remove.
7112
7113 2019-06-25 Tom Tromey <tom@tromey.com>
7114
7115 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7116 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7117 can_highlight.
7118
7119 2019-06-25 Tom Tromey <tom@tromey.com>
7120
7121 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7122 make_visible_with_new_height method.
7123 (tui_win_info::make_visible_with_new_height): New method.
7124 (tui_source_window_base::do_make_visible_with_new_height)
7125 (tui_data_window::do_make_visible_with_new_height)
7126 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7127 (make_visible_with_new_height): Remove.
7128 (tui_resize_all, tui_adjust_win_heights): Use
7129 make_visible_with_new_height method.
7130 * tui/tui-data.h (struct tui_win_info)
7131 <do_make_visible_with_new_height, make_visible_with_new_height>:
7132 New methods.
7133 (struct tui_source_window_base, struct tui_data_window)
7134 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7135 methods.
7136
7137 2019-06-25 Tom Tromey <tom@tromey.com>
7138
7139 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7140 method.
7141 (update_tab_width): Call update_tab_width method.
7142 * tui/tui-data.h (struct tui_win_info)
7143 (struct tui_source_window_base) <update_tab_width>: New methods.
7144
7145 2019-06-25 Tom Tromey <tom@tromey.com>
7146
7147 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7148 parameter.
7149 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7150 parameter.
7151 (tui_gen_win_info::make_visible): Update.
7152 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7153 parameter.
7154 * tui/tui-data.h (enum tui_box): New enum.
7155 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7156
7157 2019-06-25 Tom Tromey <tom@tromey.com>
7158
7159 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7160 init_and_make_win for EXEC_INFO_WIN.
7161 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7162 longer inline.
7163 (struct tui_win_info) <~tui_win_info>: Inline.
7164 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7165 Don't declare.
7166 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7167 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7168 Remove.
7169 (tui_initialize_static_data): Update.
7170 (~tui_gen_win_info): Handle more cleanup here.
7171 (~tui_source_window_base): Delete "execution_info".
7172 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7173
7174 2019-06-25 Tom Tromey <tom@tromey.com>
7175
7176 * tui/tui-layout.c (make_command_window): Don't set
7177 can_highlight.
7178 (show_source_disasm_command): Call the reset method.
7179 (show_data): Don't set can_highlight. Call the reset method.
7180 (tui_gen_win_info::reset): Rename from init_gen_win_info
7181 (init_and_make_win): Simplify. Return tui_gen_win_info.
7182 (show_source_or_disasm_and_command): Call the reset method.
7183 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7184 (struct tui_cmd_window): Set can_highlight.
7185
7186 2019-06-25 Tom Tromey <tom@tromey.com>
7187
7188 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7189 from make_visible.
7190 (tui_make_visible, tui_make_invisible): Rewrite.
7191 (tui_win_info::make_visible): Remove.
7192 (tui_source_window_base::make_visible): Update.
7193 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7194 method. Moved from...
7195 (struct tui_win_info) <make_visible>: ...here.
7196
7197 2019-06-25 Tom Tromey <tom@tromey.com>
7198
7199 * tui/tui-winsource.c
7200 (tui_source_window_base::do_scroll_horizontal): Remove direction
7201 parameter.
7202 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7203 direction parameter.
7204 * tui/tui-win.c (tui_win_info::forward_scroll)
7205 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7206 (tui_win_info::right_scroll): Update.
7207 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7208 direction parameter.
7209 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7210 direction parameter.
7211 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7212 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7213 Remove direction parameter.
7214 (struct tui_source_window_base, struct tui_source_window)
7215 (struct tui_disasm_window, struct tui_data_window)
7216 (struct tui_cmd_window): Update.
7217
7218 2019-06-25 Tom Tromey <tom@tromey.com>
7219
7220 * tui/tui-winsource.h (tui_set_exec_info_content)
7221 (tui_show_exec_info_content, tui_erase_exec_info_content)
7222 (tui_clear_exec_info_content, tui_update_exec_info): Change
7223 argument to tui_source_window_base.
7224 * tui/tui-winsource.c (tui_set_exec_info_content)
7225 (tui_show_exec_info_content, tui_erase_exec_info_content)
7226 (tui_clear_exec_info_content, tui_update_exec_info): Change
7227 argument to tui_source_window_base.
7228
7229 2019-06-25 Tom Tromey <tom@tromey.com>
7230
7231 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7232 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7233
7234 2019-06-25 Tom Tromey <tom@tromey.com>
7235
7236 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7237 check.
7238
7239 2019-06-25 Tom Tromey <tom@tromey.com>
7240
7241 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7242 type to void.
7243 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7244 type to void.
7245 * tui/tui-source.c (tui_set_source_content): Update.
7246 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7247
7248 2019-06-25 Tom Tromey <tom@tromey.com>
7249
7250 * tui/tui-win.c (window_name_completer, tui_set_focus)
7251 (tui_all_windows_info): Use name method.
7252 * tui/tui-data.h (struct tui_gen_win_info)
7253 (struct tui_source_window, struct tui_disasm_window)
7254 (struct tui_data_window, struct tui_cmd_window) <name>: New
7255 method.
7256 (tui_win_name): Don't declare.
7257 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7258 (tui_win_name): Remove.
7259
7260 2019-06-25 Tom Tromey <tom@tromey.com>
7261
7262 * tui/tui-winsource.h (tui_update_source_window)
7263 (tui_update_source_window_as_is): Change parameter type.
7264 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7265 to be a tui_source_window_base.
7266 (tui_update_source_window_as_is): Likewise.
7267 * tui/tui-win.c (make_visible_with_new_height): Update.
7268
7269 2019-06-25 Tom Tromey <tom@tromey.com>
7270
7271 * tui/tui-winsource.c (tui_erase_source_content)
7272 (tui_show_source_content, tui_show_exec_info_content)
7273 (tui_erase_exec_info_content): Use refresh_window method.
7274 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7275 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7276 from tui_refresh_win.
7277 (tui_data_window::refresh_window): New method.
7278 (tui_win_info::refresh, tui_source_window_base::refresh)
7279 (tui_refresh_all): Use refresh_window method.
7280 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7281 method.
7282 * tui/tui-regs.c (tui_display_register): Call refresh_window
7283 method.
7284 * tui/tui-layout.c (show_source_disasm_command)
7285 (show_source_or_disasm_and_command): Call refresh_window method.
7286 * tui/tui-data.h (struct tui_gen_win_info)
7287 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7288 New method.
7289
7290 2019-06-25 Tom Tromey <tom@tromey.com>
7291
7292 * tui/tui.c (tui_rl_other_window, tui_enable)
7293 (tui_is_window_visible, tui_get_command_dimension): Update.
7294 * tui/tui-winsource.c (tui_update_source_window_as_is)
7295 (tui_clear_source_content, tui_erase_source_content)
7296 (tui_show_source_line, tui_source_window_base::refill)
7297 (tui_source_window_base::do_scroll_horizontal)
7298 (tui_source_window_base::set_is_exec_point_at)
7299 (tui_update_breakpoint_info, tui_set_exec_info_content)
7300 (tui_alloc_source_buffer, tui_line_is_displayed)
7301 (tui_addr_is_displayed): Update.
7302 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7303 (tui_check_and_display_highlight_if_needed)
7304 (tui_win_info::make_visible, tui_win_info::refresh)
7305 (tui_refresh_all): Update.
7306 * tui/tui-windata.c (tui_first_data_item_displayed)
7307 (tui_delete_data_content_windows, tui_erase_data_content)
7308 (tui_display_all_data, tui_data_window::refresh_all)
7309 (tui_check_data_values): Update.
7310 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7311 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7312 (tui_win_info::backward_scroll, tui_refresh_all_win)
7313 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7314 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7315 (tui_source_window_base::set_new_height)
7316 (tui_data_window::set_new_height)
7317 (make_invisible_and_set_new_height)
7318 (make_visible_with_new_height, new_height_ok)
7319 (parse_scrolling_args): Update.
7320 * tui/tui-stack.c (tui_show_frame_info): Update.
7321 * tui/tui-source.c (tui_set_source_content)
7322 (tui_set_source_content_nil, tui_source_is_displayed)
7323 (tui_source_window::do_scroll_vertical): Update.
7324 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7325 (tui_display_registers_from, tui_display_reg_element_at_line)
7326 (tui_check_register_values, tui_reg_command): Update.
7327 * tui/tui-layout.c (tui_default_win_height)
7328 (show_source_disasm_command, show_data, init_and_make_win)
7329 (show_source_or_disasm_and_command): Update.
7330 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7331 (tui_redisplay_readline, tui_mld_flush)
7332 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7333 (tui_getc): Update.
7334 * tui/tui-disasm.c (tui_set_disassem_content)
7335 (tui_disasm_window::do_scroll_vertical): Update.
7336 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7337 Now virtual.
7338 (struct tui_win_info): Derive from tui_gen_win_info.
7339 <~tui_win_info>: Mark as override.
7340 <generic>: Remove member.
7341 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7342 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7343 (~tui_data_window, ~tui_win_info)
7344 (tui_free_all_source_wins_content): Update.
7345 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7346
7347 2019-06-25 Tom Tromey <tom@tromey.com>
7348
7349 * tui/tui-layout.c (init_and_make_win): Use new.
7350 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7351 destructor, initializers.
7352 (tui_alloc_generic_win_info): Don't declare.
7353 * tui/tui-data.c (_locator): Add argument to constructor.
7354 (source_win, disasm_win): New globals.
7355 (exec_info): Remove.
7356 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7357 Update.
7358 (tui_alloc_generic_win_info): Remove.
7359 (init_content_element): Use new.
7360 (tui_win_info::tui_win_info): Update.
7361 (free_content_elements) <case DATA_WIN>: Use delete.
7362
7363 2019-06-25 Tom Tromey <tom@tromey.com>
7364
7365 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7366 * tui/tui-windata.c (tui_first_data_item_displayed)
7367 (tui_delete_data_content_windows): Update.
7368 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7369 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7370 (tui_display_registers_from, tui_check_register_values): Update.
7371 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7372 pointer.
7373 * tui/tui-data.c (init_content_element): Update. Allocate the new
7374 window.
7375 (tui_free_data_content): Update.
7376 (free_content_elements) <case DATA_WIN>: Free the window.
7377
7378 2019-06-25 Tom Tromey <tom@tromey.com>
7379
7380 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7381 Update.
7382 * tui/tui-layout.c (make_command_window)
7383 (show_source_disasm_command, show_data, init_and_make_win)
7384 (show_source_or_disasm_and_command): Update.
7385 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7386 method.
7387 <can_highight, is_highlighted>: Now bool.
7388 (tui_set_win_highlight): Don't declare.
7389 * tui/tui-data.c (tui_set_win_highlight): Remove.
7390
7391 2019-06-25 Tom Tromey <tom@tromey.com>
7392
7393 * tui/tui-wingeneral.c (make_visible): Remove check of window
7394 type.
7395
7396 2019-06-25 Tom Tromey <tom@tromey.com>
7397
7398 * tui/tui-win.c (tui_win_info::max_height)
7399 (tui_cmd_window::max_height): New methods.
7400 (new_height_ok): Call max_height.
7401 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7402 <max_height>: New method.
7403
7404 2019-06-25 Tom Tromey <tom@tromey.com>
7405
7406 * tui/tui-win.c (tui_source_window_base::set_new_height)
7407 (tui_data_window::set_new_height): New methods.
7408 (make_invisible_and_set_new_height): Call set_new_height method.
7409 * tui/tui-data.h (struct tui_win_info)
7410 (struct tui_source_window_base, struct tui_data_window)
7411 <set_new_height>: New method.
7412
7413 2019-06-25 Tom Tromey <tom@tromey.com>
7414
7415 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7416 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7417 tui_refresh_data_win.
7418 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7419 method.
7420 (tui_refresh_all_win): Call the refresh_all method.
7421 (tui_set_focus): Likewise.
7422 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7423 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7424 Likewise.
7425
7426 2019-06-25 Tom Tromey <tom@tromey.com>
7427
7428 * tui/tui-winsource.h (tui_refill_source_window)
7429 (tui_set_is_exec_point_at): Don't declare.
7430 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7431 (tui_source_window_base::refill): Rename from
7432 tui_refill_source_window.
7433 (tui_source_window_base::do_scroll_horizontal): Update.
7434 (tui_source_window_base::set_is_exec_point_at): Rename from
7435 tui_set_is_exec_point_at.
7436 (tui_update_all_breakpoint_info): Update.
7437 * tui/tui-stack.c (tui_show_frame_info): Update.
7438 * tui/tui-layout.c (show_data): Add cast.
7439 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7440 * tui/tui-data.h (struct tui_source_window_base) <refill,
7441 set_is_exec_point_at>: New methods.
7442 (tui_source_windows, tui_add_to_source_windows): Update types.
7443 (tui_add_to_source_windows): Remove redundant declaration.
7444 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7445 (tui_source_windows): Change return type.
7446 (tui_clear_source_windows_detail): Update.
7447 (tui_add_to_source_windows): Change type of parameter.
7448 (tui_free_all_source_wins_content): Update.
7449
7450 2019-06-25 Tom Tromey <tom@tromey.com>
7451
7452 * tui/tui-wingeneral.c (tui_win_info::refresh)
7453 (tui_source_window_base::refresh): New methods.
7454 (tui_refresh_all): Call the refresh method.
7455 * tui/tui-data.h (struct tui_win_info)
7456 (struct tui_source_window_base) <refresh>: New method.
7457
7458 2019-06-25 Tom Tromey <tom@tromey.com>
7459
7460 * tui/tui.h (tui_is_window_visible): Return bool.
7461 * tui/tui.c (tui_is_window_visible): Return bool.
7462 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7463 (tui_make_visible, tui_make_invisible)
7464 (tui_win_info::make_visible)
7465 (tui_source_window_base::make_visible, make_all_visible)
7466 (tui_make_all_visible, tui_make_all_invisible): Update.
7467 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7468 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7469 bool.
7470 (struct tui_win_info, struct tui_source_window_base)
7471 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7472 * tui/tui-data.c (tui_init_generic_part): Update.
7473
7474 2019-06-25 Tom Tromey <tom@tromey.com>
7475
7476 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7477 (tui_source_window_base::make_visible): New methods.
7478 (make_all_visible): Make method call.
7479 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7480 (struct tui_source_window_base, struct tui_cmd_window): Override
7481 make_visible.
7482 (tui_win_is_source_type): Don't declare.
7483 * tui/tui-data.c (tui_win_is_source_type): Remove.
7484
7485 2019-06-25 Tom Tromey <tom@tromey.com>
7486
7487 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7488 NULL check.
7489
7490 2019-06-25 Tom Tromey <tom@tromey.com>
7491
7492 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7493 Inline constructor. Add initializers for members.
7494 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7495 constructors; now inline in class.
7496
7497 2019-06-25 Tom Tromey <tom@tromey.com>
7498
7499 * tui/tui-regs.c (tui_show_registers): Update.
7500 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7501 bool.
7502 * tui/tui-data.c (tui_data_window::clear_detail)
7503 (tui_data_window): Update.
7504
7505 2019-06-25 Tom Tromey <tom@tromey.com>
7506
7507 * tui/tui-windata.c (tui_display_all_data)
7508 (tui_display_data_from_line, tui_display_data_from)
7509 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7510 Update.
7511 * tui/tui-regs.c (tui_last_regs_line_no)
7512 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7513 (tui_show_registers, tui_show_register_group)
7514 (tui_display_registers_from, tui_display_reg_element_at_line)
7515 (tui_display_registers_from_line, tui_check_register_values)
7516 (tui_reg_next, tui_reg_prev): Update.
7517 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7518 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7519 tui_data_window.
7520 (struct tui_win_info) <detail>: Remove. Add new fields from
7521 tui_data_info.
7522 (TUI_DATA_WIN): Add cast.
7523 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7524 (~tui_data_window): Simplify.
7525
7526 2019-06-25 Tom Tromey <tom@tromey.com>
7527
7528 * tui/tui-layout.c (show_source_disasm_command)
7529 (show_source_or_disasm_and_command): Update.
7530 * tui/tui-io.c (update_cmdwin_start_line)
7531 (tui_redisplay_readline): Update.
7532 * tui/tui-data.h (struct tui_command_info): Remove.
7533 (struct tui_win_info) <detail>: Remove command_info member.
7534 (struct tui_data_window) <start_line>: New member, from
7535 tui_command_info.
7536 (TUI_CMD_WIN): Add casts.
7537
7538 2019-06-25 Tom Tromey <tom@tromey.com>
7539
7540 * tui/tui-winsource.c (tui_update_source_window)
7541 (tui_refill_source_window)
7542 (tui_source_window_base::do_scroll_horizontal)
7543 (tui_update_breakpoint_info, tui_set_exec_info_content)
7544 (tui_show_exec_info_content, tui_erase_exec_info_content)
7545 (tui_clear_exec_info_content): Update.
7546 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7547 Update.
7548 * tui/tui-win.c (make_invisible_and_set_new_height)
7549 (make_visible_with_new_height): Update.
7550 * tui/tui-source.c (tui_set_source_content)
7551 (tui_show_symtab_source): Update.
7552 * tui/tui-layout.c (extract_display_start_addr)
7553 (show_source_disasm_command, show_data)
7554 (make_source_or_disasm_window)
7555 (show_source_or_disasm_and_command): Update.
7556 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7557 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7558 "gdbarch".
7559 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7560 to tui_source_window_base.
7561 (struct tui_win_info) <detail>: Remove source_info member.
7562 (struct tui_source_window_base) <has_locator>: Inline.
7563 Move contents from tui_source_info; rename has_locator member to
7564 m_has_locator.
7565 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7566 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7567 header file.
7568 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7569 Simplify.
7570 (tui_free_all_source_wins_content): Cast to
7571 tui_source_window_base.
7572
7573 2019-06-25 Tom Tromey <tom@tromey.com>
7574
7575 * tui/tui-win.c (make_invisible_and_set_new_height)
7576 (make_visible_with_new_height): Call has_locator method.
7577 * tui/tui-layout.c (show_source_disasm_command, show_data)
7578 (show_source_or_disasm_and_command): Update for bool change.
7579 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7580 (tui_win_info) <has_locator>: New method.
7581 (struct tui_source_window_base) <has_locator>: New method.
7582 (tui_win_has_locator): Don't declare.
7583 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7584 from tui_win_has_locator.
7585 (tui_source_window_base): Use false, not FALSE.
7586
7587 2019-06-25 Tom Tromey <tom@tromey.com>
7588
7589 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7590 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7591 clear_detail method directly.
7592 (tui_clear_win_detail): Remove.
7593
7594 2019-06-25 Tom Tromey <tom@tromey.com>
7595
7596 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7597 "this", not TUI_DISASM_WIN.
7598
7599 2019-06-25 Tom Tromey <tom@tromey.com>
7600
7601 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7602 declare.
7603 * tui/tui-winsource.c
7604 (tui_source_window_base::do_scroll_horizontal): Rename from
7605 tui_horizontal_source_scroll.
7606 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7607 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7608 from tui_vertical_data_scroll.
7609 * tui/tui-win.h (tui_scroll): Don't declare.
7610 * tui/tui-win.c (tui_win_info::forward_scroll)
7611 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7612 (tui_win_info::right_scroll): Rename and update.
7613 (tui_scroll_forward_command, tui_scroll_backward_command)
7614 (tui_scroll_left_command, tui_scroll_right_command): Update.
7615 (tui_scroll): Remove.
7616 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7617 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7618 from tui_vertical_source_scroll.
7619 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7620 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7621 from tui_vertical_disassem_scroll.
7622 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7623 do_scroll_horizontal>: New methods.
7624 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7625 Likewise.
7626 (struct tui_source_window_base): Add do_scroll_horizontal.
7627 (struct tui_source_window, struct tui_disasm_window): Add
7628 do_scroll_vertical.
7629 (struct tui_data_window, struct tui_cmd_window): Add
7630 do_scroll_horizontal and do_scroll_vertical.
7631 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7632
7633 2019-06-25 Tom Tromey <tom@tromey.com>
7634
7635 * tui/tui-data.h (struct tui_source_window_base): New struct.
7636 (struct tui_source_window): Derive from tui_source_window_base.
7637 (struct tui_disasm_window): New struct.
7638 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7639 from tui_source_window::clear_detail.
7640 (tui_source_window_base): Rename from tui_source_window.
7641 (~tui_source_window_base): Rename from ~tui_source_window.
7642 (tui_alloc_win_info): Create a tui_disasm_window.
7643
7644 2019-06-25 Tom Tromey <tom@tromey.com>
7645
7646 * tui/tui-data.h (struct tui_source_window)
7647 (struct tui_data_window): Declare destructors.
7648 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7649 destructors.
7650 (tui_win_info): Simplify.
7651
7652 2019-06-25 Tom Tromey <tom@tromey.com>
7653
7654 * tui/tui-winsource.c (tui_display_main)
7655 (tui_update_source_windows_with_addr)
7656 (tui_update_all_breakpoint_info): Update.
7657 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7658 (new_height_ok, parse_scrolling_args): Update.
7659 * tui/tui-stack.c (tui_show_frame_info): Update.
7660 * tui/tui-data.h (struct tui_list): Remove.
7661 (tui_source_windows): Return a reference to a std::vector.
7662 * tui/tui-data.c (source_windows): Now a std::vector.
7663 (tui_source_windows): Change return type.
7664 (tui_clear_source_windows): Rewrite.
7665 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7666 (tui_free_all_source_wins_content): Rewrite.
7667
7668 2019-06-25 Tom Tromey <tom@tromey.com>
7669
7670 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7671 (struct tui_data_window, struct tui_cmd_window): Declare
7672 clear_detail method.
7673 * tui/tui-data.c (tui_source_window::clear_detail)
7674 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7675 methods.
7676 (tui_clear_win_detail): Simplify.
7677
7678 2019-06-25 Tom Tromey <tom@tromey.com>
7679
7680 * tui/tui-layout.c (make_source_window, make_disasm_window)
7681 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7682 Return the new window.
7683 (show_source_disasm_command, show_data)
7684 (show_source_or_disasm_and_command): Update.
7685
7686 2019-06-25 Tom Tromey <tom@tromey.com>
7687
7688 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7689 parameter. Return the new window.
7690 (show_source_disasm_command): Update and remove NULL check.
7691 (show_source_or_disasm_and_command): Update.
7692
7693 2019-06-25 Tom Tromey <tom@tromey.com>
7694
7695 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7696
7697 2019-06-25 Tom Tromey <tom@tromey.com>
7698
7699 * tui/tui-data.h (struct tui_win_info): Make constructor
7700 protected. Make destructor virtual. Add initializers.
7701 (tui_source_window, tui_data_window, tui_cmd_window): New
7702 classes.
7703 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7704 constructor. Add "type" parameter.
7705 (tui_source_window, tui_data_window, tui_cmd_window): New
7706 constructors.
7707 (tui_alloc_win_info): Instantiate the appropriate subclass.
7708
7709 2019-06-25 Tom Tromey <tom@tromey.com>
7710
7711 * tui/tui-win.c (tui_resize_all): Use delete.
7712 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7713 destructor.
7714 (tui_free_window): Don't declare.
7715 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7716 Update.
7717
7718 2019-06-25 Tom Tromey <tom@tromey.com>
7719
7720 * tui/tui-data.h (struct tui_win_info): Add constructor.
7721 * tui/tui-data.c (tui_alloc_win_info): Use new.
7722 (tui_free_window): Use delete.
7723
7724 2019-06-22 Tom Tromey <tom@tromey.com>
7725
7726 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7727 declare.
7728 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7729
7730 2019-06-22 Tom Tromey <tom@tromey.com>
7731
7732 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7733 declare.
7734 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7735
7736 2019-06-22 Tom de Vries <tdevries@suse.de>
7737
7738 * dwarf2read.c (create_addrmap_from_aranges)
7739 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7740 instead of '%zu'.
7741
7742 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7743
7744 * dwarf2read.h (dwarf2_section_info_def): Remove.
7745 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7746 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7747 std::vector<dwarf2_section_info>.
7748 (struct dwo_file) <~dwo_file>: Remove.
7749 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7750 types field.
7751 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7752 (dwarf2_read_debug_names): Likewise.
7753 (create_debug_types_hash_table): Change parameter type to
7754 array_view, adjust code accordingly.
7755 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7756 (partial_die_info::fixup): Likewise.
7757 (determine_prefix): Likewise.
7758 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7759
7760 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7761
7762 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7763 gdb_bfd_ref_ptr.
7764 <~dwo_file>: Remove call to gdb_bfd_unref.
7765 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7766 gdb_bfd_ref_ptr::get.
7767
7768 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7769
7770 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7771 type to htab_up.
7772 * dwarf2read.c (struct dwo_file): Initialize fields.
7773 <~dwo_file>: New.
7774 (free_dwo_file): Remove, move content to ~dwo_file.
7775 (struct dwo_file_deleter): Remove.
7776 (dwo_file_up>: Remove custom deleter.
7777 (free_dwo_files): Remove.
7778 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7779 dwo_files.
7780 (process_skeletonless_type_units): Call unique_ptr::get.
7781 (allocate_dwo_file_hash_table): Add deleter to created hash
7782 table. Change return type to htab_up.
7783 (lookup_dwo_file_slot): Don't memset dwo_file, call
7784 unique_ptr::get.
7785 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7786 (create_dwo_unit_in_dwp_v2): Likewise.
7787 (open_and_init_dwo_file): Likewise.
7788 (free_dwo_file_from_slot): Remove.
7789
7790 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7791
7792 * dwarf2read.h (struct dwarf2_section_info) <readin,
7793 is_virtual>: Change type to bool.
7794 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7795 true instead of 1.
7796
7797 2019-06-19 Tom Tromey <tom@tromey.com>
7798
7799 * tui/tui-data.h (tui_init_content_element): Don't declare.
7800
7801 2019-06-19 Tom Tromey <tom@tromey.com>
7802
7803 * tui/tui-data.h (tui_init_win_info): Don't declare.
7804
7805 2019-06-19 Tom de Vries <tdevries@suse.de>
7806
7807 * dwarf2read.h (abstract_to_concrete): Change type to
7808 std::unordered_map<sect_offset, std::vector<sect_offset>,
7809 gdb::hash_enum<sect_offset>>.
7810
7811 2019-06-19 Tom Tromey <tromey@adacore.com>
7812
7813 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7814 EVAL_AVOID_SIDE_EFFECTS specially.
7815
7816 2019-06-19 Tom Tromey <tromey@adacore.com>
7817
7818 * source-cache.c (highlighter): New global.
7819 (source_cache::get_source_lines): Create a highlighter on demand.
7820
7821 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7822
7823 * defs.h (deprecated_interactive_hook): Delete declaration.
7824 * interps.c (clear_interpreter_hooks): Remove use of
7825 deprecated_interactive_hook.
7826 * top.c (deprecated_interactive_hook): Delete definition.
7827 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7828
7829 2019-06-18 Tom de Vries <tdevries@suse.de>
7830
7831 PR gdb/24515
7832 * dwarf2read.h (abstract_to_concrete): Change type from
7833 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7834 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7835 * dwarf2read.c (read_variable): Update.
7836 (dwarf2_fetch_die_loc_sect_off): Update.
7837
7838 2019-06-17 Tom de Vries <tdevries@suse.de>
7839
7840 PR gdb/24617
7841 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7842 accessing parent[parent_len - 1].
7843
7844 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7845
7846 PR gdb/24364
7847 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7848 call dtrace_process_dof with NULL dof.
7849
7850 2019-06-16 Tom de Vries <tdevries@suse.de>
7851
7852 PR gdb/24445
7853 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7854
7855 2019-06-16 Tom Tromey <tom@tromey.com>
7856
7857 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7858 (make_all_visible): Use address of member.
7859
7860 2019-06-16 Tom Tromey <tom@tromey.com>
7861
7862 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7863 (tui_free_window, free_content, free_content_elements): Remove
7864 unnecessary cast.
7865 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7866 cast.
7867 * tui/tui-regs.c (tui_show_register_group)
7868 (tui_display_registers_from, tui_display_reg_element_at_line):
7869 Remove unnecessary cast.
7870
7871 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7872
7873 * linux-nat.c (normal_mask): Delete.
7874 (_initialize_linux_nat): Don't initialise normal_mask.
7875
7876 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7877
7878 PR gdb/24445
7879 * dwarf-index-write.h (write_psymtabs_to_index): Add
7880 dwz_basename parameter.
7881 * dwarf-index-write.c (write_gdbindex): Move file writing to
7882 write_gdbindex_1. Change return type void.
7883 (assert_file_size): Move up, remove filename parameter.
7884 (write_gdbindex_1): New function.
7885 (write_debug_names): Change return type to void, call
7886 assert_file_size.
7887 (struct index_wip_file): New struct.
7888 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7889 file logic to index_wip_file. Write index for dwz file if
7890 needed.
7891 (save_gdb_index_command): Pass basename of dwz file, if present.
7892 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7893 build-id of dwz file, if present.
7894 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7895 (dwarf2_get_dwz_file): Likewise.
7896 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7897 (dwarf2_get_dwz_file): Likewise.
7898
7899 2019-06-16 Tom Tromey <tom@tromey.com>
7900
7901 * coffread.c (process_coff_symbol): Use xstrdup.
7902 * value.c (create_internalvar): Use xstrdup.
7903
7904 2019-06-16 Tom Tromey <tom@tromey.com>
7905
7906 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7907 * breakpoint.c (stopin_command, stopat_command)
7908 (until_break_command, decode_location_default): Remove unnecessary
7909 cast.
7910 * utils.c (subset_compare): Remove unnecessary cast.
7911 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7912 cast.
7913 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7914 cast.
7915 * infcmd.c (path_command): Remove unnecessary cast.
7916 * coffread.c (decode_type): Remove unnecessary cast.
7917 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7918 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7919 * tui/tui-stack.c (tui_show_locator_content)
7920 (tui_show_frame_info): Remove unnecessary cast.
7921 * tui/tui-win.c (tui_scroll_forward_command)
7922 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7923 (parse_scrolling_args): Remove unnecessary cast.
7924 * tui/tui-data.c (init_win_info, tui_del_window)
7925 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7926 (free_content_elements): Remove unnecessary cast.
7927 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7928 unnecessary cast.
7929 * tui/tui-source.c (tui_set_source_content)
7930 (tui_vertical_source_scroll): Remove unnecessary cast.
7931 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7932 cast.
7933 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7934 * tui/tui-regs.c (tui_display_registers_from)
7935 (tui_display_register): Remove unnecessary cast.
7936 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7937 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7938 (make_visible): Remove unnecessary cast.
7939 * tui/tui-winsource.c (tui_erase_source_content)
7940 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7941 unnecessary cast.
7942 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7943 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7944 * stabsread.c (read_type, read_array_type, read_range_type):
7945 Remove unnecessary cast.
7946 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7947 (parse_symbol, parse_type, upgrade_type, parse_external)
7948 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7949 unnecessary cast.
7950 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7951
7952 2019-06-16 Tom Tromey <tom@tromey.com>
7953
7954 * tui/tui-data.c (tui_alloc_generic_win_info)
7955 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7956 checks.
7957
7958 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7959 Andrew Burgess <andrew.burgess@embecosm.com>
7960
7961 * f-typeprint.c (f_print_type): Don't return early for not
7962 associated or not allocated types.
7963 (f_type_print_varspec_suffix): Add print_rank parameter and print
7964 ranks of array types in case they dangling.
7965 (f_type_print_base): Add print_rank parameter.
7966
7967 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7968
7969 * NEWS: Mention new MI commands.
7970 * break-catch-throw.c (enum exception_event_kind): Move to
7971 breakpoint.h.
7972 (print_mention_exception_catchpoint): Output text as a single
7973 message.
7974 (catch_exception_command_1): Rename to...
7975 (catch_exception_event): ...this, make non-static, update header
7976 command, and change some parameter types.
7977 (catch_catch_command): Update for changes to
7978 catch_exception_command_1.
7979 (catch_throw_command): Likewise.
7980 (catch_rethrow_command): Likewise.
7981 * breakpoint.c (enum exception_event_kind): Delete.
7982 * breakpoint.h (enum exception_event_kind): Moved here from
7983 break-catch-throw.c.
7984 (catch_exception_event): Declare.
7985 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7986 (mi_cmd_catch_throw): New function.
7987 (mi_cmd_catch_rethrow): New function.
7988 (mi_cmd_catch_catch): New function.
7989 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7990 'catch-catch' entries.
7991 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7992 (mi_cmd_catch_rethrow): Declare.
7993 (mi_cmd_catch_catch): Declare.
7994
7995 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7996
7997 * annotate.c (annotate_source_line): Change return type to void,
7998 update implementation to match.
7999 * annotate.h (annotate_source_line): Change return type to void,
8000 update header comment.
8001 * stack.c (print_frame_info): Don't change what frame information
8002 is printed based on whether annotations are on or not.
8003
8004 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8005
8006 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8007 (annotate_source): Make static.
8008 (annotate_source_line): Moved from source.c and renamed from
8009 identify_source_line. Update the return type.
8010 * annotate.h (annotate_source): Delete declaration.
8011 (annotate_source_line): Declaration moved from source.h, and
8012 renamed from identify_source_line. Return type updated.
8013 * source.c (identify_source_line): Moved to annotate.c and renamed
8014 to annotate_source_line.
8015 (info_line_command): Remove check of annotation_level.
8016 * source.h (identify_source_line): Move declaration to annotate.h
8017 and rename to annotate_source_line.
8018 * stack.c: Add 'annotate.h' include.
8019 (print_frame_info): Remove check of annotation_level before
8020 calling annotate_source_line.
8021
8022 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8023
8024 * source-cache.c (source_cache::get_plain_source_lines): Use
8025 open_source_file_with_line_charpos instead of just
8026 open_source_file, remove call to find_source_lines.
8027 (source_cache::get_source_lines): Likewise.
8028 * source.c (find_source_lines): Make static.
8029 (get_filename_and_charpos): Renamed into...
8030 (open_source_file_with_line_charpos): ..this along with changes to
8031 return a scoped_fd, and some other minor clean ups.
8032 (identify_source_line): Use open_source_file_with_line_charpos.
8033 (search_command_helper): Use open_source_file_with_line_charpos
8034 instead of just open_source_file, remove call to
8035 find_source_lines.
8036 * source.h (open_source_file_with_line_charpos): Declare new
8037 function.
8038 (find_source_lines): Delete declaration.
8039
8040 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8041
8042 * source.c (get_filename_and_charpos): Remove fullname
8043 parameter.
8044 (identify_source_line): Update call to get_filename_and_charpos.
8045
8046 2019-06-14 Tom Tromey <tromey@adacore.com>
8047
8048 PR gdb/24502:
8049 * ui-style.h (skip_ansi_escape): Update comment.
8050 * ui-file.h (class no_terminal_escape_file): New class.
8051 * ui-file.c (no_terminal_escape_file::write)
8052 (no_terminal_escape_file::puts): New methods.
8053 * cli/cli-logging.c (handle_redirections): Use
8054 no_terminal_escape_file.
8055
8056 2019-06-14 Tom Tromey <tromey@adacore.com>
8057
8058 * NEWS: Move convenience variable news above Python news.
8059
8060 2019-06-14 Tom Tromey <tom@tromey.com>
8061
8062 * gnulib: Move directory to top-level.
8063 * configure.ac: Don't configure gnulib.
8064 * configure: Rebuild.
8065 * common/common-defs.h: Use new path to gnulib.
8066 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8067 (GNULIB_H): Remove.
8068 (INCGNU): Look in new gnulib location.
8069 (HFILES_NO_SRCDIR): Remove gnulib files.
8070 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8071 (generated_files): Remove GNULIB_H.
8072 ($(LIBGNU), all-lib): Remove targets.
8073 (distclean): Don't mention GNULIB_BUILDDIR.
8074 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8075
8076 2019-06-14 Tom Tromey <tromey@adacore.com>
8077
8078 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8079 Warn if symbol file does not provide any symbols.
8080
8081 2019-06-14 Tom Tromey <tromey@adacore.com>
8082
8083 * source.c (find_and_open_source): Respect basenames_may_differ.
8084
8085 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8086
8087 * annotate.c (annotate_breakpoints_invalid): Make use of
8088 scoped_restore_terminal_state.
8089 (annotate_frames_invalid): Likewise.
8090
8091 2019-06-14 Tom Tromey <tromey@adacore.com>
8092
8093 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8094 allow assignment to an internalvar.
8095
8096 2019-06-14 Tom Tromey <tromey@adacore.com>
8097
8098 * ada-lex.l: Allow "_" in attribute names.
8099
8100 2019-06-14 Tom Tromey <tromey@adacore.com>
8101
8102 PR gdb/24653:
8103 * regcache.c (registers_changed): Don't call alloca.
8104 * top.c (execute_command): Don't call alloca.
8105
8106 2019-06-13 Pedro Alves <palves@redhat.com>
8107
8108 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8109 'expression'. When parsing an expression, error out if there's
8110 junk after "unlimited".
8111 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8112 (do_set_command): Adjust calls to is_unlimited_literal.
8113
8114 2019-06-13 Pedro Alves <palves@redhat.com>
8115
8116 * compile/compile.c (make_compile_options_def_group): Add braces
8117 around array_view initializer.
8118 * thread.c (make_thread_apply_all_options_def_group)
8119 (make_thread_apply_all_options_def_group): Likewise.
8120
8121 2019-06-13 Pedro Alves <palves@redhat.com>
8122
8123 * NEWS (New commands): Mention "maint test-options
8124 require-delimiter", "maint test-options unknown-is-error", "maint
8125 test-options unknown-is-operand" and "maint show
8126 test-options-completion-result".
8127 (New command options, command completion): New section.
8128 (Completion improvements): New section.
8129 Mention that you can abbreviate "unlimited".
8130
8131 2019-06-13 Pedro Alves <palves@redhat.com>
8132
8133 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8134 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8135 * unittests/cli-utils-selftests.c (test_parse_flags)
8136 (test_parse_flags_qcs): Delete.
8137 (test_cli_utils): Don't call deleted functions.
8138
8139 2019-06-13 Pedro Alves <palves@redhat.com>
8140
8141 * thread.c: Include "cli/cli-option.h".
8142 (tp_array_compar_ascending): Global.
8143 (tp_array_compar): Delete function.
8144 (tp_array_compar_ascending, tp_array_compar_descending): New
8145 functions.
8146 (ascending_option_def, qcs_flag_option_def)
8147 (thr_qcs_flags_option_defs)
8148 (make_thread_apply_all_options_def_group)
8149 (make_thread_apply_options_def_group): New.
8150 (thread_apply_all_command): Use gdb::option::process_options.
8151 (thread_apply_command_completer)
8152 (thread_apply_all_command_completer): New.
8153 (thread_apply_command): Use gdb::option::process_options.
8154 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8155 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8156 to generate help text of "thread apply". Adjust "taas"'s help.
8157 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8158 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8159
8160 2019-06-13 Pedro Alves <palves@redhat.com>
8161
8162 * thread.c (thread_apply_command): Check for invalid TID with
8163 isdigit instead of !isalpha.
8164
8165 2019-06-13 Pedro Alves <palves@redhat.com>
8166
8167 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8168 (validate_flags_qcs): New.
8169 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8170 (validate_flags_qcs): Declare.
8171 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8172 (make_frame_apply_options_def_group): New.
8173 (frame_apply_command_count): Process options with
8174 gdb::option::process_options.
8175 (frame_apply_completer): New.
8176 (frame_apply_level_completer, frame_apply_all_completer)
8177 (frame_apply_completer): New.
8178 (_initialize_stack): Update help of "frame apply", "frame apply
8179 level", "frame apply all" and "faas" to mention supported options
8180 and install command completers.
8181 * stack.h (frame_apply_all_completer): Declare.
8182 * thread.c: Include "stack.h".
8183 (tfaas_command): Add "--".
8184 (_initialize_thread): Update help "tfaas" to mention supported
8185 options and install command completer.
8186
8187 2019-06-13 Pedro Alves <palves@redhat.com>
8188
8189 * completer.c (complete_nested_command_line): New.
8190 (gdb_completion_word_break_characters_throw): Add assertion.
8191 * completer.h (complete_nested_command_line): Declare.
8192
8193 2019-06-13 Pedro Alves <palves@redhat.com>
8194
8195 * stack.c (parse_backtrace_qualifiers): New.
8196 (backtrace_command): Use it.
8197 (backtrace_command_completer): Complete on qualifiers.
8198
8199 2019-06-13 Pedro Alves <palves@redhat.com>
8200
8201 * frame.c: Include "cli/cli-option.h.
8202 (user_set_backtrace_options): New.
8203 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8204 Delete.
8205 (get_prev_frame): Adjust.
8206 (boolean_option_def, uinteger_option_def)
8207 (set_backtrace_option_defs): New.
8208 (_initialize_frame): Adjust and use
8209 gdb::option::add_setshow_cmds_for_options to install "set
8210 backtrace past-main" and "set backtrace past-entry".
8211 * frame.h: Include "cli/cli-option.h".
8212 (struct frame_print_options): Forward declare.
8213 (print_frame_arguments_all, print_frame_arguments_scalars)
8214 (print_frame_arguments_none): Declare.
8215 (print_entry_values): Delete declaration.
8216 (struct frame_print_options, user_frame_print_options): New.
8217 (struct set_backtrace_options): New.
8218 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8219 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8220 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8221 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8222 (list_args_or_locals): Add frame_print_options parameter.
8223 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8224 * python/py-framefilter.c (enumerate_args): Pass down
8225 USER_FRAME_PRINT_OPTIONS.
8226 * stack.c: Include "cli/cli-option.h".
8227 (print_frame_arguments_all, print_frame_arguments_scalars)
8228 (print_frame_arguments_none): Declare.
8229 (print_raw_frame_arguments, print_entry_values): Delete.
8230 (user_frame_print_options): New.
8231 (boolean_option_def, enum_option_def, frame_print_option_defs):
8232 New.
8233 (struct backtrace_cmd_options): New.
8234 (bt_flag_option_def): New.
8235 (backtrace_command_option_defs): New.
8236 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8237 (print_frame_arg, read_frame_arg, print_frame_args)
8238 (print_frame_info, print_frame): Add frame_print_options parameter
8239 and use it.
8240 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8241 (backtrace_command_1): Add frame_print_options and
8242 backtrace_cmd_options parameters and use them.
8243 (make_backtrace_options_def_group): New.
8244 (backtrace_command): Process command options with
8245 gdb::option::process_options.
8246 (backtrace_command_completer): New.
8247 (_initialize_stack): Extend "backtrace"'s help to mention
8248 supported options. Install completer for "backtrace".
8249 Install some settings commands with add_setshow_cmds_for_options.
8250
8251 2019-06-13 Pedro Alves <palves@redhat.com>
8252
8253 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8254 and that "set/show print raw frame-arguments" are now deprecated.
8255
8256 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8257 command.
8258 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8259 * stack.c (_initialize_stack): Install "set/show print
8260 raw-frame-arguments", and deprecate "set/show print raw
8261 frame-arguments".
8262 * valprint.c (_initialize_valprint): Deprecate "set/show print
8263 raw".
8264
8265 2019-06-13 Pedro Alves <palves@redhat.com>
8266
8267 * compile/compile.c (struct compile_options): New.
8268 (compile_flag_option_def, compile_command_option_defs)
8269 (make_compile_options_def_group): New.
8270 (compile_file_command): Handle options with
8271 gdb::option::process_options.
8272 (compile_file_command_completer): New function.
8273 (compile_code_command): Handle options with
8274 gdb::option::process_options.
8275 (compile_code_command_completer): New function.
8276 (_initialize_compiler): Install completers for "compile code" and
8277 "compile file". Mention available options in "compile code" and
8278 "compile code"'s help.
8279 * completer.c (advance_to_completion_word): New, factored out from
8280 ...
8281 (advance_to_expression_complete_word_point): ... this.
8282 (advance_to_filename_complete_word_point): New.
8283 * completer.h (advance_to_filename_complete_word_point): New
8284 declaration.
8285
8286 2019-06-13 Pedro Alves <palves@redhat.com>
8287
8288 * compile/compile.c: Include "cli/cli-option.h".
8289 (compile_print_value): Scope data pointer is now a
8290 value_print_options pointer; adjust.
8291 (compile_print_command): Process options. Scope data pointer is
8292 now a value_print_options pointer; adjust.
8293 (_initialize_compile): Update "compile print"'s help to include
8294 supported options. Install a completer for "compile print".
8295 * cp-valprint.c (show_vtblprint, show_objectprint)
8296 (show_static_field_print): Delete.
8297 (_initialize_cp_valprint): Don't install "set print
8298 static-members", "set print vtbl", "set print object" here.
8299 * printcmd.c: Include "cli/cli-option.h" and
8300 "common/gdb_optional.h".
8301 (print_command_parse_format): Rework to fill in a
8302 value_print_options instead of a format_data.
8303 (print_value): Change parameter type from format_data pointer to
8304 value_print_options reference. Adjust.
8305 (print_command_1): Process options. Adjust to pass down a
8306 value_print_options.
8307 (print_command_completer): New.
8308 (_initialize_printcmd): Install print_command_completer as
8309 handle_brkchars completer for the "print" command. Update
8310 "print"'s help to include supported options.
8311 * valprint.c: Include "cli/cli-option.h".
8312 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8313 here from cp-valprint.c.
8314 (boolean_option_def, uinteger_option_def)
8315 (value_print_option_defs, make_value_print_options_def_group):
8316 New. Use gdb::option::add_setshow_cmds_for_options to install
8317 "set print elements", "set print null-stop", "set print repeats",
8318 "set print pretty", "set print union", "set print array", "set
8319 print address", "set print symbol", "set print array-indexes".
8320 * valprint.h: Include <string> and "cli/cli-option.h".
8321 (make_value_print_options_def_group): Declare.
8322 (print_value): Change parameter type from format_data pointer to
8323 value_print_options reference.
8324 (print_command_completer): Declare.
8325
8326 2019-06-13 Pedro Alves <palves@redhat.com>
8327
8328 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8329 (COMMON_SFILES): Add maint-test-settings.c.
8330 * cli/cli-decode.c (boolean_enums): New global, factored out from
8331 ...
8332 (add_setshow_boolean_cmd): ... here.
8333 * cli/cli-decode.h (boolean_enums): Declare.
8334 * cli/cli-option.c: New file.
8335 * cli/cli-option.h: New file.
8336 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8337 factored out from ...
8338 (parse_cli_boolean_value(const char *)): ... this.
8339 (is_unlimited_literal): Change parameter type to pointer to
8340 pointer. Adjust and advance ARG pointer.
8341 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8342 (parse_cli_var_enum): New, factored out from ...
8343 (do_set_command): ... this. Adjust.
8344 * cli/cli-setshow.h (parse_cli_boolean_value)
8345 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8346 (parse_cli_var_enum): Declare.
8347 * cli/cli-utils.c: Include "cli/cli-option.h".
8348 (get_ulongest): New.
8349 * cli/cli-utils.h (get_ulongest): Declare.
8350 (check_for_argument): New overloads.
8351 * maint-test-options.c: New file.
8352
8353 2019-06-13 Pedro Alves <palves@redhat.com>
8354
8355 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8356 parse a range if "-" is at the end of the string.
8357
8358 2019-06-13 Pedro Alves <palves@redhat.com>
8359
8360 * cli/cli-setshow.c (parse_auto_binary_operation)
8361 (parse_cli_boolean_value): Don't allow "o".
8362
8363 2019-06-13 Pedro Alves <palves@redhat.com>
8364
8365 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8366 * NEWS: Mention maint test-settings KIND.
8367 * maint-test-settings.c: New file.
8368
8369 2019-06-13 Pedro Alves <palves@redhat.com>
8370
8371 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8372 completer.
8373 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8374 "set" completers.
8375
8376 2019-06-13 Pedro Alves <palves@redhat.com>
8377
8378 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8379 after item.
8380
8381 2019-06-13 Pedro Alves <palves@redhat.com>
8382
8383 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8384
8385 2019-06-13 Pedro Alves <palves@redhat.com>
8386
8387 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8388 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8389 call.
8390 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8391 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8392 calls.
8393 (check_for_argument): Skip spaces after argument.
8394
8395 2019-06-13 Pedro Alves <palves@redhat.com>
8396
8397 * thread.c (thread_apply_command): Adjust TID parsing.
8398 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8399 detected before end of string.
8400 (tid_is_in_list): Error out if LIST is invalid.
8401
8402 2019-06-13 Pedro Alves <palves@redhat.com>
8403
8404 * completer.c (complete_line_internal_1): Rewind completion word
8405 point.
8406 (completion_tracker::advance_custom_word_point_by): Change
8407 parameter type to int.
8408 * completer.h (completion_tracker::advance_custom_word_point_by):
8409 Likewise.
8410
8411 2019-06-13 Pedro Alves <palves@redhat.com>
8412
8413 * completer.c (advance_to_completion_word): Handle delimiters.
8414
8415 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8416
8417 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8418
8419 2019-06-11 Tom Tromey <tom@tromey.com>
8420
8421 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8422 (xmalloc_failed): Move to alloc.c.
8423 * alloc.c: New file.
8424 * Makefile.in (COMMON_SFILES): Add alloc.c.
8425
8426 2019-06-11 Tom Tromey <tom@tromey.com>
8427
8428 * nat/linux-waitpid.c: Don't include server.h.
8429 (linux_debug): Remove.
8430 (my_waitpid): Update.
8431
8432 2019-06-11 Tom Tromey <tromey@adacore.com>
8433
8434 * infcall.c (_initialize_infcall): Remove trailing newline from
8435 help.
8436 * user-regs.c (_initialize_user_regs): Remove trailing newline
8437 from help.
8438 * typeprint.c (_initialize_typeprint): Remove trailing newline
8439 from help.
8440 * reverse.c (_initialize_reverse): Remove trailing newlines from
8441 help.
8442 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8443 from help.
8444 * language.c (add_set_language_command): Remove trailing newline
8445 from help.
8446 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8447 help.
8448 * disasm.c (_initialize_disasm): Remove trailing newline from
8449 help.
8450 * top.c (init_main): Remove trailing newline from help.
8451 * interps.c (_initialize_interpreter): Remove trailing newline
8452 from help.
8453 * btrace.c (_initialize_btrace): Remove trailing newlines from
8454 help.
8455 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8456 from help.
8457 * python/python.c (_initialize_python): Remove trailing newline
8458 from help.
8459 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8460 help.
8461 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8462 from help. Reformat some text.
8463 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8464 from help.
8465 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8466 newline from help.
8467
8468 2019-06-11 Tom Tromey <tromey@adacore.com>
8469
8470 * darwin-nat.c (darwin_decode_exception_message)
8471 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8472
8473 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8474
8475 * valops.c (value_slice): Check for not allocated or not
8476 associated values.
8477
8478 2019-06-10 Tom de Vries <tdevries@suse.de>
8479
8480 PR gdb/24618
8481 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8482 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8483 invalid.
8484
8485 2019-06-10 Tom de Vries <tdevries@suse.de>
8486
8487 PR gdb/24611
8488 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8489 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8490
8491 2019-06-10 Tom de Vries <tdevries@suse.de>
8492
8493 PR symtab/24545
8494 * symtab.c (struct demangled_name_entry): Add language field.
8495 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8496 static minimal symbol". Set and use language field.
8497
8498 2019-06-10 Tom Tromey <tromey@adacore.com>
8499
8500 * ada-lang.c (_initialize_ada_language): Update help text.
8501
8502 2019-06-10 Tom Tromey <tromey@adacore.com>
8503
8504 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8505 with a newline.
8506 * guile/guile.c (handle_boot_error): Don't end warning with a
8507 newline.
8508 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8509 warning with a newline.
8510 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8511 newline.
8512 (s12z_frame_cache): Likewise.
8513 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8514 a newline.
8515 * solib-svr4.c (disable_probes_interface): Don't end warning with
8516 a newline.
8517 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8518 newline.
8519 * python/python.c (do_finish_initialization): Don't end warning
8520 with a newline.
8521
8522 2019-06-10 Tom Tromey <tom@tromey.com>
8523
8524 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8525 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8526 gdbpy_enter.
8527
8528 2019-06-10 Tom Tromey <tromey@adacore.com>
8529
8530 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8531 data.
8532 (elf_new_init): Don't call stabsread_new_init.
8533 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8534 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8535 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8536
8537 2019-06-10 Tom de Vries <tdevries@suse.de>
8538
8539 PR symtab/16264
8540 PR symtab/24517
8541 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8542
8543 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8544
8545 * source.c (find_and_open_source): Also rewrite relative file
8546 names.
8547
8548 2019-04-26 Amos Bird <amosbird@gmail.com>
8549
8550 * annotate.c (annotate_thread_exited): Add "thread-exited"
8551 annotation.
8552
8553 2019-06-06 Tom Tromey <tromey@adacore.com>
8554
8555 * maint.h (class scoped_command_stats): Use
8556 DISABLE_COPY_AND_ASSIGN.
8557 <print_time>: New method.
8558 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8559 print_time.
8560 (scoped_command_stats::print_time): New method.
8561
8562 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8563
8564 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8565 instructions of lengths 6 or 8 bytes.
8566
8567 2019-06-04 Pedro Alves <palves@redhat.com>
8568
8569 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8570
8571 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8572 * breakpoint.c (condition_completer): Likewise.
8573 * cli/cli-dump.c (scan_expression): Likewise.
8574 * common/filestuff.c (mkdir_recursive): Likewise.
8575 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8576 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8577 (gdb_abspath): Likewise.
8578 * compile/compile-cplus-types.c
8579 (compile_cplus_instance::decl_name): Likewise.
8580 * completer.c (complete_explicit_location):
8581 (signal_completer, reg_or_group_completer_1): Likewise.
8582 * cp-support.c (cp_remove_params_if_any): Likewise.
8583 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8584 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8585 * infcmd.c (strip_bg_char): Likewise.
8586 * linespec.c (copy_token_string): Likewise.
8587 * mi/mi-main.c (output_cores): Likewise.
8588 * psymtab.c (psymtab_search_name):
8589 * symfile.c (test_set_ext_lang_command): Likewise.
8590 * target.c (target_fileio_read_stralloc): Likewise.
8591 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8592 * value.c (complete_internalvar): Likewise.
8593
8594 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8595
8596 Add objfile property to gdb.Type.
8597 * NEWS: Mention Python API addition.
8598 * python/py-type.c (typy_get_objfile): New method.
8599
8600 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8601
8602 * NEWS: Mention the new set|show style [title|highlight].
8603 Mention changes to "show style", "help" and "apropos".
8604
8605 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8606
8607 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8608 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8609 instead of print_help_for_command.
8610 (print_doc_of_command): New function.
8611 (help_list): Add 'apropos -v word' suggestion.
8612 (print_help_for_command): Style the command name using title style.
8613 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8614 (_initialize_cli_cmds): Describe -v in apropos_command help.
8615
8616 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8617
8618 * cli/cli-style.h (cli_style_option): Add name in constructor,
8619 add m_name class member, add constructor with intensity,
8620 add name class function.
8621 (cli_style_option::add_setshow_commands): Remove name argument.
8622 (highlight_style, title_style): New styles.
8623 * cli/cli-style.c (do_show): New function that shows a style
8624 characteristic styling the style name with itself.
8625 (set_style_name): New function.
8626 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8627 Update all callers according to the changes in cli/cli-style.h.
8628 * utils.h (fputs_highlighted): New function.
8629 * utils.c (fputs_highlighted): Likewise.
8630
8631 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8632
8633 * NEWS: Mention new pipe command and new convenience variables.
8634
8635 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8636
8637 * cli/cli-cmds.c (pipe_command): New function.
8638 (_initialize_cli_cmds): Call add_com for pipe_command.
8639 Define | as an alias for pipe.
8640 (exit_status_set_internal_vars): New function.
8641 (shell_escape): Call exit_status_set_internal_vars.
8642 cli/cli-decode.c (find_command_name_length): Recognize | as
8643 a single character command.
8644
8645 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8646
8647 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8648 top.c (execute_command_to_ui_file): New function, mostly a copy
8649 of execute_command_to_string.
8650 (execute_command_to_string): Implement by calling
8651 execute_command_to_ui_file.
8652
8653 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8654
8655 * top.h (saved_command_line): Remove declaration.
8656 * top.c (previous_saved_command_line, previous_repeat_arguments):
8657 New variables.
8658 (saved_command_line): Make static, define together with other
8659 'repeat variables'.
8660 (dont_repeat): Clear repeat_arguments.
8661 (repeat_previous, get_saved_command_line, save_command_line):
8662 New functions.
8663 (gdb_init): Initialize saved_command_line
8664 and previous_saved_command_line.
8665 * main.c (captured_main_1): Remove saved_command_line initialization.
8666 * event-top.c (handle_line_of_input): Update to use
8667 the new 'repeat' related functions instead of direct access to
8668 saved_command_line.
8669 * command.h (repeat_previous, get_saved_command_line,
8670 save_command_line): New declarations.
8671 (dont_repeat): Add comment.
8672
8673 2019-05-30 Tom Tromey <tromey@adacore.com>
8674
8675 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8676 Fix comment.
8677 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8678
8679 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8680
8681 PR cli/24587
8682 * completer.c (complete): Initialize variable word.
8683
8684 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8685
8686 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8687 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8688 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8689 'body' is NULL to the outter 'if', protecting the '!is_define'
8690 situation as well.
8691
8692 2019-05-29 Tom Tromey <tromey@adacore.com>
8693
8694 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8695 (dwarf_unknown): New function.
8696 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8697 (dwarf_type_encoding_name): Use dwarf_unknown.
8698
8699 2019-05-29 Tom Tromey <tromey@adacore.com>
8700
8701 PR c++/20020:
8702 * cp-valprint.c (cp_print_value_fields): Call
8703 cp_print_static_field inside "try".
8704
8705 2019-05-29 Tom Tromey <tromey@adacore.com>
8706
8707 * inflow.c (struct terminal_info): Add default operator=.
8708 * configure: Rebuild.
8709 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8710 -Wdeprecated-copy-dtor, -Wredundant-move.
8711
8712 2019-05-29 Tom Tromey <tromey@adacore.com>
8713
8714 * NEWS: Add entry.
8715 * infcmd.c (print_return_value_1): Handle finish_print
8716 option.
8717 (show_print_finish): New function.
8718 (_initialize_infcmd): Add "set/show print finish" commands.
8719 * valprint.c (user_print_options): Initialize new member.
8720 * valprint.h (struct value_print_options) <finish_print>: New
8721 member.
8722
8723 2019-05-28 Tom Tromey <tromey@adacore.com>
8724
8725 * ada-lang.c (ada_remove_Xbn_suffix)
8726 (find_old_style_renaming_symbol)
8727 (parse_old_style_renaming): Remove.
8728 (ada_find_renaming_symbol): Don't call
8729 find_old_style_renaming_symbol.
8730 (ada_is_renaming_symbol): Rename from
8731 ada_find_renaming_symbol. Remove "block" parameter. Return
8732 bool. Now static.
8733 (ada_read_var_value): Update and simplify.
8734 * ada-exp.y (write_var_or_type): Remove old code.
8735
8736 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8737
8738 PR gdb/25010
8739 * event-top.c: Remove include comment.
8740 * inflow.c (class scoped_ignore_sigttou): Move from here...
8741 * inflow.h (class scoped_ignore_sigttou): ...to here.
8742 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8743 * top.c: Remove include comment.
8744
8745 2019-05-27 Tom Tromey <tom@tromey.com>
8746
8747 * NEWS: Fix typo.
8748
8749 2019-05-22 Tom Tromey <tromey@adacore.com>
8750
8751 * target.c (target_follow_exec): Constify parameter.
8752 * target-delegates.c: Rebuild.
8753 * remote.c (remote_target::follow_exec): Constify parameter.
8754 * infrun.c (follow_exec): Constify parameter.
8755 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8756 (target_follow_exec): Likewise.
8757
8758 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8759
8760 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8761 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8762
8763 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8764
8765 * NEWS: Add debugredirect and testsuite sections.
8766
8767 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8768
8769 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8770 target descriptions using exclusively floating point register name
8771 aliases.
8772
8773 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8774
8775 PR gdb/18644:
8776 * f-lang.c (build_fortran_types): Handle the case where
8777 gdbarch_floatformat_for_type returns a nullptr.
8778
8779 2019-05-21 Tom de Vries <tdevries@suse.de>
8780
8781 PR cli/24587
8782 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8783
8784 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8785
8786 PR gdb/18644:
8787 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8788 16-byte floats.
8789 * i386-tdep.c (i386_floatformat_for_type): Use
8790 floatformats_ia64_quad for the 16-byte floating point component
8791 within a fortran 32-byte complex number.
8792
8793 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8794
8795 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8796 delete default constructor.
8797 (find_partial_die): Update to return const struct.
8798 (partial_die_parent_scope): Move variable declaration into scope
8799 of its use and change its type to auto.
8800 (guess_partial_die_structure_name): Likewise.
8801 (partial_die_info::fixup): Likewise.
8802
8803 2019-05-17 Tom Tromey <tromey@adacore.com>
8804
8805 * source.c (find_and_open_source): Remove cast.
8806
8807 2019-05-17 Tom Tromey <tromey@adacore.com>
8808
8809 * annotate.c (annotate_source): Make "filename" const.
8810 * annotate.h (annotate_source): Use const.
8811
8812 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8813
8814 * disasm.c (set_disassembler_options): Send errors to stderr.
8815
8816 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8817
8818 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8819 (cli_interp_base::set_logging): Check debug_redirect.
8820 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8821 * cli/cli-logging.c (debug_redirect): Add static variable.
8822 (pop_output_files): Add default param.
8823 (handle_redirections): Print debug setting.
8824 (show_logging_command): Likewise.
8825 (_initialize_cli_logging): Add debugredirect command.
8826 * interps.c (current_interp_set_logging): Add debug_redirect
8827 parameter.
8828 * interps.h (set_logging): Add debug_redirect parameter.
8829 (current_interp_set_logging): Likewise.
8830 * mi/mi-common.h: Likewise.
8831 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8832
8833 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8834 Tom Tromey <tromey@adacore.com>
8835
8836 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8837 directly.
8838 * cli/cli-interp.h (make_logging_output): Remove declaration.
8839 * cli/cli-logging.c (make_logging_output): Remove function.
8840 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8841 directly.
8842 * ui-file.c (tee_file::tee_file): Remove bools.
8843 (tee_file::~tee_file): Remove deletes.
8844 * ui-file.h (tee_file): Remove bools.
8845
8846 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8847
8848 * mi/mi-cmds.h (mi_cmd_complete): New function.
8849 * mi/mi-main.c (mi_cmd_complete): Likewise.
8850 * mi/mi-cmds.c: Define new MI command -complete.
8851 * NEWS: Mention new -complete command.
8852
8853 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8854
8855 * completer.h (complete): New function.
8856 * completer.c (complete): Likewise.
8857 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8858 function defined in completer.h.
8859
8860 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8861
8862 * MAINTAINERS (Write After Approval): Add myself.
8863
8864 2019-05-17 Tom de Vries <tdevries@suse.de>
8865
8866 PR gdb/24094
8867 * dwarf2read.c (struct cu_partial_die_info): New struct.
8868 (find_partial_die): Return cu_partial_die_info.
8869 (partial_die_parent_scope, guess_partial_die_structure_name)
8870 (partial_die_info::fixup): Handle new return type of find_partial_die.
8871
8872 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8873
8874 PR breakpoints/24541
8875 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8876 "std::string", simplifying the algorithm.
8877
8878 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8879
8880 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8881 (stap_static_probe_ops::get_probes): Likewise.
8882
8883 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8884
8885 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8886 '-')" and "else if".
8887 (stap_parse_single_operand): Join checks for
8888 "gdbarch_stap_parse_special_token_p" and
8889 "gdbarch_stap_parse_special_token" in the same "if" statement.
8890 Invert check when verifying for operation on register
8891 displacement.
8892
8893 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8894
8895 * stap-probe.c (stap_get_opcode): Update comment.
8896 (stap_get_expected_argument_type): Likewise.
8897 (handle_stap_probe): Likewise.
8898
8899 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8900
8901 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8902 return type to 'bool'. Adjust comment. Use 'bool' when
8903 appropriate.
8904 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8905 * stap-probe.c (stap_parse_argument_1): Likewise.
8906 (stap_is_operator): Likewise.
8907 (stap_is_generic_prefix): Likewise.
8908 (stap_is_register_prefix): Likewise.
8909 (stap_is_register_indirection_prefix): Likewise.
8910 (stap_is_integer_prefix): Likewise.
8911 (stap_generic_check_suffix): Likewise.
8912 (stap_check_integer_suffix): Likewise.
8913 (stap_check_register_suffix): Likewise.
8914 (stap_check_register_indirection_suffix): Likewise.
8915 (stap_parse_register_operand): Likewise.
8916 (stap_parse_single_operand): Likewise.
8917 (stap_parse_argument_1): Likewise.
8918 (stap_probe::get_argument_count): Likewise.
8919 (stap_is_operator): Likewise.
8920
8921 2019-05-16 Tom Tromey <tromey@adacore.com>
8922
8923 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8924 keyword to foreach.
8925
8926 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8927
8928 * linux-thread-db.c (try_thread_db_load_1): Change return type
8929 to bool.
8930 (try_thread_db_load): Likewise.
8931 (try_thread_db_load_from_pdir_1): Likewise.
8932 (try_thread_db_load_from_pdir): Likewise.
8933 (try_thread_db_load_from_sdir): Likewise.
8934 (try_thread_db_load_from_dir): Likewise.
8935 (thread_db_load_search): Likewise.
8936 (has_libpthread): Likewise.
8937 (thread_db_load): Likewise.
8938
8939 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8940
8941 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8942 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8943 NULL, and complain/return if that's the case.
8944
8945 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8946
8947 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8948 (advance, posn, abstract_read_memory): New functions.
8949 [struct mem_read_abstraction]: New struct.
8950 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8951
8952 2019-05-14 Tom Tromey <tromey@adacore.com>
8953
8954 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8955 value is not lval_memory.
8956
8957 2019-05-14 Tom Tromey <tromey@adacore.com>
8958
8959 * solib.c (info_sharedlibrary_command): Style the file name.
8960
8961 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8962
8963 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8964 (aarch64_vnv_type): Likewise.
8965 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8966 * common/tdesc.c: Likewise.
8967 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8968 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8969 * features/aarch64-fpu.xml: Add ieee half view.
8970 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8971 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8972 * gdbtypes.h (struct builtin_type): Likewise.
8973 (struct objfile_type): Likewise.
8974
8975 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8976
8977 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8978 typo.
8979 * location.h (string_to_event_location): Likewise.
8980
8981 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8982
8983 GDB 8.3 released.
8984
8985 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8986
8987 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8988 New variable declaration.
8989 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8990 New variable.
8991 (print_one_breakpoint): Use ui_out::test_flags and new global
8992 variable to compute use_fixed_output.
8993 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8994 Remove.
8995 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8996 (mi_multi_location_breakpoint_output_fixed): Remove.
8997 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8998 new variable.
8999 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9000 fix_multi_location_breakpoint_output flag if version >= 3.
9001 * ui-out.h (enum ui_out_flag)
9002 <fix_multi_location_breakpoint_output>: New enumerator.
9003
9004 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9005
9006 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9007
9008 2019-05-10 Tom Tromey <tromey@adacore.com>
9009
9010 * ada-lang.c (catch_ada_completer): New function.
9011 (_initialize_ada_language): Use it.
9012
9013 2019-05-10 Tom Tromey <tromey@adacore.com>
9014
9015 * thread.c (print_thread_info): Make "requested_threads" const.
9016 * gdbthread.h (print_thread_info): Make "requested_threads"
9017 const.
9018 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9019 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9020
9021 2019-05-08 Tom Tromey <tom@tromey.com>
9022
9023 * gdbtypes.c (objfile_type_data): Change type.
9024 (objfile_type, _initialize_gdbtypes): Update.
9025
9026 2019-05-08 Tom Tromey <tom@tromey.com>
9027
9028 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9029 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9030 (_initialize_dwarf2_frame): Update.
9031
9032 2019-05-08 Tom Tromey <tom@tromey.com>
9033
9034 * objc-lang.c (objc_objfile_data): Change type.
9035 (find_methods): Update.
9036 (_initialize_objc_lang): Remove.
9037
9038 2019-05-08 Tom Tromey <tom@tromey.com>
9039
9040 * stabsread.c (rs6000_builtin_type_data): Change type.
9041 (rs6000_builtin_type, _initialize_stabsread): Update.
9042
9043 2019-05-08 Tom Tromey <tom@tromey.com>
9044
9045 * mips-tdep.c (mips_pdr_data): Remove.
9046 (_initialize_mips_tdep): Update.
9047
9048 2019-05-08 Tom Tromey <tom@tromey.com>
9049
9050 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9051 (hppa_init_objfile_priv_data, read_unwind_info)
9052 (find_unwind_entry, _initialize_hppa_tdep): Update.
9053
9054 2019-05-08 Tom Tromey <tom@tromey.com>
9055
9056 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9057 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9058 on obstack.
9059 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9060
9061 2019-05-08 Tom Tromey <tom@tromey.com>
9062
9063 * mdebugread.c (basic_type_data): Change type.
9064 (basic_type, _initialize_mdebugread): Update.
9065
9066 2019-05-08 Tom Tromey <tom@tromey.com>
9067
9068 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9069
9070 2019-05-08 Tom Tromey <tom@tromey.com>
9071
9072 * nto-tdep.c (nto_inferior_data_reg): Change type.
9073 (nto_inferior_data): Update.
9074 (nto_inferior_data_cleanup, nto_new_inferior_data)
9075 (_initialize_nto_tdep): Remove.
9076 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9077
9078 2019-05-08 Tom Tromey <tom@tromey.com>
9079
9080 * ada-lang.c (struct ada_inferior_data): Add initializers.
9081 (ada_inferior_data): Change type.
9082 (ada_inferior_data_cleanup): Remove.
9083 (get_ada_inferior_data, ada_inferior_exit)
9084 (struct ada_pspace_data): Add initializers, destructor.
9085 (ada_pspace_data_handle): Change type.
9086 (get_ada_pspace_data): Update.
9087 (ada_pspace_data_cleanup): Remove.
9088
9089 2019-05-08 Tom Tromey <tom@tromey.com>
9090
9091 * coffread.c (struct coff_symfile_info): Add initializers.
9092 (coff_objfile_data_key): Move lower. Change type.
9093 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9094 Update.
9095 (coff_free_info): Remove.
9096
9097 2019-05-08 Tom Tromey <tom@tromey.com>
9098
9099 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9100 (fbsd_pspace_data_handle): Move lower. Change type.
9101 (get_fbsd_pspace_data): Update.
9102 (fbsd_pspace_data_cleanup): Remove.
9103 (_initialize_fbsd_tdep): Update.
9104
9105 2019-05-08 Tom Tromey <tom@tromey.com>
9106
9107 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9108 (get_ada_tasks_pspace_data): Update.
9109 (ada_tasks_pspace_data_cleanup): Remove.
9110 (_initialize_tasks): Update.
9111 (ada_tasks_inferior_data_handle): Change type.
9112 (get_ada_tasks_inferior_data): Update.
9113 (ada_tasks_inferior_data_cleanup): Remove.
9114 (struct ada_tasks_pspace_data): Add initializers.
9115
9116 2019-05-08 Tom Tromey <tom@tromey.com>
9117
9118 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9119 * symfile-debug.c (debug_sym_get_probes): Change type.
9120 * stap-probe.c (handle_stap_probe):
9121 (stap_static_probe_ops::get_probes): Change type.
9122 * probe.h (class static_probe_ops) <get_probes>: Change type.
9123 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9124 (parse_probes_in_pspace): Update.
9125 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9126 Update.
9127 (any_static_probe_ops::get_probes): Change type.
9128 * elfread.c (elfread_data): New typedef.
9129 (probe_key): Change type.
9130 (elf_get_probes): Likewise. Update.
9131 (probe_key_free): Remove.
9132 (_initialize_elfread): Update.
9133 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9134 Change type.
9135 (dtrace_process_dof_probe, dtrace_process_dof)
9136 (dtrace_static_probe_ops::get_probe): Change type.
9137
9138 2019-05-08 Tom Tromey <tom@tromey.com>
9139
9140 * xcoffread.c (struct xcoff_symfile_info): Rename from
9141 coff_symfile_info. Add initializers.
9142 (xcoff_objfile_data_key): Move lower. Change type.
9143 (XCOFF_DATA): Rewrite.
9144 (xcoff_free_info): Remove.
9145 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9146 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9147 (xcoff_initial_scan): Update.
9148
9149 2019-05-08 Tom Tromey <tom@tromey.com>
9150
9151 * solib-svr4.c (struct svr4_info): Add initializers and
9152 destructor.
9153 <probes_table>: Now an htab_up.
9154 (solib_svr4_pspace_data): Change type.
9155 (free_probes_table): Simplify.
9156 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9157 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9158 (probes_table_remove_objfile_probes, register_solib_event_probe)
9159 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9160 (_initialize_svr4_solib): Update.
9161
9162 2019-05-08 Tom Tromey <tom@tromey.com>
9163
9164 * remote.c (remote_pspace_data): Change type.
9165 (remote_pspace_data_cleanup): Remove.
9166 (get_remote_exec_file, set_pspace_remote_exec_file)
9167 (_initialize_remote): Update.
9168
9169 2019-05-08 Tom Tromey <tom@tromey.com>
9170
9171 * breakpoint.c (breakpoint_objfile_key): Change type.
9172 (get_breakpoint_objfile_data): Update.
9173 (free_breakpoint_objfile_data): Remove.
9174 (_initialize_breakpoint): Update.
9175
9176 2019-05-08 Tom Tromey <tom@tromey.com>
9177
9178 * linux-tdep.c (struct linux_info): Add initializers.
9179 (linux_inferior_data): Move. Change type.
9180 (invalidate_linux_cache_inf): Update.
9181 (linux_inferior_data_cleanup): Remove.
9182 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9183
9184 2019-05-08 Tom Tromey <tom@tromey.com>
9185
9186 * auxv.c (auxv_inferior_data): Move. Change type.
9187 (auxv_inferior_data_cleanup): Remove.
9188 (invalidate_auxv_cache_inf): Rewrite.
9189 (get_auxv_inferior_data, _initialize_auxv): Update.
9190
9191 2019-05-08 Tom Tromey <tom@tromey.com>
9192
9193 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9194 (symfile_debug_objfile_data_key): Change type.
9195 (symfile_debug_installed, debug_qf_has_symbols)
9196 (debug_qf_find_last_source_symtab)
9197 (debug_qf_forget_cached_source_info)
9198 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9199 (debug_qf_print_stats, debug_qf_dump)
9200 (debug_qf_expand_symtabs_for_function)
9201 (debug_qf_expand_all_symtabs)
9202 (debug_qf_expand_symtabs_with_fullname)
9203 (debug_qf_map_matching_symbols)
9204 (debug_qf_expand_symtabs_matching)
9205 (debug_qf_find_pc_sect_compunit_symtab)
9206 (debug_qf_map_symbol_filenames)
9207 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9208 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9209 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9210 (debug_sym_read_linetable, debug_sym_relocate): Update.
9211 (symfile_debug_free_objfile): Remove.
9212 (install_symfile_debug_logging, _initialize_symfile_debug):
9213 Update.
9214
9215 2019-05-08 Tom Tromey <tom@tromey.com>
9216
9217 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9218 allocate_on_obstack.
9219 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9220 (get_dwarf2_per_objfile): Update.
9221 (set_dwarf2_per_objfile): Remove.
9222 (dwarf2_has_info, dwarf2_get_section_info): Update.
9223 (dwarf2_free_objfile): Remove.
9224 (_initialize_dwarf2_read): Update.
9225
9226 2019-05-08 Tom Tromey <tom@tromey.com>
9227
9228 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9229 initializers.
9230 <unsupported_script_warning_printed,
9231 script_not_found_warning_printed>: Now bool.
9232 (auto_load_pspace_data): Change type.
9233 (~auto_load_pspace_info): Rename from
9234 auto_load_pspace_data_cleanup.
9235 (get_auto_load_pspace_data, init_loaded_scripts_info)
9236 (clear_section_scripts, maybe_print_unsupported_script_warning)
9237 (maybe_print_script_not_found_warning, _initialize_auto_load):
9238 Update.
9239
9240 2019-05-08 Tom Tromey <tom@tromey.com>
9241
9242 * objfiles.c (objfile_pspace_info): Add destructor and
9243 initializers.
9244 (objfiles_pspace_data): Change type.
9245 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9246 (get_objfile_pspace_data): Update.
9247 (objfiles_bfd_data): Change type.
9248 (get_objfile_bfd_data): Update.
9249 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9250
9251 2019-05-08 Tom Tromey <tom@tromey.com>
9252
9253 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9254 Change type.
9255 (get_catch_syscall_inferior_data): Update.
9256 (catch_syscall_inferior_data_cleanup): Remove.
9257 (_initialize_break_catch_syscall): Update.
9258
9259 2019-05-08 Tom Tromey <tom@tromey.com>
9260
9261 * inflow.c (struct terminal_info): Add destructor and
9262 initializers.
9263 (inflow_inferior_data): Change type.
9264 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9265 (get_inflow_inferior_data, inflow_inferior_exit)
9266 (swap_terminal_info, _initialize_inflow): Update.
9267
9268 2019-05-08 Tom Tromey <tom@tromey.com>
9269
9270 * target-dcache.c (target_dcache_cleanup): Remove.
9271 (target_dcache_aspace_key): Change type.
9272 (target_dcache_init_p, target_dcache_invalidate)
9273 (target_dcache_get, target_dcache_get_or_init)
9274 (_initialize_target_dcache): Update.
9275 * dcache.h (struct dcache_deleter): New.
9276
9277 2019-05-08 Tom Tromey <tom@tromey.com>
9278
9279 * symtab.c (struct symbol_cache): Add destructor and
9280 initializers.
9281 (symbol_cache_key): Move. Change type.
9282 (make_symbol_cache, free_symbol_cache): Remove.
9283 (get_symbol_cache): Update.
9284 (symbol_cache_cleanup): Remove.
9285 (ALL_PSPACES, symbol_cache_flush)
9286 (maintenance_print_symbol_cache)
9287 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9288 Update.
9289
9290 2019-05-08 Tom Tromey <tom@tromey.com>
9291
9292 * symtab.c (struct main_info): Add destructor and initializers.
9293 (main_progspace_key): Move. Change type.
9294 (get_main_info): Update.
9295 (main_info_cleanup): Remove.
9296 (_initialize_symtab): Update.
9297
9298 2019-05-08 Tom Tromey <tom@tromey.com>
9299
9300 * registry.h (DECLARE_REGISTRY): Define the _key class.
9301
9302 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9303
9304 * NEWS: Merge two 'New commands' sections.
9305
9306 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9307
9308 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9309 parameter and use Ada language definition instead.
9310 (ada_val_print_ptr): Remove unused language parameter.
9311 (ada_val_print_num): Remove language parameter and use Ada language
9312 definition instead.
9313 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9314 parameter.
9315 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9316 parameter and use Ada language definition instead.
9317 (ada_val_print_1): Update all ada_val_print_xxx calls.
9318 Remove language parameter.
9319 (ada_val_print): Update ada_val_print_1 call.
9320
9321 2019-05-08 Tom Tromey <tromey@adacore.com>
9322
9323 * remote.c (remote_hw_watchpoint_limit)
9324 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9325 Now static.
9326
9327 2019-05-08 Tom Tromey <tromey@adacore.com>
9328
9329 * maint.c (_initialize_maint_cmds): Move initialization code to
9330 remote.c.
9331 (watchdog, show_watchdog): Move to remote.c.
9332 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9333 "watchdog" static.
9334 (_initialize_remote): Move initialization code from maint.c.
9335 * defs.h (watchdog): Don't declare.
9336
9337 2019-05-08 Tom Tromey <tromey@adacore.com>
9338
9339 * tui/tui-interp.c: Include main.h.
9340 * interps.c: Include main.h.
9341 * main.h (interpreter_p): Declare.
9342 * defs.h (interpreter_p): Don't declare.
9343
9344 2019-05-08 Tom Tromey <tromey@adacore.com>
9345
9346 * dwarf2loc.c: Include dwarf2read.h.
9347 * defs.h (read_unsigned_leb128): Don't declare.
9348 * dwarf2read.h (read_unsigned_leb128): Declare.
9349
9350 2019-05-08 Tom Tromey <tromey@adacore.com>
9351
9352 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9353 method.
9354
9355 2019-05-08 Tom Tromey <tromey@adacore.com>
9356
9357 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9358 when no wrap column is set.
9359
9360 2019-05-08 Tom Tromey <tromey@adacore.com>
9361
9362 * c-lang.c (c_get_string): Handle non-C-style arrays.
9363
9364 2019-05-08 Tom Tromey <tromey@adacore.com>
9365
9366 * typeprint.c (print_offset_data::update): Print the bit offset,
9367 not the number of bits remaining.
9368
9369 2019-05-08 Tom Tromey <tromey@adacore.com>
9370
9371 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9372 padding at end of comment.
9373
9374 2019-05-08 Tom Tromey <tromey@adacore.com>
9375
9376 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9377 Compare main types.
9378
9379 2019-05-06 Tom Tromey <tom@tromey.com>
9380
9381 * common/scoped_mmap.c: Include common-defs.h.
9382 * common/scoped_mmap.h: Don't include config.h.
9383
9384 2019-05-04 Tom Tromey <tom@tromey.com>
9385
9386 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9387 (struct aarch64_call_info): Add initializers.
9388 <si>: Now a std::vector.
9389 (pass_on_stack, aarch64_push_dummy_call): Update.
9390
9391 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9392 Tom Tromey <tom@tromey.com>
9393
9394 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9395 (ppc_threads): Now a std::vector. Now static.
9396 (hwdebug_find_thread_points_by_tid)
9397 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9398 Update.
9399
9400 2019-05-04 Tom Tromey <tom@tromey.com>
9401
9402 * arc-tdep.c (arc_tdesc_init): Return bool.
9403
9404 2019-05-04 Tom Tromey <tom@tromey.com>
9405
9406 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9407 Use gdb_assert_not_reached.
9408
9409 2019-05-04 Tom Tromey <tom@tromey.com>
9410
9411 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9412 "false".
9413
9414 2019-05-04 Tom Tromey <tom@tromey.com>
9415
9416 * arc-tdep.c (arc_tdesc_init): Use bool.
9417
9418 2019-05-04 Tom Tromey <tom@tromey.com>
9419
9420 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9421
9422 2019-05-04 Tom Tromey <tom@tromey.com>
9423
9424 * cli/cli-cmds.c (valid_command_p): Return bool.
9425
9426 2019-05-04 Tom Tromey <tom@tromey.com>
9427
9428 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9429 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9430
9431 2019-05-04 Raul Tambre <raul@tambre.ee>
9432
9433 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9434 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9435 operator for comparison.
9436
9437 2019-05-04 Tom Tromey <tom@tromey.com>
9438
9439 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9440 (lookup_partial_symbol, print_partial_symbols)
9441 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9442 (psymbol_compare): Update.
9443 (add_psymbol_to_bcache): Clear the entire psymbol.
9444 (maintenance_check_psymtabs): Update.
9445 * psympriv.h (struct partial_symbol): Don't derive from
9446 general_symbol_info.
9447 <obj_section, unrelocated_address, address,
9448 set_unrelocated_address>: Update.
9449 <ginfo>: New member.
9450 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9451 (debug_names::write_psymbols): Update.
9452
9453 2019-05-04 Tom de Vries <tdevries@suse.de>
9454
9455 * contrib/cc-with-tweaks.sh: Support -n arg.
9456
9457 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9458
9459 * corelow.c (core_target::detach): Ensure frame cache and
9460 register caches are cleared.
9461 inferior.c (exit_inferior_1): Likewise.
9462
9463 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9464 Tom Tromey <tom@tromey.com>
9465
9466 * dictionary.c (collate_pending_symbols_by_language): Remove
9467 "struct" from foreach.
9468 * symtab.c (lookup_global_symbol_from_objfile)
9469 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9470 foreach.
9471 * ser-tcp.c (net_open): Remove "struct" from foreach.
9472 * objfiles.c (objfile_relocate, objfile_rebase)
9473 (objfile_has_symbols): Remove "struct" from foreach.
9474 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9475 from foreach.
9476 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9477 foreach.
9478 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9479 "struct" from foreach.
9480 * ada-lang.c (create_excep_cond_exprs)
9481 (ada_exception_catchpoint_cond_string): Remove "struct" from
9482 foreach.
9483
9484 2019-05-03 Tom Tromey <tromey@adacore.com>
9485
9486 * ada-exp.y (convert_char_literal): Check suffix of each
9487 enumerator.
9488
9489 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9490
9491 PR ada/21406:
9492 * ada-exp.y (yywrap): Don't define.
9493 * ada-lex.l (%option): Add noyywrap
9494 (yywrap): Remove.
9495
9496 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9497
9498 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9499 _WIN32_WINNT to the XP level, unless already defined to a higher
9500 level.
9501
9502 * unittests/parse-connection-spec-selftests.c:
9503 * ser-tcp.c:
9504 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9505 override.
9506
9507 * symfile.c (find_separate_debug_file): Remove colon from the
9508 drive spec of DOS/Windows file names of the target, so that the
9509 file name produced from DEBUGDIR and the target's directory will
9510 be valid on DOS/Windows systems.
9511
9512 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9513
9514 * rust-lang.c (val_print_struct): Handle printing structures
9515 containing strings.
9516
9517 2019-05-02 Tom Tromey <tromey@adacore.com>
9518
9519 * valarith.c (_initialize_valarith): Remove.
9520
9521 2019-05-01 Tom Tromey <tromey@adacore.com>
9522
9523 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9524 bitfields.
9525
9526 2019-05-01 Tom Tromey <tromey@adacore.com>
9527
9528 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9529 for big-endian copies.
9530
9531 2019-04-30 Ali Tamur <tamur@google.com>
9532 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9533 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9534 (read_3_bytes): New function.
9535
9536 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9537
9538 * windows-nat.c (main_thread_id): Delete.
9539 (handle_output_debug_string): Replace main_thread_id by
9540 current_event.dwThreadId.
9541 (fake_create_process): Likewise.
9542 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9543 Do not set main_thread_id.
9544 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9545 current_event.dwThreadId.
9546 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9547
9548 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9549
9550 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9551 Use current_event.dwThreadId instead of main_thread_id.
9552
9553 2019-04-30 Tom Tromey <tromey@adacore.com>
9554
9555 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9556 (create_excep_cond_exprs): Iterate over program spaces.
9557 (ada_exception_catchpoint_cond_string): Examine all minimal
9558 symbols for exception types.
9559
9560 2019-04-30 Tom Tromey <tromey@adacore.com>
9561
9562 PR c++/24470:
9563 * dwarf2read.c (process_structure_scope): Handle case where type
9564 has template parameters but no symbol was created.
9565
9566 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9567 Chris January <chris.january@arm.com>
9568
9569 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9570 qualifier.
9571 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9572
9573 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9574
9575 * f-typeprint.c (f_print_type): Update rules for printing
9576 whitespace.
9577 (f_type_print_varspec_suffix): Likewise.
9578
9579 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9580 Chris January <chris.january@arm.com>
9581
9582 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9583 function arguments.
9584
9585 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9586
9587 * f-lang.c (build_fortran_types): Change name of void type to
9588 lower case.
9589 * f-typeprint.c (f_type_print_base): Print the name of the void
9590 type, rather than a fixed string.
9591 * f-valprint.c (f_decorations): Use lower case void string.
9592
9593 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9594 Chris January <chris.january@arm.com>
9595
9596 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9597 types for Fortran.
9598
9599 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9600 Chris January <chris.january@arm.com>
9601 David Lecomber <david.lecomber@arm.com>
9602
9603 * f-exp.y (BINOP_INTRINSIC): New token.
9604 (exp): New parser rule handling BINOP_INTRINSIC.
9605 (f77_keywords): Add new builtin procedures.
9606 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9607 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9608 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9609 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9610 (print_unop_subexp_f): New function.
9611 (print_binop_subexp_f): New function.
9612 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9613 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9614 (dump_subexp_body_f): Likewise.
9615 (operator_check_f): Likewise.
9616 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9617 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9618
9619 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9620
9621 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9622 UNOP_KIND.
9623 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9624 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9625 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9626 (operator_length_f): New fuction.
9627 (print_subexp_f): New function.
9628 (op_name_f): New function.
9629 (dump_subexp_body_f): New function.
9630 (operator_check_f): New function.
9631 (exp_descriptor_f): Replace standard expression handling functions
9632 with new functions.
9633 * gdb/fortran-operator.def: New file.
9634 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9635 * gdb/std-operator.def: Remove UNOP_KIND.
9636
9637 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9638
9639 * std-operator.def: Remove unbalanced, stray double quote
9640 character.
9641
9642 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9643 Chris January <chris.january@arm.com>
9644 Daniel Everett <daniel.everett@arm.com>
9645 Nick Forrington <nick.forrington@arm.com>
9646 Richard Bunt <richard.bunt@arm.com>
9647
9648 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9649 of depth when printing anonymous structs or unions.
9650 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9651 Don't print either the top-level value, or the children if the
9652 max-depth is exceeded.
9653 (ppscm_print_children): When printing the key of a map, allow one
9654 extra level of depth.
9655 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9656 print either the top-level value, or the children if the max-depth
9657 is exceeded.
9658 (print_children): When printing the key of a map, allow one extra
9659 level of depth.
9660 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9661 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9662 (user_print_options): Initialise max_depth field.
9663 (val_print_scalar_or_string_type_p): New function.
9664 (val_print): Check to see if the max depth has been reached.
9665 (val_print_check_max_depth): Define new function.
9666 (show_print_max_depth): New function.
9667 (_initialize_valprint): Add 'print max-depth' option.
9668 * valprint.h (struct value_print_options) <max_depth>: New field.
9669 (val_print_check_max_depth): Declare new function.
9670 * NEWS: Document new feature.
9671
9672 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9673
9674 * ada-lang.c (ada_language_defn): Initialise new field.
9675 * c-lang.c (c_is_string_type_p): New function.
9676 (c_language_defn): Initialise new field.
9677 (cplus_language_defn): Initialise new field.
9678 (asm_language_defn): Initialise new field.
9679 (minimal_language_defn): Initialise new field.
9680 * c-lang.h (c_is_string_type_p): Declare new function.
9681 * d-lang.c (d_language_defn): Initialise new field.
9682 * f-lang.c (f_is_string_type_p): New function.
9683 (f_language_defn): Initialise new field.
9684 * go-lang.c (go_is_string_type_p): New function.
9685 (go_language_defn): Initialise new field.
9686 * language.c (default_is_string_type_p): New function.
9687 (unknown_language_defn): Initialise new field.
9688 (auto_language_defn): Initialise new field.
9689 * language.h (struct language_defn) <la_is_string_type_p>: New
9690 member variable.
9691 (default_is_string_type_p): Declare new function.
9692 * m2-lang.c (m2_language_defn): Initialise new field.
9693 * objc-lang.c (objc_language_defn): Initialise new field.
9694 * opencl-lang.c (opencl_language_defn): Initialise new field.
9695 * p-lang.c (pascal_is_string_type_p): New function.
9696 (pascal_language_defn): Initialise new field.
9697 * rust-lang.c (rust_is_string_type_p): New function.
9698 (rust_language_defn): Initialise new field.
9699
9700 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9701
9702 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9703 New field.
9704 * ada-lang.c (ada_language_defn): Initialise new field.
9705 * c-lang.c (c_language_defn): Likewise.
9706 (cplus_language_defn): Likewise.
9707 (asm_language_defn): Likewise.
9708 (minimal_language_defn): Likewise.
9709 * d-lang.c (d_language_defn): Likewise.
9710 * f-lang.c (f_language_defn): Likewise.
9711 * go-lang.c (go_language_defn): Likewise.
9712 * language.c (unknown_language_defn): Likewise.
9713 (auto_language_defn): Likewise.
9714 * m2-lang.c (m2_language_defn): Likewise.
9715 * objc-lang.c (objc_language_defn): Likewise.
9716 * opencl-lang.c (opencl_language_defn): Likewise.
9717 * p-lang.c (pascal_language_defn): Likewise.
9718 * rust-lang.c (rust_language_defn): Likewise.
9719
9720 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9721
9722 * ada-lang.c (ada_is_character_type): Change return type to bool.
9723 (ada_is_string_type): Likewise.
9724 * ada-lang.h (ada_is_character_type): Update declaration
9725 (ada_is_string_type): Likewise.
9726
9727 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9728
9729 Support style in 'frame|thread apply'
9730
9731 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9732 * record.c (record_start, record_stop): Update callers of
9733 execute_command_to_string with false.
9734 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9735 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9736 methods.
9737 (class string_file): New constructor with term_out parameter.
9738 Override methods term_out and can_emit_style_escape. New member
9739 term_out.
9740 (class stdio_file): Override can_emit_style_escape.
9741 (class tee_file): Override term_out and can_emit_style_escape.
9742 * utils.h (can_emit_style_escape): Remove.
9743 * utils.c (can_emit_style_escape): Likewise.
9744 Update all callers of can_emit_style_escape (SOMESTREAM) to
9745 SOMESTREAM->can_emit_style_escape.
9746 * source-cache.c (source_cache::get_source_lines): Likewise.
9747 * stack.c (frame_apply_command_count): Call execute_command_to_string
9748 passing the term_out characteristic of the current gdb_stdout.
9749 * thread.c (thr_try_catch_cmd): Likewise.
9750 * top.c (execute_command_to_string): pass term_out parameter
9751 to construct the string_file for the command output.
9752 * ui-file.c (term_cli_styling): New function (most code moved
9753 from utils.c can_emit_style_escape).
9754 (string_file::string_file, string_file::can_emit_style_escape,
9755 stdio_file::can_emit_style_escape, tee_file::term_out,
9756 tee_file::can_emit_style_escape): New functions.
9757
9758 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9759
9760 * NEWS: Mention the new set|show may-call-functions.
9761 * infcall.c (may_call_functions_p): New variable.
9762 (show_may_call_functions_p): New function.
9763 (call_function_by_hand_dummy): Throws an error if not
9764 may-call-functions.
9765 (_initialize_infcall): Call add_setshow_boolean_cmd for
9766 may-call-functions.
9767
9768 2019-04-25 Keith Seitz <keiths@redhat.com>
9769
9770 PR c++/24367
9771 * cp-support.c (inspect_type): Don't attempt substitutions
9772 of symbol with the same name.
9773
9774 2019-04-25 Tom Tromey <tromey@adacore.com>
9775
9776 PR gdb/24475:
9777 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9778 static.
9779
9780 2019-04-25 Tom Tromey <tromey@adacore.com>
9781
9782 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9783 rvalue reference.
9784 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9785 (gdb_xml_parser::parse): Use std::move.
9786 * python/python-internal.h (gdbpy_convert_exception): Take a const
9787 reference.
9788 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9789 std::move.
9790 * python/py-utils.c (gdbpy_convert_exception): Take a const
9791 reference.
9792 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9793 Use std::move.
9794 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9795 Use std::move.
9796 * mi/mi-main.c (mi_print_exception): Take a const reference.
9797 * main.c (handle_command_errors): Take a const reference.
9798 * linespec.c (parse_linespec): Use std::move.
9799 * infcall.c (run_inferior_call): Use std::move.
9800 (call_function_by_hand_dummy): Use std::move.
9801 * exec.c (try_open_exec_file): Use std::move.
9802 * exceptions.h (exception_print, exception_fprintf)
9803 (exception_print_same): Update.
9804 * exceptions.c (print_exception, exception_print)
9805 (exception_fprintf, exception_print_same): Change parameters to
9806 const reference.
9807 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9808 * common/new-op.c: Use std::move.
9809 * common/common-exceptions.h (struct gdb_exception): Add move
9810 constructor.
9811 (struct gdb_exception_error, struct gdb_exception_quit, struct
9812 gdb_quit_bad_alloc): Change constructor to move constructor.
9813 (throw_exception): Change parameter to rvalue reference.
9814 * common/common-exceptions.c (throw_exception): Take rvalue
9815 reference.
9816 * cli/cli-interp.c (safe_execute_command): Use std::move.
9817 * breakpoint.c (insert_bp_location, location_to_sals): Use
9818 std::move.
9819
9820 2019-04-25 Tom Tromey <tromey@adacore.com>
9821
9822 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9823 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9824 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9825 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9826 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9827 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9828 guile/scm-value.c: Use unpack.
9829 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9830 gdbscm_gdb_exception.
9831 (gdbscm_throw_gdb_exception): Likewise.
9832 (struct gdbscm_gdb_exception): New.
9833 (unpack): New function.
9834 (gdbscm_wrap): Use unpack.
9835
9836 2019-04-25 Tom Tromey <tromey@adacore.com>
9837
9838 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9839 (gdb_rl_callback_handler): Use std::move.
9840 * common/common-exceptions.h (struct gdb_exception): Add move
9841 assignment operator.
9842 (throw_exception_sjlj): Change "exception" to const reference.
9843 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9844 (throw_exception_sjlj): Change "exception" to const reference.
9845
9846 2019-04-25 Tom Tromey <tromey@adacore.com>
9847
9848 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9849 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9850 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9851 Update.
9852 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9853 Update.
9854 * mi/mi-interp.c (mi_interp::exec): Update.
9855 * linespec.c (parse_linespec): Update.
9856 * infcall.c (run_inferior_call): Update.
9857 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9858 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9859 (gdbscm_lookup_global_symbol): Update.
9860 * guile/scm-param.c (gdbscm_parameter_value): Update.
9861 * guile/scm-frame.c (gdbscm_frame_read_register)
9862 (gdbscm_frame_read_var): Update.
9863 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9864 * exec.c (try_open_exec_file): Update.
9865 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9866 (gdb_rl_callback_handler): Update.
9867 * common/common-exceptions.h (exception_none): Don't declare.
9868 * common/common-exceptions.c (exception_none): Don't define.
9869 (struct catcher) <exception>: Update.
9870 * cli/cli-interp.c (safe_execute_command): Update.
9871 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9872
9873 2019-04-25 Ali Tamur <tamur@google.com>
9874
9875 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9876 (read_attribute_value): Likewise.
9877 (dwarf2_read_addr_index): Update comment.
9878 (read_str_index): Add DW_FORM_strx.
9879 (dwarf2_string_attr): Likewise.
9880 (dwarf2_const_value_attr): Likewise.
9881 (dump_die_shallow): Likewise.
9882 (dwarf2_fetch_constant_bytes): Likewise.
9883 (skip_form_bytes): Likewise.
9884 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9885
9886 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9887
9888 PR corefiles/11608
9889 PR corefiles/18187
9890 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9891 OFFSET. Verify if current mapping contains an ELF header.
9892 (linux_find_memory_regions_full): Adjust call to
9893 dump_mapping_p.
9894
9895 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9896 Kang Li <kanglictf@gmail.com>
9897
9898 PR gdb/21600
9899
9900 * dwarf2-frame.c (read_initial_length): Be consistent about using
9901 unsigned representation of length.
9902 (decode_frame_entry_1): Likewise. Check for wraparound of
9903 end pointer as well as buffer overflow.
9904
9905 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9906
9907 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9908 "vq".
9909
9910 2019-04-24 Tom Tromey <tromey@adacore.com>
9911
9912 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9913
9914 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9915
9916 * s12z-tdep.c (s12z_unwind_pc): Delete.
9917 (s12z_unwind_sp): Delete.
9918 (s12z_gdbarch_init): Don't register deleted functions with
9919 gdbarch.
9920
9921 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9922
9923 * rl78-tdep.c (rl78_unwind_sp): Delete.
9924 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9925
9926 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9927
9928 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9929 (xstormy16_unwind_pc): Delete.
9930 (xstormy16_dummy_id): Delete.
9931 (xstormy16_gdbarch_init): Don't register deleted functions with
9932 gdbarch.
9933
9934 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9935
9936 * vax-tdep.c (vax_unwind_pc): Delete.
9937 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9938
9939 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9940
9941 * v850-tdep.c (v850_unwind_sp): Delete.
9942 (v850_unwind_pc): Delete.
9943 (v850_dummy_id): Delete.
9944 (v850_gdbarch_init): Don't register deleted functions with
9945 gdbarch.
9946
9947 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9948
9949 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9950 (tilegx_unwind_pc): Delete.
9951 (tilegx_unwind_dummy_id): Delete.
9952 (tilegx_gdbarch_init): Don't register deleted functions with
9953 gdbarch.
9954
9955 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9956
9957 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9958 (tic6x_dummy_id): Delete.
9959 (tic6x_gdbarch_init): Don't register deleted functions with
9960 gdbarch.
9961
9962 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9963
9964 * sparc-tdep.c (sparc_unwind_pc): Delete.
9965 (sparc32_gdbarch_init): Don't register deleted function with
9966 gdbarch.
9967
9968 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9969
9970 * sh-tdep.c (sh_unwind_sp): Delete.
9971 (sh_unwind_pc): Delete.
9972 (sh_dummy_id): Delete.
9973 (sh_gdbarch_init): Don't register deleted functions with
9974 gdbarch.
9975
9976 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9977
9978 * score-tdep.c (score_unwind_sp): Delete.
9979 (score_unwind_pc): Delete.
9980 (score_dummy_id): Delete.
9981 (score_gdbarch_init): Don't register deleted functions with
9982 gdbarch.
9983
9984 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9985
9986 * rx-tdep.c (rx_unwind_pc): Delete.
9987 (rx_unwind_sp): Delete.
9988 (rx_dummy_id): Delete.
9989 (rx_gdbarch_init): Don't register deleted functions with
9990 gdbarch. Update comment.
9991
9992 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9993
9994 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9995 (rs6000_dummy_id): Delete.
9996 (rs6000_gdbarch_init): Don't register deleted functions with
9997 gdbarch.
9998
9999 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10000
10001 * or1k-tdep.c (or1k_dummy_id): Delete.
10002 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10003
10004 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10005
10006 * nios2-tdep.c (nios2_dummy_id): Delete.
10007 (nios2_unwind_sp): Delete.
10008 (nios2_gdbarch_init): Don't register deleted functions with
10009 gdbarch.
10010
10011 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10012
10013 * nds32-tdep.c (nds32_dummy_id): Delete.
10014 (nds32_unwind_pc): Delete.
10015 (nds32_unwind_sp): Delete.
10016 (nds32_gdbarch_init): Don't register deleted functions with
10017 gdbarch.
10018
10019 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10020
10021 * msp430-tdep.c (msp430_unwind_pc): Delete.
10022 (msp430_unwind_sp): Delete.
10023 (msp430_dummy_id): Delete.
10024 (msp430_gdbarch_init): Don't register deleted functions with
10025 gdbarch.
10026
10027 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10028
10029 * moxie-tdep.c (moxie_unwind_sp): Delete.
10030 (moxie_unwind_pc): Delete.
10031 (moxie_dummy_id): Delete.
10032 (moxie_gdbarch_init): Don't register deleted functions with
10033 gdbarch.
10034
10035 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10036
10037 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10038 (mn10300_unwind_pc): Delete.
10039 (mn10300_unwind_sp): Delete.
10040 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10041 mn10300_unwind_sp.
10042 (mn10300_frame_unwind_init): Don't register deleted functions with
10043 gdbarch.
10044
10045 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10046
10047 * mep-tdep.c (mep_unwind_pc): Delete.
10048 (mep_unwind_sp): Delete.
10049 (mep_dummy_id): Delete.
10050 (mep_gdbarch_init): Don't register deleted functions with
10051 gdbarch.
10052
10053 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10054
10055 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10056 (m68hc11_unwind_sp): Delete.
10057 (m68hc11_gdbarch_init): Don't register deleted functions with
10058 gdbarch.
10059
10060 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10061
10062 * m32r-tdep.c (m32r_unwind_sp): Delete.
10063 (m32r_unwind_pc): Delete.
10064 (m32r_dummy_id): Delete.
10065 (m32r_gdbarch_init): Don't register deleted functions with
10066 gdbarch.
10067
10068 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10069
10070 * m32c-tdep.c (m32c_unwind_pc): Delete.
10071 (m32c_unwind_sp): Delete.
10072 (m32c_dummy_id): Delete.
10073 (m32c_gdbarch_init): Don't register deleted functions with
10074 gdbarch.
10075
10076 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10077
10078 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10079 (lm32_unwind_pc): Delete.
10080 (lm32_dummy_id): Delete.
10081 (lm32_gdbarch_init): Don't register deleted functions with
10082 gdbarch.
10083
10084 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10085
10086 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10087 (iq2000_unwind_pc): Delete.
10088 (iq2000_dummy_id): Delete.
10089 (iq2000_gdbarch_init): Don't register deleted functions with
10090 gdbarch.
10091
10092 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10093
10094 * nds32-tdep.c (nds32_type_align): Delete.
10095 (nds32_push_dummy_call): Use type_align instead.
10096
10097 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10098
10099 * arm-tdep.c (arm_type_align): Only handle vector override case.
10100 (arm_push_dummy_call): Use type_align.
10101 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10102
10103 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10104
10105 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10106 case.
10107 (pass_on_stack): Use type_align.
10108 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10109 function.
10110
10111 2019-04-23 Tom Tromey <tromey@adacore.com>
10112
10113 * dwarf2read.c (line_header::file_name_at): Remove unused
10114 overload.
10115
10116 2019-04-23 Tom de Vries <tdevries@suse.de>
10117
10118 PR gdb/24438
10119 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10120 invocation.
10121
10122
10123 2019-03-27 Ali Tamur <tamur@google.com>
10124
10125 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10126 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10127 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10128 (dwarf_expr_context::get_addr_index): Likewise
10129 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10130 (symbol_needs_eval_context::get_addr_index): Likewise
10131 (disassemble_dwarf_expression): Add DW_OP_addrx
10132 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10133 (read_cutu_die_from_dwo): Update comment
10134 (skip_one_die): Add DW_FORM_addrx
10135 (read_attribute_value): Likewise
10136 (var_decode_location): Add DW_OP_addrx
10137 (dwarf2_const_value_attr): Add DW_FORM_addrx
10138 (dump_die_shallow): Likewise
10139 (dwarf2_fetch_constant_bytes): Likewise
10140 (decode_locdesc): Add DW_OP_addrx
10141 (skip_form_bytes): Add DW_FORM_addrx
10142
10143 2019-04-22 Ali Tamur <tamur@google.com>
10144
10145 * MAINTAINERS (Write After Approval): Add self.
10146
10147 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10148
10149 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10150 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10151 (open_symbol_file_object): Likewise.
10152 (svr4_default_sos): Add info parameter.
10153 (svr4_read_so_list): Likewise.
10154 (svr4_current_sos_direct): Adjust functions calls to pass down
10155 info.
10156 (svr4_current_sos_1): Add info parameter.
10157 (svr4_current_sos): Call get_svr4_info, pass info down to
10158 svr4_current_sos_1.
10159 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10160 get_svr4_info.
10161 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10162 get_svr4_info.
10163 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10164 to get_svr4_info.
10165 (probes_table_remove_objfile_probes): Likewise.
10166 (register_solib_event_probe): Add info parameter.
10167 (solist_update_incremental): Pass info parameter down to
10168 svr4_read_so_list.
10169 (disable_probes_interface): Add info parameter.
10170 (svr4_handle_solib_event): Pass current_program_space to
10171 get_svr4_info. Adjust disable_probes_interface cleanup.
10172 (svr4_create_probe_breakpoints): Add info parameter, pass it
10173 down to register_solib_event_probe.
10174 (svr4_create_solib_event_breakpoints): Add info parameter,
10175 pass it down to svr4_create_probe_breakpoints.
10176 (enable_break): Pass info down to
10177 svr4_create_solib_event_breakpoints.
10178 (svr4_solib_create_inferior_hook): Pass current_program_space to
10179 get_svr4_info.
10180 (svr4_clear_solib): Likewise.
10181
10182 2019-04-22 Pedro Alves <palves@redhat.com>
10183
10184 * solib-svr4.c (svr4_free_objfile_observer): New.
10185 (probe_and_action::objfile): New field.
10186 (probes_table_htab_remove_objfile_probes)
10187 (probes_table_remove_objfile_probes): New functions.
10188 (register_solib_event_probe): Add 'objfile' parameter. Store it
10189 in the new probe_and_action. Don't store the probe in 'lookup'.
10190 (svr4_create_probe_breakpoints): Pass objfile to
10191 register_solib_event_probe.
10192 (_initialize_svr4_solib): Register a free_objfile observer.
10193
10194 2019-04-19 Tom Tromey <tom@tromey.com>
10195
10196 * common/queue.h: Remove.
10197
10198 2019-04-19 Tom Tromey <tom@tromey.com>
10199
10200 * event-loop.c: Don't include "common/queue.h".
10201
10202 2019-04-19 Tom Tromey <tom@tromey.com>
10203
10204 * remote.c (remote_target): Use delete.
10205 * remote-notif.h: Include <list>, not "common/queue.h".
10206 (notif_client_p): Remove typedef.
10207 (remote_notif_state): Add constructor, destructor, initializer.
10208 <notif_queue>: Now a std::list.
10209 (remote_notif_state_xfree): Don't declare.
10210 * remote-notif.c (remote_notif_process, handle_notification)
10211 (remote_notif_state_allocate): Update.
10212 (~remote_notif_state): Rename from remote_notif_state_xfree.
10213
10214 2019-04-19 Tom Tromey <tom@tromey.com>
10215
10216 * symfile.c (reread_symbols): Update.
10217 * objfiles.c (objfile_register_static_link)
10218 (objfile_lookup_static_link): Update
10219 (~objfile) Don't delete static_links.
10220 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10221
10222 2019-04-19 Tom Tromey <tom@tromey.com>
10223
10224 * type-stack.h (struct type_stack) <insert>: Constify string.
10225 * type-stack.c (type_stack::insert): Constify string.
10226 * gdbtypes.h (lookup_template_type): Update.
10227 (address_space_name_to_int): Update.
10228 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10229 const.
10230 (lookup_template_type): Make name const.
10231 * c-exp.y: Update rules.
10232 (lex_one_token, classify_name, classify_inner_name)
10233 (c_print_token): Update.
10234 * p-exp.y: Update rules.
10235 (yylex): Update.
10236 * f-exp.y: Update rules.
10237 (yylex): Update.
10238 * d-exp.y: Update rules.
10239 (lex_one_token, classify_name, classify_inner_name): Update.
10240 * parse.c (write_dollar_variable, copy_name): Return std::string.
10241 * parser-defs.h (copy_name): Change return type.
10242 * m2-exp.y: Update rules.
10243 (yylex): Update.
10244 * go-exp.y (lex_one_token): Update.
10245 Update rules.
10246 (classify_unsafe_function, classify_packaged_name)
10247 (classify_name, yylex): Update.
10248
10249 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10250
10251 * configure.ac: add --enable-source-highlight switch.
10252 * configure: Regenerate.
10253 * top.c (print_gdb_version): plumb --enable-source-highlight
10254 status to "show configuration".
10255
10256 2019-04-19 Tom Tromey <tromey@adacore.com>
10257
10258 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10259 Check ADA_TYPE_P.
10260 (empty_record, ada_template_to_fixed_record_type_1)
10261 (template_to_static_fixed_type)
10262 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10263 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10264 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10265 macros.
10266
10267 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10268
10269 PR symtab/24423:
10270 * source.c (print_source_lines_base): Advance "iter" when a
10271 control character is seen.
10272
10273 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10274
10275 * inferior.h (struct infcall_suspend_state_deleter):
10276 Catch exception in destructor to avoid crash.
10277
10278 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10279
10280 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10281 close to the add_com "shell".
10282
10283 2019-04-18 Tom Tromey <tromey@adacore.com>
10284
10285 * process-stratum-target.h (class process_stratum_target)
10286 <stratum>: Add "final".
10287
10288 2019-04-17 Tom Tromey <tromey@adacore.com>
10289
10290 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10291 against nullptr before use.
10292
10293 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10294
10295 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10296
10297 2019-04-17 Jim Wilson <jimw@sifive.com>
10298 Andrew Burgess <andrew.burgess@embecosm.com>
10299
10300 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10301 code read might fail, assume 4-byte breakpoint in that case.
10302
10303 2019-04-15 Leszek Swirski <leszeks@google.com>
10304
10305 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10306 rather than a hand-rolled POD check when checking for forced MEMORY
10307 classification.
10308
10309 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10310
10311 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10312 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10313 function.
10314 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10315 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10316 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10317 declaration.
10318
10319 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10320
10321 * aarch64-linux-nat.c
10322 (aarch64_linux_nat_target::thread_architecture): Add override.
10323 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10324 each VQ.
10325
10326 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10327
10328 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10329
10330 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10331
10332 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10333 target types of size 96-bits, add some additional comments, and
10334 check that the builtin type we found was the correct size.
10335
10336 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10337
10338 * utils.c (prompt_for_continue): Don't restore the styling at the
10339 end, as applied_style has the wrong value. This fixes styling in
10340 long lists of file names that are interrupted by the "Continue?"
10341 prompt.
10342
10343 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10344
10345 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10346 * c-lang.c (c_language_defn): Likewise.
10347 (cplus_language_defn): Likewise.
10348 (asm_language_defn): Likewise.
10349 (minimal_language_defn): Likewise.
10350 * d-lang.c (d_language_defn): Likewise.
10351 * f-lang.c (f_language_defn): Likewise.
10352 * go-lang.c (go_language_defn): Likewise.
10353 * language.c (unknown_language_defn): Likewise.
10354 (auto_language_defn): Likewise.
10355 * language.h (struct language_defn): Remove la_magic field.
10356 (LANG_MAGIC): Delete.
10357 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10358 * objc-lang.c (objc_language_defn): Likewise.
10359 * opencl-lang.c (opencl_language_defn): Likewise.
10360 * p-lang.c (pascal_language_defn): Likewise.
10361 * rust-lang.c (rust_language_defn): Likewise.
10362
10363 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10364
10365 * riscv-tdep.c (riscv_type_align): New function.
10366 (riscv_type_alignment): Delete.
10367 (riscv_arg_location): Use 'type_align'.
10368 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10369
10370 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10371
10372 * gdbtypes.c (type_align): A struct with no non-static fields also
10373 has alignment of 1.
10374
10375 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10376
10377 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10378 component to 0.
10379 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10380 member.
10381 (riscv_struct_info::analyse): New implementation using new
10382 analyse_inner member function.
10383 (riscv_struct_info::field_offset): New member function.
10384 (riscv_struct_info::m_offsets): New member variable.
10385 (riscv_struct_info::analyse_inner): New private member function,
10386 takes the old implementation of riscv_struct_info::analyse but
10387 extended to track field offsets.
10388 (riscv_call_arg_struct): Update the struct folding special cases
10389 to handle cases where empty C++ structs, which are non-zero
10390 length, are found.
10391 (riscv_arg_location): Initialise the length of each location, a
10392 non-zero length now indicates the location is in use.
10393 (riscv_push_dummy_call): Allow for the first location having a
10394 non-zero offset when setting up arguments.
10395 (riscv_return_value): Likewise, but for return values.
10396
10397 2019-04-11 Tom Tromey <tromey@adacore.com>
10398
10399 * utils.c (internal_vproblem): Make "msg" const.
10400
10401 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10402
10403 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10404 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10405 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10406 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10407
10408 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10409
10410 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10411 function.
10412 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10413 of amd64_collect_native_gregset.
10414 (amd64_linux_nat_target::store_registers): Likewise.
10415
10416 2019-04-10 Tom Tromey <tom@tromey.com>
10417
10418 * symtab.c (lookup_global_symbol_from_objfile)
10419 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10420 * objfiles.h (class separate_debug_iterator): New.
10421 (class separate_debug_range): New.
10422 (struct objfile) <separate_debug_objfiles>: New method.
10423 (objfile_separate_debug_iterate): Don't declare.
10424 * objfiles.c (separate_debug_iterator::operator++): Rename from
10425 objfile_separate_debug_iterate.
10426 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10427 iterator.
10428 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10429 iterator.
10430
10431 2019-04-10 Tom Tromey <tom@tromey.com>
10432
10433 * symfile.c (reread_symbols): Remove old comment.
10434 * objfiles.c (free_all_objfiles): Fix a typo.
10435
10436 2019-04-10 Tom Tromey <tom@tromey.com>
10437
10438 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10439 * minsyms.c (lookup_minimal_symbol): Use foreach.
10440 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10441 (lookup_minimal_symbol_solib_trampoline): Likewise.
10442 * symfile.c (reread_symbols): Use foreach.
10443
10444 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10445 Tom Tromey <tromey@adacore.com>
10446
10447 PR rust/24414:
10448 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10449 (rust_lex_int_test): Change "value" to be LONGEST.
10450 (rust_lex_tests): Add test for long integer literal.
10451
10452 2019-04-09 Tom Tromey <tromey@adacore.com>
10453
10454 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10455 to bool.
10456 (extended_remote_target::attach): Update.
10457 (remote_target::remote_notice_new_inferior): Update.
10458 (remote_target::add_current_inferior_and_thread): Update.
10459 * inferior.c (exit_inferior_1): Use "false".
10460 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10461
10462 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10463
10464 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10465 the "start" command.
10466
10467 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10468
10469 * python/py-inferior.c (infpy_thread_from_thread_handle):
10470 Adjust comments to reflect renaming of thread_from_thread_handle
10471 to thread_from_handle. Adjust keywords. Fix type error message.
10472 (inferior_object_methods): Add thread_from_handle. Retain
10473 thread_from_thread_handle, but mark it as deprecated.
10474
10475 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10476
10477 * gdbthread.h (find_thread_by_handle): Revise declaration.
10478 * thread.c (find_thread_by_handle): Likewise. Adjust
10479 implementation too.
10480 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10481 support for buffer objects as handles.
10482
10483 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10484
10485 * python/py-infthread.c (thpy_thread_handle): New function.
10486 (thread_object_methods): Register thpy_thread_handle.
10487
10488 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10489
10490 * gdbthread.h (thread_to_thread_handle): Declare.
10491 * thread.c (gdbtypes.h): Include.
10492 (thread_to_thread_handle): New function.
10493
10494 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10495 (target_thread_info_to_thread_handle): Declare.
10496 * target.c (target_thread_info_to_thread_handle): New function.
10497 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10498 * target-delegates.c: Regenerate.
10499
10500 * linux-thread-db.c (class thread_db_target): Add method
10501 thread_info_to_thread_handle.
10502 (thread_db_target::thread_info_to_thread_handle): Define.
10503 * remote.c (class remote_target): Add new method
10504 thread_info_to_thread_handle.
10505 (remote_target::thread_info_to_thread_handle): Define.
10506
10507 2019-04-08 Pedro Alves <palves@redhat.com>
10508
10509 * common/common-exceptions.c (throw_exception): Don't create
10510 named object to throw; throw directly.
10511 (throw_it): Likewise. Don't initialize gdb_exception::message
10512 here, with new; pass FMT and AP to the ctor instead.
10513 * common/common-exceptions.h: Include <string>.
10514 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10515 const char *, va_list)): New ctor. Use std::make_shared.
10516 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10517 errors)): Delete.
10518 (gdb_exception_error::gdb_exception_error(enum errors, const char
10519 *, va_list)): New.
10520 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10521 Add assertion.
10522 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10523 errors)): Delete.
10524 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10525 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10526 Add assertion.
10527
10528 2019-04-08 Tom Tromey <tom@tromey.com>
10529
10530 * valops.c (value_rtti_indirect_type): Replace throw_exception
10531 with throw.
10532 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10533 with throw.
10534 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10535 throw.
10536 * target.c (target_translate_tls_address): Replace throw_exception
10537 with throw.
10538 * stack.c (frame_apply_command_count): Replace throw_exception
10539 with throw.
10540 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10541 throw.
10542 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10543 with throw.
10544 * rs6000-tdep.c (rs6000_frame_cache)
10545 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10546 * remote.c: Replace throw_exception with throw.
10547 * record-full.c (record_full_message, record_full_wait_1)
10548 (record_full_restore): Replace throw_exception with throw.
10549 * record-btrace.c:
10550 (get_thread_current_frame_id, record_btrace_start_replaying)
10551 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10552 (cmd_record_btrace_start): Replace throw_exception with throw.
10553 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10554 throw.
10555 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10556 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10557 * linespec.c:
10558 (find_linespec_symbols): Replace throw_exception with throw.
10559 * infrun.c (displaced_step_prepare, resume): Replace
10560 throw_exception with throw.
10561 * infcmd.c (post_create_inferior): Replace throw_exception with
10562 throw.
10563 * inf-loop.c (inferior_event_handler): Replace throw_exception
10564 with throw.
10565 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10566 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10567 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10568 (get_prev_frame_always, get_frame_pc_if_available)
10569 (get_frame_address_in_block_if_available, get_frame_language):
10570 Replace throw_exception with throw.
10571 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10572 throw_exception with throw.
10573 * eval.c (fetch_subexp_value, evaluate_var_value)
10574 (evaluate_funcall, evaluate_subexp_standard): Replace
10575 throw_exception with throw.
10576 * dwarf2loc.c (call_site_find_chain)
10577 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10578 Replace throw_exception with throw.
10579 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10580 with throw.
10581 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10582 throw.
10583 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10584 * completer.c (complete_line_internal): Replace throw_exception
10585 with throw.
10586 * compile/compile-object-run.c (compile_object_run): Replace
10587 throw_exception with throw.
10588 * cli/cli-script.c (process_next_line): Replace throw_exception
10589 with throw.
10590 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10591 (btrace_enable, btrace_maint_update_pt_packets): Replace
10592 throw_exception with throw.
10593 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10594 throw_exception with throw.
10595 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10596 throw_exception with throw.
10597 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10598 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10599 * aarch64-tdep.c (aarch64_make_prologue_cache)
10600 (aarch64_make_stub_cache): Replace throw_exception with throw.
10601
10602 2019-04-08 Tom Tromey <tom@tromey.com>
10603
10604 * common/common-exceptions.c (throw_exception): Rename from
10605 throw_exception_cxx. Remove old copy. Make argument const.
10606 (throw_it): Create and throw exception objects directly.
10607 * common/common-exceptions.h (throw_exception): Make argument
10608 const.
10609 (struct gdb_exception_error): Add constructor.
10610 (struct gdb_exception_quit): Add constructor.
10611
10612 2019-04-08 Tom Tromey <tom@tromey.com>
10613
10614 * common/common-exceptions.h (exception_rethrow): Don't declare.
10615 (TRY_SJLJ): Update comment.
10616 (TRY, CATCH, END_CATCH): Remove.
10617 * common/common-exceptions.c (exception_rethrow): Remove.
10618
10619 2019-04-08 Tom Tromey <tom@tromey.com>
10620
10621 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10622 Remove.
10623 (gdb_exception_error): Rename from
10624 gdb_exception_RETURN_MASK_ERROR.
10625 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10626 (gdb_quit_bad_alloc): Update.
10627 * aarch64-tdep.c: Update.
10628 * ada-lang.c: Update.
10629 * ada-typeprint.c: Update.
10630 * ada-valprint.c: Update.
10631 * amd64-tdep.c: Update.
10632 * arch-utils.c: Update.
10633 * break-catch-throw.c: Update.
10634 * breakpoint.c: Update.
10635 * btrace.c: Update.
10636 * c-varobj.c: Update.
10637 * cli/cli-cmds.c: Update.
10638 * cli/cli-interp.c: Update.
10639 * cli/cli-script.c: Update.
10640 * common/common-exceptions.c: Update.
10641 * common/new-op.c: Update.
10642 * common/selftest.c: Update.
10643 * compile/compile-c-symbols.c: Update.
10644 * compile/compile-cplus-symbols.c: Update.
10645 * compile/compile-object-load.c: Update.
10646 * compile/compile-object-run.c: Update.
10647 * completer.c: Update.
10648 * corelow.c: Update.
10649 * cp-abi.c: Update.
10650 * cp-support.c: Update.
10651 * cp-valprint.c: Update.
10652 * darwin-nat.c: Update.
10653 * disasm-selftests.c: Update.
10654 * dtrace-probe.c: Update.
10655 * dwarf-index-cache.c: Update.
10656 * dwarf-index-write.c: Update.
10657 * dwarf2-frame-tailcall.c: Update.
10658 * dwarf2-frame.c: Update.
10659 * dwarf2loc.c: Update.
10660 * dwarf2read.c: Update.
10661 * eval.c: Update.
10662 * event-loop.c: Update.
10663 * event-top.c: Update.
10664 * exec.c: Update.
10665 * f-valprint.c: Update.
10666 * fbsd-tdep.c: Update.
10667 * frame-unwind.c: Update.
10668 * frame.c: Update.
10669 * gdbtypes.c: Update.
10670 * gnu-v3-abi.c: Update.
10671 * guile/guile-internal.h: Update.
10672 * guile/scm-block.c: Update.
10673 * guile/scm-breakpoint.c: Update.
10674 * guile/scm-cmd.c: Update.
10675 * guile/scm-disasm.c: Update.
10676 * guile/scm-frame.c: Update.
10677 * guile/scm-lazy-string.c: Update.
10678 * guile/scm-math.c: Update.
10679 * guile/scm-param.c: Update.
10680 * guile/scm-ports.c: Update.
10681 * guile/scm-pretty-print.c: Update.
10682 * guile/scm-symbol.c: Update.
10683 * guile/scm-symtab.c: Update.
10684 * guile/scm-type.c: Update.
10685 * guile/scm-value.c: Update.
10686 * i386-linux-tdep.c: Update.
10687 * i386-tdep.c: Update.
10688 * inf-loop.c: Update.
10689 * infcall.c: Update.
10690 * infcmd.c: Update.
10691 * infrun.c: Update.
10692 * jit.c: Update.
10693 * language.c: Update.
10694 * linespec.c: Update.
10695 * linux-fork.c: Update.
10696 * linux-nat.c: Update.
10697 * linux-tdep.c: Update.
10698 * linux-thread-db.c: Update.
10699 * main.c: Update.
10700 * mi/mi-cmd-break.c: Update.
10701 * mi/mi-cmd-stack.c: Update.
10702 * mi/mi-interp.c: Update.
10703 * mi/mi-main.c: Update.
10704 * objc-lang.c: Update.
10705 * p-valprint.c: Update.
10706 * parse.c: Update.
10707 * ppc-linux-tdep.c: Update.
10708 * printcmd.c: Update.
10709 * python/py-arch.c: Update.
10710 * python/py-breakpoint.c: Update.
10711 * python/py-cmd.c: Update.
10712 * python/py-finishbreakpoint.c: Update.
10713 * python/py-frame.c: Update.
10714 * python/py-framefilter.c: Update.
10715 * python/py-gdb-readline.c: Update.
10716 * python/py-inferior.c: Update.
10717 * python/py-infthread.c: Update.
10718 * python/py-lazy-string.c: Update.
10719 * python/py-linetable.c: Update.
10720 * python/py-objfile.c: Update.
10721 * python/py-param.c: Update.
10722 * python/py-prettyprint.c: Update.
10723 * python/py-progspace.c: Update.
10724 * python/py-record-btrace.c: Update.
10725 * python/py-record.c: Update.
10726 * python/py-symbol.c: Update.
10727 * python/py-type.c: Update.
10728 * python/py-unwind.c: Update.
10729 * python/py-utils.c: Update.
10730 * python/py-value.c: Update.
10731 * python/python.c: Update.
10732 * record-btrace.c: Update.
10733 * record-full.c: Update.
10734 * remote-fileio.c: Update.
10735 * remote.c: Update.
10736 * riscv-tdep.c: Update.
10737 * rs6000-aix-tdep.c: Update.
10738 * rs6000-tdep.c: Update.
10739 * rust-exp.y: Update.
10740 * rust-lang.c: Update.
10741 * s390-tdep.c: Update.
10742 * selftest-arch.c: Update.
10743 * solib-dsbt.c: Update.
10744 * solib-frv.c: Update.
10745 * solib-spu.c: Update.
10746 * solib-svr4.c: Update.
10747 * solib.c: Update.
10748 * sparc64-linux-tdep.c: Update.
10749 * stack.c: Update.
10750 * symfile-mem.c: Update.
10751 * symmisc.c: Update.
10752 * target.c: Update.
10753 * thread.c: Update.
10754 * top.c: Update.
10755 * tracefile-tfile.c: Update.
10756 * tui/tui.c: Update.
10757 * typeprint.c: Update.
10758 * unittests/cli-utils-selftests.c: Update.
10759 * unittests/parse-connection-spec-selftests.c: Update.
10760 * valops.c: Update.
10761 * valprint.c: Update.
10762 * value.c: Update.
10763 * varobj.c: Update.
10764 * windows-nat.c: Update.
10765 * x86-linux-nat.c: Update.
10766 * xml-support.c: Update.
10767
10768 2019-04-08 Tom Tromey <tom@tromey.com>
10769
10770 * xml-support.c: Use C++ exception handling.
10771 * x86-linux-nat.c: Use C++ exception handling.
10772 * windows-nat.c: Use C++ exception handling.
10773 * varobj.c: Use C++ exception handling.
10774 * value.c: Use C++ exception handling.
10775 * valprint.c: Use C++ exception handling.
10776 * valops.c: Use C++ exception handling.
10777 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10778 handling.
10779 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10780 * typeprint.c: Use C++ exception handling.
10781 * tui/tui.c: Use C++ exception handling.
10782 * tracefile-tfile.c: Use C++ exception handling.
10783 * top.c: Use C++ exception handling.
10784 * thread.c: Use C++ exception handling.
10785 * target.c: Use C++ exception handling.
10786 * symmisc.c: Use C++ exception handling.
10787 * symfile-mem.c: Use C++ exception handling.
10788 * stack.c: Use C++ exception handling.
10789 * sparc64-linux-tdep.c: Use C++ exception handling.
10790 * solib.c: Use C++ exception handling.
10791 * solib-svr4.c: Use C++ exception handling.
10792 * solib-spu.c: Use C++ exception handling.
10793 * solib-frv.c: Use C++ exception handling.
10794 * solib-dsbt.c: Use C++ exception handling.
10795 * selftest-arch.c: Use C++ exception handling.
10796 * s390-tdep.c: Use C++ exception handling.
10797 * rust-lang.c: Use C++ exception handling.
10798 * rust-exp.y: Use C++ exception handling.
10799 * rs6000-tdep.c: Use C++ exception handling.
10800 * rs6000-aix-tdep.c: Use C++ exception handling.
10801 * riscv-tdep.c: Use C++ exception handling.
10802 * remote.c: Use C++ exception handling.
10803 * remote-fileio.c: Use C++ exception handling.
10804 * record-full.c: Use C++ exception handling.
10805 * record-btrace.c: Use C++ exception handling.
10806 * python/python.c: Use C++ exception handling.
10807 * python/py-value.c: Use C++ exception handling.
10808 * python/py-utils.c: Use C++ exception handling.
10809 * python/py-unwind.c: Use C++ exception handling.
10810 * python/py-type.c: Use C++ exception handling.
10811 * python/py-symbol.c: Use C++ exception handling.
10812 * python/py-record.c: Use C++ exception handling.
10813 * python/py-record-btrace.c: Use C++ exception handling.
10814 * python/py-progspace.c: Use C++ exception handling.
10815 * python/py-prettyprint.c: Use C++ exception handling.
10816 * python/py-param.c: Use C++ exception handling.
10817 * python/py-objfile.c: Use C++ exception handling.
10818 * python/py-linetable.c: Use C++ exception handling.
10819 * python/py-lazy-string.c: Use C++ exception handling.
10820 * python/py-infthread.c: Use C++ exception handling.
10821 * python/py-inferior.c: Use C++ exception handling.
10822 * python/py-gdb-readline.c: Use C++ exception handling.
10823 * python/py-framefilter.c: Use C++ exception handling.
10824 * python/py-frame.c: Use C++ exception handling.
10825 * python/py-finishbreakpoint.c: Use C++ exception handling.
10826 * python/py-cmd.c: Use C++ exception handling.
10827 * python/py-breakpoint.c: Use C++ exception handling.
10828 * python/py-arch.c: Use C++ exception handling.
10829 * printcmd.c: Use C++ exception handling.
10830 * ppc-linux-tdep.c: Use C++ exception handling.
10831 * parse.c: Use C++ exception handling.
10832 * p-valprint.c: Use C++ exception handling.
10833 * objc-lang.c: Use C++ exception handling.
10834 * mi/mi-main.c: Use C++ exception handling.
10835 * mi/mi-interp.c: Use C++ exception handling.
10836 * mi/mi-cmd-stack.c: Use C++ exception handling.
10837 * mi/mi-cmd-break.c: Use C++ exception handling.
10838 * main.c: Use C++ exception handling.
10839 * linux-thread-db.c: Use C++ exception handling.
10840 * linux-tdep.c: Use C++ exception handling.
10841 * linux-nat.c: Use C++ exception handling.
10842 * linux-fork.c: Use C++ exception handling.
10843 * linespec.c: Use C++ exception handling.
10844 * language.c: Use C++ exception handling.
10845 * jit.c: Use C++ exception handling.
10846 * infrun.c: Use C++ exception handling.
10847 * infcmd.c: Use C++ exception handling.
10848 * infcall.c: Use C++ exception handling.
10849 * inf-loop.c: Use C++ exception handling.
10850 * i386-tdep.c: Use C++ exception handling.
10851 * i386-linux-tdep.c: Use C++ exception handling.
10852 * guile/scm-value.c: Use C++ exception handling.
10853 * guile/scm-type.c: Use C++ exception handling.
10854 * guile/scm-symtab.c: Use C++ exception handling.
10855 * guile/scm-symbol.c: Use C++ exception handling.
10856 * guile/scm-pretty-print.c: Use C++ exception handling.
10857 * guile/scm-ports.c: Use C++ exception handling.
10858 * guile/scm-param.c: Use C++ exception handling.
10859 * guile/scm-math.c: Use C++ exception handling.
10860 * guile/scm-lazy-string.c: Use C++ exception handling.
10861 * guile/scm-frame.c: Use C++ exception handling.
10862 * guile/scm-disasm.c: Use C++ exception handling.
10863 * guile/scm-cmd.c: Use C++ exception handling.
10864 * guile/scm-breakpoint.c: Use C++ exception handling.
10865 * guile/scm-block.c: Use C++ exception handling.
10866 * guile/guile-internal.h: Use C++ exception handling.
10867 * gnu-v3-abi.c: Use C++ exception handling.
10868 * gdbtypes.c: Use C++ exception handling.
10869 * frame.c: Use C++ exception handling.
10870 * frame-unwind.c: Use C++ exception handling.
10871 * fbsd-tdep.c: Use C++ exception handling.
10872 * f-valprint.c: Use C++ exception handling.
10873 * exec.c: Use C++ exception handling.
10874 * event-top.c: Use C++ exception handling.
10875 * event-loop.c: Use C++ exception handling.
10876 * eval.c: Use C++ exception handling.
10877 * dwarf2read.c: Use C++ exception handling.
10878 * dwarf2loc.c: Use C++ exception handling.
10879 * dwarf2-frame.c: Use C++ exception handling.
10880 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10881 * dwarf-index-write.c: Use C++ exception handling.
10882 * dwarf-index-cache.c: Use C++ exception handling.
10883 * dtrace-probe.c: Use C++ exception handling.
10884 * disasm-selftests.c: Use C++ exception handling.
10885 * darwin-nat.c: Use C++ exception handling.
10886 * cp-valprint.c: Use C++ exception handling.
10887 * cp-support.c: Use C++ exception handling.
10888 * cp-abi.c: Use C++ exception handling.
10889 * corelow.c: Use C++ exception handling.
10890 * completer.c: Use C++ exception handling.
10891 * compile/compile-object-run.c: Use C++ exception handling.
10892 * compile/compile-object-load.c: Use C++ exception handling.
10893 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10894 * compile/compile-c-symbols.c: Use C++ exception handling.
10895 * common/selftest.c: Use C++ exception handling.
10896 * common/new-op.c: Use C++ exception handling.
10897 * cli/cli-script.c: Use C++ exception handling.
10898 * cli/cli-interp.c: Use C++ exception handling.
10899 * cli/cli-cmds.c: Use C++ exception handling.
10900 * c-varobj.c: Use C++ exception handling.
10901 * btrace.c: Use C++ exception handling.
10902 * breakpoint.c: Use C++ exception handling.
10903 * break-catch-throw.c: Use C++ exception handling.
10904 * arch-utils.c: Use C++ exception handling.
10905 * amd64-tdep.c: Use C++ exception handling.
10906 * ada-valprint.c: Use C++ exception handling.
10907 * ada-typeprint.c: Use C++ exception handling.
10908 * ada-lang.c: Use C++ exception handling.
10909 * aarch64-tdep.c: Use C++ exception handling.
10910
10911 2019-04-08 Tom Tromey <tom@tromey.com>
10912
10913 * xml-support.c (gdb_xml_parser::parse): Update.
10914 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10915 * value.c (show_convenience): Update.
10916 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10917 (test_parse_flags_qcs): Update.
10918 * thread.c (thr_try_catch_cmd): Update.
10919 * target.c (target_translate_tls_address): Update.
10920 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10921 (info_frame_command_core, frame_apply_command_count): Update.
10922 * rust-exp.y (rust_lex_exception_test): Update.
10923 * riscv-tdep.c (riscv_print_one_register_info): Update.
10924 * remote.c (remote_target::enable_btrace): Update.
10925 * record-btrace.c (record_btrace_enable_warn): Update.
10926 * python/py-utils.c (gdbpy_convert_exception): Update.
10927 * printcmd.c (do_one_display, print_variable_and_value): Update.
10928 * mi/mi-main.c (mi_print_exception): Update.
10929 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10930 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10931 * linux-nat.c (linux_nat_target::attach): Update.
10932 * linux-fork.c (class scoped_switch_fork_info): Update.
10933 * infrun.c (displaced_step_prepare): Update.
10934 * infcall.c (call_function_by_hand_dummy): Update.
10935 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10936 * gnu-v3-abi.c (print_one_vtable): Update.
10937 * frame.c (get_prev_frame_always): Update.
10938 * f-valprint.c (info_common_command_for_block): Update.
10939 * exec.c (try_open_exec_file): Update.
10940 * exceptions.c (print_exception, exception_print)
10941 (exception_fprintf, exception_print_same): Update.
10942 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10943 * dwarf-index-cache.c (index_cache::store)
10944 (index_cache::lookup_gdb_index): Update.
10945 * darwin-nat.c (maybe_cache_shell): Update.
10946 * cp-valprint.c (cp_print_value_fields): Update.
10947 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10948 (gcc_cplus_symbol_address): Update.
10949 * compile/compile-c-symbols.c (gcc_convert_symbol)
10950 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10951 * common/selftest.c: Update.
10952 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10953 a std::string.
10954 (exception_try_scope_entry, exception_try_scope_exit): Don't
10955 declare.
10956 (struct exception_try_scope): Remove.
10957 (TRY): Don't use exception_try_scope.
10958 (struct gdb_exception): Add constructor, operator=.
10959 <what>: New method.
10960 (struct gdb_exception_RETURN_MASK_ALL)
10961 (struct gdb_exception_RETURN_MASK_ERROR)
10962 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10963 (struct gdb_quit_bad_alloc): Update.
10964 * common/common-exceptions.c (exception_none): Change
10965 initializer.
10966 (struct catcher) <state, exception>: Initialize inline.
10967 <prev>: Remove member.
10968 (current_catcher): Remove.
10969 (catchers): New global.
10970 (exceptions_state_mc_init): Simplify.
10971 (catcher_pop): Remove.
10972 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10973 (try_scope_depth, exception_try_scope_entry)
10974 (exception_try_scope_exit): Remove.
10975 (throw_exception_sjlj): Update.
10976 (exception_messages, exception_messages_size): Remove.
10977 (throw_it): Simplify.
10978 (gdb_exception_sliced_copy): Remove.
10979 (throw_exception_cxx): Update.
10980 * cli/cli-script.c (script_from_file): Update.
10981 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10982 Update.
10983 * ada-valprint.c (ada_val_print): Update.
10984 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10985 (create_excep_cond_exprs): Update.
10986
10987 2019-04-08 Tom Tromey <tom@tromey.com>
10988
10989 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10990 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10991 (TRY, CATCH, END_CATCH): Remove some definitions.
10992 * common/common-exceptions.c: Don't use GDB_XCPT.
10993 (catcher_list_size): Remove.
10994 (throw_exception, throw_it): Simplify.
10995
10996 2019-04-05 Tom Tromey <tom@tromey.com>
10997
10998 Revert the header-sorting patch.
10999 * ft32-tdep.c: Revert.
11000 * frv-tdep.c: Revert.
11001 * frv-linux-tdep.c: Revert.
11002 * frame.c: Revert.
11003 * frame-unwind.c: Revert.
11004 * frame-base.c: Revert.
11005 * fork-child.c: Revert.
11006 * findvar.c: Revert.
11007 * findcmd.c: Revert.
11008 * filesystem.c: Revert.
11009 * filename-seen-cache.h: Revert.
11010 * filename-seen-cache.c: Revert.
11011 * fbsd-tdep.c: Revert.
11012 * fbsd-nat.h: Revert.
11013 * fbsd-nat.c: Revert.
11014 * f-valprint.c: Revert.
11015 * f-typeprint.c: Revert.
11016 * f-lang.c: Revert.
11017 * extension.h: Revert.
11018 * extension.c: Revert.
11019 * extension-priv.h: Revert.
11020 * expprint.c: Revert.
11021 * exec.h: Revert.
11022 * exec.c: Revert.
11023 * exceptions.c: Revert.
11024 * event-top.c: Revert.
11025 * event-loop.c: Revert.
11026 * eval.c: Revert.
11027 * elfread.c: Revert.
11028 * dwarf2read.h: Revert.
11029 * dwarf2read.c: Revert.
11030 * dwarf2loc.c: Revert.
11031 * dwarf2expr.h: Revert.
11032 * dwarf2expr.c: Revert.
11033 * dwarf2-frame.c: Revert.
11034 * dwarf2-frame-tailcall.c: Revert.
11035 * dwarf-index-write.h: Revert.
11036 * dwarf-index-write.c: Revert.
11037 * dwarf-index-common.c: Revert.
11038 * dwarf-index-cache.h: Revert.
11039 * dwarf-index-cache.c: Revert.
11040 * dummy-frame.c: Revert.
11041 * dtrace-probe.c: Revert.
11042 * disasm.h: Revert.
11043 * disasm.c: Revert.
11044 * disasm-selftests.c: Revert.
11045 * dictionary.c: Revert.
11046 * dicos-tdep.c: Revert.
11047 * demangle.c: Revert.
11048 * dcache.h: Revert.
11049 * dcache.c: Revert.
11050 * darwin-nat.h: Revert.
11051 * darwin-nat.c: Revert.
11052 * darwin-nat-info.c: Revert.
11053 * d-valprint.c: Revert.
11054 * d-namespace.c: Revert.
11055 * d-lang.c: Revert.
11056 * ctf.c: Revert.
11057 * csky-tdep.c: Revert.
11058 * csky-linux-tdep.c: Revert.
11059 * cris-tdep.c: Revert.
11060 * cris-linux-tdep.c: Revert.
11061 * cp-valprint.c: Revert.
11062 * cp-support.c: Revert.
11063 * cp-namespace.c: Revert.
11064 * cp-abi.c: Revert.
11065 * corelow.c: Revert.
11066 * corefile.c: Revert.
11067 * continuations.c: Revert.
11068 * completer.h: Revert.
11069 * completer.c: Revert.
11070 * complaints.c: Revert.
11071 * coffread.c: Revert.
11072 * coff-pe-read.c: Revert.
11073 * cli-out.h: Revert.
11074 * cli-out.c: Revert.
11075 * charset.c: Revert.
11076 * c-varobj.c: Revert.
11077 * c-valprint.c: Revert.
11078 * c-typeprint.c: Revert.
11079 * c-lang.c: Revert.
11080 * buildsym.c: Revert.
11081 * buildsym-legacy.c: Revert.
11082 * build-id.h: Revert.
11083 * build-id.c: Revert.
11084 * btrace.c: Revert.
11085 * bsd-uthread.c: Revert.
11086 * breakpoint.h: Revert.
11087 * breakpoint.c: Revert.
11088 * break-catch-throw.c: Revert.
11089 * break-catch-syscall.c: Revert.
11090 * break-catch-sig.c: Revert.
11091 * blockframe.c: Revert.
11092 * block.c: Revert.
11093 * bfin-tdep.c: Revert.
11094 * bfin-linux-tdep.c: Revert.
11095 * bfd-target.c: Revert.
11096 * bcache.c: Revert.
11097 * ax-general.c: Revert.
11098 * ax-gdb.h: Revert.
11099 * ax-gdb.c: Revert.
11100 * avr-tdep.c: Revert.
11101 * auxv.c: Revert.
11102 * auto-load.c: Revert.
11103 * arm-wince-tdep.c: Revert.
11104 * arm-tdep.c: Revert.
11105 * arm-symbian-tdep.c: Revert.
11106 * arm-pikeos-tdep.c: Revert.
11107 * arm-obsd-tdep.c: Revert.
11108 * arm-nbsd-tdep.c: Revert.
11109 * arm-nbsd-nat.c: Revert.
11110 * arm-linux-tdep.c: Revert.
11111 * arm-linux-nat.c: Revert.
11112 * arm-fbsd-tdep.c: Revert.
11113 * arm-fbsd-nat.c: Revert.
11114 * arm-bsd-tdep.c: Revert.
11115 * arch-utils.c: Revert.
11116 * arc-tdep.c: Revert.
11117 * arc-newlib-tdep.c: Revert.
11118 * annotate.h: Revert.
11119 * annotate.c: Revert.
11120 * amd64-windows-tdep.c: Revert.
11121 * amd64-windows-nat.c: Revert.
11122 * amd64-tdep.c: Revert.
11123 * amd64-sol2-tdep.c: Revert.
11124 * amd64-obsd-tdep.c: Revert.
11125 * amd64-obsd-nat.c: Revert.
11126 * amd64-nbsd-tdep.c: Revert.
11127 * amd64-nbsd-nat.c: Revert.
11128 * amd64-nat.c: Revert.
11129 * amd64-linux-tdep.c: Revert.
11130 * amd64-linux-nat.c: Revert.
11131 * amd64-fbsd-tdep.c: Revert.
11132 * amd64-fbsd-nat.c: Revert.
11133 * amd64-dicos-tdep.c: Revert.
11134 * amd64-darwin-tdep.c: Revert.
11135 * amd64-bsd-nat.c: Revert.
11136 * alpha-tdep.c: Revert.
11137 * alpha-obsd-tdep.c: Revert.
11138 * alpha-nbsd-tdep.c: Revert.
11139 * alpha-mdebug-tdep.c: Revert.
11140 * alpha-linux-tdep.c: Revert.
11141 * alpha-linux-nat.c: Revert.
11142 * alpha-bsd-tdep.c: Revert.
11143 * alpha-bsd-nat.c: Revert.
11144 * aix-thread.c: Revert.
11145 * agent.c: Revert.
11146 * addrmap.c: Revert.
11147 * ada-varobj.c: Revert.
11148 * ada-valprint.c: Revert.
11149 * ada-typeprint.c: Revert.
11150 * ada-tasks.c: Revert.
11151 * ada-lang.c: Revert.
11152 * aarch64-tdep.c: Revert.
11153 * aarch64-ravenscar-thread.c: Revert.
11154 * aarch64-newlib-tdep.c: Revert.
11155 * aarch64-linux-tdep.c: Revert.
11156 * aarch64-linux-nat.c: Revert.
11157 * aarch64-fbsd-tdep.c: Revert.
11158 * aarch64-fbsd-nat.c: Revert.
11159 * aarch32-linux-nat.c: Revert.
11160
11161 2019-04-05 Tom Tromey <tom@tromey.com>
11162
11163 * ft32-tdep.c: Sort headers.
11164 * frv-tdep.c: Sort headers.
11165 * frv-linux-tdep.c: Sort headers.
11166 * frame.c: Sort headers.
11167 * frame-unwind.c: Sort headers.
11168 * frame-base.c: Sort headers.
11169 * fork-child.c: Sort headers.
11170 * findvar.c: Sort headers.
11171 * findcmd.c: Sort headers.
11172 * filesystem.c: Sort headers.
11173 * filename-seen-cache.h: Sort headers.
11174 * filename-seen-cache.c: Sort headers.
11175 * fbsd-tdep.c: Sort headers.
11176 * fbsd-nat.h: Sort headers.
11177 * fbsd-nat.c: Sort headers.
11178 * f-valprint.c: Sort headers.
11179 * f-typeprint.c: Sort headers.
11180 * f-lang.c: Sort headers.
11181 * extension.h: Sort headers.
11182 * extension.c: Sort headers.
11183 * extension-priv.h: Sort headers.
11184 * expprint.c: Sort headers.
11185 * exec.h: Sort headers.
11186 * exec.c: Sort headers.
11187 * exceptions.c: Sort headers.
11188 * event-top.c: Sort headers.
11189 * event-loop.c: Sort headers.
11190 * eval.c: Sort headers.
11191 * elfread.c: Sort headers.
11192 * dwarf2read.h: Sort headers.
11193 * dwarf2read.c: Sort headers.
11194 * dwarf2loc.c: Sort headers.
11195 * dwarf2expr.h: Sort headers.
11196 * dwarf2expr.c: Sort headers.
11197 * dwarf2-frame.c: Sort headers.
11198 * dwarf2-frame-tailcall.c: Sort headers.
11199 * dwarf-index-write.h: Sort headers.
11200 * dwarf-index-write.c: Sort headers.
11201 * dwarf-index-common.c: Sort headers.
11202 * dwarf-index-cache.h: Sort headers.
11203 * dwarf-index-cache.c: Sort headers.
11204 * dummy-frame.c: Sort headers.
11205 * dtrace-probe.c: Sort headers.
11206 * disasm.h: Sort headers.
11207 * disasm.c: Sort headers.
11208 * disasm-selftests.c: Sort headers.
11209 * dictionary.c: Sort headers.
11210 * dicos-tdep.c: Sort headers.
11211 * demangle.c: Sort headers.
11212 * dcache.h: Sort headers.
11213 * dcache.c: Sort headers.
11214 * darwin-nat.h: Sort headers.
11215 * darwin-nat.c: Sort headers.
11216 * darwin-nat-info.c: Sort headers.
11217 * d-valprint.c: Sort headers.
11218 * d-namespace.c: Sort headers.
11219 * d-lang.c: Sort headers.
11220 * ctf.c: Sort headers.
11221 * csky-tdep.c: Sort headers.
11222 * csky-linux-tdep.c: Sort headers.
11223 * cris-tdep.c: Sort headers.
11224 * cris-linux-tdep.c: Sort headers.
11225 * cp-valprint.c: Sort headers.
11226 * cp-support.c: Sort headers.
11227 * cp-namespace.c: Sort headers.
11228 * cp-abi.c: Sort headers.
11229 * corelow.c: Sort headers.
11230 * corefile.c: Sort headers.
11231 * continuations.c: Sort headers.
11232 * completer.h: Sort headers.
11233 * completer.c: Sort headers.
11234 * complaints.c: Sort headers.
11235 * coffread.c: Sort headers.
11236 * coff-pe-read.c: Sort headers.
11237 * cli-out.h: Sort headers.
11238 * cli-out.c: Sort headers.
11239 * charset.c: Sort headers.
11240 * c-varobj.c: Sort headers.
11241 * c-valprint.c: Sort headers.
11242 * c-typeprint.c: Sort headers.
11243 * c-lang.c: Sort headers.
11244 * buildsym.c: Sort headers.
11245 * buildsym-legacy.c: Sort headers.
11246 * build-id.h: Sort headers.
11247 * build-id.c: Sort headers.
11248 * btrace.c: Sort headers.
11249 * bsd-uthread.c: Sort headers.
11250 * breakpoint.h: Sort headers.
11251 * breakpoint.c: Sort headers.
11252 * break-catch-throw.c: Sort headers.
11253 * break-catch-syscall.c: Sort headers.
11254 * break-catch-sig.c: Sort headers.
11255 * blockframe.c: Sort headers.
11256 * block.c: Sort headers.
11257 * bfin-tdep.c: Sort headers.
11258 * bfin-linux-tdep.c: Sort headers.
11259 * bfd-target.c: Sort headers.
11260 * bcache.c: Sort headers.
11261 * ax-general.c: Sort headers.
11262 * ax-gdb.h: Sort headers.
11263 * ax-gdb.c: Sort headers.
11264 * avr-tdep.c: Sort headers.
11265 * auxv.c: Sort headers.
11266 * auto-load.c: Sort headers.
11267 * arm-wince-tdep.c: Sort headers.
11268 * arm-tdep.c: Sort headers.
11269 * arm-symbian-tdep.c: Sort headers.
11270 * arm-pikeos-tdep.c: Sort headers.
11271 * arm-obsd-tdep.c: Sort headers.
11272 * arm-nbsd-tdep.c: Sort headers.
11273 * arm-nbsd-nat.c: Sort headers.
11274 * arm-linux-tdep.c: Sort headers.
11275 * arm-linux-nat.c: Sort headers.
11276 * arm-fbsd-tdep.c: Sort headers.
11277 * arm-fbsd-nat.c: Sort headers.
11278 * arm-bsd-tdep.c: Sort headers.
11279 * arch-utils.c: Sort headers.
11280 * arc-tdep.c: Sort headers.
11281 * arc-newlib-tdep.c: Sort headers.
11282 * annotate.h: Sort headers.
11283 * annotate.c: Sort headers.
11284 * amd64-windows-tdep.c: Sort headers.
11285 * amd64-windows-nat.c: Sort headers.
11286 * amd64-tdep.c: Sort headers.
11287 * amd64-sol2-tdep.c: Sort headers.
11288 * amd64-obsd-tdep.c: Sort headers.
11289 * amd64-obsd-nat.c: Sort headers.
11290 * amd64-nbsd-tdep.c: Sort headers.
11291 * amd64-nbsd-nat.c: Sort headers.
11292 * amd64-nat.c: Sort headers.
11293 * amd64-linux-tdep.c: Sort headers.
11294 * amd64-linux-nat.c: Sort headers.
11295 * amd64-fbsd-tdep.c: Sort headers.
11296 * amd64-fbsd-nat.c: Sort headers.
11297 * amd64-dicos-tdep.c: Sort headers.
11298 * amd64-darwin-tdep.c: Sort headers.
11299 * amd64-bsd-nat.c: Sort headers.
11300 * alpha-tdep.c: Sort headers.
11301 * alpha-obsd-tdep.c: Sort headers.
11302 * alpha-nbsd-tdep.c: Sort headers.
11303 * alpha-mdebug-tdep.c: Sort headers.
11304 * alpha-linux-tdep.c: Sort headers.
11305 * alpha-linux-nat.c: Sort headers.
11306 * alpha-bsd-tdep.c: Sort headers.
11307 * alpha-bsd-nat.c: Sort headers.
11308 * aix-thread.c: Sort headers.
11309 * agent.c: Sort headers.
11310 * addrmap.c: Sort headers.
11311 * ada-varobj.c: Sort headers.
11312 * ada-valprint.c: Sort headers.
11313 * ada-typeprint.c: Sort headers.
11314 * ada-tasks.c: Sort headers.
11315 * ada-lang.c: Sort headers.
11316 * aarch64-tdep.c: Sort headers.
11317 * aarch64-ravenscar-thread.c: Sort headers.
11318 * aarch64-newlib-tdep.c: Sort headers.
11319 * aarch64-linux-tdep.c: Sort headers.
11320 * aarch64-linux-nat.c: Sort headers.
11321 * aarch64-fbsd-tdep.c: Sort headers.
11322 * aarch64-fbsd-nat.c: Sort headers.
11323 * aarch32-linux-nat.c: Sort headers.
11324
11325 2019-04-04 Tom Tromey <tom@tromey.com>
11326
11327 * varobj.c (varobj_create): Update.
11328 * rust-exp.y (struct rust_parser) <update_innermost_block,
11329 lookup_symbol>: New methods.
11330 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11331 Rename.
11332 (rust_parser::rust_lookup_type)
11333 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11334 * printcmd.c (display_command, do_one_display): Update.
11335 * parser-defs.h (struct parser_state) <parser_state>: Add
11336 "tracker" parameter.
11337 (block_tracker): New member.
11338 (class innermost_block_tracker) <innermost_block_tracker>: Add
11339 "types" parameter.
11340 <reset>: Remove method.
11341 (innermost_block): Don't declare.
11342 (null_post_parser): Update.
11343 * parse.c (innermost_block): Remove global.
11344 (write_dollar_variable): Update.
11345 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11346 Remove "tracker_types" parameter.
11347 (parse_expression): Add "tracker" parameter.
11348 (parse_expression_for_completion): Update.
11349 (null_post_parser): Add "tracker" parameter.
11350 * p-exp.y: Update rules.
11351 * m2-exp.y: Update rules.
11352 * language.h (struct language_defn) <la_post_parser>: Add
11353 "tracker" parameter.
11354 * go-exp.y: Update rules.
11355 * f-exp.y: Update rules.
11356 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11357 parameter.
11358 * d-exp.y: Update rules.
11359 * c-exp.y: Update rules.
11360 * breakpoint.c (set_breakpoint_condition): Create an
11361 innermost_block_tracker.
11362 (watch_command_1): Likewise.
11363 * ada-lang.c (resolve): Add "tracker" parameter.
11364 (resolve_subexp): Likewise.
11365 * ada-exp.y (write_var_from_sym): Update.
11366
11367 2019-04-04 Tom Tromey <tom@tromey.com>
11368
11369 * type-stack.h: New file.
11370 * type-stack.c: New file.
11371 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11372 type-stack.h.
11373 (insert_into_type_stack, insert_type, push_type, push_type_int)
11374 (insert_type_address_space, pop_type, pop_type_int)
11375 (pop_typelist, pop_type_stack, append_type_stack)
11376 (push_type_stack, get_type_stack, push_typelist)
11377 (follow_type_instance_flags, follow_types): Don't declare.
11378 * parse.c (type_stack): Remove global.
11379 (parse_exp_in_context): Update.
11380 (insert_into_type_stack, insert_type, push_type, push_type_int)
11381 (insert_type_address_space, pop_type, pop_type_int)
11382 (pop_typelist, pop_type_stack, append_type_stack)
11383 (push_type_stack, get_type_stack, push_typelist)
11384 (follow_type_instance_flags, follow_types): Remove (moved to
11385 type-stack.c).
11386 * f-exp.y (type_stack): New global.
11387 Update rules.
11388 (push_kind_type, f_parse): Update.
11389 * d-exp.y (type_stack): New global.
11390 Update rules.
11391 (d_parse): Update.
11392 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11393 Update rules.
11394 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11395 (HFILES_NO_SRCDIR): Add type-stack.h.
11396
11397 2019-04-04 Tom Tromey <tom@tromey.com>
11398
11399 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11400 (rust_parser::convert_ast_to_expression, rust_parse)
11401 (rust_lex_test_completion, rust_lex_tests): Update.
11402 * parser-defs.h (struct expr_completion_state): New.
11403 (struct parser_state) <parser_state>: Add completion parameter.
11404 <mark_struct_expression, mark_completion_tag>: New methods.
11405 <parse_completion, m_completion_state>: New members.
11406 (prefixify_expression, null_post_parser): Update.
11407 (mark_struct_expression, mark_completion_tag): Don't declare.
11408 * parse.c (parse_completion, expout_last_struct)
11409 (expout_tag_completion_type, expout_completion_name): Remove
11410 globals.
11411 (parser_state::mark_struct_expression)
11412 (parser_state::mark_completion_tag): Now methods.
11413 (prefixify_expression): Add last_struct parameter.
11414 (prefixify_subexp): Likewise.
11415 (parse_exp_1): Update.
11416 (parse_exp_in_context): Add cstate parameter. Update.
11417 (parse_expression_for_completion): Create an
11418 expr_completion_state.
11419 (null_post_parser): Add "completion" parameter.
11420 * p-exp.y: Update rules.
11421 (yylex): Update.
11422 * language.h (struct language_defn) <la_post_parser>: Add
11423 "completing" parameter.
11424 * go-exp.y: Update rules.
11425 (lex_one_token): Update.
11426 * expression.h (parse_completion): Don't declare.
11427 * d-exp.y: Update rules.
11428 (lex_one_token): Update rules.
11429 * c-exp.y: Update rules.
11430 (lex_one_token): Update.
11431 * ada-lang.c (resolve): Add "parse_completion" parameter.
11432 (resolve_subexp): Likewise.
11433 (ada_resolve_function): Likewise.
11434
11435 2019-04-04 Tom Tromey <tom@tromey.com>
11436
11437 * parser-defs.h (struct parser_state) <start_arglist,
11438 end_arglist>: New methods.
11439 <arglist_len, m_funcall_chain>: New members.
11440 (arglist_len, start_arglist, end_arglist): Don't declare.
11441 * parse.c (arglist_len, funcall_chain): Remove global.
11442 (start_arglist, end_arglist): Remove functions.
11443 (parse_exp_in_context): Update.
11444 * p-exp.y: Update rules.
11445 * m2-exp.y: Update rules.
11446 * go-exp.y: Update rules.
11447 * f-exp.y: Update rules.
11448 * d-exp.y: Update rules.
11449 * c-exp.y: Update rules.
11450
11451 2019-04-04 Tom Tromey <tom@tromey.com>
11452
11453 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11454 lex_operator, push_back>: New methods.
11455 Update all rules.
11456 (rust_parser::lex_hex, lex_escape): Rename and update.
11457 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11458 (rust_parser::lex_operator): Rename and update.
11459 (rust_parser::lex_number, rustyylex, rustyyerror)
11460 (rust_lex_test_init, rust_lex_test_sequence)
11461 (rust_lex_test_push_back, rust_lex_tests): Update.
11462 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11463 parameter.
11464 <lexptr, prev_lexptr>: New members.
11465 (lexptr, prev_lexptr): Don't declare.
11466 * parse.c (lexptr, prev_lexptr): Remove globals.
11467 (parse_exp_in_context): Update.
11468 * p-exp.y (yylex, yyerror): Update.
11469 * m2-exp.y (parse_number, yylex, yyerror): Update.
11470 * go-exp.y (lex_one_token, yyerror): Update.
11471 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11472 * d-exp.y (lex_one_token, yyerror): Update.
11473 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11474 (lex_one_token, yyerror): Update.
11475 * ada-lex.l (YY_INPUT): Update.
11476 (rewind_to_char): Update.
11477 * ada-exp.y (yyerror): Update.
11478
11479 2019-04-04 Tom Tromey <tom@tromey.com>
11480
11481 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11482 * parser-defs.h (struct parser_state) <parser_state>: Add new
11483 parameter.
11484 <comma_terminates>: New member.
11485 (comma_terminates): Don't declare global.
11486 * parse.c (comma_terminates): Remove global.
11487 (parse_exp_in_context): Update.
11488 * p-exp.y (yylex): Update.
11489 * m2-exp.y (yylex): Update.
11490 * go-exp.y (lex_one_token): Update.
11491 * f-exp.y (yylex): Update.
11492 * d-exp.y (lex_one_token): Update.
11493 * c-exp.y (lex_one_token): Update.
11494 * ada-lex.l: Update.
11495
11496 2019-04-04 Tom Tromey <tom@tromey.com>
11497
11498 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11499 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11500 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11501 * parser-defs.h (paren_depth): Don't declare.
11502 * parse.c (paren_depth): Remove global.
11503 (parse_exp_in_context): Update.
11504 * p-exp.y (paren_depth): New global.
11505 (pascal_parse): Initialize it.
11506 * m2-exp.y (paren_depth): New global.
11507 (m2_parse): Initialize it.
11508 * go-exp.y (paren_depth): New global.
11509 (go_parse): Initialize it.
11510 * f-exp.y (paren_depth): New global.
11511 (f_parse): Initialize it.
11512 * d-exp.y (paren_depth): New global.
11513 (d_parse): Initialize it.
11514 * c-exp.y (paren_depth): New global.
11515 (c_parse): Initialize it.
11516 * ada-lex.l (paren_depth): New global.
11517 (lexer_init): Initialize it.
11518
11519 2019-04-04 Tom Tromey <tom@tromey.com>
11520
11521 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11522 (rust_parser::convert_ast_to_type)
11523 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11524 * parser-defs.h (struct parser_state) <parser_state>: Add
11525 parameters. Initialize new members.
11526 <expression_context_block, expression_context_pc>: New members.
11527 * parse.c (expression_context_block, expression_context_pc):
11528 Remove globals.
11529 (parse_exp_in_context): Update.
11530 * p-exp.y: Update all rules.
11531 (yylex): Update.
11532 * m2-exp.y: Update all rules.
11533 (yylex): Update.
11534 * go-exp.y (yylex): Update.
11535 * f-exp.y (yylex): Update.
11536 * d-exp.y: Update all rules.
11537 (yylex): Update.
11538 * c-exp.y: Update all rules.
11539 (lex_one_token, classify_name, yylex, c_parse): Update.
11540 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11541
11542 2019-04-04 Tom Tromey <tom@tromey.com>
11543
11544 * gdbarch.h, gdbarch.c: Rebuild.
11545 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11546 * stap-probe.h:
11547 (struct stap_parse_info): Replace "parser_state" with
11548 "expr_builder".
11549 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11550 (parser_state): New class.
11551 * parse.c (expr_builder): Rename.
11552 (expr_builder::release): Rename.
11553 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11554 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11555 (write_exp_elt_longcst, write_exp_elt_floatcst)
11556 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11557 (write_exp_string_vector, write_exp_bitstring)
11558 (write_exp_msymbol, mark_struct_expression)
11559 (write_dollar_variable)
11560 (insert_type_address_space, increase_expout_size): Replace
11561 "parser_state" with "expr_builder".
11562 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11563 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11564 "parser_state" with "expr_builder".
11565
11566 2019-04-04 Tom Tromey <tom@tromey.com>
11567
11568 * rust-exp.y: Replace "parse_language" with method call.
11569 * p-exp.y:
11570 (yylex): Replace "parse_language" with method call.
11571 * m2-exp.y:
11572 (yylex): Replace "parse_language" with method call.
11573 * go-exp.y (classify_name): Replace "parse_language" with method
11574 call.
11575 * f-exp.y (yylex): Replace "parse_language" with method call.
11576 * d-exp.y (lex_one_token): Replace "parse_language" with method
11577 call.
11578 * c-exp.y:
11579 (lex_one_token, classify_name, yylex): Replace "parse_language"
11580 with method call.
11581 * ada-exp.y (find_primitive_type, type_char)
11582 (type_system_address): Replace "parse_language" with method call.
11583
11584 2019-04-04 Tom Tromey <tom@tromey.com>
11585
11586 * rust-exp.y: Replace "parse_gdbarch" with method call.
11587 * parse.c (write_dollar_variable, insert_type_address_space):
11588 Replace "parse_gdbarch" with method call.
11589 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11590 call.
11591 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11592 call.
11593 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11594 "parse_gdbarch" with method call.
11595 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11596 with method call.
11597 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11598 "parse_gdbarch" with method call.
11599 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11600 "parse_gdbarch" with method call.
11601 * c-exp.y (parse_type, parse_number, classify_name): Replace
11602 "parse_gdbarch" with method call.
11603 * ada-lex.l: Replace "parse_gdbarch" with method call.
11604 * ada-exp.y (parse_type, find_primitive_type, type_char)
11605 (type_system_address): Replace "parse_gdbarch" with method call.
11606
11607 2019-04-04 Tom Tromey <tom@tromey.com>
11608
11609 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11610 * stap-probe.c (stap_parse_argument): Update.
11611 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11612 initial_size parameter.
11613 * rust-exp.y (rust_lex_tests): Update.
11614 * parse.c (parser_state): Update.
11615 (parse_exp_in_context): Update.
11616 * parser-defs.h (struct parser_state) <parser_state>: Remove
11617 "initial_size" parameter.
11618
11619 2019-04-04 Tom Tromey <tom@tromey.com>
11620
11621 * parser-defs.h (increase_expout_size): Don't declare.
11622 * parse.c (increase_expout_size): Now static.
11623
11624 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11625
11626 * gnu-nat.c (gnu_nat_target::wait): Fix
11627 target_waitstatus_to_string call.
11628
11629 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11630
11631 * eval.c (evaluate_subexp_standard): Handle internal functions
11632 during Fortran function call handling.
11633
11634 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11635
11636 * NEWS: Mention new internal functions.
11637 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11638 (read_base_type): Use dwarf2_init_complex_target_type.
11639 * value.c (creal_internal_fn): New function.
11640 (cimag_internal_fn): New function.
11641 (_initialize_values): Register new internal functions.
11642
11643 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11644
11645 * infrun.c (stop_all_threads): If debug_infrun, always
11646 trace the wait status after wait_one, using
11647 target_waitstatus_to_string and target_pid_to_str.
11648 (handle_inferior_event): Replace various trace of
11649 wait status kind by a single trace.
11650 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11651 wait status kind image by target_waitstatus_to_string.
11652 * target/waitstatus.c (target_waitstatus_to_string): Fix
11653 obsolete comment.
11654
11655 2019-04-01 Tom Tromey <tromey@adacore.com>
11656
11657 PR symtab/23331:
11658 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11659
11660 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11661 Pedro Alves <palves@redhat.com>
11662
11663 * top.c (quit_force): Call 'finalize_values'.
11664 * value.c (finalize_values): New function.
11665 * value.h (finalize_values): Declare.
11666
11667 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11668
11669 * NEWS: Announce $_gdb_major and $_gdb_minor.
11670
11671 * top.c (init_gdb_version_vars): New function.
11672 (gdb_init): Call init_gdb_version_vars.
11673
11674 2019-03-29 Tom Tromey <tromey@adacore.com>
11675
11676 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11677 help text. Remove dead code.
11678
11679 2019-03-29 Keith Seitz <keiths@redhat.com>
11680
11681 From Siddhesh Poyarekar:
11682 * f-lang.h (f77_get_upperbound): Return LONGEST.
11683 (f77_get_lowerbound): Likewise.
11684 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11685 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11686 print them.
11687 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11688 plongest to format print it.
11689 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11690 (f77_get_upperbound): Likewise.
11691 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11692 LOWER_BOUND to LONGEST.
11693 (f77_create_arrayprint_offset_tbl): Likewise.
11694
11695 2019-03-29 Keith Seitz <keiths@redhat.com>
11696
11697 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11698 %s/pulongest for TYPE_LENGTH instead of %d in format
11699 strings.
11700 * ada-typerint.c (ada_print_type): Likewise.
11701 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11702 * compile/compile-c-support.c (generate_register_struct): Likewise.
11703 * gdbtypes.c (recursive_dump_type): Likewise.
11704 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11705 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11706 instead of %d in format strings.
11707 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11708 to std::min to ULONGEST.
11709 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11710 instead of %d in format strings.
11711 * tracepoint.c (info_scope_command): Likewise.
11712 * typeprint.c (print_offset_data::update)
11713 (print_offset_data::finish): Likewise.
11714 * xtensa-tdep.c (xtensa_store_return_value)
11715 (xtensa_push_dummy_call): Likewise.
11716
11717 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11718
11719 * windows-nat.c (display_selector): Fixed format specifications
11720 for 64-bit Cygwin.
11721
11722 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11723
11724 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11725
11726 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11727
11728 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11729 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11730 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11731 (nios2_linux_init_abi): Install it.
11732
11733 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11734
11735 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11736
11737 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11738
11739 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11740
11741 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11742 Tom Tromey <tromey@adacore.com>
11743
11744 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11745
11746 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11747
11748 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11749 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11750 method to compute the bounds of range types. Also print "[evaluated]"
11751 if the bounds' values come from a dynamic evaluation.
11752
11753 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11754
11755 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11756 whitespace when pretty printing is on.
11757
11758 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11759
11760 * ppc-linux-nat.c: Add include.
11761
11762 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11763
11764 * NEWS: Mention AArch64 Pointer Authentication.
11765
11766 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11767
11768 * arm-linux-nat.c: Add include.
11769
11770 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11771
11772 * source-cache.c (source_cache::get_source_lines): Re-read
11773 fullname after calling open_source_file.
11774
11775 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11776
11777 * NEWS: Mention TLS support for FreeBSD.
11778
11779 2019-03-25 Tom Tromey <tromey@adacore.com>
11780
11781 * minsyms.c (BUNCH_SIZE): Update comment.
11782 (~minimal_symbol_reader): Remove old comment.
11783 (compact_minimal_symbols): Update comment.
11784 (minimal_symbol_reader::install): Remove old comment. Update
11785 other comments.
11786
11787 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11788
11789 * s390-linux-nat.c: Add include.
11790
11791 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11792
11793 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11794 Call linux_get_hwcap.
11795 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11796 Likewise.
11797 (aarch64_linux_get_hwcap): Remove function.
11798 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11799 declaration.
11800 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11801 linux_get_hwcap.
11802 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11803 * linux-tdep.c (linux_get_hwcap): Add function.
11804 (linux_get_hwcap2): Likewise.
11805 * linux-tdep.h (linux_get_hwcap): Add declaration.
11806 (linux_get_hwcap2): Likewise.
11807 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11808 (ppc_linux_get_hwcap2): Likewise.
11809 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11810 linux_get_hwcap.
11811 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11812 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11813 (ppc_linux_nat_target::read_description): Likewise.
11814 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11815 * s390-linux-nat.c: Likewise.
11816 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11817
11818 2019-03-24 Tom Tromey <tom@tromey.com>
11819
11820 * ada-lang.c (standard_lookup): Simplify initialization.
11821 (ada_lookup_symbol_nonlocal): Simplify return.
11822 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11823 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11824 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11825 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11826 initialization.
11827 * solib.c (solib_global_lookup): Simplify.
11828 * symtab.c (null_block_symbol): Remove.
11829 (symbol_cache_lookup): Simplify returns.
11830 (lookup_language_this): Simplify returns.
11831 (lookup_symbol_aux): Simplify return.
11832 (lookup_local_symbol): Simplify returns.
11833 (lookup_global_symbol_from_objfile): Simplify return.
11834 (lookup_symbol_in_objfile_symtabs)
11835 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11836 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11837 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11838 * cp-namespace.c (cp_lookup_bare_symbol)
11839 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11840 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11841 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11842 (cp_lookup_symbol_via_imports): Simplify initialization.
11843 (find_symbol_in_baseclass): Likewise.
11844 * symtab.h (null_block_symbol): Remove.
11845 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11846 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11847 (d_lookup_symbol_module): Likewise.
11848 (find_symbol_in_baseclass): Simplify initialization.
11849
11850 2019-03-24 Tom Tromey <tom@tromey.com>
11851
11852 * expression.h: Don't include symtab.h.
11853 (struct block): Forward declare.
11854
11855 2019-03-24 Tom Tromey <tom@tromey.com>
11856
11857 * c-exp.y (typebase): Remove casts.
11858 * gdbtypes.c (lookup_unsigned_typename, )
11859 (lookup_signed_typename): Remove cast.
11860 * eval.c (parse_to_comma_and_eval): Remove cast.
11861 * parse.c (write_dollar_variable): Remove cast.
11862 * block.h (struct block) <superblock>: Now const.
11863 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11864 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11865 (map_block): Make "block" const.
11866 * symfile.h (struct quick_symbol_functions)
11867 <map_matching_symbols>: Constify block argument to "callback".
11868 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11869 const.
11870 (find_pc_sect_compunit_symtab): Make "b" const.
11871 (find_symbol_at_address): Likewise.
11872 (search_symbols): Likewise.
11873 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11874 (dw2_debug_names_lookup_symbol): Likewise.
11875 (dw2_map_matching_symbols): Update.
11876 * p-valprint.c (pascal_val_print): Remove "block".
11877 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11878 (aux_add_nonlocal_symbols): Make "block" const.
11879 (resolve_subexp): Remove cast.
11880 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11881 const.
11882 (iterate_over_file_blocks): Likewise.
11883 * f-exp.y (%union) <bval>: Remove.
11884 * coffread.c (patch_opaque_types): Make "b" const.
11885 * spu-tdep.c (spu_catch_start): Make "block" const.
11886 * c-valprint.c (print_unpacked_pointer): Remove "block".
11887 * symmisc.c (dump_symtab_1): Make "b" const.
11888 (block_depth): Make "block" const.
11889 * d-exp.y (%union) <bval>: Remove.
11890 * cp-support.h (cp_lookup_rtti_type): Update.
11891 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11892 * psymtab.c (psym_lookup_symbol): Make "block" const.
11893 (maintenance_check_psymtabs): Make "b" const.
11894 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11895 (enumerate_locals, enumerate_args): Update.
11896 * python/py-symtab.c (stpy_global_block): Make "block" const.
11897 (stpy_static_block): Likewise.
11898 * inline-frame.c (block_starting_point_at): Make "new_block"
11899 const.
11900 * block.c (find_block_in_blockvector): Make return type const.
11901 (blockvector_for_pc_sect): Make "b" const.
11902 (find_block_in_blockvector): Make "b" const.
11903
11904 2019-03-23 Tom Tromey <tom@tromey.com>
11905
11906 * varobj.c (varobj_create): Update.
11907 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11908 * printcmd.c (display_command, do_one_display): Don't reset
11909 innermost_block.
11910 * parser-defs.h (enum innermost_block_tracker_type): Move to
11911 expression.h.
11912 (innermost_block): Update comment.
11913 * parse.c (parse_exp_1): Add tracker_types parameter.
11914 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11915 tracker_types parameter. Reset innermost_block.
11916 (parse_exp_in_context): Remove.
11917 (parse_expression_for_completion): Update.
11918 * objfiles.c (~objfile): Don't reset expression_context_block or
11919 innermost_block.
11920 * expression.h (enum innermost_block_tracker_type): Move from
11921 parser-defs.h.
11922 (parse_exp_1): Add tracker_types parameter.
11923 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11924 reset innermost_block.
11925
11926 2019-03-23 Tom Tromey <tom@tromey.com>
11927
11928 * objfiles.h: Include bcache.h.
11929
11930 2019-03-23 Tom Tromey <tom@tromey.com>
11931
11932 * linespec.c (get_current_search_block): Use
11933 scoped_restore_current_language.
11934 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11935
11936 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11937 Jiong Wang <jiong.wang@arm.com>
11938
11939 * aarch64-linux-tdep.c
11940 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11941 section.
11942 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11943
11944 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11945 Jiong Wang <jiong.wang@arm.com>
11946
11947 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11948 instructions.
11949 (aarch64_analyze_prologue_test): Add PACIASP test.
11950 (aarch64_prologue_prev_register): Unmask PC value.
11951
11952 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11953 Jiong Wang <jiong.wang@arm.com>
11954
11955 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11956 (aarch64_dwarf2_prev_register): Unmask PC value.
11957 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11958 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11959 DW_CFA_AARCH64_negate_ra_state.
11960 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11961
11962 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11963 Jiong Wang <jiong.wang@arm.com>
11964
11965 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11966 registers.
11967 (aarch64_pseudo_register_name): Likewise.
11968 (aarch64_pseudo_register_type): Likewise.
11969 (aarch64_pseudo_register_reggroup_p): Likewise.
11970 (aarch64_gdbarch_init): Add pauth registers.
11971 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11972 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11973 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11974 (struct gdbarch_tdep): Add regnum for ra_state.
11975
11976 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11977 Jiong Wang <jiong.wang@arm.com>
11978
11979 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11980
11981 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11982 Jiong Wang <jiong.wang@arm.com>
11983
11984 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11985 function.
11986 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11987 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11988 (aarch64_gdbarch_init): Add puth registers.
11989 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11990 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11991 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11992
11993 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11994 Jiong Wang <jiong.wang@arm.com>
11995
11996 * aarch64-linux-nat.c
11997 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11998 * aarch64-linux-tdep.c
11999 (aarch64_linux_core_read_description): Likewise.
12000 (aarch64_linux_get_hwcap): New function.
12001 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12002 (aarch64_linux_get_hwcap): New declaration.
12003
12004 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12005 Jiong Wang <jiong.wang@arm.com>
12006
12007 * aarch64-linux-nat.c
12008 (aarch64_linux_nat_target::read_description): Add pauth param.
12009 * aarch64-linux-tdep.c
12010 (aarch64_linux_core_read_description): Likewise.
12011 * aarch64-tdep.c (struct target_desc): Add in pauth.
12012 (aarch64_read_description): Add pauth param.
12013 (aarch64_gdbarch_init): Likewise.
12014 * aarch64-tdep.h (aarch64_read_description): Likewise.
12015 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12016 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12017 * features/Makefile: Add new files.
12018 * features/aarch64-pauth.c: New file.
12019 * features/aarch64-pauth.xml: New file.
12020
12021 2019-03-20 Tom Tromey <tromey@adacore.com>
12022
12023 * infrun.c (handle_inferior_event): Rename from
12024 handle_inferior_event_1. Create a scoped_value_mark.
12025 (handle_inferior_event): Remove.
12026
12027 2019-03-19 Tom Tromey <tromey@adacore.com>
12028
12029 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12030 * infrun.h (print_stop_event): Add "displays" parameter.
12031 * infrun.c (print_stop_event): Add "displays" parameter.
12032
12033 2019-03-19 Pedro Alves <palves@redhat.com>
12034
12035 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12036 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12037 to -1. Fix TABs vs spaces.
12038 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12039 * tui/tui-out.h (tui_ui_out) Add intro comments.
12040 <m_line, m_start_of_line>: In-class initialize, and add describing
12041 comment.
12042
12043 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12044
12045 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12046 variable names.
12047 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12048
12049 2019-03-18 Pedro Alves <palves@redhat.com>
12050 Eli Zaretskii <eliz@gnu.org>
12051
12052 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12053 m_line and m_start_of_line.
12054
12055 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12056
12057 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12058 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12059 it returns a newline. This fixes a regression in TU mode, whereby
12060 the next line is output on the same screen line as the user input.
12061
12062 2019-03-18 Tom Tromey <tromey@adacore.com>
12063
12064 * minsyms.c (minimal_symbol_reader::install): Remove call to
12065 obstack_blank.
12066
12067 2019-03-18 Pedro Alves <palves@redhat.com>
12068
12069 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12070 New globals.
12071 (apply_style): New, factored out from ...
12072 (apply_ansi_escape): ... this. Handle reverse video mode.
12073 (tui_set_reverse_mode): New function.
12074 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12075 * tui/tui-winsource.c (tui_show_source_line): Use
12076 tui_set_reverse_mode instead of setting A_STANDOUT.
12077 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12078 New setter methods.
12079
12080 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12081
12082 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12083 Handle tabs.
12084
12085 2019-03-18 Tom Tromey <tromey@adacore.com>
12086
12087 * ada-lang.c (empty_array): Add "high" parameter.
12088 (ada_evaluate_subexp): Update.
12089
12090 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12091
12092 * unittests/string_view-selftests.c: Define
12093 _initialize_string_view_selftests unconditionally.
12094
12095 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12096
12097 PR gdb/24350
12098 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12099
12100 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12101
12102 PR gdb/24351
12103 * windows-nat.c (display_selector): Fix format specifiers.
12104
12105 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12106
12107 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12108 tui_refill_source_window instead of tui_refresh_win, to update the
12109 current execution line. This fixes redisplay of the current line
12110 when stepping through the code with "next" or "step".
12111
12112 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12113
12114 * source-cache.c (source_cache::get_source_lines): Call
12115 find_source_lines to initialize s->nlines. This fixes vertical
12116 scrolling of TUI source window when the DOWN arrow is pressed.
12117
12118 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12119
12120 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12121 linux-thread-db.c (_initialize_thread_db): Likewise.
12122
12123 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12124
12125 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12126 wclrtoeol in tui_show_source_line". This reverts changes made in
12127 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12128
12129 2019-03-15 Tom Tromey <tom@tromey.com>
12130
12131 * symtab.h (struct minimal_symbol): Derive from
12132 general_symbol_info.
12133 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12134 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12135 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12136 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12137 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12138 (MSYMBOL_SEARCH_NAME): Update.
12139 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12140 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12141 * minsyms.c (minimal_symbol_reader::record_full): Update.
12142
12143 2019-03-15 Tom Tromey <tom@tromey.com>
12144
12145 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12146
12147 2019-03-15 Tom Tromey <tom@tromey.com>
12148
12149 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12150 unique_xmalloc_ptr.
12151 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12152 Update.
12153 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12154 (build_minimal_symbol_hash_tables)
12155 (minimal_symbol_reader::install): Update.
12156
12157 2019-03-15 Tom Tromey <tom@tromey.com>
12158
12159 * symtab.c (create_demangled_names_hash): Update.
12160 (symbol_set_names): Update.
12161 * objfiles.h (struct objfile_per_bfd_storage)
12162 <demangled_names_hash>: Now an htab_up.
12163 * objfiles.c (objfile_per_bfd_storage): Simplify.
12164
12165 2019-03-15 Tom Tromey <tom@tromey.com>
12166
12167 * objfiles.h (struct objfile_per_bfd_storage): Declare
12168 destructor.
12169 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12170 New.
12171 (get_objfile_bfd_data): Use new. Don't initialize
12172 language_of_main.
12173 (free_objfile_per_bfd_storage): Remove.
12174 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12175
12176 2019-03-15 Tom Tromey <tom@tromey.com>
12177
12178 * symfile.c (reread_symbols): Update.
12179 * objfiles.c (objfile::objfile): Update.
12180 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12181 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12182 comment.
12183 (minimal_symbol_reader::install): Update.
12184 (terminate_minimal_symbol_table): Remove.
12185 * jit.c (jit_object_close_impl): Update.
12186
12187 2019-03-15 Tom Tromey <tom@tromey.com>
12188
12189 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12190 initializations.
12191
12192 2019-03-15 Tom Tromey <tom@tromey.com>
12193
12194 * objfiles.h (struct objfile_per_bfd_storage)
12195 <demangled_hash_languages>: Now a bitset.
12196 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12197 (lookup_minimal_symbol): Update.
12198
12199 2019-03-15 Tom Tromey <tom@tromey.com>
12200
12201 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12202 Don't return the symbol.
12203 * coffread.c (record_minimal_symbol): Use record_full.
12204
12205 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12206
12207 The MS-Windows port of ncurses fails to switch to a color pair if
12208 one or both of the colors are the implicit default colors. This
12209 change records the default colors when TUI is initialized, and
12210 then specifies them explicitly when a color pair uses the default
12211 colors. This allows color styling in TUI mode on MS-Windows.
12212
12213 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12214 ncurses_norm_attr.
12215 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12216 colors in ncurses_norm_attr.
12217 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12218 "none", replace it with the default color recorded in
12219 ncurses_norm_attr.
12220
12221 2019-03-14 Tom Tromey <tromey@adacore.com>
12222
12223 * source-cache.h (class source_cache) <get_source_lines>: Return
12224 std::string.
12225 * source-cache.c (source_cache::extract_lines): Handle case where
12226 first_pos==npos. Return std::string.
12227 (source_cache::get_source_lines): Update.
12228
12229 2019-03-14 Tom Tromey <tromey@adacore.com>
12230
12231 * NEWS: Add item for "style sources" commands.
12232 * source-cache.c (source_cache::get_source_lines): Check
12233 source_styling.
12234 * cli/cli-style.c (source_styling): New global.
12235 (_initialize_cli_style): Add "style sources" commands.
12236 (show_style_sources): New function.
12237 * cli/cli-style.h (source_styling): Declare.
12238
12239 2019-03-14 Pedro Alves <palves@redhat.com>
12240 Tom Tromey <tromey@adacore.com>
12241
12242 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12243 * tui/tui-winsource.c (tui_refill_source_window): New function,
12244 from...
12245 (tui_horizontal_source_scroll): ... here. Move some logic.
12246 * cli/cli-style.c (set_style_enabled): Notify new observable.
12247 * tui/tui-hooks.c (tui_redisplay_source): New function.
12248 (tui_attach_detach_observers): Attach or detach
12249 tui_redisplay_source.
12250 * observable.h (source_styling_changed): New observable.
12251 * observable.c: Define source_styling_changed observable.
12252
12253 2019-03-13 Tom Tromey <tromey@adacore.com>
12254
12255 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12256 (i386_gnu_nat_target::store_registers): Update.
12257 * target-debug.h (target_debug_print_std_string): New macro.
12258 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12259 * windows-tdep.c (display_one_tib): Update.
12260 * tui/tui-stack.c (tui_make_status_line): Update.
12261 * top.c (print_inferior_quit_action): Update.
12262 * thread.c (thr_try_catch_cmd): Update.
12263 (add_thread_with_info): Update.
12264 (thread_target_id_str): Update.
12265 (thr_try_catch_cmd): Update.
12266 (thread_command): Update.
12267 (thread_find_command): Update.
12268 * record-btrace.c (record_btrace_target::info_record)
12269 (record_btrace_resume_thread, record_btrace_target::resume)
12270 (record_btrace_cancel_resume, record_btrace_step_thread)
12271 (record_btrace_target::wait, record_btrace_target::wait)
12272 (record_btrace_target::wait, record_btrace_target::stop): Update.
12273 * progspace.c (print_program_space): Update.
12274 * process-stratum-target.c
12275 (process_stratum_target::thread_address_space): Update.
12276 * linux-fork.c (linux_fork_mourn_inferior)
12277 (detach_checkpoint_command, info_checkpoints_command)
12278 (linux_fork_context): Update.
12279 (linux_fork_detach): Update.
12280 (class scoped_switch_fork_info): Update.
12281 (delete_checkpoint_command): Update.
12282 * infrun.c (follow_fork_inferior): Update.
12283 (follow_fork_inferior): Update.
12284 (proceed_after_vfork_done): Update.
12285 (handle_vfork_child_exec_or_exit): Update.
12286 (follow_exec): Update.
12287 (displaced_step_prepare_throw): Update.
12288 (displaced_step_restore): Update.
12289 (start_step_over): Update.
12290 (resume_1): Update.
12291 (clear_proceed_status_thread): Update.
12292 (proceed): Update.
12293 (print_target_wait_results): Update.
12294 (do_target_wait): Update.
12295 (context_switch): Update.
12296 (stop_all_threads): Update.
12297 (restart_threads): Update.
12298 (finish_step_over): Update.
12299 (handle_signal_stop): Update.
12300 (switch_back_to_stepped_thread): Update.
12301 (keep_going_pass_signal): Update.
12302 (print_exited_reason): Update.
12303 (normal_stop): Update.
12304 * inferior.c (inferior_pid_to_str): Change return type.
12305 (print_selected_inferior): Update.
12306 (add_inferior): Update.
12307 (detach_inferior): Update.
12308 * dummy-frame.c (fprint_dummy_frames): Update.
12309 * dcache.c (dcache_info_1): Update.
12310 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12311 (btrace_fetch, btrace_clear): Update.
12312 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12313 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12314 type.
12315 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12316 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12317 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12318 * gdbarch.c, gdbarch.h: Rebuild.
12319 * gdbarch.sh (core_pid_to_str): Change return type.
12320 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12321 return type.
12322 (windows_nat_target::pid_to_str): Change return type.
12323 (windows_delete_thread): Update.
12324 (windows_nat_target::attach): Update.
12325 (windows_nat_target::files_info): Update.
12326 * target-delegates.c: Rebuild.
12327 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12328 return type.
12329 (sol_thread_target::pid_to_str): Change return type.
12330 * remote.c (class remote_target) <pid_to_str>: Change return
12331 type.
12332 (remote_target::pid_to_str): Change return type.
12333 (extended_remote_target::attach, remote_target::remote_stop_ns)
12334 (remote_target::remote_notif_remove_queued_reply)
12335 (remote_target::push_stop_reply, remote_target::disable_btrace):
12336 Update.
12337 (extended_remote_target::attach): Update.
12338 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12339 type.
12340 (gdbsim_target::pid_to_str): Change return type.
12341 * ravenscar-thread.c (struct ravenscar_thread_target)
12342 <pid_to_str>: Change return type.
12343 (ravenscar_thread_target::pid_to_str): Change return type.
12344 * procfs.c (class procfs_target) <pid_to_str>: Change return
12345 type.
12346 (procfs_target::pid_to_str): Change return type.
12347 (procfs_target::attach): Update.
12348 (procfs_target::detach): Update.
12349 (procfs_target::fetch_registers): Update.
12350 (procfs_target::store_registers): Update.
12351 (procfs_target::wait): Update.
12352 (procfs_target::files_info): Update.
12353 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12354 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12355 return type.
12356 (nto_procfs_target::pid_to_str): Change return type.
12357 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12358 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12359 return type.
12360 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12361 (exit_lwp): Update.
12362 (attach_proc_task_lwp_callback, get_detach_signal)
12363 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12364 (linux_nat_target::resume, wait_lwp, stop_callback)
12365 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12366 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12367 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12368 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12369 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12370 type.
12371 (inf_ptrace_target::attach): Update.
12372 (inf_ptrace_target::files_info): Update.
12373 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12374 type.
12375 (go32_nat_target::pid_to_str): Change return type.
12376 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12377 (gnu_nat_target::wait): Update.
12378 (gnu_nat_target::wait): Update.
12379 (gnu_nat_target::resume): Update.
12380 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12381 (fbsd_nat_target::wait): Update.
12382 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12383 type.
12384 (darwin_nat_target::attach): Update.
12385 * corelow.c (class core_target) <pid_to_str>: Change return type.
12386 (core_target::pid_to_str): Change return type.
12387 * target.c (normal_pid_to_str): Change return type.
12388 (default_pid_to_str): Likewise.
12389 (target_pid_to_str): Change return type.
12390 (target_translate_tls_address): Update.
12391 (target_announce_detach): Update.
12392 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12393 return type.
12394 (bsd_uthread_target::pid_to_str): Change return type.
12395 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12396 type.
12397 (bsd_kvm_target::pid_to_str): Change return type.
12398 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12399 return type.
12400 (aix_thread_target::pid_to_str): Change return type.
12401 * target.h (struct target_ops) <pid_to_str>: Change return type.
12402 (target_pid_to_str, normal_pid_to_str): Likewise.
12403 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12404 type.
12405 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12406 type.
12407 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12408 return type.
12409 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12410 type.
12411 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12412 type.
12413 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12414 return type.
12415
12416 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12417
12418 * NEWS: Mention that the new default MI version is 3. Mention
12419 changes to the output of commands and events that deal with
12420 multi-location breakpoints.
12421 * breakpoint.c: Include "mi/mi-out.h".
12422 (print_one_breakpoint): Change output syntax if using MI version
12423 >= 3.
12424 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12425 New.
12426 (mi_multi_location_breakpoint_output_fixed): New.
12427 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12428 (mi_cmd_fix_multi_location_breakpoint_output): New.
12429 (mi_multi_location_breakpoint_output_fixed): New.
12430 * mi/mi-cmds.c (mi_cmds): Register command
12431 -fix-multi-location-breakpoint-output.
12432 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12433 interpreter "mi".
12434
12435 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12436
12437 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12438 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12439 instantiate mi_ui_out based on interpreter name.
12440 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12441 * mi/mi-main.c (mi_load_progress): Likewise.
12442
12443 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12444
12445 * NEWS: Combine separate "New targets" sections for 8.3.
12446
12447 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12448
12449 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12450 (ppcfbsd_init_abi): Install gdbarch
12451 "fetch_tls_load_module_address" and "get_thread_local_address"
12452 methods.
12453
12454 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12455
12456 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12457 (riscv_fbsd_init_abi): Install gdbarch
12458 "fetch_tls_load_module_address" and "get_thread_local_address"
12459 methods.
12460
12461 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12462
12463 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12464 (i386fbsd_init_abi): Install gdbarch
12465 "fetch_tls_load_module_address" and "get_thread_local_address"
12466 methods.
12467
12468 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12469
12470 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12471 (amd64fbsd_init_abi): Install gdbarch
12472 "fetch_tls_load_module_address" and "get_thread_local_address"
12473 methods.
12474
12475 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12476
12477 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12478 (struct fbsd_pspace_data): New type.
12479 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12480 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12481 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12482 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12483 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12484
12485 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12486
12487 * gdbtypes.c (lookup_struct_elt): New function.
12488 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12489 * gdbtypes.h (struct struct_elt): New type.
12490 (lookup_struct_elt): New prototype.
12491
12492 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12493
12494 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12495 remove disabled code block.
12496
12497 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12498
12499 * gdbarch.sh (get_thread_local_address): New method.
12500 * gdbarch.h, gdbarch.c: Regenerate.
12501 * target.c (target_translate_tls_address): Use
12502 gdbarch_get_thread_local_address if present instead of
12503 target::get_thread_local_address.
12504
12505 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12506
12507 * target.h (target::get_thread_local_address): Update comment.
12508
12509 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12510
12511 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12512 objfile->separate_debug_objfile_backlink if not NULL.
12513
12514 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12515
12516 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12517 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12518 (amd64bsd_store_inferior_registers): Likewise.
12519 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12520 Enable segment base registers.
12521 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12522 PT_GETFSBASE and PT_GETGSBASE.
12523 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12524 PT_SETGSBASE.
12525 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12526 segment base registers.
12527 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12528
12529 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12530
12531 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12532 Update calls to i386_target_description to add 'segments'
12533 parameter.
12534 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12535 add segment base registers.
12536 * arch/i386.c (i386_create_target_description): Add 'segments'
12537 parameter to enable segment base registers.
12538 * arch/i386.h (i386_create_target_description): Likewise.
12539 * features/i386/32bit-segments.xml: New file.
12540 * features/i386/32bit-segments.c: Generate.
12541 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12542 call to i386_target_description to add 'segments' parameter.
12543 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12544 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12545 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12546 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12547 if feature is present.
12548 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12549 Add 'segments' parameter to call to i386_target_description.
12550 (i386_target_description): Add 'segments' parameter to enable
12551 segment base registers.
12552 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12553 to call to i386_target_description.
12554 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12555 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12556 Define I386_NUM_REGS.
12557 (i386_target_description): Add 'segments' parameter to enable
12558 segment base registers.
12559
12560 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12561
12562 PR/24325
12563 * source-cache.c: #undef open and close, to avoid unresolved
12564 externals during linking.
12565
12566 2019-03-12 Tom Tromey <tromey@adacore.com>
12567
12568 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12569 const. Add initializers.
12570 (_initialize_remote): Don't initialize ptid globals.
12571
12572 2019-03-12 Pedro Alves <palves@redhat.com>
12573
12574 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12575
12576 2019-03-12 Pedro Alves <palves@redhat.com>
12577
12578 * cp-name-parser.y (main): Remove unused 'len' variable.
12579
12580 2019-03-12 Tom Tromey <tromey@adacore.com>
12581
12582 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12583 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12584
12585 2019-03-12 Tom Tromey <tromey@adacore.com>
12586
12587 * linux-nat.c (iterate_over_lwps): Update.
12588 (stop_callback): Remove parameter.
12589 (stop_wait_callback, detach_callback, resume_set_callback)
12590 (select_singlestep_lwp_callback, set_ignore_sigint)
12591 (status_callback, resumed_callback, resume_clear_callback)
12592 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12593 data parameter.
12594 (linux_nat_target::detach, linux_nat_target::resume)
12595 (linux_stop_and_wait_all_lwps, select_event_lwp)
12596 (linux_nat_filter_event, linux_nat_wait_1)
12597 (linux_nat_target::kill, linux_nat_target::stop)
12598 (linux_nat_target::stop): Update.
12599 (linux_nat_resume_callback): Change type.
12600 (resume_stopped_resumed_lwps, count_events_callback)
12601 (select_event_lwp_callback): Likewise.
12602 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12603 * arm-linux-nat.c (struct update_registers_data): Remove.
12604 (update_registers_callback): Change type.
12605 (arm_linux_insert_hw_breakpoint1): Update.
12606 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12607 parameter.
12608 (x86_linux_dr_set_addr): Update.
12609 (x86_linux_dr_set_control): Update.
12610 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12611 (iterate_over_lwps): Use gdb::function_view.
12612 * nat/aarch64-linux-hw-point.c (struct
12613 aarch64_dr_update_callback_param): Remove.
12614 (debug_reg_change_callback): Change type.
12615 (aarch64_notify_debug_reg_change): Update.
12616 * s390-linux-nat.c (s390_refresh_per_info): Update.
12617
12618 2019-03-11 Tom Tromey <tromey@adacore.com>
12619
12620 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12621 redundant assignment to "this_cu".
12622
12623 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12624
12625 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12626
12627 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12628
12629 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12630 from...
12631 (rank_one_type): ... this.
12632
12633 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12634
12635 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12636 from...
12637 (rank_one_type): ... this.
12638
12639 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12640
12641 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12642 from...
12643 (rank_one_type): ... this.
12644
12645 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12646
12647 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12648 from...
12649 (rank_one_type): ... this.
12650
12651 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12652
12653 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12654 from...
12655 (rank_one_type): ... this.
12656
12657 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12658
12659 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12660 from...
12661 (rank_one_type): ... this.
12662
12663 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12664
12665 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12666 from...
12667 (rank_one_type): ... this.
12668
12669 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12670
12671 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12672 from...
12673 (rank_one_type): ... this.
12674
12675 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12676
12677 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12678 from...
12679 (rank_one_type): ... this.
12680
12681 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12682
12683 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12684 from...
12685 (rank_one_type): ... this.
12686
12687 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12688
12689 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12690 from...
12691 (rank_one_type): ... this.
12692
12693 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12694
12695 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12696 from...
12697 (rank_one_type): ... this.
12698
12699 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12700
12701 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12702 inferior-events' shows the example events.
12703
12704 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12705
12706 Support styling on native MS-Windows console
12707
12708 PR/24315
12709 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12710 on MS-Windows if $TERM is not defined.
12711
12712 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12713
12714 * posix-hdep.c (gdb_console_fputs):
12715 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12716 functions.
12717 * ui-file.h (gdb_console_fputs): Add prototype.
12718
12719 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12720 back to fputs only if the former returns zero.
12721
12722 2019-03-07 Tom Tromey <tom@tromey.com>
12723
12724 * symmisc.c (print_symbol_bcache_statistics): Update.
12725 (print_objfile_statistics): Update.
12726 * symfile.c (allocate_symtab): Update.
12727 * stabsread.c: Don't include bcache.h.
12728 * psymtab.h (struct psymbol_bcache): Don't declare.
12729 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12730 (psymbol_bcache_init, psymbol_bcache_free)
12731 (psymbol_bcache_get_bcache): Don't declare.
12732 * psymtab.c (struct psymbol_bcache): Remove.
12733 (psymtab_storage::psymtab_storage): Update.
12734 (psymtab_storage::~psymtab_storage): Update.
12735 (psymbol_bcache_init, psymbol_bcache_free)
12736 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12737 (add_psymbol_to_bcache): Update.
12738 (allocate_psymtab): Update.
12739 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12740 macro_cache>: No longer pointers.
12741 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12742 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12743 * macrotab.c (macro_bcache): Update.
12744 * macroexp.c: Don't include bcache.h.
12745 * gdbtypes.c (check_types_worklist): Update.
12746 (types_deeply_equal): Remove TRY/CATCH. Update.
12747 * elfread.c (elf_symtab_read): Update.
12748 * dwarf2read.c: Don't include bcache.h.
12749 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12750 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12751 (print_bcache_statistics, bcache_memory_used): Don't declare.
12752 (struct bcache): Move from bcache.c. Add constructor, destructor,
12753 methods. Rename all data members.
12754 * bcache.c (struct bcache): Move to bcache.h.
12755 (bcache::expand_hash_table): Rename from expand_hash_table.
12756 (bcache): Remove.
12757 (bcache::insert): Rename from bcache_full.
12758 (bcache::compare): Rename from bcache_compare.
12759 (bcache_xmalloc): Remove.
12760 (bcache::~bcache): Rename from bcache_xfree.
12761 (bcache::print_statistics): Rename from print_bcache_statistics.
12762 (bcache::memory_used): Rename from bcache_memory_used.
12763
12764 2019-03-07 Pedro Alves <palves@redhat.com>
12765
12766 * infrun.c (normal_stop): Also check for
12767 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12768
12769 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12770
12771 * f-lang.c (value_from_host_double): Moved to...
12772 * value.c (value_from_host_double): ...here.
12773 * value.h (value_from_host_double): Declare.
12774 * guile/scm-math.c (vlscm_convert_typed_number): Use
12775 value_from_host_double.
12776 (vlscm_convert_number): Likewise.
12777 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12778 * python/py-value.c (convert_value_from_python): Likewise.
12779
12780 2019-03-06 Tom Tromey <tom@tromey.com>
12781
12782 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12783
12784 2019-03-06 Tom Tromey <tom@tromey.com>
12785
12786 * utils.h (free_current_contents): Don't declare.
12787 * utils.c (free_current_contents): Remove.
12788
12789 2019-03-06 Tom Tromey <tom@tromey.com>
12790
12791 * top.c (quit_force): Update.
12792 * main.c (captured_command_loop): Update.
12793 * common/new-op.c (operator new): Update.
12794 * common/common-exceptions.c (struct catcher)
12795 <save_cleanup_chain>: Remove member.
12796 (exceptions_state_mc_init): Update.
12797 (exception_try_scope_entry): Return nullptr.
12798 (exception_try_scope_exit, exception_rethrow)
12799 (throw_exception_sjlj, throw_exception_cxx): Update.
12800 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12801 (all_cleanups, do_cleanups, discard_cleanups)
12802 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12803 (restore_cleanups, restore_final_cleanups): Don't declare.
12804 (do_final_cleanups): Remove parameter.
12805 * common/cleanups.c (cleanup_chain, make_cleanup)
12806 (make_cleanup_dtor, all_cleanups, do_cleanups)
12807 (discard_my_cleanups, discard_cleanups)
12808 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12809 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12810 (null_cleanup): Remove.
12811 (do_final_cleanups): Remove parameter.
12812
12813 2019-03-06 Tom Tromey <tom@tromey.com>
12814
12815 * remote.c (remote_target::remote_parse_stop_reply): Use
12816 unique_xmalloc_ptr.
12817
12818 2019-03-06 Tom Tromey <tom@tromey.com>
12819
12820 * stabsread.c (struct stabs_field_info): Rename from field_info.
12821 <list, fnlist>: Add initializers.
12822 <obstack>: New member.
12823 (read_member_functions, read_struct_fields, read_baseclasses):
12824 Allocate on obstack. Don't use cleanups.
12825 (read_one_struct_field, read_member_functions, read_struct_fields)
12826 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12827 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12828 (read_struct_type): Update.
12829
12830 2019-03-06 Tom Tromey <tom@tromey.com>
12831
12832 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12833 * common/filestuff.h (make_cleanup_close): Don't declare.
12834 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12835 Remove.
12836
12837 2019-03-06 Tom Tromey <tom@tromey.com>
12838
12839 * solib-aix.c: Use make_scope_exit.
12840
12841 2019-03-06 Tom Tromey <tom@tromey.com>
12842
12843 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12844 Use make_scope_exit.
12845
12846 2019-03-06 Tom Tromey <tom@tromey.com>
12847
12848 * solib-svr4.c (disable_probes_interface): Remove parameter.
12849 (svr4_handle_solib_event): Use make_scope_exit.
12850
12851 2019-03-06 Tom Tromey <tom@tromey.com>
12852
12853 * remote.c (struct stop_reply_deleter): Remove.
12854 (stop_reply_up): Update.
12855 (struct stop_reply): Derive from notif_event. Don't typedef.
12856 <regcache>: Now a std::vector.
12857 (stop_reply_xfree): Remove.
12858 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12859 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12860 (remote_target::discard_pending_stop_replies): Use delete.
12861 (remote_target::remote_parse_stop_reply): Update.
12862 (remote_target::process_stop_reply): Update.
12863 * remote-notif.h (struct notif_event): Add virtual destructor.
12864 Remove "dtr" member.
12865 (struct notif_client) <alloc_event>: Return a unique_ptr.
12866 (notif_event_xfree): Don't declare.
12867 (notif_event_up): New typedef.
12868 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12869 (notif_event_xfree, do_notif_event_xfree): Remove.
12870 (remote_notif_state_xfree): Update.
12871
12872 2019-03-06 Tom Tromey <tom@tromey.com>
12873
12874 * infrun.c (displaced_step_clear_cleanup): Now a
12875 forward_scope_exit type.
12876 (displaced_step_prepare_throw): Update.
12877 (displaced_step_fixup): Update.
12878
12879 2019-03-06 Tom Tromey <tom@tromey.com>
12880
12881 * inferior.h (class inferior): Update comment.
12882 * gdbthread.h (class thread_info): Update comment.
12883
12884 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12885 Tom Tromey <tom@tromey.com>
12886
12887 * stabsread.h (struct stab_section_list): Remove.
12888 (coffstab_build_psymtabs): Update.
12889 * dbxread.c (symbuf_sections): Now a std::vector.
12890 (sect_idx): New global.
12891 (fill_symbuf): Update.
12892 (coffstab_build_psymtabs): Change type of stabsects parameter.
12893 Update.
12894 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12895 std::vector.
12896 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12897 (coff_locate_sections): Update.
12898 (coff_symfile_read): Remove cleanups. Update.
12899 (init_stringtab): Add storage parameter.
12900 (free_stringtab, free_stringtab_cleanup): Remove.
12901 (init_lineno): Add storage parameter.
12902 (free_linetab, free_linetab_cleanup): Remove.
12903
12904 2019-03-06 Pedro Alves <palves@redhat.com>
12905
12906 * linux-fork.c (fork_info::clobber_regs): Delete.
12907 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12908 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12909 comment. Adjust.
12910 (scoped_switch_fork_info::scoped_switch_fork_info)
12911 (checkpoint_command, linux_fork_context): Adjust
12912 fork_save_infrun_state calls.
12913
12914 2019-03-06 Pedro Alves <palves@redhat.com>
12915
12916 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12917 (inf_has_multiple_threads): Return 'bool' and rewrite using
12918 inferior_info::threads().
12919
12920 2019-03-06 Pedro Alves <palves@redhat.com>
12921
12922 * linux-fork.c: Include <list>.
12923 (fork_list): Now a std::list instance.
12924 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12925 (forks_exist_p, find_last_fork): Adjust.
12926 (new_fork): Delete.
12927 (one_fork_p): New.
12928 (add_fork): Adjust.
12929 (free_fork): Delete, folded into fork_info::~fork_info().
12930 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12931 Adjust.
12932 (init_fork_list): Delete.
12933 (linux_fork_killall, linux_fork_mourn_inferior)
12934 (linux_fork_detach, info_checkpoints_command): Adjust.
12935 (_initialize_linux_fork): No longer call init_fork_list.
12936
12937 2019-03-06 Pedro Alves <palves@redhat.com>
12938
12939 * linux-fork.c (new_fork): New, split out of ...
12940 (add_fork): ... this. Return void. Move "first fork" special
12941 case from here, to ...
12942 (checkpoint_command): ... here.
12943 * linux-linux.h (add_fork): Return void.
12944
12945 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12946
12947 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12948
12949 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12950 Chris January <chris.january@arm.com>
12951 David Lecomber <david.lecomber@arm.com>
12952
12953 * f-exp.y: New token, UNOP_INTRINSIC.
12954 (exp): New pattern using UNOP_INTRINSIC token.
12955 (f77_keywords): Add 'abs' keyword.
12956 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12957 (value_from_host_double): New function.
12958 (evaluate_subexp_f): Support UNOP_ABS.
12959
12960 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12961
12962 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12963 types.
12964
12965 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12966
12967 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12968 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12969 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12970
12971 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12972
12973 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12974
12975 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12976 Chris January <chris.january@arm.com>
12977
12978 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12979 * f-exp.y: Define 'KIND' token.
12980 (exp): New pattern for KIND expressions.
12981 (ptype): Handle types with a kind extension.
12982 (direct_abs_decl): Extend to spot kind extensions.
12983 (f77_keywords): Add 'kind' to the list.
12984 (push_kind_type): New function.
12985 (convert_to_kind_type): New function.
12986 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12987 * parse.c (operator_length_standard): Likewise.
12988 * parser-defs.h (enum type_pieces): Add tp_kind.
12989 * std-operator.def: Add UNOP_KIND.
12990
12991 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12992
12993 * f-exp.y (f_parse): Set yydebug.
12994
12995 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12996
12997 * f-lang.c (evaluate_subexp_f): New function.
12998 (exp_descriptor_f): New global.
12999 (f_language_defn): Use exp_descriptor_f instead of
13000 exp_descriptor_standard.
13001
13002 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13003
13004 * f-exp.y (struct token): Add comments.
13005 (dot_ops): Remove uppercase versions and the end marker.
13006 (f77_keywords): Likewise.
13007 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13008 entries in the dot_ops array are case insensitive, and use
13009 strncasecmp to compare strings. Also some whitespace cleanup in
13010 this area. Similar for the f77_keywords array, except entries in
13011 this list might be case sensitive.
13012
13013 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13014
13015 * f-exp.y (struct f77_boolean_val): Add comments.
13016 (boolean_values): Remove uppercase versions, and end marker.
13017 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13018 and use strncasecmp to achieve case insensitivity. Additionally,
13019 perform whitespace cleanup around this code.
13020
13021 2019-03-06 Tom Tromey <tromey@adacore.com>
13022
13023 * remote-sim.c (gdbsim_target_open): Use result of
13024 gdb_argv::release.
13025
13026 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13027 Dirk Schubert <dirk.schubert@arm.com>
13028 Chris January <chris.january@arm.com>
13029
13030 * eval.c (evaluate_subexp_standard): Call Fortran argument
13031 wrapping logic.
13032 * f-lang.c (struct value): A value which can be passed into a
13033 Fortran function call.
13034 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13035 where appropriate.
13036 (struct type): Value ready for a Fortran function call.
13037 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13038 is needed.
13039 * f-lang.h (fortran_argument_convert): Declaration.
13040 (fortran_preserve_arg_pointer): Declaration.
13041 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13042
13043 2019-03-05 Tom Tromey <tromey@adacore.com>
13044
13045 * python/py-prettyprint.c (print_string_repr): Remove #if.
13046 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13047
13048 2019-03-05 Tom Tromey <tromey@adacore.com>
13049
13050 * target.c (the_dummy_target): Move later. Change type to
13051 "dummy_target".
13052 (initialize_targets): Don't initialize the_dummy_target.
13053
13054 2019-03-05 Tom Tromey <tromey@adacore.com>
13055
13056 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13057 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13058
13059 2019-03-05 Tom Tromey <tromey@adacore.com>
13060
13061 * windows-nat.c (windows_nat_target::attach)
13062 (windows_nat_target::detach): Don't call gdb_flush.
13063 * valprint.c (generic_val_print, val_print, val_print_string):
13064 Don't call gdb_flush.
13065 * utils.c (defaulted_query): Don't call gdb_flush.
13066 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13067 * target.c (target_announce_detach): Don't call gdb_flush.
13068 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13069 * remote.c (extended_remote_target::attach): Don't call
13070 gdb_flush.
13071 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13072 * printcmd.c (do_examine): Don't call gdb_flush.
13073 (info_display_command): Don't call gdb_flush.
13074 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13075 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13076 * memattr.c (info_mem_command): Don't call gdb_flush.
13077 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13078 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13079 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13080 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13081 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13082 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13083 (gnu_nat_target::detach): Don't call gdb_flush.
13084 * f-valprint.c (f_val_print): Don't call gdb_flush.
13085 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13086 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13087 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13088 gdb_flush.
13089 * c-valprint.c (c_val_print): Don't call gdb_flush.
13090 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13091
13092 2019-03-05 Tom Tromey <tromey@adacore.com>
13093
13094 * varobj.c (update_dynamic_varobj_children): Update.
13095 (install_default_visualizer): Use reset, not release.
13096 * value.c (set_internalvar): Update.
13097 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13098 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13099 ATTRIBUTE_UNUSED_RESULT.
13100
13101 2019-03-05 Tom Tromey <tromey@adacore.com>
13102
13103 * remote.c (class scoped_remote_fd) <release>: Add
13104 ATTRIBUTE_UNUSED_RESULT.
13105
13106 2019-03-05 Tom Tromey <tromey@adacore.com>
13107
13108 * macroexp.c (struct macro_buffer) <release>: Add
13109 ATTRIBUTE_UNUSED_RESULT.
13110
13111 2019-03-05 Tom Tromey <tromey@adacore.com>
13112
13113 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13114 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13115 ATTRIBUTE_UNUSED_RESULT.
13116
13117 2019-03-05 Tom Tromey <tromey@adacore.com>
13118
13119 * common/scoped_fd.h (class scoped_fd) <release>: Add
13120 ATTRIBUTE_UNUSED_RESULT.
13121
13122 2019-03-05 Tom Tromey <tromey@adacore.com>
13123
13124 * parser-defs.h (struct parser_state) <release>: Add
13125 ATTRIBUTE_UNUSED_RESULT.
13126
13127 2019-03-05 Tom Tromey <tromey@adacore.com>
13128
13129 * utils.h (class gdb_argv) <release>: Add
13130 ATTRIBUTE_UNUSED_RESULT.
13131 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13132
13133 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13134
13135 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13136 for-loop range, to avoid compiler warnings.
13137
13138 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13139 avoid compiler warnings about unused variables.
13140
13141 * NEWS: Mention end of support for native debugging on MS-Windows
13142 before XP.
13143
13144 PR gdb/24292
13145 * common/netstuff.c:
13146 * gdbserver/gdbreplay.c
13147 * gdbserver/remote-utils.c:
13148 * ser-tcp.c:
13149 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13150 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13151 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13152 'getaddrinfo' and 'freeaddrinfo' were not available before
13153 Windows XP, and mingw.org's MinGW headers by default define
13154 _WIN32_WINNT to 0x500.
13155
13156 2019-03-01 Gary Benson <gbenson@redhat.com>
13157
13158 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13159
13160 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13161 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13162
13163 PR gdb/8527
13164 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13165 set_sigint_trap, clear_sigint_trap.
13166
13167 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13168
13169 * target.c (target_detach): Clear the regcache and the
13170 frame cache.
13171
13172 2019-02-27 Pedro Alves <palves@redhat.com>
13173
13174 * utils.c (set_screen_size): When we cap the height/width sizes,
13175 tweak the corresponding command variable to show "unlimited":
13176
13177 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13178 Pedro Alves <palves@redhat.com>
13179
13180 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13181 before calling rl_set_screen_size.
13182
13183 2019-02-27 Tom Tromey <tromey@adacore.com>
13184
13185 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13186 define.
13187 * python/py-value.c: Remove Python 2.4 workaround.
13188 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13189 workaround.
13190 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13191 Python 2.4 workaround.
13192 * python/python-internal.h: Remove Python 2.4 comment.
13193 (Py_ssize_t): Don't define.
13194 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13195 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13196 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13197 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13198 * python/python.c (do_start_initialization): Remove Python 2.4
13199 workaround.
13200 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13201 (print_children): Remove Python 2.4 workaround.
13202 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13203 workaround.
13204 (CHARBUFFERPROC_NAME): Remove.
13205 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13206 Python 2.4 workaround.
13207
13208 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13209
13210 * NEWS: Note minimum Python version.
13211
13212 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13213
13214 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13215 code from these functions. Remove corresponding ifdefs. Use
13216 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13217 Remove gotos and target of gotos.
13218 (infpy_search_memory): Likewise.
13219
13220 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13221
13222 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13223 (hppa_gdbarch_init): Don't register deleted functions with
13224 gdbarch.
13225
13226 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13227
13228 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13229 (h8300_unwind_sp): Delete.
13230 (h8300_dummy_id): Delete.
13231 (h8300_gdbarch_init): Don't register deleted functions with
13232 gdbarch.
13233
13234 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13235
13236 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13237 (ft32_unwind_pc): Delete.
13238 (ft32_unwind_sp): Delete.
13239 (ft32_gdbarch_init): Don't register deleted functions with
13240 gdbarch.
13241
13242 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13243
13244 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13245 (frv_unwind_pc): Delete.
13246 (frv_unwind_sp): Delete.
13247 (frv_gdbarch_init): Don't register deleted functions with
13248 gdbarch.
13249
13250 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13251
13252 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13253 (riscv_unwind_pc): Delete.
13254 (riscv_unwind_sp): Delete.
13255 (riscv_gdbarch_init): Don't register deleted functions with
13256 gdbarch.
13257
13258 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13259
13260 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13261 (csky_unwind_pc): Delete.
13262 (csky_unwind_sp): Delete.
13263 (csky_gdbarch_init): Don't register deleted functions with
13264 gdbarch.
13265
13266 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13267
13268 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13269 (cris_unwind_pc): Delete.
13270 (cris_unwind_sp): Delete.
13271 (cris_gdbarch_init): Don't register deleted functions with
13272 gdbarch.
13273
13274 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13275
13276 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13277 (bfin_unwind_pc): Delete.
13278 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13279
13280 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13281
13282 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13283 (arm_unwind_pc): Delete.
13284 (arm_unwind_sp): Delete.
13285 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13286
13287 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13288
13289 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13290 (arc_unwind_pc): Delete.
13291 (arc_unwind_sp): Delete.
13292 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13293
13294 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13295
13296 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13297 (alpha_unwind_pc): Delete.
13298 (alpha_gdbarch_init): Don't register deleted functions with
13299 gdbarch.
13300
13301 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13302
13303 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13304 (aarch64_unwind_pc): Delete.
13305 (aarch64_unwind_sp): Delete.
13306 (aarch64_gdbarch_init): Don't register deleted functions with
13307 gdbarch.
13308
13309 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13310
13311 * gdbtypes.c (type_align): Don't consider static members when
13312 computing structure alignment.
13313
13314 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13315
13316 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13317 return 0 for other types.
13318 * arch-utils.c (default_type_align): Always return 0.
13319 * gdbarch.h: Regenerate.
13320 * gdbarch.sh (type_align): Extend comment.
13321 * gdbtypes.c (type_align): Add additional comments, always call
13322 gdbarch_type_align before applying the default rules.
13323 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13324 generic code will then apply a suitable default.
13325 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13326 types, return 0 for other types.
13327
13328 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13329
13330 * NEWS: Create a new section for the next release branch.
13331 Rename the section of the current branch, now that it has
13332 been cut.
13333
13334 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13335
13336 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13337 * version.in: Bump version to 8.3.50.DATE-git.
13338
13339 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13340
13341 * aix-thread.c (ptid_cmp): Remove unused variable.
13342 (get_signaled_thread): Likewise.
13343 (store_regs_user_thread): Likewise.
13344 (store_regs_kernel_thread): Likewise.
13345 (fetch_regs_kernel_thread): Remove shadowed variable.
13346
13347 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13348
13349 * features/riscv/32bit-cpu.xml: Add register numbers.
13350 * features/riscv/32bit-fpu.c: Regenerate.
13351 * features/riscv/32bit-fpu.xml: Add register numbers.
13352 * features/riscv/64bit-cpu.xml: Add register numbers.
13353 * features/riscv/64bit-fpu.c: Regenerate.
13354 * features/riscv/64bit-fpu.xml: Add register numbers.
13355
13356 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13357
13358 * NEWS: Mention two argument form of gdb.Value constructor.
13359 * python/py-value.c (convert_buffer_and_type_to_value): New
13360 function.
13361 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13362 Add support for handling an optional second argument. Call
13363 convert_buffer_and_type_to_value as appropriate.
13364 * python/python-internal.h (Py_buffer_deleter): New struct.
13365 (Py_buffer_up): New typedef.
13366
13367 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13368
13369 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13370 instead of releasing ownership.
13371
13372 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13373
13374 * dwarf2read.c (open_and_init_dwp_file): Call
13375 elf_numsections instead of bfd_count_sections to initialize
13376 dwp_file->num_sections.
13377
13378 2019-02-25 Tom Tromey <tromey@adacore.com>
13379
13380 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13381
13382 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13383
13384 * gcore.in: Add '--readnever' option when invoking GDB.
13385
13386 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13387
13388 * MAINTAINERS: Update my email address.
13389
13390 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13391
13392 * build-id.c (build_id_to_debug_bfd_1): New function.
13393 (build_id_to_debug_bfd): Look for separate debug file in
13394 sysroot.
13395
13396 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13397
13398 * gdbarch.sh: Update the copyright year range that is placed into
13399 generated files.
13400
13401 2019-02-22 Keith Seitz <keiths@redhat.com>
13402
13403 PR symtab/23853
13404 * linespec.c (create_sals_line_offset): Search for the default
13405 symtab's filename instead of its fullname.
13406
13407 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13408
13409 * NEWS: Update style defaults.
13410
13411 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13412
13413 * main.c (captured_main_1): Disable styling in batch mode.
13414
13415 2019-02-20 Tom Tromey <tom@tromey.com>
13416
13417 * symtab.c (symtab_symbol_info): Fix typos.
13418
13419 2019-02-20 Tom Tromey <tromey@adacore.com>
13420
13421 * findcmd.c (_initialize_mem_search): Use upper case for
13422 metasyntactic variables.
13423
13424 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13425
13426 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13427 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13428
13429 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13430
13431 * top.h (source_file_name): Change to std::string.
13432 * top.c (source_file_name): Likewise.
13433 (command_line_input): Adjust.
13434 * cli/cli-script.c (script_from_file): Adjust.
13435
13436 2019-02-19 Tom Tromey <tromey@adacore.com>
13437
13438 * ravenscar-thread.c
13439 (ravenscar_thread_target::update_thread_list): Don't call
13440 ada_build_task_list.
13441 * ada-lang.h (ada_build_task_list): Don't declare.
13442 * ada-tasks.c (struct ada_tasks_inferior_data)
13443 <task_list_valid_p>: Now bool.
13444 (read_known_tasks, ada_task_list_changed)
13445 (ada_tasks_invalidate_inferior_data): Update.
13446 (read_known_tasks_array): Return bool.
13447 (read_known_tasks_list): Likewise.
13448 (read_known_tasks): Return void.
13449 (ada_build_task_list): Now static.
13450
13451 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13452
13453 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13454 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13455
13456 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13457
13458 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13459 variant for ada_tasks_pspace_data_handle and
13460 ada_tasks_inferior_data_handle.
13461 (ada_tasks_pspace_data_cleanup): New function.
13462 (ada_tasks_inferior_data_cleanup): New function.
13463
13464 2019-02-17 Tom Tromey <tom@tromey.com>
13465
13466 * macrotab.h (macro_source_fullname): Return a std::string.
13467 * macrotab.c (macro_include, check_for_redefinition)
13468 (macro_undef, macro_lookup_definition, foreach_macro)
13469 (foreach_macro_in_scope): Update.
13470 (macro_source_fullname): Return a std::string.
13471 * macrocmd.c (show_pp_source_pos): Update.
13472
13473 2019-02-17 Tom Tromey <tom@tromey.com>
13474
13475 * macrocmd.c (show_pp_source_pos): Style the file names.
13476
13477 2019-02-17 Tom Tromey <tom@tromey.com>
13478
13479 PR tui/24197:
13480 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13481
13482 2019-02-17 Tom Tromey <tom@tromey.com>
13483
13484 * ada-lang.c (user_select_syms): Use filtered printing.
13485 * utils.c (wrap_style): New global.
13486 (desired_style): Remove.
13487 (emit_style_escape): Add stream parameter.
13488 (set_output_style, reset_terminal_style, prompt_for_continue):
13489 Update.
13490 (flush_wrap_buffer): Only flush gdb_stdout.
13491 (wrap_here): Set wrap_style.
13492 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13493 treat escape sequences as a character. Change when wrap buffer is
13494 flushed.
13495 (fputs_styled): Do not set the output style when the default is
13496 requested.
13497 * ui-style.h (struct ui_file_style) <is_default>: New method.
13498 * source.c (print_source_lines_base): Emit escape sequences in one
13499 piece.
13500
13501 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13502
13503 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13504 integers and enumeration types.
13505
13506 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13507
13508 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13509 instead of lookup_symbol_in_language
13510 (do_exact_match): New function.
13511 (ada_get_symbol_name_matcher): Return do_exact_match when
13512 doing a verbatim match.
13513
13514 2019-02-15 Tom Tromey <tromey@adacore.com>
13515
13516 * ravenscar-thread.c (ravenscar_thread_target::resume)
13517 (ravenscar_thread_target::wait): Special case wildcard requests.
13518
13519 2019-02-15 Tom Tromey <tromey@adacore.com>
13520
13521 * ravenscar-thread.c (base_ptid): Remove.
13522 (struct ravenscar_thread_target) <close>: New method.
13523 <m_base_ptid>: New member.
13524 <update_inferior_ptid, active_task, task_is_currently_active,
13525 runtime_initialized>: Declare methods.
13526 <ravenscar_thread_target>: Add constructor.
13527 (ravenscar_thread_target::task_is_currently_active)
13528 (ravenscar_thread_target::update_inferior_ptid)
13529 (ravenscar_runtime_initialized): Rename. Now methods.
13530 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13531 (ravenscar_thread_target::update_thread_list): Update.
13532 (ravenscar_thread_target::active_task): Now method.
13533 (ravenscar_thread_target::store_registers)
13534 (ravenscar_thread_target::prepare_to_store)
13535 (ravenscar_thread_target::prepare_to_store)
13536 (ravenscar_thread_target::mourn_inferior): Update.
13537 (ravenscar_inferior_created): Use "new" to create target.
13538 (ravenscar_thread_target::get_ada_task_ptid): Update.
13539 (_initialize_ravenscar): Don't initialize base_ptid.
13540 (ravenscar_ops): Remove global.
13541
13542 2019-02-15 Tom Tromey <tromey@adacore.com>
13543
13544 * target.h (push_target): Declare new overload.
13545 * target.c (push_target): New overload, taking an rvalue reference.
13546 * remote.c (remote_target::open_1): Use push_target overload.
13547 * corelow.c (core_target_open): Use push_target overload.
13548
13549 2019-02-15 Tom Tromey <tromey@adacore.com>
13550
13551 * ravenscar-thread.c (is_ravenscar_task)
13552 (ravenscar_task_is_currently_active): Return bool.
13553 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13554 (_initialize_ravenscar): Remove "(void)".
13555 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13556 Return bool.
13557
13558 2019-02-15 Tom Tromey <tromey@adacore.com>
13559
13560 * ravenscar-thread.c (ravenscar_runtime_initializer)
13561 (has_ravenscar_runtime, get_running_thread_id)
13562 (ravenscar_thread_target::resume): Fix indentation.
13563
13564 2019-02-15 Tom Tromey <tromey@adacore.com>
13565
13566 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13567 from ravenscar_arch_ops.
13568 (sparc_ravenscar_ops::fetch_registers)
13569 (sparc_ravenscar_ops::store_registers): Now methods.
13570 (sparc_ravenscar_prepare_to_store): Remove.
13571 (sparc_ravenscar_ops): Redefine.
13572 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13573 methods and destructor. Remove members.
13574 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13575 (ravenscar_thread_target::store_registers)
13576 (ravenscar_thread_target::prepare_to_store): Update.
13577 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13578 Remove.
13579 (struct ppc_ravenscar_powerpc_ops): Derive from
13580 ravenscar_arch_ops.
13581 (ppc_ravenscar_powerpc_ops::fetch_registers)
13582 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13583 (ppc_ravenscar_powerpc_ops): Redefine.
13584 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13585 (ppc_ravenscar_e500_ops::fetch_registers)
13586 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13587 (ppc_ravenscar_e500_ops): Redefine.
13588 * aarch64-ravenscar-thread.c
13589 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13590 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13591 (aarch64_ravenscar_fetch_registers)
13592 (aarch64_ravenscar_store_registers): Now methods.
13593 (aarch64_ravenscar_ops): Redefine.
13594
13595 2019-02-15 Tom Tromey <tromey@adacore.com>
13596
13597 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13598 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13599 (ravenscar_thread_target::stopped_by_watchpoint)
13600 (ravenscar_thread_target::stopped_data_address)
13601 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13602
13603 2019-02-15 Tom Tromey <tromey@adacore.com>
13604
13605 * ravenscar-thread.c: Fix some typos.
13606
13607 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13608 Tom Tromey <tromey@adacore.com>
13609
13610 * ada-lang.c (ada_exception_sal): Change addr_string to a
13611 std::string.
13612 (create_ada_exception_catchpoint): Update.
13613
13614 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13615 Tom Tromey <tromey@adacore.com>
13616
13617 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13618 (bp_location_ops): Remove.
13619 (base_breakpoint_allocate_location): Update.
13620 (free_bp_location): Update.
13621 * ada-lang.c (class ada_catchpoint_location)
13622 <ada_catchpoint_location>: Remove ops parameter.
13623 (ada_catchpoint_location_dtor): Remove.
13624 (ada_catchpoint_location_ops): Remove.
13625 (allocate_location_exception): Update.
13626 * breakpoint.h (struct bp_location_ops): Remove.
13627 (class bp_location) <bp_location>: Remove bp_location_ops
13628 parameter.
13629 <~bp_location>: Add destructor.
13630 <ops>: Remove.
13631
13632 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13633 Pedro Alves <palves@redhat.com>
13634
13635 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13636 'PATH_MAX'.
13637
13638 2019-02-14 David Michael <fedora.dm0@gmail.com>
13639 Samuel Thibault <samuel.thibault@gnu.org>
13640 Thomas Schwinge <thomas@codesourcery.com>
13641
13642 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13643 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13644
13645 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13646
13647 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13648 (check_empty): Use "const char *".
13649
13650 * gnu-nat.c (gnu_nat_target::detach): Instead of
13651 'detach_inferior (pid)' call
13652 'detach_inferior (find_inferior_pid (pid))'.
13653
13654 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13655 'nat/fork-inferior.o'.
13656 * gnu-nat.c: #include "nat/fork-inferior.h".
13657
13658 * gnu-nat.c (gnu_nat_target::detach): Instead of
13659 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13660 * gnu-nat.h: #include "inf-child.h".
13661 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13662 'i386_gnu_nat_target::fetch_registers'.
13663 (gnu_store_registers): Rename/move to
13664 'i386_gnu_nat_target::store_registers'.
13665
13666 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13667 * gnu-nat.h (mach_thread_info): New function.
13668 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13669
13670 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13671
13672 2019-02-14 Frederic Konrad <konrad@adacore.com>
13673
13674 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13675
13676 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13677
13678 * windows-nat.c (windows_add_thread): Add new parameter
13679 "main_thread_p" with default value set to false. Update
13680 function documentation as well as all callers.
13681 (windows_delete_thread): Likewise.
13682 (fake_create_process): Update call to windows_add_thread.
13683 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13684 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13685 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13686 call to windows_delete_thread.
13687
13688 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13689
13690 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13691
13692 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13693
13694 * symfile.c (find_separate_debug_file): Use canonical path of
13695 sysroot with child_path instead of gdb_sysroot if it is valid.
13696
13697 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13698
13699 * symfile.c (find_separate_debug_file): Use child_path to
13700 determine if an object file is under a sysroot.
13701
13702 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13703
13704 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13705 unittests/child-path-selftests.c.
13706 * common/pathstuff.c (child_path): New function.
13707 * common/pathstuff.h (child_path): New prototype.
13708 * unittests/child-path-selftests.c: New file.
13709
13710 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13711
13712 * symfile.c (find_separate_debug_file): Look for separate debug
13713 files in debug directories under the sysroot.
13714
13715 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13716
13717 * symtab.h (struct minimal_symbol data_p): New const method.
13718 (struct minimal_symbol text_p): Likewise.
13719 * symtab.c (output_source_filename): Use file name style
13720 to print file name.
13721 (print_symbol_info): Likewise.
13722 (print_msymbol_info): Use address style to print addresses.
13723 Use function name style to print executable text symbols.
13724 (expand_symtab_containing_pc): Use data_p.
13725 (find_pc_sect_compunit_symtab): Likewise.
13726
13727 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13728
13729 * breakpoint.c (describe_other_breakpoints): Use address style
13730 to print addresses.
13731 (say_where): Likewise.
13732
13733 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13734
13735 * ada-typeprint.c (print_func_type): Print function name
13736 style to print function name.
13737 * c-typeprint.c (c_print_type_1): Likewise.
13738
13739 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13740
13741 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13742 for execve.
13743
13744 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13745
13746 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13747 type_stack.
13748
13749 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13750
13751 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13752 TYPE_CODE_REF types.
13753
13754 2019-02-08 Jim Wilson <jimw@sifive.com>
13755
13756 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13757 (riscv_linux_fregset): New.
13758 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13759
13760 2019-02-07 Tom Tromey <tom@tromey.com>
13761
13762 * thread.c (thread_cancel_execution_command): Update.
13763 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13764 methods.
13765 (struct thread_fsm_ops): Remove.
13766 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13767 (thread_fsm_should_stop, thread_fsm_return_value)
13768 (thread_fsm_set_finished, thread_fsm_finished_p)
13769 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13770 Don't declare.
13771 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13772 * infrun.c (clear_proceed_status_thread)
13773 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13774 (print_stop_event): Update.
13775 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13776 Add constructor.
13777 (step_command_fsm_ops): Remove.
13778 (new_step_command_fsm): Remove.
13779 (step_1): Update.
13780 (step_command_fsm::should_stop): Rename from
13781 step_command_fsm_should_stop.
13782 (step_command_fsm::clean_up): Rename from
13783 step_command_fsm_clean_up.
13784 (step_command_fsm::do_async_reply_reason): Rename from
13785 step_command_fsm_async_reply_reason.
13786 (struct until_next_fsm): Inherit from thread_fsm. Add
13787 constructor.
13788 (until_next_fsm_ops): Remove.
13789 (new_until_next_fsm): Remove.
13790 (until_next_fsm::should_stop): Rename from
13791 until_next_fsm_should_stop.
13792 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13793 (until_next_fsm::do_async_reply_reason): Rename from
13794 until_next_fsm_async_reply_reason.
13795 (struct finish_command_fsm): Inherit from thread_fsm. Add
13796 constructor. Change type of breakpoint.
13797 (finish_command_fsm_ops): Remove.
13798 (new_finish_command_fsm): Remove.
13799 (finish_command_fsm::should_stop): Rename from
13800 finish_command_fsm_should_stop.
13801 (finish_command_fsm::clean_up): Rename from
13802 finish_command_fsm_clean_up.
13803 (finish_command_fsm::return_value): Rename from
13804 finish_command_fsm_return_value.
13805 (finish_command_fsm::do_async_reply_reason): Rename from
13806 finish_command_fsm_async_reply_reason.
13807 (finish_command): Update.
13808 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13809 Add constructor.
13810 (call_thread_fsm_ops): Remove.
13811 (call_thread_fsm::call_thread_fsm): Rename from
13812 new_call_thread_fsm.
13813 (call_thread_fsm::should_stop): Rename from
13814 call_thread_fsm_should_stop.
13815 (call_thread_fsm::should_notify_stop): Rename from
13816 call_thread_fsm_should_notify_stop.
13817 (run_inferior_call, call_function_by_hand_dummy): Update.
13818 * cli/cli-interp.c (should_print_stop_to_console): Update.
13819 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13820 Add constructor. Change type of location_breakpoint,
13821 caller_breakpoint.
13822 (until_break_fsm_ops): Remove.
13823 (new_until_break_fsm): Remove.
13824 (until_break_fsm::should_stop): Rename from
13825 until_break_fsm_should_stop.
13826 (until_break_fsm::clean_up): Rename from
13827 until_break_fsm_clean_up.
13828 (until_break_fsm::do_async_reply_reason): Rename from
13829 until_break_fsm_async_reply_reason.
13830 (until_break_command): Update.
13831 * thread-fsm.c: Remove.
13832 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13833
13834 2019-02-07 Tom Tromey <tom@tromey.com>
13835
13836 * yy-remap.h: Add include guard.
13837 * xtensa-tdep.h: Add include guard.
13838 * xcoffread.h: Rename include guard.
13839 * varobj-iter.h: Add include guard.
13840 * tui/tui.h: Rename include guard.
13841 * tui/tui-winsource.h: Rename include guard.
13842 * tui/tui-wingeneral.h: Rename include guard.
13843 * tui/tui-windata.h: Rename include guard.
13844 * tui/tui-win.h: Rename include guard.
13845 * tui/tui-stack.h: Rename include guard.
13846 * tui/tui-source.h: Rename include guard.
13847 * tui/tui-regs.h: Rename include guard.
13848 * tui/tui-out.h: Rename include guard.
13849 * tui/tui-layout.h: Rename include guard.
13850 * tui/tui-io.h: Rename include guard.
13851 * tui/tui-hooks.h: Rename include guard.
13852 * tui/tui-file.h: Rename include guard.
13853 * tui/tui-disasm.h: Rename include guard.
13854 * tui/tui-data.h: Rename include guard.
13855 * tui/tui-command.h: Rename include guard.
13856 * tic6x-tdep.h: Add include guard.
13857 * target/waitstatus.h: Rename include guard.
13858 * target/wait.h: Rename include guard.
13859 * target/target.h: Rename include guard.
13860 * target/resume.h: Rename include guard.
13861 * target-float.h: Rename include guard.
13862 * stabsread.h: Add include guard.
13863 * rs6000-tdep.h: Add include guard.
13864 * riscv-fbsd-tdep.h: Add include guard.
13865 * regformats/regdef.h: Rename include guard.
13866 * record.h: Rename include guard.
13867 * python/python.h: Rename include guard.
13868 * python/python-internal.h: Rename include guard.
13869 * python/py-stopevent.h: Rename include guard.
13870 * python/py-ref.h: Rename include guard.
13871 * python/py-record.h: Rename include guard.
13872 * python/py-record-full.h: Rename include guard.
13873 * python/py-record-btrace.h: Rename include guard.
13874 * python/py-instruction.h: Rename include guard.
13875 * python/py-events.h: Rename include guard.
13876 * python/py-event.h: Rename include guard.
13877 * procfs.h: Add include guard.
13878 * proc-utils.h: Add include guard.
13879 * p-lang.h: Add include guard.
13880 * or1k-tdep.h: Rename include guard.
13881 * observable.h: Rename include guard.
13882 * nto-tdep.h: Rename include guard.
13883 * nat/x86-linux.h: Rename include guard.
13884 * nat/x86-linux-dregs.h: Rename include guard.
13885 * nat/x86-gcc-cpuid.h: Add include guard.
13886 * nat/x86-dregs.h: Rename include guard.
13887 * nat/x86-cpuid.h: Rename include guard.
13888 * nat/ppc-linux.h: Rename include guard.
13889 * nat/mips-linux-watch.h: Rename include guard.
13890 * nat/linux-waitpid.h: Rename include guard.
13891 * nat/linux-ptrace.h: Rename include guard.
13892 * nat/linux-procfs.h: Rename include guard.
13893 * nat/linux-osdata.h: Rename include guard.
13894 * nat/linux-nat.h: Rename include guard.
13895 * nat/linux-namespaces.h: Rename include guard.
13896 * nat/linux-btrace.h: Rename include guard.
13897 * nat/glibc_thread_db.h: Rename include guard.
13898 * nat/gdb_thread_db.h: Rename include guard.
13899 * nat/gdb_ptrace.h: Rename include guard.
13900 * nat/fork-inferior.h: Rename include guard.
13901 * nat/amd64-linux-siginfo.h: Rename include guard.
13902 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13903 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13904 * nat/aarch64-linux.h: Rename include guard.
13905 * nat/aarch64-linux-hw-point.h: Rename include guard.
13906 * mn10300-tdep.h: Add include guard.
13907 * mips-linux-tdep.h: Add include guard.
13908 * mi/mi-parse.h: Rename include guard.
13909 * mi/mi-out.h: Rename include guard.
13910 * mi/mi-main.h: Rename include guard.
13911 * mi/mi-interp.h: Rename include guard.
13912 * mi/mi-getopt.h: Rename include guard.
13913 * mi/mi-console.h: Rename include guard.
13914 * mi/mi-common.h: Rename include guard.
13915 * mi/mi-cmds.h: Rename include guard.
13916 * mi/mi-cmd-break.h: Rename include guard.
13917 * m2-lang.h: Add include guard.
13918 * location.h: Rename include guard.
13919 * linux-record.h: Rename include guard.
13920 * linux-nat.h: Add include guard.
13921 * linux-fork.h: Add include guard.
13922 * i386-darwin-tdep.h: Rename include guard.
13923 * hppa-linux-offsets.h: Add include guard.
13924 * guile/guile.h: Rename include guard.
13925 * guile/guile-internal.h: Rename include guard.
13926 * gnu-nat.h: Rename include guard.
13927 * gdb-stabs.h: Rename include guard.
13928 * frv-tdep.h: Add include guard.
13929 * f-lang.h: Add include guard.
13930 * event-loop.h: Add include guard.
13931 * darwin-nat.h: Rename include guard.
13932 * cp-abi.h: Rename include guard.
13933 * config/sparc/nm-sol2.h: Rename include guard.
13934 * config/nm-nto.h: Rename include guard.
13935 * config/nm-linux.h: Add include guard.
13936 * config/i386/nm-i386gnu.h: Rename include guard.
13937 * config/djgpp/nl_types.h: Rename include guard.
13938 * config/djgpp/langinfo.h: Rename include guard.
13939 * compile/gcc-cp-plugin.h: Add include guard.
13940 * compile/gcc-c-plugin.h: Add include guard.
13941 * compile/compile.h: Rename include guard.
13942 * compile/compile-object-run.h: Rename include guard.
13943 * compile/compile-object-load.h: Rename include guard.
13944 * compile/compile-internal.h: Rename include guard.
13945 * compile/compile-cplus.h: Rename include guard.
13946 * compile/compile-c.h: Rename include guard.
13947 * common/xml-utils.h: Rename include guard.
13948 * common/x86-xstate.h: Rename include guard.
13949 * common/version.h: Rename include guard.
13950 * common/vec.h: Rename include guard.
13951 * common/tdesc.h: Rename include guard.
13952 * common/selftest.h: Rename include guard.
13953 * common/scoped_restore.h: Rename include guard.
13954 * common/scoped_mmap.h: Rename include guard.
13955 * common/scoped_fd.h: Rename include guard.
13956 * common/safe-iterator.h: Rename include guard.
13957 * common/run-time-clock.h: Rename include guard.
13958 * common/refcounted-object.h: Rename include guard.
13959 * common/queue.h: Rename include guard.
13960 * common/ptid.h: Rename include guard.
13961 * common/print-utils.h: Rename include guard.
13962 * common/preprocessor.h: Rename include guard.
13963 * common/pathstuff.h: Rename include guard.
13964 * common/observable.h: Rename include guard.
13965 * common/netstuff.h: Rename include guard.
13966 * common/job-control.h: Rename include guard.
13967 * common/host-defs.h: Rename include guard.
13968 * common/gdb_wait.h: Rename include guard.
13969 * common/gdb_vecs.h: Rename include guard.
13970 * common/gdb_unlinker.h: Rename include guard.
13971 * common/gdb_unique_ptr.h: Rename include guard.
13972 * common/gdb_tilde_expand.h: Rename include guard.
13973 * common/gdb_sys_time.h: Rename include guard.
13974 * common/gdb_string_view.h: Rename include guard.
13975 * common/gdb_splay_tree.h: Rename include guard.
13976 * common/gdb_setjmp.h: Rename include guard.
13977 * common/gdb_ref_ptr.h: Rename include guard.
13978 * common/gdb_optional.h: Rename include guard.
13979 * common/gdb_locale.h: Rename include guard.
13980 * common/gdb_assert.h: Rename include guard.
13981 * common/filtered-iterator.h: Rename include guard.
13982 * common/filestuff.h: Rename include guard.
13983 * common/fileio.h: Rename include guard.
13984 * common/environ.h: Rename include guard.
13985 * common/common-utils.h: Rename include guard.
13986 * common/common-types.h: Rename include guard.
13987 * common/common-regcache.h: Rename include guard.
13988 * common/common-inferior.h: Rename include guard.
13989 * common/common-gdbthread.h: Rename include guard.
13990 * common/common-exceptions.h: Rename include guard.
13991 * common/common-defs.h: Rename include guard.
13992 * common/common-debug.h: Rename include guard.
13993 * common/cleanups.h: Rename include guard.
13994 * common/buffer.h: Rename include guard.
13995 * common/btrace-common.h: Rename include guard.
13996 * common/break-common.h: Rename include guard.
13997 * cli/cli-utils.h: Rename include guard.
13998 * cli/cli-style.h: Rename include guard.
13999 * cli/cli-setshow.h: Rename include guard.
14000 * cli/cli-script.h: Rename include guard.
14001 * cli/cli-interp.h: Rename include guard.
14002 * cli/cli-decode.h: Rename include guard.
14003 * cli/cli-cmds.h: Rename include guard.
14004 * charset-list.h: Add include guard.
14005 * buildsym-legacy.h: Rename include guard.
14006 * bfin-tdep.h: Add include guard.
14007 * ax.h: Rename include guard.
14008 * arm-linux-tdep.h: Add include guard.
14009 * arm-fbsd-tdep.h: Add include guard.
14010 * arch/xtensa.h: Rename include guard.
14011 * arch/tic6x.h: Add include guard.
14012 * arch/i386.h: Add include guard.
14013 * arch/arm.h: Rename include guard.
14014 * arch/arm-linux.h: Rename include guard.
14015 * arch/arm-get-next-pcs.h: Rename include guard.
14016 * arch/amd64.h: Add include guard.
14017 * arch/aarch64-insn.h: Rename include guard.
14018 * arch-utils.h: Rename include guard.
14019 * annotate.h: Add include guard.
14020 * amd64-darwin-tdep.h: Rename include guard.
14021 * aarch64-linux-tdep.h: Add include guard.
14022 * aarch64-fbsd-tdep.h: Add include guard.
14023 * aarch32-linux-nat.h: Add include guard.
14024
14025 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14026
14027 * macrotab.c (macro_define_internal): New function that
14028 factorizes macro_define_object_internal and macro_define_function
14029 code.
14030 (macro_define_object_internal): Use macro_define_internal.
14031 (macro_define_function): Likewise.
14032
14033 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14034
14035 * macrocmd.c (extract_identifier): Return
14036 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14037 callers.
14038
14039 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14040
14041 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14042
14043 2019-02-05 Tom Tromey <tom@tromey.com>
14044
14045 * target.c (target_stack::unpush): Move assertion earlier.
14046
14047 2019-01-30 Tom Tromey <tom@tromey.com>
14048
14049 PR python/23615:
14050 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14051 (gdbpy_parse_and_eval): Likewise.
14052 * python/python-internal.h (gdbpy_allow_threads): New class.
14053
14054 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14055
14056 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14057 (aarch64_fbsd_fpregmap): Move earlier.
14058 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14059 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14060 instead of individual calls to trad_frame_set_reg_addr.
14061 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14062 earlier.
14063 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14064 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14065 instead of individual calls to trad_frame_set_reg_addr.
14066
14067 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14068
14069 * CONTRIBUTE: Replace contribution list with wiki link.
14070
14071 2019-01-25 Tom Tromey <tom@tromey.com>
14072
14073 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14074
14075 2019-01-25 Tom Tromey <tom@tromey.com>
14076
14077 * xtensa-linux-nat.c: Fix common/ includes.
14078 * xml-support.h: Fix common/ includes.
14079 * xml-support.c: Fix common/ includes.
14080 * x86-linux-nat.c: Fix common/ includes.
14081 * windows-nat.c: Fix common/ includes.
14082 * varobj.h: Fix common/ includes.
14083 * varobj.c: Fix common/ includes.
14084 * value.c: Fix common/ includes.
14085 * valops.c: Fix common/ includes.
14086 * utils.c: Fix common/ includes.
14087 * unittests/xml-utils-selftests.c: Fix common/ includes.
14088 * unittests/utils-selftests.c: Fix common/ includes.
14089 * unittests/unpack-selftests.c: Fix common/ includes.
14090 * unittests/tracepoint-selftests.c: Fix common/ includes.
14091 * unittests/style-selftests.c: Fix common/ includes.
14092 * unittests/string_view-selftests.c: Fix common/ includes.
14093 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14094 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14095 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14096 * unittests/rsp-low-selftests.c: Fix common/ includes.
14097 * unittests/parse-connection-spec-selftests.c: Fix common/
14098 includes.
14099 * unittests/optional-selftests.c: Fix common/ includes.
14100 * unittests/offset-type-selftests.c: Fix common/ includes.
14101 * unittests/observable-selftests.c: Fix common/ includes.
14102 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14103 * unittests/memrange-selftests.c: Fix common/ includes.
14104 * unittests/memory-map-selftests.c: Fix common/ includes.
14105 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14106 * unittests/function-view-selftests.c: Fix common/ includes.
14107 * unittests/environ-selftests.c: Fix common/ includes.
14108 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14109 * unittests/common-utils-selftests.c: Fix common/ includes.
14110 * unittests/cli-utils-selftests.c: Fix common/ includes.
14111 * unittests/array-view-selftests.c: Fix common/ includes.
14112 * ui-file.c: Fix common/ includes.
14113 * tui/tui-io.c: Fix common/ includes.
14114 * tracepoint.h: Fix common/ includes.
14115 * tracepoint.c: Fix common/ includes.
14116 * tracefile-tfile.c: Fix common/ includes.
14117 * top.h: Fix common/ includes.
14118 * top.c: Fix common/ includes.
14119 * thread.c: Fix common/ includes.
14120 * target/waitstatus.h: Fix common/ includes.
14121 * target/waitstatus.c: Fix common/ includes.
14122 * target.h: Fix common/ includes.
14123 * target.c: Fix common/ includes.
14124 * target-memory.c: Fix common/ includes.
14125 * target-descriptions.c: Fix common/ includes.
14126 * symtab.h: Fix common/ includes.
14127 * symfile.c: Fix common/ includes.
14128 * stap-probe.c: Fix common/ includes.
14129 * spu-linux-nat.c: Fix common/ includes.
14130 * sparc-nat.c: Fix common/ includes.
14131 * source.c: Fix common/ includes.
14132 * solib.c: Fix common/ includes.
14133 * solib-target.c: Fix common/ includes.
14134 * ser-unix.c: Fix common/ includes.
14135 * ser-tcp.c: Fix common/ includes.
14136 * ser-pipe.c: Fix common/ includes.
14137 * ser-base.c: Fix common/ includes.
14138 * selftest-arch.c: Fix common/ includes.
14139 * s12z-tdep.c: Fix common/ includes.
14140 * rust-exp.y: Fix common/ includes.
14141 * rs6000-aix-tdep.c: Fix common/ includes.
14142 * riscv-tdep.c: Fix common/ includes.
14143 * remote.c: Fix common/ includes.
14144 * remote-notif.h: Fix common/ includes.
14145 * remote-fileio.h: Fix common/ includes.
14146 * remote-fileio.c: Fix common/ includes.
14147 * regcache.h: Fix common/ includes.
14148 * regcache.c: Fix common/ includes.
14149 * record-btrace.c: Fix common/ includes.
14150 * python/python.c: Fix common/ includes.
14151 * python/py-type.c: Fix common/ includes.
14152 * python/py-inferior.c: Fix common/ includes.
14153 * progspace.h: Fix common/ includes.
14154 * producer.c: Fix common/ includes.
14155 * procfs.c: Fix common/ includes.
14156 * proc-api.c: Fix common/ includes.
14157 * printcmd.c: Fix common/ includes.
14158 * ppc-linux-nat.c: Fix common/ includes.
14159 * parser-defs.h: Fix common/ includes.
14160 * osdata.c: Fix common/ includes.
14161 * obsd-nat.c: Fix common/ includes.
14162 * nat/x86-linux.c: Fix common/ includes.
14163 * nat/x86-linux-dregs.c: Fix common/ includes.
14164 * nat/x86-dregs.h: Fix common/ includes.
14165 * nat/x86-dregs.c: Fix common/ includes.
14166 * nat/ppc-linux.c: Fix common/ includes.
14167 * nat/mips-linux-watch.h: Fix common/ includes.
14168 * nat/mips-linux-watch.c: Fix common/ includes.
14169 * nat/linux-waitpid.c: Fix common/ includes.
14170 * nat/linux-ptrace.h: Fix common/ includes.
14171 * nat/linux-ptrace.c: Fix common/ includes.
14172 * nat/linux-procfs.c: Fix common/ includes.
14173 * nat/linux-personality.c: Fix common/ includes.
14174 * nat/linux-osdata.c: Fix common/ includes.
14175 * nat/linux-namespaces.c: Fix common/ includes.
14176 * nat/linux-btrace.h: Fix common/ includes.
14177 * nat/linux-btrace.c: Fix common/ includes.
14178 * nat/fork-inferior.c: Fix common/ includes.
14179 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14180 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14181 * nat/aarch64-linux.c: Fix common/ includes.
14182 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14183 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14184 * namespace.h: Fix common/ includes.
14185 * mips-linux-tdep.c: Fix common/ includes.
14186 * minsyms.c: Fix common/ includes.
14187 * mi/mi-parse.h: Fix common/ includes.
14188 * mi/mi-main.c: Fix common/ includes.
14189 * mi/mi-cmd-env.c: Fix common/ includes.
14190 * memrange.h: Fix common/ includes.
14191 * memattr.c: Fix common/ includes.
14192 * maint.h: Fix common/ includes.
14193 * maint.c: Fix common/ includes.
14194 * main.c: Fix common/ includes.
14195 * machoread.c: Fix common/ includes.
14196 * location.c: Fix common/ includes.
14197 * linux-thread-db.c: Fix common/ includes.
14198 * linux-nat.c: Fix common/ includes.
14199 * linux-fork.c: Fix common/ includes.
14200 * inline-frame.c: Fix common/ includes.
14201 * infrun.c: Fix common/ includes.
14202 * inflow.c: Fix common/ includes.
14203 * inferior.h: Fix common/ includes.
14204 * inferior.c: Fix common/ includes.
14205 * infcmd.c: Fix common/ includes.
14206 * inf-ptrace.c: Fix common/ includes.
14207 * inf-child.c: Fix common/ includes.
14208 * ia64-linux-nat.c: Fix common/ includes.
14209 * i387-tdep.c: Fix common/ includes.
14210 * i386-tdep.c: Fix common/ includes.
14211 * i386-linux-tdep.c: Fix common/ includes.
14212 * i386-linux-nat.c: Fix common/ includes.
14213 * i386-go32-tdep.c: Fix common/ includes.
14214 * i386-fbsd-tdep.c: Fix common/ includes.
14215 * i386-fbsd-nat.c: Fix common/ includes.
14216 * guile/scm-type.c: Fix common/ includes.
14217 * guile/guile.c: Fix common/ includes.
14218 * go32-nat.c: Fix common/ includes.
14219 * gnu-nat.c: Fix common/ includes.
14220 * gdbthread.h: Fix common/ includes.
14221 * gdbarch-selftests.c: Fix common/ includes.
14222 * gdb_usleep.c: Fix common/ includes.
14223 * gdb_select.h: Fix common/ includes.
14224 * gdb_bfd.c: Fix common/ includes.
14225 * gcore.c: Fix common/ includes.
14226 * fork-child.c: Fix common/ includes.
14227 * findvar.c: Fix common/ includes.
14228 * fbsd-nat.c: Fix common/ includes.
14229 * event-top.c: Fix common/ includes.
14230 * event-loop.c: Fix common/ includes.
14231 * dwarf2read.c: Fix common/ includes.
14232 * dwarf2loc.c: Fix common/ includes.
14233 * dwarf2-frame.c: Fix common/ includes.
14234 * dwarf-index-cache.c: Fix common/ includes.
14235 * dtrace-probe.c: Fix common/ includes.
14236 * disasm-selftests.c: Fix common/ includes.
14237 * defs.h: Fix common/ includes.
14238 * csky-tdep.c: Fix common/ includes.
14239 * cp-valprint.c: Fix common/ includes.
14240 * cp-support.h: Fix common/ includes.
14241 * cp-support.c: Fix common/ includes.
14242 * corelow.c: Fix common/ includes.
14243 * completer.h: Fix common/ includes.
14244 * completer.c: Fix common/ includes.
14245 * compile/compile.c: Fix common/ includes.
14246 * compile/compile-loc2c.c: Fix common/ includes.
14247 * compile/compile-cplus-types.c: Fix common/ includes.
14248 * compile/compile-cplus-symbols.c: Fix common/ includes.
14249 * command.h: Fix common/ includes.
14250 * cli/cli-dump.c: Fix common/ includes.
14251 * cli/cli-cmds.c: Fix common/ includes.
14252 * charset.c: Fix common/ includes.
14253 * build-id.c: Fix common/ includes.
14254 * btrace.h: Fix common/ includes.
14255 * btrace.c: Fix common/ includes.
14256 * breakpoint.h: Fix common/ includes.
14257 * breakpoint.c: Fix common/ includes.
14258 * ax.h:
14259 (enum agent_op): Fix common/ includes.
14260 * ax-general.c (struct aop_map): Fix common/ includes.
14261 * ax-gdb.c: Fix common/ includes.
14262 * auxv.c: Fix common/ includes.
14263 * auto-load.c: Fix common/ includes.
14264 * arm-tdep.c: Fix common/ includes.
14265 * arch/riscv.c: Fix common/ includes.
14266 * arch/ppc-linux-common.c: Fix common/ includes.
14267 * arch/i386.c: Fix common/ includes.
14268 * arch/arm.c: Fix common/ includes.
14269 * arch/arm-linux.c: Fix common/ includes.
14270 * arch/arm-get-next-pcs.c: Fix common/ includes.
14271 * arch/amd64.c: Fix common/ includes.
14272 * arch/aarch64.c: Fix common/ includes.
14273 * arch/aarch64-insn.c: Fix common/ includes.
14274 * arch-utils.c: Fix common/ includes.
14275 * amd64-windows-tdep.c: Fix common/ includes.
14276 * amd64-tdep.c: Fix common/ includes.
14277 * amd64-sol2-tdep.c: Fix common/ includes.
14278 * amd64-obsd-tdep.c: Fix common/ includes.
14279 * amd64-nbsd-tdep.c: Fix common/ includes.
14280 * amd64-linux-tdep.c: Fix common/ includes.
14281 * amd64-linux-nat.c: Fix common/ includes.
14282 * amd64-fbsd-tdep.c: Fix common/ includes.
14283 * amd64-fbsd-nat.c: Fix common/ includes.
14284 * amd64-dicos-tdep.c: Fix common/ includes.
14285 * amd64-darwin-tdep.c: Fix common/ includes.
14286 * agent.c: Fix common/ includes.
14287 * ada-lang.h: Fix common/ includes.
14288 * ada-lang.c: Fix common/ includes.
14289 * aarch64-tdep.c: Fix common/ includes.
14290
14291 2019-01-25 Tom Tromey <tom@tromey.com>
14292
14293 * common/create-version.sh: Use common/version.h.
14294
14295 2019-01-24 Pedro Alves <palves@redhat.com>
14296
14297 * infrun.c (signal_stop, signal_print, signal_program)
14298 (signal_catch, signal_pass): Now arrays instead of pointers.
14299 (update_signals_program_target, do_target_resume)
14300 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14301 * linux-nat.c (linux_nat_target::pass_signals)
14302 (linux_nat_target::create_inferior, linux_nat_target::attach):
14303 Adjust.
14304 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14305 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14306 * procfs.c (procfs_target::pass_signals): Adjust.
14307 * record-full.c (record_full_target::resume): Adjust.
14308 * remote.c (remote_target::pass_signals)
14309 (remote_target::program_signals): Adjust.
14310 * target-debug.h (target_debug_print_signals): Now takes a
14311 gdb::array_view as parameter. Adjust.
14312 * target.h (target_ops) <pass_signals, program_signals>: Replace
14313 pointer and length parameters with gdb::array_view.
14314 (target_pass_signals, target_program_signals): Likewise.
14315 * target-delegates.c: Regenerate.
14316
14317 2019-01-24 Pedro Alves <palves@redhat.com>
14318
14319 * common/forward-scope-exit.h
14320 (forward_scope_exit::forward_scope_exit): Pass arguments to
14321 m_bind_function directly, instead of creating a std::bind and
14322 copying that.
14323
14324 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14325
14326 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14327 for static members.
14328 (pass_in_v_vfp_candidate): Likewise.
14329
14330 2019-01-23 Tom Tromey <tom@tromey.com>
14331 Pedro Alves <palves@redhat.com>
14332
14333 * regcache.c (class regcache_invalidator): Remove.
14334 (regcache::raw_write): Use make_scope_exit.
14335
14336 2019-01-23 Tom Tromey <tom@tromey.com>
14337
14338 * ui-out.h (class ui_out_emit_type): Update comment.
14339
14340 2019-01-23 Tom Tromey <tom@tromey.com>
14341
14342 * infrun.c (fetch_inferior_event): Update comment.
14343
14344 2019-01-23 Tom Tromey <tom@tromey.com>
14345 Pedro Alves <palves@redhat.com>
14346
14347 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14348 parameter.
14349 (fetch_inferior_event): Use SCOPE_EXIT.
14350
14351
14352 2019-01-23 Tom Tromey <tom@tromey.com>
14353 Pedro Alves <palves@redhat.com>
14354
14355 * infrun.c (disable_thread_events): Delete.
14356 (stop_all_threads): Use SCOPE_EXIT.
14357
14358 2019-01-23 Tom Tromey <tom@tromey.com>
14359 Pedro Alves <palves@redhat.com>
14360
14361 * symfile.c: Include forward-scope-exit.h.
14362 (clear_symtab_users_cleanup): Replace forward declaration with
14363 a FORWARD_SCOPE_EXIT.
14364 (syms_from_objfile_1): Use the forward_scope_exit and
14365 gdb::optional instead of cleanup_function.
14366 (reread_symbols): Use the forward_scope_exit instead of
14367 cleanup_function.
14368 (clear_symtab_users_cleanup): Remove function.
14369
14370 2019-01-23 Tom Tromey <tom@tromey.com>
14371 Pedro Alves <palves@redhat.com>
14372
14373 * linux-nat.c: Include scope-exit.h.
14374 (cleanup_target_stop): Remove.
14375 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14376 SCOPE_EXIT.
14377
14378 2019-01-23 Tom Tromey <tom@tromey.com>
14379 Pedro Alves <palves@redhat.com>
14380
14381 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14382 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14383
14384 2019-01-23 Tom Tromey <tom@tromey.com>
14385 Andrew Burgess <andrew.burgess@embecosm.com>
14386 Pedro Alves <palves@redhat.com>
14387
14388 * infrun.c (fetch_inferior_event): Use scope_exit.
14389 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14390 * top.c (execute_command): Use scope_exit.
14391 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14392 * utils.c (do_bpstat_clear_actions_cleanup)
14393 (make_bpstat_clear_actions_cleanup): Remove.
14394
14395 2019-01-23 Tom Tromey <tom@tromey.com>
14396 Pedro Alves <palves@redhat.com>
14397
14398 * infrun.c: Include "common/scope-exit.h"
14399 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14400 (wait_for_inferior): Use SCOPE_EXIT.
14401 (fetch_inferior_event): Use scope_exit.
14402
14403 2019-01-23 Tom Tromey <tom@tromey.com>
14404 Pedro Alves <palves@redhat.com>
14405
14406 * breakpoint.c (create_breakpoint): Remove cleanup.
14407
14408 2019-01-23 Tom Tromey <tom@tromey.com>
14409 Andrew Burgess <andrew.burgess@embecosm.com>
14410 Pedro Alves <palves@redhat.com>
14411
14412 2019-01-23 Pedro Alves <palves@redhat.com>
14413
14414 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14415
14416 2019-01-23 Pedro Alves <palves@redhat.com>
14417 Andrew Burgess <andrew.burgess@embecosm.com>
14418
14419 * gdbthread.h: Include "common/forward-scope-exit.h".
14420 (scoped_finish_thread_state): Redefine custom class in terms of
14421 forward_scope_exit.
14422
14423 2019-01-23 Pedro Alves <palves@redhat.com>
14424 Andrew Burgess <andrew.burgess@embecosm.com>
14425
14426 * common/forward-scope-exit.h: New file.
14427
14428 2019-01-23 Pedro Alves <palves@redhat.com>
14429 Andrew Burgess <andrew.burgess@embecosm.com>
14430 Tom Tromey <tom@tromey.com>
14431
14432 * common/scope-exit.h: New file.
14433
14434 2019-01-23 Pedro Alves <palves@redhat.com>
14435
14436 * common/preprocessor.h (ESC): Rename to ...
14437 (ESC_PARENS): ... this.
14438 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14439 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14440
14441 2019-01-23 Tom Tromey <tom@tromey.com>
14442
14443 * language.h (class scoped_switch_to_sym_language_if_auto):
14444 Initialize m_lang in both cases.
14445
14446 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14447
14448 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14449 with XCNEW.
14450
14451 2019-01-22 Tom Tromey <tom@tromey.com>
14452
14453 * corelow.c: Do not include sys/file.h.
14454
14455 2019-01-22 Tom Tromey <tom@tromey.com>
14456
14457 * tui/tui-wingeneral.h: Include gdb_curses.h.
14458
14459 2019-01-22 Tom Tromey <tom@tromey.com>
14460
14461 * source-cache.h (class source_cache) <get_source_lines,
14462 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14463
14464 2019-01-22 Tom Tromey <tom@tromey.com>
14465
14466 * remote-fileio.h (struct remote_target): Declare.
14467
14468 2019-01-22 Tom Tromey <tom@tromey.com>
14469
14470 * python/py-arch.c: Do not include py-ref.h.
14471 * python/py-bpevent.c: Do not include py-ref.h.
14472 * python/py-cmd.c: Do not include py-ref.h.
14473 * python/py-continueevent.c: Do not include py-ref.h.
14474 * python/py-event.h: Do not include py-ref.h.
14475 * python/py-evtregistry.c: Do not include py-ref.h.
14476 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14477 * python/py-frame.c: Do not include py-ref.h.
14478 * python/py-framefilter.c: Do not include py-ref.h.
14479 * python/py-function.c: Do not include py-ref.h.
14480 * python/py-infevents.c: Do not include py-ref.h.
14481 * python/py-linetable.c: Do not include py-ref.h.
14482 * python/py-objfile.c: Do not include py-ref.h.
14483 * python/py-param.c: Do not include py-ref.h.
14484 * python/py-prettyprint.c: Do not include py-ref.h.
14485 * python/py-progspace.c: Do not include py-ref.h.
14486 * python/py-symbol.c: Do not include py-ref.h.
14487 * python/py-symtab.c: Do not include py-ref.h.
14488 * python/py-type.c: Do not include py-ref.h.
14489 * python/py-unwind.c: Do not include py-ref.h.
14490 * python/py-utils.c: Do not include py-ref.h.
14491 * python/py-value.c: Do not include py-ref.h.
14492 * python/py-varobj.c: Do not include py-ref.h.
14493 * python/py-xmethods.c: Do not include py-ref.h.
14494 * python/python.c: Do not include py-ref.h.
14495 * varobj.c: Do not include py-ref.h.
14496
14497 2019-01-22 Tom Tromey <tom@tromey.com>
14498
14499 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14500 keyword for bcache.
14501
14502 2019-01-22 Tom Tromey <tom@tromey.com>
14503
14504 * compile/compile-cplus-types.c: Remove a comment by #include.
14505
14506 2019-01-22 Tom Tromey <tom@tromey.com>
14507
14508 * compile/gcc-c-plugin.h: Include compile-internal.h.
14509
14510 2019-01-22 Tom Tromey <tom@tromey.com>
14511
14512 * stabsread.c (EXTERN): Do not define.
14513 (symnum, next_symbol_text_func, processing_gcc_compilation)
14514 (within_function, global_sym_chain, global_stabs)
14515 (previous_stab_code, this_object_header_files)
14516 (n_this_object_header_files)
14517 (n_allocated_this_object_header_files): Define.
14518 * stabsread.h (EXTERN): Never define. Use "extern".
14519
14520 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14521
14522 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14523 history_value.
14524
14525 2019-01-21 Tom Tromey <tom@tromey.com>
14526
14527 * ui-out.c: Fix includes.
14528 * tui/tui-source.c: Fix includes.
14529 * target.c: Fix includes.
14530 * remote.c: Fix includes.
14531 * regcache.c: Fix includes.
14532 * python/py-block.c: Fix includes.
14533 * printcmd.c: Fix includes.
14534 * or1k-tdep.c: Fix includes.
14535 * mi/mi-main.c: Fix includes.
14536 * m32r-tdep.c: Fix includes.
14537 * csky-tdep.c: Fix includes.
14538 * compile/compile-cplus-types.c: Fix includes.
14539 * cli/cli-interp.c: Fix includes.
14540
14541 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14542
14543 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14544 for padding.
14545
14546 2019-01-16 Tom Tromey <tom@tromey.com>
14547
14548 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14549 earlier.
14550 (struct objfile) <msymbols_range>: Move from top level.
14551 <msymbols>: New method.
14552 (class objfile_msymbols): Remove.
14553 * symtab.c (default_collect_symbol_completion_matches_break_on):
14554 Update.
14555 * symmisc.c (dump_msymbols): Update.
14556 * stabsread.c (scan_file_globals): Update.
14557 * objc-lang.c (info_selectors_command, info_classes_command)
14558 (find_methods): Update.
14559 * minsyms.c (find_solib_trampoline_target): Update.
14560 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14561 * coffread.c (coff_symfile_read): Update.
14562 * ada-lang.c (ada_lookup_simple_minsym)
14563 (ada_collect_symbol_completion_matches): Update.
14564
14565 2019-01-16 Tom Tromey <tom@tromey.com>
14566
14567 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14568 type. Remove no-argument constructor.
14569 <iterator::operator++>: Simplify.
14570 <begin>: Update.
14571 <end>: Use minimal_symbol_count.
14572
14573 2019-01-16 Tom Tromey <tom@tromey.com>
14574
14575 * objfiles.h (struct objfile) <psymtabs>: New method.
14576 (class objfile_psymtabs): Remove.
14577 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14578 typedef.
14579 <range>: New method.
14580 (require_partial_symbols): Change return type.
14581 * psymtab.c (require_partial_symbols)
14582 (psym_expand_symtabs_matching): Update.
14583 * mdebugread.c (parse_partial_symbols): Update.
14584 * dbxread.c (dbx_end_psymtab): Update.
14585
14586 2019-01-15 Tom Tromey <tom@tromey.com>
14587
14588 * symtab.c (lookup_objfile_from_block)
14589 (lookup_symbol_in_objfile_symtabs)
14590 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14591 (find_line_symtab, info_sources_command)
14592 (default_collect_symbol_completion_matches_break_on)
14593 (make_source_files_completion_list): Update.
14594 * symmisc.c (print_objfile_statistics, dump_objfile)
14595 (maintenance_print_symbols, maintenance_info_symtabs)
14596 (maintenance_check_symtabs, maintenance_info_line_tables):
14597 Update.
14598 * source.c (select_source_symtab)
14599 (forget_cached_source_info_for_objfile): Update.
14600 * objfiles.h (class objfile_compunits): Remove.
14601 (struct objfile) <compunits_range>: New typedef.
14602 (compunits): New method.
14603 * objfiles.c (objfile_relocate1): Update.
14604 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14605 * maint.c (count_symtabs_and_blocks): Update.
14606 * linespec.c (iterate_over_all_matching_symtabs): Update.
14607 * cp-support.c (add_symbol_overload_list_qualified): Update.
14608 * coffread.c (coff_symtab_read): Update.
14609 * ada-lang.c (add_nonlocal_symbols)
14610 (ada_collect_symbol_completion_matches)
14611 (ada_add_global_exceptions): Update.
14612
14613 2019-01-15 Tom Tromey <tom@tromey.com>
14614
14615 * progspace.h (program_space) <objfiles_safe_range>: New
14616 typedef.
14617 <objfiles_safe>: New method.
14618 * objfiles.h (class all_objfiles_safe): Remove.
14619 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14620 * jit.c (jit_inferior_exit_hook): Update.
14621
14622 2019-01-17 Tom Tromey <tom@tromey.com>
14623
14624 * progspace.h (program_space) <objfiles_range>: New typedef.
14625 <objfiles>: New method.
14626 <objfiles_head>: Rename from objfiles.
14627 (object_files): Update.
14628 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14629 * guile/scm-pretty-print.c
14630 (ppscm_find_pretty_printer_from_objfiles): Update.
14631 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14632 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14633 Update.
14634 * python/py-progspace.c (pspy_get_objfiles): Update.
14635 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14636 Update.
14637 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14638 (objfpy_lookup_objfile_by_build_id): Update.
14639 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14640 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14641 Update.
14642 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14643 (expand_symtab_containing_pc, lookup_objfile_from_block)
14644 (lookup_static_symbol, basic_lookup_transparent_type)
14645 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14646 (find_line_symtab, info_sources_command)
14647 (default_collect_symbol_completion_matches_break_on)
14648 (make_source_files_completion_list, find_main_name): Update.
14649 * symmisc.c (print_symbol_bcache_statistics)
14650 (print_objfile_statistics, maintenance_print_symbols)
14651 (maintenance_print_msymbols, maintenance_print_objfiles)
14652 (maintenance_info_symtabs, maintenance_check_symtabs)
14653 (maintenance_expand_symtabs, maintenance_info_line_tables):
14654 Update.
14655 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14656 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14657 (map_overlay_command, unmap_overlay_command)
14658 (simple_overlay_update, expand_symtabs_matching)
14659 (map_symbol_filenames): Update.
14660 * symfile-debug.c (set_debug_symfile): Update.
14661 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14662 Update.
14663 * source.c (select_source_symtab, forget_cached_source_info):
14664 Update.
14665 * solib.c (solib_read_symbols): Update.
14666 * solib-spu.c (append_ocl_sos): Update.
14667 * psymtab.c (maintenance_print_psymbols)
14668 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14669 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14670 * printcmd.c (info_symbol_command): Update.
14671 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14672 Update.
14673 * objfiles.h (class all_objfiles): Remove.
14674 * objfiles.c (have_partial_symbols, have_full_symbols)
14675 (have_minimal_symbols, qsort_cmp, update_section_map)
14676 (shared_objfile_contains_address_p)
14677 (default_iterate_over_objfiles_in_search_order): Update.
14678 * objc-lang.c (info_selectors_command, info_classes_command)
14679 (find_methods): Update.
14680 * minsyms.c (find_solib_trampoline_target): Update.
14681 * maint.c (maintenance_info_sections)
14682 (maintenance_translate_address, count_symtabs_and_blocks):
14683 Update.
14684 * main.c (captured_main_1): Update.
14685 * linux-thread-db.c (try_thread_db_load_from_pdir)
14686 (has_libpthread): Update.
14687 * linespec.c (iterate_over_all_matching_symtabs)
14688 (search_minsyms_for_name): Update.
14689 * jit.c (jit_find_objf_with_entry_addr): Update.
14690 * hppa-tdep.c (find_unwind_entry)
14691 (hppa_lookup_stub_minimal_symbol): Update.
14692 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14693 Update.
14694 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14695 (elf_gnu_ifunc_resolve_by_got): Update.
14696 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14697 * dwarf-index-write.c (save_gdb_index_command): Update.
14698 * cp-support.c (add_symbol_overload_list_qualified): Update.
14699 * breakpoint.c (create_overlay_event_breakpoint)
14700 (create_longjmp_master_breakpoint)
14701 (create_std_terminate_master_breakpoint)
14702 (create_exception_master_breakpoint): Update.
14703 * blockframe.c (find_pc_partial_function): Update.
14704 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14705 (ada_collect_symbol_completion_matches)
14706 (ada_add_global_exceptions): Update.
14707
14708 2019-01-17 Tom Tromey <tom@tromey.com>
14709
14710 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14711 declare VEC.
14712 (solib_target_parse_libraries): Change return type.
14713 (library_list_start_segment, library_list_start_section)
14714 (library_list_end_library, library_list_start_library); Update.
14715 (solib_target_free_library_list): Remove.
14716 (solib_target_parse_libraries): Remove cleanup. Change return
14717 type.
14718 (solib_target_current_sos): Update.
14719
14720 2019-01-17 Tom Tromey <tromey@bapiya>
14721
14722 * valprint.c: Replace "the the" with "the".
14723 * symtab.c: Replace "the the" with "the".
14724 * solib.c: Replace "the the" with "the".
14725 * solib-dsbt.c: Replace "the the" with "the".
14726 * linespec.c: Replace "the the" with "the".
14727 * dwarf2loc.h: Replace "the the" with "the".
14728 * amd64-windows-tdep.c: Replace "the the" with "the".
14729 * aarch64-tdep.c: Replace "the the" with "the".
14730
14731 2019-01-16 Keith Seitz <keiths@redhat.com>
14732
14733 PR gdb/23773
14734 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14735 <builder>: Rename to ..
14736 <m_builder>: ... this and make private.
14737 (dwarf2_cu::get_builder): New method. Change all users of
14738 `builder' to use this method.
14739 (dwarf2_start_symtab): Move to ...
14740 (dwarf2_cu::start_symtab): ... here. Update all callers
14741 (setup_type_unit_groups): Move to ...
14742 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14743 callers.
14744 (dwarf2_cu::reset_builder): New method.
14745 (process_full_compunit, process_full_type_unit): Use
14746 dwarf2_cu::reset_builder.
14747 (follow_die_offset): Record the ancestor CU if it is different
14748 from the followed DIE's CU.
14749 (follow_die_sig_1): Likewise.
14750
14751 2019-01-15 Tom Tromey <tom@tromey.com>
14752
14753 * remote.c (class remote_state) <buf>: Now a char_vector.
14754 <buf_size>: Remove.
14755 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14756 parameter.
14757 (remote_target::getpkt_or_notif_sane_1)
14758 (remote_target::getpkt_sane)
14759 (remote_target::getpkt_or_notif_sane): Likewise.
14760 (class remote_target) <putpkt>: New overload.
14761 (remote_target::read_frame): Change type of "buf_p". Remove
14762 sizeof_p parameter.
14763 (packet_ok): New overload.
14764 (packet_check_result): New overload.
14765 Update all uses.
14766
14767 2019-01-14 Tom Tromey <tom@tromey.com>
14768
14769 * remote-notif.c (handle_notification, remote_notif_ack)
14770 (remote_notif_parse): Make "buf" const.
14771 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14772 const.
14773 (remote_notif_parse, remote_notif_ack, handle_notification):
14774 Likewise.
14775 * remote.c (remote_notif_stop_parse): Make "buf" const.
14776 (remote_target::remote_parse_stop_reply): Make "buf" const.
14777 (remote_notif_stop_ack): Make "buf" const.
14778
14779 2019-01-14 Tom Tromey <tom@tromey.com>
14780
14781 * remote.c (remote_console_output): Make parameter const.
14782
14783 2019-01-14 Tom Tromey <tom@tromey.com>
14784
14785 * target-debug.h (target_debug_print_signals): Constify.
14786 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14787 * procfs.c (procfs_target::pass_signals): Update.
14788 * linux-nat.c (linux_nat_target::pass_signals): Update.
14789 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14790 * target-delegates.c: Rebuild.
14791 * remote.c (remote_target::program_signals): Update.
14792 (remote_target::pass_signals): Update.
14793 * target.c (target_pass_signals): Constify argument.
14794 (target_program_signals): Likewise.
14795 * target.h (struct target_ops) <pass_signals, program_signals>:
14796 Constify argument.
14797 (target_pass_signals, target_program_signals): Constify argument.
14798
14799 2019-01-14 Tom Tromey <tom@tromey.com>
14800
14801 PR tui/28819:
14802 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14803
14804 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14805
14806 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14807 field.
14808 * rs6000-tdep.c: Include reggroups.h.
14809 (IS_V_ALIAS_PSEUDOREG): Define.
14810 (rs6000_register_name): Return names for the "vX" aliases.
14811 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14812 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14813 aliases. Call default_register_reggroup_p for all other
14814 pseudo-registers.
14815 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14816 New functions.
14817 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14818 Handle "vX" aliases.
14819 (v_alias_pseudo_register_collect): New function.
14820 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14821 (rs6000_gdbarch_init): Initialize "vX" aliases as
14822 pseudo-registers. Restore registration of
14823 rs6000_pseudo_register_reggroup_p with
14824 set_tdesc_pseudo_register_reggroup_p.
14825
14826 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14827
14828 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14829 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14830 set_gdbarch_num_pseudo_regs.
14831
14832 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14833
14834 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14835 Remove arg prefixname, add do_set and do_show.
14836 Add member functions set_list and show_list.
14837 * cli/cli-style.c (class cli_style_option): Update accordingly.
14838 (style_set_list): Move to file scope.
14839 (style_show_list): Likewise.
14840 (set_style): Call help_list.
14841 (show_style): Call cmd_show_list.
14842 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14843 Update to use the new macro.
14844
14845 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14846
14847 * ada-lang.c (_initialize_ada_language): Expand the help text
14848 for the "catch exception" command.
14849
14850 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14851
14852 * symtab.c (matching_obj_sections): Initialize obj,
14853 declare it closer to its usage.
14854
14855 2019-01-10 Tom Tromey <tom@tromey.com>
14856
14857 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14858 (basic_inf_threads_range): Remove.
14859 (inf_threads_range, inf_non_exited_threads_range)
14860 (safe_inf_threads_range): Use next_adapter.
14861
14862 2019-01-10 Keith Seitz <keiths@redhat.com>
14863
14864 PR gdb/23712
14865 PR symtab/23010
14866 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14867 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14868
14869 2019-01-10 Keith Seitz <keiths@redhat.com>
14870
14871 PR gdb/23712
14872 PR symtab/23010
14873 * dictionary.c (pending_to_vector): Remove.
14874 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14875 Remove _1 suffix, replacing functions of the same name. Update
14876 all callers.
14877 (dict_create_hashed, dict_create_hashed_expandable)
14878 (dict_create_linear, dict_create_linear_expandable, dict_free)
14879 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14880 Make functions static.
14881
14882 2019-01-10 Keith Seitz <keiths@redhat.com>
14883
14884 PR gdb/23712
14885 PR symtab/23010
14886 * dictionary.h (struct dictionary): Replace declaration with
14887 multidictionary.
14888 (dict_create_hashed, dict_create_hashed_expandable)
14889 (dict_create_linear, dict_create_linear_expandable)
14890 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14891 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14892 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14893 taking multidictionary argument.
14894 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14895 * block.h (struct block) <dict>: Change to multidictionary
14896 and rename `multidict'.
14897 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14898 symmisc.c: Update all dictionary references to multidictionary.
14899
14900 2019-01-10 Keith Seitz <keiths@redhat.com>
14901
14902 PR gdb/23712
14903 PR symtab/23010
14904 * dictionary.c: Include unordered_map.
14905 (pending_to_vector): New function.
14906 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14907 Rewrite the non-"_1" functions to take vector instead
14908 of linked list.
14909 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14910 "new" _1 versions of the same name.
14911 (multidictionary): Define.
14912 (std::hash<enum language): New definition.
14913 (collate_pending_symbols_by_language, mdict_create_hashed)
14914 (mdict_create_hashed_expandable, mdict_create_linear)
14915 (mdict_create_linear_expandable, mdict_free)
14916 (find_language_dictionary, create_new_language_dictionary)
14917 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14918 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14919 (mdict_size, mdict_empty): New functions.
14920 * dictionary.h (mdict_iterator): Define.
14921
14922 2019-01-10 Pedro Alves <palves@redhat.com>
14923
14924 * breakpoint.c (read_uploaded_action)
14925 (create_tracepoint_from_upload): Adjust to use
14926 gdb::unique_xmalloc_ptr.
14927 * ctf.c (ctf_write_uploaded_tp):
14928 (SET_ARRAY_FIELD): Use emplace_back.
14929 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14930 * tracefile-tfile.c (tfile_write_uploaded_tp):
14931 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14932 gdb::unique_xmalloc_ptr.
14933 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14934 at_string, cond_string, cmd_strings>: Replace char pointers
14935 with gdb::unique_xmalloc_ptr.
14936
14937 2019-01-10 Pedro Alves <palves@redhat.com>
14938
14939 * solib-target.c (library_list_start_library): Don't xstrdup name.
14940
14941 2019-01-10 Pedro Alves <palves@redhat.com>
14942
14943 * mdebugread.c (parse_partial_symbols): Use
14944 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14945
14946 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14947
14948 * linux-fork.c (scoped_switch_fork_info)
14949 <~scoped_switch_fork_info>: Fix incorrect variable name.
14950
14951 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14952
14953 * linux-fork.c (scoped_switch_fork_info)
14954 <scoped_switch_fork_info>: Make explicit.
14955 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14956
14957 2019-01-10 Tom Tromey <tom@tromey.com>
14958
14959 * objfiles.h (objfile::reset_psymtabs): Update.
14960 * objfiles.c (objfile::objfile): Update.
14961 * psymtab.h (psymtab_storage::obstack): Update.
14962 (psymtab_storage::m_obstack): Use gdb::optional.
14963 (class psymtab_storage): Update comment. Remove objfile
14964 parameter.
14965 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14966
14967 2019-01-10 Tom Tromey <tom@tromey.com>
14968
14969 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14970 <free_psymtabs>: Now private.
14971 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14972 (allocate_psymtab): Use new method.
14973
14974 2019-01-10 Tom Tromey <tom@tromey.com>
14975
14976 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14977 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14978 * mdebugread.c (parse_partial_symbols): Use
14979 allocate_dependencies.
14980 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14981 allocate_dependencies.
14982 (process_psymtab_comp_unit_reader)
14983 (build_type_psymtab_dependencies): Likewise.
14984 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14985
14986 2019-01-10 Tom Tromey <tom@tromey.com>
14987
14988 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14989 PSYMBOL_SET_LANGUAGE.
14990 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14991
14992 2019-01-10 Tom Tromey <tom@tromey.com>
14993
14994 * psymtab.h (psymtab_storage::obstack): New method.
14995 <m_obstack>: Rename from obstack; now private.
14996 * psymtab.c (psymtab_storage): Update.
14997 * dwarf2read.c (create_addrmap_from_index)
14998 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14999 Update.
15000
15001 2019-01-10 Tom Tromey <tom@tromey.com>
15002
15003 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15004 * objfiles.h (objfile::reset_psymtabs): New method.
15005
15006 2019-01-10 Tom Tromey <tom@tromey.com>
15007
15008 * symmisc.c (print_symbol_bcache_statistics): Update.
15009 (print_objfile_statistics): Update.
15010 * symfile.c (reread_symbols): Update.
15011 * psymtab.h (class psymtab_storage): New.
15012 * psymtab.c (psymtab_storage): New constructor.
15013 (~psymtab_storage): New destructor.
15014 (require_partial_symbols): Update.
15015 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15016 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15017 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15018 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15019 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15020 (start_psymtab_common, end_psymtab_common)
15021 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15022 (allocate_psymtab): Update.
15023 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15024 Update.
15025 (dump_psymtab_addrmap, maintenance_print_psymbols)
15026 (maintenance_check_psymtabs): Update.
15027 (class objfile_psymtabs): Move to objfiles.h.
15028 * psympriv.h (discard_psymtab): Now inline.
15029 (psymtab_discarder::psymtab_discarder): Update.
15030 (psymtab_discarder::~psymtab_discarder): Update.
15031 (ALL_OBJFILE_PSYMTABS): Rewrite.
15032 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15033 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15034 Remove fields.
15035 <partial_symtabs>: New field.
15036 (class objfile_psymtabs): Move from psymtab.h. Update.
15037 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15038 psymbol_cache.
15039 (objfile::~objfile): Don't destroy psymbol_cache.
15040 * mdebugread.c (parse_partial_symbols): Update.
15041 * dwarf2read.c (create_addrmap_from_index)
15042 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15043 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15044 (add_partial_subprogram, dwarf2_ranges_read): Update.
15045 * dwarf-index-write.c (write_address_map)
15046 (write_one_signatured_type, recursively_write_psymbols)
15047 (class debug_names, class debug_names, write_psymtabs_to_index):
15048 Update.
15049
15050 2019-01-10 Tom Tromey <tom@tromey.com>
15051
15052 * symtab.h (SYMBOL_SET_NAMES): Update.
15053 (symbol_set_names): Update.
15054 (MSYMBOL_SET_NAMES): Update.
15055 * symtab.c (symbol_set_names): Change argument to be an
15056 objfile_per_bfd_storage.
15057 * psymtab.c (add_psymbol_to_bcache): Update.
15058 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15059
15060 2019-01-10 Tom Tromey <tom@tromey.com>
15061
15062 * symtab.c (create_demangled_names_hash): Change argument to be an
15063 objfile_per_bfd_storage.
15064 (symbol_set_names): Update.
15065
15066 2019-01-10 Tom Tromey <tom@tromey.com>
15067
15068 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15069 init_psymbol_list.
15070 * psymtab.c (init_psymbol_list): Do nothing if already called.
15071 * psympriv.h (init_psymbol_list): Add comment.
15072 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15073 init_psymbol_list.
15074 * dbxread.c (dbx_symfile_read): Unconditionally call
15075 init_psymbol_list.
15076
15077 2019-01-10 Tom Tromey <tom@tromey.com>
15078
15079 * xcoffread.c (scan_xcoff_symtab): Update.
15080 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15081 "where".
15082 * mdebugread.c (parse_partial_symbols)
15083 (handle_psymbol_enumerators): Update.
15084 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15085 * dbxread.c (read_dbx_symtab): Update.
15086 * psympriv.h (psymbol_placement): New enum.
15087 (add_psymbol_to_list): Update.
15088
15089 2019-01-10 Tom Tromey <tom@tromey.com>
15090
15091 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15092 static_psymbols parameters.
15093 (scan_xcoff_symtab): Update.
15094 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15095 static_psymbols parameters.
15096 * psympriv.h (start_psymtab_common): Update.
15097 * mdebugread.c (parse_partial_symbols): Update.
15098 * dwarf2read.c (create_partial_symtab): Update.
15099 * dbxread.c (read_dbx_symtab): Update.
15100 (start_psymtab): Remove global_psymbols and static_psymbols
15101 parameters.
15102
15103 2019-01-10 Tom Tromey <tom@tromey.com>
15104
15105 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15106 * psymtab.c (allocate_psymtab): Add comment.
15107 * psympriv.h (allocate_psymtab): Add comment.
15108 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15109 initializations.
15110 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15111
15112 2019-01-10 Tom Tromey <tom@tromey.com>
15113
15114 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15115 Don't declare.
15116 * mipsread.c: Include mdebugread.h.
15117 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15118 Declare.
15119 * elfread.c: Include mdebugread.h.
15120
15121 2019-01-09 Tom Tromey <tom@tromey.com>
15122
15123 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15124 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15125 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15126 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15127 (psym_lookup_symbol, psym_find_last_source_symtab)
15128 (psym_forget_cached_source_info, psym_print_stats)
15129 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15130 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15131 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15132 (psym_find_compunit_symtab_by_address)
15133 (maintenance_print_psymbols, maintenance_info_psymtabs)
15134 (maintenance_check_psymtabs): Use ranged for.
15135 * psymtab.h (class objfile_psymtabs): New.
15136 (require_partial_symbols): Return objfile_psymtabs.
15137 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15138
15139 2019-01-09 Tom Tromey <tom@tromey.com>
15140
15141 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15142 (find_pc_mapped_section, list_overlays_command)
15143 (map_overlay_command, unmap_overlay_command)
15144 (simple_overlay_update): Use all_objfiles.
15145 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15146 * printcmd.c (info_symbol_command): Use all_objfiles.
15147 * objfiles.h (ALL_OBJSECTIONS): Remove.
15148 * maint.c (maintenance_translate_address): Use all_objfiles.
15149 * gcore.c (gcore_create_callback): Use all_objfiles.
15150 (objfile_find_memory_regions): Likewise.
15151
15152 2019-01-09 Tom Tromey <tom@tromey.com>
15153
15154 * symtab.c (find_line_symtab, info_sources_command)
15155 (make_source_files_completion_list): Use objfile_compunits.
15156 * source.c (select_source_symtab): Use objfile_compunits.
15157 * objfiles.h (struct objfile): Update comment.
15158 (ALL_OBJFILES): Remove.
15159 (ALL_FILETABS): Remove.
15160 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15161 objfile_compunits.
15162
15163 2019-01-09 Tom Tromey <tom@tromey.com>
15164
15165 * symmisc.c (print_objfile_statistics, dump_objfile)
15166 (maintenance_print_symbols): Use compunit_filetabs.
15167 * source.c (forget_cached_source_info_for_objfile): Use
15168 compunit_filetabs.
15169 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15170 (ALL_FILETABS): Use compunit_filetabs.
15171 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15172 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15173
15174 2019-01-09 Tom Tromey <tom@tromey.com>
15175
15176 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15177 (compunit_filetabs): New.
15178 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15179 compunit_filetabs.
15180 (info_sources_command, make_source_files_completion_list): Remove
15181 declaration.
15182 * symmisc.c (print_objfile_statistics, dump_objfile)
15183 (maintenance_print_symbols): Remove declaration.
15184 (maintenance_info_symtabs): Use compunit_filetabs.
15185 (maintenance_info_line_tables): Likewise.
15186 * source.c (select_source_symtab): Change local variable name.
15187 (forget_cached_source_info_for_objfile): Remove declaration.
15188 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15189 * objfiles.c (objfile_relocate1): Remove declaration.
15190 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15191 declaration.
15192 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15193 * coffread.c (coff_symtab_read): Remove declaration.
15194 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15195 compunit_filetabs.
15196
15197 2019-01-09 Tom Tromey <tom@tromey.com>
15198
15199 * symtab.c (lookup_objfile_from_block)
15200 (find_pc_sect_compunit_symtab, search_symbols)
15201 (default_collect_symbol_completion_matches_break_on): Use
15202 objfile_compunits.
15203 * objfiles.h (ALL_COMPUNITS): Remove.
15204 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15205 * cp-support.c (add_symbol_overload_list_qualified): Use
15206 objfile_compunits.
15207 * ada-lang.c (ada_collect_symbol_completion_matches)
15208 (ada_add_global_exceptions): Use objfile_compunits.
15209
15210 2019-01-09 Tom Tromey <tom@tromey.com>
15211
15212 * source.c (select_source_symtab)
15213 (forget_cached_source_info_for_objfile): Remove declaration.
15214 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15215 declaration.
15216 * maint.c (count_symtabs_and_blocks): Remove declaration.
15217 * cp-support.c (add_symbol_overload_list_qualified): Remove
15218 declaration.
15219 * coffread.c (coff_symtab_read): Remove declaration.
15220 * symtab.c (lookup_symbol_in_objfile_symtabs)
15221 (basic_lookup_transparent_type_1): Use objfile_compunits.
15222 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15223 (info_sources_command, search_symbols)
15224 (default_collect_symbol_completion_matches_break_on)
15225 (make_source_files_completion_list): Remove declaration.
15226 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15227 (ada_collect_symbol_completion_matches)
15228 (ada_add_global_exceptions): Remove declaration.
15229 * linespec.c (iterate_over_all_matching_symtabs): Use
15230 objfile_compunits.
15231 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15232 (class objfile_compunits): New.
15233 (ALL_COMPUNITS): Use objfile_compunits.
15234 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15235 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15236 objfile_compunits.
15237 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15238
15239 2019-01-09 Tom Tromey <tom@tromey.com>
15240
15241 * symtab.c (search_symbols)
15242 (default_collect_symbol_completion_matches_break_on): Use
15243 objfile_msymbols.
15244 * ada-lang.c (ada_lookup_simple_minsym)
15245 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15246 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15247 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15248 objfile_msymbols.
15249 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15250 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15251 * objc-lang.c (find_methods): Use objfile_msymbols.
15252 (info_selectors_command, info_classes_command): Likewise.
15253 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15254 * objfiles.h (class objfile_msymbols): New.
15255 (ALL_OBJFILE_MSYMBOLS): Remove.
15256 (ALL_MSYMBOLS): Remove.
15257
15258 2019-01-09 Tom Tromey <tom@tromey.com>
15259
15260 * common/next-iterator.h (next_adapter): Add Iterator template
15261 parameter.
15262 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15263 (class all_objfiles_safe): New.
15264 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15265 * objfiles.c (put_objfile_before): Update comment.
15266 (add_separate_debug_objfile): Likewise.
15267 (free_all_objfiles): Use all_objfiles_safe.
15268 (objfile_purge_solibs): Likewise.
15269
15270 2019-01-09 Tom Tromey <tom@tromey.com>
15271
15272 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15273 (expand_symtab_containing_pc, lookup_static_symbol)
15274 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15275 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15276 all_objfiles.
15277 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15278 * breakpoint.c (create_overlay_event_breakpoint)
15279 (create_longjmp_master_breakpoint)
15280 (create_std_terminate_master_breakpoint)
15281 (create_exception_master_breakpoint): Use all_objfiles.
15282 * linux-thread-db.c (try_thread_db_load_from_pdir)
15283 (has_libpthread): Use all_objfiles.
15284 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15285 * linespec.c (iterate_over_all_matching_symtabs)
15286 (search_minsyms_for_name): Use all_objfiles.
15287 * maint.c (maintenance_info_sections): Use all_objfiles.
15288 * main.c (captured_main_1): Use all_objfiles.
15289 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15290 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15291 * guile/scm-pretty-print.c
15292 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15293 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15294 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15295 (maintenance_print_msymbols): Use all_objfiles.
15296 * source.c (select_source_symtab): Use all_objfiles.
15297 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15298 * symfile.c (remove_symbol_file_command)
15299 (expand_symtabs_matching, map_symbol_filenames): Use
15300 all_objfiles.
15301 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15302 all_objfiles.
15303 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15304 * objc-lang.c (find_methods): Use all_objfiles.
15305 * objfiles.c (have_partial_symbols, have_full_symbols)
15306 (have_minimal_symbols, qsort_cmp)
15307 (default_iterate_over_objfiles_in_search_order): Use
15308 all_objfiles.
15309 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15310 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15311 (maintenance_check_psymtabs): Use all_objfiles.
15312 (ALL_PSYMTABS): Remove.
15313 * compile/compile-object-run.c (do_module_cleanup): Use
15314 all_objfiles.
15315 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15316 * cp-support.c (add_symbol_overload_list_qualified): Use
15317 all_objfiles.
15318 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15319 Use all_objfiles.
15320 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15321 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15322 all_objfiles.
15323 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15324 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15325 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15326 Uses all_objfiles.
15327 * solib.c (solib_read_symbols): Use all_objfiles
15328
15329 2019-01-09 Tom Tromey <tom@tromey.com>
15330
15331 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15332 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15333 all_objfiles.
15334 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15335 * symmisc.c (print_symbol_bcache_statistics)
15336 (print_objfile_statistics, maintenance_print_objfiles)
15337 (maintenance_info_symtabs, maintenance_check_symtabs)
15338 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15339 all_objfiles.
15340 * source.c (forget_cached_source_info): Use all_objfiles.
15341 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15342 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15343 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15344 * objfiles.c (update_section_map): Use all_objfiles.
15345 (shared_objfile_contains_address_p): Likewise.
15346 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15347 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15348
15349 2019-01-09 Tom Tromey <tom@tromey.com>
15350
15351 * common/next-iterator.h: New file.
15352 * objfiles.h (class all_objfiles): New.
15353 (struct objfile_iterator): New.
15354
15355 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15356
15357 * NEWS: Move the description of the changed "frame", "select-frame",
15358 and "info frame" commands to the Changed commands section.
15359
15360 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15361
15362 * gdbtypes.c (check_stub_method_group): Remove handling of old
15363 mangling schemes.
15364 * linespec.c (find_methods): Likewise.
15365 * stabsread.c (read_member_functions): Likewise.
15366 * valops.c (search_struct_method): Likewise.
15367 (value_struct_elt_for_reference): Likewise.
15368 * NEWS: Mention this change.
15369
15370 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15371
15372 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15373 print_source_lines.
15374 * source.c (print_source_lines_base): Update line number check.
15375 (print_source_lines): New function.
15376 (source_lines_range::source_lines_range): New function.
15377 * source.h (class source_lines_range): New class.
15378 (print_source_lines): New declaration.
15379
15380 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15381
15382 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15383
15384 2019-01-08 Tom Tromey <tom@tromey.com>
15385 Simon Marchi <simon.marchi@ericsson.com>
15386
15387 PR gdb/24060
15388 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15389 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15390 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15391 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15392 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15393 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15394
15395 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15396
15397 * source.c (select_source_symtab): Move header comment to
15398 declaration in source.h.
15399 (forget_cached_source_info_for_objfile): Likewise.
15400 (forget_cached_source_info): Likewise.
15401 (identify_source_line): Likewise.
15402 * source.h (identify_source_line): Move declaration from symtab.h
15403 and add comment from source.c
15404 (print_source_lines): Likewise.
15405 (forget_cached_source_info_for_objfile): Likewise.
15406 (forget_cached_source_info): Likewise.
15407 (select_source_symtab): Likewise.
15408 (enum print_source_lines_flag): Move definition from symtab.h.
15409 * symtab.h (identify_source_line): Move declaration to source.h.
15410 (print_source_lines): Likewise.
15411 (forget_cached_source_info_for_objfile): Likewise.
15412 (forget_cached_source_info): Likewise.
15413 (select_source_symtab): Likewise.
15414 (enum print_source_lines_flag): Move definition to source.h.
15415 * tui/tui-hooks.c: Add 'source.h' include.
15416
15417 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15418
15419 * source.c (print_source_lines_base): Handle requests to print
15420 reverse line number sequences, and guard against empty lines
15421 string.
15422
15423 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15424
15425 * source.c (print_source_lines_base): Fix skip of '\r' if next
15426 character is '\n'.
15427
15428 2019-01-06 Tom Tromey <tom@tromey.com>
15429
15430 * c-exp.y (struct c_parse_state) <macro_original_text,
15431 expansion_obstack>: New member.
15432 (macro_original_text, expansion_obstack): Remove globals.
15433 (scan_macro_expansion, scanning_macro_expansion)
15434 (finished_macro_expansion): Update.
15435 (scan_macro_cleanup): Remove.
15436 (yylex, c_parse): Update.
15437
15438 2019-01-06 Tom Tromey <tom@tromey.com>
15439
15440 * c-exp.y (struct c_parse_state) <strings>: New member.
15441 (operator_stoken): Update.
15442
15443 2019-01-06 Tom Tromey <tom@tromey.com>
15444
15445 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15446 (union type_stack_elt) <typelist_val>: Now a pointer to
15447 std::vector.
15448 (type_stack_cleanup): Don't declare.
15449 (push_typelist): Update.
15450 * parse.c (pop_typelist): Return a std::vector.
15451 (push_typelist): Take a std::vector.
15452 (follow_types): Update. Do not free args.
15453 (type_stack_cleanup): Remove.
15454 * c-exp.y (struct c_parse_state): New.
15455 (cpstate): New global.
15456 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15457 (nonempty_typelist): Update.
15458 (func_mod): Create a new vector.
15459 (c_parse): Create a c_parse_state.
15460 (check_parameter_typelist): Do not delete params.
15461 (function_method): Update. Do not delete type_list.
15462
15463 2019-01-06 Tom Tromey <tom@tromey.com>
15464
15465 PR gdb/28155:
15466 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15467 check_typedef.
15468 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15469 (print_return_value): Likewise.
15470
15471 2019-01-05 Tom Tromey <tom@tromey.com>
15472
15473 * contrib/cleanup_check.py: Remove.
15474 * contrib/gcc-with-excheck: Remove.
15475 * contrib/exsummary.py: Remove.
15476 * contrib/excheck.py: Remove.
15477
15478 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15479
15480 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15481 NULL. Initialize tpprev to NULL instead of assigning it
15482 to NULL on the next statement.
15483 * windows-nat.c (windows_delete_thread): Remove check for
15484 main_thread_id before printing thread exit notifications.
15485 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15486 Remove thread ID check against main_thread_id.
15487 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15488 windows_delete_thread.
15489 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15490
15491 2019-01-04 Tom Tromey <tom@tromey.com>
15492
15493 * compile/compile.c (_initialize_compile): Use upper case for
15494 metasyntactic variables.
15495 * symmisc.c (_initialize_symmisc): Use upper case for
15496 metasyntactic variables.
15497 * psymtab.c (_initialize_psymtab): Use upper case for
15498 metasyntactic variables.
15499 * demangle.c (demangle_command): Use upper case for metasyntactic
15500 variables.
15501 (_initialize_demangler): Likewise.
15502 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15503 variables.
15504
15505 2019-01-03 Tom Tromey <tom@tromey.com>
15506
15507 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15508
15509 2019-01-03 Tom Tromey <tom@tromey.com>
15510
15511 * python/py-symtab.c (salpy_str): Update.
15512 (struct salpy_sal_object) <symtab>: Now a PyObject.
15513 (salpy_dealloc): Update.
15514 (del_objfile_sal): Use gdbpy_ref.
15515
15516 2019-01-03 Tom Tromey <tom@tromey.com>
15517
15518 * python/py-type.c (convert_field): Use new_reference. Return
15519 gdbpy_ref.
15520 (make_fielditem): Return gdbpy_ref.
15521 (typy_fields): Update.
15522 (typy_getitem): Update.
15523 (field_name): Return gdbpy_ref. Use new_reference.
15524 (typy_iterator_iternext): Update.
15525
15526 2019-01-03 Tom Tromey <tom@tromey.com>
15527
15528 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15529
15530 2019-01-03 Tom Tromey <tom@tromey.com>
15531
15532 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15533 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15534 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15535 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15536 (pspy_set_type_printers): Likewise.
15537 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15538 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15539 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15540 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15541 (objfpy_set_type_printers): Likewise.
15542
15543 2019-01-03 Tom Tromey <tom@tromey.com>
15544
15545 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15546 (gdbpy_print_stack): Use gdbpy_err_fetch.
15547 * python/python-internal.h (class gdbpy_err_fetch): New class.
15548 (class gdbpy_enter) <m_error_type, m_error_value,
15549 m_error_traceback>: Remove.
15550 <m_error>: New member.
15551 (gdbpy_exception_to_string): Don't declare.
15552 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15553 * python/py-value.c (convert_value_from_python): Use
15554 gdbpy_err_fetch.
15555 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15556 gdbpy_exception_to_string.
15557 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15558 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15559 gdbpy_err_fetch.
15560
15561 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15562
15563 * linux-nat.c (delete_lwp_cleanup): Delete.
15564 (struct lwp_deleter): New struct.
15565 (lwp_info_up): New typedef.
15566 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15567 lwp_info_up.
15568
15569 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15570
15571 * linux-fork.c (class scoped_switch_fork_info): New class.
15572 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15573
15574 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15575
15576 * valops.c (find_overload_match): Remove use of null_cleanup, and
15577 calls to do_cleanups.
15578
15579 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15580
15581 * compile/compile-cplus-types.c
15582 (compile_cplus_instance::decl_name): Handle changes to
15583 cp_func_name.
15584 * cp-support.c (cp_func_name): Update header comment, update
15585 return type.
15586 * cp-support.h (cp_func_name): Update return type in declaration.
15587 * valops.c (find_overload_match): Move temp_func local to top
15588 level of function and change its type. Use temp_func to hold and
15589 delete temporary string obtained from cp_func_name.
15590
15591 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15592
15593 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15594 gdb::char_vector, remove cleanup, and update uses of `msg`.
15595
15596 2019-01-03 Jim Wilson <jimw@sifive.com>
15597
15598 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15599
15600 2019-01-02 Tom Tromey <tom@tromey.com>
15601
15602 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15603 (tdesc_parse_xml): Remove cleanups.
15604 * target-descriptions.h (make_cleanup_free_target_description):
15605 Don't declare.
15606 (target_desc_deleter): New struct.
15607 (target_desc_up): New typedef.
15608 * target-descriptions.c (target_desc_deleter::operator()): Rename
15609 from free_target_description.
15610 (make_cleanup_free_target_description): Remove.
15611
15612 2019-01-02 Tom Tromey <tom@tromey.com>
15613
15614 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15615 constructor, destructor.
15616 (linespec_parser): Remove typedef.
15617 (~linespec_parser): Rename from linespec_parser_delete.
15618 (linespec_lex_to_end, linespec_complete_label)
15619 (linespec_complete): Update.
15620 (decode_line_full): Remove cleanups.
15621 (decode_line_1): Update.
15622
15623 2019-01-02 Tom Tromey <tom@tromey.com>
15624
15625 * python/python-internal.h (inferior_to_inferior_object): Change
15626 return type.
15627 * python/py-exitedevent.c (create_exited_event_object): Update.
15628 * python/py-inferior.c (inferior_to_inferior_object): Return
15629 gdbpy_ref.
15630 (python_new_inferior, python_inferior_deleted)
15631 (thread_to_thread_object, delete_thread_object)
15632 (build_inferior_list, gdbpy_selected_inferior): Update.
15633 * python/py-infthread.c (create_thread_object): Update. Also fail
15634 if inferior_to_inferior_object fails.
15635
15636 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15637
15638 * inferior.h (class inferior) <displaced_step_state>: New field.
15639 * infrun.h (struct displaced_step_state): Move here from
15640 infrun.c. Initialize fields, add constructor.
15641 <inf>: Remove field.
15642 <reset>: New method.
15643 * infrun.c (struct displaced_step_inferior_state): Move to
15644 infrun.h.
15645 (displaced_step_inferior_states): Remove.
15646 (get_displaced_stepping_state): Adust.
15647 (displaced_step_in_progress_any_inferior): Adjust.
15648 (displaced_step_in_progress_thread): Adjust.
15649 (displaced_step_in_progress): Adjust.
15650 (add_displaced_stepping_state): Remove.
15651 (get_displaced_step_closure_by_addr): Adjust.
15652 (remove_displaced_stepping_state): Remove.
15653 (infrun_inferior_exit): Call displaced_step_state.reset.
15654 (use_displaced_stepping): Don't check for NULL.
15655 (displaced_step_prepare_throw): Call
15656 get_displaced_stepping_state.
15657 (displaced_step_fixup): Don't check for NULL.
15658 (prepare_for_detach): Don't check for NULL.
15659
15660 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15661
15662 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15663 in case of call that did not complete.
15664
15665 2019-01-02 Andrey Utkin <autkin@undo.io>
15666
15667 * symfile.c (find_separate_debug_file): Fix search of debug files for
15668 remote debuggee.
15669
15670 2019-01-02 Tom Tromey <tom@tromey.com>
15671
15672 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15673 indentation.
15674 * python/py-frame.c (frapy_older): Remove cast.
15675 (frapy_newer): Likewise.
15676 * python/py-breakpoint.c (local_setattro): Remove cast.
15677 * python/py-arch.c (archpy_name): Remove local variable.
15678 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15679
15680 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15681
15682 * unittests/basic_string_view/element_access/char/empty.cc:
15683 Fix year range in copyright header.
15684
15685 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15686
15687 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15688 Delete.
15689 <operator==>: Update with for removed field.
15690 <hash>: Likewise.
15691 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15692 <isa_features>: ...this.
15693 <abi_features>: New field.
15694 (riscv_isa_flen): Update comment.
15695 (riscv_abi_xlen): New declaration.
15696 (riscv_abi_flen): New declaration.
15697 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15698 isa_features.
15699 (riscv_abi_xlen): New function.
15700 (riscv_isa_flen): Update to get answer from isa_features.
15701 (riscv_abi_flen): New function.
15702 (riscv_has_fp_abi): Update to get answer from abi_features.
15703 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15704 xlen and flen.
15705 (riscv_call_info) <xlen, flen>: Update comment.
15706 (riscv_call_arg_struct): Remove invalid assertions
15707 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15708 is removed.
15709 (riscv_gdbarch_init): Gather isa features and abi features
15710 separately, ensure both match on the gdbarch when reusing an old
15711 gdbarch. Relax an error check to allow 32-bit abi float to run on
15712 a target with 64-bit float hardware.
15713
15714 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15715
15716 * source.c (search_command_helper): Stop reverse search
15717 when line 1 has been searched.
15718
15719 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15720
15721 * record-full.c (record_full_base_target::close): Rewrite
15722 record_full_core_buf_list free logic.
15723
15724 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15725
15726 * break-catch-syscall.c (print_one_catch_syscall): xfree
15727 the last text.
15728
15729 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15730
15731 * top.c (print_gdb_version): Update Copyright year in version
15732 message.
15733
15734 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15735
15736 Update copyright year range in all GDB files.
15737
15738 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15739
15740 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15741
15742 For older changes see ChangeLog-2018.
15743 \f
15744 Local Variables:
15745 mode: change-log
15746 left-margin: 8
15747 fill-column: 74
15748 version-control: never
15749 coding: utf-8
15750 End:
15751