Remove unused rbreak_command_wrapper and other declarations
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
adce99fe
SM
12019-11-26 Simon Marchi <simon.marchi@efficios.com>
2
3 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
4 rbreak_command_wrapper): Remove.
5 * symtab.c (rbreak_command_wrapper): Remove.
6
fe3adccf
SM
72019-11-26 Simon Marchi <simon.marchi@efficios.com>
8
9 * inferior.h (info_terminal_command): Remove declaration.
10 * inflow.c (info_terminal_command): Make static.
11
b926335f
SM
122019-11-26 Simon Marchi <simon.marchi@efficios.com>
13
14 * inferior.c (exit_inferior_silent): Remove.
15
b62f6f54
SM
162019-11-26 Simon Marchi <simon.marchi@efficios.com>
17
18 * dictionary.c (dict_empty, mdict_empty): Remove.
19 * dictionary.c (mdict_empty): Remove.
20
cb8c24b6
SM
212019-11-26 Simon Marchi <simon.marchi@efficios.com>
22
23 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
24 (arc_insn_get_memory_offset): Likewise.
25 (arc_insn_dump): Likewise.
26 * cp-support.c (test_cp_symbol_name_matches): Likewise.
27 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
28 * dictionary.c (dict_iterator_next): Likewise.
29 (dict_iter_match_first): Likewise.
30 (dict_iter_match_next): Likewise.
31 * f-lang.c (evaluate_subexp_f): Likewise.
32 * hppa-tdep.c (hppa_read_pc): Likewise.
33 * i386-tdep.c (i386_floatformat_for_type): Likewise.
34 * parse.c (write_exp_elt_msym): Likewise.
35 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
36 * remote.c (remote_packet_size): Likewise.
37 (remote_notif_stop_parse): Likewise.
38 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
39 * s12z-tdep.c (s12z_disassemble_info): Likewise.
40 * source.c (prepare_path_for_appending): Likewise.
41 * sparc64-linux-tdep.c
42 (sparc64_linux_handle_segmentation_fault); Likewise.
43 * stack.c (frame_selection_by_function_completer): Likewise.
44
781597ff
SM
452019-11-26 Simon Marchi <simon.marchi@efficios.com>
46
47 * completer.c (set_gdb_completion_word_break_characters):
48 Remove.
49
23baa4cc
SM
502019-11-26 Simon Marchi <simon.marchi@efficios.com>
51
52 * dwarf-index-write.c: Include dwarf-index-write.h.
53 * mi/mi-interp.c: Include mi/mi-interp.h.
54
23767560
SM
552019-11-26 Simon Marchi <simon.marchi@efficios.com>
56
57 * aarch32-tdep.c: Include aarch32-tdep.h.
58 * aarch32-tdep.h: Forward-declare struct target_desc.
59
6d91ce9a
CB
602019-11-26 Christian Biesinger <cbiesinger@google.com>
61
62 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
63 strerror.
64 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
65 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
66
3cf2f237
TV
672019-11-25 Tom de Vries <tdevries@suse.de>
68
69 * contrib/words.sh: Add -c option.
70
5b89c67a
CB
712019-11-25 Christian Biesinger <cbiesinger@google.com>
72
73 * solib.c (solib_find_1): Change int to bool.
74 (exec_file_find): Change int to bool.
75 (solib_find): Change int to bool.
76 (solib_read_symbols): Change int to bool.
77 (solib_used): Change int to bool.
78 (solib_add): Change int to bool.
79 (info_sharedlibrary_command): Change int to bool.
80 (solib_contains_address_p): Change int to bool.
81 (solib_keep_data_in_core): Change int to bool.
82 (in_solib_dynsym_resolve_code): Change int to bool.
83 (reload_shared_libraries_1): Change int to bool.
84 (gdb_sysroot_changed): Change int to bool.
85 * solib.h (solib_read_symbols): Change int to bool.
86 (solib_contains_address_p): Change int to bool.
87 (solib_keep_data_in_core): Change int to bool.
88 (in_solib_dynsym_resolve_code): Change int to bool.
89 (libpthread_name_p): Change int to bool.
90
6cc8564b
LM
912019-11-25 Luis Machado <luis.machado@linaro.org>
92
93 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
94 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
95 (remote_packet_max_chars): New static global.
96 (show_remote_packet_max_chars): New function.
97 (remote_target::putpkt_binary): Adjust to use new
98 remote_packet_max_chars option.
99 (remote_target::getpkt_or_notif_sane_1): Likewise.
100 (_initialize_remote): Register new remote-packet-max-chars option.
101
a7cdaa91
SM
1022019-11-24 Simon Marchi <simon.marchi@efficios.com>
103
104 * m68k-linux-nat.c: Include gdbarch.h.
105
26abc753
TT
1062019-11-24 Tom Tromey <tom@tromey.com>
107
108 * symfile.c (read_symbols): Update.
109 * psymtab.c (require_partial_symbols): Change type of "verbose" to
110 bool.
111 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
112 (psym_lookup_symbol, psym_find_last_source_symtab)
113 (psym_forget_cached_source_info, psym_print_stats)
114 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
115 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
116 (psym_map_matching_symbols, psym_expand_symtabs_matching)
117 (psym_find_compunit_symtab_by_address)
118 (maintenance_print_psymbols, maintenance_info_psymtabs)
119 (maintenance_check_psymtabs): Update.
120 * psymtab.h (require_partial_symbols): Change type of "verbose" to
121 bool.
122
012fc909
TT
1232019-11-22 Tom Tromey <tom@tromey.com>
124
125 * observable.h: Update comments.
126
c83d8d32
TT
1272019-11-22 Tom Tromey <tromey@adacore.com>
128
129 * ada-tasks.c (ada_task_is_alive): Make parameter const.
130 (print_ada_task_info): Don't try to fetch thread id if task is not
131 alive.
132
987012b8
CB
1332019-11-22 Christian Biesinger <cbiesinger@google.com>
134
135 * ada-exp.y: Update.
136 * ada-lang.c (sort_choices): Update.
137 (ada_print_symbol_signature): Update.
138 (resolve_subexp): Update.
139 (ada_parse_renaming): Update.
140 (ada_read_renaming_var_value): Update.
141 (lesseq_defined_than): Update.
142 (remove_extra_symbols): Update.
143 (remove_irrelevant_renamings): Update.
144 (ada_add_block_symbols): Update.
145 (ada_collect_symbol_completion_matches): Update.
146 (ada_is_renaming_symbol): Update.
147 (aggregate_assign_from_choices): Update.
148 (ada_evaluate_subexp): Update.
149 (ada_has_this_exception_support): Update.
150 (ada_is_non_standard_exception_sym): Update.
151 (ada_add_exceptions_from_frame): Update.
152 (ada_add_global_exceptions): Update.
153 (ada_print_subexp): Update.
154 * ax-gdb.c (gen_var_ref): Update.
155 (gen_maybe_namespace_elt): Update.
156 (gen_expr_for_cast): Update.
157 (gen_expr): Update.
158 * block.h: Update.
159 * blockframe.c (find_pc_partial_function): Update.
160 * breakpoint.c (print_breakpoint_location): Update.
161 (update_static_tracepoint): Update.
162 * btrace.c (ftrace_print_function_name): Update.
163 (ftrace_function_switched): Update.
164 * buildsym.c (find_symbol_in_list): Update.
165 * c-exp.y: Update.
166 * c-typeprint.c (c_print_typedef): Update.
167 (c_type_print_template_args): Update.
168 * cli/cli-cmds.c (edit_command): Update.
169 (list_command): Update.
170 (print_sal_location): Update.
171 * coffread.c (patch_opaque_types): Update.
172 (process_coff_symbol): Update.
173 (coff_read_enum_type): Update.
174 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
175 (convert_one_symbol): Update.
176 (hash_symname): Update.
177 (eq_symname): Update.
178 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
179 * compile/compile-cplus-types.c (debug_print_scope): Update.
180 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
181 * compile/compile-object-load.c (get_out_value_type): Update.
182 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
183 (search_symbol_list): Update.
184 (cp_lookup_symbol_imports_or_template): Update.
185 * cp-support.c (overload_list_add_symbol): Update.
186 * ctfread.c (psymtab_to_symtab): Update.
187 * dbxread.c (cp_set_block_scope): Update.
188 * dictionary.c (iter_match_first_hashed): Update.
189 (iter_match_next_hashed): Update.
190 (insert_symbol_hashed): Update.
191 (iter_match_next_linear): Update.
192 * dictionary.h: Update.
193 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
194 (locexpr_describe_location_piece): Update.
195 (locexpr_describe_location_1): Update.
196 (locexpr_generate_c_location): Update.
197 (loclist_describe_location): Update.
198 (loclist_generate_c_location): Update.
199 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
200 (read_func_scope): Update.
201 (process_enumeration_scope): Update.
202 (new_symbol): Update.
203 (dwarf2_const_value): Update.
204 (dwarf2_symbol_mark_computed): Update.
205 * eval.c (evaluate_funcall): Update.
206 (evaluate_subexp_standard): Update.
207 * expprint.c (print_subexp_standard): Update.
208 (dump_subexp_body_standard): Update.
209 * f-valprint.c (info_common_command_for_block): Update.
210 * findvar.c (get_hosting_frame): Update.
211 (default_read_var_value): Update.
212 * go-lang.c (go_symbol_package_name): Update.
213 * guile/scm-block.c (bkscm_print_block_smob): Update.
214 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
215 (gdbscm_symbol_name): Update.
216 (gdbscm_symbol_linkage_name): Update.
217 (gdbscm_symbol_print_name): Update.
218 * infcall.c (get_function_name): Update.
219 * infcmd.c (jump_command): Update.
220 (finish_command): Update.
221 * infrun.c (insert_exception_resume_breakpoint): Update.
222 * linespec.c (canonicalize_linespec): Update.
223 (create_sals_line_offset): Update.
224 (convert_linespec_to_sals): Update.
225 (complete_label): Update.
226 (find_label_symbols_in_block): Update.
227 * m2-typeprint.c (m2_print_typedef): Update.
228 * mdebugread.c (mdebug_reg_to_regnum): Update.
229 (parse_symbol): Update.
230 (mylookup_symbol): Update.
231 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
232 (list_args_or_locals): Update.
233 * objc-lang.c (compare_selectors): Update.
234 (info_selectors_command): Update.
235 (compare_classes): Update.
236 (info_classes_command): Update.
237 (find_imps): Update.
238 * p-typeprint.c (pascal_print_typedef): Update.
239 * printcmd.c (build_address_symbolic): Update.
240 (info_address_command): Update.
241 (print_variable_and_value): Update.
242 * python/py-framefilter.c (extract_sym): Update.
243 (py_print_single_arg): Update.
244 * python/py-symbol.c (sympy_str): Update.
245 (sympy_get_name): Update.
246 (sympy_get_linkage_name): Update.
247 * python/python.c (gdbpy_rbreak): Update.
248 * record-btrace.c (btrace_get_bfun_name): Update.
249 (btrace_call_history): Update.
250 * rust-lang.c (rust_print_typedef): Update.
251 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
252 * stabsread.c (stab_reg_to_regnum): Update.
253 (define_symbol): Update.
254 (read_enum_type): Update.
255 (common_block_end): Update.
256 (cleanup_undefined_types_1): Update.
257 (scan_file_globals): Update.
258 * stack.c (print_frame_arg): Update.
259 (print_frame_args): Update.
260 (find_frame_funname): Update.
261 (info_frame_command_core): Update.
262 (iterate_over_block_locals): Update.
263 (print_block_frame_labels): Update.
264 (do_print_variable_and_value): Update.
265 (iterate_over_block_arg_vars): Update.
266 (return_command): Update.
267 * symmisc.c (dump_symtab_1): Update.
268 (print_symbol): Update.
269 * symtab.c (eq_symbol_entry): Update.
270 (symbol_cache_dump): Update.
271 (lookup_language_this): Update.
272 (find_pc_sect_line): Update.
273 (skip_prologue_sal): Update.
274 (symbol_search::compare_search_syms): Update.
275 (treg_matches_sym_type_name): Update.
276 (search_symbols): Update.
277 (print_symbol_info): Update.
278 (rbreak_command): Update.
279 (completion_list_add_symbol): Update.
280 (find_gnu_ifunc): Update.
281 (get_symbol_address): Update.
282 (search_module_symbols): Update.
283 (info_module_subcommand): Update.
284 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
285 (SYMBOL_LINKAGE_NAME): Remove.
286 (SYMBOL_DEMANGLED_NAME): Remove.
287 (SYMBOL_PRINT_NAME): Remove.
288 (SYMBOL_SEARCH_NAME): Remove.
289 * tracepoint.c (set_traceframe_context): Update.
290 (validate_actionline): Update.
291 (collection_list::collect_symbol): Update.
292 (encode_actions_1): Update.
293 (info_scope_command): Update.
294 (print_one_static_tracepoint_marker): Update.
295 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
296 * valops.c (address_of_variable): Update.
297 (find_overload_match): Update.
298 (find_oload_champ): Update.
299
c9d95fa3
CB
3002019-11-22 Christian Biesinger <cbiesinger@google.com>
301
302 * ada-lang.c (ada_lookup_simple_minsym): Update.
303 (ada_collect_symbol_completion_matches): Update.
304 * ada-tasks.c (read_atcb): Update.
305 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
306 (amd64_windows_skip_trampoline_code): Update.
307 * arm-tdep.c (skip_prologue_function): Update.
308 (arm_skip_stack_protector): Update.
309 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
310 (arm_wince_skip_main_prologue): Update.
311 * ax-gdb.c (gen_expr): Update.
312 * block.c (call_site_for_pc): Update.
313 * blockframe.c (find_pc_partial_function): Update.
314 * breakpoint.c (set_breakpoint_location_function): Update.
315 * btrace.c (ftrace_print_function_name): Update.
316 (ftrace_function_switched): Update.
317 * c-valprint.c (print_unpacked_pointer): Update.
318 * coffread.c (coff_symfile_read): Update.
319 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
320 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
321 * dwarf-index-write.c (write_psymbols): Update.
322 * dwarf2loc.c (call_site_to_target_addr): Update.
323 (func_verify_no_selftailcall): Update.
324 (tailcall_dump): Update.
325 (call_site_find_chain_1): Update.
326 (dwarf_expr_reg_to_entry_parameter): Update.
327 * elfread.c (elf_gnu_ifunc_record_cache): Update.
328 * eval.c (evaluate_funcall): Update.
329 (evaluate_subexp_standard): Update.
330 (evaluate_subexp_for_sizeof): Update.
331 * expprint.c (print_subexp_standard): Update.
332 (dump_subexp_body_standard): Update.
333 * frame.c (get_prev_frame_always_1): Update.
334 * frv-tdep.c (frv_skip_main_prologue): Update.
335 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
336 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
337 (gnuv3_get_typename_from_type_info): Update.
338 (gnuv3_skip_trampoline): Update.
339 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
340 * i386-tdep.c (i386_skip_main_prologue): Update.
341 (i386_pe_skip_trampoline_code): Update.
342 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
343 * infcall.c (get_function_name): Update.
344 * linespec.c (minsym_found): Update.
345 * linux-fork.c (info_checkpoints_command): Update.
346 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
347 (m32c_m16c_pointer_to_address): Update.
348 * maint.c (maintenance_translate_address): Update.
349 * minsyms.c (add_minsym_to_hash_table): Update.
350 (add_minsym_to_demangled_hash_table): Update.
351 (lookup_minimal_symbol_mangled): Update.
352 (lookup_minimal_symbol_demangled): Update.
353 (lookup_minimal_symbol_linkage): Update.
354 (lookup_minimal_symbol_text): Update.
355 (lookup_minimal_symbol_by_pc_name): Update.
356 (minimal_symbol_is_less_than): Update.
357 (compact_minimal_symbols): Update.
358 (build_minimal_symbol_hash_tables): Update.
359 (find_solib_trampoline_target): Update.
360 * mips-tdep.c (mips_stub_frame_sniffer): Update.
361 (mips_skip_pic_trampoline_code): Update.
362 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
363 * objc-lang.c (info_selectors_command): Update.
364 (info_classes_command): Update.
365 (find_methods): Update.
366 (find_imps): Update.
367 * p-valprint.c (pascal_val_print): Update.
368 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
369 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
370 * printcmd.c (build_address_symbolic): Update.
371 (info_symbol_command): Update.
372 * psymtab.c (psymbol_name_matches): Update.
373 (match_partial_symbol): Update.
374 (lookup_partial_symbol): Update.
375 (print_partial_symbols): Update.
376 (sort_pst_symbols): Update.
377 (maintenance_check_psymtabs): Update.
378 * python/py-framefilter.c (py_print_frame): Update.
379 * python/python.c (gdbpy_rbreak): Update.
380 * record-btrace.c (btrace_get_bfun_name): Update.
381 (btrace_call_history): Update.
382 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
383 (rs6000_skip_trampoline_code): Update.
384 * sol-thread.c (info_cb): Update.
385 * stabsread.c (scan_file_globals): Update.
386 * stack.c (find_frame_funname): Update.
387 (info_frame_command_core): Update.
388 * symmisc.c (dump_msymbols): Update.
389 * symtab.c (symbol_natural_name): Rename to..,
390 (general_symbol_info::natural_name): ...this.
391 (symbol_demangled_name): Rename to...
392 (general_symbol_info::demangled_name): ...this.
393 (symbol_search_name): Rename to...
394 (general_symbol_info::search_name): ...this.
395 (symbol_matches_search_name): Update.
396 (find_pc_sect_line): Update.
397 (skip_prologue_sal): Update.
398 (search_symbols): Update.
399 (print_msymbol_info): Update.
400 (rbreak_command): Update.
401 (completion_list_add_msymbol): Update.
402 (completion_list_objc_symbol): Update.
403 (get_msymbol_address): Update.
404 * symtab.h (struct general_symbol_info): Add member functions
405 natural_name (), linkage_name (), print_name (), demangled_name (),
406 and search_name ().
407 (SYMBOL_NATURAL_NAME): Update.
408 (symbol_natural_name): Move to a member function on general_symbol_info.
409 (SYMBOL_DEMANGLED_NAME): Update.
410 (symbol_demangled_name): Move to a member function on
411 general_symbol_info.
412 (SYMBOL_SEARCH_NAME): Update.
413 (symbol_search_name): Move to a member function on general_symbol_info.
414 (MSYMBOL_NATURAL_NAME): Remove.
415 (MSYMBOL_LINKAGE_NAME): Remove.
416 (MSYMBOL_PRINT_NAME): Remove.
417 (MSYMBOL_DEMANGLED_NAME): Remove.
418 (MSYMBOL_SEARCH_NAME): Remove.
419 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
420
f8bab2d6
CB
4212019-11-22 Christian Biesinger <cbiesinger@google.com>
422
423 * symtab.c (create_demangled_names_hash): Use per_bfd->
424 minimal_symbol_count for computing the initial size, if greater
425 than our default size.
426
85e7588d
TV
4272019-11-22 Tom de Vries <tdevries@suse.de>
428
429 * contrib/words.sh: Improve words extraction.
430
f6180073
TV
4312019-11-22 Tom de Vries <tdevries@suse.de>
432
433 * contrib/words.sh: Combine sed invocations.
434
f10ffa41
CB
4352019-11-21 Christian Biesinger <cbiesinger@google.com>
436
437 * Makefile.in: Update.
438 * demangle.c: Rename to...
439 * gdb-demangle.c: ..this.
440 (is_cplus_marker): Change return type to bool.
441 (_initialize_demangler): Rename to...
442 (_initialize_gdb_demangle): ...this.
443 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
444 * symtab.h (demangle): Remove declaration; instead include
445 gdb-demangle.h.
446
6ba18521
TT
4472019-11-21 Tom Tromey <tromey@adacore.com>
448
449 * gdbsupport/format.c (format_pieces): Parse %I64d.
450 * unittests/format_pieces-selftests.c (test_windows_formats): New
451 function.
452 (run_tests): Call it.
453
34877895
PJ
4542019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
455
456 Byte reverse display of variables with DW_END_big, DW_END_little
457 (DW_AT_endianity) dwarf attributes if different than the native
458 byte order.
459 * ada-lang.c (ada_value_binop):
460 Use type_byte_order instead of gdbarch_byte_order.
461 * ada-valprint.c (printstr):
462 (ada_val_print_string):
463 * ada-lang.c (value_pointer):
464 (ada_value_binop):
465 Use type_byte_order instead of gdbarch_byte_order.
466 * c-lang.c (c_get_string):
467 Use type_byte_order instead of gdbarch_byte_order.
468 * c-valprint.c (c_val_print_array):
469 Use type_byte_order instead of gdbarch_byte_order.
470 * cp-valprint.c (cp_print_class_member):
471 Use type_byte_order instead of gdbarch_byte_order.
472 * dwarf2loc.c (rw_pieced_value):
473 Use type_byte_order instead of gdbarch_byte_order.
474 * dwarf2read.c (read_base_type): Handle DW_END_big,
475 DW_END_little
476 * f-lang.c (f_get_encoding):
477 Use type_byte_order instead of gdbarch_byte_order.
478 * findvar.c (default_read_var_value):
479 Use type_byte_order instead of gdbarch_byte_order.
480 * gdbtypes.c (check_types_equal):
481 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
482 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
483 and TYPE_ENDIANITY_LITTLE if set.
484 (type_byte_order): new function.
485 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
486 (struct main_type) <flag_endianity_not_default>:
487 New field.
488 (type_byte_order): New function.
489 * infcmd.c (default_print_one_register_info):
490 Use type_byte_order instead of gdbarch_byte_order.
491 * p-lang.c (pascal_printstr):
492 Use type_byte_order instead of gdbarch_byte_order.
493 * p-valprint.c (pascal_val_print):
494 Use type_byte_order instead of gdbarch_byte_order.
495 * printcmd.c (print_scalar_formatted):
496 Use type_byte_order instead of gdbarch_byte_order.
497 * solib-darwin.c (darwin_current_sos):
498 Use type_byte_order instead of gdbarch_byte_order.
499 * solib-svr4.c (solib_svr4_r_ldsomap):
500 Use type_byte_order instead of gdbarch_byte_order.
501 * stap-probe.c (stap_modify_semaphore):
502 Use type_byte_order instead of gdbarch_byte_order.
503 * target-float.c (target_float_same_format_p):
504 Use type_byte_order instead of gdbarch_byte_order.
505 * valarith.c (scalar_binop):
506 (value_bit_index):
507 Use type_byte_order instead of gdbarch_byte_order.
508 * valops.c (value_cast):
509 Use type_byte_order instead of gdbarch_byte_order.
510 * valprint.c (generic_emit_char):
511 (generic_printstr):
512 (val_print_string):
513 Use type_byte_order instead of gdbarch_byte_order.
514 * value.c (unpack_long):
515 (unpack_bits_as_long):
516 (unpack_value_bitfield):
517 (modify_field):
518 (pack_long):
519 (pack_unsigned_long):
520 Use type_byte_order instead of gdbarch_byte_order.
521 * findvar.c (unsigned_pointer_to_address):
522 (signed_pointer_to_address):
523 (unsigned_address_to_pointer):
524 (address_to_signed_pointer):
525 (default_read_var_value):
526 (default_value_from_register):
527 Use type_byte_order instead of gdbarch_byte_order.
528 * gnu-v3-abi.c (gnuv3_make_method_ptr):
529 Use type_byte_order instead of gdbarch_byte_order.
530 * riscv-tdep.c (riscv_print_one_register_info):
531 Use type_byte_order instead of gdbarch_byte_order.
532
87fb00ea
SM
5332019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
534
535 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
536 (current_ui_gdb_stdin_ptr): Likewise.
537 (current_ui_gdb_stderr_ptr): Likewise.
538 (current_ui_gdb_stdlog_ptr): Likewise.
539 (current_ui_current_uiout_ptr): Likewise.
540 (gen_ret_current_ui_field_ptr): Remove.
541
65d1cd5f
TV
5422019-11-21 Tom de Vries <tdevries@suse.de>
543
544 PR gdb/24956
545 * cli/cli-script.c (execute_control_command): Only switch to
546 INTERP_CONSOLE's ui_out when INTERP_MI is active.
547
9f6ad286
TT
5482019-11-19 Tom Tromey <tom@tromey.com>
549
550 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
551 Now static. Change type of "name".
552 (tui_set_win_height_command): Don't copy "arg".
553 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
554 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
555
435d3d88
AT
5562019-11-19 Ali Tamur <tamur@google.com>
557
558 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
559 "if (attr != nullptr)".
560 (dwarf2_find_base_address): Likewise.
561 (dwarf2_build_include_psymtabs): Likewise.
562 (read_cutu_die_from_dwo): Likewise.
563 (read_func_scope): Likewise.
564 (read_call_site_scope): Likewise.
565 (dwarf2_get_pc_bounds): Likewise.
566 (dwarf2_record_block_ranges): Likewise.
567 (dwarf2_add_field): Likewise.
568 (dwarf2_add_member_fn): Likewise.
569 (read_structure_type): Likewise.
570 (read_enumeration_type): Likewise.
571 (read_array_type): Likewise.
572 (read_array_order): Likewise.
573 (read_set_type): Likewise.
574 (read_common_block): Likewise.
575 (read_tag_reference_type): Likewise.
576 (read_tag_string_type): Likewise.
577 (read_subroutine_type): Likewise.
578 (read_base_type): Likewise.
579 (read_subrange_type): Likewise.
580 (new_symbol): Likewise.
581 (prepare_one_comp_unit): Likewise.
582
c9739b6a
TT
5832019-11-19 Tom Tromey <tromey@adacore.com>
584
585 * windows-nat.c (windows_nat_target::attach): Include GetLastError
586 result in error when DebugActiveProcess fails.
587
494409bb
SDJ
5882019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
589 Pedro Alves <palves@redhat.com>
590
591 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
592 * target.c (target_stack::push): Call 'unpush' if there's a
593 target on top of the stack.
594
2e953aca
PW
5952019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
596
597 * python/py-block.c (blpy_dealloc): Call tp_free.
598 (blpy_block_syms_dealloc): Likewise.
599 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
600 * python/py-inferior.c (infpy_dealloc): Likewise.
601 * python/py-lazy-string.c (stpy_dealloc): Likewise.
602 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
603 * python/py-symbol.c (sympy_dealloc): Likewise.
604 * python/py-symtab.c (stpy_dealloc): Likewise.
605 * python/py-type.c (typy_iterator_dealloc): Likewise.
606
6edc43ec
CB
6072019-11-18 Christian Biesinger <cbiesinger@google.com>
608
609 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
610 constructor instead of using a class initializer.
611
cd850b40
CB
6122019-11-15 Christian Biesinger <cbiesinger@google.com>
613
614 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
615 * configure: Regenerate.
616 * configure.ac: Don't source common.host.
617 * gdbsupport/common.host: Remove.
618 * gdbsupport/mingw-strerror.c: Remove.
619 * gdbsupport/posix-strerror.c: Rename to...
620 * gdbsupport/safe-strerror.c: ...this.
621
53fea9c7
CB
6222019-11-15 Christian Biesinger <cbiesinger@google.com>
623
624 * maint.c (scoped_command_stats::print_time): Use localtime_r
625 instead of localtime (provided through gnulib if necessary).
626 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
627 of ctime.
628
f8e27d88
CB
6292019-11-15 Christian Biesinger <cbiesinger@google.com>
630
631 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
632 avoid compile errors.
633
5abebf3c
CB
6342019-11-15 Christian Biesinger <cbiesinger@google.com>
635
636 * config.in: Regenerate.
637 * configure: Regenerate.
638 * gdbsupport/common.m4: No longer check for strerror_r.
639 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
640 POSIX version of strerror_r, now that gnulib provides it if
641 necessary.
642
9a351667
CB
6432019-11-14 Christian Biesinger <cbiesinger@google.com>
644
645 * README (`configure' options): Update.
646
55708e99
TT
6472019-11-14 Tom Tromey <tromey@adacore.com>
648
649 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
650 expected type for the RHS if the LHS is a convenience variable.
651
4b09bb2e
SM
6522019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
653
654 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
655 Provide explicit default and copy constructor.
656
bd454f8b
PW
6572019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
658
659 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
660 only call Py_INCREF (newbp) in the bppy_pending_object case.
661
d1aa3cf0
TT
6622019-11-13 Tom Tromey <tromey@adacore.com>
663
664 PR build/25182:
665 * psympriv.h (partial_symbol): Remove static assert.
666 * symtab.h (general_symbol_info, symbol): Remove static assert.
667
e06f3d6e
AB
6682019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
669
670 * gdbsupport/format.c (format_pieces::format_pieces): Support
671 printf 'z' size modifier.
672 * gdbsupport/format.h (enum argclass): Add size_t_arg.
673 * printcmd.c (ui_printf): Handle size_t_arg.
674 * ui-out.c (ui_out::vmessage): Likewise.
675 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
676 function.
677 (run_tests): Call test_format_int_sizes.
678
468c0cbb
CB
6792019-11-12 Christian Biesinger <cbiesinger@google.com>
680
681 * ada-exp.y (write_ambiguous_var): Update.
682 * buildsym.c (add_symbol_to_list): Update.
683 * dwarf2read.c (read_variable): Update.
684 (new_symbol): Update.
685 * jit.c (finalize_symtab): Update.
686 * language.c (language_alloc_type_symbol): Update.
687 * symtab.c (fixup_symbol_section): Update.
688 (initialize_objfile_symbol_1): Move code to...
689 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
690 (allocate_symbol): Update.
691 (allocate_template_symbol): Update.
692 (get_symbol_address): Update.
693 * symtab.h (struct symbol): Inherit from general_symbol_info instead
694 of having as a field, and add a constructor.
695 (SYMBOL_VALUE): Update.
696 (SYMBOL_VALUE_ADDRESS): Update.
697 (SET_SYMBOL_VALUE_ADDRESS): Update.
698 (SYMBOL_VALUE_BYTES): Update.
699 (SYMBOL_VALUE_COMMON_BLOCK): Update.
700 (SYMBOL_BLOCK_VALUE): Update.
701 (SYMBOL_VALUE_CHAIN): Update.
702 (SYMBOL_LANGUAGE): Update.
703 (SYMBOL_SECTION): Update.
704 (SYMBOL_OBJ_SECTION): Update.
705 (SYMBOL_SET_LANGUAGE): Update.
706 (SYMBOL_SET_LINKAGE_NAME): Update.
707 (SYMBOL_SET_NAMES): Update.
708 (SYMBOL_NATURAL_NAME): Update.
709 (SYMBOL_LINKAGE_NAME): Update.
710 (SYMBOL_DEMANGLED_NAME): Update.
711 (SYMBOL_SEARCH_NAME): Update.
712 (SYMBOL_MATCHES_SEARCH_NAME): Update.
713 (struct symbol): Update.
714 (struct template_symbol): Update.
715 (struct rust_vtable_symbol): Update.
716 * xcoffread.c (SYMBOL_DUP): Update.
717
ed2c82c3
TT
7182019-11-12 Tom Tromey <tom@tromey.com>
719
720 * tui/tui-layout.c (show_layout): Set current_layout.
721 (show_source_disasm_command, show_data)
722 (show_source_or_disasm_and_command): Don't set current_layout.
723
d9fcefd5
TT
7242019-11-12 Tom Tromey <tom@tromey.com>
725
726 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
727
45e42163
TT
7282019-11-12 Tom Tromey <tom@tromey.com>
729
730 * tui/tui-win.c (resize_message): New global.
731 (show_tui_resize_message): New function.
732 (tui_async_resize_screen): Print message if requested.
733 (_initialize_tui_win): Add tui-resize-message setting.
734 * NEWS: Add entry for new commands.
735
c86d74cc
TT
7362019-11-11 Tom Tromey <tom@tromey.com>
737
738 * tui/tui.c (tui_initialize_readline): Add new bindable readline
739 functions.
740
7b7b9424
CB
7412019-11-11 Christian Biesinger <cbiesinger@google.com>
742
743 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
744
086baaf1
AB
7452019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
746
747 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
748 function.
749 * python/python-internal.h (gdbpy_lookup_static_symbols):
750 Declare new function.
751 * python/python.c (python_GdbMethods): Add
752 gdb.lookup_static_symbols method.
753 * NEWS: Mention gdb.lookup_static_symbols.
754
09ff83af
AB
7552019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
756
757 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
758 static block of current object file first. Also fix typo in
759 header comment.
760
eb2dd8df
AB
7612019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
762
763 * stack.c (set_last_displayed_sal): Delete.
764 (last_displayed_sal_valid): Delete.
765 (last_displayed_pspace): Delete.
766 (last_displayed_addr): Delete.
767 (last_displayed_symtab): Delete.
768 (last_displayed_line): Delete.
769 (class last_displayed_symtab_info_type): New.
770 (last_displayed_symtab_info): New static global variable.
771 (print_frame_info): Call methods on last_displayed_symtab_info.
772 (clear_last_displayed_sal): Update header comment, and make use of
773 last_displayed_symtab_info.
774 (last_displayed_sal_is_valid): Likewise.
775 (get_last_displayed_pspace): Likewise.
776 (get_last_displayed_addr): Likewise.
777 (get_last_displayed_symtab): Likewise.
778 (get_last_displayed_line): Likewise.
779 (get_last_displayed_sal): Likewise.
780 * stack.h (clear_last_displayed_sal): Update header comment.
781 (last_displayed_sal_is_valid): Likewise.
782 (get_last_displayed_pspace): Likewise.
783 (get_last_displayed_addr): Likewise.
784 (get_last_displayed_symtab): Likewise.
785 (get_last_displayed_line): Likewise.
786 (get_last_displayed_sal): Likewise.
787
62137775
AB
7882019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
789
790 * stack.c (frame_show_address): Convert return type to bool.
791 * stack.h (frame_show_address): Likewise, and update header
792 comment.
793
cf57ad6d
AB
7942019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
795
796 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
797 * unittests/vec-utils-selftests.c: New file.
798 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
799
0b026263
TT
8002019-11-10 Tom Tromey <tom@tromey.com>
801
802 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
803 (tui_highlight_win): Likewise.
804 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
805 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
806 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
807 Don't set can_highlight.
808
b049ce2d
TT
8092019-11-10 Tom Tromey <tom@tromey.com>
810
811 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
812 Remove unused declaration.
813
992a7040
TT
8142019-11-08 Tom Tromey <tromey@adacore.com>
815
816 * top.c (read_command_file): Update.
817 (command_line_input): Make return type const.
818 * python/py-gdb-readline.c: Update.
819 * linespec.c (decode_line_2): Update.
820 * defs.h (command_line_input): Make return type const.
821 * cli/cli-script.c (read_next_line): Make return type const.
822 * ada-lang.c (get_selections): Update.
823
ca3a04f6
CB
8242019-11-06 Christian Biesinger <cbiesinger@google.com>
825
826 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
827 * mi/mi-main.c (output_cores): Likewise.
828 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
829 (linux_xfer_osdata_modules): Likewise.
830 * remote.c (register_remote_support_xml): Likewise.
831 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
832 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
833
e0eac551
TT
8342019-11-06 Tom Tromey <tom@tromey.com>
835
836 * tui/tui-interp.c: Don't include readline.h.
837 * tui/tui-hooks.c: Don't include readline.h.
838 * symmisc.c: Include tilde.h, not readline.h.
839 * symfile.c: Include tilde.h, not readline.h.
840 * source.c: Include tilde.h, not readline.h.
841 * solib.c: Include tilde.h, not readline.h.
842 * psymtab.c: Include tilde.h, not readline.h.
843 * exec.c: Include tilde.h, not readline.h.
844 * corelow.c: Include tilde.h, not readline.h.
845 * cli/cli-dump.c: Include tilde.h, not readline.h.
846 * cli/cli-cmds.c: Don't include readline.h.
847
825165c5
TT
8482019-11-05 Tom Tromey <tom@tromey.com>
849
850 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
851 (tui_disassemble): Set addr_size.
852 (tui_disasm_window::set_contents): Use addr_size.
853
91ae903f
TT
8542019-11-05 Tom Tromey <tom@tromey.com>
855
856 * rust-lang.c (rust_language_defn): Update.
857 * python/py-value.c (valpy_string): Call c_get_string.
858 * p-lang.c (pascal_language_defn): Update.
859 * opencl-lang.c (opencl_language_defn): Update.
860 * objc-lang.c (objc_language_defn): Update.
861 * m2-lang.c (m2_language_defn): Update.
862 * language.c (unknown_language_defn, auto_language_defn): Update.
863 (default_get_string): Remove.
864 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
865 * go-lang.c (go_language_defn): Update.
866 * f-lang.c (f_language_defn): Update.
867 * d-lang.c (d_language_defn): Update.
868 * c-lang.c (c_language_defn, cplus_language_defn)
869 (asm_language_defn, minimal_language_defn): Update.
870 * ada-lang.c (ada_language_defn): Update.
871 * language.h (struct language_defn) <la_get_string>: Remove.
872 (LA_GET_STRING): Remove.
873 (default_get_string): Don't declare.
874
1df2f9ef
TT
8752019-11-05 Tom Tromey <tom@tromey.com>
876
877 * tui/tui-source.h (struct tui_source_window): Inline
878 constructor. Remove destructor.
879 <style_changed, m_observable>: Move to superclass.
880 * tui/tui-winsource.h (tui_copy_source_line): Declare.
881 (struct tui_source_window_base): Move private members to end.
882 <style_changed, m_observable>: Move from tui_source_window.
883 * tui/tui-winsource.c (tui_copy_source_line): Move from
884 tui-source.c. Rename from copy_source_line. Add special handling
885 for negative line number.
886 (tui_source_window_base::style_changed): Move from
887 tui_source_window.
888 (tui_source_window_base): Register observer.
889 (~tui_source_window_base): New.
890 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
891 rename.
892 (tui_source_window::set_contents): Use tui_copy_source_line.
893 (tui_source_window::tui_source_window): Move to tui-source.h.
894 (tui_source_window::~tui_source_window): Remove.
895 (tui_source_window::style_changed): Move to superclass.
896 * tui/tui-disasm.c (tui_disassemble): Create string file with
897 styling, when possible. Add "addr_size" parameter.
898 (tui_disasm_window::set_contents): Use tui_copy_source_line.
899 Don't compute maximum size.
900 (len_without_escapes): New function
901
5d051055
TT
9022019-11-05 Tom Tromey <tom@tromey.com>
903
904 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
905 std::string.
906 * tui/tui-winsource.c (tui_show_source_line): Update.
907 * tui/tui-source.c (tui_source_window::set_contents): Update.
908 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
909
ade7beea
CB
9102019-11-05 Christian Biesinger <cbiesinger@google.com>
911
912 * symtab.h (gdb_static_assert): Put && operator at the beginning
913 of the line instead of the end.
914
3573abe1
CB
9152019-11-04 Christian Biesinger <cbiesinger@google.com>
916
917 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
918 and sizeof (symbol).
919 * symtab.h: Add a static_assert for sizeof (partial_symbol).
920
dae8b3eb
RO
9212019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
922
923 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
924 * configure.host: Mark *-*-solaris2.10* obsolete.
925 * configure.tgt: Mark Solaris < 11 obsolete.
926 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
927 Update target triplet.
928
5df96a4e
TT
9292019-11-01 Tom Tromey <tromey@adacore.com>
930
931 * utils.c (print_sys_errmsg): Simplify.
932
b7481649
TT
9332019-11-01 Tom Tromey <tromey@adacore.com>
934
935 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
936
e48f6033
CB
9372019-11-01 Christian Biesinger <cbiesinger@google.com>
938
939 * configure: Regenerate.
940 * configure.ac: Remove check for strerror_r.
941 * gdbsupport/common.m4: Check for strerror_r.
942
bd5766ec
LM
9432019-11-01 Luis Machado <luis.machado@linaro.org>
944
945 PR gdb/25124
946
947 * arm-tdep.c (arm_per_objfile): Rename to ...
948 (arm_per_bfd): ... this.
949 (arm_objfile_data_key): Rename to ...
950 (arm_bfd_data_key): ... this.
951 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
952 data.
953 (arm_record_special_symbol): Likewise.
954
e1709896
AB
9552019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
956
957 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
958 end.
959 * c-typeprint.c (c_print_typedef): Likewise.
960 * f-typeprint.c (f_print_typedef): Likewise.
961 * m2-typeprint.c (m2_print_typedef): Likewise.
962 * p-typeprint.c (pascal_print_typedef): Likewise.
963 * rust-lang.c (rust_print_typedef): Likewise.
964 * symtab.c (print_symbol_info): Print a newline after calling
965 typedef_print.
966
165f8965
AB
9672019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
968
969 * symtab.c (info_module_cmdlist): New variable.
970 (info_module_command): New function.
971 (search_module_symbols): New function.
972 (info_module_subcommand): New function.
973 (struct info_modules_var_func_options): New struct.
974 (info_modules_var_func_options_defs): New variable.
975 (make_info_modules_var_func_options_def_group): New function.
976 (info_module_functions_command): New function.
977 (info_module_variables_command): New function.
978 (info_module_var_func_command_completer): New function.
979 (_initialize_symtab): Register new 'info module functions' and
980 'info module variables' commands.
981 * symtab.h (typedef symbol_search_in_module): New typedef.
982 (search_module_symbols): Declare new function.
983 * NEWS: Mention new commands.
984
59c35742
AB
9852019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
986
987 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
988 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
989 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
990 MODULES_DOMAIN.
991 (scan_partial_symbols): Only create partial module symbols for non
992 declarations.
993 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
994 and MODULES_DOMAIN.
995 * symtab.c (search_domain_name): Likewise.
996 (search_symbols): Likewise.
997 (print_symbol_info): Likewise.
998 (symtab_symbol_info): Likewise.
999 (info_modules_command): New function.
1000 (_initialize_symtab): Register 'info modules' command.
1001 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1002 * NEWS: Mention new 'info modules' command.
1003
aed61d02
PW
10042019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1005
1006 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1007 and $_gdb_maint_setting_str.
1008
9ad9b77d
PW
10092019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1010
1011 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1012 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1013 (str_value_from_setting, gdb_setting_str_internal_fn)
1014 (gdb_maint_setting_str_internal_fn): New functions.
1015 (_initialize_cli_cmds): Define the new convenience functions.
1016 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1017 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1018
8d6efaa2
CB
10192019-10-31 Christian Biesinger <cbiesinger@google.com>
1020
1021 * agent.c (set_can_use_agent): When the setting is turned on,
1022 look up agent symbols if we don't have them yet.
1023 (agent_new_objfile): Don't look up agent symbols when the agent
1024 setting is off.
1025
33cb1647
CB
10262019-10-31 Christian Biesinger <cbiesinger@google.com>
1027
1028 * config.in: Regenerate.
1029
b231e86a
CB
10302019-10-31 Christian Biesinger <cbiesinger@google.com>
1031
1032 * configure: Regenerate.
1033 * configure.ac: Check for strerror_r.
1034 * gdbsupport/common-utils.h (safe_strerror): Change return value
1035 to const char * and document that this function is now threadsafe.
1036 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1037 thread_local and call strerror_r, if available.
1038 * utils.c (perror_string): Update.
1039 (print_sys_errmsg): Update.
1040
a2726d4f
LM
10412019-10-31 Luis Machado <luis.machado@linaro.org>
1042
1043 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1044 objfile_key.
1045 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1046 objfile to fetch per-bfd data.
1047 (arm_find_exidx_entry): Likewise.
1048
75cafaa6
CB
10492019-10-31 Christian Biesinger <cbiesinger@google.com>
1050
1051 * gdbsupport/agent.c (debug_agent): Change type to bool.
1052 (use_agent): Likewise.
1053 (all_agent_symbols_look_up): Likewise.
1054 (agent_loaded_p): Change return value to bool.
1055 (agent_look_up_symbols): Update.
1056 (agent_capability_check): Change return value to bool.
1057 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1058 (debug_agent): Change type to bool.
1059 (use_agent): Likewise.
1060 (agent_capability_check): Change return value to bool.
1061
808590ec
CB
10622019-10-30 Christian Biesinger <cbiesinger@google.com>
1063
1064 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1065 (build_minimal_symbol_hash_tables): Code to clear the table moved
1066 to clear_minimal_symbol_hash_tables.
1067 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1068 when needed.
1069
f18ad8a1
SM
10702019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1071
1072 * infcmd.c: Remove includes.
1073 * infrun.c: Remove includes.
1074
de93309a
SM
10752019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1076
1077 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1078 (grow_vect): Remove declaration.
1079 (ada_type_of_array): Remove declaration.
1080 (ada_update_initial_language): Remove declaration.
1081 (ada_fold_name): Remove declaration.
1082 (ada_fill_in_ada_prototype): Remove declaration.
1083 (user_select_syms): Remove declaration.
1084 (get_selections): Remove declaration.
1085 (ada_tag_type): Remove declaration.
1086 (ada_value_tag): Remove declaration.
1087 (ada_is_others_clause): Remove declaration.
1088 (ada_in_variant): Remove declaration.
1089 (ada_value_struct_elt): Remove declaration.
1090 (ada_attribute_name): Remove declaration.
1091 (ada_system_address_type): Remove declaration.
1092 * ada-lang.c (ada_watch_location_expression): Make static.
1093 (GROW_VECT): Move here from ada-lang.h.
1094 (grow_vect): Make static.
1095 (ada_update_initial_language): Make static.
1096 (ada_fold_name): Make static.
1097 (ada_type_of_array): Make static.
1098 (encoded_ordered_before): Move up.
1099 (sort_choices): Move up.
1100 (print_signatures): Move up.
1101 (ada_print_symbol_signature): Move up.
1102 (get_selections): Move up and make static.
1103 (user_select_syms): Move up and make static.
1104 (ada_value_struct_elt): Move up and make static.
1105 (ada_tag_type): Make static.
1106 (ada_value_tag): Make static.
1107 (ada_is_others_clause): Make static.
1108 (ada_in_variant): Make static.
1109 (ada_attribute_name): Make static.
1110
cdc46a9f
SM
11112019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1112
1113 * ada-lang.c: Remove includes.
1114 * ada-typeprint.c: Remove includes.
1115 * ada-valprint.c: Remove includes.
1116
90421c56
SM
11172019-10-29 Simon Marchi <simon.marchi@efficios.com>
1118
1119 * addrmap.c: Add static assertions of type size, moved from
1120 _initialize_addrmap.
1121 (_initialize_addrmap): Remove.
1122
31edb802
CB
11232019-10-29 Christian Biesinger <cbiesinger@google.com>
1124
1125 * coffread.c (record_minimal_symbol): Update.
1126 (process_coff_symbol): Update.
1127 * dbxread.c (read_dbx_symtab): Update.
1128 * dwarf2read.c (add_partial_symbol): Update.
1129 (fixup_go_packaging): Update.
1130 (load_partial_dies): Update.
1131 (new_symbol): Update.
1132 * elfread.c (record_minimal_symbol): Change signature to use
1133 gdb::string_view instead of name+len.
1134 (elf_symtab_read): Update.
1135 (elf_rel_plt_read): Update.
1136 * mdebugread.c (parse_partial_symbols): Update.
1137 (handle_psymbol_enumerators): Update.
1138 (new_symbol): Update.
1139 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1140 to use gdb::string_view instead of name+len.
1141 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1142 * psympriv.h (add_psymbol_to_list): Likewise.
1143 * psymtab.c (add_psymbol_to_bcache): Likewise.
1144 (add_psymbol_to_list): Likewise.
1145 * stabsread.c (define_symbol): Update.
1146 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1147 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1148 (symbol_set_names): Likewise.
1149 * xcoffread.c (scan_xcoff_symtab): Update.
1150
0c921b21
CB
11512019-10-29 Christian Biesinger <cbiesinger@google.com>
1152
1153 * symtab.h (symbol_set_names): Document that copy_name must be
1154 set to true for non-nullterminated strings.
1155 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1156 linkage_name if the entry was not found and we need to demangle.
1157
35e65c49
CB
11582019-10-29 Christian Biesinger <cbiesinger@google.com>
1159
1160 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1161 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1162 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1163 * gdbsupport/gdb_binary_search.h: New file.
1164
ed2a2229
CB
11652019-10-29 Christian Biesinger <cbiesinger@google.com>
1166
1167 * NEWS: Mention new --with-system-gdbinit-dir option.
1168 * config.in: Regenerate.
1169 * configure: Regenerate.
1170 * configure.ac: Add new option --with-system-gdbinit-dir.
1171 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1172 for a ".gdb" suffix.
1173 * main.c (get_init_files): Change system_gdbinit argument to
1174 a vector and return the files in SYSTEM_GDBINIT_DIR in
1175 addition to SYSTEM_GDBINIT.
1176 (captured_main_1): Update.
1177 (print_gdb_help): Update.
1178 * top.c (print_gdb_configuration): Also print the value of
1179 SYSTEM_GDBINIT_DIR.
1180
87f34879
CB
11812019-10-28 Christian Biesinger <cbiesinger@google.com>
1182
1183 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1184 that takes gdb::string_view arguments.
1185
30baf67b
TV
11862019-10-26 Tom de Vries <tdevries@suse.de>
1187
1188 * aarch64-linux-tdep.c: Fix typos in comments.
1189 * aarch64-tdep.c: Same.
1190 * ada-lang.c: Same.
1191 * amd64-nat.c: Same.
1192 * arc-tdep.c: Same.
1193 * arch/aarch64-insn.c: Same.
1194 * block.c: Same.
1195 * breakpoint.h: Same.
1196 * btrace.h: Same.
1197 * c-varobj.c: Same.
1198 * cli/cli-decode.c: Same.
1199 * cli/cli-script.c: Same.
1200 * cli/cli-utils.h: Same.
1201 * coff-pe-read.c: Same.
1202 * coffread.c: Same.
1203 * compile/compile-cplus-symbols.c: Same.
1204 * compile/compile-object-run.c: Same.
1205 * completer.c: Same.
1206 * corelow.c: Same.
1207 * cp-support.c: Same.
1208 * demangle.c: Same.
1209 * dwarf-index-write.c: Same.
1210 * dwarf2-frame.c: Same.
1211 * dwarf2-frame.h: Same.
1212 * eval.c: Same.
1213 * frame-base.h: Same.
1214 * frame.h: Same.
1215 * gdbcmd.h: Same.
1216 * gdbtypes.h: Same.
1217 * gnu-nat.c: Same.
1218 * guile/scm-objfile.c: Same.
1219 * i386-tdep.c: Same.
1220 * i386-tdep.h: Same.
1221 * infcall.c: Same.
1222 * infcall.h: Same.
1223 * linux-nat.c: Same.
1224 * m68k-tdep.c: Same.
1225 * macroexp.c: Same.
1226 * memattr.c: Same.
1227 * mi/mi-cmd-disas.c: Same.
1228 * mi/mi-getopt.h: Same.
1229 * mi/mi-main.c: Same.
1230 * minsyms.c: Same.
1231 * nat/aarch64-sve-linux-sigcontext.h: Same.
1232 * objfiles.h: Same.
1233 * ppc-linux-nat.c: Same.
1234 * ppc-linux-tdep.c: Same.
1235 * ppc-tdep.h: Same.
1236 * progspace.h: Same.
1237 * prologue-value.h: Same.
1238 * python/py-evtregistry.c: Same.
1239 * python/py-instruction.h: Same.
1240 * record-btrace.c: Same.
1241 * record-full.c: Same.
1242 * remote.c: Same.
1243 * rs6000-tdep.c: Same.
1244 * ser-tcp.c: Same.
1245 * sol-thread.c: Same.
1246 * sparc-sol2-tdep.c: Same.
1247 * sparc64-tdep.c: Same.
1248 * stabsread.c: Same.
1249 * symfile.c: Same.
1250 * symtab.h: Same.
1251 * target.c: Same.
1252 * tracepoint.c: Same.
1253 * tui/tui-data.h: Same.
1254 * tui/tui-io.c: Same.
1255 * tui/tui-win.c: Same.
1256 * tui/tui.c: Same.
1257 * unittests/rsp-low-selftests.c: Same.
1258 * user-regs.h: Same.
1259 * utils.c: Same.
1260 * utils.h: Same.
1261 * valarith.c: Same.
1262 * valops.c: Same.
1263 * valprint.c: Same.
1264 * valprint.h: Same.
1265 * value.c: Same.
1266 * value.h: Same.
1267 * varobj.c: Same.
1268 * x86-nat.h: Same.
1269 * xtensa-tdep.c: Same.
1270
1834d45f
AT
12712019-10-25 Ali Tamur <tamur@google.com>
1272
1273 * charset.c (find_charset_names): Reflect API change.
1274
5396ae17
CB
12752019-10-25 Christian Biesinger <cbiesinger@google.com>
1276
1277 * symtab.c (struct demangled_name_entry): Change demangled name
1278 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1279 part of the struct anymore.
1280 (symbol_set_names): No longer obstack allocate + copy the demangled
1281 name, just store the allocated name from bfd.
1282
93878f47
TT
12832019-10-25 Tom Tromey <tromey@adacore.com>
1284
1285 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1286 (bsearch_cie_cmp, add_cie): Remove.
1287 (find_cie): Reimplement.
1288 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1289 (dwarf2_build_frame_info): Update.
1290
7b71fc97
L
12912019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1292
1293 PR gdb/25126
1294 * symfile.c (reread_symbols): Call forget_cached_source_info to
1295 clear the stale source cache.
1296
cbb5a2ea
CB
12972019-10-24 Christian Biesinger <cbiesinger@google.com>
1298
1299 * configure: Regenerate.
1300 * configure.ac: Remove code that sets python_has_threads.
1301
71737c43
CB
13022019-10-24 Christian Biesinger <cbiesinger@google.com>
1303
1304 * config.in: Regenerate.
1305 * configure: Regenerate.
1306 * configure.ac: Remove the code that uses sed to get the python
1307 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1308
33d569b7
AB
13092019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1310
1311 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1312 error paths.
1313
f16f7b7c
TT
13142019-10-23 Tom Tromey <tom@tromey.com>
1315
1316 * arc-tdep.c: Remove ".." from include.
1317 * frv-tdep.c: Remove ".." from include.
1318 * lm32-tdep.c: Remove ".." from include.
1319 * microblaze-tdep.c: Remove ".." from include.
1320 * or1k-tdep.h: Remove ".." from include.
1321 * s12z-tdep.c: Remove ".." from include.
1322 * Makefile.in (OPCODES_CFLAGS): Add comment.
1323 (TOP_CFLAGS): New variable.
1324 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1325
6999161a
TT
13262019-10-23 Tom Tromey <tom@tromey.com>
1327
1328 * Makefile.in (READLINE_DIR): Update.
1329
12e7c35e
TBA
13302019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1331
1332 * infcall.c (call_function_by_hand_dummy): Fix the function
1333 comment. And extract out a code section into...
1334 (reserve_stack_space): ...this new function.
1335
37055cad
TBA
13362019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1337
1338 * infcall.c (value_arg_coerce): Remove an unused parameter.
1339 (call_function_by_hand_dummy): Update the call to
1340 'value_arg_coerce'.
1341
39bcc47c
TBA
13422019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1343
1344 * infcall.c (call_function_by_hand_dummy): Refactor.
1345
bd888c0f
TBA
13462019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1347
1348 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1349
c12d372d
TT
13502019-10-23 Tom Tromey <tom@tromey.com>
1351
1352 * configure: Rebuild.
1353 * configure.ac: Don't check for sigprocmask.
1354 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1355
4d0b984b
TT
13562019-10-23 Tom Tromey <tom@tromey.com>
1357
1358 * configure: Rebuild.
1359 * acinclude.m4: Use m4_include, not sinclude.
1360
7e785608
TV
13612019-10-23 Tom de Vries <tdevries@suse.de>
1362
1363 PR breakpoints/24687
1364 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1365
403772ef
CB
13662019-10-22 Christian Biesinger <cbiesinger@google.com>
1367
1368 * symtab.c (struct demangled_name_entry) <language>: Change from
1369 bitfield to regular variable.
1370
3a494279
CB
13712019-10-22 Christian Biesinger <cbiesinger@google.com>
1372
1373 * symtab.c (struct demangled_name_entry): Add a constructor.
1374 (free_demangled_name_entry): New function to call the destructor
1375 for demangled_name_entry.
1376 (create_demangled_names_hash): Pass free_demangled_name_entry to
1377 htab_create_alloc.
1378 (symbol_set_names): Call placement new for demangled_name_entry.
1379 * utils.c: No longer include xxhash.h here, now that fast_hash
1380 is inlined in the header.
1381 * utils.h: Instead, include it here.
1382
ccb1ba62
CB
13832019-10-22 Christian Biesinger <cbiesinger@google.com>
1384
1385 * Makefile.in: Link with libxxhash.
1386 * config.in: Regenerate.
1387 * configure: Regenerate.
1388 * configure.ac: Search for libxxhash.
1389 * utils.c (fast_hash): Use xxhash if present.
1390
1a6ff1a9
CB
13912019-10-22 Christian Biesinger <cbiesinger@google.com>
1392
1393 * utils.h (fast_hash): New function.
1394 * symtab.c (hash_demangled_name_entry): Call new function
1395 fast_hash.
1396
7bb43059
CB
13972019-10-22 Christian Biesinger <cbiesinger@google.com>
1398
1399 * symtab.c (struct demangled_name_entry): Change type of mangled
1400 to gdb::string_view. Also adds a constructor that takes the
1401 mangled name.
1402 (hash_demangled_name_entry): Update.
1403 (eq_demangled_name_entry): Update.
1404 (free_demangled_name_entry): New function to call the destructor
1405 now that this is not a POD anymore.
1406 (create_demangled_names_hash): Pass free_demangled_name_entry to
1407 htab_create_alloc.
1408 (symbol_set_names): Update.
1409
7ba99d21
AT
14102019-10-21 Ali Tamur <tamu@google.com>
1411
1412 * dwarf2read.c (dir_index): Change type.
1413 (file_name_index): Likewise.
1414 (line_header::include_dir_at): Change comment and implementation on
1415 whether it is DWARF 5.
1416 (line_header::is_valid_file_index): New function.
1417 (line_header::file_name_at): Change comment and implementation on
1418 whether it is DWARF 5.
1419 (line_header::file_names): Change to private field renamed as
1420 m_file_names and introduce a new accessor method.
1421 (line_header::file_names_size): New method.
1422 (line_header::include_dirs): Change to private field and rename as
1423 m_include_dirs.
1424 (dw2_get_file_names_reader): Define local var at a smaller scope and
1425 reflect API change.
1426 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1427 (process_structure_scope): Likewise.
1428 (line_header::add_include_dir): Change message and reflect renaming.
1429 (line_header::add_file_name): Likewise.
1430 (read_formatted_entries): Handle DW_FORM_data16.
1431 (dwarf_decode_line_header): Fix line header length calculation.
1432 (psymtab_include_file_name): Change comment and API.
1433 (lnp_state_machine::m_file): Update comment and reflect type change.
1434 (lnp_state_machine::record_line): Reflect type change.
1435 (dwarf_decode_lines): Reflect API change.
1436 (file_file_name): Likewise.
1437 (file_full_name): Likewise.
1438
45f47c3a
AB
14392019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1440
1441 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1442
e5f3c0e3
TT
14432019-10-21 Tom Tromey <tom@tromey.com>
1444
1445 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1446
a0a461e5
TT
14472019-10-21 Tom Tromey <tom@tromey.com>
1448
1449 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1450 NM_H. Use AC_CONFIG_LINKS.
1451 * configure: Rebuild.
1452 * Makefile.in (NM_H): New variable.
1453 (generated_files): Add NM_H. Remove gcore.
1454 (nm.h, stamp-nmh): New targets.
1455
54d83b8d
TT
14562019-10-20 Tom Tromey <tom@tromey.com>
1457
1458 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1459 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1460 obsolete comment.
1461 (put_objfile_before): Now static.
1462
23771117
SM
14632019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1464
1465 * gdbsupport/common-utils.h (startswith): Change return type to
1466 bool.
1467
39ef2f62
CB
14682019-10-19 Christian Biesinger <cbiesinger@google.com>
1469
1470 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1471 * breakpoint.c (bp_locations_compare): Rename to...
1472 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1473 (update_global_location_list): Use std::sort instead of qsort.
1474 * buildsym.c (compare_line_numbers): Rename to...
1475 (lte_is_less_than): ...this, and change to std::sort semantics.
1476 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1477 instead of qsort.
1478 * disasm.c (compare_lines): Rename to...
1479 (line_is_less_than): ...this, and change to std::sort semantics.
1480 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1481 of qsort.
1482 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1483 (fde_is_less_than): ...this, and change to std::sort semantics.
1484 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1485 * mdebugread.c (compare_blocks):
1486 (block_is_less_than): ...this, and change to std::sort semantics.
1487 (sort_blocks): Call std::sort instead of qsort.
1488 * objfiles.c (qsort_cmp): Rename to...
1489 (sort_cmp): ...this, and change to std::sort semantics.
1490 (update_section_map): Call std::sort instead of qsort.
1491 * remote.c (compare_pnums): Remove.
1492 (map_regcache_remote_table): Call std::sort instead of qsort.
1493 * utils.c (compare_positive_ints): Remove.
1494 * utils.h (compare_positive_ints): Remove.
1495 * xcoffread.c (compare_lte): Remove.
1496 (arrange_linetable): Call std::sort instead of qsort.
1497
f71433ee
SDJ
14982019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1499
1500 * symfile.c (init_entry_point_info): Fix typo.
1501 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1502
85102364
TV
15032019-10-18 Tom de Vries <tdevries@suse.de>
1504
1505 * aarch64-tdep.c: Fix typos in comments.
1506 * ada-lang.c: Same.
1507 * ada-tasks.c: Same.
1508 * alpha-tdep.c: Same.
1509 * alpha-tdep.h: Same.
1510 * amd64-nat.c: Same.
1511 * amd64-windows-tdep.c: Same.
1512 * arc-tdep.c: Same.
1513 * arc-tdep.h: Same.
1514 * arch-utils.c: Same.
1515 * arm-nbsd-tdep.c: Same.
1516 * arm-tdep.c: Same.
1517 * ax-gdb.c: Same.
1518 * blockframe.c: Same.
1519 * btrace.c: Same.
1520 * c-varobj.c: Same.
1521 * coff-pe-read.c: Same.
1522 * coffread.c: Same.
1523 * cris-tdep.c: Same.
1524 * darwin-nat.c: Same.
1525 * dbxread.c: Same.
1526 * dcache.c: Same.
1527 * disasm.c: Same.
1528 * dtrace-probe.c: Same.
1529 * dwarf-index-write.c: Same.
1530 * dwarf2-frame-tailcall.c: Same.
1531 * dwarf2-frame.c: Same.
1532 * dwarf2read.c: Same.
1533 * eval.c: Same.
1534 * exceptions.c: Same.
1535 * fbsd-tdep.c: Same.
1536 * findvar.c: Same.
1537 * frame.c: Same.
1538 * frv-tdep.c: Same.
1539 * gnu-v3-abi.c: Same.
1540 * go32-nat.c: Same.
1541 * h8300-tdep.c: Same.
1542 * hppa-tdep.c: Same.
1543 * i386-linux-tdep.c: Same.
1544 * i386-tdep.c: Same.
1545 * ia64-libunwind-tdep.c: Same.
1546 * ia64-tdep.c: Same.
1547 * infcmd.c: Same.
1548 * infrun.c: Same.
1549 * linespec.c: Same.
1550 * linux-nat.c: Same.
1551 * linux-thread-db.c: Same.
1552 * machoread.c: Same.
1553 * mdebugread.c: Same.
1554 * mep-tdep.c: Same.
1555 * mn10300-tdep.c: Same.
1556 * namespace.c: Same.
1557 * objfiles.c: Same.
1558 * opencl-lang.c: Same.
1559 * or1k-tdep.c: Same.
1560 * osabi.c: Same.
1561 * ppc-linux-nat.c: Same.
1562 * ppc-linux-tdep.c: Same.
1563 * ppc-sysv-tdep.c: Same.
1564 * printcmd.c: Same.
1565 * procfs.c: Same.
1566 * record-btrace.c: Same.
1567 * record-full.c: Same.
1568 * remote-fileio.c: Same.
1569 * remote.c: Same.
1570 * rs6000-tdep.c: Same.
1571 * s12z-tdep.c: Same.
1572 * score-tdep.c: Same.
1573 * ser-base.c: Same.
1574 * ser-go32.c: Same.
1575 * skip.c: Same.
1576 * sol-thread.c: Same.
1577 * solib-svr4.c: Same.
1578 * solib.c: Same.
1579 * source.c: Same.
1580 * sparc-nat.c: Same.
1581 * sparc-sol2-tdep.c: Same.
1582 * sparc-tdep.c: Same.
1583 * sparc64-tdep.c: Same.
1584 * stabsread.c: Same.
1585 * stack.c: Same.
1586 * symfile.c: Same.
1587 * symtab.c: Same.
1588 * target-descriptions.c: Same.
1589 * target-float.c: Same.
1590 * thread.c: Same.
1591 * utils.c: Same.
1592 * valops.c: Same.
1593 * valprint.c: Same.
1594 * value.c: Same.
1595 * varobj.c: Same.
1596 * windows-nat.c: Same.
1597 * xcoffread.c: Same.
1598 * xstormy16-tdep.c: Same.
1599 * xtensa-tdep.c: Same.
1600
c5adaa19
TT
16012019-10-17 Tom Tromey <tromey@adacore.com>
1602
1603 * configure: Rebuild.
1604 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1605 in AC_CONFIG_FILES invocation.
1606 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1607 new-style config.status invocation.
1608
405feb71
TV
16092019-10-17 Tom de Vries <tdevries@suse.de>
1610
1611 * arm-nbsd-nat.c: Fix typos in comments.
1612 * arm-tdep.c: Same.
1613 * darwin-nat-info.c: Same.
1614 * dwarf2read.c: Same.
1615 * elfread.c: Same.
1616 * event-top.c: Same.
1617 * findvar.c: Same.
1618 * gdbtypes.c: Same.
1619 * hppa-tdep.c: Same.
1620 * i386-tdep.c: Same.
1621 * jit.c: Same.
1622 * main.c: Same.
1623 * mdebugread.c: Same.
1624 * moxie-tdep.c: Same.
1625 * nto-procfs.c: Same.
1626 * osabi.c: Same.
1627 * ppc-linux-tdep.c: Same.
1628 * remote.c: Same.
1629 * riscv-tdep.c: Same.
1630 * s390-tdep.c: Same.
1631 * sh-tdep.c: Same.
1632 * sparc-linux-tdep.c: Same.
1633 * sparc-nat.c: Same.
1634 * stack.c: Same.
1635 * target-descriptions.c: Same.
1636 * top.c: Same.
1637 * varobj.c: Same.
1638
befcd486
TT
16392019-10-16 Tom Tromey <tom@tromey.com>
1640
1641 * objfiles.h (struct objfile) <original_name>: Now const.
1642
17bfe554
CB
16432019-10-16 Christian Biesinger <cbiesinger@google.com>
1644
1645 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1646 pass on to sigsetjmp's second argument.
1647 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1648
950b7495
KS
16492019-10-16 Keith Seitz <keiths@redhat.com>
1650
1651 PR gdb/23567
1652 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1653 sections whose size is greater than the file size.
1654
ff371ec9
JW
16552019-10-16 Jim Wilson <jimw@sifive.com>
1656
1657 * riscv-tdep.c (riscv_gcc_target_options): New.
1658 (riscv_gnu_triplet_regexp): New.
1659 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1660 set_gdbarch_gnu_triplet_regexp.
1661
fec4e896
CB
16622019-10-16 Christian Biesinger <cbiesinger@google.com>
1663
1664 * Makefile.in: Add xml-builtin.h.
1665 * features/feature_to_c.sh: Add an include for xml-builtin.h
1666 to ensure that the compiler checks that the types match.
1667 * xml-builtin.h: New file.
1668 * xml-support.c (fetch_xml_builtin): Add missing const.
1669 * xml-support.h: Remove declaration of xml_builtins.
1670
d10eccaa
TV
16712019-10-16 Tom de Vries <tdevries@suse.de>
1672
1673 PR tdep/25096
1674 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1675 (amd64_classify_aggregate): ... here.
1676 (amd64_classify_aggregate_field): Handled fiels of nested structs
1677 recursively.
1678
745ff14e
TV
16792019-10-16 Tom de Vries <tdevries@suse.de>
1680
1681 PR tdep/24104
1682 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1683 that handles 'theclass'.
1684
791b7405
AB
16852019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1686
1687 * linespec.c (decode_digits_ordinary): Update comment.
1688 * make-target-delegates: No longer need to handle VEC case.
1689 * memrange.c (normalize_mem_ranges): Update comment.
1690 * namespace.c (add_using_directive): Update comment.
1691 * objc-lang.c (uniquify_strings): Update comment.
1692 * ppc-linux-nat.c (struct thread_points): Update comment.
1693 * probe.h (find_probes_in_objfile): Update comment.
1694 * target.h (enum flash_preserve_mode): Update comment.
1695 * varobj.c (varobj_restrict_range): Update comment.
1696 * varobj.h (varobj_list_children): Update comment.
1697
0dc32745
AB
16982019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1699
1700 * Makefile.in: Remove references to vec.h and vec.c.
1701 * aarch64-tdep.c: No longer include vec.h.
1702 * ada-lang.c: Likewise.
1703 * ada-lang.h: Likewise.
1704 * arm-tdep.c: Likewise.
1705 * ax.h: Likewise.
1706 * breakpoint.h: Likewise.
1707 * charset.c: Likewise.
1708 * cp-support.h: Likewise.
1709 * dtrace-probe.c: Likewise.
1710 * dwarf2read.c: Likewise.
1711 * extension.h: Likewise.
1712 * gdb_bfd.c: Likewise.
1713 * gdbsupport/gdb_vecs.h: Likewise.
1714 * gdbsupport/vec.c: Remove.
1715 * gdbsupport/vec.h: Remove.
1716 * gdbthread.h: Likewise.
1717 * guile/scm-type.c: Likewise.
1718 * inline-frame.c: Likewise.
1719 * machoread.c: Likewise.
1720 * memattr.c: Likewise.
1721 * memrange.h: Likewise.
1722 * namespace.h: Likewise.
1723 * nat/linux-btrace.h: Likewise.
1724 * osdata.c: Likewise.
1725 * parser-defs.h: Likewise.
1726 * progspace.h: Likewise.
1727 * python/py-type.c: Likewise.
1728 * record-btrace.c: Likewise.
1729 * rust-exp.y: Likewise.
1730 * solib-target.c: Likewise.
1731 * stap-probe.c: Likewise.
1732 * target-descriptions.c: Likewise.
1733 * target-memory.c: Likewise.
1734 * target.h: Likewise.
1735 * varobj.c: Likewise.
1736 * varobj.h: Likewise.
1737 * xml-support.h: Likewise.
1738
ae640021
AB
17392019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1740
1741 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1742 Update for new std::vector based implementation.
1743 (process_psymtab_comp_unit_reader): Likewise.
1744 (scan_partial_symbols): Likewise.
1745 (recursively_compute_inclusions): Likewise.
1746 (compute_compunit_symtab_includes): Likewise.
1747 (process_imported_unit_die): Likewise.
1748 (queue_and_load_dwo_tu): Likewise.
1749 (follow_die_sig_1): Likewise.
1750 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1751 (typedef dwarf2_per_cu_ptr): Remove.
1752 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1753 function.
1754 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1755 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1756 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1757 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1758 std::vector.
1759
55dfc88f
TT
17602019-10-15 Tom Tromey <tromey@adacore.com>
1761
1762 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1763 TID.
1764
96b49c5e
TT
17652019-10-15 Tom Tromey <tromey@adacore.com>
1766
1767 * windows-nat.c (windows_nat_target::fetch_registers)
1768 (windows_nat_target::store_registers): Rename "pid" to "tid".
1769
953cff56
TT
17702019-10-15 Tom Tromey <tromey@adacore.com>
1771
1772 * gdbarch.h, gdbarch.c: Rebuild.
1773 * gdbarch.sh (gcc_target_options): Change return type to
1774 std::string.
1775 * compile/compile.c (get_args): Update.
1776 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1777 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1778 std::string.
1779 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1780 std::string.
1781 * arch-utils.c (default_gcc_target_options): Return std::string.
1782 * arch-utils.h (default_gcc_target_options): Return std::string.
1783 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1784
81e6b8eb
CB
17852019-10-15 Christian Biesinger <cbiesinger@google.com>
1786
1787 * breakpoint.c (breakpoint_chain): Make static.
1788 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1789 of accessing breakpoint_chain.
1790
95da600f
CB
17912019-10-15 Christian Biesinger <cbiesinger@google.com>
1792
1793 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1794 to a gdb::function_view and return value to bool.
1795 * breakpoint.h (iterate_over_breakpoints): Likewise.
1796 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1797 (pop_dummy_frame): Update.
1798 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1799 (gdbscm_breakpoints): Update.
1800 * python/py-breakpoint.c (build_bp_list): Update.
1801 (gdbpy_breakpoints): Update.
1802 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1803 Update.
1804 (bpfinishpy_handle_stop): Update.
1805 (bpfinishpy_handle_exit): Update.
1806 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1807 (svr4_update_solib_event_breakpoints): Update.
1808
ba18312d
AA
18092019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1810
1811 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1812 when unwrapping single-field structs.
1813
6acc1a0b
SM
18142019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1815
1816 * dwarf2read.c: Remove includes.
1817
284782de
SM
18182019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1819
1820 * ui-out.c (ui_out::call_do_message): Silence
1821 -Wformat-nonliteral warning.
1822
073bbbb0
SM
18232019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1824
1825 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1826 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1827 include: readline/tilde.h.
1828
7b9a15e1
CB
18292019-10-12 Christian Biesinger <cbiesinger@google.com>
1830
1831 * remote.c (remote_target::get_trace_status): Remove declaration of
1832 trace_regblock_size.
1833
cc8dee1f
CB
18342019-10-12 Christian Biesinger <cbiesinger@google.com>
1835
1836 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1837 (show_user): Remove declaration of cmdlist.
1838 * cli/cli-cmds.h (max_user_call_depth): Declare.
1839 * cli/cli-script.c (execute_user_command): Remove declaration
1840 of max_user_call_depth.
1841
a83d4ef6
JW
18422019-10-11 Jim Wilson <jimw@sifive.com>
1843
5f93c5a6
JW
1844 * gdbsupport/print-utils.h (pulongest): Fix comment.
1845 (plongest): Likewise.
1846 (phex): Add missing comment, mention leading zeros.
1847 (phex_nz): Add mention of no leading zeros to comment.
1848
a83d4ef6
JW
1849 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1850 plongest instead of unsigned long long cast.
1851
26344e0c
CB
18522019-10-10 Christian Biesinger <cbiesinger@google.com>
1853
1854 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1855 for external_editor_command and gdbtk_test.
1856
c2c440a9
CB
18572019-10-10 Christian Biesinger <cbiesinger@google.com>
1858
1859 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1860 * varobj.c (varobjdebug): Move comment to...
1861 * varobj.h (varobjdebug): ...here, and declare.
1862
a31bff9d
TT
18632019-10-09 Tom Tromey <tom@tromey.com>
1864
1865 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1866 erase_data_content.
1867
7523da63
TT
18682019-10-09 Tom Tromey <tom@tromey.com>
1869
1870 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1871 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1872 * tui/tui-command.c (tui_cmd_window::resize)
1873 (tui_refresh_cmd_win): Update.
1874 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1875 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1876 * tui/tui-data.c (~tui_gen_win_info): Remove.
1877 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1878 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1879 (tui_redisplay_readline, tui_mld_flush)
1880 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1881 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1882 (tui_data_window::erase_data_content)
1883 (tui_data_item_window::rerender)
1884 (tui_data_item_window::refresh_window): Update.
1885 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1886 (box_win, tui_gen_win_info::make_window)
1887 (tui_gen_win_info::make_visible): Update.
1888 (tui_delete_win): Remove.
1889 * tui/tui-winsource.c
1890 (tui_source_window_base::do_erase_source_content): Update.
1891 (tui_show_source_line, tui_source_window_base::update_tab_width)
1892 (tui_source_window_base::update_exec_info): Update.
1893 * tui/tui-data.h (struct curses_deleter): New.
1894 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1895 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1896
a7798e7f
TT
18972019-10-09 Tom Tromey <tom@tromey.com>
1898
1899 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1900
5c45899e
TT
19012019-10-09 Tom Tromey <tom@tromey.com>
1902
1903 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1904 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1905
6d7fd9aa
TT
19062019-10-09 Tom Tromey <tom@tromey.com>
1907
1908 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1909 window height directly.
1910 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1911 declare.
1912 * tui/tui-layout.c (tui_default_win_height): Remove.
1913 (tui_default_win_viewport_height): Remove.
1914
d2dd1084
TT
19152019-10-09 Tom Tromey <tom@tromey.com>
1916
1917 * tui/tui.h: Remove comments.
1918
cff32449
TV
19192019-10-09 Tom de Vries <tdevries@suse.de>
1920
1921 * python/lib/gdb/printer/bound_registers.py: Use
1922 '^builtin_type_bound128' as regexp argument for
1923 add_builtin_pretty_printer.
1924
6a25e8a2
CB
19252019-10-09 Christian Biesinger <cbiesinger@google.com>
1926
1927 * guile/guile.c (guile_extension_script_ops): Remove forward
1928 declaration and mark as static.
1929 (guile_script_ops): Likewise.
1930 (extension_language_guile): Move further down in the file so
1931 it can reference the definitions for guile_{extension_,}script_ops.
1932
6d9d6da4
AA
19332019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1934
1935 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1936 except SORTL, DFLTCC, and KDSA.
1937
3abea05d
TT
19382019-10-08 Tom Tromey <tromey@adacore.com>
1939
1940 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1941 (struct safe_symbol_file_add_args): Remove.
1942
dde996e2
TT
19432019-10-08 Tom Tromey <tromey@adacore.com>
1944
1945 * windows-nat.c: Don't include buildsym-legacy.h.
1946
cd6fdaa1
TT
19472019-10-08 Tom Tromey <tromey@adacore.com>
1948
1949 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1950
79bb1944
CB
19512019-10-08 Christian Biesinger <cbiesinger@google.com>
1952
1953 * gdbtypes.c (overload_debug): Move comment to header.
1954 * gdbtypes.h (overload_debug): Declare.
1955 * valops.c: Remove declaration of overload_debug, instead
1956 include gdbtypes.h.
1957
34916edc
CB
19582019-10-08 Christian Biesinger <cbiesinger@google.com>
1959
1960 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1961 through _().
1962 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1963 move comment...
1964 * language.h (lang_frame_mismatch_warn): ... here. Also add
1965 declaration.
1966 * top.c (lang_frame_mismatch_warn): Remove declaration.
1967 (check_frame_language_change): Pass lang_frame_mismatch_warn
1968 through _().
1969
bad5c026
CB
19702019-10-07 Christian Biesinger <cbiesinger@google.com>
1971
1972 * c-lang.h (vtbl_ptr_name): Declare.
1973 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1974 it from the header.
1975 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1976
51f1fdc3
CB
19772019-10-07 Christian Biesinger <cbiesinger@google.com>
1978
1979 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1980 gdb_static_assert.
1981
30d1f018
WP
19822019-10-07 Weimin Pan <weimin.pan@oracle.com>
1983
606813d5
WP
1984 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1985 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
1986 * ctfread.c: New file.
1987 * ctfread.h: New file.
1988 * elfread.c: Include ctfread.h.
1989 (struct elfinfo text_p): New member ctfsect.
1990 (elf_locate_sections): Mark CTF section.
1991 (elf_symfile_read): Call elfctf_build_psymtabs.
1992 * Makefile.in (LIBCTF): Add.
1993 (CLIBS): Use it.
1994 (CDEPS): Likewise.
1995 (DIST): Add ctfread.c.
606813d5
WP
1996
19972019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1998
1999 * ctfread.c (struct nextfield): Renamed to ...
2000 (struct ctf_nextfield): ... this.
2001 (struct field_info): Renamed to ...
2002 (strut ctf_field_info): ... this.
2003 (attach_fields_to_type): Update for renamed structures.
2004 (ctf_add_member_cb): Likewise.
2005 (ctf_add_enum_member_cb): Likewise.
2006 (process_struct_members): Likewise.
2007 (process_enum_type): Likewise.
30d1f018 2008
518fe38c
WP
20092019-10-07 Weimin Pan <weimin.pan@oracle.com>
2010
2011 * tracectf.h: Rename, was ctf.h.
2012 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2013 * tracefile.c: Likewise.
2014 * tracepoint.c: Remove unused include ctf.h.
2015 * mi/mi-main.c: Likewise.
2016 * Makefile.in Replace ctf.c with tracectf.c.
2017
225f296a
JB
20182019-10-06 Joel Brobecker <brobecker@adacore.com>
2019
2020 * version.in: Change version number to "9.0.50.DATE-git".
2021
77c2dba3
TT
20222019-10-03 Tom Tromey <tom@tromey.com>
2023
2024 PR rust/24976:
2025 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2026
179aed7f
AB
20272019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2028
2029 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2030 cp_search_name_hash.
2031 * NEWS: Add entry about nested function support.
2032
0a4b0913
AB
20332019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2034 Andrew Burgess <andrew.burgess@embecosm.com>
2035
2036 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2037 for nested static variables when searchin VAR_DOMAIN.
2038 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2039 global scope, update comment.
2040 (add_partial_subprogram): Call add_partial_subprogram recursively
2041 for nested subroutines when processinng Fortran.
2042 (load_partial_dies): Process the child entities of a subprogram
2043 when processing Fortran.
2044 (partial_die_parent_scope): Handle building scope
2045 for Fortran nested functions.
2046 (process_die): Record that nested functions have a scope.
2047 (new_symbol): Always record Fortran subprograms on the global
2048 symbol list.
2049 (determine_prefix): How to build the prefix for Fortran
2050 subprograms.
2051
d8c06f22
AB
20522019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2053
2054 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2055 have just sent the thread a SIGSTOP and are waiting for it to
2056 arrive.
2057
a8b3b8e9
AB
20582019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2059
2060 * btrace.c (btrace_add_pc): Remove whitespace before the template
2061 parameter in 'std::vector <...>'.
2062 (parse_xml_btrace_block): Likewise.
2063 (btrace_maint_decode_pt): Likewise.
2064 (btrace_maint_update_packets): Likewise.
2065 (btrace_maint_print_packets): Likewise.
2066 * btrace.h (struct btrace_maint_info): Likewise.
2067 * dwarf2read.c (struct type_unit_group): Likewise.
2068 (build_type_psymtabs_reader): Likewise.
2069 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2070 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2071 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2072
4d825eab
TV
20732019-10-03 Tom de Vries <tdevries@suse.de>
2074
2075 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2076 the first line of the help text for set/show style metadata.
2077
80fd2826
TT
20782019-10-02 Tom Tromey <tromey@adacore.com>
2079
2080 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2081 * gdbsupport/common-inferior.c: New file.
2082 * infcmd.c (startup_with_shell): Don't define.
2083 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2084 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2085 * inferior.h (startup_with_shell): Don't declare.
2086
70054538
CB
20872019-10-02 Christian Biesinger <cbiesinger@google.com>
2088
2089 * gdbsupport/gdb_assert.h: Include errors.h.
2090 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2091
37f6a7f4
TT
20922019-10-02 Tom Tromey <tromey@adacore.com>
2093
2094 * NEWS: Add $_ada_exception entry.
2095 * ada-lang.c (struct ada_catchpoint): Add constructor.
2096 <m_kind>: New member.
2097 (allocate_location_exception, re_set_exception): Remove
2098 "ex" parameter.
2099 (should_stop_exception): Compute $_ada_exception.
2100 (check_status_exception, print_it_exception)
2101 (print_one_exception, print_mention_exception): Remove
2102 "ex" parameter.
2103 (allocate_location_catch_exception, re_set_catch_exception)
2104 (check_status_exception, print_it_catch_exception)
2105 (print_one_catch_exception, print_mention_catch_exception)
2106 (print_recreate_catch_exception)
2107 (allocate_location_catch_exception_unhandled)
2108 (re_set_catch_exception_unhandled)
2109 (check_status_exception, print_it_catch_exception_unhandled)
2110 (print_one_catch_exception_unhandled)
2111 (print_mention_catch_exception_unhandled)
2112 (print_recreate_catch_exception_unhandled)
2113 (allocate_location_catch_assert, re_set_catch_assert)
2114 (check_status_assert, print_it_catch_assert)
2115 (print_one_catch_assert, print_mention_catch_assert)
2116 (print_recreate_catch_assert)
2117 (allocate_location_catch_handlers, re_set_catch_handlers)
2118 (check_status_handlers, print_it_catch_handlers)
2119 (print_one_catch_handlers, print_mention_catch_handlers)
2120 (print_recreate_catch_handlers): Remove.
2121 (create_ada_exception_catchpoint): Update.
2122 (initialize_ada_catchpoint_ops): Update.
2123
fccf9de1
TT
21242019-10-02 Tom Tromey <tromey@adacore.com>
2125
2126 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2127 (create_excep_cond_exprs): Simplify exception string computation.
2128 (ada_exception_catchpoint_cond_string): Likewise.
2129
4b610737
TT
21302019-10-02 Tom Tromey <tromey@adacore.com>
2131
2132 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2133 * ada-lang.c (lesseq_defined_than): Handle
2134 LOC_STATIC.
2135 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2136 parameter.
2137 (dwarf2_has_info): Likewise.
2138 (new_symbol): Set maybe_copied on symbol when
2139 appropriate.
2140 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2141 parameter.
2142 <can_copy>: New member.
2143 * elfread.c (record_minimal_symbol): Set maybe_copied
2144 on symbol when appropriate.
2145 (elf_symfile_read): Update call to dwarf2_has_info.
2146 * minsyms.c (lookup_minimal_symbol_linkage): New
2147 function.
2148 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2149 * symtab.c (get_symbol_address, get_msymbol_address):
2150 New functions.
2151 * symtab.h (get_symbol_address, get_msymbol_address):
2152 Declare.
2153 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2154 maybe_copied.
2155 (struct symbol, struct minimal_symbol) <maybe_copied>:
2156 New member.
2157
1dd58850
TT
21582019-10-02 Tom Tromey <tromey@adacore.com>
2159
2160 * source.c (struct current_source_location): New.
2161 (current_source_key): New global.
2162 (current_source_symtab, current_source_line)
2163 (current_source_pspace): Remove.
2164 (get_source_location): New function.
2165 (get_current_source_symtab_and_line)
2166 (set_default_source_symtab_and_line)
2167 (set_current_source_symtab_and_line)
2168 (clear_current_source_symtab_and_line, select_source_symtab)
2169 (info_source_command, print_source_lines_base)
2170 (info_line_command, search_command_helper, _initialize_source):
2171 Update.
2172
5c281dbb
TT
21732019-10-02 Tom Tromey <tromey@adacore.com>
2174
2175 * source.c (select_source_symtab): Don't call
2176 decode_line_with_current_source.
2177
d3d32391
AB
21782019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2179
2180 * symtab.c (lookup_global_symbol): Search global block.
2181
38583298
TT
21822019-10-02 Tom Tromey <tromey@adacore.com>
2183
2184 * coffread.c (process_coff_symbol): Update.
2185 * dwarf2read.c (var_decode_location, new_symbol): Update.
2186 * mdebugread.c (parse_symbol): Update.
2187 * objfiles.c (relocate_one_symbol): Update.
2188 * stabsread.c (define_symbol, fix_common_block)
2189 (scan_file_globals): Update.
2190 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2191 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2192 * xcoffread.c (process_xcoff_symbol): Update.
2193
9344c18f
AA
21942019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2195
2196 * MAINTAINERS: Update my email address.
2197
df07e2c7
AB
21982019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2199
2200 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2201 std::vector.
2202 (build_type_psymtabs_reader): Update for std::vector.
2203 (build_type_psymtab_dependencies): Likewise.
2204 * dwarf2read.h: Remove use of DEF_VEC_P.
2205 (typedef sig_type_ptr): Delete.
2206
554ac434
AB
22072019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2208
2209 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2210 to std::vector.
2211 (btrace_maint_decode_pt): Likewise, and move allocation of the
2212 vector outside of the loop.
2213 (btrace_maint_update_packets): Update to handle change from VEC to
2214 std::vector.
2215 (btrace_maint_print_packets): Likewise.
2216 (maint_info_btrace_cmd): Likewise.
2217 * btrace.h: Remove use of DEF_VEC_O.
2218 (typedef btrace_pt_packet_s): Delete.
2219 (struct btrace_maint_info) <packets>: Change fromm VEC to
2220 std::vector.
2221 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2222
46f29a9a
AB
22232019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2224
2225 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2226 make accesses into the vector constant references.
2227 (btrace_add_pc): Update for std::vector.
2228 (btrace_stitch_bts): Likewise.
2229 (parse_xml_btrace_block): Likewise.
2230 (btrace_maint_update_packets): Likewise.
2231 (btrace_maint_print_packets): Likewise.
2232 (maint_info_btrace_cmd): Likewise.
2233 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2234 std::vector.
2235 (btrace_data::empty): Likewise.
2236 (btrace_data_append): Likewise.
2237 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2238 (typedef btrace_block_s): Delete.
2239 (struct btrace_block): Add constructor.
2240 (struct btrace_data_bts) <blocks>: Change to std::vector.
2241 * nat/linux-btrace.c (perf_event_read_bts): Update for
2242 std::vector.
2243 (linux_read_bts): Likewise.
2244
d770d56f
TT
22452019-10-01 Tom Tromey <tom@tromey.com>
2246
2247 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2248
9d636d67
TT
22492019-10-01 Tom Tromey <tom@tromey.com>
2250
2251 * stack.c (print_frame, info_frame_command_core): Use
2252 styled_string.
2253 * linux-thread-db.c (try_thread_db_load_1)
2254 (try_thread_db_load_from_pdir_1): Use styled_string.
2255 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2256 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2257 (maybe_print_unsupported_script_warning)
2258 (maybe_print_script_not_found_warning): Use styled_string.
2259 * ada-lang.c (user_select_syms): Use styled_string.
2260
7f6aba03
TT
22612019-10-01 Tom Tromey <tom@tromey.com>
2262
2263 * p-lang.c (pascal_printstr): Use metadata style.
2264 * value.c (show_convenience): Use metadata style.
2265 * valprint.c (valprint_check_validity, val_print_optimized_out)
2266 (val_print_not_saved, val_print_unavailable)
2267 (val_print_invalid_address, generic_val_print, val_print)
2268 (value_check_printable, val_print_array_elements): Use metadata
2269 style.
2270 * ui-out.h (class ui_out) <field_fmt>: New overload.
2271 <do_field_fmt>: Add style parameter.
2272 * ui-out.c (ui_out::field_fmt): New overload.
2273 * typeprint.c (type_print_unknown_return_type)
2274 (val_print_not_allocated, val_print_not_associated): Use metadata
2275 style.
2276 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2277 parameter.
2278 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2279 * tracepoint.c (tvariables_info_1): Use metadata style.
2280 * stack.c (print_frame_arg, print_frame_info, print_frame)
2281 (info_frame_command_core): Use metadata style.
2282 * skip.c (info_skip_command): Use metadata style.
2283 * rust-lang.c (rust_print_enum): Use metadata style.
2284 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2285 metadata style.
2286 * python/py-framefilter.c (py_print_single_arg): Use metadata
2287 style.
2288 * printcmd.c (do_one_display, print_variable_and_value): Use
2289 metadata style.
2290 * p-valprint.c (pascal_val_print)
2291 (pascal_object_print_value_fields): Use metadata style.
2292 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2293 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2294 parameter.
2295 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2296 * m2-valprint.c (m2_print_long_set): Use metadata style.
2297 * m2-typeprint.c (m2_print_type): Use metadata style.
2298 * infcmd.c (print_return_value_1): Use metadata style.
2299 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2300 * f-valprint.c (info_common_command_for_block): Use metadata
2301 style.
2302 * f-typeprint.c (f_type_print_base): Use metadata style.
2303 * expprint.c (print_subexp_standard): Use metadata style.
2304 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2305 * cli/cli-style.h (class cli_style_option): Add constructor.
2306 (metadata_style): Declare.
2307 * cli/cli-style.c (metadata_style): New global.
2308 (_initialize_cli_style): Register metadata style.
2309 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2310 parameter.
2311 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2312 * c-typeprint.c (c_type_print_base_struct_union)
2313 (c_type_print_base_1): Use metadata style.
2314 * breakpoint.c (watchpoint_value_print)
2315 (print_one_breakpoint_location): Use metadata style.
2316 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2317 style.
2318 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2319 style.
2320 * ada-valprint.c (val_print_packed_array_elements, printstr)
2321 (print_field_values, ada_val_print_ref, ada_val_print): Use
2322 metadata style.
2323 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2324 style.
2325 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2326 style.
2327 * ada-lang.c (user_select_syms): Use metadata style.
2328
14309bb6
TT
23292019-10-01 Tom Tromey <tom@tromey.com>
2330
2331 * cli/cli-cmds.c (pwd_command): Style output.
2332
6a831f06
PA
23332019-10-01 Pedro Alves <palves@redhat.com>
2334 Tom Tromey <tom@tromey.com>
2335
2336 * symtab.c (print_symbol_info): Use %ps.
2337 (print_msymbol_info): Use %ps.
2338 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2339 * printcmd.c (print_variable_and_value): Use %ps.
2340 * macrocmd.c (show_pp_source_pos): Use %ps.
2341 * infrun.c (print_exited_reason): Use ui_out::message.
2342 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2343 (describe_other_breakpoints): Use ui_out::message and new
2344 formats.
2345 (say_where): Use new formats.
2346 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2347 and new formats.
2348
2a3c1174
PA
23492019-10-01 Pedro Alves <palves@redhat.com>
2350 Tom Tromey <tom@tromey.com>
2351
2352 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2353 (test_gdb_formats): New function.
2354 (run_tests): Call it.
2355 (test_format_specifier): Update.
2356 * utils.h (fputs_filtered): Update comment.
2357 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2358 (fputs_styled_unfiltered): Declare.
2359 * utils.c (fputs_styled_unfiltered): New function.
2360 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2361 (vfprintf_filtered): Update.
2362 (vfprintf_unfiltered, vprintf_filtered): Update.
2363 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2364 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2365 disallow_ui_out_field>: New constants.
2366 (enum class field_kind): New.
2367 (struct base_field_s, struct signed_field_s): New.
2368 (signed_field): New function.
2369 (struct string_field_s): New.
2370 (string_field): New function.
2371 (struct styled_string_s): New.
2372 (styled_string): New function.
2373 (class ui_out) <message>: Add comment.
2374 <vmessage, call_do_message>: New methods.
2375 <do_message>: Add style parameter.
2376 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2377 methods.
2378 (ui_out::message): Rewrite.
2379 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2380 parameter.
2381 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2382 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2383 gdb_extensions parameter.
2384 (class format_piece): Add parameter to constructor.
2385 (n_int_args): New field.
2386 * gdbsupport/format.c (format_pieces::format_pieces): Add
2387 gdb_extensions parameter. Handle '*'.
2388 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2389 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2390 vfprintf_styled_no_gdbfmt.
2391 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2392 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2393 unfiltered output.
2394 * ui-style.h (struct ui_file_style) <ptr>: New method.
2395
0dfe5bfb
TT
23962019-10-01 Tom Tromey <tom@tromey.com>
2397
2398 * unittests/format_pieces-selftests.c: Update. Add final format.
2399 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2400 empty literal pieces.
2401
e43b10e1
TT
24022019-10-01 Tom Tromey <tom@tromey.com>
2403
2404 * ui-out.h (enum class ui_out_style_kind): Remove.
2405 (class ui_out) <field_string, field_stsream, do_field_string>:
2406 Change type of "style".
2407 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2408 (ui_out::field_string): Update.
2409 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2410 of "style".
2411 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2412 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2413 * stack.c (print_frame_arg, print_frame_info, print_frame):
2414 Update.
2415 * source.c (print_source_lines_base): Update.
2416 * solib.c (info_sharedlibrary_command): Update.
2417 * skip.c (info_skip_command): Update.
2418 * record-btrace.c (btrace_call_history_src_line)
2419 (btrace_call_history): Update.
2420 * python/py-framefilter.c (py_print_frame): Update.
2421 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2422 "style".
2423 * mi/mi-out.c (mi_ui_out::do_table_header)
2424 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2425 (mi_ui_out::do_field_string): Update.
2426 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2427 Update.
2428 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2429 "style".
2430 * cli-out.c (cli_ui_out::do_table_header)
2431 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2432 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2433 (cli_ui_out::do_field_fmt): Update.
2434 * breakpoint.c (print_breakpoint_location): Update.
2435 (update_static_tracepoint): Update.
2436
cd7c32c3
PW
24372019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2438
2439 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2440 conversion of gdb_datadir.
2441 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2442 remove not needed c_str ().
2443
8fe0f950
AT
24442019-09-30 Ali Tamur <tamur@google.com>
2445
2446 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2447 (dwarf2_string_attr): Likewise.
2448
5f48f8f3
AT
24492019-09-30 Ali Tamur <tamur@google.com>
2450
2451 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2452 (process_full_type_unit): Likewise.
2453 (dump_die_shallow): Likewise.
2454 (cu_debug_loc_section): Likewise.
2455
6fb08628
CB
24562019-09-28 Christian Biesinger <cbiesinger@google.com>
2457
2458 * minsyms.c (compare_minimal_symbols): Rename to...
2459 (minimal_symbol_is_less_than): ...this, and adjust to STL
2460 conventions (return bool, take arguments as references)
2461 (minimal_symbol_reader::install): Call std::sort instead
2462 of qsort.
2463
c7ee338a
CB
24642019-09-29 Christian Biesinger <cbiesinger@google.com>
2465
2466 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2467 hash and why.
2468 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2469 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2470
703a86c2
SM
24712019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2472
2473 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2474 * psympriv.h (add_psymbol_to_list): Move comment here and update
2475 it.
2476
0df0352a
TV
24772019-09-29 Tom de Vries <tdevries@suse.de>
2478
2479 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2480 Use $tmpdir/$(basename "$output_file").dwz instead of
2481 "${output_file}.dwz".
2482
ad75efa6
SM
24832019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2484
2485 PR gdb/25045
2486 * hppa-linux-nat.c: Include gdbarch.h.
2487
ececd218
CB
24882019-09-26 Christian Biesinger <cbiesinger@google.com>
2489
2490 * blockframe.c (find_pc_partial_function): Change return type to bool.
2491 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2492 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2493 (stub_gnu_ifunc_resolve_name): Likewise.
2494 * symtab.c (compare_filenames_for_search): Likewise.
2495 (compare_glob_filenames_for_search): Likewise.
2496 (matching_obj_sections): Likewise.
2497 (symbol_matches_domain): Likewise.
2498 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2499 (find_line_pc): Change return type to bool.
2500 (find_line_pc_range): Likewise.
2501 (producer_is_realview): Likewise.
2502 * symtab.h (symbol_matches_domain): Likewise.
2503 (find_pc_partial_function): Likewise.
2504 (find_pc_line_pc_range): Likewise.
2505 (in_gnu_ifunc_stub): Likewise.
2506 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2507 (find_line_pc): Likewise.
2508 (find_line_pc_range): Likewise.
2509 (matching_obj_sections): Likewise.
2510 (find_line_symtab): Change out parameter to bool.
2511 (producer_is_realview): Change return type to bool.
2512 (compare_filenames_for_search): Likewise.
2513 (compare_glob_filenames_for_search): Likewise.
2514
27a900b8
TT
25152019-09-26 Tom Tromey <tom@tromey.com>
2516
2517 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2518 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2519 * gdb_usleep.h: Remove.
2520 * gdb_usleep.c: Remove.
2521 * utils.c: Don't include gdb_usleep.h.
2522
5d63b30a
TT
25232019-09-26 Tom Tromey <tromey@adacore.com>
2524
2525 * python/py-type.c (type_to_type_object): Call check_typedef
2526 for stub types.
2527
12904d37
TT
25282019-09-26 Tom Tromey <tom@tromey.com>
2529
2530 * utils.h (initialize_utils): Don't declare.
2531 * top.c (gdb_init): Don't call initialize_utils.
2532 * utils.c (initialize_utils): Remove. Move contents...
2533 (_initialize_utils): ... here.
2534
858f25f0
TT
25352019-09-25 Tom Tromey <tom@tromey.com>
2536
2537 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2538 * utils.h (make_hex_string): Don't declare.
2539 * utils.c (make_hex_string): Remove.
2540
3d435220
TV
25412019-09-24 Tom de Vries <tdevries@suse.de>
2542
2543 PR gdb/23815
2544 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2545 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2546
ddd44b70
DD
25472019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2548
2549 * NEWS: Mention new simulator port for PRU.
2550
f945dedf
CB
25512019-09-23 Christian Biesinger <cbiesinger@google.com>
2552
2553 * ada-exp.y (write_object_remaining): Update.
2554 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2555 and eliminate the static buffer.
2556 (ada_decode_symbol): Update.
2557 (ada_la_decode): Update.
2558 (ada_sniff_from_mangled_name): Update.
2559 (is_valid_name_for_wild_match): Update.
2560 (ada_lookup_name_info::matches): Update and simplify.
2561 (name_matches_regex): Update.
2562 (ada_add_global_exceptions): Update.
2563 * ada-lang.h (ada_decode): Update signature.
2564 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2565 * dwarf-index-write.c (debug_names::insert): Update.
2566
7ab78ccb
SM
25672019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2568
2569 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2570 formatting.
2571
9252448b
SM
25722019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2573
2574 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2575 Change "nonzero" to "true" in documentation.
2576
626ca2c0
CB
25772019-09-20 Christian Biesinger <cbiesinger@google.com>
2578
2579 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2580 (_initialize_darwin_solib): Don't set
2581 darwin_so_ops.lookup_lib_global_symbol.
2582 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2583 set_gdbarch_iterate_over_objfiles_in_search_order.
2584 (elf_lookup_lib_symbol): Rename to...
2585 (svr4_iterate_over_objfiles_in_search_order): this, and update
2586 to iterate semantics.
2587 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2588 * solib.c (solib_global_lookup): Remove.
2589 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2590 (solib_global_lookup): Remove.
2591 * symtab.c (lookup_global_or_static_symbol): Remove call to
2592 solib_global_lookup.
2593
5a3a0d63
JB
25942019-09-20 Joel Brobecker <brobecker@adacore.com>
2595
2596 * NEWS: Move entries about default MI version now being
2597 version 3, and about the GDB/MI fix for multi-location
2598 breakpoints to the "since GDB 8.3" section.
2599
ffea1427
JB
26002019-09-20 Joel Brobecker <brobecker@adacore.com>
2601
2602 GDB 8.3.1 released.
2603
abf516c6
UW
26042019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2605
2606 * NEWS: Mention that Cell/B.E. debugging support was removed.
2607 * MAINTAINERS: Remove spu target.
2608
2609 * config/djgpp/fnchange.lst: Remove entries for removed files.
2610
2611 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2612 spu-multiarch.o, and spu-tdep.o.
2613 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2614 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2615 spu-multiarch.c, and spu-tdep.c.
2616 * spu-linux-nat.c: Remove file.
2617 * spu-multiarch.c: Remove file.
2618 * spu-tdep.c: Remove file.
2619 * spu-tdep.h: Remove file.
2620 * solib-spu.c: Remove file.
2621 * solib-spu.h: Remove file.
2622
2623 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2624 * configure.nat (spu-linux): Remove.
2625 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2626 solib-multiarch.o from gdb_target_obs.
2627 (spu*-*-*): Remove.
2628
2629 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2630 feature flag.
2631 (ppc_linux_no_features): Update.
2632 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2633 Cell/B.E. support.
2634 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2635 (tdesc_powerpc_cell64l): Likewise.
2636 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2637 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2638 Cell/B.E. support.
2639 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2640 Do not include "features/rs6000/powerpc-cell32l.c" or
2641 "features/rs6000/powerpc-cell64l.c".
2642 (ppc_linux_spu_section): Remove.
2643 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2644 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2645 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2646 (ppc_linux_spe_context_lookup): Remove.
2647 (ppc_linux_spe_context_inferior_created): Remove.
2648 (ppc_linux_spe_context_solib_loaded): Remove.
2649 (ppc_linux_spe_context_solib_unloaded): Remove.
2650 (ppc_linux_spe_context): Remove.
2651 (struct ppu2spu_cache): Remove.
2652 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2653 (struct ppu2spu_data): Remove.
2654 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2655 ppu2spu_unwind): Remove.
2656 (ppc_linux_init_abi): Remove Cell/B.E. support.
2657 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2658
2659 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2660 (rs6000/powerpc-cell64l-expedite): Likewise
2661 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2662 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2663 rs6000/powerpc-cell64l.xml.
2664 * features/rs6000/powerpc-cell32l.xml: Remove.
2665 * features/rs6000/powerpc-cell64l.xml: Likewise.
2666 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2667 * features/rs6000/powerpc-cell64l.c: Likewise.
2668 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2669 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2670 * regformats/reg-spu.dat: Remove.
2671
2672 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2673 * corelow.c (struct spuid_list): Remove.
2674 (add_to_spuid_list): Remove.
2675 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2676 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2677 (remote_protocol_features): Remove associated entries.
2678 (_initialize_remote): No longer initialize them.
2679 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2680 * linux-nat.c (SPUFS_MAGIC): Remove.
2681 (linux_proc_xfer_spu): Remove.
2682 (spu_enumerate_spu_ids): Remove.
2683 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2684 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2685 (linux_make_corefile_notes): No longer call it.
2686
2687 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2688 (cooked_write_test): Likewise.
2689
78e8cb91
TT
26902019-09-20 Tom Tromey <tom@tromey.com>
2691
2692 * NEWS: Mention case-sensitivity of TUI commands.
2693 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2694 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2695 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2696
f074b67e
TT
26972019-09-20 Tom Tromey <tom@tromey.com>
2698
2699 * tui/tui-source.c (tui_source_window::set_contents): Use
2700 make_unique_xstrdup.
2701 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2702 make_unique_xstrdup.
2703
63c4bf19
TT
27042019-09-20 Tom Tromey <tom@tromey.com>
2705
2706 * tui/tui-data.c: Remove separator comments.
2707 * tui/tui-layout.c: Remove separator comments.
2708 * tui/tui-win.c: Remove separator comments.
2709 * tui/tui-wingeneral.c: Remove separator comments.
2710
43df9b2f
TT
27112019-09-20 Tom Tromey <tom@tromey.com>
2712
2713 * tui/tui.h (strcat_to_buf): Don't declare.
2714 * tui/tui.c (strcat_to_buf): Remove.
2715
7226433c
TT
27162019-09-20 Tom Tromey <tom@tromey.com>
2717
2718 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2719 from "fullname".
2720 * tui/tui-source.c (tui_source_window::set_contents)
2721 (tui_source_window::location_matches_p)
2722 (tui_source_window::maybe_update): Update.
2723
80df3337
TT
27242019-09-20 Tom Tromey <tom@tromey.com>
2725
2726 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2727 Update.
2728 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2729 prefix.
2730 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2731 (tui_data_window::line_from_reg_element_no)
2732 (tui_data_window::first_reg_element_no_inline)
2733 (tui_data_window::show_registers)
2734 (tui_data_window::show_register_group)
2735 (tui_data_window::display_registers_from)
2736 (tui_data_window::display_registers_from_line)
2737 (tui_data_window::first_data_item_displayed)
2738 (tui_data_window::delete_data_content_windows)
2739 (tui_data_window::erase_data_content)
2740 (tui_data_window::do_scroll_vertical)
2741 (tui_data_window::refresh_window)
2742 (tui_data_window::check_register_values): Update.
2743
9923f347
TT
27442019-09-20 Tom Tromey <tom@tromey.com>
2745
2746 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2747 (struct tui_locator_window) <full_name, proc_name>: Now
2748 std::string.
2749 * tui/tui-stack.c (tui_locator_window::make_status_line)
2750 (tui_locator_window::set_locator_fullname)
2751 (tui_locator_window::set_locator_info): Update.
2752 * tui/tui-source.c (tui_source_window::set_contents)
2753 (tui_source_window::showing_source_p): Update.
2754
b76251ab
TT
27552019-09-20 Tom Tromey <tom@tromey.com>
2756
2757 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2758 Don't call tui_locator_win_info_ptr.
2759
0891be08
TT
27602019-09-20 Tom Tromey <tom@tromey.com>
2761
2762 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2763
1b935acf
TT
27642019-09-20 Tom Tromey <tom@tromey.com>
2765
2766 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2767 height for locator.
2768 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2769 * tui/tui-layout.c (show_source_disasm_command, show_data)
2770 (show_source_or_disasm_and_command): Use 1 as height for locator.
2771
9abd8a65
TT
27722019-09-20 Tom Tromey <tom@tromey.com>
2773
2774 * tui/tui.c (tui_enable): Update.
2775 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2776 Update.
2777 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2778 Update.
2779 * tui/tui-data.c (win_resized): Now bool.
2780 (tui_win_resized): Return bool.
2781 (tui_set_win_resized_to): Accept a bool.
2782
b5457826
TT
27832019-09-20 Tom Tromey <tom@tromey.com>
2784
2785 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2786 Change type of "refresh_values_only".
2787 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2788 type of "refresh_values_only".
2789
6b915f7d
TT
27902019-09-20 Tom Tromey <tom@tromey.com>
2791
2792 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2793 std::string.
2794 (tui_disassemble): Add "pos" parameter.
2795 (tui_disasm_window::set_contents): Simplify.
2796
2ad52f6f
TT
27972019-09-20 Tom Tromey <tom@tromey.com>
2798
2799 * tui/tui-winsource.h (struct tui_source_window_base)
2800 <show_source_content>: Now private.
2801 * tui/tui-winsource.c
2802 (tui_source_window_base::show_source_content): Don't handle empty
2803 content case.
2804
b3b1bde6
TT
28052019-09-20 Tom Tromey <tom@tromey.com>
2806
2807 * tui/tui-layout.c (show_source_disasm_command)
2808 (show_source_or_disasm_and_command): Don't call
2809 show_source_content.
2810
71a25ed2
TT
28112019-09-20 Tom Tromey <tom@tromey.com>
2812
2813 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2814 Declare.
2815 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2816 from tui_make_status_line.
2817 (tui_locator_window::rerender): Update.
2818
f8532154
TT
28192019-09-20 Tom Tromey <tom@tromey.com>
2820
2821 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2822 (tui_locator_window::rerender): Update.
2823
2d81b349
TT
28242019-09-20 Tom Tromey <tom@tromey.com>
2825
2826 * tui/tui-winsource.h (struct tui_source_window_base)
2827 <~tui_source_window_base>: Don't declare.
2828 <fullname>: Remove.
2829 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2830 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2831 member.
2832 * tui/tui-source.c (tui_source_window::set_contents): Update.
2833 (tui_source_window::location_matches_p)
2834 (tui_source_window::maybe_update): Update.
2835
f14bec58
TT
28362019-09-20 Tom Tromey <tom@tromey.com>
2837
2838 * tui/tui-winsource.h (~tui_source_element): Remove.
2839 (tui_source_element): Update.
2840 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2841 * tui/tui-winsource.c (tui_show_source_line): Update.
2842 * tui/tui-source.c (tui_source_window::set_contents): Update.
2843 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2844
78d5933a
TT
28452019-09-20 Tom Tromey <tom@tromey.com>
2846
2847 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2848 declare.
2849 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2850 tui_clear_source_windows_detail.
2851 * tui/tui-winsource.h (struct tui_source_window_base)
2852 <clear_detail>: Don't declare.
2853 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2854 Remove.
2855 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2856
d4207696
TT
28572019-09-20 Tom Tromey <tromey@adacore.com>
2858
2859 PR ada/24919:
2860 * block.c (contained_in): Fix final return value.
2861
00f93c44
AM
28622019-09-20 Alan Modra <amodra@gmail.com>
2863
2864 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2865 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2866 (read_indirect_string_from_dwz): Use bfd accessor.
2867 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2868 * machoread.c (macho_symfile_read_all_oso): Likewise.
2869 * solib.c (solib_bfd_open): Likewise.
2870
e4153ae6
CB
28712019-09-19 Christian Biesinger <cbiesinger@google.com>
2872
2873 * eval.c: Move declaration of overload_resolution to...
2874 * value.h: ...here.
2875
c7ae7675
CB
28762019-09-19 Christian Biesinger <cbiesinger@google.com>
2877
2878 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2879 * arm-linux-tdep.c: Likewise.
2880 * arm-nbsd-nat.c: Likewise.
2881 * arm-tdep.h: Declare arm_apcs_32.
2882 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2883
e86f08d2
CB
28842019-09-19 Christian Biesinger <cbiesinger@google.com>
2885
2886 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2887 * dwarf2read.h: Declare dwarf_always_disassemble.
2888
f64e2f40
TV
28892019-09-19 Tom de Vries <tdevries@suse.de>
2890
2891 PR gdb/25009
2892 * source-cache.c (source_cache::ensure): Catch exception thrown during
2893 construction of the highlighter.
2894
fd361982
AM
28952019-09-18 Alan Modra <amodra@gmail.com>
2896
2897 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2898 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2899 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2900 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2901 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2902 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2903 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2904 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2905 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2906 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2907 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2908 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2909 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2910 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2911 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2912 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2913 * mi/mi-interp.c: Update throughout for bfd section macro and
2914 function changes.
2915 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2916 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2917
11061048
TT
29182019-09-18 Tom Tromey <tom@tromey.com>
2919
2920 * NEWS: Add entry.
2921 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2922 call rl_initialize.
2923 (tui_enable): Do not call rl_initialize.
2924
7a27b85f
CG
29252019-09-18 Christian Groessler <chris@groessler.org>
2926
2927 * alpha-linux-nat.c: Include gdbarch.h.
2928
f64eea3a
SM
29292019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2930
2931 * ui-file.c: Include cli/cli-style.h.
2932 (term_cli_styling): Remove cli_styling declaration.
2933
e6f7f6d1
AM
29342019-09-18 Alan Modra <amodra@gmail.com>
2935
2936 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2937 to bfd_asymbol_section.
2938
1d38e9d1
AM
29392019-09-18 Alan Modra <amodra@gmail.com>
2940
2941 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2942 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2943 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2944
90d92a63
AM
29452019-09-18 Alan Modra <amodra@gmail.com>
2946
2947 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2948 * spu-linux-nat.c (spu_bfd_open): Likewise.
2949
a3d181d2
CB
29502019-09-18 Christian Biesinger <cbiesinger@google.com>
2951
2952 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2953 to bool to match definition in dwarf2read.c.
2954
491144b5
CB
29552019-09-17 Christian Biesinger <cbiesinger@google.com>
2956
2957 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2958 (print_signatures): Likewise.
2959 (trust_pad_over_xvs): Likewise.
2960 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2961 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2962 * arm-linux-nat.c (arm_apcs_32): Likewise.
2963 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2964 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2965 * arm-tdep.c (arm_debug): Likewise.
2966 (arm_apcs_32): Likewise.
2967 * auto-load.c (debug_auto_load): Likewise.
2968 (auto_load_gdb_scripts): Likewise.
2969 (global_auto_load): Likewise.
2970 (auto_load_local_gdbinit): Likewise.
2971 (auto_load_local_gdbinit_loaded): Likewise.
2972 * auto-load.h (global_auto_load): Likewise.
2973 (auto_load_local_gdbinit): Likewise.
2974 (auto_load_local_gdbinit_loaded): Likewise.
2975 * breakpoint.c (disconnected_dprintf): Likewise.
2976 (breakpoint_proceeded): Likewise.
2977 (automatic_hardware_breakpoints): Likewise.
2978 (always_inserted_mode): Likewise.
2979 (target_exact_watchpoints): Likewise.
2980 (_initialize_breakpoint): Update.
2981 * breakpoint.h (target_exact_watchpoints): Change to bool.
2982 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2983 * cli/cli-cmds.c (trace_commands): Likewise.
2984 * cli/cli-cmds.h (trace_commands): Likewise.
2985 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2986 to bool*.
2987 * cli/cli-logging.c (logging_overwrite): Change to bool.
2988 (logging_redirect): Likewise.
2989 (debug_redirect): Likewise.
2990 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2991 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2992 to bool.
2993 <boolean_option_def>: Update.
2994 (struct flag_option_def): Change default type of Context to bool
2995 from int.
2996 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2997 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2998 (get_setshow_command_value_string): Likewise.
2999 * cli/cli-style.c (cli_styling): Change to bool.
3000 (source_styling): Likewise.
3001 * cli/cli-style.h (source_styling): Likewise.
3002 (cli_styling): Likewise.
3003 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3004 to bool.
3005 * command.h (var_types): Update comment.
3006 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3007 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3008 bool.
3009 (debug_compile_cplus_scopes): Likewise.
3010 * compile/compile-internal.h (compile_debug): Likewise.
3011 * compile/compile.c (compile_debug): Likewise.
3012 (struct compile_options) <raw>: Likewise.
3013 * cp-support.c (catch_demangler_crashes): Likewise.
3014 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3015 (usr_cmd_cris_dwarf2_cfi): Likewise.
3016 * csky-tdep.c (csky_debug): Likewise.
3017 * darwin-nat.c (enable_mach_exceptions): Likewise.
3018 * dcache.c (dcache_enabled_p): Likewise.
3019 * defs.h (info_verbose): Likewise.
3020 * demangle.c (demangle): Likewise.
3021 (asm_demangle): Likewise.
3022 * dwarf-index-cache.c (debug_index_cache): Likewise.
3023 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3024 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3025 * dwarf2read.c (check_physname): Likewise.
3026 (use_deprecated_index_sections): Likewise.
3027 (dwarf_always_disassemble): Likewise.
3028 * eval.c (overload_resolution): Likewise.
3029 * event-top.c (set_editing_cmd_var): Likewise.
3030 (exec_done_display_p): Likewise.
3031 * event-top.h (set_editing_cmd_var): Likewise.
3032 (exec_done_display_p): Likewise.
3033 * exec.c (write_files): Likewise.
3034 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3035 (debug_fbsd_nat): Likewise.
3036 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3037 Likewise.
3038 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3039 <backtrace_past_entry> Likewise.
3040 * gdb-demangle.h (demangle): Likewise.
3041 (asm_demangle): Likewise.
3042 * gdb_bfd.c (bfd_sharing): Likewise.
3043 * gdbcore.h (write_files): Likewise.
3044 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3045 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3046 * gdbthread.h (print_thread_events): Likewise.
3047 * gdbtypes.c (opaque_type_resolution): Likewise.
3048 (strict_type_checking): Likewise.
3049 * gnu-nat.c (gnu_debug_flag): Likewise.
3050 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3051 * guile/scm-param.c (pascm_variable): Add boolval.
3052 (add_setshow_generic): Update.
3053 (pascm_param_value): Update.
3054 (pascm_set_param_value_x): Update.
3055 * hppa-tdep.c (hppa_debug): Change to bool..
3056 * infcall.c (may_call_functions_p): Likewise.
3057 (coerce_float_to_double_p): Likewise.
3058 (unwind_on_signal_p): Likewise.
3059 (unwind_on_terminating_exception_p): Likewise.
3060 * infcmd.c (startup_with_shell): Likewise.
3061 * inferior.c (print_inferior_events): Likewise.
3062 * inferior.h (startup_with_shell): Likewise.
3063 (print_inferior_events): Likewise.
3064 * infrun.c (step_stop_if_no_debug): Likewise.
3065 (detach_fork): Likewise.
3066 (debug_displaced): Likewise.
3067 (disable_randomization): Likewise.
3068 (non_stop): Likewise.
3069 (non_stop_1): Likewise.
3070 (observer_mode): Likewise.
3071 (observer_mode_1): Likewise.
3072 (set_observer_mode): Update.
3073 (sched_multi): Change to bool.
3074 * infrun.h (debug_displaced): Likewise.
3075 (sched_multi): Likewise.
3076 (step_stop_if_no_debug): Likewise.
3077 (non_stop): Likewise.
3078 (disable_randomization): Likewise.
3079 * linux-tdep.c (use_coredump_filter): Likewise.
3080 (dump_excluded_mappings): Likewise.
3081 * linux-thread-db.c (auto_load_thread_db): Likewise.
3082 (check_thread_db_on_load): Likewise.
3083 * main.c (captured_main_1): Update.
3084 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3085 xx2_opt, boolean_opt>: Change to bool.
3086 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3087 * maint.c (maintenance_profile_p): Likewise.
3088 (per_command_time): Likewise.
3089 (per_command_space): Likewise.
3090 (per_command_symtab): Likewise.
3091 * memattr.c (inaccessible_by_default): Likewise.
3092 * mi/mi-main.c (mi_async): Likewise.
3093 (mi_async_1): Likewise.
3094 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3095 * nat/fork-inferior.h (startup_with_shell): Likewise.
3096 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3097 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3098 * nios2-tdep.c (nios2_debug): Likewise.
3099 * or1k-tdep.c (or1k_debug): Likewise.
3100 * parse.c (parser_debug): Likewise.
3101 * parser-defs.h (parser_debug): Likewise.
3102 * printcmd.c (print_symbol_filename): Likewise.
3103 * proc-api.c (procfs_trace): Likewise.
3104 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3105 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3106 (set_parameter_value): Update.
3107 (add_setshow_generic): Update.
3108 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3109 to bool*.
3110 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3111 int*.
3112 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3113 * record-btrace.c (record_btrace_target::store_registers): Update.
3114 * record-full.c (record_full_memory_query): Change to bool.
3115 (record_full_stop_at_limit): Likewise.
3116 * record-full.h (record_full_memory_query): Likewise.
3117 * remote-notif.c (notif_debug): Likewise.
3118 * remote-notif.h (notif_debug): Likewise.
3119 * remote.c (use_range_stepping): Likewise.
3120 (interrupt_on_connect): Likewise.
3121 (remote_break): Likewise.
3122 * ser-tcp.c (tcp_auto_retry): Likewise.
3123 * ser-unix.c (serial_hwflow): Likewise.
3124 * skip.c (debug_skip): Likewise.
3125 * solib-aix.c (solib_aix_debug): Likewise.
3126 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3127 (spu_auto_flush_cache_p): Likewise.
3128 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3129 Likewise.
3130 (struct info_print_options) <quiet>: Likewise.
3131 * symfile-debug.c (debug_symfile): Likewise.
3132 * symfile.c (auto_solib_add): Likewise.
3133 (separate_debug_file_debug): Likewise.
3134 * symfile.h (auto_solib_add): Likewise.
3135 (separate_debug_file_debug): Likewise.
3136 * symtab.c (basenames_may_differ): Likewise.
3137 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3138 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3139 (struct info_types_options) <quiet>: Likewise.
3140 * symtab.h (demangle): Likewise.
3141 (basenames_may_differ): Likewise.
3142 * target-dcache.c (stack_cache_enabled_1): Likewise.
3143 (code_cache_enabled_1): Likewise.
3144 * target.c (trust_readonly): Likewise.
3145 (may_write_registers): Likewise.
3146 (may_write_memory): Likewise.
3147 (may_insert_breakpoints): Likewise.
3148 (may_insert_tracepoints): Likewise.
3149 (may_insert_fast_tracepoints): Likewise.
3150 (may_stop): Likewise.
3151 (auto_connect_native_target): Likewise.
3152 (target_stop_and_wait): Update.
3153 (target_async_permitted): Change to bool.
3154 (target_async_permitted_1): Likewise.
3155 (may_write_registers_1): Likewise.
3156 (may_write_memory_1): Likewise.
3157 (may_insert_breakpoints_1): Likewise.
3158 (may_insert_tracepoints_1): Likewise.
3159 (may_insert_fast_tracepoints_1): Likewise.
3160 (may_stop_1): Likewise.
3161 * target.h (target_async_permitted): Likewise.
3162 (may_write_registers): Likewise.
3163 (may_write_memory): Likewise.
3164 (may_insert_breakpoints): Likewise.
3165 (may_insert_tracepoints): Likewise.
3166 (may_insert_fast_tracepoints): Likewise.
3167 (may_stop): Likewise.
3168 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3169 (make_thread_apply_all_options_def_group): Change argument from int*
3170 to bool*.
3171 (thread_apply_all_command): Update.
3172 (print_thread_events): Change to bool.
3173 * top.c (confirm): Likewise.
3174 (command_editing_p): Likewise.
3175 (history_expansion_p): Likewise.
3176 (write_history_p): Likewise.
3177 (info_verbose): Likewise.
3178 * top.h (confirm): Likewise.
3179 (history_expansion_p): Likewise.
3180 * tracepoint.c (disconnected_tracing): Likewise.
3181 (circular_trace_buffer): Likewise.
3182 * typeprint.c (print_methods): Likewise.
3183 (print_typedefs): Likewise.
3184 * utils.c (debug_timestamp): Likewise.
3185 (sevenbit_strings): Likewise.
3186 (pagination_enabled): Likewise.
3187 * utils.h (sevenbit_strings): Likewise.
3188 (pagination_enabled): Likewise.
3189 * valops.c (overload_resolution): Likewise.
3190 * valprint.h (struct value_print_options) <prettyformat_arrays,
3191 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3192 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3193 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3194 Likewise.
3195 * windows-nat.c (new_console): Likewise.
3196 (cygwin_exceptions): Likewise.
3197 (new_group): Likewise.
3198 (debug_exec): Likewise.
3199 (debug_events): Likewise.
3200 (debug_memory): Likewise.
3201 (debug_exceptions): Likewise.
3202 (useshell): Likewise.
3203 * windows-tdep.c (maint_display_all_tib): Likewise.
3204 * xml-support.c (debug_xml): Likewise.
3205
f1b620e9
MG
32062019-09-17 Mike Gulick <mgulick@mathworks.com>
3207
3208 * source.c (prepare_path_for_appending): New function.
3209 (openp): Make use of new function.
3210 (find_and_open_source): Search for the compilation directory and
3211 source file as a relative path beneath the directory search path.
3212
67f3ed6a
AB
32132019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3214
3215 * source-cache.c (source_cache::get_line_charpos): Catch
3216 exceptions and return false, this matches the behaviour documented
3217 in the header file.
3218
74332189
JB
32192019-09-17 Joel Brobecker <brobecker@adacore.com>
3220
3221 * ada-tasks.c (info_task): Remove quoting of the task's name.
3222
f2f24aa9
CB
32232019-09-16 Christian Biesinger <cbiesinger@google.com>
3224
3225 * symfile.c (auto_solib_add): Replace comment with a reference
3226 to the header file.
3227
6a062a93
CB
32282019-09-14 Christian Biesinger <cbiesinger@google.com>
3229
3230 * NEWS: Mention that gdb can now be compiled with Python 3
3231 on Windows.
3232
ec6c8338
AB
32332019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3234
3235 * maint.c (maint_print_section_data::maint_print_section_data):
3236 Force use of 'float log10 (float)' by casting the argument to
3237 float.
3238
aa17805f
AB
32392019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3240
3241 * maint.c: Add 'cmath' include.
3242 (struct maint_print_section_data): New structure.
3243 (print_section_index): New function.
3244 (print_bfd_section_info): Add header comment, small whitespace
3245 cleanup, and update to call new print_section_index function.
3246 (print_objfile_section_info): Likewise.
3247 (maint_obj_section_from_bfd_section): New function.
3248 (print_bfd_section_info_maybe_relocated): New function.
3249 (maintenance_info_sections): Add header comment, always use
3250 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3251
3dd9bb46
AB
32522019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3253
3254 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3255 inner scope, add check that the objfile has psymtabs before
3256 checking psymtabs_addrmap.
3257 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3258
4993045d
PW
32592019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3260
3261 * NEWS: Announce that Ada task names are now shown at more places,
3262 and between quotes (except in info task output).
3263 * gdb/ada-tasks.c (task_to_str): New function.
3264 (display_current_task_id): Call task_to_str.
3265 (task_command_1): Likewise.
3266 (print_ada_task_info): In non-mi mode, Properly align headers and data
3267 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3268
7a289707
RO
32692019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3270
3271 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3272 prstatus.pr_lwp.pr_info instead of making it up.
3273
f2aec7f6
CB
32742019-09-11 Christian Biesinger <cbiesinger@google.com>
3275
3276 * auto-load.c (auto_load_expand_dir_vars): Update.
3277 * defs.h (gdb_datadir): Change to std::string.
3278 (python_libdir): Likewise.
3279 (relocate_gdb_directory): Change return type to std::string.
3280 * guile/guile.c (gdbscm_data_directory): Update.
3281 (initialize_scheme_side): Update.
3282 * jit.c (jit_reader_dir): Change to std::string.
3283 (jit_reader_load_command): Update.
3284 * main.c (gdb_datadir): Change to std::string.
3285 (python_libdir): Likewise.
3286 (set_gdb_data_directory): Update.
3287 (relocate_path): Change to return std::string.
3288 (relocate_gdb_directory): Change to return std::string.
3289 (relocate_gdbinit_path_maybe_in_datadir): Update.
3290 (captured_main_1): Update.
3291 * python/python.c (do_start_initialization): Update.
3292 * top.c (show_gdb_datadir): Update.
3293 * xml-syscall.c (xml_init_syscalls_info): Update.
3294 (init_syscalls_info): Update.
3295
9224a013
CB
32962019-09-11 Christian Biesinger <cbiesinger@google.com>
3297
3298 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3299 out of get_init_files.
3300 (get_init_files): Update.
3301
f48cd836
CB
33022019-09-11 Christian Biesinger <cbiesinger@google.com>
3303
3304 * main.c (get_init_files): Change to use std::string.
3305 (captured_main_1): Update.
3306 (print_gdb_help): Update.
3307
9cab7ecd
AT
33082019-09-11 Ali Tamur <tamur@google.com>
3309
3310 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3311 implementation.
3312
67547d89
CB
33132019-09-11 Christian Biesinger <cbiesinger@google.com>
3314
3315 * dbxread.c (read_dbx_symtab): Update.
3316 * dwarf2read.c (load_partial_dies): Update.
3317 * mdebugread.c (parse_partial_symbols): Update.
3318 (handle_psymbol_enumerators): Update.
3319 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3320 * psymtab.c (add_psymbol_to_bcache): Likewise.
3321 (add_psymbol_to_list): Likewise.
3322 * symtab.c (symbol_set_names): Likewise.
3323 * symtab.h (symbol_set_names): Likewise.
3324 * xcoffread.c (scan_xcoff_symtab): Update.
3325
64b2d4a0
TT
33262019-09-11 Tom Tromey <tom@tromey.com>
3327
3328 * symfile-mem.c (symbol_file_add_from_memory): Use
3329 bfd_set_filename.
3330 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3331 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3332
3b00ef10
TT
33332019-09-10 Tom Tromey <tromey@adacore.com>
3334
3335 * dwarf-index-write.c (write_psymbols): Extend error message.
3336 (debug_names::insert): Add Ada code.
3337 (debug_names::write_psymbols): Remove Ada check.
3338 (debug_names) <m_string_obstack>: New member.
3339 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3340 (gdb_index_symbol_name_matcher::matches): Remove.
3341 (mapped_index_base::find_name_components_bounds): Add "lang"
3342 parameter.
3343 (mapped_index_base::build_name_components): Also split names
3344 according to Ada syntax.
3345 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3346 type of "match_callback".
3347 (check_match, check_find_bounds_finds)
3348 (dw2_expand_symtabs_matching): Update.
3349 (dw2_debug_names_iterator): Add new constructor.
3350 (dw2_debug_names_map_matching_symbols): New function.
3351 (dw2_debug_names_expand_symtabs_matching): Update.
3352 (dwarf2_debug_names_functions): Use
3353 dw2_debug_names_map_matching_symbols.
3354
aa391654
TT
33552019-09-10 Tom Tromey <tromey@adacore.com>
3356
3357 * dwarf2read.c (dw2_get_file_names_reader): Add the
3358 CU's file name to the results.
3359
b054970d
TT
33602019-09-10 Tom Tromey <tromey@adacore.com>
3361
3362 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3363 map_matching_symbols. Update.
3364 * dwarf2read.c (dw2_map_matching_symbols): Update.
3365 * psymtab.c (match_partial_symbol): Change type; update.
3366 (psym_map_matching_symbols): Likewise.
3367 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3368 type; update.
3369 * symfile.h (struct quick_symbol_functions)
3370 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3371 Remove "match".
3372
6a3dbf1b
TT
33732019-09-10 Tom Tromey <tromey@adacore.com>
3374
3375 * psymtab.c (map_block): Remove.
3376 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3377 * symtab.c (iterate_over_symbols_terminated): New function.
3378 * symtab.c (iterate_over_symbols_terminated): Declare.
3379
6969f124
TT
33802019-09-10 Tom Tromey <tromey@adacore.com>
3381
3382 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3383 * language.h (struct language_defn) <la_iterate_over_symbols>:
3384 Return bool.
3385 * symtab.c (iterate_over_symbols): Return bool.
3386 * symtab.h (iterate_over_symbols): Return bool.
3387
199b4314
TT
33882019-09-10 Tom Tromey <tromey@adacore.com>
3389
3390 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3391 (add_nonlocal_symbols): Update.
3392 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3393 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3394 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3395 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3396 Change type of "callback". Remove "data".
3397
a084a2a6
AT
3398
33992019-09-09 Ali Tamur <tamur@google.com>
3400
3401 * dwarf2read.c (comp_unit_head): Update comment.
3402 (dwarf2_dwo_name): New function declaration.
3403 (dwarf_unit_type_name): New function declaration.
3404 (read_comp_unit_head): Add support for new compilation units,
3405 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3406 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3407 (currently named as "signature") in their header. Also clarify error
3408 messages.
3409 (lookup_dwo_id): New function. Returns the dwo id of the given
3410 compile unit.
3411 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3412 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3413 functions.
3414 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3415 (dwarf2_dwo_name): Get the dwo name if present.
3416 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3417 purposes.
3418
25a2915e
TT
34192019-09-09 Tom Tromey <tom@tromey.com>
3420
3421 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3422
e4df0874
PW
34232019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3424
3425 * python/python.c (do_start_initialization): Make progname_copy static,
3426 to avoid a leak report.
3427
8634b462
TT
34282019-09-08 Tom Tromey <tom@tromey.com>
3429
3430 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3431
c7f839cb
SM
34322019-09-07 Simon Marchi <simon.marchi@efficios.com>
3433
3434 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3435 Change type to gdb::optional<block_enum>.
3436 (dw2_symtab_iter_init): Change block_index parameter type
3437 to gdb::optional<block_enum>.
3438 (dw2_lookup_symbol): Change block_index parameter
3439 type to block_enum.c
3440 (dw2_debug_names_lookup_symbol): Likewise.
3441 * psymtab.c (psym_lookup_symbol): Likewise.
3442 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3443 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3444 Likewise.
3445
ead0e69a
CB
34462019-09-06 Christian Biesinger <cbiesinger@google.com>
3447
3448 * defs.h (relocate_gdb_directory): Change int to bool in
3449 signature and rename flag to relocatable.
3450 * main.c (relocate_path): Likewise.
3451 (relocate_gdb_directory): Likewise.
3452
b16c44de
AM
34532019-09-06 Alan Modra <amodra@gmail.com>
3454
3455 * coffread.c (coff_symfile_read): Constify filename variable.
3456 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3457 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3458 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3459 * solib.c (reload_shared_libraries_1): Likewise.
3460 * symfile.c (reread_symbols): Likewise.
3461 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3462 * solib-darwin.c (darwin_bfd_open): Likewise.
3463 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3464
06ff036e
AB
34652019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3466
3467 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3468 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3469
4e962e74
TT
34702019-09-03 Tom Tromey <tromey@adacore.com>
3471
3472 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3473 types.
3474 (has_negatives): Unbias a range type bound.
3475 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3476 * gdbtypes.c (operator==): Handle new field.
3477 (create_range_type): Add "bias" parameter.
3478 (create_static_range_type, resolve_dynamic_range): Update.
3479 * gdbtypes.h (struct range_bounds) <bias>: New member.
3480 (create_range_type): Add bias parameter.
3481 * printcmd.c (print_scalar_formatted): Unbias range types.
3482 * value.c (unpack_long): Unbias range types.
3483 (pack_long): Bias range types.
3484
d90b8f26
AH
34852019-09-02 Alan Hayward <alan.hayward@arm.com>
3486
3487 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3488 probe arguments.
3489
fe01123e
AH
34902019-09-02 Alan Hayward <alan.hayward@arm.com>
3491
3492 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3493 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3494 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3495 (compile_probe_arg): Likewise.
3496 * probe.h (get_argument_count): Likewise.
3497 * solib-svr4.c (solib_event_probe_action): Likewise.
3498 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3499
e661ef01
AH
35002019-09-02 Alan Hayward <alan.hayward@arm.com>
3501
3502 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3503 code to here...
3504 (svr4_create_solib_event_breakpoints): ...from here.
3505
47a536d9
SDJ
35062019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3507
3508 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3509 suffix from warning message.
3510
d6a00eba
TT
35112019-08-30 Tom Tromey <tom@tromey.com>
3512
3513 * tui/tui-winsource.h (struct tui_source_window_base)
3514 <refresh_all>: Don't declare.
3515 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3516 Remove.
3517 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3518 tui_show_locator_content.
3519 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3520 declare.
3521 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3522 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3523 declare.
3524
55b2657b
TT
35252019-08-30 Tom Tromey <tom@tromey.com>
3526
3527 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3528
12a8555a
TT
35292019-08-30 Tom Tromey <tom@tromey.com>
3530
3531 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3532 Remove unnecessary forward declarations.
3533
900ac242
TT
35342019-08-30 Tom Tromey <tom@tromey.com>
3535
3536 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3537 rerender.
3538 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3539 tui_show_locator_content.
3540
99ab33fb
TT
35412019-08-30 Tom Tromey <tom@tromey.com>
3542
3543 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3544 (tui_locator_window::rerender): Rewrite using body of previous
3545 tui_show_locator_content.
3546
e594a5d1
TT
35472019-08-30 Tom Tromey <tom@tromey.com>
3548
3549 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3550 set_locator_fullname>: New methods.
3551 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3552 Rename from tui_set_locator_fullname.
3553 (tui_locator_window::set_locator_info): Rename from
3554 tui_set_locator_info. Return bool.
3555 (tui_update_locator_fullname, tui_show_frame_info): Update.
3556
715bb467
TT
35572019-08-30 Tom Tromey <tom@tromey.com>
3558
3559 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3560
772f3f03
TT
35612019-08-30 Tom Tromey <tom@tromey.com>
3562
3563 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3564 call touchwin.
3565
108e13ab
TT
35662019-08-30 Tom Tromey <tom@tromey.com>
3567
3568 * tui/tui-wingeneral.c (box_win): Assume win_info and
3569 win_info->handle cannot be NULL.
3570
cdaa6eb4
TT
35712019-08-30 Tom Tromey <tom@tromey.com>
3572
3573 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3574 refresh_window>: Declare.
3575 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3576 resize.
3577 (tui_data_item_window::rerender): Rename from
3578 tui_display_register.
3579 (tui_data_item_window::refresh_window): New method.
3580 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3581 no-op.
3582
89df7f90
TT
35832019-08-30 Tom Tromey <tom@tromey.com>
3584
3585 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3586 regs_column_count, current_group>: Move later. Now private.
3587 <get_current_group>: New method.
3588 * tui/tui-regs.c (tui_reg_command): Update.
3589 * tui/tui-layout.c (tui_set_layout): Update.
3590
1bf2866a
TT
35912019-08-30 Tom Tromey <tom@tromey.com>
3592
3593 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3594 (tui_data_window::rerender): Don't call
3595 check_and_display_highlight_if_needed.
3596 (tui_data_window::refresh_all): Remove call to
3597 erase_data_content.
3598
0670413d
TT
35992019-08-30 Tom Tromey <tom@tromey.com>
3600
3601 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3602 (tui_data_window::display_registers_from)
3603 (tui_data_window::display_reg_element_at_line)
3604 (tui_data_window::display_registers_from_line): Remove checks of
3605 "empty".
3606
18bb55c7
TT
36072019-08-30 Tom Tromey <tom@tromey.com>
3608
3609 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3610 Don't declare.
3611 * tui/tui-regs.c (tui_data_window::show_registers): Call
3612 rerender.
3613 (tui_data_window::rerender): Rename from display_all_data.
3614 (tui_data_window::rerender): Remove old implementation.
3615
1f6d2f10
TT
36162019-08-30 Tom Tromey <tom@tromey.com>
3617
3618 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3619 text.
3620 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3621
16d01f9c
BW
36222019-08-29 Bernhard Wodok <barto@gmx.net>
3623 Sergio Durigan Junior <sergiodj@redhat.com>
3624
3625 PR win32/24284
3626 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3627
d8f27c60
AB
36282019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3629
3630 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3631 when searching for types.
3632
1f20c35e
AB
36332019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3634
3635 * f-lang.c (f_language_defn): Use f_print_typedef.
3636 * f-lang.h (f_print_typedef): Declare.
3637 * f-typeprint.c (f_print_typedef): Define.
3638
550105b7
CB
36392019-08-27 Christian Biesinger <cbiesinger@google.com>
3640
3641 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3642
4acfdd20
AB
36432019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3644
3645 * cli/cli-utils.c (info_print_options_defs): Delete.
3646 (make_info_print_options_def_group): Delete.
3647 (extract_info_print_options): Delete.
3648 (info_print_command_completer): Delete.
3649 (info_print_args_help): Add extra parameter, and optionally
3650 include text about -n flag.
3651 * cli/cli-utils.h (struct info_print_options): Delete.
3652 (extract_info_print_options): Delete declaration.
3653 (info_print_command_completer): Delete declaration.
3654 (info_print_args_help): Add extra parameter, extend header
3655 comment.
3656 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3657 search_symbols.
3658 * stack.c (struct info_print_options): New type.
3659 (info_print_options_defs): New file scoped variable.
3660 (make_info_print_options_def_group): New static function.
3661 (info_print_command_completer): New static function.
3662 (info_locals_command): Update to use new local functions.
3663 (info_args_command): Likewise.
3664 (_initialize_stack): Add extra parameter to calls to
3665 info_print_args_help.
3666 * symtab.c (search_symbols): Add extra parameter, use this to
3667 possibly excluse non-debug symbols.
3668 (symtab_symbol_info): Add extra parameter, which is passed on to
3669 search_symbols.
3670 (struct info_print_options): New type.
3671 (info_print_options_defs): New file scoped variable.
3672 (make_info_print_options_def_group): New static function.
3673 (info_print_command_completer): New static function.
3674 (info_variables_command): Update to use local functions, and pass
3675 extra parameter through to symtab_symbol_info.
3676 (info_functions_command): Likewise.
3677 (info_types_command): Pass additional argument through to
3678 symtab_symbol_info.
3679 (rbreak_command): Pass extra argument to search_symbols.
3680 (_initialize_symtab): Add extra arguments for calls to
3681 info_print_args_help, and update help text for 'info variables',
3682 'whereis', and 'info functions' commands.
3683 * symtab.h (search_symbols): Add extra argument to declaration.
3684 * NEWS: Mention new flags.
3685
9aa55206
CB
36862019-08-26 Christian Biesinger <cbiesinger@google.com>
3687
3688 * symtab.c (lookup_static_symbol): Call the new function (and move
3689 it down to be next to lookup_global_symbol).
3690 (struct global_sym_lookup_data): Add block_enum member and rename to...
3691 (struct global_or_static_sym_lookup_data): ...this.
3692 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3693 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3694 (lookup_symbol_global_or_static_iterator_cb): ...this.
3695 (lookup_global_or_static_symbol): New function.
3696 (lookup_global_symbol): Call new function.
3697
5c31b358
TV
36982019-08-26 Tom de Vries <tdevries@suse.de>
3699
3700 PR c++/24852
3701 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3702 when pc_probe.prob == NULL.
3703
23c13d42
SM
37042019-08-25 Simon Marchi <simon.marchi@efficios.com>
3705
3706 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3707 variable symbol_linkage to symbol_linkage_.
3708
beadd3e8
SM
37092019-08-25 Simon Marchi <simon.marchi@efficios.com>
3710
3711 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3712 represent whether the symbol is static, dynamic, or we don't
3713 know.
3714
e3ec872f
YS
37152019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3716
3717 * gdb/rx-tdep.c (rx_register_names): New.
3718 (rx_register_name): Delete.
3719 (rx_psw_type): Delete.
3720 (rx_fpsw_type): Delete.
3721 (rx_register_type): Delete.
3722 (rx_gdbarch_init): Convert target-descriptions.
3723 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3724 * gdb/features/Makefile: Add rx.xml.
3725 * gdb/features/rx.xml: New.
3726 * gdb/features/rx.c: Generated.
3727 * gdb/NEWS: Mention target description support.
3728
d0509ba4
CB
37292019-08-22 Christian Biesinger <cbiesinger@google.com>
3730
3731 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3732 *slot_ptr.
3733
2d41fa11
SDJ
37342019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3735
3736 * configure.ac: Don't check for 'dlfcn.h' (moved to
3737 gdbsupport/common.m4).
3738 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3739 'gdbsupport/'.
3740 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3741 * compile/compile-c-support.c: Include
3742 'gdbsupport/gdb-dlfcn.h'.
3743 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3744 * gdb-dlfcn.c: Move to...
3745 * gdbsupport/gdb-dlfcn.c: ... here.
3746 * gdb-dlfcn.h: Move to...
3747 * gdbsupport/gdb-dlfcn.h: ... here.
3748
de8af808
SL
37492019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3750
3751 * nios2-tdep.c (struct reg_value): Improve comments. Make
3752 the offset field signed.
3753
27204489
CB
37542019-08-22 Christian Biesinger <cbiesinger@google.com>
3755
3756 * python/lib/gdb/__init__.py (_execute_file): New function.
3757 * python/python.c (python_run_simple_file): Call gdb._execute_file
3758 on Windows.
3759
43771869
AB
37602019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3761
3762 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3763 all uses as this was never set to anything but a zero value.
3764
26c957f1
PA
37652019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3766
3767 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3768
c07aae6e
CB
37692019-08-21 Christian Biesinger <cbiesinger@google.com>
3770
3771 * tui/tui-data.h (tui_gen_win_info): Add an =default
3772 move constructor, required by some GCC versions.
3773
3960cb7a
JF
37742019-08-21 Jinke Fan <fanjinke51@yeah.net>
3775
3776 * go32-nat.c (go32_sysinfo): Add hygon_p.
3777
04c72a68
TT
37782019-08-20 Tom Tromey <tom@tromey.com>
3779
3780 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3781 line_from_reg_element_no, first_reg_element_no_inline,
3782 display_all_data, delete_data_content_windows,
3783 erase_data_content>: Now private.
3784
072272ce
TT
37852019-08-20 Tom Tromey <tom@tromey.com>
3786
3787 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3788 (tui_unhighlight_win, tui_highlight_win)
3789 (tui_win_info::make_window): Update.
3790 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3791
973961bd
TT
37922019-08-20 Tom Tromey <tom@tromey.com>
3793
3794 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3795 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3796 (MAX_PID_WIDTH): Move to tui-stack.c.
3797 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3798 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3799 (MAX_PID_WIDTH): Move from tui-data.h.
3800
ab0e1f1a
TT
38012019-08-20 Tom Tromey <tom@tromey.com>
3802
3803 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3804 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3805 (box_win): Update.
3806 (tui_gen_win_info::make_window): Rename from tui_make_window.
3807 (tui_win_info::make_window): New method.
3808 (tui_gen_win_info::make_visible): Update.
3809 * tui/tui-source.c (tui_source_window::set_contents): Update.
3810 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3811 (tui_data_window::display_registers_from): Update.
3812 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3813 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3814 Declare.
3815 <can_box>: Remove.
3816 <title>: Remove.
3817 (struct tui_win_info) <make_window>: Declare.
3818 <can_box>: Now virtual.
3819 <title>: New member.
3820 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3821 * tui/tui-command.c (tui_cmd_window::resize): Update.
3822
100c2bf3
TT
38232019-08-20 Tom Tromey <tom@tromey.com>
3824
3825 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3826 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3827 (tui_data_window::check_register_values): Update.
3828
fa4dc567
TT
38292019-08-20 Tom Tromey <tom@tromey.com>
3830
3831 * tui/tui-regs.h (struct tui_data_window): Use
3832 DISABLE_COPY_AND_ASSIGN.
3833 <regs_content>: Change type, removing unique_ptr.
3834 <tui_data_window>: Add move constructor.
3835 * tui/tui-regs.c (tui_data_window::show_registers)
3836 (tui_data_window::show_register_group)
3837 (tui_data_window::display_registers_from)
3838 (tui_data_window::display_registers_from)
3839 (tui_data_window::first_data_item_displayed)
3840 (tui_data_window::delete_data_content_windows)
3841 (tui_data_window::rerender, tui_data_window::refresh_window)
3842 (tui_data_window::check_register_values): Update.
3843
ca02d7c8
TT
38442019-08-20 Tom Tromey <tom@tromey.com>
3845
3846 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3847 show_register_group>: Declare.
3848 (tui_show_register_group): Don't declare.
3849 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3850 tui_show_registers.
3851 (tui_data_window::show_register_group): Rename from
3852 tui_show_register_group.
3853 (tui_data_window::check_register_values, tui_reg_command):
3854 Update.
3855 * tui/tui-layout.c (tui_set_layout): Update.
3856
63356bfd
TT
38572019-08-20 Tom Tromey <tom@tromey.com>
3858
3859 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3860 Declare.
3861 (tui_check_register_values): Don't declare.
3862 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3863 from tui_check_register_values.
3864 * tui/tui-hooks.c (tui_register_changed): Update.
3865
42cc14a7
TT
38662019-08-20 Tom Tromey <tom@tromey.com>
3867
3868 * tui/tui-regs.c (tui_reg_layout): Move later.
3869 (tui_show_registers): Don't enable TUI mode or change layout.
3870
b9ad3686
TT
38712019-08-20 Tom Tromey <tom@tromey.com>
3872
3873 * tui/tui-regs.h (struct tui_data_item_window)
3874 <~tui_data_item_window>: Remove.
3875 <content>: Now a unique_xmalloc_ptr.
3876 * tui/tui-regs.c (tui_register_format): Return a
3877 unique_xmalloc_ptr.
3878 (tui_get_register): Update.
3879 (~tui_data_item_window): Remove.
3880 (tui_data_window::display_registers_from, tui_display_register):
3881 Update.
3882 * tui/tui-io.h (tui_expand_tabs): Update.
3883 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3884 Remove "col" parameter.
3885
8e114aab
TT
38862019-08-20 Tom Tromey <tom@tromey.com>
3887
3888 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3889 field.
3890 * tui/tui-regs.c (~tui_data_item_window): Update.
3891
1a4f81dd
TT
38922019-08-20 Tom Tromey <tom@tromey.com>
3893
3894 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3895 earlier.
3896
0f8d8876
TT
38972019-08-20 Tom Tromey <tom@tromey.com>
3898
3899 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3900
605dc2c2
TT
39012019-08-20 Tom Tromey <tom@tromey.com>
3902
3903 * tui/tui-source.h (struct tui_source_window): Update.
3904 * tui/tui-regs.c (tui_show_registers): Update.
3905 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3906 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3907 (NO_REGS_STRING): Remove defines.
3908
aedbe3bb
CM
39092019-08-20 Conrad Meyer <cem@FreeBSD.org>
3910
3911 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3912 unnecessary thread walk if remote doesn't support the packet.
3913
7ce8f214
TT
39142019-08-19 Tom Tromey <tromey@adacore.com>
3915
3916 * python/py-value.c (value_has_field): Fix indentation.
3917
f21c2bd7
TT
39182019-08-19 Tom Tromey <tromey@adacore.com>
3919
3920 * printcmd.c (do_one_display, info_display_command): Update.
3921 * block.h (contained_in): Return bool. Add allow_nested
3922 parameter.
3923 * block.c (contained_in): Return bool. Add allow_nested
3924 parameter.
3925
d806ea2d
TT
39262019-08-19 Tom Tromey <tom@tromey.com>
3927
3928 * configure: Rebuild.
3929 * configure.ac: Disallow the combination of -static-libstdc++ and
3930 source highlight.
3931 * source-cache.c (get_language_name): Handle rust.
3932 (source_cache::get_source_lines): Ignore highlighting exceptions.
3933
398fdd60
TT
39342019-08-16 Tom Tromey <tom@tromey.com>
3935
3936 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3937 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3938 (struct tui_source_window_base) <make_visible, refresh_window,
3939 resize>: Remove methods.
3940 <execution_info>: Remove field.
3941 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3942 (tui_show_source_line, tui_source_window_base)
3943 (~tui_source_window_base): Update.
3944 (tui_source_window_base::resize)
3945 (tui_source_window_base::make_visible)
3946 (tui_source_window_base::refresh_window): Remove.
3947 (tui_source_window_base::update_exec_info): Update.
3948 * tui/tui-source.c (tui_source_window::set_contents): Update.
3949 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3950
e699d331
TT
39512019-08-16 Tom Tromey <tom@tromey.com>
3952
3953 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3954 deprecated_query_hook.
3955
bb01dbfc
TT
39562019-08-16 Tom Tromey <tom@tromey.com>
3957
3958 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3959 (tui_update_source_windows_with_line): Update.
3960 * tui/tui-source.h (struct tui_source_window)
3961 <show_symtab_source>: Declare.
3962 (tui_show_symtab_source): Don't declare.
3963 * tui/tui-source.c (tui_show_symtab_source): Rename from
3964 tui_show_symtab_source.
3965
81c82c4b
TT
39662019-08-16 Tom Tromey <tom@tromey.com>
3967
3968 * tui/tui-winsource.h (struct tui_source_window_base)
3969 <set_contents>: Declare.
3970 * tui/tui-winsource.c
3971 (tui_source_window_base::update_source_window_as_is): Update.
3972 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3973 Declare.
3974 (tui_set_source_content): Don't declare.
3975 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3976 tui_set_source_content.
3977 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3978 Declare.
3979 (tui_set_disassem_content): Don't declare.
3980 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3981 tui_set_disassem_content.
3982
2ddaf614
TT
39832019-08-16 Tom Tromey <tom@tromey.com>
3984
3985 * tui/tui-winsource.h (struct tui_source_window_base)
3986 <update_breakpoint_info>: Declare.
3987 (tui_update_breakpoint_info): Don't declare.
3988 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3989 (tui_update_all_breakpoint_info): Update.
3990 (tui_source_window_base::update_breakpoint_info): Rename from
3991 tui_update_breakpoint_info.
3992 (tui_source_window_base::update_exec_info): Update.
3993
017f9828
TT
39942019-08-16 Tom Tromey <tom@tromey.com>
3995
3996 * tui/tui-winsource.h (struct tui_source_window_base)
3997 <update_source_window>: Declare.
3998 (tui_update_source_window): Don't declare.
3999 * tui/tui-winsource.c
4000 (tui_source_window_base::update_source_window): Rename from
4001 tui_update_source_window.
4002 (tui_source_window_base::rerender): Update.
4003 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4004 * tui/tui-disasm.c (tui_show_disassem)
4005 (tui_show_disassem_and_update_source)
4006 (tui_disasm_window::maybe_update): Update.
4007
ed8358e9
TT
40082019-08-16 Tom Tromey <tom@tromey.com>
4009
4010 * tui/tui-winsource.h (struct tui_source_window_base)
4011 <update_source_window_as_is>: Declare.
4012 (tui_update_source_window_as_is): Don't declare.
4013 * tui/tui-winsource.c (tui_update_source_window): Update
4014 (tui_source_window_base::update_source_window_as_is): Rename from
4015 tui_update_source_window_as_is.
4016 (tui_source_window_base::refill): Update.
4017 * tui/tui-source.c (tui_show_symtab_source): Update.
4018 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4019 Update.
4020
20149b6b
TT
40212019-08-16 Tom Tromey <tom@tromey.com>
4022
4023 * tui/tui-winsource.h (tui_update_source_window)
4024 (tui_update_source_window_as_is): Remove "noerror" parameter.
4025 * tui/tui-winsource.c (tui_update_source_window)
4026 (tui_update_source_window_as_is): Remove "noerror" parameter.
4027 (tui_update_source_windows_with_addr)
4028 (tui_update_source_windows_with_line)
4029 (tui_source_window_base::rerender)
4030 (tui_source_window_base::refill): Update.
4031 * tui/tui-source.h (tui_set_source_content)
4032 (tui_show_symtab_source): Remove "noerror" parameter.
4033 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4034 parameter.
4035 (tui_show_symtab_source): Likewise.
4036 (tui_source_window::maybe_update): Update.
4037 * tui/tui-disasm.c (tui_show_disassem)
4038 (tui_show_disassem_and_update_source)
4039 (tui_disasm_window::do_scroll_vertical)
4040 (tui_disasm_window::maybe_update): Update.
4041
2d83e710
TT
40422019-08-16 Tom Tromey <tom@tromey.com>
4043
4044 * tui/tui.c (tui_is_window_visible): Update.
4045 * tui/tui-wingeneral.c (tui_make_window)
4046 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4047 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4048 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4049 (tui_set_win_height_command, parse_scrolling_args): Update.
4050 * tui/tui-source.c (tui_source_window::style_changed): Update.
4051 * tui/tui-regs.c (tui_show_registers)
4052 (tui_data_window::first_data_item_displayed)
4053 (tui_data_window::delete_data_content_windows)
4054 (tui_check_register_values, tui_reg_command): Update.
4055 * tui/tui-disasm.c (tui_show_disassem): Update.
4056 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4057 method.
4058 <is_visible>: Remove field.
4059 * tui/tui-data.c (tui_next_win, tui_prev_win)
4060 (tui_delete_invisible_windows): Update.
4061
d4ab829a
TT
40622019-08-16 Tom Tromey <tom@tromey.com>
4063
4064 * tui/tui-winsource.h (struct tui_source_window_base)
4065 <m_has_locator>: Remove.
4066 * tui/tui-layout.c (show_source_disasm_command, show_data)
4067 (show_source_or_disasm_and_command): Update.
4068
aa7ca1bb
AH
40692019-08-16 Alan Hayward <alan.hayward@arm.com>
4070
4071 * NEWS (Other MI changes): New subsection.
4072 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4073 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4074 * arch-utils.c (default_get_pc_address_flags): New function.
4075 * arch-utils.h (default_get_pc_address_flags): New declaration.
4076 * gdbarch.sh: Add get_pc_address_flags.
4077 * gdbarch.c: Regenerate.
4078 * gdbarch.h: Likewise.
4079 * stack.c (print_pc): New function.
4080 (print_frame_info) (print_frame): Call print_pc.
4081
6eac171f
TV
40822019-08-16 Tom de Vries <tdevries@suse.de>
4083
4084 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4085 print_objfile_section_info.
4086
3df505f6
TT
40872019-08-15 Tom Tromey <tom@tromey.com>
4088
4089 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4090 calling update_cmdwin_start_line.
4091 * tui/tui-winsource.h (struct tui_source_window_base)
4092 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4093 <rerender>: Declare.
4094 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4095 Call rerender.
4096 (tui_source_window_base::set_new_height): Remove.
4097 (tui_source_window_base::rerender): Rename from
4098 do_make_visible_with_new_height.
4099 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4100 resize method.
4101 (tui_win_info::make_invisible_and_set_new_height)
4102 (tui_win_info::make_visible_with_new_height): Remove.
4103 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4104 Declare.
4105 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4106 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4107 do_make_visible_with_new_height>: Don't declare.
4108 <rerender>: Declare.
4109 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4110 set_new_height.
4111 (tui_data_window::do_make_visible_with_new_height): Remove.
4112 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4113 call tui_show_locator_content.
4114 (tui_gen_win_info::resize): Call rerender.
4115 (show_source_or_disasm_and_command): Don't call
4116 tui_show_locator_content.
4117 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4118 method.
4119 (struct tui_win_info) <rerender>: Declare.
4120 <set_new_height, make_invisible_and_set_new_height,
4121 make_visible_with_new_height>: Don't declare.
4122 * tui/tui-data.c (tui_win_list::rerender): New method.
4123 * tui/tui-command.h (struct tui_cmd_window)
4124 <do_make_visible_with_new_height>: Don't declare.
4125 * tui/tui-command.c
4126 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4127
272560b5
TT
41282019-08-15 Tom Tromey <tromey@adacore.com>
4129
4130 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4131 * ada-lang.c (ada_enum_name): Likewise.
4132
08235187
CB
41332019-08-15 Christian Biesinger <cbiesinger@google.com>
4134
4135 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4136 leading underscore.
4137 (GdbOutputErrorFile): Likewise.
4138 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4139 accordingly.
4140 (execute_unwinders): Rename to have a leading underscore.
4141 (auto_load_packages): Likewise.
4142 (global scope): Adjust call to auto_load_packages accordingly.
4143 (GdbSetPythonDirectory): Likewise.
4144 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4145 instead of execute_unwinders.
4146
db502012
TT
41472019-08-15 Tom Tromey <tom@tromey.com>
4148
4149 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4150 (show_data): Don't change window visibility.
4151 (tui_gen_win_info::resize): Remove special case for command
4152 window. Use wresize, when available.
4153 (show_source_or_disasm_and_command): Don't change window
4154 visibility.
4155 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4156 <make_visible>: New method.
4157 * tui/tui-command.c (tui_cmd_window::resize): New method.
4158
3891b65e
TT
41592019-08-15 Tom Tromey <tom@tromey.com>
4160
4161 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4162 (struct tui_source_windows): New.
4163 * tui/tui-winsource.c (tui_display_main): Update.
4164 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4165 (new_height_ok, parse_scrolling_args): Update.
4166 * tui/tui-layout.c (show_layout, show_data): Update.
4167 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4168 (tui_add_to_source_windows): Don't declare.
4169 * tui/tui-data.c (source_windows, tui_source_windows)
4170 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4171
ee556432
TT
41722019-08-15 Tom Tromey <tom@tromey.com>
4173
4174 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4175 Rename from reset.
4176 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4177 * tui/tui-layout.c (show_source_disasm_command, show_data):
4178 Update.
4179 (tui_gen_win_info::resize): Rename.
4180 (show_source_or_disasm_and_command): Update.
4181 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4182 reset.
4183
46f438e3
TT
41842019-08-15 Tom Tromey <tom@tromey.com>
4185
4186 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4187 * tui/tui-interp.c (tui_interp::init): Don't call
4188 tui_initialize_static_data.
4189 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4190
f4ce562c
TT
41912019-08-15 Tom Tromey <tom@tromey.com>
4192
4193 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4194 examine tui_win_list.
4195
c398c3d0
TT
41962019-08-15 Tom Tromey <tom@tromey.com>
4197
4198 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4199 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4200 tui_clear_source_content.
4201 (tui_clear_source_content): Remove.
4202 (tui_source_window_base::do_erase_source_content): Hoist call to
4203 content.clear().
4204 * tui/tui-stack.c (tui_show_frame_info): Don't call
4205 tui_clear_source_content.
4206
e25d2004
TT
42072019-08-15 Tom Tromey <tom@tromey.com>
4208
4209 * tui/tui-winsource.h (struct tui_source_window_base)
4210 <do_erase_source_content>: New method.
4211 <erase_source_content>: New method.
4212 (tui_erase_source_content): Don't declare.
4213 * tui/tui-winsource.c (tui_clear_source_content): Update.
4214 (tui_source_window_base::do_erase_source_content): Rename from
4215 tui_erase_source_content.
4216 (tui_source_window_base::show_source_content): Update.
4217 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4218 * tui/tui-source.h (struct tui_source_window)
4219 <erase_source_content>: New method.
4220 * tui/tui-disasm.h (struct tui_disasm_window)
4221 <erase_source_content>: New method.
4222
002f15c2
TT
42232019-08-15 Tom Tromey <tom@tromey.com>
4224
4225 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4226 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4227 constructor.
4228 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4229 * tui/tui-source.c (tui_set_source_content): Update.
4230 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4231
c9033fe8
TT
42322019-08-15 Tom Tromey <tom@tromey.com>
4233
4234 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4235 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4236 tui-source.c.
4237 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4238 Declare.
4239 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4240 method.
4241 (tui_source_window::maybe_update): Update.
4242
088f37dd
TT
42432019-08-15 Tom Tromey <tom@tromey.com>
4244
4245 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4246 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4247 tui-disasm.c.
4248 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4249 Declare.
4250 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4251 method.
4252 (tui_disasm_window::maybe_update): Update.
4253
a54700c6
TT
42542019-08-15 Tom Tromey <tom@tromey.com>
4255
4256 * tui/tui-winsource.h (struct tui_source_window_base)
4257 <maybe_update>: Declare.
4258 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4259 method.
4260 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4261 Declare.
4262 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4263 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4264 Declare.
4265 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4266
e2a678a5
TT
42672019-08-15 Tom Tromey <tom@tromey.com>
4268
4269 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4270
f2dda477
TT
42712019-08-15 Tom Tromey <tom@tromey.com>
4272
4273 * tui/tui-wingeneral.c: Include tui-stack.h.
4274 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4275 (struct tui_locator_window): Move from tui-data.h.
4276 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4277 (tui_initialize_static_data): Move from tui-data.c.
4278 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4279 (struct tui_locator_window): Move to tui-stack.c.
4280 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4281 (tui_initialize_static_data): Move to tui-stack.c.
4282
ed4a1084
TT
42832019-08-15 Tom Tromey <tom@tromey.com>
4284
4285 * tui/tui-layout.c (show_source_disasm_command)
4286 (show_source_or_disasm_and_command): Use make_visible method, not
4287 tui_make_window.
4288 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4289 Remove.
4290
65962b20
TT
42912019-08-15 Tom Tromey <tom@tromey.com>
4292
4293 * tui/tui-wingeneral.h (tui_make_window): Update.
4294 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4295 parameter.
4296 (tui_gen_win_info::make_visible): Update.
4297 * tui/tui-regs.c (tui_data_window::display_registers_from):
4298 Update.
4299 * tui/tui-layout.c (show_source_disasm_command)
4300 (show_source_or_disasm_and_command): Update.
4301 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4302 (enum tui_box): Remove.
4303 (struct tui_win_info) <can_box>: New method.
4304 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4305 method.
4306
2208ee91
TV
43072019-08-15 Tom de Vries <tdevries@suse.de>
4308
4309 * linux-nat-trad.c: Include gdbarch.h.
4310
75faf5c4
AH
43112019-08-14 Alan Hayward <alan.hayward@arm.com>
4312
4313 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4314 register sizes.
4315
b1c896b3
TT
43162019-08-14 Tom Tromey <tromey@adacore.com>
4317
4318 * darwin-nat.c: Include gdbarch.h.
4319 * darwin-nat-info.c: Include gdbarch.h.
4320
6405cd73
TT
43212019-08-13 Tom Tromey <tom@tromey.com>
4322
4323 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4324 Remove.
4325 * tui/tui-data.c (tui_initialize_static_data): Update.
4326
5216580d
TT
43272019-08-13 Tom Tromey <tom@tromey.com>
4328
4329 * tui/tui-winsource.h (struct tui_exec_info_window)
4330 <~tui_exec_info_window, maybe_allocate_content, get_content,
4331 m_content>: Remove.
4332 (struct tui_source_window_base) <set_exec_info_content,
4333 show_exec_info_content>: Don't declare.
4334 * tui/tui-winsource.c
4335 (tui_exec_info_window::maybe_allocate_content): Remove.
4336 (tui_source_window_base::update_exec_info): Rename from
4337 set_exec_info_content.
4338 (tui_source_window_base::show_exec_info_content)
4339 (tui_source_window_base::update_exec_info): Remove.
4340
93858ad3
TT
43412019-08-13 Tom Tromey <tom@tromey.com>
4342
4343 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4344 declare.
4345 * tui/tui-winsource.c (tui_update_source_window_as_is)
4346 (tui_update_source_windows_with_addr, tui_erase_source_content):
4347 Update.
4348 (tui_clear_exec_info_content): Remove.
4349
e321e7ce
TT
43502019-08-13 Tom Tromey <tom@tromey.com>
4351
4352 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4353 declare.
4354 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4355 call tui_erase_exec_info_content.
4356 (tui_clear_exec_info_content): Rename from
4357 tui_erase_exec_info_content.
4358 (tui_clear_exec_info_content): Delete.
4359
8270ac62
TT
43602019-08-13 Tom Tromey <tom@tromey.com>
4361
4362 * tui/tui-winsource.h (struct tui_source_window_base)
4363 <show_exec_info_content>: Declare.
4364 (tui_show_exec_info_content): Don't declare.
4365 * tui/tui-winsource.c
4366 (tui_source_window_base::show_exec_info_content): Rename from
4367 tui_show_exec_info_content.
4368 (tui_source_window_base::update_exec_info): Update.
4369
7b56485d
TT
43702019-08-13 Tom Tromey <tom@tromey.com>
4371
4372 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4373 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4374 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4375 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4376 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4377 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4378 ... here.
4379
7ba913dc
TT
43802019-08-13 Tom Tromey <tom@tromey.com>
4381
4382 * tui/tui-winsource.h (struct tui_source_window_base)
4383 <update_exec_info>: Declare.
4384 (tui_update_exec_info): Don't declare.
4385 * tui/tui-winsource.c (tui_update_source_window_as_is)
4386 (tui_source_window_base::refresh_all)
4387 (tui_update_all_breakpoint_info): Update.
4388 (tui_source_window_base::update_exec_info): Rename from
4389 tui_update_exec_info.
4390 * tui/tui-stack.c (tui_show_frame_info): Update.
4391
37a4a131
TT
43922019-08-13 Tom Tromey <tom@tromey.com>
4393
4394 * tui/tui-winsource.h (struct tui_source_window_base)
4395 <set_exec_info_content>: Declare.
4396 (tui_set_exec_info_content): Don't declare.
4397 * tui/tui-winsource.c
4398 (tui_source_window_base::set_exec_info_content): Rename from
4399 tui_set_exec_info_content.
4400 (tui_update_exec_info): Update.
4401
0bd27e07
TT
44022019-08-13 Tom Tromey <tom@tromey.com>
4403
4404 * tui/tui-winsource.h (struct tui_source_window_base)
4405 <show_source_content>: Declare.
4406 (tui_show_source_content): Don't declare.
4407 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4408 (tui_source_window_base::show_source_content): Rename from
4409 tui_show_source_content.
4410 (tui_source_window_base::refresh_all): Update.
4411 * tui/tui-layout.c (show_source_disasm_command)
4412 (show_source_or_disasm_and_command): Update.
4413
b4ef5aeb
TT
44142019-08-13 Tom Tromey <tom@tromey.com>
4415
4416 * tui/tui-winsource.c (tui_erase_source_content)
4417 (tui_show_source_content, tui_source_window_base::refresh_all):
4418 Update.
4419 * tui/tui-wingeneral.h
4420 (tui_check_and_display_highlight_if_needed): Don't declare.
4421 * tui/tui-wingeneral.c
4422 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4423 check_and_display_highlight_if_needed.
4424 * tui/tui-win.c (tui_rehighlight_all)
4425 (tui_win_info::make_visible_with_new_height): Update.
4426 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4427 (tui_data_window::erase_data_content)
4428 (tui_data_window::display_all_data): Update.
4429 * tui/tui-data.h (struct tui_win_info)
4430 <check_and_display_highlight_if_needed>: Declare.
4431
fede5273
TT
44322019-08-13 Tom Tromey <tom@tromey.com>
4433
4434 * tui/tui-win.c (tui_resize_all): Call
4435 tui_delete_invisible_windows.
4436 * tui/tui-layout.c (show_layout): Call
4437 tui_delete_invisible_windows.
4438 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4439 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4440
22c3f490
TT
44412019-08-13 Tom Tromey <tom@tromey.com>
4442
4443 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4444 tui_add_win_to_layout.
4445
16cb7910
TT
44462019-08-13 Tom Tromey <tom@tromey.com>
4447
4448 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4449 * tui/tui-layout.c (tui_default_win_height): Now static.
4450
cc0c3ffb
TT
44512019-08-13 Tom Tromey <tom@tromey.com>
4452
4453 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4454 single switch.
4455 (show_source_disasm_command, show_source_or_disasm_and_command):
4456 Don't check current layout.
4457
3f3ffe54
TT
44582019-08-13 Tom Tromey <tom@tromey.com>
4459
4460 * tui/tui-wingeneral.c (make_all_visible): Remove.
4461 (tui_make_all_invisible): Simplify.
4462 * tui/tui-layout.c (tui_make_all_invisible): Move from
4463 tui-wingeneral.c; simplify.
4464 (show_layout): Hoist call to tui_make_all_invisible.
4465 (show_data): Don't call tui_make_all_invisible.
4466
69258091
TT
44672019-08-13 Tom Tromey <tom@tromey.com>
4468
4469 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4470 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4471
62cf57fe
TT
44722019-08-13 Tom Tromey <tom@tromey.com>
4473
4474 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4475 tui-data.c.
4476 (show_source_disasm_command, show_data)
4477 (show_source_or_disasm_and_command): Don't use
4478 tui_set_current_layout_to.
4479 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4480 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4481 tui-layout.c.
4482 (tui_set_current_layout_to): Remove.
4483
2afade5d
TT
44842019-08-13 Tom Tromey <tom@tromey.com>
4485
4486 * tui/tui-layout.c (tui_set_layout): Update.
4487 * tui/tui-data.h (struct tui_layout_def): Remove.
4488 (tui_layout_def): Don't declare.
4489 * tui/tui-data.c (layout_def): Remove.
4490 (tui_layout_def): Remove.
4491
a3504e96
TT
44922019-08-13 Tom Tromey <tom@tromey.com>
4493
4494 * tui/tui-winsource.h (struct tui_source_window_base)
4495 <clear_detail>: No longer "override".
4496 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4497 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4498 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4499 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4500 Remove.
4501 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4502
29c92911
TT
45032019-08-13 Tom Tromey <tromey@adacore.com>
4504
4505 * tracepoint.c: Don't include readline.h or history.h.
4506
86c6b807
TT
45072019-08-12 Tom Tromey <tom@tromey.com>
4508
4509 * configure: Rebuild.
4510 * configure.ac: Check for readline 7.
4511 * NEWS: Mention readline 7 requirement.
4512 * README: Update.
4513
5db2718c
TT
45142019-08-12 Tom Tromey <tom@tromey.com>
4515
4516 * mingw-hdep.c (gdb_select): Remove readline hack.
4517
dac36daf
PFC
45182019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4519
4520 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4521 when the function fails.
4522
1022c627
AA
45232019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4524
4525 * s390-tdep.c (s390_type_align): New function.
4526 (s390_gdbarch_init): Set it as type_align gdbarch method.
4527
eba4caf2
TV
45282019-08-09 Tom de Vries <tdevries@suse.de>
4529
4530 PR gdb/24591
4531 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4532 pc_low with relocation offset.
4533
123cd851
TT
45342019-08-07 Tom Tromey <tromey@adacore.com>
4535
4536 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4537 (print_frame_args): Update.
4538 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4539 Update.
4540 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4541 * frame.h (struct frame_arg): Add initializers.
4542 <error>: Now a unique_xmalloc_ptr.
4543
3d31bc39
AH
45442019-08-07 Alan Hayward <alan.hayward@arm.com>
4545
4546 * NEWS: Expand the Pointer Authentication entry.
4547 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4548 (aarch64_frame_unmask_lr): ... to this.
4549 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4550 Call aarch64_frame_unmask_lr.
4551 * frame.c (struct frame_info): Add "masked" variable.
4552 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4553 (fprint_frame): Check for masked pc.
4554 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4555 declarations.
4556 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4557 * stack.c (print_frame): Check for masked pc.
4558
0cf9feb9
TT
45592019-08-06 Tom Tromey <tom@tromey.com>
4560
4561 * stabsread.c (patch_block_stabs, read_one_struct_field)
4562 (read_enum_type): Use obstack_strndup.
4563 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4564 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4565 * dwarf2read.c (guess_full_die_structure_name)
4566 (anonymous_struct_prefix): Use obstack_strndup.
4567 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4568 * c-exp.y (yylex): Use obstack_strndup.
4569 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4570 (write_var_or_type): Use obstack_strndup.
4571
efba19b0
TT
45722019-08-06 Tom Tromey <tom@tromey.com>
4573
4574 * symfile.c (reread_symbols): Use obstack_strdup.
4575 * stabsread.c (read_type): Use obstack_strdup.
4576 * gdb_obstack.h (obstack_strdup): New overload.
4577 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4578 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4579 (dwarf2_canonicalize_name): Use obstack_strdup.
4580 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4581 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4582 Use obstack_strdup.
4583
f25102f7
TT
45842019-08-06 Tom Tromey <tom@tromey.com>
4585
4586 * gdb_obstack.h (obstack_strdup): Define.
4587 * gdb_obstack.c (obstack_strdup): Don't define.
4588
021887d8
TT
45892019-08-06 Tom Tromey <tom@tromey.com>
4590
4591 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4592 obstack_strdup.
4593 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4594 obstack_strdup.
4595 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4596 * stabsread.c (common_block_start): Use obstack_strdup.
4597 * objfiles.c (set_objfile_main_name, objfile): Use
4598 obstack_strdup.
4599 * namespace.c (add_using_directive): Use obstack_strdup.
4600 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4601 * jit.c (finalize_symtab): Use obstack_strdup.
4602 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4603 (guess_partial_die_structure_name, partial_die_info::fixup)
4604 (dwarf2_name): Use obstack_strdup.
4605 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4606 obstack_strdup.
4607 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4608 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4609 obstack_strdup.
4610 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4611
d2834edc
PW
46122019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4613
4614 * unittests/help-doc-selftests.c: New file.
4615 * Makefile.in: Add the new file.
4616
590042fc
PW
46172019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4618
4619 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4620 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4621 the full first line, except when FOR_VALUE_PREFIX. In this case,
4622 the trailing '.' is not output, and the first character is uppercased.
4623 (print_help_for_command): Update call to print_doc_line.
4624 (print_doc_of_command): Likewise.
4625 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4626 * cli/cli-option.c (append_indented_doc): Do not append newline.
4627 (build_help_option): Append newline after first appended_indented_doc
4628 only if a second call is done.
4629 (build_help): Append 2 new lines before each option, except the first
4630 one.
4631 * compile/compile.c (_initialize_compile): Add new lines after
4632 %OPTIONS%, when not at the end of the help.
4633 Change help doc or code
4634 producing the help doc to respect the invariants.
4635 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4636 Also removed the new line after 'Options:', as all other commands
4637 do not put an empty line between 'Options:' and the first option.
4638 * printcmd.c (_initialize_printcmd): Likewise.
4639 * stack.c (_initialize_stack): Likewise.
4640 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4641 incorrectly telling COMMAND is optional.
4642 * ada-lang.c (_initialize_ada_language): Change help doc or code
4643 producing the help doc to respect the invariants.
4644 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4645 * breakpoint.c (_initialize_breakpoint): Likewise.
4646 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4647 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4648 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4649 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4650 _initialize_cli_style): Likewise.
4651 * corelow.c (core_target_info): Likewise.
4652 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4653 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4654 * filesystem.c (_initialize_filesystem): Likewise.
4655 * frame.c (_initialize_frame): Likewise.
4656 * gnu-nat.c (add_task_commands): Likewise.
4657 * infcall.c (_initialize_infcall): Likewise.
4658 * infcmd.c (_initialize_infcmd): Likewise.
4659 * interps.c (_initialize_interpreter): Likewise.
4660 * language.c (_initialize_language): Likewise.
4661 * linux-fork.c (_initialize_linux_fork): Likewise.
4662 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4663 * maint.c (_initialize_maint_cmds): Likewise.
4664 * memattr.c (_initialize_mem): Likewise.
4665 * printcmd.c (_initialize_printcmd): Likewise.
4666 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4667 _RegEx): Likewise.
4668 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4669 * record-btrace.c (_initialize_record_btrace): Likewise.
4670 * record-full.c (_initialize_record_full): Likewise.
4671 * record.c (_initialize_record): Likewise.
4672 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4673 * regcache.c (_initialize_regcache): Likewise.
4674 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4675 _initialize_remote): Likewise.
4676 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4677 * serial.c (_initialize_serial): Likewise.
4678 * skip.c (_initialize_step_skip): Likewise.
4679 * source.c (_initialize_source): Likewise.
4680 * stack.c (_initialize_stack): Likewise.
4681 * symfile.c (_initialize_symfile): Likewise.
4682 * symtab.c (_initialize_symtab): Likewise.
4683 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4684 * top.c (init_main): Likewise.
4685 * tracefile-tfile.c (tfile_target_info): Likewise.
4686 * tracepoint.c (_initialize_tracepoint): Likewise.
4687 * tui/tui-win.c (_initialize_tui_win): Likewise.
4688 * utils.c (add_internal_problem_command): Likewise.
4689 * valprint.c (value_print_option_defs): Likewise.
4690
404f2902
FCE
46912019-08-06 Frank Ch. Eigler <fche@redhat.com>
4692
4693 PR build/24886
4694 * configure.ac: Drop enable-libmcheck support.
4695 * configure, config.in: Rebuild.
4696 * libmcheck.m4: Remove.
4697 * acinclude.m4: Don't include it.
4698 * Makefile.in: Don't distribute it.
4699 * top.c (print_gdb_configuration): Don't mention it.
4700
046bebe1
TT
47012019-08-06 Tom Tromey <tom@tromey.com>
4702
4703 * utils.c (set_output_style): Sometimes pass stream to
4704 emit_style_escape.
4705 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4706 * record-btrace.c (btrace_insn_history): Update.
4707 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4708 method.
4709 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4710 Update initializers.
4711 <m_uiout>: New field.
4712 <m_di>: Move lower.
4713 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4714 Remove "uiout" parameter.
4715 (dump_insns): Update.
4716 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4717 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4718
ddbcedf5
CB
47192019-08-06 Christian Biesinger <cbiesinger@google.com>
4720
4721 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4722 (error_in_psymtab_expansion): Likewise.
4723 (lookup_symbol_via_quick_fns): Likewise.
4724 (basic_lookup_transparent_type_quick): Likewise.
4725 (basic_lookup_transparent_type_1): Likewise.
4726
b08b16c8
TT
47272019-08-06 Tom Tromey <tromey@adacore.com>
4728
4729 * source.c (last_source_error): Now bool.
4730 (print_source_lines_base): Make "noprint" bool. Only open
4731 source file when last_source_visited changes.
4732
cb44333d
TT
47332019-08-06 Tom Tromey <tromey@adacore.com>
4734
4735 * annotate.c (annotate_source_line): Use g_source_cache.
4736 * source-cache.c (source_cache::get_plain_source_lines): Change
4737 parameters. Populate m_offset_cache.
4738 (source_cache::ensure): New method.
4739 (source_cache::get_line_charpos): New method.
4740 (extract_lines): Move lower. Change parameters.
4741 (source_cache::get_source_lines): Move lower.
4742 * source-cache.h (class source_cache): Update comment.
4743 <get_line_charpos>: New method.
4744 <get_source_lines>: Update comment.
4745 <clear>: Clear m_offset_cache.
4746 <get_plain_source_lines>: Change parameters.
4747 <ensure>: New method
4748 <m_offset_cache>: New member.
4749 * source.c (forget_cached_source_info_for_objfile): Update.
4750 (info_source_command): Use g_source_cache.
4751 (find_source_lines, open_source_file_with_line_charpos): Remove.
4752 (print_source_lines_base, search_command_helper): Use g_source_cache.
4753 * source.h (open_source_file_with_line_charpos): Don't declare.
4754 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4755 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4756 Use g_source_cache.
4757
872dceaa
TT
47582019-08-06 Tom Tromey <tromey@adacore.com>
4759
4760 * source-cache.c (source_cache::get_plain_source_lines):
4761 Remove "first_line" and "last_line" parameters.
4762 (source_cache::get_source_lines): Cache plain text.
4763 * source-cache.h (class source_cache)
4764 <get_plain_source_lines>: Update.
4765
269249d9
TT
47662019-08-06 Tom Tromey <tromey@adacore.com>
4767
4768 * source-cache.c (extract_lines): No longer a method.
4769 Changed type of parameter. Include final newline.
4770 (selftests::extract_lines_test): New function.
4771 (_initialize_source_cache): Likewise.
4772 * source-cache.h (class source_cache)
4773 <extract_lines>: Don't declare.
4774
c0e8dcd8
TT
47752019-08-06 Tom Tromey <tromey@adacore.com>
4776
4777 * breakpoint.c (init_breakpoint_sal): Update.
4778 (breakpoint): Update.
4779 * breakpoint.h (struct breakpoint) <filter>: Now a
4780 unique_xmalloc_ptr.
4781
0b27c27d
CB
47822019-08-05 Christian Biesinger <cbiesinger@google.com>
4783
4784 * NEWS: Mention dictionary access on blocks.
4785 * python/py-block.c (blpy_getitem): New function.
4786 (block_object_as_mapping): New struct.
4787 (block_object_type): Use new struct for tp_as_mapping field.
4788
4ee94178
CB
47892019-08-05 Christian Biesinger <cbiesinger@google.com>
4790
4791 * objfiles.h (objfile): Add a comment describing partial symbols.
4792
8abfcabc
TT
47932019-08-05 Tom Tromey <tromey@adacore.com>
4794
4795 * compile/compile.c (_initialize_compile): Use _(), not N_().
4796 * thread.c (_initialize_thread): Use _(), not N_().
4797 * stack.c (_initialize_stack): Use _(), not N_().
4798 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4799
2b79f376
SM
48002019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4801
4802 * dwarf2read.c (struct dw2_symtab_iterator):
4803 <want_specific_block>: Remove.
4804 <block_index>: Change type to gdb::optional.
4805 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4806 change type of BLOCK_INDEX parameter to gdb::optional.
4807 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4808 (dw2_lookup_symbol): Don't pass argument for
4809 WANT_SPECIFIC_BLOCK.
4810 (dw2_expand_symtabs_for_function): Don't pass argument for
4811 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4812 (class dw2_debug_names_iterator)
4813 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4814 parameter, change BLOCK_INDEX type to gdb::optional.
4815 <m_want_specific_block>: Remove.
4816 <m_block_index>: Change type to gdb::optional.
4817 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4818 gdb::optional. Re-write in function of gdb::optional.
4819 (dw2_debug_names_lookup_symbol): Don't pass argument for
4820 WANT_SPECIFIC_BLOCK.
4821 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4822 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4823 BLOCK_INDEX.
4824
ae60f04e
PW
48252019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4826
4827 * NEWS: Mention changes to "info sources" command.
4828
28cd9371
PW
48292019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4830
4831 * symtab.c (filename_partial_match_opts): New struct type.
4832 (struct output_source_filename_data): New members
4833 regexp, c_regexp, partial_match.
4834 (output_source_filename): Use new members to decide to print file.
4835 (info_sources_option_defs): New variable.
4836 (make_info_sources_options_def_group, print_info_sources_header,
4837 info_sources_command_completer):
4838 New functions.
4839 (info_sources_command): Read new optional arguments.
4840 (_initialize_symtab): Update info sources help.
4841
ca683e3a
AO
48422019-08-02 Alexandre Oliva <oliva@adacore.com>
4843
4844 * ada-lang.c (exception_support_info_v0): Renamed from...
4845 (default_exception_support_info): ... this. Create new
4846 definition for v1.
4847 (ada_has_this_exception_support): Look up catch_handlers_sym.
4848 (ada_exception_support_info_sniffer): Try v0 after default.
4849
f1264162
TT
48502019-08-01 Tom Tromey <tromey@adacore.com>
4851
4852 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4853 gdbarch.h.
4854
0a7b2485
CB
48552019-08-01 Christian Biesinger <cbiesinger@google.com>
4856
4857 * s12z-tdep.c: Fix include path for s12z-opc.h.
4858
c6bdbeb7
AH
48592019-08-01 Alan Hayward <alan.hayward@arm.com>
4860
4861 * NEWS: Require GNU make 3.82.
4862
a2bd7b82
TT
48632019-07-16 Tom Tromey <tom@tromey.com>
4864
4865 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4866 declare.
4867
aa3b6533
TT
48682019-07-30 Tom Tromey <tromey@adacore.com>
4869
4870 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4871
a1530dc7
KB
48722019-07-30 Kevin Buettner <kevinb@redhat.com>
4873
4874 * printcmd.c (print_address_symbolic): Print negative offsets.
4875 (build_address_symbolic): Force signed arithmetic when computing
4876 offset.
4877
2906593f
CB
48782019-07-30 Christian Biesinger <cbiesinger@google.com>
4879
4880 PR/24474: Add a function to lookup static variables.
4881 * NEWS: Mention this new function.
4882 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4883 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4884 * python/python.c (python_GdbMethods): Add new function.
4885
c620ed88
CB
48862019-07-29 Christian Biesinger <cbiesinger@google.com>
4887
4888 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4889 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4890 (objfpy_lookup_static_symbol): New function.
4891 (objfile_object_methods): Add new functions.
4892
bc4268a5
PW
48932019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4894
4895 * NEWS: Mention 'set|show print frame-info'. Mention new
4896 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4897 backtrace argument. Mention that python frame filtering code
4898 is now consistent with what 'backtrace' command prints.
4899
4b5e8d19
PW
49002019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4901
4902 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4903 comments.
4904 (print_frame_info_auto, print_frame_info_source_line,
4905 print_frame_info_location, print_frame_info_source_and_location,
4906 print_frame_info_location_and_address, print_frame_info_short_location):
4907 New declarations.
4908 (struct frame_print_options): New member print_frame_info.
4909 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4910 * stack.h (get_user_print_what_frame_info): New declaration.
4911 (frame_show_address): New declaration.
4912 * stack.c (print_frame_arguments_choices): New value 'presence'.
4913 (print_frame_info_auto, print_frame_info_source_line,
4914 print_frame_info_location, print_frame_info_source_and_location,
4915 print_frame_info_location_and_address, print_frame_info_short_location,
4916 print_frame_info_choices, print_frame_info_print_what): New definitions.
4917 (print_frame_args): Only print dots for args if print frame-arguments
4918 is 'presence'.
4919 (frame_print_option_defs): New element for "frame-info".
4920 (get_user_print_what_frame_info): New function.
4921 (frame_show_address): Make non static. Move comment to stack.h.
4922 (print_frame_info_to_print_what): New function.
4923 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4924 to decide what to print.
4925 (backtrace_command_1): Handle the new print_frame_arguments_presence
4926 value.
4927 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4928 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4929 (py_print_frame): In non-mi mode, use LOCATION as default for
4930 print_what, similarly to frame information printed directly by
4931 backtrace command. Handle frame-info user option in non MI mode.
4932
6bdfee81
KB
49332019-07-27 Kevin Buettner <kevinb@redhat.com>
4934
4935 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4936 Add case for debugging 32-bit target on 64-bit host. Revise
4937 comment.
4938
98a617f8
KB
49392019-07-27 Kevin Buettner <kevinb@redhat.com>
4940
4941 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4942 instead of find_function_entry_range_from_pc.
4943
567238c9
KB
49442019-07-27 Kevin Buettner <kevinb@redhat.com>
4945
4946 * stack.c (find_frame_funname): Remove code which preferred
4947 minsym over symtab sym in "certain pathological cases".
4948
2dc80cf8
KB
4949 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4950 parameter. Change type of "do_demangle" to bool.
4951 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4952 Pass suitable "prefer_sym_over_minsym" flag to
4953 build_address_symbolic(). Don't output "+" for negative offsets.
4954 * printcmd.c (print_address_symbolic): Update invocation of
4955 build_address_symbolic to include a "prefer_sym_over_minsym"
4956 flag.
4957 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4958 Restrict cases in which use of minimal symbol is preferred to that
4959 of a found symbol. Update comments.
4960
1aff7173
KB
4961 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4962 for entry pc when entry pc is out of range for that FDE.
4963
89b085ac
BC
49642019-07-26 Brian Callahan <bcallah@openbsd.org>
4965
4966 PR gdb/24839:
4967 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4968 type.
4969
f32feb4a
CB
49702019-07-25 Christian Biesinger <cbiesinger@google.com>
4971
4972 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4973 this function's Python signature.
4974
4975
49762019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
4977
4978 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4979 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4980 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4981 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4982 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4983
4984
c54e4253
YS
49852019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4986
4987 * h8300-tdep.c (h8300_register_name_common): New.
4988 h8300_register_name): Use h8300_register_name_common.
4989 (h8300s_register_name): Likewise.
4990 (h8300sx_register_name): Likewise.
4991 (h8300h_register_nam): New.
4992 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4993
4994
40eadf04
SP
49952019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4996
4997 * arm-tdep.c (arm_skip_cmse_entry): New function.
4998 (arm_is_sgstubs_section): New function.
4999 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5000
bfa2a36d
TT
50012019-07-22 Tom Tromey <tom@tromey.com>
5002
5003 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5004 Don't self-assign.
5005
a8e9d247
AB
50062019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5007
5008 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5009 type_print.
5010
eb86c5e2
AB
50112019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5012
5013 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5014 so that GDB doesn't match any msymbols when searching in the
5015 TYPES_DOMAIN.
5016 (print_symbol_info): Print using typedef_print or type_print based
5017 on the type of the symbol. Add updated FIXME comment moved from...
5018 (_initialize_symtab): ... move and update FIXME comment to above.
5019
a8eab7c6
AB
50202019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5021
5022 * NEWS: Mention adding -q option to "info types".
5023 * symtab.c (struct info_types_options): New struct.
5024 (info_types_options_defs): New variable.
5025 (make_info_types_options_def_group): New function.
5026 (info_types_command): Use gdb::option framework to parse options.
5027 (info_types_command_completer): New function.
5028 (_initialize_symtab): Extend the help text on "info types" and
5029 register command completer.
5030
b4603c34
CB
50312019-07-21 Christian Biesinger <cbiesinger@google.com>
5032
5033 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5034 (lookup_symbol_in_objfile): Change int to block_enum and add a
5035 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5036
c8cdc1e0
CB
50372019-07-20 Christian Biesinger <cbiesinger@google.com>
5038
5039 * MAINTAINERS (Write After Approval): Add self.
5040
01e175fe
AB
50412019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5042
5043 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5044 instruction to the dummy code region.
5045
56f79b63
TT
50462019-07-19 Tom Tromey <tromey@adacore.com>
5047
5048 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5049 (ARGSUSED, PARAMS, __func__): Remove rules.
5050
4c5aa8e0
AH
50512019-07-19 Alan Hayward <alan.hayward@arm.com>
5052
5053 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5054 * features/arm/arm-with-iwmmxt.c: Remove.
5055 * features/arm/arm-with-iwmmxt.xml: Remove.
5056 * features/arm/arm-with-m-fpa-layout.c: Remove.
5057 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5058 * features/arm/arm-with-m-vfp-d16.c: Remove.
5059 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5060 * features/arm/arm-with-m.c: Remove.
5061 * features/arm/arm-with-m.xml: Remove.
5062 * features/arm/arm-with-neon.c: Remove.
5063 * features/arm/arm-with-neon.xml: Remove.
5064 * features/arm/arm-with-vfpv2.c: Remove.
5065 * features/arm/arm-with-vfpv2.xml: Remove.
5066 * features/arm/arm-with-vfpv3.c: Remove.
5067 * features/arm/arm-with-vfpv3.xml: Remove.
5068
f42b2617
AH
50692019-07-19 Alan Hayward <alan.hayward@arm.com>
5070
5071 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5072
f29ec966
AH
50732019-07-19 Alan Hayward <alan.hayward@arm.com>
5074
5075 * arch/aarch32.c (aarch32_create_target_description): Create
5076 target descriptions using features.
5077 * arch/arm.c (arm_create_target_description)
5078 (arm_create_mprofile_target_description): Likewise.
5079 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5080
d105cce5
AH
50812019-07-19 Alan Hayward <alan.hayward@arm.com>
5082
5083 * Makefile.in: Add new files.
5084 * aarch32-tdep.c: New file.
5085 * aarch32-tdep.h: New file.
5086 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5087 Call aarch32_read_description.
5088 * arch/aarch32.c: New file.
5089 * arch/aarch32.h: New file.
5090 * arch/arm.c (arm_create_target_description)
5091 (arm_create_mprofile_target_description): New function.
5092 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5093 (arm_create_target_description)
5094 (arm_create_mprofile_target_description): New declaration.
5095 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5096 read_description functions.
5097 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5098 Likewise.
5099 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5100 * arm-tdep.c (tdesc_arm_list): New variable.
5101 (arm_register_g_packet_guesses): Call create description functions.
5102 (arm_read_description) (arm_read_mprofile_description): New
5103 function.
5104 * arm-tdep.h (arm_read_description)
5105 (arm_read_mprofile_description): Add declaration.
5106 * configure.tgt: Add new files.
5107
afe09f0b
GL
51082019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5109
5110 * top.c (new_ui_command): Open specified terminal just once.
5111
cd215b2e
TT
51122019-07-18 Tom Tromey <tromey@adacore.com>
5113
5114 * symtab.c (main_name): Constify return type.
5115 * symfile.c (set_initial_language): Update.
5116 * symtab.h (main_name): Constify return type.
5117
d8f68fcb
TT
51182019-07-17 Tom Tromey <tom@tromey.com>
5119
5120 * tui/tui-winsource.c (tui_update_source_window)
5121 (tui_update_source_window_as_is)
5122 (tui_update_source_windows_with_line): Remove return.
5123 * tui/tui-disasm.c (tui_show_disassem)
5124 (tui_show_disassem_and_update_source): Remove return.
5125 * tui/tui.c (tui_reset): Remove return.
5126 * tui/tui-wingeneral.c
5127 (tui_check_and_display_highlight_if_needed): Remove return.
5128
ca5af91e
TT
51292019-07-17 Tom Tromey <tom@tromey.com>
5130
5131 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5132
5104fe36
TT
51332019-07-17 Tom Tromey <tom@tromey.com>
5134
5135 * tui/tui-winsource.h (struct tui_exec_info_window)
5136 (struct tui_source_window_base): Move from tui-data.h.
5137 * tui/tui-winsource.c: Move many method definitions from
5138 elsewhere. Remove "structuring" comments.
5139 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5140 (tui_source_window_base::refresh_window): Move to
5141 tui-winsource.c.
5142 * tui/tui-win.c (tui_source_window_base::refresh_all)
5143 (tui_source_window_base::update_tab_width)
5144 (tui_source_window_base::set_new_height)
5145 (tui_source_window_base::do_make_visible_with_new_height): Move to
5146 tui-winsource.c.
5147 * tui/tui-source.h: Update.
5148 * tui/tui-source.c (tui_source_window_base::reset): Move to
5149 tui-winsource.c.
5150 * tui/tui-disasm.h: Update.
5151 * tui/tui-data.h (struct tui_exec_info_window): Move to
5152 tui-winsource.h.
5153 (struct tui_source_window_base): Likewise.
5154 * tui/tui-data.c (tui_source_window_base::clear_detail)
5155 (tui_source_window_base, ~tui_source_window_base): Move to
5156 tui-winsource.c.
5157
daa15dde
TT
51582019-07-17 Tom Tromey <tom@tromey.com>
5159
5160 * tui/tui-win.c (tui_resize_all)
5161 (tui_source_window_base::update_tab_width)
5162 (tui_adjust_win_heights): Update.
5163 (tui_win_info::make_invisible_and_set_new_height): Rename from
5164 make_invisible_and_set_new_height.
5165 * tui/tui-data.h (struct tui_win_info)
5166 <make_invisible_and_set_new_height>: New method.
5167
bfad4537
TT
51682019-07-17 Tom Tromey <tom@tromey.com>
5169
5170 * tui/tui.c: Update.
5171 * tui/tui-source.h (struct tui_source_window): Move from
5172 tui-data.h.
5173 * tui/tui-layout.c: Update.
5174 * tui/tui-disasm.c: Update.
5175 * tui/tui-data.h (struct tui_source_window): Move to
5176 tui-source.h.
5177
88f7e873
TT
51782019-07-17 Tom Tromey <tom@tromey.com>
5179
5180 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5181 tui-data.h.
5182 * tui/tui-data.h (struct tui_disasm_window): Move to
5183 tui-disasm.h.
5184
96bd6233
TT
51852019-07-17 Tom Tromey <tom@tromey.com>
5186
5187 * tui/tui-regs.h (struct tui_data_item_window): Move from
5188 tui-data.h.
5189 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5190 * tui/tui-data.h (struct tui_data_item_window): Move to
5191 tui-regs.h.
5192 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5193
ce38393b
TT
51942019-07-17 Tom Tromey <tom@tromey.com>
5195
5196 * tui/tui.c: Update.
5197 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5198 (tui_cmd_window::max_height): Move to tui-command.c.
5199 * tui/tui-layout.c: Update.
5200 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5201 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5202 tui-command.c.
5203 * tui/tui-command.h (struct tui_cmd_window): Move from
5204 tui-data.h.
5205 * tui/tui-command.c: Remove "structuring" comments.
5206 (tui_cmd_window::clear_detail)
5207 (tui_cmd_window::do_make_visible_with_new_height)
5208 (tui_cmd_window::max_height): Move from elsewhere.
5209
2d8b51cb
TT
52102019-07-17 Tom Tromey <tom@tromey.com>
5211
5212 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5213 Now static.
5214 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5215 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5216
18ab23af
TT
52172019-07-17 Tom Tromey <tom@tromey.com>
5218
5219 * tui/tui.c: Update.
5220 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5221 tui-regs.c.
5222 * tui/tui-windata.h: Remove file.
5223 * tui/tui-windata.c: Remove file.
5224 * tui/tui-win.c (tui_data_window::set_new_height)
5225 (tui_data_window::do_make_visible_with_new_height): Move to
5226 tui-regs.c.
5227 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5228 * tui/tui-regs.c: Remove "structuring" comments.
5229 (tui_data_window::first_data_item_displayed)
5230 (tui_data_window::delete_data_content_windows)
5231 (tui_data_window::erase_data_content)
5232 (tui_data_window::display_all_data)
5233 (tui_data_window::refresh_all)
5234 (tui_data_window::do_scroll_vertical)
5235 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5236 (tui_data_window::do_make_visible_with_new_height)
5237 (tui_data_window::refresh_window): Move from elsewhere.
5238 (_initialize_tui_regs): Move to end of file.
5239 * tui/tui-layout.c: Update.
5240 * tui/tui-hooks.c: Update.
5241 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5242 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5243 tui-regs.c.
5244 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5245
88b7e7cc
TT
52462019-07-17 Tom Tromey <tom@tromey.com>
5247
5248 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5249 seen.
5250
0fcd3711
TT
52512019-07-17 Tom Tromey <tom@tromey.com>
5252
5253 * tui/tui-win.c (tui_source_window_base::set_new_height)
5254 (tui_source_window_base::do_make_visible_with_new_height): Use
5255 m_has_locator field directly.
5256 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5257 method.
5258 (struct tui_source_window_base) <has_locator>: Likewise.
5259
4a38112d
TT
52602019-07-17 Tom Tromey <tom@tromey.com>
5261
5262 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5263 Don't declare.
5264 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5265 Remove.
5266 * tui/tui-win.c (tui_source_window_base::set_new_height)
5267 (tui_source_window_base::set_new_height)
5268 (make_invisible_and_set_new_height)
5269 (tui_source_window_base::do_make_visible_with_new_height)
5270 (tui_source_window_base::do_make_visible_with_new_height):
5271 Update.
5272 * tui/tui-layout.c (show_source_disasm_command, show_data)
5273 (show_source_or_disasm_and_command): Update.
5274 * tui/tui-layout.c (show_layout): Update.
5275
09129226
TT
52762019-07-17 Tom Tromey <tom@tromey.com>
5277
5278 * tui/tui-layout.c (make_data_window): Remove.
5279 (show_data): Unify creation and re-initialization cases.
5280
4a8a5e84
TT
52812019-07-17 Tom Tromey <tom@tromey.com>
5282
5283 * tui/tui-layout.c (make_source_window, make_disasm_window):
5284 Remove.
5285 (show_data): Unify creation and re-initialization cases.
5286
76d2be8e
TT
52872019-07-17 Tom Tromey <tom@tromey.com>
5288
5289 * tui/tui-layout.c (make_command_window): Remove.
5290 (show_source_disasm_command, show_source_or_disasm_and_command):
5291 Unify creation and re-initialization cases.
5292
890b8bde
TT
52932019-07-17 Tom Tromey <tom@tromey.com>
5294
5295 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5296 creation and re-initialization cases.
5297
2cdfa113
TT
52982019-07-17 Tom Tromey <tom@tromey.com>
5299
5300 * tui/tui-regs.c (tui_get_register): Return void.
5301
8e3cfd09
TT
53022019-07-17 Tom Tromey <tom@tromey.com>
5303
5304 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5305 Simplify.
5306
f4e04977
TT
53072019-07-17 Tom Tromey <tom@tromey.com>
5308
5309 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5310 resetting.
5311
0379b883
TT
53122019-07-17 Tom Tromey <tom@tromey.com>
5313
5314 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5315 * tui/tui-regs.c (tui_reg_layout): New function.
5316 (tui_show_registers, tui_reg_command): Use it.
5317 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5318 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5319 parameters.
5320 (tui_layout_command): Remove.
5321
b7fbad91
TT
53222019-07-17 Tom Tromey <tom@tromey.com>
5323
5324 * tui/tui-layout.h (tui/tui-layout): Return void.
5325 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5326
4e1e56b9
TT
53272019-07-17 Tom Tromey <tom@tromey.com>
5328
5329 * tui/tui-layout.c (show_source_disasm_command, show_data):
5330 Update.
5331 (reset_locator): Remove.
5332 (show_source_or_disasm_and_command): Update.
5333
1e0c09ba
TT
53342019-07-17 Tom Tromey <tom@tromey.com>
5335
5336 * tui/tui-source.c (tui_source_window_base::reset): Remove
5337 win_type parameter.
5338 * tui/tui-layout.c (make_command_window, make_source_window)
5339 (make_disasm_window, make_data_window)
5340 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5341 (reset_locator, show_source_or_disasm_and_command): Update.
5342 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5343 win_type parameter.
5344 (struct tui_source_window_base) <reset>: Likewise.
5345
1bf605de
TT
53462019-07-17 Tom Tromey <tom@tromey.com>
5347
5348 * tui/tui-layout.c (show_source_disasm_command): Use
5349 reset_locator.
5350 (reset_locator): New function.
5351 (init_and_make_win): Remove.
5352 (show_source_or_disasm_and_command): Use reset_locator.
5353
098f9ed4
TT
53542019-07-17 Tom Tromey <tom@tromey.com>
5355
5356 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5357 condition.
5358 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5359 Remove condition.
5360 * tui/tui-source.c (tui_source_window_base::reset): New method.
5361 * tui/tui-layout.c (make_command_window): Don't call
5362 init_and_make_win.
5363 (make_source_window, make_disasm_window): Don't call
5364 make_source_or_disasm_window.
5365 (make_data_window): Don't call init_and_make_win. Change calling
5366 convention.
5367 (show_source_disasm_command, show_data): Simplify.
5368 (make_source_or_disasm_window): Remove.
5369 (show_source_or_disasm_and_command): Simplify.
5370 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5371 (struct tui_source_window_base) <reset>: Likewise.
5372 <execution_info>: Remove initializer.
5373 * tui/tui-data.c (tui_source_window_base): Initialize
5374 execution_info.
5375
80110957
TT
53762019-07-17 Tom Tromey <tom@tromey.com>
5377
5378 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5379 variable.
5380
cf82af05
TT
53812019-07-17 Tom Tromey <tom@tromey.com>
5382
5383 * tui/tui.c (tui_rl_other_window): Update.
5384 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5385 superclass method first. Always iterate over regs_content.
5386 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5387 method.
5388 * tui/tui-win.c (tui_set_focus_command): Update.
5389
01aeb396
TT
53902019-07-17 Tom Tromey <tom@tromey.com>
5391
5392 * tui/tui-win.c (tui_set_focus_command): Rename from
5393 tui_set_focus. Call tui_enable.
5394 (tui_set_focus_command): Remove.
5395
fd6c75ee
TT
53962019-07-17 Tom Tromey <tom@tromey.com>
5397
5398 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5399 refresh_window.
5400 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5401 touchwin.
5402 (tui_data_window::refresh_window): Call refresh_window on data
5403 items. Always call superclass refresh_window.
5404 (tui_win_info::refresh): Remove.
5405 (tui_source_window_base::refresh_window): Update.
5406 (tui_refresh_all): Update.
5407 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5408 refresh_window.
5409 (show_source_or_disasm_and_command): Likewise.
5410 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5411 (struct tui_source_window_base) <refresh>: Likewise.
5412
f6cc34a9
TT
54132019-07-17 Tom Tromey <tom@tromey.com>
5414
5415 * tui/tui-winsource.c (tui_clear_source_content)
5416 (tui_show_source_content): Update.
5417 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5418 whether content is empty.
5419 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5420 Remove.
5421
f31ec9af
TT
54222019-07-17 Tom Tromey <tom@tromey.com>
5423
5424 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5425 window's contents.
5426 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5427 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5428
d1b6f1e5
TT
54292019-07-17 Tom Tromey <tom@tromey.com>
5430
5431 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5432 (struct tui_data_item_window): Update.
5433
d9743a13
TT
54342019-07-17 Tom Tromey <tom@tromey.com>
5435
5436 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5437 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5438 defines.
5439
caf0bc4e
TT
54402019-07-17 Tom Tromey <tom@tromey.com>
5441
5442 * tui/tui-winsource.h (tui_erase_source_content)
5443 (tui_clear_source_content): Remove "display_prompt" parameter.
5444 * tui/tui-winsource.c (tui_update_source_window_as_is)
5445 (tui_update_source_windows_with_addr): Update.
5446 (tui_clear_source_content): Remove "display_prompt" parameter.
5447 (tui_erase_source_content): Likewise. Simplify.
5448 (tui_show_source_content): Update.
5449 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5450 * tui/tui-stack.c (tui_show_frame_info): Update.
5451 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5452 Remove defines.
5453
9d391078
TT
54542019-07-17 Tom Tromey <tom@tromey.com>
5455
5456 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5457 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5458 parameter.
5459 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5460 parameter.
5461
a38da35d
TT
54622019-07-17 Tom Tromey <tom@tromey.com>
5463
5464 * tui/tui-winsource.c (tui_clear_source_content)
5465 (tui_show_source_content, tui_show_exec_info_content)
5466 (tui_clear_exec_info_content): Update.
5467 * tui/tui-stack.c (tui_show_locator_content): Update.
5468 (tui_show_frame_info): Update.
5469 * tui/tui-source.h (tui_source_window): Don't declare.
5470 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5471 from tui_source_is_displayed.
5472 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5473 Remove field.
5474 (struct tui_source_window_base) <content_in_use>: New field. Now
5475 bool.
5476 (struct tui_source_window) <showing_source_p>: New method.
5477 (TUI_SRC_WIN): Change cast.
5478 * tui/tui-data.c (tui_initialize_static_data): Update.
5479
c2cd8994
TT
54802019-07-17 Tom Tromey <tom@tromey.com>
5481
5482 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5483 location_matches_p.
5484 * tui/tui-source.c (tui_source_window::location_matches_p): New
5485 method.
5486 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5487 method.
5488 * tui/tui-data.h (struct tui_source_window_base)
5489 <location_matches_p>: New method.
5490 (struct tui_source_window, struct tui_disasm_window)
5491 <location_matches_p>: Likewise.
5492
4dde7b34
TT
54932019-07-17 Tom Tromey <tom@tromey.com>
5494
5495 * tui/tui-win.c (tui_set_win_height_command): Rename from
5496 tui_set_win_height.
5497 (tui_set_win_height_command): Remove.
5498
b73dd877
TT
54992019-07-17 Tom Tromey <tom@tromey.com>
5500
5501 * tui/tui-source.c (tui_source_window): New constructor. Add
5502 observer.
5503 (~tui_source_window): New destructor.
5504 (tui_source_window::style_changed): New method.
5505 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5506 (tui_attach_detach_observers): Update.
5507 * tui/tui-data.h (struct tui_source_window): Make constructor not
5508 inline. Add destructor.
5509 (struct tui_source_window) <style_changed>: New method.
5510 <m_observable>: New member.
5511
ae2b5380
TT
55122019-07-17 Tom Tromey <tom@tromey.com>
5513
5514 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5515 * tui/tui-win.c (tui_resize_all): Fix typo.
5516
1ce3e844
TT
55172019-07-17 Tom Tromey <tom@tromey.com>
5518
5519 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5520 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5521 (tui_refresh_all): Remove "list" parameter. Use foreach.
5522 * tui/tui-win.c (window_name_completer): Use foreach.
5523 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5524 (update_tab_width): Likewise.
5525 * tui/tui-layout.c (show_layout): Update.
5526 * tui/tui-data.h (class tui_window_iterator): New.
5527 (struct all_tui_windows): New.
5528 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5529
fe3eaf1c
TT
55302019-07-17 Tom Tromey <tom@tromey.com>
5531
5532 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5533 parameter. Don't reference globals.
5534 (tui_reg_command): Update.
5535
368c1354
TT
55362019-07-17 Tom Tromey <tom@tromey.com>
5537
5538 * tui/tui-regs.c (tui_show_registers): Simplify.
5539
e80cd204
TT
55402019-07-17 Tom Tromey <tom@tromey.com>
5541
5542 * tui/tui-regs.c (tui_show_registers): Update.
5543 (tui_show_register_group): Add win_info parameter.
5544
aca2dd16
TT
55452019-07-17 Tom Tromey <tom@tromey.com>
5546
5547 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5548 Rename from tui_display_reg_element_at_line.
5549 (tui_data_window::display_registers_from_line): Update.
5550 * tui/tui-data.h (struct tui_data_window)
5551 <display_reg_element_at_line>: New method.
5552
517e9505
TT
55532019-07-17 Tom Tromey <tom@tromey.com>
5554
5555 * tui/tui-regs.h (tui_display_registers_from)
5556 (tui_display_registers_from_line): Don't declare.
5557 * tui/tui-windata.c (tui_data_window::display_all_data)
5558 (tui_data_window::refresh_all)
5559 (tui_data_window::do_scroll_vertical): Update.
5560 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5561 from tui_display_registers_from.
5562 (tui_display_reg_element_at_line): Update.
5563 (tui_data_window::display_registers_from_line): Rename from
5564 tui_display_registers_from_line.
5565 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5566 display_registers_from_line>: New methods.
5567
f76d8b19
TT
55682019-07-17 Tom Tromey <tom@tromey.com>
5569
5570 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5571 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5572 from tui_erase_data_content.
5573 (tui_data_window::display_all_data)
5574 (tui_data_window::refresh_all)
5575 (tui_data_window::do_scroll_vertical): Update.
5576 * tui/tui-regs.c (tui_show_registers): Update.
5577 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5578 New method.
5579
b4094625
TT
55802019-07-17 Tom Tromey <tom@tromey.com>
5581
5582 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5583 declare.
5584 * tui/tui-windata.c
5585 (tui_data_window::delete_data_content_windows): Rename from
5586 tui_delete_data_content_windows.
5587 (tui_data_window::display_all_data)
5588 (tui_data_window::do_scroll_vertical): Update.
5589 * tui/tui-data.h (struct tui_data_window)
5590 <delete_data_content_windows>: New method.
5591
c223a729
TT
55922019-07-17 Tom Tromey <tom@tromey.com>
5593
5594 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5595 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5596
50daf268
TT
55972019-07-17 Tom Tromey <tom@tromey.com>
5598
5599 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5600 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5601 from tui_display_all_data.
5602 * tui/tui-win.c
5603 (tui_data_window::do_make_visible_with_new_height): Update.
5604 * tui/tui-regs.c (tui_show_registers): Update.
5605 * tui/tui-layout.c (tui_set_layout): Update.
5606 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5607 method.
5608
df5f8cab
TT
56092019-07-17 Tom Tromey <tom@tromey.com>
5610
5611 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5612 * tui/tui-windata.c (tui_display_data_from): Remove.
5613 (tui_data_window::refresh_all): Update.
5614
80cb6c27
TT
56152019-07-17 Tom Tromey <tom@tromey.com>
5616
5617 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5618 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5619 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5620 tui_display_registers_from_line.
5621 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5622 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5623 "force_display" parameter.
5624
baff0c28
TT
56252019-07-17 Tom Tromey <tom@tromey.com>
5626
5627 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5628 declare.
5629 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5630 Rename from tui_first_reg_element_no_inline.
5631 (tui_display_reg_element_at_line)
5632 (tui_display_registers_from_line): Update.
5633 * tui/tui-data.h (struct tui_data_window)
5634 <first_reg_element_no_inline>: New method.
5635
3b23c5f2
TT
56362019-07-17 Tom Tromey <tom@tromey.com>
5637
5638 * tui/tui-windata.c (tui_display_data_from)
5639 (tui_data_window::do_scroll_vertical): Update.
5640 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5641 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5642 Rename from tui_line_from_reg_element_no.
5643 (tui_display_registers_from_line): Update.
5644 * tui/tui-data.h (struct tui_data_window)
5645 <line_from_reg_element_no>: New method.
5646
0b5ec218
TT
56472019-07-17 Tom Tromey <tom@tromey.com>
5648
5649 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5650 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5651 tui_last_regs_line_no.
5652 (tui_display_reg_element_at_line)
5653 (tui_display_registers_from_line): Update.
5654 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5655 method.
5656
0807ab7b
TT
56572019-07-17 Tom Tromey <tom@tromey.com>
5658
5659 PR tui/24722:
5660 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5661 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5662 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5663 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5664 (tui_update_breakpoint_info): Likewise.
5665 * tui/tui-hooks.c (tui_event_create_breakpoint)
5666 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5667 Update.
5668
9ad7fdef
TT
56692019-07-17 Tom Tromey <tom@tromey.com>
5670
5671 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5672
5813316f
TT
56732019-07-17 Tom Tromey <tom@tromey.com>
5674
5675 * tui/tui-winsource.c (tui_update_source_window_as_is)
5676 (tui_update_source_windows_with_addr): Update.
5677 * tui/tui-source.h (tui_set_source_content)
5678 (tui_show_symtab_source): Add "win_info" parameter.
5679 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5680 parameter.
5681 (tui_show_symtab_source): Likewise.
5682
00e264e7
TT
56832019-07-17 Tom Tromey <tom@tromey.com>
5684
5685 * tui/tui-wingeneral.c
5686 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5687
06210ce4
TT
56882019-07-17 Tom Tromey <tom@tromey.com>
5689
5690 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5691 (struct tui_cmd_window) <can_scroll>: New method.
5692 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5693 method.
5694
381befee
TT
56952019-07-17 Tom Tromey <tromey@adacore.com>
5696
5697 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5698 do_field_signed>: Rename. Change type of "value".
5699 * ui-out.c (ui_out::field_signed): Rename from field_int.
5700 Change type of "value".
5701 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5702 type of "value".
5703 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5704 do_field_int. Change type of "value".
5705 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5706 do_field_int. Change type of "value".
5707 * tracepoint.c (trace_status_mi, tfind_1)
5708 (print_one_static_tracepoint_marker): Update.
5709 * thread.c (print_thread_info_1, print_selected_thread_frame):
5710 Update.
5711 * stack.c (print_frame, print_frame_info): Update.
5712 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5713 Update.
5714 * source.c (print_source_lines_base): Update.
5715 * skip.c (info_skip_command): Update.
5716 * record-btrace.c (btrace_ui_out_decode_error)
5717 (btrace_call_history_src_line): Update.
5718 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5719 Update.
5720 * progspace.c (print_program_space): Update.
5721 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5722 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5723 do_field_int. Change type of "value".
5724 * mi/mi-out.c (mi_ui_out::do_table_begin)
5725 (mi_ui_out::do_table_header): Update.
5726 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5727 type of "value".
5728 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5729 (mi_cmd_data_list_changed_registers, output_register)
5730 (mi_cmd_data_read_memory, mi_load_progress)
5731 (mi_cmd_trace_frame_collected): Update.
5732 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5733 Update.
5734 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5735 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5736 (mi_cmd_var_list_children, varobj_update_one): Update.
5737 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5738 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5739 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5740 * inferior.c (print_inferior): Update.
5741 * gdb_bfd.c (print_one_bfd): Update.
5742 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5743 Update.
5744 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5745 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5746 do_field_int. Change type of "value".
5747 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5748 do_field_int. Change type of "value".
5749 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5750 (print_one_breakpoint_location, print_it_catch_fork)
5751 (print_one_catch_fork, print_it_catch_vfork)
5752 (print_one_catch_vfork, print_it_catch_solib)
5753 (print_it_catch_exec, print_it_ranged_breakpoint)
5754 (print_mention_watchpoint, print_mention_masked_watchpoint)
5755 (bkpt_print_it, update_static_tracepoint): Update.
5756 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5757 * break-catch-syscall.c (print_it_catch_syscall): Update.
5758 * ada-tasks.c (print_ada_task_info): Update.
5759 * ada-lang.c (print_it_exception, print_mention_exception):
5760 Update.
5761
6b78c3f8
AB
57622019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5763
5764 PR breakpoints/24541
5765 * gdbarch.c: Regenerate.
5766 * gdbarch.h: Regenerate.
5767 * gdbarch.sh: Adjust return type and parameter types for
5768 'stap_adjust_register'.
5769 (i386_stap_adjust_register): Adjust signature and return new
5770 register name.
5771 * stap-probe.c (stap_parse_register_operand): Adjust use of
5772 'gdbarch_stap_adjust_register'.
5773
d72a9b85
TT
57742019-07-17 Tom Tromey <tromey@adacore.com>
5775
5776 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5777 declare VEC.
5778 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5779 std::vector.
5780 (struct s390_process_info): Add initializers.
5781 (s390_add_process): Use new.
5782 (s390_linux_nat_target::low_forget_process): Use delete.
5783 (s390_linux_nat_target::low_new_fork)
5784 (s390_linux_nat_target::stopped_by_watchpoint)
5785 (s390_linux_nat_target::low_prepare_to_resume)
5786 (s390_linux_nat_target::insert_watchpoint)
5787 (s390_linux_nat_target::insert_hw_breakpoint)
5788 (s390_linux_nat_target::remove_watchpoint)
5789 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5790
206e6c58
JB
57912019-07-16 John Baldwin <jhb@FreeBSD.org>
5792
5793 * aarch64-fbsd-nat.c: Include regcache.h.
5794 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5795 argument.
5796 (aarch64_fbsd_nat_target::fetch_registers)
5797 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5798 variable.
5799 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5800
cbde90f2
JB
58012019-07-16 John Baldwin <jhb@FreeBSD.org>
5802
5803 * fbsd-nat.c: Include gdbarch.h.
5804
07128006
TT
58052019-07-15 Tom Tromey <tromey@adacore.com>
5806
5807 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5808
1f77b012
TT
58092019-07-15 Tom Tromey <tromey@adacore.com>
5810
5811 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5812 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5813 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5814 * cli-out.c (cli_ui_out::do_field_int): New method.
5815 * ui-out.c (ui_out::field_unsigned): New method.
5816 * symfile.c (generic_load): Use field_unsigned.
5817 (print_transfer_performance): Likewise.
5818 * record-btrace.c (ui_out_field_uint): Remove.
5819 (btrace_call_history_insn_range, btrace_call_history): Use
5820 field_unsigned.
5821 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5822 field_unsigned.
5823 * ui-out.h (class ui_out) <field_unsigned>: New method.
5824 <do_field_unsigned>: Likewise.
5825
33eca680
TT
58262019-07-15 Tom Tromey <tromey@adacore.com>
5827
5828 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5829 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5830 * target.c (flash_erase_command): Use field_string.
5831 * infrun.c (print_signal_received_reason): Use field_string.
5832 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5833 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5834 field_string.
5835 * ada-tasks.c (print_ada_task_info): Use field_string.
5836
ca8d69be
TT
58372019-07-15 Tom Tromey <tromey@adacore.com>
5838
5839 * target.c (flash_erase_command): Use field_core_addr.
5840 * symfile.c (generic_load): Use field_core_addr.
5841 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5842 Use field_core_addr.
5843 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5844 field_core_addr.
5845
0d4e84ed
AB
58462019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5847
5848 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5849 value if its desired type is smaller than a CORE_ADDR and signed.
5850
9a49df9d
AB
58512019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5852
5853 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5854 of changes to field names, and use new is_reference field to
5855 decide if a property is a reference or not.
5856 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5857 field.
5858 (struct dwarf2_property_baton): Update header comment, rename
5859 'referenced_type' to 'property_type' and update comments.
5860 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5861 default property type, store in property baton, update to take
5862 accound of renamed field.
5863 (read_func_scope): Update call to attr_to_dynamic_prop.
5864 (read_array_type): Likewise.
5865 (dwarf2_per_cu_addr_sized_int_type): New function.
5866 (read_subrange_index_type): Move type finding code to
5867 dwarf2_per_cu_addr_sized_int_type.
5868 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5869 (dwarf2_per_cu_addr_type): New function.
5870 (set_die_type): Update calls to attr_to_dynamic_prop.
5871
b86352cf
AB
58722019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5873
5874 * dwarf2read.c (read_subrange_index_type): New function.
5875 (read_subrange_type): Move code into new function and call it.
5876 * gdbtypes.c (create_range_type): Add some asserts.
5877
603490bf
AB
58782019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5879
5880 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5881 update return statements.
5882 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5883 declaration, and update comment to match.
5884 * gdbtypes.c (resolve_dynamic_array): Update call to
5885 dwarf2_evaluate_property to match new return type.
5886
592f9d27
AB
58872019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5888
5889 * valarith.c (value_subscripted_rvalue): Change lowerbound
5890 parameter type from int to LONGEST.
5891 * value.h (value_subscripted_rvalue): Likewise in declaration.
5892
60cfcb20
AB
58932019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5894
5895 * cli/cli-utils.c (info_print_command_completer): New function.
5896 * cli/cli-utils.h: Add 'completer.h' include, and forward
5897 declaration for 'struct cmd_list_element'.
5898 (info_print_command_completer): Declare.
5899 * stack.c (_initialize_stack): Add completer for 'info locals' and
5900 'info args'.
5901 * symtab.c (_initialize_symtab): Add completer for 'info
5902 variables' and 'info functions'.
5903 * NEWS: Mention completion for additional info commands.
5904
b16507e0
AB
59052019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5906
5907 * cli/cli-utils.c (extract_info_print_args): Delete.
5908 (extract_arg_maybe_quoted): Delete.
5909 (info_print_options_defs): New variable.
5910 (make_info_print_options_def_group): New function.
5911 (extract_info_print_options): Define new function.
5912 * cli/cli-utils.h (extract_info_print_args): Delete.
5913 (struct info_print_options): New structure.
5914 (extract_info_print_options): Declare new function.
5915 * stack.c (info_locals_command): Update to use new
5916 extract_info_print_options, also add a header comment.
5917 (info_args_command): Likewise.
5918 * symtab.c (info_variables_command): Likewise.
5919 (info_functions_command): Likewise.
5920
021d8588
AB
59212019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5922
5923 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5924 to extract string arguments.
5925 * common/common-utils.c (extract_string_maybe_quoted): New function.
5926 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5927
b777eb6d
TT
59282019-07-11 Tom Tromey <tromey@adacore.com>
5929
5930 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5931 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5932 * top.h (gdbinit): Don't declare.
5933 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5934 into...
5935 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5936 * top.c (gdb_init): Don't call init_cli_cmds.
5937 (gdbinit): Remove.
5938 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5939
72ee03ff
TT
59402019-07-11 Tom Tromey <tromey@adacore.com>
5941
5942 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5943 after it has been moved.
5944
00db9531
SM
59452019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5946
5947 * valops.c (value_must_coerce_to_target): Change return type to
5948 bool.
5949 * value.h (value_must_coerce_to_target): Likewise.
5950
f2478a7e
SM
59512019-07-10 Simon Marchi <simon.marchi@efficios.com>
5952
5953 * breakpoint.c (is_hardware_watchpoint): Remove
5954 forward-declaration.
5955 (is_masked_watchpoint): Change return type to bool.
5956 (is_tracepoint): Likewise.
5957 (is_breakpoint): Likewise.
5958 (is_hardware_watchpoint): Likewise.
5959 (is_watchpoint): Likewise.
5960 (is_no_memory_software_watchpoint): Likewise.
5961 (is_catchpoint): Likewise.
5962 (breakpoint_1): Make FILTER parameter's return type bool.
5963 is_masked_watchpoint): Change return type to bool.
5964 (save_breakpoints): Make FILTER parameter's return type bool.
5965 * breakpoint.h (is_breakpoint): Change return type to bool.
5966 (is_watchpoint): Likewise.
5967 (is_catchpoint): Likewise.
5968 (is_tracepoint): Likewise.
5969
0d12e84c
TT
59702019-07-10 Tom Tromey <tom@tromey.com>
5971
5972 * defs.h: Don't include gdbarch.h.
5973 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5974 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5975 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5976 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5977 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5978 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5979 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5980 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5981 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5982 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5983 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5984 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5985 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5986 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5987 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5988 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5989 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5990 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5991 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5992 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5993 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5994 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5995 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5996 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5997 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5998 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5999 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6000
f06f1252
TT
60012019-07-10 Tom Tromey <tromey@adacore.com>
6002
6003 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6004 * breakpoint.c (init_ada_exception_breakpoint): Register as
6005 bp_catchpoint.
6006 (print_one_breakpoint_location, print_one_breakpoint): Use
6007 is_ada_exception_catchpoint.
6008 * ada-lang.c (class ada_catchpoint_location): Pass
6009 bp_loc_software_breakpoint to bp_location constructor.
6010 (is_ada_exception_catchpoint): New function.
6011
7a5d944b
TT
60122019-07-10 Tom Tromey <tromey@adacore.com>
6013
6014 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6015 VEC.
6016 (struct arm_exidx_entry): New method operator<.
6017 (struct arm_exidx_data) <section_maps>: Change type.
6018 (arm_exidx_data_free): Remove.
6019 (arm_exidx_data_key): Change type. Move lower.
6020 (arm_exidx_new_objfile): Update.
6021 (arm_compare_exidx_entries): Remove.
6022 (arm_find_exidx_entry, _initialize_arm_tdep)
6023
48c66e1d
TT
60242019-07-10 Tom Tromey <tromey@adacore.com>
6025
6026 * solib-spu.c (ocl_program_data_key): Change type.
6027 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6028 Update.
6029
a269fbf1
TT
60302019-07-10 Tom Tromey <tromey@adacore.com>
6031
6032 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6033 (struct solib_aix_inferior_data) <library_list>: Change type.
6034 (solib_aix_inferior_data_handle): Change type.
6035 (get_solib_aix_inferior_data): Update.
6036 (solib_aix_free_library_list): Remove.
6037 (library_list_start_library): Update.
6038 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6039 return type.
6040 (solib_aix_get_library_list)
6041 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6042 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6043
c294730c
TT
60442019-07-10 Tom Tromey <tromey@adacore.com>
6045
6046 * solib-dsbt.c (struct dsbt_info): Add initializers.
6047 (solib_dsbt_pspace_data): Change type.
6048 (dsbt_pspace_data_cleanup): Remove.
6049 (get_dsbt_info, _initialize_dsbt_solib): Update.
6050
9d52077d
TT
60512019-07-10 Tom Tromey <tromey@adacore.com>
6052
6053 * spu-tdep.c (spu_overlay_data): Change type.
6054 (spu_get_overlay_table, spu_overlay_new_objfile)
6055 (_initialize_spu_tdep): Update.
6056
22a20dca
TT
60572019-07-10 Tom Tromey <tromey@adacore.com>
6058
6059 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6060 destructor.
6061 (dbx_objfile_data_key): Change type and declare later.
6062 (DBX_SYMFILE_INFO): Rewrite.
6063 * dbxread.c (dbx_objfile_data_key): Change type.
6064 (dbx_symfile_init): Update.
6065 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6066 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6067 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6068
cb60f420
TT
60692019-07-10 Tom Tromey <tromey@adacore.com>
6070
6071 * jit.c (jit_program_space_key): Change type. Move lower.
6072 (get_jit_program_space_data): Update.
6073 (jit_program_space_data_cleanup): Remove.
6074 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6075 Update.
6076 (struct jit_program_space_data): Add initializers.
6077
51df2ae3
TT
60782019-07-10 Tom Tromey <tromey@adacore.com>
6079
6080 * solib-darwin.c (struct darwin_info): Add initializers.
6081 (solib_darwin_pspace_data): Change type.
6082 (darwin_pspace_data_cleanup): Remove.
6083 (get_darwin_info, _initialize_darwin_solib): Update.
6084
18101a35
TT
60852019-07-10 Tom Tromey <tromey@adacore.com>
6086
6087 * remote-sim.c (struct sim_inferior_data): Add initializers,
6088 constructor, and destructor.
6089 (sim_inferior_data_key): Change type. Move lower.
6090 (check_for_duplicate_sim_descriptor): Update.
6091 (get_sim_inferior_data): Use new. Update.
6092 (~sim_inferior_data_cleanup): Rename from
6093 sim_inferior_data_cleanup. Simplify.
6094 (gdbsim_close_inferior, simulator_command)
6095 (sim_command_completer, _initialize_remote_sim): Update.
6096 (next_pid, INITIAL_PID): Move earlier.
6097
05b08ac1
TT
60982019-07-10 Tom Tromey <tromey@adacore.com>
6099
6100 * python/python-internal.h (create_thread_object): Return
6101 gdbpy_ref.
6102 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6103 * python/py-inferior.c (struct threadlist_entry): Add
6104 constructor.
6105 <thread_obj>: Now a gdbpy_ref.
6106 (thread_to_thread_object): Update.
6107 (add_thread_object): Use new.
6108 (delete_thread_object): Use delete.
6109 (infpy_threads): Update.
6110 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6111 GIL.
6112
32372d80
TT
61132019-07-10 Tom Tromey <tromey@adacore.com>
6114
6115 * valops.c (value_cast): Specialize error message for Ada.
6116
5c458ae8
SM
61172019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6118
6119 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6120
4c462cb0
SM
61212019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6122
6123 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6124 bpstat_should_step): Return bool, adjust comments.
6125 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6126 bpstat_should_step): Likewise.
6127
89abbcc2
AH
61282019-07-10 Alan Hayward <alan.hayward@arm.com>
6129
6130 * features/Makefile: Use feature target descriptions for Arm.
6131 * features/arm/arm-core.c: Generate new file.
6132 * features/arm/arm-fpa.c: Likewise.
6133 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6134 * features/arm/arm-m-profile.c: Likewise.
6135 * features/arm/arm-vfpv2.c: Likewise.
6136 * features/arm/arm-vfpv3.c: Likewise.
6137 * features/arm/xscale-iwmmxt.c: Likewise.
6138 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6139
166a82be
AH
61402019-07-10 Alan Hayward <alan.hayward@arm.com>
6141
6142 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6143 ptrace earlier.
6144
9fb4c7e9
AH
61452019-07-10 Alan Hayward <alan.hayward@arm.com>
6146
6147 * features/aarch64-pauth.c: Regenerate.
6148
e2d0f980
SM
61492019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6150
6151 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6152 bool.
6153 (bpstat_what): Use false instead of 0.
6154
a38118e5
PA
61552019-07-09 Pedro Alves <palves@redhat.com>
6156
6157 * break-catch-throw.c (is_exception_catchpoint): New.
6158 * breakpoint.c (print_one_breakpoint_location): New parameter
6159 'raw_loc'. Handle it. Use
6160 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6161 looking at the breakpoint's type.
6162 (print_one_breakpoint): If handling "maint info breakpoints", also
6163 print locations of exception catchpoints.
6164 * breakpoint.h (is_exception_catchpoint): Declare.
6165
cb1e4e32
PA
61662019-07-09 Pedro Alves <palves@redhat.com>
6167
6168 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6169 "addr" field.
6170 (allocate_location_exception_catchpoint): New.
6171 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6172 (initialize_throw_catchpoint_ops): Install
6173 allocate_location_exception_catchpoint as allocate_location
6174 method.
6175 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6176 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6177 bp_loc_other.
6178 (breakpoint_address_is_meaningful): Delete.
6179 (bl_address_is_meaningful): New.
6180 (breakpoint_locations_match): Adjust comment.
6181 (bp_location_from_bp_type): New, factored out of...
6182 (bp_location::bp_location(breakpoint *)): ... this.
6183 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6184 factored out of...
6185 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6186 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6187 breakpoint_address_is_meaningful.
6188 (bp_locations_compare): Adjust comment.
6189 (update_global_location_list): Use bl_address_is_meaningful
6190 instead of breakpoint_address_is_meaningful.
6191 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6192 explicit.
6193 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6194 * python/py-breakpoint.c (bppy_get_location): No longer check
6195 whether location is null.
6196
b58a68fe
PA
61972019-07-09 Pedro Alves <palves@redhat.com>
6198
6199 PR c++/15468
6200 * breakpoint.c (print_one_breakpoint_location): Remove
6201 single-location assert.
6202
268a13a5
TT
62032019-07-09 Tom Tromey <tom@tromey.com>
6204
6205 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6206 * configure: Rebuild.
6207 * configure.ac: Change common to gdbsupport.
6208 * gdbsupport: Rename from common.
6209 * acinclude.m4: Change common to gdbsupport.
6210 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6211 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6212 gdbsupport.
6213 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6214 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6215 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6216 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6217 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6218 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6219 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6220 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6221 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6222 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6223 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6224 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6225 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6226 coff-pe-read.c, command.h, compile/compile-c-support.c,
6227 compile/compile-c.h, compile/compile-cplus-symbols.c,
6228 compile/compile-cplus-types.c, compile/compile-cplus.h,
6229 compile/compile-loc2c.c, compile/compile.c, completer.c,
6230 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6231 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6232 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6233 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6234 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6235 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6236 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6237 features/aarch64-core.c, features/aarch64-fpu.c,
6238 features/aarch64-pauth.c, features/aarch64-sve.c,
6239 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6240 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6241 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6242 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6243 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6244 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6245 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6246 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6247 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6248 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6249 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6250 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6251 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6252 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6253 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6254 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6255 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6256 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6257 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6258 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6259 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6260 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6261 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6262 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6263 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6264 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6265 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6266 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6267 minsyms.c, mips-linux-tdep.c, namespace.h,
6268 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6269 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6270 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6271 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6272 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6273 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6274 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6275 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6276 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6277 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6278 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6279 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6280 procfs.c, producer.c, progspace.h, psymtab.h,
6281 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6282 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6283 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6284 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6285 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6286 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6287 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6288 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6289 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6290 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6291 target-memory.c, target.c, target.h, target/waitstatus.c,
6292 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6293 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6294 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6295 unittests/array-view-selftests.c,
6296 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6297 unittests/common-utils-selftests.c,
6298 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6299 unittests/format_pieces-selftests.c,
6300 unittests/function-view-selftests.c,
6301 unittests/lookup_name_info-selftests.c,
6302 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6303 unittests/mkdir-recursive-selftests.c,
6304 unittests/observable-selftests.c,
6305 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6306 unittests/parse-connection-spec-selftests.c,
6307 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6308 unittests/scoped_fd-selftests.c,
6309 unittests/scoped_mmap-selftests.c,
6310 unittests/scoped_restore-selftests.c,
6311 unittests/string_view-selftests.c, unittests/style-selftests.c,
6312 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6313 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6314 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6315 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6316 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6317 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6318
5b0e2db4
AB
63192019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6320
6321 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6322 bool value.
6323 (decode_digits_ordinary): Set explicit_line field in sal.
6324 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6325 symtab_and_line that was set on an explicit line number in
6326 assembler code. Do always update the recorded symtab and line if
6327 we do skip the prologue.
6328
0ba852ab
AB
63292019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6330
6331 * breakpoint.c (set_breakpoint_location_function): Remove
6332 explicit_loc parameter.
6333 (momentary_breakpoint_from_master): Update call to
6334 set_breakpoint_location_function.
6335 (add_location_to_breakpoint): Likewise.
6336
b3a7d171
AB
63372019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6338
6339 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6340 required features based on default bfd type when no specific bfd
6341 is present.
6342
1f6f6e21
PW
63432019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6344
6345 * NEWS: Mention that GDB printf and eval commands can now print
6346 C-style and Ada-style convenience var strings without
6347 calling the inferior.
6348 * printcmd.c (printf_c_string): Locally print GDB internal var
6349 instead of transiting via the inferior.
6350 (printf_wide_c_string): Likewise.
6351
63522019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 6353
5862c886 6354 PR breakpoints/25011
ea142fbf
AH
6355 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6356
0598af48
TT
63572019-07-04 Tom Tromey <tom@tromey.com>
6358
6359 PR tui/24724:
6360 * tui/tui-winsource.c (tui_clear_source_content): Update.
6361 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6362 (tui_update_breakpoint_info): Update.
6363 (tui_set_exec_info_content): Update.
6364 * tui/tui-source.c (tui_set_source_content_nil): Update.
6365 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6366 has_break.
6367 * tui/tui-data.h (enum tui_bp_flag): New.
6368 (tui_bp_flags): New enum flags type.
6369 (struct tui_source_element) <break_mode>: Change type. Rename
6370 from has_break.
6371 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6372 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6373 constants.
6374 * tui/tui-winsource.h: Fix comment.
6375
350fab54
AH
63762019-07-04 Alan Hayward <alan.hayward@arm.com>
6377
6378 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6379 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6380 (store_fpregs_to_thread)
6381 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6382 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6383 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6384 (IWMMXT_REGS_SIZE): Add define.
6385 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6386 (fetch_vfp_regs, store_vfp_regs)
6387 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6388 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6389
f0452268
AH
63902019-07-04 Alan Hayward <alan.hayward@arm.com>
6391
6392 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6393 defines.
6394 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6395 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6396 (ARM_INT_REGISTER_SIZE): ...to this.
6397 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6398 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6399 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6400 (arm_linux_collect_gregset, supply_nwfpe_register)
6401 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6402 defines.
6403 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6404 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6405 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6406 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6407 (arm_return_in_memory, arm_store_return_value)
6408 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6409 (arm_record_ld_st_multiple): Likewise.
6410 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6411 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6412
e935475c
AH
64132019-07-04 Alan Hayward <alan.hayward@arm.com>
6414
6415 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6416 AARCH64_DISPLACED_MODIFIED_INSNS.
6417 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6418 (aarch64_displaced_step_copy_insn): Likewise.
6419 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6420 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6421 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6422 ARM_DISPLACED_MODIFIED_INSNS.
6423 * arm-tdep.c (arm_gdbarch_init): Likewise.
6424 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6425 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6426 (struct arm_displaced_step_closure): Use
6427 ARM_DISPLACED_MODIFIED_INSNS.
6428
df0bb381
AH
64292019-07-04 Alan Hayward <alan.hayward@arm.com>
6430
6431 * features/Makefile: Remove unused xml files.
6432 * features/aarch64.xml: Remove.
6433 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6434 * features/i386/amd64-avx-avx512.xml: Remove.
6435 * features/i386/amd64-avx-linux.xml: Remove.
6436 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6437 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6438 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6439 * features/i386/amd64-avx-mpx.xml: Remove.
6440 * features/i386/amd64-avx.xml: Remove.
6441 * features/i386/amd64-linux.xml: Remove.
6442 * features/i386/amd64-mpx-linux.xml: Remove.
6443 * features/i386/amd64-mpx.xml: Remove.
6444 * features/i386/amd64.xml: Remove.
6445 * features/i386/i386-avx-avx512-linux.xml: Remove.
6446 * features/i386/i386-avx-avx512.xml: Remove.
6447 * features/i386/i386-avx-linux.xml: Remove.
6448 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6449 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6450 * features/i386/i386-avx-mpx-linux.xml: Remove.
6451 * features/i386/i386-avx-mpx.xml: Remove.
6452 * features/i386/i386-avx.xml: Remove.
6453 * features/i386/i386-linux.xml: Remove.
6454 * features/i386/i386-mmx-linux.xml: Remove.
6455 * features/i386/i386-mmx.xml: Remove.
6456 * features/i386/i386-mpx-linux.xml: Remove.
6457 * features/i386/i386-mpx.xml: Remove.
6458 * features/i386/i386.xml: Remove.
6459 * features/i386/x32-avx-avx512-linux.xml: Remove.
6460 * features/i386/x32-avx-linux.xml: Remove.
6461 * features/i386/x32-linux.xml: Remove.
6462
edd6266a
AH
64632019-07-04 Alan Hayward <alan.hayward@arm.com>
6464
6465 * regformats/aarch64.dat: Remove.
6466 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6467 * regformats/i386/amd64-avx-linux.dat: Remove.
6468 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6469 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6470 * regformats/i386/amd64-linux.dat: Remove.
6471 * regformats/i386/amd64-mpx-linux.dat: Remove.
6472 * regformats/i386/amd64.dat: Remove.
6473 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6474 * regformats/i386/i386-avx-linux.dat: Remove.
6475 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6476 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6477 * regformats/i386/i386-linux.dat: Remove.
6478 * regformats/i386/i386-mmx-linux.dat: Remove.
6479 * regformats/i386/i386-mpx-linux.dat: Remove.
6480 * regformats/i386/i386.dat: Remove.
6481 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6482 * regformats/i386/x32-avx-linux.dat: Remove.
6483 * regformats/i386/x32-linux.dat: Remove.
6484
2b40fda7
AH
64852019-07-04 Alan Hayward <alan.hayward@arm.com>
6486
6487 * aarch64-tdep.c: Remove xml self tests.
6488 * amd64-linux-tdep.c: Likewise.
6489 * amd64-tdep.c: Likewise.
6490 * i386-linux-tdep.c: Likewise.
6491 * i386-tdep.c: Likewise.
6492
5f4ba3e7
PA
64932019-07-03 Pedro Alves <palves@redhat.com>
6494
6495 PR cli/24732
6496 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6497 (pipe_cmd_option_defs): New.
6498 (make_pipe_cmd_options_def_group): New.
6499 (pipe_command): Use gdb::option::process_options.
6500 (pipe_command_completer): New function.
6501 (_initialize_cli_cmds): Install completer for "pipe" command.
6502
3d9be6f5
PA
65032019-07-03 Pedro Alves <palves@redhat.com>
6504
6505 * cli/cli-option.c (union option_value) <string>: New field.
6506 (struct option_def_and_value): Add ctor, move ctor, dtor and
6507 use DISABLE_COPY_AND_ASSIGN.
6508 (option_def_and_value::clear_value): New.
6509 (parse_option, save_option_value_in_ctx, get_val_type_str)
6510 (add_setshow_cmds_for_options): Handle var_string.
6511 * cli-option.h (union option_def::var_address) <string>: New
6512 field.
6513 (struct string_option_def): New.
6514 * maint-test-options.c (struct test_options_opts): Add default
6515 ctor and use DISABLE_COPY_AND_ASSIGN.
6516 <string_opt>: New field.
6517 (test_options_opts::~test_options_opts): New.
6518 (test_options_opts::dump): Also dump "-string".
6519 (test_options_option_defs): Install "string.
6520
41fc454c
PA
65212019-07-03 Pedro Alves <palves@redhat.com>
6522
6523 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6524 option_value with a null enumeration.
6525 (complete_options): Save the option values in the context.
6526 (save_option_value_in_ctx): New, factored out from ...
6527 (process_options): ... here.
6528 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6529 of the function.
6530 * maint-test-options.c (test_options_opts::dump): New, factored
6531 out from ...
6532 (maintenance_test_options_command_mode): ... here.
6533 (maintenance_test_options_command_completion_result): Delete.
6534 (maintenance_test_options_command_completion_text): Update
6535 comment.
6536 (maintenance_show_test_options_completion_result): Change
6537 prototype. Just print
6538 maintenance_test_options_command_completion_text.
6539 (save_completion_result): New.
6540 (maintenance_test_options_completer_mode): Pass options context to
6541 complete_options, and then save a dump.
6542 (_initialize_maint_test_options): Use add_cmd to install "maint
6543 show test-options-completion-result".
6544
fdbc9870
PA
65452019-07-03 Pedro Alves <palves@redhat.com>
6546
6547 * NEWS (New commands): Mention "with" and "maint with".
6548 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6549 (with_command, with_command_completer): New.
6550 (pipe_command): Adjust to new repeat_previous
6551 interface.
6552 (_initialize_cli_cmds): Install the "with" command and its "w"
6553 alias.
6554 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6555 declarations.
6556 * cli/cli-setshow.c (parse_cli_var_uinteger)
6557 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6558 argument strings for all var_types.
6559 (get_setshow_command_value_string): New, factored out from ...
6560 (do_show_command): ... this.
6561 * cli/cli-setshow.h: Include <string>.
6562 (get_setshow_command_value_string): Declare.
6563 * command.h (repeat_previous): Now returns const char *. Adjust
6564 comment.
6565 * maint.c: Include "cli/cli-cmds.h".
6566 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6567 (_initialize_maint_cmds): Register the "maintenance with" command.
6568 * top.c (repeat_previous): Move bits from pipe_command here:
6569 Return the saved command line, if any; error out if there's no
6570 command to relaunch.
6571
c6ac8931
PA
65722019-07-03 Pedro Alves <palves@redhat.com>
6573
6574 * NEWS (New commands): Mention "maint set/show test-settings"
6575 instead of "maint test-settings".
6576 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6577 (maintenance_test_settings_set_list): Rename to ...
6578 (maintenance_set_test_settings_list): ... this.
6579 (maintenance_test_settings_show_list): Rename to ...
6580 (maintenance_show_test_settings_list): ... this.
6581 (maintenance_test_settings_cmd): Delete.
6582 (maintenance_test_settings_set_cmd): ...
6583 (maintenance_set_test_settings_cmd): ... this.
6584 (maintenance_test_settings_show_cmd): ...
6585 (maintenance_show_test_settings_cmd): ... this.
6586 (maintenance_test_settings_show_value_cmd):
6587 (maintenance_show_test_settings_value_cmd): ... this.
6588 (_initialize_maint_test_settings): No longer install the "maint
6589 test-settings" prefix command. Rename "maint test-settings set"
6590 to "maint set test-settings", and "maint test-settings show" to
6591 "maint show test-settings". Adjust all subcommands.
6592
d1fcf2fd
PA
65932019-07-03 Pedro Alves <palves@redhat.com>
6594
6595 * maint-test-settings.c: Fix file's intro comment. Replace all
6596 references to "test-options" with references to "test-settings",
6597 in comments.
6598
970f9d09
PA
65992019-07-03 Pedro Alves <palves@redhat.com>
6600
6601 * maint-test-settings.c (maintenance_test_settings_xxx)
6602 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6603 New.
6604 (maintenance_test_settings_enums): Use them.
6605 (maintenance_test_settings_enum): Default to
6606 maintenance_test_settings_xxx.
6607 (_initialize_maint_test_settings): Initialize
6608 MAINTENANCE_TEST_SETTINGS_FILENAME.
6609
f3869b1a
SM
66102019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6611
6612 * breakpoint.h (remove_breakpoints_inf): Change return type to
6613 void, move function documentation here.
6614 * breakpoint.c (remove_breakpoints_inf): Change return type to
6615 void, move function documentation to header.
6616
54d66006
PA
66172019-07-02 Pedro Alves <palves@redhat.com>
6618
6619 * NEWS (Completion improvements): Mention "info threads".
6620 * thread.c (struct info_threads_opts, info_threads_option_defs)
6621 (make_info_threads_options_def_group): New.
6622 (info_threads_command): Use gdb::option::process_options.
6623 (info_threads_command_completer): New.
6624 (_initialize_thread): Use gdb::option::build_help to build the
6625 help text for "info threads".
6626
854f6088
SM
66272019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6628
6629 * defs.h (generic_load): Move from here...
6630 * symfile.h (generic_load): ... to here. Rename name parameter
6631 to args.
6632 * symfile.c (generic_load): Add comment.
6633
54ee4252
TT
66342019-07-01 Tom Tromey <tromey@adacore.com>
6635
6636 * dwarf2read.c
6637 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6638 declaration of without_params. Fix formatting.
6639
65392b3e
TT
66402019-07-01 Tom Tromey <tromey@adacore.com>
6641
6642 * ada-exp.y (find_primitive_type): Update.
6643 * ada-lang.h (ada_lookup_symbol): Update.
6644 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6645 parameter.
6646 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6647
7d7571f0
SDJ
66482019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6649
6650 PR breakpoints/24541
6651 * gdbarch.c: Regenerate.
6652 * gdbarch.h: Regenerate.
6653 * gdbarch.sh: Add 'stap_adjust_register'.
6654 * i386-tdep.c: Include '<unordered_set>'.
6655 (i386_stap_adjust_register): New function.
6656 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6657 * stap-probe.c (stap_parse_register_operand): Call
6658 'gdbarch_stap_adjust_register'.
6659
5af5392a
SDJ
66602019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6661
6662 PR python/24742
6663 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6664 * python/python.c (do_start_initialization): Use 'xmalloc'
6665 instead of 'PyMem_Malloc'.
6666
10d06d82
TT
66672019-06-28 Tom Tromey <tromey@adacore.com>
6668
6669 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6670 for Ada.
6671
1b7f24cd
TT
66722019-06-27 Tom Tromey <tromey@adacore.com>
6673
6674 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6675 objfile_key.
6676 (arm_find_mapping_symbol, arm_record_special_symbol)
6677 (_initialize_arm_tdep): Update.
6678 (arm_objfile_data_free): Remove.
6679
3d507ff2
TT
66802019-06-27 Tom Tromey <tromey@adacore.com>
6681
6682 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6683 to cp_print_static_field.
6684
762c164d
TT
66852019-06-26 Tom Tromey <tromey@adacore.com>
6686
6687 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6688 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6689 declare.
6690
aa2f9bcf
AH
66912019-06-26 Alan Hayward <alan.hayward@arm.com>
6692
6693 * features/aarch64-core.c (create_feature_aarch64_core):
6694 Regenerate.
6695 * features/aarch64-core.xml: Add cpsr flags.
6696
3426ae57
AH
66972019-06-26 Alan Hayward <alan.hayward@arm.com>
6698
6699 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6700 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6701
4838e44c
SM
67022019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6703
6704 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6705 field.
6706 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6707 use.
6708 (arm_record_special_symbol): Don't insert new symbol in sorted
6709 position, push it at the end.
6710
54cc7474
SM
67112019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6712
6713 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6714 (arm_mapping_symbol_s): Remove.
6715 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6716 (arm_mapping_symbol_vec): New typedef.
6717 (struct arm_per_objfile): Add constructor.
6718 <section_maps>: Change type to
6719 std::unique_ptr<arm_mapping_symbol_vec[]>.
6720 (arm_compare_mapping_symbols): Remove.
6721 (arm_find_mapping_symbol): Adjust to section_maps type change.
6722 (arm_objfile_data_free): Call delete on arm_per_objfile.
6723 (arm_record_special_symbol): Adjust to section_maps type change.
6724 Allocate arm_per_objfile with new.
6725
b65b566c
PW
67262019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6727
6728 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6729 with the command prefix.
6730
c2fc64f5
TT
67312019-06-25 Tom Tromey <tom@tromey.com>
6732
6733 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6734 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6735
fb54fa76
TT
67362019-06-25 Tom Tromey <tom@tromey.com>
6737
6738 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6739 type.
6740 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6741 protected.
6742
f7952c57
TT
67432019-06-25 Tom Tromey <tom@tromey.com>
6744
6745 * tui/tui-winsource.c
6746 (tui_source_window_base::set_is_exec_point_at): Add check against
6747 LOA_ADDRESS.
6748
17568d78
TT
67492019-06-25 Tom Tromey <tom@tromey.com>
6750
6751 * tui/tui-source.c (tui_set_source_content): Don't check before
6752 xfree.
6753 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6754
53e7cdba
TT
67552019-06-25 Tom Tromey <tom@tromey.com>
6756
6757 * tui/tui-winsource.h (tui_update_source_window_as_is)
6758 (tui_alloc_source_buffer, tui_line_is_displayed)
6759 (tui_addr_is_displayed): Change type of win_info.
6760 * tui/tui-winsource.c (tui_update_source_window_as_is)
6761 (tui_clear_source_content, tui_show_source_line)
6762 (tui_show_source_content, tui_source_window_base::refill)
6763 (tui_source_window_base::set_is_exec_point_at)
6764 (tui_source_window_base::set_is_exec_point_at)
6765 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6766 (tui_alloc_source_buffer, tui_line_is_displayed)
6767 (tui_addr_is_displayed): Change type of win_info. Update.
6768 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6769 (tui_source_window_base::do_make_visible_with_new_height):
6770 Update.
6771 * tui/tui-source.c (tui_set_source_content)
6772 (tui_set_source_content_nil)
6773 (tui_source_window::do_scroll_vertical): Update.
6774 * tui/tui-layout.c (show_layout): Update.
6775 * tui/tui-disasm.c (tui_set_disassem_content)
6776 (tui_disasm_window::do_scroll_vertical): Update.
6777 * tui/tui-data.h (tui_win_content): Remove.
6778 (struct tui_gen_win_info) <content, content_size>: Remove.
6779 (struct tui_source_element): Add initializers and destructor.
6780 (union tui_which_element, struct tui_win_element): Remove.
6781 (struct tui_source_window_base) <content>: New field.
6782 (struct tui_data_window): Remove destructor.
6783 (tui_alloc_content, tui_free_win_content)
6784 (tui_free_all_source_wins_content): Don't declare.
6785 * tui/tui-data.c (tui_initialize_static_data): Update.
6786 (init_content_element, tui_alloc_content): Remove.
6787 (~tui_gen_win_info): Update.
6788 (~tui_data_window, tui_free_all_source_wins_content)
6789 (tui_free_win_content, free_content, free_content_elements):
6790 Remove.
6791
7908abbf
TT
67922019-06-25 Tom Tromey <tom@tromey.com>
6793
6794 * tui/tui-winsource.h (tui_clear_source_content)
6795 (tui_erase_source_content, tui_show_source_content): Change type
6796 of win_info.
6797 * tui/tui-winsource.c (tui_clear_source_content)
6798 (tui_erase_source_content, tui_show_source_content): Change type
6799 of win_info.
6800 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6801 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6802 win_info.
6803 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6804 win_info.
6805 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6806
02c28df0
TT
68072019-06-25 Tom Tromey <tom@tromey.com>
6808
6809 * tui/tui-winsource.c (tui_clear_source_content)
6810 (tui_source_window_base::set_is_exec_point_at): Update.
6811 * tui/tui-source.c (tui_set_source_content_nil): Update.
6812 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6813 a bool.
6814 * tui/tui-data.c (init_content_element): Update.
6815
6658b1bf
TT
68162019-06-25 Tom Tromey <tom@tromey.com>
6817
6818 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6819 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6820 * tui/tui-layout.c (init_and_make_win): Update.
6821 * tui/tui.h (enum tui_win_type): Update.
6822 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6823 tui_win_is_auxillary.
6824 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6825 tui_win_is_auxillary.
6826
21e1c91e
TT
68272019-06-25 Tom Tromey <tom@tromey.com>
6828
6829 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6830 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6831 (tui_delete_data_content_windows, tui_display_all_data)
6832 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6833 Update.
6834 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6835 * tui/tui-regs.c (tui_last_regs_line_no)
6836 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6837 (tui_show_registers): Update.
6838 (tui_show_register_group): Return void. Update.
6839 (tui_display_registers_from, tui_display_reg_element_at_line)
6840 (tui_display_registers_from_line, tui_check_register_values):
6841 Update.
6842 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6843 member.
6844 (struct tui_data_window) <regs_content>: Now a std::vector.
6845 <regs_content_count>: Remove.
6846 (tui_add_content_elements, tui_free_data_content): Don't declare.
6847 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6848 (init_content_element): Remove DATA_WIN case. Add assert.
6849 (tui_add_content_elements): Remove.
6850 (tui_data_window): Update.
6851 (tui_free_data_content): Remove.
6852 (free_content_elements): Remove DATA_WIN case.
6853
115ac53b
TT
68542019-06-25 Tom Tromey <tom@tromey.com>
6855
6856 * tui/tui-data.c (tui_data_item_window): Update.
6857 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6858 * tui/tui-windata.c (tui_display_all_data)
6859 (tui_display_data_from_line): Update.
6860 (tui_check_data_values): Remove.
6861 * tui/tui-regs.c (tui_show_register_group)
6862 (tui_display_reg_element_at_line): Update.
6863 * tui/tui-hooks.c (tui_register_changed)
6864 (tui_refresh_frame_and_register_information): Call
6865 tui_check_register_values.
6866 * tui/tui-data.h (struct tui_data_window) <data_content,
6867 data_content_count, data_type>: Remove.
6868 (enum tui_data_type): Remove.
6869
6870 * tui/tui-data.c (tui_data_window::clear_detail)
6871 (~tui_data_window): Update.
6872
eaf9738b
TT
68732019-06-25 Tom Tromey <tom@tromey.com>
6874
6875 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6876 declare.
6877 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6878 Rename from tui_first_data_item_displayed. Update.
6879 (tui_data_window::refresh_all)
6880 (tui_data_window::do_scroll_vertical): Update.
6881 * tui/tui-data.h (struct tui_data_window)
6882 <first_data_item_displayed>: Declare new method.
6883
31ca4723
TT
68842019-06-25 Tom Tromey <tom@tromey.com>
6885
6886 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6887 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6888 contents...
6889 (tui_initialize_static_data): ...here.
6890
41bcff7f
TT
68912019-06-25 Tom Tromey <tom@tromey.com>
6892
6893 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6894 (tui_display_registers_from, tui_check_register_values): Update.
6895 (tui_display_register): Remove win_info parameter; update.
6896 (tui_get_register): Change type of parameters.
6897 * tui/tui-data.h (struct tui_data_element): Remove.
6898 (union tui_which_element) <data>: Remove.
6899 <data_window>: Change type.
6900 (struct tui_data_item_window): New.
6901 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6902 case. Add assert.
6903 (~tui_data_item_window): New destructor.
6904 (free_content_elements): Remove DATA_ITEM_WIN case.
6905
d2802c33
TT
69062019-06-25 Tom Tromey <tom@tromey.com>
6907
6908 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6909 Remove.
6910
dd835f8b
TT
69112019-06-25 Tom Tromey <tom@tromey.com>
6912
6913 * tui/tui-data.h (struct tui_command_element): Remove.
6914 (union tui_which_element) <command>: Remove.
6915 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6916 assert.
6917 (free_content_elements): Remove CMD_WIN case.
6918
bd7db367
TT
69192019-06-25 Tom Tromey <tom@tromey.com>
6920
6921 * tui/tui-layout.c (tui_set_layout): Update.
6922 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6923 * tui/tui-data.c (layout_def): Update.
6924
3add462f
TT
69252019-06-25 Tom Tromey <tom@tromey.com>
6926
6927 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6928 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6929 (tui_source_window_base::set_new_height): Update.
6930 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6931 Update.
6932 (tui_set_locator_fullname, tui_set_locator_info)
6933 (tui_show_frame_info): Update.
6934 * tui/tui-source.c (tui_set_source_content)
6935 (tui_source_is_displayed): Update.
6936 * tui/tui-layout.c (show_source_disasm_command, show_data)
6937 (show_source_or_disasm_and_command): Update.
6938 * tui/tui-disasm.c (tui_set_disassem_content)
6939 (tui_get_begin_asm_address): Update.
6940 * tui/tui-data.h (struct tui_locator_element): Remove.
6941 (union tui_which_element) <locator>: Remove.
6942 (struct tui_locator_window): New.
6943 (tui_locator_win_info_ptr): Change return type.
6944 * tui/tui-data.c (_locator): Change type.
6945 (tui_locator_win_info_ptr): Change return type.
6946 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6947 (tui_alloc_content): Add assert.
6948
489e9d8b
TT
69492019-06-25 Tom Tromey <tom@tromey.com>
6950
6951 * tui/tui-winsource.c
6952 (tui_exec_info_window::maybe_allocate_content): New method.
6953 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6954 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6955 (make_source_or_disasm_window): Add cast.
6956 * tui/tui-data.h (union tui_which_element) <simple_string>:
6957 Remove.
6958 (struct tui_source_info): New.
6959 (struct tui_source_window_base) <execution_info>: Change type.
6960 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6961 case, and add assert.
6962 (tui_alloc_content): Add assert.
6963
c3fabb7d
TT
69642019-06-25 Tom Tromey <tom@tromey.com>
6965
6966 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6967 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6968 * tui/tui-data.c (tui_alloc_win_info): Remove.
6969
bbc228ee
TT
69702019-06-25 Tom Tromey <tom@tromey.com>
6971
6972 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6973 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6974 can_highlight.
6975
5fcee43a
TT
69762019-06-25 Tom Tromey <tom@tromey.com>
6977
6978 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6979 make_visible_with_new_height method.
6980 (tui_win_info::make_visible_with_new_height): New method.
6981 (tui_source_window_base::do_make_visible_with_new_height)
6982 (tui_data_window::do_make_visible_with_new_height)
6983 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6984 (make_visible_with_new_height): Remove.
6985 (tui_resize_all, tui_adjust_win_heights): Use
6986 make_visible_with_new_height method.
6987 * tui/tui-data.h (struct tui_win_info)
6988 <do_make_visible_with_new_height, make_visible_with_new_height>:
6989 New methods.
6990 (struct tui_source_window_base, struct tui_data_window)
6991 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6992 methods.
6993
d83f1fe6
TT
69942019-06-25 Tom Tromey <tom@tromey.com>
6995
6996 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6997 method.
6998 (update_tab_width): Call update_tab_width method.
6999 * tui/tui-data.h (struct tui_win_info)
7000 (struct tui_source_window_base) <update_tab_width>: New methods.
7001
17374de4
TT
70022019-06-25 Tom Tromey <tom@tromey.com>
7003
7004 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7005 parameter.
7006 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7007 parameter.
7008 (tui_gen_win_info::make_visible): Update.
7009 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7010 parameter.
7011 * tui/tui-data.h (enum tui_box): New enum.
7012 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7013
f936bca2
TT
70142019-06-25 Tom Tromey <tom@tromey.com>
7015
7016 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7017 init_and_make_win for EXEC_INFO_WIN.
7018 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7019 longer inline.
7020 (struct tui_win_info) <~tui_win_info>: Inline.
7021 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7022 Don't declare.
7023 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7024 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7025 Remove.
7026 (tui_initialize_static_data): Update.
7027 (~tui_gen_win_info): Handle more cleanup here.
7028 (~tui_source_window_base): Delete "execution_info".
7029 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7030
d6ba6a11
TT
70312019-06-25 Tom Tromey <tom@tromey.com>
7032
7033 * tui/tui-layout.c (make_command_window): Don't set
7034 can_highlight.
7035 (show_source_disasm_command): Call the reset method.
7036 (show_data): Don't set can_highlight. Call the reset method.
7037 (tui_gen_win_info::reset): Rename from init_gen_win_info
7038 (init_and_make_win): Simplify. Return tui_gen_win_info.
7039 (show_source_or_disasm_and_command): Call the reset method.
7040 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7041 (struct tui_cmd_window): Set can_highlight.
7042
48a3bd16
TT
70432019-06-25 Tom Tromey <tom@tromey.com>
7044
7045 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7046 from make_visible.
7047 (tui_make_visible, tui_make_invisible): Rewrite.
7048 (tui_win_info::make_visible): Remove.
7049 (tui_source_window_base::make_visible): Update.
7050 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7051 method. Moved from...
7052 (struct tui_win_info) <make_visible>: ...here.
7053
c3bd716f
TT
70542019-06-25 Tom Tromey <tom@tromey.com>
7055
7056 * tui/tui-winsource.c
7057 (tui_source_window_base::do_scroll_horizontal): Remove direction
7058 parameter.
7059 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7060 direction parameter.
7061 * tui/tui-win.c (tui_win_info::forward_scroll)
7062 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7063 (tui_win_info::right_scroll): Update.
7064 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7065 direction parameter.
7066 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7067 direction parameter.
7068 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7069 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7070 Remove direction parameter.
7071 (struct tui_source_window_base, struct tui_source_window)
7072 (struct tui_disasm_window, struct tui_data_window)
7073 (struct tui_cmd_window): Update.
7074
21c32dca
TT
70752019-06-25 Tom Tromey <tom@tromey.com>
7076
7077 * tui/tui-winsource.h (tui_set_exec_info_content)
7078 (tui_show_exec_info_content, tui_erase_exec_info_content)
7079 (tui_clear_exec_info_content, tui_update_exec_info): Change
7080 argument to tui_source_window_base.
7081 * tui/tui-winsource.c (tui_set_exec_info_content)
7082 (tui_show_exec_info_content, tui_erase_exec_info_content)
7083 (tui_clear_exec_info_content, tui_update_exec_info): Change
7084 argument to tui_source_window_base.
7085
73fbdc65
TT
70862019-06-25 Tom Tromey <tom@tromey.com>
7087
7088 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7089 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7090
33325343
TT
70912019-06-25 Tom Tromey <tom@tromey.com>
7092
7093 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7094 check.
7095
29d2c474
TT
70962019-06-25 Tom Tromey <tom@tromey.com>
7097
7098 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7099 type to void.
7100 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7101 type to void.
7102 * tui/tui-source.c (tui_set_source_content): Update.
7103 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7104
152f3f4b
TT
71052019-06-25 Tom Tromey <tom@tromey.com>
7106
7107 * tui/tui-win.c (window_name_completer, tui_set_focus)
7108 (tui_all_windows_info): Use name method.
7109 * tui/tui-data.h (struct tui_gen_win_info)
7110 (struct tui_source_window, struct tui_disasm_window)
7111 (struct tui_data_window, struct tui_cmd_window) <name>: New
7112 method.
7113 (tui_win_name): Don't declare.
7114 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7115 (tui_win_name): Remove.
7116
be4da588
TT
71172019-06-25 Tom Tromey <tom@tromey.com>
7118
7119 * tui/tui-winsource.h (tui_update_source_window)
7120 (tui_update_source_window_as_is): Change parameter type.
7121 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7122 to be a tui_source_window_base.
7123 (tui_update_source_window_as_is): Likewise.
7124 * tui/tui-win.c (make_visible_with_new_height): Update.
7125
5b81daba
TT
71262019-06-25 Tom Tromey <tom@tromey.com>
7127
7128 * tui/tui-winsource.c (tui_erase_source_content)
7129 (tui_show_source_content, tui_show_exec_info_content)
7130 (tui_erase_exec_info_content): Use refresh_window method.
7131 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7132 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7133 from tui_refresh_win.
7134 (tui_data_window::refresh_window): New method.
7135 (tui_win_info::refresh, tui_source_window_base::refresh)
7136 (tui_refresh_all): Use refresh_window method.
7137 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7138 method.
7139 * tui/tui-regs.c (tui_display_register): Call refresh_window
7140 method.
7141 * tui/tui-layout.c (show_source_disasm_command)
7142 (show_source_or_disasm_and_command): Call refresh_window method.
7143 * tui/tui-data.h (struct tui_gen_win_info)
7144 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7145 New method.
7146
cb2ce893
TT
71472019-06-25 Tom Tromey <tom@tromey.com>
7148
7149 * tui/tui.c (tui_rl_other_window, tui_enable)
7150 (tui_is_window_visible, tui_get_command_dimension): Update.
7151 * tui/tui-winsource.c (tui_update_source_window_as_is)
7152 (tui_clear_source_content, tui_erase_source_content)
7153 (tui_show_source_line, tui_source_window_base::refill)
7154 (tui_source_window_base::do_scroll_horizontal)
7155 (tui_source_window_base::set_is_exec_point_at)
7156 (tui_update_breakpoint_info, tui_set_exec_info_content)
7157 (tui_alloc_source_buffer, tui_line_is_displayed)
7158 (tui_addr_is_displayed): Update.
7159 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7160 (tui_check_and_display_highlight_if_needed)
7161 (tui_win_info::make_visible, tui_win_info::refresh)
7162 (tui_refresh_all): Update.
7163 * tui/tui-windata.c (tui_first_data_item_displayed)
7164 (tui_delete_data_content_windows, tui_erase_data_content)
7165 (tui_display_all_data, tui_data_window::refresh_all)
7166 (tui_check_data_values): Update.
7167 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7168 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7169 (tui_win_info::backward_scroll, tui_refresh_all_win)
7170 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7171 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7172 (tui_source_window_base::set_new_height)
7173 (tui_data_window::set_new_height)
7174 (make_invisible_and_set_new_height)
7175 (make_visible_with_new_height, new_height_ok)
7176 (parse_scrolling_args): Update.
7177 * tui/tui-stack.c (tui_show_frame_info): Update.
7178 * tui/tui-source.c (tui_set_source_content)
7179 (tui_set_source_content_nil, tui_source_is_displayed)
7180 (tui_source_window::do_scroll_vertical): Update.
7181 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7182 (tui_display_registers_from, tui_display_reg_element_at_line)
7183 (tui_check_register_values, tui_reg_command): Update.
7184 * tui/tui-layout.c (tui_default_win_height)
7185 (show_source_disasm_command, show_data, init_and_make_win)
7186 (show_source_or_disasm_and_command): Update.
7187 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7188 (tui_redisplay_readline, tui_mld_flush)
7189 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7190 (tui_getc): Update.
7191 * tui/tui-disasm.c (tui_set_disassem_content)
7192 (tui_disasm_window::do_scroll_vertical): Update.
7193 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7194 Now virtual.
7195 (struct tui_win_info): Derive from tui_gen_win_info.
7196 <~tui_win_info>: Mark as override.
7197 <generic>: Remove member.
7198 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7199 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7200 (~tui_data_window, ~tui_win_info)
7201 (tui_free_all_source_wins_content): Update.
7202 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7203
ab313b35
TT
72042019-06-25 Tom Tromey <tom@tromey.com>
7205
7206 * tui/tui-layout.c (init_and_make_win): Use new.
7207 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7208 destructor, initializers.
7209 (tui_alloc_generic_win_info): Don't declare.
7210 * tui/tui-data.c (_locator): Add argument to constructor.
7211 (source_win, disasm_win): New globals.
7212 (exec_info): Remove.
7213 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7214 Update.
7215 (tui_alloc_generic_win_info): Remove.
7216 (init_content_element): Use new.
7217 (tui_win_info::tui_win_info): Update.
7218 (free_content_elements) <case DATA_WIN>: Use delete.
7219
dc2c33e4
TT
72202019-06-25 Tom Tromey <tom@tromey.com>
7221
7222 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7223 * tui/tui-windata.c (tui_first_data_item_displayed)
7224 (tui_delete_data_content_windows): Update.
7225 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7226 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7227 (tui_display_registers_from, tui_check_register_values): Update.
7228 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7229 pointer.
7230 * tui/tui-data.c (init_content_element): Update. Allocate the new
7231 window.
7232 (tui_free_data_content): Update.
7233 (free_content_elements) <case DATA_WIN>: Free the window.
7234
214a5cbe
TT
72352019-06-25 Tom Tromey <tom@tromey.com>
7236
7237 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7238 Update.
7239 * tui/tui-layout.c (make_command_window)
7240 (show_source_disasm_command, show_data, init_and_make_win)
7241 (show_source_or_disasm_and_command): Update.
7242 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7243 method.
7244 <can_highight, is_highlighted>: Now bool.
7245 (tui_set_win_highlight): Don't declare.
7246 * tui/tui-data.c (tui_set_win_highlight): Remove.
7247
8e2daf15
TT
72482019-06-25 Tom Tromey <tom@tromey.com>
7249
7250 * tui/tui-wingeneral.c (make_visible): Remove check of window
7251 type.
7252
8903bd8a
TT
72532019-06-25 Tom Tromey <tom@tromey.com>
7254
7255 * tui/tui-win.c (tui_win_info::max_height)
7256 (tui_cmd_window::max_height): New methods.
7257 (new_height_ok): Call max_height.
7258 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7259 <max_height>: New method.
7260
3f02ce1e
TT
72612019-06-25 Tom Tromey <tom@tromey.com>
7262
7263 * tui/tui-win.c (tui_source_window_base::set_new_height)
7264 (tui_data_window::set_new_height): New methods.
7265 (make_invisible_and_set_new_height): Call set_new_height method.
7266 * tui/tui-data.h (struct tui_win_info)
7267 (struct tui_source_window_base, struct tui_data_window)
7268 <set_new_height>: New method.
7269
1825f487
TT
72702019-06-25 Tom Tromey <tom@tromey.com>
7271
7272 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7273 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7274 tui_refresh_data_win.
7275 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7276 method.
7277 (tui_refresh_all_win): Call the refresh_all method.
7278 (tui_set_focus): Likewise.
7279 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7280 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7281 Likewise.
7282
ad54d15b
TT
72832019-06-25 Tom Tromey <tom@tromey.com>
7284
7285 * tui/tui-winsource.h (tui_refill_source_window)
7286 (tui_set_is_exec_point_at): Don't declare.
7287 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7288 (tui_source_window_base::refill): Rename from
7289 tui_refill_source_window.
7290 (tui_source_window_base::do_scroll_horizontal): Update.
7291 (tui_source_window_base::set_is_exec_point_at): Rename from
7292 tui_set_is_exec_point_at.
7293 (tui_update_all_breakpoint_info): Update.
7294 * tui/tui-stack.c (tui_show_frame_info): Update.
7295 * tui/tui-layout.c (show_data): Add cast.
7296 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7297 * tui/tui-data.h (struct tui_source_window_base) <refill,
7298 set_is_exec_point_at>: New methods.
7299 (tui_source_windows, tui_add_to_source_windows): Update types.
7300 (tui_add_to_source_windows): Remove redundant declaration.
7301 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7302 (tui_source_windows): Change return type.
7303 (tui_clear_source_windows_detail): Update.
7304 (tui_add_to_source_windows): Change type of parameter.
7305 (tui_free_all_source_wins_content): Update.
7306
2042b506
TT
73072019-06-25 Tom Tromey <tom@tromey.com>
7308
7309 * tui/tui-wingeneral.c (tui_win_info::refresh)
7310 (tui_source_window_base::refresh): New methods.
7311 (tui_refresh_all): Call the refresh method.
7312 * tui/tui-data.h (struct tui_win_info)
7313 (struct tui_source_window_base) <refresh>: New method.
7314
56122977
TT
73152019-06-25 Tom Tromey <tom@tromey.com>
7316
7317 * tui/tui.h (tui_is_window_visible): Return bool.
7318 * tui/tui.c (tui_is_window_visible): Return bool.
7319 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7320 (tui_make_visible, tui_make_invisible)
7321 (tui_win_info::make_visible)
7322 (tui_source_window_base::make_visible, make_all_visible)
7323 (tui_make_all_visible, tui_make_all_invisible): Update.
7324 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7325 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7326 bool.
7327 (struct tui_win_info, struct tui_source_window_base)
7328 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7329 * tui/tui-data.c (tui_init_generic_part): Update.
7330
cda37efb
TT
73312019-06-25 Tom Tromey <tom@tromey.com>
7332
7333 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7334 (tui_source_window_base::make_visible): New methods.
7335 (make_all_visible): Make method call.
7336 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7337 (struct tui_source_window_base, struct tui_cmd_window): Override
7338 make_visible.
7339 (tui_win_is_source_type): Don't declare.
7340 * tui/tui-data.c (tui_win_is_source_type): Remove.
7341
6a0ee02c
TT
73422019-06-25 Tom Tromey <tom@tromey.com>
7343
7344 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7345 NULL check.
7346
63901aec
TT
73472019-06-25 Tom Tromey <tom@tromey.com>
7348
7349 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7350 Inline constructor. Add initializers for members.
7351 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7352 constructors; now inline in class.
7353
ceb13a13
TT
73542019-06-25 Tom Tromey <tom@tromey.com>
7355
7356 * tui/tui-regs.c (tui_show_registers): Update.
7357 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7358 bool.
7359 * tui/tui-data.c (tui_data_window::clear_detail)
7360 (tui_data_window): Update.
7361
238eb706
TT
73622019-06-25 Tom Tromey <tom@tromey.com>
7363
7364 * tui/tui-windata.c (tui_display_all_data)
7365 (tui_display_data_from_line, tui_display_data_from)
7366 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7367 Update.
7368 * tui/tui-regs.c (tui_last_regs_line_no)
7369 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7370 (tui_show_registers, tui_show_register_group)
7371 (tui_display_registers_from, tui_display_reg_element_at_line)
7372 (tui_display_registers_from_line, tui_check_register_values)
7373 (tui_reg_next, tui_reg_prev): Update.
7374 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7375 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7376 tui_data_window.
7377 (struct tui_win_info) <detail>: Remove. Add new fields from
7378 tui_data_info.
7379 (TUI_DATA_WIN): Add cast.
7380 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7381 (~tui_data_window): Simplify.
7382
81491aa0
TT
73832019-06-25 Tom Tromey <tom@tromey.com>
7384
7385 * tui/tui-layout.c (show_source_disasm_command)
7386 (show_source_or_disasm_and_command): Update.
7387 * tui/tui-io.c (update_cmdwin_start_line)
7388 (tui_redisplay_readline): Update.
7389 * tui/tui-data.h (struct tui_command_info): Remove.
7390 (struct tui_win_info) <detail>: Remove command_info member.
7391 (struct tui_data_window) <start_line>: New member, from
7392 tui_command_info.
7393 (TUI_CMD_WIN): Add casts.
7394
e6e41501
TT
73952019-06-25 Tom Tromey <tom@tromey.com>
7396
7397 * tui/tui-winsource.c (tui_update_source_window)
7398 (tui_refill_source_window)
7399 (tui_source_window_base::do_scroll_horizontal)
7400 (tui_update_breakpoint_info, tui_set_exec_info_content)
7401 (tui_show_exec_info_content, tui_erase_exec_info_content)
7402 (tui_clear_exec_info_content): Update.
7403 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7404 Update.
7405 * tui/tui-win.c (make_invisible_and_set_new_height)
7406 (make_visible_with_new_height): Update.
7407 * tui/tui-source.c (tui_set_source_content)
7408 (tui_show_symtab_source): Update.
7409 * tui/tui-layout.c (extract_display_start_addr)
7410 (show_source_disasm_command, show_data)
7411 (make_source_or_disasm_window)
7412 (show_source_or_disasm_and_command): Update.
7413 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7414 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7415 "gdbarch".
7416 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7417 to tui_source_window_base.
7418 (struct tui_win_info) <detail>: Remove source_info member.
7419 (struct tui_source_window_base) <has_locator>: Inline.
7420 Move contents from tui_source_info; rename has_locator member to
7421 m_has_locator.
7422 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7423 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7424 header file.
7425 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7426 Simplify.
7427 (tui_free_all_source_wins_content): Cast to
7428 tui_source_window_base.
7429
44f0e208
TT
74302019-06-25 Tom Tromey <tom@tromey.com>
7431
7432 * tui/tui-win.c (make_invisible_and_set_new_height)
7433 (make_visible_with_new_height): Call has_locator method.
7434 * tui/tui-layout.c (show_source_disasm_command, show_data)
7435 (show_source_or_disasm_and_command): Update for bool change.
7436 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7437 (tui_win_info) <has_locator>: New method.
7438 (struct tui_source_window_base) <has_locator>: New method.
7439 (tui_win_has_locator): Don't declare.
7440 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7441 from tui_win_has_locator.
7442 (tui_source_window_base): Use false, not FALSE.
7443
7778b912
TT
74442019-06-25 Tom Tromey <tom@tromey.com>
7445
7446 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7447 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7448 clear_detail method directly.
7449 (tui_clear_win_detail): Remove.
7450
f83d391c
TT
74512019-06-25 Tom Tromey <tom@tromey.com>
7452
7453 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7454 "this", not TUI_DISASM_WIN.
7455
13446e05
TT
74562019-06-25 Tom Tromey <tom@tromey.com>
7457
7458 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7459 declare.
7460 * tui/tui-winsource.c
7461 (tui_source_window_base::do_scroll_horizontal): Rename from
7462 tui_horizontal_source_scroll.
7463 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7464 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7465 from tui_vertical_data_scroll.
7466 * tui/tui-win.h (tui_scroll): Don't declare.
7467 * tui/tui-win.c (tui_win_info::forward_scroll)
7468 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7469 (tui_win_info::right_scroll): Rename and update.
7470 (tui_scroll_forward_command, tui_scroll_backward_command)
7471 (tui_scroll_left_command, tui_scroll_right_command): Update.
7472 (tui_scroll): Remove.
7473 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7474 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7475 from tui_vertical_source_scroll.
7476 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7477 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7478 from tui_vertical_disassem_scroll.
7479 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7480 do_scroll_horizontal>: New methods.
7481 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7482 Likewise.
7483 (struct tui_source_window_base): Add do_scroll_horizontal.
7484 (struct tui_source_window, struct tui_disasm_window): Add
7485 do_scroll_vertical.
7486 (struct tui_data_window, struct tui_cmd_window): Add
7487 do_scroll_horizontal and do_scroll_vertical.
7488 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7489
5cf82909
TT
74902019-06-25 Tom Tromey <tom@tromey.com>
7491
7492 * tui/tui-data.h (struct tui_source_window_base): New struct.
7493 (struct tui_source_window): Derive from tui_source_window_base.
7494 (struct tui_disasm_window): New struct.
7495 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7496 from tui_source_window::clear_detail.
7497 (tui_source_window_base): Rename from tui_source_window.
7498 (~tui_source_window_base): Rename from ~tui_source_window.
7499 (tui_alloc_win_info): Create a tui_disasm_window.
7500
ee1d42d6
TT
75012019-06-25 Tom Tromey <tom@tromey.com>
7502
7503 * tui/tui-data.h (struct tui_source_window)
7504 (struct tui_data_window): Declare destructors.
7505 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7506 destructors.
7507 (tui_win_info): Simplify.
7508
b4eb2452
TT
75092019-06-25 Tom Tromey <tom@tromey.com>
7510
7511 * tui/tui-winsource.c (tui_display_main)
7512 (tui_update_source_windows_with_addr)
7513 (tui_update_all_breakpoint_info): Update.
7514 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7515 (new_height_ok, parse_scrolling_args): Update.
7516 * tui/tui-stack.c (tui_show_frame_info): Update.
7517 * tui/tui-data.h (struct tui_list): Remove.
7518 (tui_source_windows): Return a reference to a std::vector.
7519 * tui/tui-data.c (source_windows): Now a std::vector.
7520 (tui_source_windows): Change return type.
7521 (tui_clear_source_windows): Rewrite.
7522 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7523 (tui_free_all_source_wins_content): Rewrite.
7524
8761a91b
TT
75252019-06-25 Tom Tromey <tom@tromey.com>
7526
7527 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7528 (struct tui_data_window, struct tui_cmd_window): Declare
7529 clear_detail method.
7530 * tui/tui-data.c (tui_source_window::clear_detail)
7531 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7532 methods.
7533 (tui_clear_win_detail): Simplify.
7534
0ed69eda
TT
75352019-06-25 Tom Tromey <tom@tromey.com>
7536
7537 * tui/tui-layout.c (make_source_window, make_disasm_window)
7538 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7539 Return the new window.
7540 (show_source_disasm_command, show_data)
7541 (show_source_or_disasm_and_command): Update.
7542
82432e10
TT
75432019-06-25 Tom Tromey <tom@tromey.com>
7544
7545 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7546 parameter. Return the new window.
7547 (show_source_disasm_command): Update and remove NULL check.
7548 (show_source_or_disasm_and_command): Update.
7549
ec328aa5
TT
75502019-06-25 Tom Tromey <tom@tromey.com>
7551
7552 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7553
33b906ab
TT
75542019-06-25 Tom Tromey <tom@tromey.com>
7555
7556 * tui/tui-data.h (struct tui_win_info): Make constructor
7557 protected. Make destructor virtual. Add initializers.
7558 (tui_source_window, tui_data_window, tui_cmd_window): New
7559 classes.
7560 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7561 constructor. Add "type" parameter.
7562 (tui_source_window, tui_data_window, tui_cmd_window): New
7563 constructors.
7564 (tui_alloc_win_info): Instantiate the appropriate subclass.
7565
e7e11af4
TT
75662019-06-25 Tom Tromey <tom@tromey.com>
7567
7568 * tui/tui-win.c (tui_resize_all): Use delete.
7569 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7570 destructor.
7571 (tui_free_window): Don't declare.
7572 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7573 Update.
7574
6792b55e
TT
75752019-06-25 Tom Tromey <tom@tromey.com>
7576
7577 * tui/tui-data.h (struct tui_win_info): Add constructor.
7578 * tui/tui-data.c (tui_alloc_win_info): Use new.
7579 (tui_free_window): Use delete.
7580
f95675e1
TT
75812019-06-22 Tom Tromey <tom@tromey.com>
7582
7583 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7584 declare.
7585 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7586
5bff081c
TT
75872019-06-22 Tom Tromey <tom@tromey.com>
7588
7589 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7590 declare.
7591 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7592
47e3f474
TV
75932019-06-22 Tom de Vries <tdevries@suse.de>
7594
7595 * dwarf2read.c (create_addrmap_from_aranges)
7596 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7597 instead of '%zu'.
7598
fd5866f6
SM
75992019-06-21 Simon Marchi <simon.marchi@efficios.com>
7600
7601 * dwarf2read.h (dwarf2_section_info_def): Remove.
7602 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7603 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7604 std::vector<dwarf2_section_info>.
7605 (struct dwo_file) <~dwo_file>: Remove.
7606 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7607 types field.
7608 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7609 (dwarf2_read_debug_names): Likewise.
7610 (create_debug_types_hash_table): Change parameter type to
7611 array_view, adjust code accordingly.
7612 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7613 (partial_die_info::fixup): Likewise.
7614 (determine_prefix): Likewise.
7615 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7616
fb1eb2f9
SM
76172019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7618
7619 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7620 gdb_bfd_ref_ptr.
7621 <~dwo_file>: Remove call to gdb_bfd_unref.
7622 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7623 gdb_bfd_ref_ptr::get.
7624
51ac9db5
SM
76252019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7626
7627 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7628 type to htab_up.
7629 * dwarf2read.c (struct dwo_file): Initialize fields.
7630 <~dwo_file>: New.
7631 (free_dwo_file): Remove, move content to ~dwo_file.
7632 (struct dwo_file_deleter): Remove.
7633 (dwo_file_up>: Remove custom deleter.
7634 (free_dwo_files): Remove.
7635 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7636 dwo_files.
7637 (process_skeletonless_type_units): Call unique_ptr::get.
7638 (allocate_dwo_file_hash_table): Add deleter to created hash
7639 table. Change return type to htab_up.
7640 (lookup_dwo_file_slot): Don't memset dwo_file, call
7641 unique_ptr::get.
7642 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7643 (create_dwo_unit_in_dwp_v2): Likewise.
7644 (open_and_init_dwo_file): Likewise.
7645 (free_dwo_file_from_slot): Remove.
7646
dc4ccb6f
SM
76472019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7648
7649 * dwarf2read.h (struct dwarf2_section_info) <readin,
7650 is_virtual>: Change type to bool.
7651 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7652 true instead of 1.
7653
e6a1c5cb
TT
76542019-06-19 Tom Tromey <tom@tromey.com>
7655
7656 * tui/tui-data.h (tui_init_content_element): Don't declare.
7657
6f6ffbeb
TT
76582019-06-19 Tom Tromey <tom@tromey.com>
7659
7660 * tui/tui-data.h (tui_init_win_info): Don't declare.
7661
f23f598e
TV
76622019-06-19 Tom de Vries <tdevries@suse.de>
7663
7664 * dwarf2read.h (abstract_to_concrete): Change type to
7665 std::unordered_map<sect_offset, std::vector<sect_offset>,
7666 gdb::hash_enum<sect_offset>>.
7667
680e1bee
TT
76682019-06-19 Tom Tromey <tromey@adacore.com>
7669
7670 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7671 EVAL_AVOID_SIDE_EFFECTS specially.
7672
dcf37923
TT
76732019-06-19 Tom Tromey <tromey@adacore.com>
7674
7675 * source-cache.c (highlighter): New global.
7676 (source_cache::get_source_lines): Create a highlighter on demand.
7677
494986d5
AB
76782019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7679
7680 * defs.h (deprecated_interactive_hook): Delete declaration.
7681 * interps.c (clear_interpreter_hooks): Remove use of
7682 deprecated_interactive_hook.
7683 * top.c (deprecated_interactive_hook): Delete definition.
7684 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7685
3360b6e7
TV
76862019-06-18 Tom de Vries <tdevries@suse.de>
7687
7688 PR gdb/24515
7689 * dwarf2read.h (abstract_to_concrete): Change type from
7690 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7691 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7692 * dwarf2read.c (read_variable): Update.
7693 (dwarf2_fetch_die_loc_sect_off): Update.
7694
310b3441
TV
76952019-06-17 Tom de Vries <tdevries@suse.de>
7696
7697 PR gdb/24617
7698 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7699 accessing parent[parent_len - 1].
7700
ba9777be
PP
77012019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7702
7703 PR gdb/24364
7704 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7705 call dtrace_process_dof with NULL dof.
7706
2b9f6e89
TV
77072019-06-16 Tom de Vries <tdevries@suse.de>
7708
7709 PR gdb/24445
7710 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7711
431b3ead
TT
77122019-06-16 Tom Tromey <tom@tromey.com>
7713
7714 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7715 (make_all_visible): Use address of member.
7716
d04b44a1
TT
77172019-06-16 Tom Tromey <tom@tromey.com>
7718
7719 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7720 (tui_free_window, free_content, free_content_elements): Remove
7721 unnecessary cast.
7722 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7723 cast.
7724 * tui/tui-regs.c (tui_show_register_group)
7725 (tui_display_registers_from, tui_display_reg_element_at_line):
7726 Remove unnecessary cast.
7727
bf5142e7
AB
77282019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7729
7730 * linux-nat.c (normal_mask): Delete.
7731 (_initialize_linux_nat): Don't initialise normal_mask.
7732
c4973306
SM
77332019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7734
7735 PR gdb/24445
7736 * dwarf-index-write.h (write_psymtabs_to_index): Add
7737 dwz_basename parameter.
7738 * dwarf-index-write.c (write_gdbindex): Move file writing to
7739 write_gdbindex_1. Change return type void.
7740 (assert_file_size): Move up, remove filename parameter.
7741 (write_gdbindex_1): New function.
7742 (write_debug_names): Change return type to void, call
7743 assert_file_size.
7744 (struct index_wip_file): New struct.
7745 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7746 file logic to index_wip_file. Write index for dwz file if
7747 needed.
7748 (save_gdb_index_command): Pass basename of dwz file, if present.
7749 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7750 build-id of dwz file, if present.
7751 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7752 (dwarf2_get_dwz_file): Likewise.
7753 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7754 (dwarf2_get_dwz_file): Likewise.
7755
395f9c91
TT
77562019-06-16 Tom Tromey <tom@tromey.com>
7757
7758 * coffread.c (process_coff_symbol): Use xstrdup.
7759 * value.c (create_internalvar): Use xstrdup.
7760
cafb3438
TT
77612019-06-16 Tom Tromey <tom@tromey.com>
7762
7763 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7764 * breakpoint.c (stopin_command, stopat_command)
7765 (until_break_command, decode_location_default): Remove unnecessary
7766 cast.
7767 * utils.c (subset_compare): Remove unnecessary cast.
7768 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7769 cast.
7770 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7771 cast.
7772 * infcmd.c (path_command): Remove unnecessary cast.
7773 * coffread.c (decode_type): Remove unnecessary cast.
7774 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7775 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7776 * tui/tui-stack.c (tui_show_locator_content)
7777 (tui_show_frame_info): Remove unnecessary cast.
7778 * tui/tui-win.c (tui_scroll_forward_command)
7779 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7780 (parse_scrolling_args): Remove unnecessary cast.
7781 * tui/tui-data.c (init_win_info, tui_del_window)
7782 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7783 (free_content_elements): Remove unnecessary cast.
7784 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7785 unnecessary cast.
7786 * tui/tui-source.c (tui_set_source_content)
7787 (tui_vertical_source_scroll): Remove unnecessary cast.
7788 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7789 cast.
7790 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7791 * tui/tui-regs.c (tui_display_registers_from)
7792 (tui_display_register): Remove unnecessary cast.
7793 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7794 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7795 (make_visible): Remove unnecessary cast.
7796 * tui/tui-winsource.c (tui_erase_source_content)
7797 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7798 unnecessary cast.
7799 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7800 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7801 * stabsread.c (read_type, read_array_type, read_range_type):
7802 Remove unnecessary cast.
7803 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7804 (parse_symbol, parse_type, upgrade_type, parse_external)
7805 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7806 unnecessary cast.
7807 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7808
730ead81
TT
78092019-06-16 Tom Tromey <tom@tromey.com>
7810
7811 * tui/tui-data.c (tui_alloc_generic_win_info)
7812 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7813 checks.
7814
584a927c
AB
78152019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7816 Andrew Burgess <andrew.burgess@embecosm.com>
7817
7818 * f-typeprint.c (f_print_type): Don't return early for not
7819 associated or not allocated types.
7820 (f_type_print_varspec_suffix): Add print_rank parameter and print
7821 ranks of array types in case they dangling.
7822 (f_type_print_base): Add print_rank parameter.
7823
30056ea0
AB
78242019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7825
7826 * NEWS: Mention new MI commands.
7827 * break-catch-throw.c (enum exception_event_kind): Move to
7828 breakpoint.h.
7829 (print_mention_exception_catchpoint): Output text as a single
7830 message.
7831 (catch_exception_command_1): Rename to...
7832 (catch_exception_event): ...this, make non-static, update header
7833 command, and change some parameter types.
7834 (catch_catch_command): Update for changes to
7835 catch_exception_command_1.
7836 (catch_throw_command): Likewise.
7837 (catch_rethrow_command): Likewise.
7838 * breakpoint.c (enum exception_event_kind): Delete.
7839 * breakpoint.h (enum exception_event_kind): Moved here from
7840 break-catch-throw.c.
7841 (catch_exception_event): Declare.
7842 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7843 (mi_cmd_catch_throw): New function.
7844 (mi_cmd_catch_rethrow): New function.
7845 (mi_cmd_catch_catch): New function.
7846 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7847 'catch-catch' entries.
7848 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7849 (mi_cmd_catch_rethrow): Declare.
7850 (mi_cmd_catch_catch): Declare.
7851
ec8e2b6d
AB
78522019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7853
7854 * annotate.c (annotate_source_line): Change return type to void,
7855 update implementation to match.
7856 * annotate.h (annotate_source_line): Change return type to void,
7857 update header comment.
7858 * stack.c (print_frame_info): Don't change what frame information
7859 is printed based on whether annotations are on or not.
7860
0d3abd8c
AB
78612019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7862
7863 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7864 (annotate_source): Make static.
7865 (annotate_source_line): Moved from source.c and renamed from
7866 identify_source_line. Update the return type.
7867 * annotate.h (annotate_source): Delete declaration.
7868 (annotate_source_line): Declaration moved from source.h, and
7869 renamed from identify_source_line. Return type updated.
7870 * source.c (identify_source_line): Moved to annotate.c and renamed
7871 to annotate_source_line.
7872 (info_line_command): Remove check of annotation_level.
7873 * source.h (identify_source_line): Move declaration to annotate.h
7874 and rename to annotate_source_line.
7875 * stack.c: Add 'annotate.h' include.
7876 (print_frame_info): Remove check of annotation_level before
7877 calling annotate_source_line.
7878
00df30ae
AB
78792019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7880
7881 * source-cache.c (source_cache::get_plain_source_lines): Use
7882 open_source_file_with_line_charpos instead of just
7883 open_source_file, remove call to find_source_lines.
7884 (source_cache::get_source_lines): Likewise.
7885 * source.c (find_source_lines): Make static.
7886 (get_filename_and_charpos): Renamed into...
7887 (open_source_file_with_line_charpos): ..this along with changes to
7888 return a scoped_fd, and some other minor clean ups.
7889 (identify_source_line): Use open_source_file_with_line_charpos.
7890 (search_command_helper): Use open_source_file_with_line_charpos
7891 instead of just open_source_file, remove call to
7892 find_source_lines.
7893 * source.h (open_source_file_with_line_charpos): Declare new
7894 function.
7895 (find_source_lines): Delete declaration.
7896
afda45a2
AB
78972019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7898
7899 * source.c (get_filename_and_charpos): Remove fullname
7900 parameter.
7901 (identify_source_line): Update call to get_filename_and_charpos.
7902
0735b091
TT
79032019-06-14 Tom Tromey <tromey@adacore.com>
7904
7905 PR gdb/24502:
7906 * ui-style.h (skip_ansi_escape): Update comment.
7907 * ui-file.h (class no_terminal_escape_file): New class.
7908 * ui-file.c (no_terminal_escape_file::write)
7909 (no_terminal_escape_file::puts): New methods.
7910 * cli/cli-logging.c (handle_redirections): Use
7911 no_terminal_escape_file.
7912
52ce35e2
TT
79132019-06-14 Tom Tromey <tromey@adacore.com>
7914
7915 * NEWS: Move convenience variable news above Python news.
7916
73cc7272
TT
79172019-06-14 Tom Tromey <tom@tromey.com>
7918
7919 * gnulib: Move directory to top-level.
7920 * configure.ac: Don't configure gnulib.
7921 * configure: Rebuild.
7922 * common/common-defs.h: Use new path to gnulib.
7923 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7924 (GNULIB_H): Remove.
7925 (INCGNU): Look in new gnulib location.
7926 (HFILES_NO_SRCDIR): Remove gnulib files.
7927 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7928 (generated_files): Remove GNULIB_H.
7929 ($(LIBGNU), all-lib): Remove targets.
7930 (distclean): Don't mention GNULIB_BUILDDIR.
7931 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7932
f5686554
TT
79332019-06-14 Tom Tromey <tromey@adacore.com>
7934
7935 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7936 Warn if symbol file does not provide any symbols.
7937
a0c1ffed
TT
79382019-06-14 Tom Tromey <tromey@adacore.com>
7939
7940 * source.c (find_and_open_source): Respect basenames_may_differ.
7941
7c39e397
AB
79422019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7943
7944 * annotate.c (annotate_breakpoints_invalid): Make use of
7945 scoped_restore_terminal_state.
7946 (annotate_frames_invalid): Likewise.
7947
f411722c
TT
79482019-06-14 Tom Tromey <tromey@adacore.com>
7949
7950 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7951 allow assignment to an internalvar.
7952
4268ec18
TT
79532019-06-14 Tom Tromey <tromey@adacore.com>
7954
7955 * ada-lex.l: Allow "_" in attribute names.
7956
abdb711e
TT
79572019-06-14 Tom Tromey <tromey@adacore.com>
7958
7959 PR gdb/24653:
7960 * regcache.c (registers_changed): Don't call alloca.
7961 * top.c (execute_command): Don't call alloca.
7962
4c048731
PA
79632019-06-13 Pedro Alves <palves@redhat.com>
7964
7965 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7966 'expression'. When parsing an expression, error out if there's
7967 junk after "unlimited".
7968 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7969 (do_set_command): Adjust calls to is_unlimited_literal.
7970
66eb1ed3
PA
79712019-06-13 Pedro Alves <palves@redhat.com>
7972
7973 * compile/compile.c (make_compile_options_def_group): Add braces
7974 around array_view initializer.
7975 * thread.c (make_thread_apply_all_options_def_group)
7976 (make_thread_apply_all_options_def_group): Likewise.
7977
3345721a
PA
79782019-06-13 Pedro Alves <palves@redhat.com>
7979
7980 * NEWS (New commands): Mention "maint test-options
7981 require-delimiter", "maint test-options unknown-is-error", "maint
7982 test-options unknown-is-operand" and "maint show
7983 test-options-completion-result".
7984 (New command options, command completion): New section.
7985 (Completion improvements): New section.
7986 Mention that you can abbreviate "unlimited".
7987
6206060d
PA
79882019-06-13 Pedro Alves <palves@redhat.com>
7989
7990 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7991 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7992 * unittests/cli-utils-selftests.c (test_parse_flags)
7993 (test_parse_flags_qcs): Delete.
7994 (test_cli_utils): Don't call deleted functions.
7995
6665660a
PA
79962019-06-13 Pedro Alves <palves@redhat.com>
7997
7998 * thread.c: Include "cli/cli-option.h".
7999 (tp_array_compar_ascending): Global.
8000 (tp_array_compar): Delete function.
8001 (tp_array_compar_ascending, tp_array_compar_descending): New
8002 functions.
8003 (ascending_option_def, qcs_flag_option_def)
8004 (thr_qcs_flags_option_defs)
8005 (make_thread_apply_all_options_def_group)
8006 (make_thread_apply_options_def_group): New.
8007 (thread_apply_all_command): Use gdb::option::process_options.
8008 (thread_apply_command_completer)
8009 (thread_apply_all_command_completer): New.
8010 (thread_apply_command): Use gdb::option::process_options.
8011 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8012 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8013 to generate help text of "thread apply". Adjust "taas"'s help.
8014 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8015 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8016
f7e13587
PA
80172019-06-13 Pedro Alves <palves@redhat.com>
8018
8019 * thread.c (thread_apply_command): Check for invalid TID with
8020 isdigit instead of !isalpha.
8021
5d707134
PA
80222019-06-13 Pedro Alves <palves@redhat.com>
8023
8024 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8025 (validate_flags_qcs): New.
8026 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8027 (validate_flags_qcs): Declare.
8028 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8029 (make_frame_apply_options_def_group): New.
8030 (frame_apply_command_count): Process options with
8031 gdb::option::process_options.
8032 (frame_apply_completer): New.
8033 (frame_apply_level_completer, frame_apply_all_completer)
8034 (frame_apply_completer): New.
8035 (_initialize_stack): Update help of "frame apply", "frame apply
8036 level", "frame apply all" and "faas" to mention supported options
8037 and install command completers.
8038 * stack.h (frame_apply_all_completer): Declare.
8039 * thread.c: Include "stack.h".
8040 (tfaas_command): Add "--".
8041 (_initialize_thread): Update help "tfaas" to mention supported
8042 options and install command completer.
8043
272d4594
PA
80442019-06-13 Pedro Alves <palves@redhat.com>
8045
8046 * completer.c (complete_nested_command_line): New.
8047 (gdb_completion_word_break_characters_throw): Add assertion.
8048 * completer.h (complete_nested_command_line): Declare.
8049
90a1ef87
PA
80502019-06-13 Pedro Alves <palves@redhat.com>
8051
8052 * stack.c (parse_backtrace_qualifiers): New.
8053 (backtrace_command): Use it.
8054 (backtrace_command_completer): Complete on qualifiers.
8055
d4c16835
PA
80562019-06-13 Pedro Alves <palves@redhat.com>
8057
8058 * frame.c: Include "cli/cli-option.h.
8059 (user_set_backtrace_options): New.
8060 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8061 Delete.
8062 (get_prev_frame): Adjust.
8063 (boolean_option_def, uinteger_option_def)
8064 (set_backtrace_option_defs): New.
8065 (_initialize_frame): Adjust and use
8066 gdb::option::add_setshow_cmds_for_options to install "set
8067 backtrace past-main" and "set backtrace past-entry".
8068 * frame.h: Include "cli/cli-option.h".
8069 (struct frame_print_options): Forward declare.
8070 (print_frame_arguments_all, print_frame_arguments_scalars)
8071 (print_frame_arguments_none): Declare.
8072 (print_entry_values): Delete declaration.
8073 (struct frame_print_options, user_frame_print_options): New.
8074 (struct set_backtrace_options): New.
8075 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8076 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8077 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8078 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8079 (list_args_or_locals): Add frame_print_options parameter.
8080 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8081 * python/py-framefilter.c (enumerate_args): Pass down
8082 USER_FRAME_PRINT_OPTIONS.
8083 * stack.c: Include "cli/cli-option.h".
8084 (print_frame_arguments_all, print_frame_arguments_scalars)
8085 (print_frame_arguments_none): Declare.
8086 (print_raw_frame_arguments, print_entry_values): Delete.
8087 (user_frame_print_options): New.
8088 (boolean_option_def, enum_option_def, frame_print_option_defs):
8089 New.
8090 (struct backtrace_cmd_options): New.
8091 (bt_flag_option_def): New.
8092 (backtrace_command_option_defs): New.
8093 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8094 (print_frame_arg, read_frame_arg, print_frame_args)
8095 (print_frame_info, print_frame): Add frame_print_options parameter
8096 and use it.
8097 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8098 (backtrace_command_1): Add frame_print_options and
8099 backtrace_cmd_options parameters and use them.
8100 (make_backtrace_options_def_group): New.
8101 (backtrace_command): Process command options with
8102 gdb::option::process_options.
8103 (backtrace_command_completer): New.
8104 (_initialize_stack): Extend "backtrace"'s help to mention
8105 supported options. Install completer for "backtrace".
8106 Install some settings commands with add_setshow_cmds_for_options.
8107
2daf894e
PA
81082019-06-13 Pedro Alves <palves@redhat.com>
8109
8110 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8111 and that "set/show print raw frame-arguments" are now deprecated.
8112
8113 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8114 command.
8115 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8116 * stack.c (_initialize_stack): Install "set/show print
8117 raw-frame-arguments", and deprecate "set/show print raw
8118 frame-arguments".
8119 * valprint.c (_initialize_valprint): Deprecate "set/show print
8120 raw".
8121
e6ed716c
PA
81222019-06-13 Pedro Alves <palves@redhat.com>
8123
8124 * compile/compile.c (struct compile_options): New.
8125 (compile_flag_option_def, compile_command_option_defs)
8126 (make_compile_options_def_group): New.
8127 (compile_file_command): Handle options with
8128 gdb::option::process_options.
8129 (compile_file_command_completer): New function.
8130 (compile_code_command): Handle options with
8131 gdb::option::process_options.
8132 (compile_code_command_completer): New function.
8133 (_initialize_compiler): Install completers for "compile code" and
8134 "compile file". Mention available options in "compile code" and
8135 "compile code"'s help.
8136 * completer.c (advance_to_completion_word): New, factored out from
8137 ...
8138 (advance_to_expression_complete_word_point): ... this.
8139 (advance_to_filename_complete_word_point): New.
8140 * completer.h (advance_to_filename_complete_word_point): New
8141 declaration.
8142
7d8062de
PA
81432019-06-13 Pedro Alves <palves@redhat.com>
8144
8145 * compile/compile.c: Include "cli/cli-option.h".
8146 (compile_print_value): Scope data pointer is now a
8147 value_print_options pointer; adjust.
8148 (compile_print_command): Process options. Scope data pointer is
8149 now a value_print_options pointer; adjust.
8150 (_initialize_compile): Update "compile print"'s help to include
8151 supported options. Install a completer for "compile print".
8152 * cp-valprint.c (show_vtblprint, show_objectprint)
8153 (show_static_field_print): Delete.
8154 (_initialize_cp_valprint): Don't install "set print
8155 static-members", "set print vtbl", "set print object" here.
8156 * printcmd.c: Include "cli/cli-option.h" and
8157 "common/gdb_optional.h".
8158 (print_command_parse_format): Rework to fill in a
8159 value_print_options instead of a format_data.
8160 (print_value): Change parameter type from format_data pointer to
8161 value_print_options reference. Adjust.
8162 (print_command_1): Process options. Adjust to pass down a
8163 value_print_options.
8164 (print_command_completer): New.
8165 (_initialize_printcmd): Install print_command_completer as
8166 handle_brkchars completer for the "print" command. Update
8167 "print"'s help to include supported options.
8168 * valprint.c: Include "cli/cli-option.h".
8169 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8170 here from cp-valprint.c.
8171 (boolean_option_def, uinteger_option_def)
8172 (value_print_option_defs, make_value_print_options_def_group):
8173 New. Use gdb::option::add_setshow_cmds_for_options to install
8174 "set print elements", "set print null-stop", "set print repeats",
8175 "set print pretty", "set print union", "set print array", "set
8176 print address", "set print symbol", "set print array-indexes".
8177 * valprint.h: Include <string> and "cli/cli-option.h".
8178 (make_value_print_options_def_group): Declare.
8179 (print_value): Change parameter type from format_data pointer to
8180 value_print_options reference.
8181 (print_command_completer): Declare.
8182
9d0faba9
PA
81832019-06-13 Pedro Alves <palves@redhat.com>
8184
8185 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8186 (COMMON_SFILES): Add maint-test-settings.c.
8187 * cli/cli-decode.c (boolean_enums): New global, factored out from
8188 ...
8189 (add_setshow_boolean_cmd): ... here.
8190 * cli/cli-decode.h (boolean_enums): Declare.
8191 * cli/cli-option.c: New file.
8192 * cli/cli-option.h: New file.
8193 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8194 factored out from ...
8195 (parse_cli_boolean_value(const char *)): ... this.
8196 (is_unlimited_literal): Change parameter type to pointer to
8197 pointer. Adjust and advance ARG pointer.
8198 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8199 (parse_cli_var_enum): New, factored out from ...
8200 (do_set_command): ... this. Adjust.
8201 * cli/cli-setshow.h (parse_cli_boolean_value)
8202 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8203 (parse_cli_var_enum): Declare.
8204 * cli/cli-utils.c: Include "cli/cli-option.h".
8205 (get_ulongest): New.
8206 * cli/cli-utils.h (get_ulongest): Declare.
8207 (check_for_argument): New overloads.
8208 * maint-test-options.c: New file.
8209
2c722807
PA
82102019-06-13 Pedro Alves <palves@redhat.com>
8211
8212 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8213 parse a range if "-" is at the end of the string.
8214
dee7b4c8
PA
82152019-06-13 Pedro Alves <palves@redhat.com>
8216
8217 * cli/cli-setshow.c (parse_auto_binary_operation)
8218 (parse_cli_boolean_value): Don't allow "o".
8219
dca0f6c0
PA
82202019-06-13 Pedro Alves <palves@redhat.com>
8221
8222 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8223 * NEWS: Mention maint test-settings KIND.
8224 * maint-test-settings.c: New file.
8225
597bf39d
PA
82262019-06-13 Pedro Alves <palves@redhat.com>
8227
8228 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8229 completer.
8230 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8231 "set" completers.
8232
48c410fb
PA
82332019-06-13 Pedro Alves <palves@redhat.com>
8234
8235 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8236 after item.
8237
93bcb043
PA
82382019-06-13 Pedro Alves <palves@redhat.com>
8239
8240 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8241
cbba3ecd
PA
82422019-06-13 Pedro Alves <palves@redhat.com>
8243
8244 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8245 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8246 call.
8247 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8248 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8249 calls.
8250 (check_for_argument): Skip spaces after argument.
8251
b9a3f842
PA
82522019-06-13 Pedro Alves <palves@redhat.com>
8253
8254 * thread.c (thread_apply_command): Adjust TID parsing.
8255 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8256 detected before end of string.
8257 (tid_is_in_list): Error out if LIST is invalid.
8258
3844e605
PA
82592019-06-13 Pedro Alves <palves@redhat.com>
8260
8261 * completer.c (complete_line_internal_1): Rewind completion word
8262 point.
8263 (completion_tracker::advance_custom_word_point_by): Change
8264 parameter type to int.
8265 * completer.h (completion_tracker::advance_custom_word_point_by):
8266 Likewise.
8267
00b56dbe
PA
82682019-06-13 Pedro Alves <palves@redhat.com>
8269
8270 * completer.c (advance_to_completion_word): Handle delimiters.
8271
d106773e
PA
82722019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8273
8274 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8275
08f10e02
TT
82762019-06-11 Tom Tromey <tom@tromey.com>
8277
8278 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8279 (xmalloc_failed): Move to alloc.c.
8280 * alloc.c: New file.
8281 * Makefile.in (COMMON_SFILES): Add alloc.c.
8282
1c7fe951
TT
82832019-06-11 Tom Tromey <tom@tromey.com>
8284
8285 * nat/linux-waitpid.c: Don't include server.h.
8286 (linux_debug): Remove.
8287 (my_waitpid): Update.
8288
89549d7f
TT
82892019-06-11 Tom Tromey <tromey@adacore.com>
8290
8291 * infcall.c (_initialize_infcall): Remove trailing newline from
8292 help.
8293 * user-regs.c (_initialize_user_regs): Remove trailing newline
8294 from help.
8295 * typeprint.c (_initialize_typeprint): Remove trailing newline
8296 from help.
8297 * reverse.c (_initialize_reverse): Remove trailing newlines from
8298 help.
8299 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8300 from help.
8301 * language.c (add_set_language_command): Remove trailing newline
8302 from help.
8303 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8304 help.
8305 * disasm.c (_initialize_disasm): Remove trailing newline from
8306 help.
8307 * top.c (init_main): Remove trailing newline from help.
8308 * interps.c (_initialize_interpreter): Remove trailing newline
8309 from help.
8310 * btrace.c (_initialize_btrace): Remove trailing newlines from
8311 help.
8312 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8313 from help.
8314 * python/python.c (_initialize_python): Remove trailing newline
8315 from help.
8316 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8317 help.
8318 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8319 from help. Reformat some text.
8320 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8321 from help.
8322 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8323 newline from help.
8324
86108c13
TT
83252019-06-11 Tom Tromey <tromey@adacore.com>
8326
8327 * darwin-nat.c (darwin_decode_exception_message)
8328 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8329
a7067863
AB
83302019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8331
8332 * valops.c (value_slice): Check for not allocated or not
8333 associated values.
8334
9ab08412
TV
83352019-06-10 Tom de Vries <tdevries@suse.de>
8336
8337 PR gdb/24618
8338 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8339 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8340 invalid.
8341
f19e22e9
TV
83422019-06-10 Tom de Vries <tdevries@suse.de>
8343
8344 PR gdb/24611
8345 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8346 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8347
e99f9db0
TV
83482019-06-10 Tom de Vries <tdevries@suse.de>
8349
8350 PR symtab/24545
8351 * symtab.c (struct demangled_name_entry): Add language field.
8352 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8353 static minimal symbol". Set and use language field.
8354
9bf7038b
TT
83552019-06-10 Tom Tromey <tromey@adacore.com>
8356
8357 * ada-lang.c (_initialize_ada_language): Update help text.
8358
422186a9
TT
83592019-06-10 Tom Tromey <tromey@adacore.com>
8360
8361 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8362 with a newline.
8363 * guile/guile.c (handle_boot_error): Don't end warning with a
8364 newline.
8365 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8366 warning with a newline.
8367 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8368 newline.
8369 (s12z_frame_cache): Likewise.
8370 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8371 a newline.
8372 * solib-svr4.c (disable_probes_interface): Don't end warning with
8373 a newline.
8374 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8375 newline.
8376 * python/python.c (do_finish_initialization): Don't end warning
8377 with a newline.
8378
25ce02ee
TT
83792019-06-10 Tom Tromey <tom@tromey.com>
8380
8381 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8382 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8383 gdbpy_enter.
8384
caa429d8
TT
83852019-06-10 Tom Tromey <tromey@adacore.com>
8386
8387 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8388 data.
8389 (elf_new_init): Don't call stabsread_new_init.
8390 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8391 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8392 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8393
81873cc8
TV
83942019-06-10 Tom de Vries <tdevries@suse.de>
8395
8396 PR symtab/16264
8397 PR symtab/24517
8398 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8399
4fa0265e
РИ
84002019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8401
8402 * source.c (find_and_open_source): Also rewrite relative file
8403 names.
8404
1a3da2cd
AB
84052019-04-26 Amos Bird <amosbird@gmail.com>
8406
8407 * annotate.c (annotate_thread_exited): Add "thread-exited"
8408 annotation.
8409
3847a7bf
TT
84102019-06-06 Tom Tromey <tromey@adacore.com>
8411
8412 * maint.h (class scoped_command_stats): Use
8413 DISABLE_COPY_AND_ASSIGN.
8414 <print_time>: New method.
8415 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8416 print_time.
8417 (scoped_command_stats::print_time): New method.
8418
312617a3
AB
84192019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8420
8421 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8422 instructions of lengths 6 or 8 bytes.
8423
b02f78f9
PA
84242019-06-04 Pedro Alves <palves@redhat.com>
8425
8426 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8427
8428 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8429 * breakpoint.c (condition_completer): Likewise.
8430 * cli/cli-dump.c (scan_expression): Likewise.
8431 * common/filestuff.c (mkdir_recursive): Likewise.
8432 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8433 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8434 (gdb_abspath): Likewise.
8435 * compile/compile-cplus-types.c
8436 (compile_cplus_instance::decl_name): Likewise.
8437 * completer.c (complete_explicit_location):
8438 (signal_completer, reg_or_group_completer_1): Likewise.
8439 * cp-support.c (cp_remove_params_if_any): Likewise.
8440 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8441 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8442 * infcmd.c (strip_bg_char): Likewise.
8443 * linespec.c (copy_token_string): Likewise.
8444 * mi/mi-main.c (output_cores): Likewise.
8445 * psymtab.c (psymtab_search_name):
8446 * symfile.c (test_set_ext_lang_command): Likewise.
8447 * target.c (target_fileio_read_stralloc): Likewise.
8448 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8449 * value.c (complete_internalvar): Likewise.
8450
e1f2e1a2
CB
84512019-06-04 Christian Biesinger <cbiesinger@google.com>
8452
8453 Add objfile property to gdb.Type.
d3238f7d
PA
8454 * NEWS: Mention Python API addition.
8455 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 8456
e664d728
PW
84572019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8458
8459 * NEWS: Mention the new set|show style [title|highlight].
8460 Mention changes to "show style", "help" and "apropos".
8461
66d8c862
PW
84622019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8463
8464 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8465 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8466 instead of print_help_for_command.
8467 (print_doc_of_command): New function.
8468 (help_list): Add 'apropos -v word' suggestion.
8469 (print_help_for_command): Style the command name using title style.
8470 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8471 (_initialize_cli_cmds): Describe -v in apropos_command help.
8472
9303eb2f
PW
84732019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8474
8475 * cli/cli-style.h (cli_style_option): Add name in constructor,
8476 add m_name class member, add constructor with intensity,
8477 add name class function.
8478 (cli_style_option::add_setshow_commands): Remove name argument.
8479 (highlight_style, title_style): New styles.
8480 * cli/cli-style.c (do_show): New function that shows a style
8481 characteristic styling the style name with itself.
8482 (set_style_name): New function.
8483 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8484 Update all callers according to the changes in cli/cli-style.h.
8485 * utils.h (fputs_highlighted): New function.
8486 * utils.c (fputs_highlighted): Likewise.
8487
e2c52041
PW
84882019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8489
8490 * NEWS: Mention new pipe command and new convenience variables.
8491
947d3946
PW
84922019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8493
8494 * cli/cli-cmds.c (pipe_command): New function.
8495 (_initialize_cli_cmds): Call add_com for pipe_command.
8496 Define | as an alias for pipe.
8497 (exit_status_set_internal_vars): New function.
8498 (shell_escape): Call exit_status_set_internal_vars.
8499 cli/cli-decode.c (find_command_name_length): Recognize | as
8500 a single character command.
8501
b8fd0918
PW
85022019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8503
8504 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8505 top.c (execute_command_to_ui_file): New function, mostly a copy
8506 of execute_command_to_string.
8507 (execute_command_to_string): Implement by calling
8508 execute_command_to_ui_file.
8509
68bb5386
PW
85102019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8511
8512 * top.h (saved_command_line): Remove declaration.
8513 * top.c (previous_saved_command_line, previous_repeat_arguments):
8514 New variables.
8515 (saved_command_line): Make static, define together with other
8516 'repeat variables'.
8517 (dont_repeat): Clear repeat_arguments.
8518 (repeat_previous, get_saved_command_line, save_command_line):
8519 New functions.
8520 (gdb_init): Initialize saved_command_line
8521 and previous_saved_command_line.
8522 * main.c (captured_main_1): Remove saved_command_line initialization.
8523 * event-top.c (handle_line_of_input): Update to use
8524 the new 'repeat' related functions instead of direct access to
8525 saved_command_line.
8526 * command.h (repeat_previous, get_saved_command_line,
8527 save_command_line): New declarations.
8528 (dont_repeat): Add comment.
8529
bfcdb852
TT
85302019-05-30 Tom Tromey <tromey@adacore.com>
8531
8532 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8533 Fix comment.
8534 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8535
0ef209f2
JV
85362019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8537
8538 PR cli/24587
8539 * completer.c (complete): Initialize variable word.
8540
955b06fa
SDJ
85412019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8542
8543 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8544 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8545 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8546 'body' is NULL to the outter 'if', protecting the '!is_define'
8547 situation as well.
8548
fa9c3fa0
TT
85492019-05-29 Tom Tromey <tromey@adacore.com>
8550
8551 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8552 (dwarf_unknown): New function.
8553 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8554 (dwarf_type_encoding_name): Use dwarf_unknown.
8555
4330d61d
TT
85562019-05-29 Tom Tromey <tromey@adacore.com>
8557
8558 PR c++/20020:
8559 * cp-valprint.c (cp_print_value_fields): Call
8560 cp_print_static_field inside "try".
8561
33a6bc35
TT
85622019-05-29 Tom Tromey <tromey@adacore.com>
8563
8564 * inflow.c (struct terminal_info): Add default operator=.
8565 * configure: Rebuild.
8566 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8567 -Wdeprecated-copy-dtor, -Wredundant-move.
8568
000439d5
TT
85692019-05-29 Tom Tromey <tromey@adacore.com>
8570
8571 * NEWS: Add entry.
8572 * infcmd.c (print_return_value_1): Handle finish_print
8573 option.
8574 (show_print_finish): New function.
8575 (_initialize_infcmd): Add "set/show print finish" commands.
8576 * valprint.c (user_print_options): Initialize new member.
8577 * valprint.h (struct value_print_options) <finish_print>: New
8578 member.
8579
c0e70c62
TT
85802019-05-28 Tom Tromey <tromey@adacore.com>
8581
8582 * ada-lang.c (ada_remove_Xbn_suffix)
8583 (find_old_style_renaming_symbol)
8584 (parse_old_style_renaming): Remove.
8585 (ada_find_renaming_symbol): Don't call
8586 find_old_style_renaming_symbol.
8587 (ada_is_renaming_symbol): Rename from
8588 ada_find_renaming_symbol. Remove "block" parameter. Return
8589 bool. Now static.
8590 (ada_read_var_value): Update and simplify.
8591 * ada-exp.y (write_var_or_type): Remove old code.
8592
766f8836
AH
85932019-05-28 Alan Hayward <alan.hayward@arm.com>
8594
68255adc 8595 PR gdb/25010
766f8836
AH
8596 * event-top.c: Remove include comment.
8597 * inflow.c (class scoped_ignore_sigttou): Move from here...
8598 * inflow.h (class scoped_ignore_sigttou): ...to here.
8599 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8600 * top.c: Remove include comment.
8601
eb41253a
TT
86022019-05-27 Tom Tromey <tom@tromey.com>
8603
8604 * NEWS: Fix typo.
8605
4ca51187
TT
86062019-05-22 Tom Tromey <tromey@adacore.com>
8607
8608 * target.c (target_follow_exec): Constify parameter.
8609 * target-delegates.c: Rebuild.
8610 * remote.c (remote_target::follow_exec): Constify parameter.
8611 * infrun.c (follow_exec): Constify parameter.
8612 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8613 (target_follow_exec): Likewise.
8614
8fca4da0
AH
86152019-05-22 Alan Hayward <alan.hayward@arm.com>
8616
8617 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8618 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8619
b7060614
AH
86202019-05-22 Alan Hayward <alan.hayward@arm.com>
8621
8622 * NEWS: Add debugredirect and testsuite sections.
8623
0a5954bd
SC
86242019-05-22 Simon Cook <simon.cook@embecosm.com>
8625
8626 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8627 target descriptions using exclusively floating point register name
8628 aliases.
8629
dc42e902
AB
86302019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8631
8632 PR gdb/18644:
8633 * f-lang.c (build_fortran_types): Handle the case where
8634 gdbarch_floatformat_for_type returns a nullptr.
8635
fb7806c7
TV
86362019-05-21 Tom de Vries <tdevries@suse.de>
8637
8638 PR cli/24587
8639 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8640
34d11c68
AB
86412019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8642
8643 PR gdb/18644:
8644 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8645 16-byte floats.
8646 * i386-tdep.c (i386_floatformat_for_type): Use
8647 floatformats_ia64_quad for the 16-byte floating point component
8648 within a fortran 32-byte complex number.
8649
122cf0f2
AB
86502019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8651
8652 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8653 delete default constructor.
8654 (find_partial_die): Update to return const struct.
8655 (partial_die_parent_scope): Move variable declaration into scope
8656 of its use and change its type to auto.
8657 (guess_partial_die_structure_name): Likewise.
8658 (partial_die_info::fixup): Likewise.
8659
33d0e35a
TT
86602019-05-17 Tom Tromey <tromey@adacore.com>
8661
8662 * source.c (find_and_open_source): Remove cast.
8663
a45575b0
TT
86642019-05-17 Tom Tromey <tromey@adacore.com>
8665
8666 * annotate.c (annotate_source): Make "filename" const.
8667 * annotate.h (annotate_source): Use const.
8668
81f47ac2
AH
86692019-05-17 Alan Hayward <alan.hayward@arm.com>
8670
8671 * disasm.c (set_disassembler_options): Send errors to stderr.
8672
ca1285d1
AH
86732019-05-17 Alan Hayward <alan.hayward@arm.com>
8674
8675 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8676 (cli_interp_base::set_logging): Check debug_redirect.
8677 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8678 * cli/cli-logging.c (debug_redirect): Add static variable.
8679 (pop_output_files): Add default param.
8680 (handle_redirections): Print debug setting.
8681 (show_logging_command): Likewise.
8682 (_initialize_cli_logging): Add debugredirect command.
8683 * interps.c (current_interp_set_logging): Add debug_redirect
8684 parameter.
8685 * interps.h (set_logging): Add debug_redirect parameter.
8686 (current_interp_set_logging): Likewise.
8687 * mi/mi-common.h: Likewise.
8688 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8689
86902019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
8691 Tom Tromey <tromey@adacore.com>
8692
8693 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8694 directly.
8695 * cli/cli-interp.h (make_logging_output): Remove declaration.
8696 * cli/cli-logging.c (make_logging_output): Remove function.
8697 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8698 directly.
8699 * ui-file.c (tee_file::tee_file): Remove bools.
8700 (tee_file::~tee_file): Remove deletes.
8701 * ui-file.h (tee_file): Remove bools.
8702
26648588
JV
87032019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8704
8705 * mi/mi-cmds.h (mi_cmd_complete): New function.
8706 * mi/mi-main.c (mi_cmd_complete): Likewise.
8707 * mi/mi-cmds.c: Define new MI command -complete.
8708 * NEWS: Mention new -complete command.
8709
6e035501
JV
87102019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8711
8712 * completer.h (complete): New function.
8713 * completer.c (complete): Likewise.
8714 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8715 function defined in completer.h.
8716
7d0e2ece
JV
87172019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8718
e79be6e5 8719 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 8720
fb816e8b
TV
87212019-05-17 Tom de Vries <tdevries@suse.de>
8722
8723 PR gdb/24094
8724 * dwarf2read.c (struct cu_partial_die_info): New struct.
8725 (find_partial_die): Return cu_partial_die_info.
8726 (partial_die_parent_scope, guess_partial_die_structure_name)
8727 (partial_die_info::fixup): Handle new return type of find_partial_die.
8728
677052f2
SDJ
87292019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8730
a1726c38 8731 PR breakpoints/24541
677052f2
SDJ
8732 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8733 "std::string", simplifying the algorithm.
8734
f3da9116
SDJ
87352019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8736
8737 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8738 (stap_static_probe_ops::get_probes): Likewise.
8739
f1bb75ab
SDJ
87402019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8741
8742 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8743 '-')" and "else if".
8744 (stap_parse_single_operand): Join checks for
8745 "gdbarch_stap_parse_special_token_p" and
8746 "gdbarch_stap_parse_special_token" in the same "if" statement.
8747 Invert check when verifying for operation on register
8748 displacement.
8749
3ca58cde
SDJ
87502019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8751
8752 * stap-probe.c (stap_get_opcode): Update comment.
8753 (stap_get_expected_argument_type): Likewise.
8754 (handle_stap_probe): Likewise.
8755
af2d9bee
SDJ
87562019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8757
8758 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8759 return type to 'bool'. Adjust comment. Use 'bool' when
8760 appropriate.
8761 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8762 * stap-probe.c (stap_parse_argument_1): Likewise.
8763 (stap_is_operator): Likewise.
8764 (stap_is_generic_prefix): Likewise.
8765 (stap_is_register_prefix): Likewise.
8766 (stap_is_register_indirection_prefix): Likewise.
8767 (stap_is_integer_prefix): Likewise.
8768 (stap_generic_check_suffix): Likewise.
8769 (stap_check_integer_suffix): Likewise.
8770 (stap_check_register_suffix): Likewise.
8771 (stap_check_register_indirection_suffix): Likewise.
8772 (stap_parse_register_operand): Likewise.
8773 (stap_parse_single_operand): Likewise.
8774 (stap_parse_argument_1): Likewise.
8775 (stap_probe::get_argument_count): Likewise.
8776 (stap_is_operator): Likewise.
8777
61c9c421
TT
87782019-05-16 Tom Tromey <tromey@adacore.com>
8779
8780 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8781 keyword to foreach.
8782
9ddc1af1
SM
87832019-05-15 Simon Marchi <simon.marchi@efficios.com>
8784
8785 * linux-thread-db.c (try_thread_db_load_1): Change return type
8786 to bool.
8787 (try_thread_db_load): Likewise.
8788 (try_thread_db_load_from_pdir_1): Likewise.
8789 (try_thread_db_load_from_pdir): Likewise.
8790 (try_thread_db_load_from_sdir): Likewise.
8791 (try_thread_db_load_from_dir): Likewise.
8792 (thread_db_load_search): Likewise.
8793 (has_libpthread): Likewise.
8794 (thread_db_load): Likewise.
8795
7bede828
SDJ
87962019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8797
8798 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8799 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8800 NULL, and complain/return if that's the case.
8801
c5358db4
JD
88022019-05-15 John Darrington <john@darrington.wattle.id.au>
8803
8804 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8805 (advance, posn, abstract_read_memory): New functions.
8806 [struct mem_read_abstraction]: New struct.
8807 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8808
c408a94f
TT
88092019-05-14 Tom Tromey <tromey@adacore.com>
8810
8811 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8812 value is not lval_memory.
8813
e7bd7fba
TT
88142019-05-14 Tom Tromey <tromey@adacore.com>
8815
8816 * solib.c (info_sharedlibrary_command): Style the file name.
8817
a6d0f249
AH
88182019-05-14 Alan Hayward <alan.hayward@arm.com>
8819
8820 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8821 (aarch64_vnv_type): Likewise.
8822 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8823 * common/tdesc.c: Likewise.
8824 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8825 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8826 * features/aarch64-fpu.xml: Add ieee half view.
8827 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8828 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8829 * gdbtypes.h (struct builtin_type): Likewise.
8830 (struct objfile_type): Likewise.
8831
66b8bb74
SM
88322019-05-12 Paul Naert <paul.naert@polymtl.ca>
8833
8834 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8835 typo.
8836 * location.h (string_to_event_location): Likewise.
8837
21c219fd
JB
88382019-05-11 Joel Brobecker <brobecker@adacore.com>
8839
8840 GDB 8.3 released.
8841
13674803
SM
88422019-05-10 Simon Marchi <simon.marchi@efficios.com>
8843
8844 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8845 New variable declaration.
8846 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8847 New variable.
8848 (print_one_breakpoint): Use ui_out::test_flags and new global
8849 variable to compute use_fixed_output.
8850 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8851 Remove.
8852 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8853 (mi_multi_location_breakpoint_output_fixed): Remove.
8854 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8855 new variable.
8856 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8857 fix_multi_location_breakpoint_output flag if version >= 3.
8858 * ui-out.h (enum ui_out_flag)
8859 <fix_multi_location_breakpoint_output>: New enumerator.
8860
a9eac7f9
SM
88612019-05-10 Simon Marchi <simon.marchi@efficios.com>
8862
8863 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8864
71bed2db
TT
88652019-05-10 Tom Tromey <tromey@adacore.com>
8866
8867 * ada-lang.c (catch_ada_completer): New function.
8868 (_initialize_ada_language): Use it.
8869
24c54127
TT
88702019-05-10 Tom Tromey <tromey@adacore.com>
8871
8872 * thread.c (print_thread_info): Make "requested_threads" const.
8873 * gdbthread.h (print_thread_info): Make "requested_threads"
8874 const.
8875 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8876 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8877
7a102139
TT
88782019-05-08 Tom Tromey <tom@tromey.com>
8879
8880 * gdbtypes.c (objfile_type_data): Change type.
8881 (objfile_type, _initialize_gdbtypes): Update.
8882
924d79e2
TT
88832019-05-08 Tom Tromey <tom@tromey.com>
8884
8885 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8886 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8887 (_initialize_dwarf2_frame): Update.
8888
4c58e337
TT
88892019-05-08 Tom Tromey <tom@tromey.com>
8890
8891 * objc-lang.c (objc_objfile_data): Change type.
8892 (find_methods): Update.
8893 (_initialize_objc_lang): Remove.
8894
d772d2ab
TT
88952019-05-08 Tom Tromey <tom@tromey.com>
8896
8897 * stabsread.c (rs6000_builtin_type_data): Change type.
8898 (rs6000_builtin_type, _initialize_stabsread): Update.
8899
d11d83f4
TT
89002019-05-08 Tom Tromey <tom@tromey.com>
8901
8902 * mips-tdep.c (mips_pdr_data): Remove.
8903 (_initialize_mips_tdep): Update.
8904
9a73f0ad
TT
89052019-05-08 Tom Tromey <tom@tromey.com>
8906
8907 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8908 (hppa_init_objfile_priv_data, read_unwind_info)
8909 (find_unwind_entry, _initialize_hppa_tdep): Update.
8910
8127a2fa
TT
89112019-05-08 Tom Tromey <tom@tromey.com>
8912
8913 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8914 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8915 on obstack.
8916 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8917
91d3055d
TT
89182019-05-08 Tom Tromey <tom@tromey.com>
8919
8920 * mdebugread.c (basic_type_data): Change type.
8921 (basic_type, _initialize_mdebugread): Update.
8922
31930bd3
TT
89232019-05-08 Tom Tromey <tom@tromey.com>
8924
8925 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8926
bdb3ed9e
TT
89272019-05-08 Tom Tromey <tom@tromey.com>
8928
8929 * nto-tdep.c (nto_inferior_data_reg): Change type.
8930 (nto_inferior_data): Update.
8931 (nto_inferior_data_cleanup, nto_new_inferior_data)
8932 (_initialize_nto_tdep): Remove.
8933 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8934
f37b313d
TT
89352019-05-08 Tom Tromey <tom@tromey.com>
8936
8937 * ada-lang.c (struct ada_inferior_data): Add initializers.
8938 (ada_inferior_data): Change type.
8939 (ada_inferior_data_cleanup): Remove.
8940 (get_ada_inferior_data, ada_inferior_exit)
8941 (struct ada_pspace_data): Add initializers, destructor.
8942 (ada_pspace_data_handle): Change type.
8943 (get_ada_pspace_data): Update.
8944 (ada_pspace_data_cleanup): Remove.
8945
24699405
TT
89462019-05-08 Tom Tromey <tom@tromey.com>
8947
8948 * coffread.c (struct coff_symfile_info): Add initializers.
8949 (coff_objfile_data_key): Move lower. Change type.
8950 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8951 Update.
8952 (coff_free_info): Remove.
8953
d4e05d2f
TT
89542019-05-08 Tom Tromey <tom@tromey.com>
8955
8956 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8957 (fbsd_pspace_data_handle): Move lower. Change type.
8958 (get_fbsd_pspace_data): Update.
8959 (fbsd_pspace_data_cleanup): Remove.
8960 (_initialize_fbsd_tdep): Update.
8961
14ef6690
TT
89622019-05-08 Tom Tromey <tom@tromey.com>
8963
8964 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8965 (get_ada_tasks_pspace_data): Update.
8966 (ada_tasks_pspace_data_cleanup): Remove.
8967 (_initialize_tasks): Update.
8968 (ada_tasks_inferior_data_handle): Change type.
8969 (get_ada_tasks_inferior_data): Update.
8970 (ada_tasks_inferior_data_cleanup): Remove.
8971 (struct ada_tasks_pspace_data): Add initializers.
8972
814cf43a
TT
89732019-05-08 Tom Tromey <tom@tromey.com>
8974
8975 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8976 * symfile-debug.c (debug_sym_get_probes): Change type.
8977 * stap-probe.c (handle_stap_probe):
8978 (stap_static_probe_ops::get_probes): Change type.
8979 * probe.h (class static_probe_ops) <get_probes>: Change type.
8980 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8981 (parse_probes_in_pspace): Update.
8982 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8983 Update.
8984 (any_static_probe_ops::get_probes): Change type.
8985 * elfread.c (elfread_data): New typedef.
8986 (probe_key): Change type.
8987 (elf_get_probes): Likewise. Update.
8988 (probe_key_free): Remove.
8989 (_initialize_elfread): Update.
8990 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8991 Change type.
8992 (dtrace_process_dof_probe, dtrace_process_dof)
8993 (dtrace_static_probe_ops::get_probe): Change type.
8994
02dc647e
TT
89952019-05-08 Tom Tromey <tom@tromey.com>
8996
8997 * xcoffread.c (struct xcoff_symfile_info): Rename from
8998 coff_symfile_info. Add initializers.
8999 (xcoff_objfile_data_key): Move lower. Change type.
9000 (XCOFF_DATA): Rewrite.
9001 (xcoff_free_info): Remove.
9002 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9003 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9004 (xcoff_initial_scan): Update.
9005
09232438
TT
90062019-05-08 Tom Tromey <tom@tromey.com>
9007
9008 * solib-svr4.c (struct svr4_info): Add initializers and
9009 destructor.
9010 <probes_table>: Now an htab_up.
9011 (solib_svr4_pspace_data): Change type.
9012 (free_probes_table): Simplify.
9013 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9014 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9015 (probes_table_remove_objfile_probes, register_solib_event_probe)
9016 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9017 (_initialize_svr4_solib): Update.
9018
7b4a314f
TT
90192019-05-08 Tom Tromey <tom@tromey.com>
9020
9021 * remote.c (remote_pspace_data): Change type.
9022 (remote_pspace_data_cleanup): Remove.
9023 (get_remote_exec_file, set_pspace_remote_exec_file)
9024 (_initialize_remote): Update.
9025
51d3063a
TT
90262019-05-08 Tom Tromey <tom@tromey.com>
9027
9028 * breakpoint.c (breakpoint_objfile_key): Change type.
9029 (get_breakpoint_objfile_data): Update.
9030 (free_breakpoint_objfile_data): Remove.
9031 (_initialize_breakpoint): Update.
9032
89fb8848
TT
90332019-05-08 Tom Tromey <tom@tromey.com>
9034
9035 * linux-tdep.c (struct linux_info): Add initializers.
9036 (linux_inferior_data): Move. Change type.
9037 (invalidate_linux_cache_inf): Update.
9038 (linux_inferior_data_cleanup): Remove.
9039 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9040
e9b89e2d
TT
90412019-05-08 Tom Tromey <tom@tromey.com>
9042
9043 * auxv.c (auxv_inferior_data): Move. Change type.
9044 (auxv_inferior_data_cleanup): Remove.
9045 (invalidate_auxv_cache_inf): Rewrite.
9046 (get_auxv_inferior_data, _initialize_auxv): Update.
9047
8c42777c
TT
90482019-05-08 Tom Tromey <tom@tromey.com>
9049
9050 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9051 (symfile_debug_objfile_data_key): Change type.
9052 (symfile_debug_installed, debug_qf_has_symbols)
9053 (debug_qf_find_last_source_symtab)
9054 (debug_qf_forget_cached_source_info)
9055 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9056 (debug_qf_print_stats, debug_qf_dump)
9057 (debug_qf_expand_symtabs_for_function)
9058 (debug_qf_expand_all_symtabs)
9059 (debug_qf_expand_symtabs_with_fullname)
9060 (debug_qf_map_matching_symbols)
9061 (debug_qf_expand_symtabs_matching)
9062 (debug_qf_find_pc_sect_compunit_symtab)
9063 (debug_qf_map_symbol_filenames)
9064 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9065 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9066 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9067 (debug_sym_read_linetable, debug_sym_relocate): Update.
9068 (symfile_debug_free_objfile): Remove.
9069 (install_symfile_debug_logging, _initialize_symfile_debug):
9070 Update.
9071
5bfd760d
TT
90722019-05-08 Tom Tromey <tom@tromey.com>
9073
9074 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9075 allocate_on_obstack.
9076 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9077 (get_dwarf2_per_objfile): Update.
9078 (set_dwarf2_per_objfile): Remove.
9079 (dwarf2_has_info, dwarf2_get_section_info): Update.
9080 (dwarf2_free_objfile): Remove.
9081 (_initialize_dwarf2_read): Update.
9082
e85e19b4
TT
90832019-05-08 Tom Tromey <tom@tromey.com>
9084
9085 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9086 initializers.
9087 <unsupported_script_warning_printed,
9088 script_not_found_warning_printed>: Now bool.
9089 (auto_load_pspace_data): Change type.
9090 (~auto_load_pspace_info): Rename from
9091 auto_load_pspace_data_cleanup.
9092 (get_auto_load_pspace_data, init_loaded_scripts_info)
9093 (clear_section_scripts, maybe_print_unsupported_script_warning)
9094 (maybe_print_script_not_found_warning, _initialize_auto_load):
9095 Update.
9096
f6aa7436
TT
90972019-05-08 Tom Tromey <tom@tromey.com>
9098
9099 * objfiles.c (objfile_pspace_info): Add destructor and
9100 initializers.
9101 (objfiles_pspace_data): Change type.
9102 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9103 (get_objfile_pspace_data): Update.
9104 (objfiles_bfd_data): Change type.
9105 (get_objfile_bfd_data): Update.
9106 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9107
6ae614f6
TT
91082019-05-08 Tom Tromey <tom@tromey.com>
9109
9110 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9111 Change type.
9112 (get_catch_syscall_inferior_data): Update.
9113 (catch_syscall_inferior_data_cleanup): Remove.
9114 (_initialize_break_catch_syscall): Update.
9115
6509b8eb
TT
91162019-05-08 Tom Tromey <tom@tromey.com>
9117
9118 * inflow.c (struct terminal_info): Add destructor and
9119 initializers.
9120 (inflow_inferior_data): Change type.
9121 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9122 (get_inflow_inferior_data, inflow_inferior_exit)
9123 (swap_terminal_info, _initialize_inflow): Update.
9124
35632941
TT
91252019-05-08 Tom Tromey <tom@tromey.com>
9126
9127 * target-dcache.c (target_dcache_cleanup): Remove.
9128 (target_dcache_aspace_key): Change type.
9129 (target_dcache_init_p, target_dcache_invalidate)
9130 (target_dcache_get, target_dcache_get_or_init)
9131 (_initialize_target_dcache): Update.
9132 * dcache.h (struct dcache_deleter): New.
9133
3017b94d
TT
91342019-05-08 Tom Tromey <tom@tromey.com>
9135
9136 * symtab.c (struct symbol_cache): Add destructor and
9137 initializers.
9138 (symbol_cache_key): Move. Change type.
9139 (make_symbol_cache, free_symbol_cache): Remove.
9140 (get_symbol_cache): Update.
9141 (symbol_cache_cleanup): Remove.
9142 (ALL_PSPACES, symbol_cache_flush)
9143 (maintenance_print_symbol_cache)
9144 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9145 Update.
9146
a32ad8c5
TT
91472019-05-08 Tom Tromey <tom@tromey.com>
9148
9149 * symtab.c (struct main_info): Add destructor and initializers.
9150 (main_progspace_key): Move. Change type.
9151 (get_main_info): Update.
9152 (main_info_cleanup): Remove.
9153 (_initialize_symtab): Update.
9154
5f6e90a0
TT
91552019-05-08 Tom Tromey <tom@tromey.com>
9156
9157 * registry.h (DECLARE_REGISTRY): Define the _key class.
9158
1bd0c6e4
AB
91592019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9160
9161 * NEWS: Merge two 'New commands' sections.
9162
2228ef77
XR
91632019-05-08 Joel Brobecker <brobecker@adacore.com>
9164
9165 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9166 parameter and use Ada language definition instead.
9167 (ada_val_print_ptr): Remove unused language parameter.
9168 (ada_val_print_num): Remove language parameter and use Ada language
9169 definition instead.
9170 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9171 parameter.
9172 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9173 parameter and use Ada language definition instead.
9174 (ada_val_print_1): Update all ada_val_print_xxx calls.
9175 Remove language parameter.
9176 (ada_val_print): Update ada_val_print_1 call.
9177
60fcc1c3
TT
91782019-05-08 Tom Tromey <tromey@adacore.com>
9179
9180 * remote.c (remote_hw_watchpoint_limit)
9181 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9182 Now static.
9183
ed2b7c17
TT
91842019-05-08 Tom Tromey <tromey@adacore.com>
9185
9186 * maint.c (_initialize_maint_cmds): Move initialization code to
9187 remote.c.
9188 (watchdog, show_watchdog): Move to remote.c.
9189 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9190 "watchdog" static.
9191 (_initialize_remote): Move initialization code from maint.c.
9192 * defs.h (watchdog): Don't declare.
9193
b0be6c91
TT
91942019-05-08 Tom Tromey <tromey@adacore.com>
9195
9196 * tui/tui-interp.c: Include main.h.
9197 * interps.c: Include main.h.
9198 * main.h (interpreter_p): Declare.
9199 * defs.h (interpreter_p): Don't declare.
9200
587ee17b
TT
92012019-05-08 Tom Tromey <tromey@adacore.com>
9202
9203 * dwarf2loc.c: Include dwarf2read.h.
9204 * defs.h (read_unsigned_leb128): Don't declare.
9205 * dwarf2read.h (read_unsigned_leb128): Declare.
9206
ca1df239
TT
92072019-05-08 Tom Tromey <tromey@adacore.com>
9208
9209 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9210 method.
9211
99f20f08
TT
92122019-05-08 Tom Tromey <tromey@adacore.com>
9213
9214 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9215 when no wrap column is set.
9216
80e55b13
TT
92172019-05-08 Tom Tromey <tromey@adacore.com>
9218
9219 * c-lang.c (c_get_string): Handle non-C-style arrays.
9220
9d3421af
TT
92212019-05-08 Tom Tromey <tromey@adacore.com>
9222
9223 * typeprint.c (print_offset_data::update): Print the bit offset,
9224 not the number of bits remaining.
9225
844333e2
TT
92262019-05-08 Tom Tromey <tromey@adacore.com>
9227
9228 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9229 padding at end of comment.
9230
988915ee
TT
92312019-05-08 Tom Tromey <tromey@adacore.com>
9232
9233 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9234 Compare main types.
9235
26bfd823
TT
92362019-05-06 Tom Tromey <tom@tromey.com>
9237
9238 * common/scoped_mmap.c: Include common-defs.h.
9239 * common/scoped_mmap.h: Don't include config.h.
9240
89055eaa
TT
92412019-05-04 Tom Tromey <tom@tromey.com>
9242
9243 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9244 (struct aarch64_call_info): Add initializers.
9245 <si>: Now a std::vector.
9246 (pass_on_stack, aarch64_push_dummy_call): Update.
9247
5da01df5
TT
92482019-05-04 Simon Marchi <simon.marchi@efficios.com>
9249 Tom Tromey <tom@tromey.com>
9250
9251 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9252 (ppc_threads): Now a std::vector. Now static.
9253 (hwdebug_find_thread_points_by_tid)
9254 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9255 Update.
9256
fbdf05a1
TT
92572019-05-04 Tom Tromey <tom@tromey.com>
9258
9259 * arc-tdep.c (arc_tdesc_init): Return bool.
9260
06d16ec9
TT
92612019-05-04 Tom Tromey <tom@tromey.com>
9262
9263 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9264 Use gdb_assert_not_reached.
9265
9c056022
TT
92662019-05-04 Tom Tromey <tom@tromey.com>
9267
9268 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9269 "false".
9270
fa9c2a59
TT
92712019-05-04 Tom Tromey <tom@tromey.com>
9272
9273 * arc-tdep.c (arc_tdesc_init): Use bool.
9274
e2eb806a
TT
92752019-05-04 Tom Tromey <tom@tromey.com>
9276
9277 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9278
6fe87677
TT
92792019-05-04 Tom Tromey <tom@tromey.com>
9280
9281 * cli/cli-cmds.c (valid_command_p): Return bool.
9282
7f008c9e
TT
92832019-05-04 Tom Tromey <tom@tromey.com>
9284
9285 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9286 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9287
b6484282
RT
92882019-05-04 Raul Tambre <raul@tambre.ee>
9289
9290 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9291 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9292 operator for comparison.
9293
af97b416
TT
92942019-05-04 Tom Tromey <tom@tromey.com>
9295
9296 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9297 (lookup_partial_symbol, print_partial_symbols)
9298 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9299 (psymbol_compare): Update.
9300 (add_psymbol_to_bcache): Clear the entire psymbol.
9301 (maintenance_check_psymtabs): Update.
9302 * psympriv.h (struct partial_symbol): Don't derive from
9303 general_symbol_info.
9304 <obj_section, unrelocated_address, address,
9305 set_unrelocated_address>: Update.
9306 <ginfo>: New member.
9307 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9308 (debug_names::write_psymbols): Update.
9309
9d6d4be8
TV
93102019-05-04 Tom de Vries <tdevries@suse.de>
9311
9312 * contrib/cc-with-tweaks.sh: Support -n arg.
9313
66452beb
PW
93142019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9315
9316 * corelow.c (core_target::detach): Ensure frame cache and
9317 register caches are cleared.
9318 inferior.c (exit_inferior_1): Likewise.
9319
bde09ab7
TT
93202019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9321 Tom Tromey <tom@tromey.com>
9322
9323 * dictionary.c (collate_pending_symbols_by_language): Remove
9324 "struct" from foreach.
9325 * symtab.c (lookup_global_symbol_from_objfile)
9326 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9327 foreach.
9328 * ser-tcp.c (net_open): Remove "struct" from foreach.
9329 * objfiles.c (objfile_relocate, objfile_rebase)
9330 (objfile_has_symbols): Remove "struct" from foreach.
9331 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9332 from foreach.
9333 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9334 foreach.
9335 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9336 "struct" from foreach.
9337 * ada-lang.c (create_excep_cond_exprs)
9338 (ada_exception_catchpoint_cond_string): Remove "struct" from
9339 foreach.
9340
222a8d25
TT
93412019-05-03 Tom Tromey <tromey@adacore.com>
9342
9343 * ada-exp.y (convert_char_literal): Check suffix of each
9344 enumerator.
9345
fcd60b84
DP
93462019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9347
9348 PR ada/21406:
9349 * ada-exp.y (yywrap): Don't define.
9350 * ada-lex.l (%option): Add noyywrap
9351 (yywrap): Remove.
9352
5f2459c2
EZ
93532019-05-03 Eli Zaretskii <eliz@gnu.org>
9354
353ea2d1
EZ
9355 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9356 _WIN32_WINNT to the XP level, unless already defined to a higher
9357 level.
9358
9359 * unittests/parse-connection-spec-selftests.c:
9360 * ser-tcp.c:
9361 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9362 override.
9363
5f2459c2
EZ
9364 * symfile.c (find_separate_debug_file): Remove colon from the
9365 drive spec of DOS/Windows file names of the target, so that the
9366 file name produced from DEBUGDIR and the target's directory will
9367 be valid on DOS/Windows systems.
9368
80062eb9
AB
93692019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9370
9371 * rust-lang.c (val_print_struct): Handle printing structures
9372 containing strings.
9373
b8c05e85
TT
93742019-05-02 Tom Tromey <tromey@adacore.com>
9375
9376 * valarith.c (_initialize_valarith): Remove.
9377
4504bbde
TT
93782019-05-01 Tom Tromey <tromey@adacore.com>
9379
9380 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9381 bitfields.
9382
d48e62f4
TT
93832019-05-01 Tom Tromey <tromey@adacore.com>
9384
9385 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9386 for big-endian copies.
9387
15f18d14
AT
93882019-04-30 Ali Tamur <tamur@google.com>
9389 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9390 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9391 (read_3_bytes): New function.
9392
ab4ee614
JB
93932019-04-30 Joel Brobecker <brobecker@adacore.com>
9394
9395 * windows-nat.c (main_thread_id): Delete.
9396 (handle_output_debug_string): Replace main_thread_id by
9397 current_event.dwThreadId.
9398 (fake_create_process): Likewise.
9399 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9400 Do not set main_thread_id.
9401 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9402 current_event.dwThreadId.
9403 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9404
8ed5b76e
JB
94052019-04-30 Joel Brobecker <brobecker@adacore.com>
9406
9407 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9408 Use current_event.dwThreadId instead of main_thread_id.
9409
2ff0a947
TT
94102019-04-30 Tom Tromey <tromey@adacore.com>
9411
9412 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9413 (create_excep_cond_exprs): Iterate over program spaces.
9414 (ada_exception_catchpoint_cond_string): Examine all minimal
9415 symbols for exception types.
9416
a776957c
TT
94172019-04-30 Tom Tromey <tromey@adacore.com>
9418
9419 PR c++/24470:
9420 * dwarf2read.c (process_structure_scope): Handle case where type
9421 has template parameters but no symbol was created.
9422
bc68014d
AB
94232019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9424 Chris January <chris.january@arm.com>
9425
9426 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9427 qualifier.
9428 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9429
f1fdc960
AB
94302019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9431
9432 * f-typeprint.c (f_print_type): Update rules for printing
9433 whitespace.
9434 (f_type_print_varspec_suffix): Likewise.
9435
bf7a4de1
AB
94362019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9437 Chris January <chris.january@arm.com>
9438
9439 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9440 function arguments.
9441
bbe75b9d
AB
94422019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9443
9444 * f-lang.c (build_fortran_types): Change name of void type to
9445 lower case.
9446 * f-typeprint.c (f_type_print_base): Print the name of the void
9447 type, rather than a fixed string.
9448 * f-valprint.c (f_decorations): Use lower case void string.
9449
1db455a7
AB
94502019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9451 Chris January <chris.january@arm.com>
9452
9453 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9454 types for Fortran.
9455
b6d03bb2
AB
94562019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9457 Chris January <chris.january@arm.com>
9458 David Lecomber <david.lecomber@arm.com>
9459
9460 * f-exp.y (BINOP_INTRINSIC): New token.
9461 (exp): New parser rule handling BINOP_INTRINSIC.
9462 (f77_keywords): Add new builtin procedures.
9463 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9464 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9465 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9466 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9467 (print_unop_subexp_f): New function.
9468 (print_binop_subexp_f): New function.
9469 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9470 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9471 (dump_subexp_body_f): Likewise.
9472 (operator_check_f): Likewise.
9473 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9474 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9475
83228e93
AB
94762019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9477
9478 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9479 UNOP_KIND.
9480 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9481 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9482 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9483 (operator_length_f): New fuction.
9484 (print_subexp_f): New function.
9485 (op_name_f): New function.
9486 (dump_subexp_body_f): New function.
9487 (operator_check_f): New function.
9488 (exp_descriptor_f): Replace standard expression handling functions
9489 with new functions.
9490 * gdb/fortran-operator.def: New file.
9491 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9492 * gdb/std-operator.def: Remove UNOP_KIND.
9493
6fdcd7cc
AB
94942019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9495
9496 * std-operator.def: Remove unbalanced, stray double quote
9497 character.
9498
2e62ab40
AB
94992019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9500 Chris January <chris.january@arm.com>
9501 Daniel Everett <daniel.everett@arm.com>
9502 Nick Forrington <nick.forrington@arm.com>
9503 Richard Bunt <richard.bunt@arm.com>
9504
9505 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9506 of depth when printing anonymous structs or unions.
9507 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9508 Don't print either the top-level value, or the children if the
9509 max-depth is exceeded.
9510 (ppscm_print_children): When printing the key of a map, allow one
9511 extra level of depth.
9512 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9513 print either the top-level value, or the children if the max-depth
9514 is exceeded.
9515 (print_children): When printing the key of a map, allow one extra
9516 level of depth.
9517 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9518 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9519 (user_print_options): Initialise max_depth field.
9520 (val_print_scalar_or_string_type_p): New function.
9521 (val_print): Check to see if the max depth has been reached.
9522 (val_print_check_max_depth): Define new function.
9523 (show_print_max_depth): New function.
9524 (_initialize_valprint): Add 'print max-depth' option.
9525 * valprint.h (struct value_print_options) <max_depth>: New field.
9526 (val_print_check_max_depth): Declare new function.
9527 * NEWS: Document new feature.
9528
4be290b2
AB
95292019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9530
9531 * ada-lang.c (ada_language_defn): Initialise new field.
9532 * c-lang.c (c_is_string_type_p): New function.
9533 (c_language_defn): Initialise new field.
9534 (cplus_language_defn): Initialise new field.
9535 (asm_language_defn): Initialise new field.
9536 (minimal_language_defn): Initialise new field.
9537 * c-lang.h (c_is_string_type_p): Declare new function.
9538 * d-lang.c (d_language_defn): Initialise new field.
9539 * f-lang.c (f_is_string_type_p): New function.
9540 (f_language_defn): Initialise new field.
9541 * go-lang.c (go_is_string_type_p): New function.
9542 (go_language_defn): Initialise new field.
9543 * language.c (default_is_string_type_p): New function.
9544 (unknown_language_defn): Initialise new field.
9545 (auto_language_defn): Initialise new field.
9546 * language.h (struct language_defn) <la_is_string_type_p>: New
9547 member variable.
9548 (default_is_string_type_p): Declare new function.
9549 * m2-lang.c (m2_language_defn): Initialise new field.
9550 * objc-lang.c (objc_language_defn): Initialise new field.
9551 * opencl-lang.c (opencl_language_defn): Initialise new field.
9552 * p-lang.c (pascal_is_string_type_p): New function.
9553 (pascal_language_defn): Initialise new field.
9554 * rust-lang.c (rust_is_string_type_p): New function.
9555 (rust_language_defn): Initialise new field.
9556
721b08c6
AB
95572019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9558
9559 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9560 New field.
9561 * ada-lang.c (ada_language_defn): Initialise new field.
9562 * c-lang.c (c_language_defn): Likewise.
9563 (cplus_language_defn): Likewise.
9564 (asm_language_defn): Likewise.
9565 (minimal_language_defn): Likewise.
9566 * d-lang.c (d_language_defn): Likewise.
9567 * f-lang.c (f_language_defn): Likewise.
9568 * go-lang.c (go_language_defn): Likewise.
9569 * language.c (unknown_language_defn): Likewise.
9570 (auto_language_defn): Likewise.
9571 * m2-lang.c (m2_language_defn): Likewise.
9572 * objc-lang.c (objc_language_defn): Likewise.
9573 * opencl-lang.c (opencl_language_defn): Likewise.
9574 * p-lang.c (pascal_language_defn): Likewise.
9575 * rust-lang.c (rust_language_defn): Likewise.
9576
fc913e53
AB
95772019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9578
9579 * ada-lang.c (ada_is_character_type): Change return type to bool.
9580 (ada_is_string_type): Likewise.
9581 * ada-lang.h (ada_is_character_type): Update declaration
9582 (ada_is_string_type): Likewise.
9583
fa731fa0
PW
95842019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9585
9586 Support style in 'frame|thread apply'
9587
9588 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9589 * record.c (record_start, record_stop): Update callers of
9590 execute_command_to_string with false.
9591 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9592 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9593 methods.
9594 (class string_file): New constructor with term_out parameter.
9595 Override methods term_out and can_emit_style_escape. New member
9596 term_out.
9597 (class stdio_file): Override can_emit_style_escape.
9598 (class tee_file): Override term_out and can_emit_style_escape.
9599 * utils.h (can_emit_style_escape): Remove.
9600 * utils.c (can_emit_style_escape): Likewise.
9601 Update all callers of can_emit_style_escape (SOMESTREAM) to
9602 SOMESTREAM->can_emit_style_escape.
9603 * source-cache.c (source_cache::get_source_lines): Likewise.
9604 * stack.c (frame_apply_command_count): Call execute_command_to_string
9605 passing the term_out characteristic of the current gdb_stdout.
9606 * thread.c (thr_try_catch_cmd): Likewise.
9607 * top.c (execute_command_to_string): pass term_out parameter
9608 to construct the string_file for the command output.
9609 * ui-file.c (term_cli_styling): New function (most code moved
9610 from utils.c can_emit_style_escape).
9611 (string_file::string_file, string_file::can_emit_style_escape,
9612 stdio_file::can_emit_style_escape, tee_file::term_out,
9613 tee_file::can_emit_style_escape): New functions.
9614
136afab8
PW
96152019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9616
9617 * NEWS: Mention the new set|show may-call-functions.
9618 * infcall.c (may_call_functions_p): New variable.
9619 (show_may_call_functions_p): New function.
9620 (call_function_by_hand_dummy): Throws an error if not
9621 may-call-functions.
9622 (_initialize_infcall): Call add_setshow_boolean_cmd for
9623 may-call-functions.
9624
725cbb63
KS
96252019-04-25 Keith Seitz <keiths@redhat.com>
9626
9627 PR c++/24367
9628 * cp-support.c (inspect_type): Don't attempt substitutions
9629 of symbol with the same name.
9630
3d1cbb78
TT
96312019-04-25 Tom Tromey <tromey@adacore.com>
9632
9633 PR gdb/24475:
9634 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9635 static.
9636
94aeb44b
TT
96372019-04-25 Tom Tromey <tromey@adacore.com>
9638
9639 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9640 rvalue reference.
9641 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9642 (gdb_xml_parser::parse): Use std::move.
9643 * python/python-internal.h (gdbpy_convert_exception): Take a const
9644 reference.
9645 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9646 std::move.
9647 * python/py-utils.c (gdbpy_convert_exception): Take a const
9648 reference.
9649 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9650 Use std::move.
9651 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9652 Use std::move.
9653 * mi/mi-main.c (mi_print_exception): Take a const reference.
9654 * main.c (handle_command_errors): Take a const reference.
9655 * linespec.c (parse_linespec): Use std::move.
9656 * infcall.c (run_inferior_call): Use std::move.
9657 (call_function_by_hand_dummy): Use std::move.
9658 * exec.c (try_open_exec_file): Use std::move.
9659 * exceptions.h (exception_print, exception_fprintf)
9660 (exception_print_same): Update.
9661 * exceptions.c (print_exception, exception_print)
9662 (exception_fprintf, exception_print_same): Change parameters to
9663 const reference.
9664 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9665 * common/new-op.c: Use std::move.
9666 * common/common-exceptions.h (struct gdb_exception): Add move
9667 constructor.
9668 (struct gdb_exception_error, struct gdb_exception_quit, struct
9669 gdb_quit_bad_alloc): Change constructor to move constructor.
9670 (throw_exception): Change parameter to rvalue reference.
9671 * common/common-exceptions.c (throw_exception): Take rvalue
9672 reference.
9673 * cli/cli-interp.c (safe_execute_command): Use std::move.
9674 * breakpoint.c (insert_bp_location, location_to_sals): Use
9675 std::move.
9676
680d7fd5
TT
96772019-04-25 Tom Tromey <tromey@adacore.com>
9678
9679 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9680 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9681 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9682 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9683 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9684 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9685 guile/scm-value.c: Use unpack.
9686 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9687 gdbscm_gdb_exception.
9688 (gdbscm_throw_gdb_exception): Likewise.
9689 (struct gdbscm_gdb_exception): New.
9690 (unpack): New function.
9691 (gdbscm_wrap): Use unpack.
9692
c6fdd8b2
TT
96932019-04-25 Tom Tromey <tromey@adacore.com>
9694
9695 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9696 (gdb_rl_callback_handler): Use std::move.
9697 * common/common-exceptions.h (struct gdb_exception): Add move
9698 assignment operator.
9699 (throw_exception_sjlj): Change "exception" to const reference.
9700 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9701 (throw_exception_sjlj): Change "exception" to const reference.
9702
cc06b668
TT
97032019-04-25 Tom Tromey <tromey@adacore.com>
9704
9705 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9706 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9707 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9708 Update.
9709 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9710 Update.
9711 * mi/mi-interp.c (mi_interp::exec): Update.
9712 * linespec.c (parse_linespec): Update.
9713 * infcall.c (run_inferior_call): Update.
9714 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9715 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9716 (gdbscm_lookup_global_symbol): Update.
9717 * guile/scm-param.c (gdbscm_parameter_value): Update.
9718 * guile/scm-frame.c (gdbscm_frame_read_register)
9719 (gdbscm_frame_read_var): Update.
9720 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9721 * exec.c (try_open_exec_file): Update.
9722 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9723 (gdb_rl_callback_handler): Update.
9724 * common/common-exceptions.h (exception_none): Don't declare.
9725 * common/common-exceptions.c (exception_none): Don't define.
9726 (struct catcher) <exception>: Update.
9727 * cli/cli-interp.c (safe_execute_command): Update.
9728 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9729
cf532bd1
AT
97302019-04-25 Ali Tamur <tamur@google.com>
9731
9732 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9733 (read_attribute_value): Likewise.
9734 (dwarf2_read_addr_index): Update comment.
9735 (read_str_index): Add DW_FORM_strx.
9736 (dwarf2_string_attr): Likewise.
9737 (dwarf2_const_value_attr): Likewise.
9738 (dump_die_shallow): Likewise.
9739 (dwarf2_fetch_constant_bytes): Likewise.
9740 (skip_form_bytes): Likewise.
9741 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9742
82433e3e
SDJ
97432019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9744
9745 PR corefiles/11608
9746 PR corefiles/18187
9747 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9748 OFFSET. Verify if current mapping contains an ELF header.
9749 (linux_find_memory_regions_full): Adjust call to
9750 dump_mapping_p.
9751
723adb65
SL
97522019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9753 Kang Li <kanglictf@gmail.com>
9754
9755 PR gdb/21600
9756
9757 * dwarf2-frame.c (read_initial_length): Be consistent about using
9758 unsigned representation of length.
9759 (decode_frame_entry_1): Likewise. Check for wraparound of
9760 end pointer as well as buffer overflow.
9761
596179f7
SDJ
97622019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9763
9764 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9765 "vq".
9766
a59240a4
TT
97672019-04-24 Tom Tromey <tromey@adacore.com>
9768
9769 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9770
f872fdbb
AB
97712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9772
9773 * s12z-tdep.c (s12z_unwind_pc): Delete.
9774 (s12z_unwind_sp): Delete.
9775 (s12z_gdbarch_init): Don't register deleted functions with
9776 gdbarch.
9777
b614e6f3
AB
97782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9779
9780 * rl78-tdep.c (rl78_unwind_sp): Delete.
9781 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9782
14faed38
AB
97832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9784
9785 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9786 (xstormy16_unwind_pc): Delete.
9787 (xstormy16_dummy_id): Delete.
9788 (xstormy16_gdbarch_init): Don't register deleted functions with
9789 gdbarch.
9790
541aad8a
AB
97912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9792
9793 * vax-tdep.c (vax_unwind_pc): Delete.
9794 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9795
29222070
AB
97962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9797
9798 * v850-tdep.c (v850_unwind_sp): Delete.
9799 (v850_unwind_pc): Delete.
9800 (v850_dummy_id): Delete.
9801 (v850_gdbarch_init): Don't register deleted functions with
9802 gdbarch.
9803
0f534d76
AB
98042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9805
9806 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9807 (tilegx_unwind_pc): Delete.
9808 (tilegx_unwind_dummy_id): Delete.
9809 (tilegx_gdbarch_init): Don't register deleted functions with
9810 gdbarch.
9811
1ba7b7f9
AB
98122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9813
9814 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9815 (tic6x_dummy_id): Delete.
9816 (tic6x_gdbarch_init): Don't register deleted functions with
9817 gdbarch.
9818
d31f262c
AB
98192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9820
9821 * sparc-tdep.c (sparc_unwind_pc): Delete.
9822 (sparc32_gdbarch_init): Don't register deleted function with
9823 gdbarch.
9824
6d14d64d
AB
98252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9826
9827 * sh-tdep.c (sh_unwind_sp): Delete.
9828 (sh_unwind_pc): Delete.
9829 (sh_dummy_id): Delete.
9830 (sh_gdbarch_init): Don't register deleted functions with
9831 gdbarch.
9832
a40dde9d
AB
98332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9834
9835 * score-tdep.c (score_unwind_sp): Delete.
9836 (score_unwind_pc): Delete.
9837 (score_dummy_id): Delete.
9838 (score_gdbarch_init): Don't register deleted functions with
9839 gdbarch.
9840
47c47d69
AB
98412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9842
9843 * rx-tdep.c (rx_unwind_pc): Delete.
9844 (rx_unwind_sp): Delete.
9845 (rx_dummy_id): Delete.
9846 (rx_gdbarch_init): Don't register deleted functions with
9847 gdbarch. Update comment.
9848
833a4480
AB
98492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9850
9851 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9852 (rs6000_dummy_id): Delete.
9853 (rs6000_gdbarch_init): Don't register deleted functions with
9854 gdbarch.
9855
3f2cef49
AB
98562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9857
9858 * or1k-tdep.c (or1k_dummy_id): Delete.
9859 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9860
96acf884
AB
98612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9862
9863 * nios2-tdep.c (nios2_dummy_id): Delete.
9864 (nios2_unwind_sp): Delete.
9865 (nios2_gdbarch_init): Don't register deleted functions with
9866 gdbarch.
9867
ca0ab0aa
AB
98682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9869
9870 * nds32-tdep.c (nds32_dummy_id): Delete.
9871 (nds32_unwind_pc): Delete.
9872 (nds32_unwind_sp): Delete.
9873 (nds32_gdbarch_init): Don't register deleted functions with
9874 gdbarch.
9875
c8259044
AB
98762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9877
9878 * msp430-tdep.c (msp430_unwind_pc): Delete.
9879 (msp430_unwind_sp): Delete.
9880 (msp430_dummy_id): Delete.
9881 (msp430_gdbarch_init): Don't register deleted functions with
9882 gdbarch.
9883
27f113c8
AB
98842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9885
9886 * moxie-tdep.c (moxie_unwind_sp): Delete.
9887 (moxie_unwind_pc): Delete.
9888 (moxie_dummy_id): Delete.
9889 (moxie_gdbarch_init): Don't register deleted functions with
9890 gdbarch.
9891
aee6c3cd
AB
98922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9893
9894 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9895 (mn10300_unwind_pc): Delete.
9896 (mn10300_unwind_sp): Delete.
9897 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9898 mn10300_unwind_sp.
9899 (mn10300_frame_unwind_init): Don't register deleted functions with
9900 gdbarch.
9901
8e2b5aea
AB
99022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9903
9904 * mep-tdep.c (mep_unwind_pc): Delete.
9905 (mep_unwind_sp): Delete.
9906 (mep_dummy_id): Delete.
9907 (mep_gdbarch_init): Don't register deleted functions with
9908 gdbarch.
9909
43cf3ede
AB
99102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9911
9912 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9913 (m68hc11_unwind_sp): Delete.
9914 (m68hc11_gdbarch_init): Don't register deleted functions with
9915 gdbarch.
9916
5e79b7bb
AB
99172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9918
9919 * m32r-tdep.c (m32r_unwind_sp): Delete.
9920 (m32r_unwind_pc): Delete.
9921 (m32r_dummy_id): Delete.
9922 (m32r_gdbarch_init): Don't register deleted functions with
9923 gdbarch.
9924
89b268d8
AB
99252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9926
9927 * m32c-tdep.c (m32c_unwind_pc): Delete.
9928 (m32c_unwind_sp): Delete.
9929 (m32c_dummy_id): Delete.
9930 (m32c_gdbarch_init): Don't register deleted functions with
9931 gdbarch.
9932
946c28d2
AB
99332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9934
9935 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9936 (lm32_unwind_pc): Delete.
9937 (lm32_dummy_id): Delete.
9938 (lm32_gdbarch_init): Don't register deleted functions with
9939 gdbarch.
9940
bf12844a
AB
99412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9942
9943 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9944 (iq2000_unwind_pc): Delete.
9945 (iq2000_dummy_id): Delete.
9946 (iq2000_gdbarch_init): Don't register deleted functions with
9947 gdbarch.
9948
ecbc06d2
AB
99492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9950
9951 * nds32-tdep.c (nds32_type_align): Delete.
9952 (nds32_push_dummy_call): Use type_align instead.
9953
030197b4
AB
99542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9955
9956 * arm-tdep.c (arm_type_align): Only handle vector override case.
9957 (arm_push_dummy_call): Use type_align.
9958 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9959
b907456c
AB
99602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9961
9962 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9963 case.
9964 (pass_on_stack): Use type_align.
9965 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9966 function.
9967
9e97ba43
TT
99682019-04-23 Tom Tromey <tromey@adacore.com>
9969
9970 * dwarf2read.c (line_header::file_name_at): Remove unused
9971 overload.
9972
6892f601
TV
99732019-04-23 Tom de Vries <tdevries@suse.de>
9974
9975 PR gdb/24438
9976 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9977 invocation.
9978
336d760d
AT
9979
99802019-03-27 Ali Tamur <tamur@google.com>
9981
9982 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9983 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9984 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9985 (dwarf_expr_context::get_addr_index): Likewise
9986 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9987 (symbol_needs_eval_context::get_addr_index): Likewise
9988 (disassemble_dwarf_expression): Add DW_OP_addrx
9989 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9990 (read_cutu_die_from_dwo): Update comment
9991 (skip_one_die): Add DW_FORM_addrx
9992 (read_attribute_value): Likewise
9993 (var_decode_location): Add DW_OP_addrx
9994 (dwarf2_const_value_attr): Add DW_FORM_addrx
9995 (dump_die_shallow): Likewise
9996 (dwarf2_fetch_constant_bytes): Likewise
9997 (decode_locdesc): Add DW_OP_addrx
9998 (skip_form_bytes): Add DW_FORM_addrx
9999
ad9d13f8
AT
100002019-04-22 Ali Tamur <tamur@google.com>
10001
10002 * MAINTAINERS (Write After Approval): Add self.
10003
d70cc3ba
SM
100042019-04-22 Simon Marchi <simon.marchi@efficios.com>
10005
10006 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10007 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10008 (open_symbol_file_object): Likewise.
10009 (svr4_default_sos): Add info parameter.
10010 (svr4_read_so_list): Likewise.
10011 (svr4_current_sos_direct): Adjust functions calls to pass down
10012 info.
10013 (svr4_current_sos_1): Add info parameter.
10014 (svr4_current_sos): Call get_svr4_info, pass info down to
10015 svr4_current_sos_1.
10016 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10017 get_svr4_info.
10018 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10019 get_svr4_info.
10020 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10021 to get_svr4_info.
10022 (probes_table_remove_objfile_probes): Likewise.
10023 (register_solib_event_probe): Add info parameter.
10024 (solist_update_incremental): Pass info parameter down to
10025 svr4_read_so_list.
10026 (disable_probes_interface): Add info parameter.
10027 (svr4_handle_solib_event): Pass current_program_space to
10028 get_svr4_info. Adjust disable_probes_interface cleanup.
10029 (svr4_create_probe_breakpoints): Add info parameter, pass it
10030 down to register_solib_event_probe.
10031 (svr4_create_solib_event_breakpoints): Add info parameter,
10032 pass it down to svr4_create_probe_breakpoints.
10033 (enable_break): Pass info down to
10034 svr4_create_solib_event_breakpoints.
10035 (svr4_solib_create_inferior_hook): Pass current_program_space to
10036 get_svr4_info.
10037 (svr4_clear_solib): Likewise.
10038
7905fc35
PA
100392019-04-22 Pedro Alves <palves@redhat.com>
10040
10041 * solib-svr4.c (svr4_free_objfile_observer): New.
10042 (probe_and_action::objfile): New field.
10043 (probes_table_htab_remove_objfile_probes)
10044 (probes_table_remove_objfile_probes): New functions.
10045 (register_solib_event_probe): Add 'objfile' parameter. Store it
10046 in the new probe_and_action. Don't store the probe in 'lookup'.
10047 (svr4_create_probe_breakpoints): Pass objfile to
10048 register_solib_event_probe.
10049 (_initialize_svr4_solib): Register a free_objfile observer.
10050
fb881986
TT
100512019-04-19 Tom Tromey <tom@tromey.com>
10052
10053 * common/queue.h: Remove.
10054
8732db6c
TT
100552019-04-19 Tom Tromey <tom@tromey.com>
10056
10057 * event-loop.c: Don't include "common/queue.h".
10058
97dfbadd
TT
100592019-04-19 Tom Tromey <tom@tromey.com>
10060
10061 * remote.c (remote_target): Use delete.
10062 * remote-notif.h: Include <list>, not "common/queue.h".
10063 (notif_client_p): Remove typedef.
10064 (remote_notif_state): Add constructor, destructor, initializer.
10065 <notif_queue>: Now a std::list.
10066 (remote_notif_state_xfree): Don't declare.
10067 * remote-notif.c (remote_notif_process, handle_notification)
10068 (remote_notif_state_allocate): Update.
10069 (~remote_notif_state): Rename from remote_notif_state_xfree.
10070
cf250e36
TT
100712019-04-19 Tom Tromey <tom@tromey.com>
10072
10073 * symfile.c (reread_symbols): Update.
10074 * objfiles.c (objfile_register_static_link)
10075 (objfile_lookup_static_link): Update
10076 (~objfile) Don't delete static_links.
10077 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10078
61f4b350
TT
100792019-04-19 Tom Tromey <tom@tromey.com>
10080
10081 * type-stack.h (struct type_stack) <insert>: Constify string.
10082 * type-stack.c (type_stack::insert): Constify string.
10083 * gdbtypes.h (lookup_template_type): Update.
10084 (address_space_name_to_int): Update.
10085 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10086 const.
10087 (lookup_template_type): Make name const.
10088 * c-exp.y: Update rules.
10089 (lex_one_token, classify_name, classify_inner_name)
10090 (c_print_token): Update.
10091 * p-exp.y: Update rules.
10092 (yylex): Update.
10093 * f-exp.y: Update rules.
10094 (yylex): Update.
10095 * d-exp.y: Update rules.
10096 (lex_one_token, classify_name, classify_inner_name): Update.
10097 * parse.c (write_dollar_variable, copy_name): Return std::string.
10098 * parser-defs.h (copy_name): Change return type.
10099 * m2-exp.y: Update rules.
10100 (yylex): Update.
10101 * go-exp.y (lex_one_token): Update.
10102 Update rules.
10103 (classify_unsafe_function, classify_packaged_name)
10104 (classify_name, yylex): Update.
10105
189b8c2e
ST
101062019-04-19 Sergei Trofimovich <siarheit@google.com>
10107
10108 * configure.ac: add --enable-source-highlight switch.
10109 * configure: Regenerate.
10110 * top.c (print_gdb_version): plumb --enable-source-highlight
10111 status to "show configuration".
10112
8ecb59f8
TT
101132019-04-19 Tom Tromey <tromey@adacore.com>
10114
10115 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10116 Check ADA_TYPE_P.
10117 (empty_record, ada_template_to_fixed_record_type_1)
10118 (template_to_static_fixed_type)
10119 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10120 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10121 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10122 macros.
10123
62160ec9
TT
101242019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10125
10126 PR symtab/24423:
10127 * source.c (print_source_lines_base): Advance "iter" when a
10128 control character is seen.
10129
f2ae8bc8
PW
101302019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10131
10132 * inferior.h (struct infcall_suspend_state_deleter):
10133 Catch exception in destructor to avoid crash.
10134
d563b953
PW
101352019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10136
10137 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10138 close to the add_com "shell".
10139
dc34c897
TT
101402019-04-18 Tom Tromey <tromey@adacore.com>
10141
10142 * process-stratum-target.h (class process_stratum_target)
10143 <stratum>: Add "final".
10144
a12e5744
TT
101452019-04-17 Tom Tromey <tromey@adacore.com>
10146
10147 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10148 against nullptr before use.
10149
a7e559cc
AH
101502019-04-17 Alan Hayward <alan.hayward@arm.com>
10151
10152 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10153
c01660c6
AB
101542019-04-17 Jim Wilson <jimw@sifive.com>
10155 Andrew Burgess <andrew.burgess@embecosm.com>
10156
10157 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10158 code read might fail, assume 4-byte breakpoint in that case.
10159
4aa866af
LS
101602019-04-15 Leszek Swirski <leszeks@google.com>
10161
10162 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10163 rather than a hand-rolled POD check when checking for forced MEMORY
10164 classification.
10165
48574d91
AH
101662019-04-15 Alan Hayward <alan.hayward@arm.com>
10167
10168 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10169 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10170 function.
10171 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10172 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10173 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10174 declaration.
10175
4da037ef
AH
101762019-04-15 Alan Hayward <alan.hayward@arm.com>
10177
10178 * aarch64-linux-nat.c
10179 (aarch64_linux_nat_target::thread_architecture): Add override.
10180 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10181 each VQ.
10182
ccb8d7e8
AH
101832019-04-15 Alan Hayward <alan.hayward@arm.com>
10184
10185 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10186
35add35e
AB
101872019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10188
10189 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10190 target types of size 96-bits, add some additional comments, and
10191 check that the builtin type we found was the correct size.
10192
51196bbc
EZ
101932019-04-12 Eli Zaretskii <eliz@gnu.org>
10194
10195 * utils.c (prompt_for_continue): Don't restore the styling at the
10196 end, as applied_style has the wrong value. This fixes styling in
10197 long lists of file names that are interrupted by the "Continue?"
10198 prompt.
10199
62253a61
AB
102002019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10201
10202 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10203 * c-lang.c (c_language_defn): Likewise.
10204 (cplus_language_defn): Likewise.
10205 (asm_language_defn): Likewise.
10206 (minimal_language_defn): Likewise.
10207 * d-lang.c (d_language_defn): Likewise.
10208 * f-lang.c (f_language_defn): Likewise.
10209 * go-lang.c (go_language_defn): Likewise.
10210 * language.c (unknown_language_defn): Likewise.
10211 (auto_language_defn): Likewise.
10212 * language.h (struct language_defn): Remove la_magic field.
10213 (LANG_MAGIC): Delete.
10214 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10215 * objc-lang.c (objc_language_defn): Likewise.
10216 * opencl-lang.c (opencl_language_defn): Likewise.
10217 * p-lang.c (pascal_language_defn): Likewise.
10218 * rust-lang.c (rust_language_defn): Likewise.
10219
a9158a86
AB
102202019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10221
10222 * riscv-tdep.c (riscv_type_align): New function.
10223 (riscv_type_alignment): Delete.
10224 (riscv_arg_location): Use 'type_align'.
10225 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10226
41077b66
AB
102272019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10228
10229 * gdbtypes.c (type_align): A struct with no non-static fields also
10230 has alignment of 1.
10231
9f0272f8
AB
102322019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10233
10234 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10235 component to 0.
10236 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10237 member.
10238 (riscv_struct_info::analyse): New implementation using new
10239 analyse_inner member function.
10240 (riscv_struct_info::field_offset): New member function.
10241 (riscv_struct_info::m_offsets): New member variable.
10242 (riscv_struct_info::analyse_inner): New private member function,
10243 takes the old implementation of riscv_struct_info::analyse but
10244 extended to track field offsets.
10245 (riscv_call_arg_struct): Update the struct folding special cases
10246 to handle cases where empty C++ structs, which are non-zero
10247 length, are found.
10248 (riscv_arg_location): Initialise the length of each location, a
10249 non-zero length now indicates the location is in use.
10250 (riscv_push_dummy_call): Allow for the first location having a
10251 non-zero offset when setting up arguments.
10252 (riscv_return_value): Likewise, but for return values.
10253
02cf60c7
TT
102542019-04-11 Tom Tromey <tromey@adacore.com>
10255
10256 * utils.c (internal_vproblem): Make "msg" const.
10257
68811f8f
AH
102582019-04-11 Alan Hayward <alan.hayward@arm.com>
10259
10260 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10261 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10262 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10263 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10264
3f52fdbc
KB
102652019-04-10 Kevin Buettner <kevinb@redhat.com>
10266
10267 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10268 function.
10269 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10270 of amd64_collect_native_gregset.
10271 (amd64_linux_nat_target::store_registers): Likewise.
10272
e9ad22ee
TT
102732019-04-10 Tom Tromey <tom@tromey.com>
10274
10275 * symtab.c (lookup_global_symbol_from_objfile)
10276 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10277 * objfiles.h (class separate_debug_iterator): New.
10278 (class separate_debug_range): New.
10279 (struct objfile) <separate_debug_objfiles>: New method.
10280 (objfile_separate_debug_iterate): Don't declare.
10281 * objfiles.c (separate_debug_iterator::operator++): Rename from
10282 objfile_separate_debug_iterate.
10283 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10284 iterator.
10285 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10286 iterator.
10287
ee371134
TT
102882019-04-10 Tom Tromey <tom@tromey.com>
10289
10290 * symfile.c (reread_symbols): Remove old comment.
10291 * objfiles.c (free_all_objfiles): Fix a typo.
10292
bf227d61
TT
102932019-04-10 Tom Tromey <tom@tromey.com>
10294
10295 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10296 * minsyms.c (lookup_minimal_symbol): Use foreach.
10297 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10298 (lookup_minimal_symbol_solib_trampoline): Likewise.
10299 * symfile.c (reread_symbols): Use foreach.
10300
8dc433a0
TT
103012019-04-09 Ivan Begert <ivanbegert@gmail.com>
10302 Tom Tromey <tromey@adacore.com>
10303
10304 PR rust/24414:
10305 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10306 (rust_lex_int_test): Change "value" to be LONGEST.
10307 (rust_lex_tests): Add test for long integer literal.
10308
9ab8741a
TT
103092019-04-09 Tom Tromey <tromey@adacore.com>
10310
10311 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10312 to bool.
10313 (extended_remote_target::attach): Update.
10314 (remote_target::remote_notice_new_inferior): Update.
10315 (remote_target::add_current_inferior_and_thread): Update.
10316 * inferior.c (exit_inferior_1): Use "false".
10317 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10318
e242fd12
SM
103192019-04-09 Simon Marchi <simon.marchi@efficios.com>
10320
9ca1957f 10321 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
10322 the "start" command.
10323
2b0c8b01
KB
103242019-04-08 Kevin Buettner <kevinb@redhat.com>
10325
10326 * python/py-inferior.c (infpy_thread_from_thread_handle):
10327 Adjust comments to reflect renaming of thread_from_thread_handle
10328 to thread_from_handle. Adjust keywords. Fix type error message.
10329 (inferior_object_methods): Add thread_from_handle. Retain
10330 thread_from_thread_handle, but mark it as deprecated.
10331
50a82723
KB
103322019-04-08 Kevin Buettner <kevinb@redhat.com>
10333
10334 * gdbthread.h (find_thread_by_handle): Revise declaration.
10335 * thread.c (find_thread_by_handle): Likewise. Adjust
10336 implementation too.
10337 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10338 support for buffer objects as handles.
10339
cf63b016
KB
103402019-04-08 Kevin Buettner <kevinb@redhat.com>
10341
10342 * python/py-infthread.c (thpy_thread_handle): New function.
10343 (thread_object_methods): Register thpy_thread_handle.
10344
3d6c6204
KB
103452019-04-08 Kevin Buettner <kevinb@redhat.com>
10346
10347 * gdbthread.h (thread_to_thread_handle): Declare.
10348 * thread.c (gdbtypes.h): Include.
10349 (thread_to_thread_handle): New function.
10350
10351 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10352 (target_thread_info_to_thread_handle): Declare.
10353 * target.c (target_thread_info_to_thread_handle): New function.
10354 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10355 * target-delegates.c: Regenerate.
10356
10357 * linux-thread-db.c (class thread_db_target): Add method
10358 thread_info_to_thread_handle.
10359 (thread_db_target::thread_info_to_thread_handle): Define.
10360 * remote.c (class remote_target): Add new method
10361 thread_info_to_thread_handle.
10362 (remote_target::thread_info_to_thread_handle): Define.
10363
56be6ea8
PA
103642019-04-08 Pedro Alves <palves@redhat.com>
10365
10366 * common/common-exceptions.c (throw_exception): Don't create
10367 named object to throw; throw directly.
10368 (throw_it): Likewise. Don't initialize gdb_exception::message
10369 here, with new; pass FMT and AP to the ctor instead.
10370 * common/common-exceptions.h: Include <string>.
10371 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10372 const char *, va_list)): New ctor. Use std::make_shared.
10373 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10374 errors)): Delete.
10375 (gdb_exception_error::gdb_exception_error(enum errors, const char
10376 *, va_list)): New.
10377 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10378 Add assertion.
10379 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10380 errors)): Delete.
10381 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10382 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10383 Add assertion.
10384
eedc3f4f
TT
103852019-04-08 Tom Tromey <tom@tromey.com>
10386
10387 * valops.c (value_rtti_indirect_type): Replace throw_exception
10388 with throw.
10389 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10390 with throw.
10391 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10392 throw.
10393 * target.c (target_translate_tls_address): Replace throw_exception
10394 with throw.
10395 * stack.c (frame_apply_command_count): Replace throw_exception
10396 with throw.
10397 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10398 throw.
10399 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10400 with throw.
10401 * rs6000-tdep.c (rs6000_frame_cache)
10402 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10403 * remote.c: Replace throw_exception with throw.
10404 * record-full.c (record_full_message, record_full_wait_1)
10405 (record_full_restore): Replace throw_exception with throw.
10406 * record-btrace.c:
10407 (get_thread_current_frame_id, record_btrace_start_replaying)
10408 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10409 (cmd_record_btrace_start): Replace throw_exception with throw.
10410 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10411 throw.
10412 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10413 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10414 * linespec.c:
10415 (find_linespec_symbols): Replace throw_exception with throw.
10416 * infrun.c (displaced_step_prepare, resume): Replace
10417 throw_exception with throw.
10418 * infcmd.c (post_create_inferior): Replace throw_exception with
10419 throw.
10420 * inf-loop.c (inferior_event_handler): Replace throw_exception
10421 with throw.
10422 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10423 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10424 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10425 (get_prev_frame_always, get_frame_pc_if_available)
10426 (get_frame_address_in_block_if_available, get_frame_language):
10427 Replace throw_exception with throw.
10428 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10429 throw_exception with throw.
10430 * eval.c (fetch_subexp_value, evaluate_var_value)
10431 (evaluate_funcall, evaluate_subexp_standard): Replace
10432 throw_exception with throw.
10433 * dwarf2loc.c (call_site_find_chain)
10434 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10435 Replace throw_exception with throw.
10436 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10437 with throw.
10438 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10439 throw.
10440 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10441 * completer.c (complete_line_internal): Replace throw_exception
10442 with throw.
10443 * compile/compile-object-run.c (compile_object_run): Replace
10444 throw_exception with throw.
10445 * cli/cli-script.c (process_next_line): Replace throw_exception
10446 with throw.
10447 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10448 (btrace_enable, btrace_maint_update_pt_packets): Replace
10449 throw_exception with throw.
10450 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10451 throw_exception with throw.
10452 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10453 throw_exception with throw.
10454 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10455 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10456 * aarch64-tdep.c (aarch64_make_prologue_cache)
10457 (aarch64_make_stub_cache): Replace throw_exception with throw.
10458
26003a20
TT
104592019-04-08 Tom Tromey <tom@tromey.com>
10460
10461 * common/common-exceptions.c (throw_exception): Rename from
10462 throw_exception_cxx. Remove old copy. Make argument const.
10463 (throw_it): Create and throw exception objects directly.
10464 * common/common-exceptions.h (throw_exception): Make argument
10465 const.
10466 (struct gdb_exception_error): Add constructor.
10467 (struct gdb_exception_quit): Add constructor.
10468
d272eb37
TT
104692019-04-08 Tom Tromey <tom@tromey.com>
10470
10471 * common/common-exceptions.h (exception_rethrow): Don't declare.
10472 (TRY_SJLJ): Update comment.
10473 (TRY, CATCH, END_CATCH): Remove.
10474 * common/common-exceptions.c (exception_rethrow): Remove.
10475
230d2906
TT
104762019-04-08 Tom Tromey <tom@tromey.com>
10477
10478 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10479 Remove.
10480 (gdb_exception_error): Rename from
10481 gdb_exception_RETURN_MASK_ERROR.
10482 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10483 (gdb_quit_bad_alloc): Update.
10484 * aarch64-tdep.c: Update.
10485 * ada-lang.c: Update.
10486 * ada-typeprint.c: Update.
10487 * ada-valprint.c: Update.
10488 * amd64-tdep.c: Update.
10489 * arch-utils.c: Update.
10490 * break-catch-throw.c: Update.
10491 * breakpoint.c: Update.
10492 * btrace.c: Update.
10493 * c-varobj.c: Update.
10494 * cli/cli-cmds.c: Update.
10495 * cli/cli-interp.c: Update.
10496 * cli/cli-script.c: Update.
10497 * common/common-exceptions.c: Update.
10498 * common/new-op.c: Update.
10499 * common/selftest.c: Update.
10500 * compile/compile-c-symbols.c: Update.
10501 * compile/compile-cplus-symbols.c: Update.
10502 * compile/compile-object-load.c: Update.
10503 * compile/compile-object-run.c: Update.
10504 * completer.c: Update.
10505 * corelow.c: Update.
10506 * cp-abi.c: Update.
10507 * cp-support.c: Update.
10508 * cp-valprint.c: Update.
10509 * darwin-nat.c: Update.
10510 * disasm-selftests.c: Update.
10511 * dtrace-probe.c: Update.
10512 * dwarf-index-cache.c: Update.
10513 * dwarf-index-write.c: Update.
10514 * dwarf2-frame-tailcall.c: Update.
10515 * dwarf2-frame.c: Update.
10516 * dwarf2loc.c: Update.
10517 * dwarf2read.c: Update.
10518 * eval.c: Update.
10519 * event-loop.c: Update.
10520 * event-top.c: Update.
10521 * exec.c: Update.
10522 * f-valprint.c: Update.
10523 * fbsd-tdep.c: Update.
10524 * frame-unwind.c: Update.
10525 * frame.c: Update.
10526 * gdbtypes.c: Update.
10527 * gnu-v3-abi.c: Update.
10528 * guile/guile-internal.h: Update.
10529 * guile/scm-block.c: Update.
10530 * guile/scm-breakpoint.c: Update.
10531 * guile/scm-cmd.c: Update.
10532 * guile/scm-disasm.c: Update.
10533 * guile/scm-frame.c: Update.
10534 * guile/scm-lazy-string.c: Update.
10535 * guile/scm-math.c: Update.
10536 * guile/scm-param.c: Update.
10537 * guile/scm-ports.c: Update.
10538 * guile/scm-pretty-print.c: Update.
10539 * guile/scm-symbol.c: Update.
10540 * guile/scm-symtab.c: Update.
10541 * guile/scm-type.c: Update.
10542 * guile/scm-value.c: Update.
10543 * i386-linux-tdep.c: Update.
10544 * i386-tdep.c: Update.
10545 * inf-loop.c: Update.
10546 * infcall.c: Update.
10547 * infcmd.c: Update.
10548 * infrun.c: Update.
10549 * jit.c: Update.
10550 * language.c: Update.
10551 * linespec.c: Update.
10552 * linux-fork.c: Update.
10553 * linux-nat.c: Update.
10554 * linux-tdep.c: Update.
10555 * linux-thread-db.c: Update.
10556 * main.c: Update.
10557 * mi/mi-cmd-break.c: Update.
10558 * mi/mi-cmd-stack.c: Update.
10559 * mi/mi-interp.c: Update.
10560 * mi/mi-main.c: Update.
10561 * objc-lang.c: Update.
10562 * p-valprint.c: Update.
10563 * parse.c: Update.
10564 * ppc-linux-tdep.c: Update.
10565 * printcmd.c: Update.
10566 * python/py-arch.c: Update.
10567 * python/py-breakpoint.c: Update.
10568 * python/py-cmd.c: Update.
10569 * python/py-finishbreakpoint.c: Update.
10570 * python/py-frame.c: Update.
10571 * python/py-framefilter.c: Update.
10572 * python/py-gdb-readline.c: Update.
10573 * python/py-inferior.c: Update.
10574 * python/py-infthread.c: Update.
10575 * python/py-lazy-string.c: Update.
10576 * python/py-linetable.c: Update.
10577 * python/py-objfile.c: Update.
10578 * python/py-param.c: Update.
10579 * python/py-prettyprint.c: Update.
10580 * python/py-progspace.c: Update.
10581 * python/py-record-btrace.c: Update.
10582 * python/py-record.c: Update.
10583 * python/py-symbol.c: Update.
10584 * python/py-type.c: Update.
10585 * python/py-unwind.c: Update.
10586 * python/py-utils.c: Update.
10587 * python/py-value.c: Update.
10588 * python/python.c: Update.
10589 * record-btrace.c: Update.
10590 * record-full.c: Update.
10591 * remote-fileio.c: Update.
10592 * remote.c: Update.
10593 * riscv-tdep.c: Update.
10594 * rs6000-aix-tdep.c: Update.
10595 * rs6000-tdep.c: Update.
10596 * rust-exp.y: Update.
10597 * rust-lang.c: Update.
10598 * s390-tdep.c: Update.
10599 * selftest-arch.c: Update.
10600 * solib-dsbt.c: Update.
10601 * solib-frv.c: Update.
10602 * solib-spu.c: Update.
10603 * solib-svr4.c: Update.
10604 * solib.c: Update.
10605 * sparc64-linux-tdep.c: Update.
10606 * stack.c: Update.
10607 * symfile-mem.c: Update.
10608 * symmisc.c: Update.
10609 * target.c: Update.
10610 * thread.c: Update.
10611 * top.c: Update.
10612 * tracefile-tfile.c: Update.
10613 * tui/tui.c: Update.
10614 * typeprint.c: Update.
10615 * unittests/cli-utils-selftests.c: Update.
10616 * unittests/parse-connection-spec-selftests.c: Update.
10617 * valops.c: Update.
10618 * valprint.c: Update.
10619 * value.c: Update.
10620 * varobj.c: Update.
10621 * windows-nat.c: Update.
10622 * x86-linux-nat.c: Update.
10623 * xml-support.c: Update.
10624
a70b8144
TT
106252019-04-08 Tom Tromey <tom@tromey.com>
10626
10627 * xml-support.c: Use C++ exception handling.
10628 * x86-linux-nat.c: Use C++ exception handling.
10629 * windows-nat.c: Use C++ exception handling.
10630 * varobj.c: Use C++ exception handling.
10631 * value.c: Use C++ exception handling.
10632 * valprint.c: Use C++ exception handling.
10633 * valops.c: Use C++ exception handling.
10634 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10635 handling.
10636 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10637 * typeprint.c: Use C++ exception handling.
10638 * tui/tui.c: Use C++ exception handling.
10639 * tracefile-tfile.c: Use C++ exception handling.
10640 * top.c: Use C++ exception handling.
10641 * thread.c: Use C++ exception handling.
10642 * target.c: Use C++ exception handling.
10643 * symmisc.c: Use C++ exception handling.
10644 * symfile-mem.c: Use C++ exception handling.
10645 * stack.c: Use C++ exception handling.
10646 * sparc64-linux-tdep.c: Use C++ exception handling.
10647 * solib.c: Use C++ exception handling.
10648 * solib-svr4.c: Use C++ exception handling.
10649 * solib-spu.c: Use C++ exception handling.
10650 * solib-frv.c: Use C++ exception handling.
10651 * solib-dsbt.c: Use C++ exception handling.
10652 * selftest-arch.c: Use C++ exception handling.
10653 * s390-tdep.c: Use C++ exception handling.
10654 * rust-lang.c: Use C++ exception handling.
10655 * rust-exp.y: Use C++ exception handling.
10656 * rs6000-tdep.c: Use C++ exception handling.
10657 * rs6000-aix-tdep.c: Use C++ exception handling.
10658 * riscv-tdep.c: Use C++ exception handling.
10659 * remote.c: Use C++ exception handling.
10660 * remote-fileio.c: Use C++ exception handling.
10661 * record-full.c: Use C++ exception handling.
10662 * record-btrace.c: Use C++ exception handling.
10663 * python/python.c: Use C++ exception handling.
10664 * python/py-value.c: Use C++ exception handling.
10665 * python/py-utils.c: Use C++ exception handling.
10666 * python/py-unwind.c: Use C++ exception handling.
10667 * python/py-type.c: Use C++ exception handling.
10668 * python/py-symbol.c: Use C++ exception handling.
10669 * python/py-record.c: Use C++ exception handling.
10670 * python/py-record-btrace.c: Use C++ exception handling.
10671 * python/py-progspace.c: Use C++ exception handling.
10672 * python/py-prettyprint.c: Use C++ exception handling.
10673 * python/py-param.c: Use C++ exception handling.
10674 * python/py-objfile.c: Use C++ exception handling.
10675 * python/py-linetable.c: Use C++ exception handling.
10676 * python/py-lazy-string.c: Use C++ exception handling.
10677 * python/py-infthread.c: Use C++ exception handling.
10678 * python/py-inferior.c: Use C++ exception handling.
10679 * python/py-gdb-readline.c: Use C++ exception handling.
10680 * python/py-framefilter.c: Use C++ exception handling.
10681 * python/py-frame.c: Use C++ exception handling.
10682 * python/py-finishbreakpoint.c: Use C++ exception handling.
10683 * python/py-cmd.c: Use C++ exception handling.
10684 * python/py-breakpoint.c: Use C++ exception handling.
10685 * python/py-arch.c: Use C++ exception handling.
10686 * printcmd.c: Use C++ exception handling.
10687 * ppc-linux-tdep.c: Use C++ exception handling.
10688 * parse.c: Use C++ exception handling.
10689 * p-valprint.c: Use C++ exception handling.
10690 * objc-lang.c: Use C++ exception handling.
10691 * mi/mi-main.c: Use C++ exception handling.
10692 * mi/mi-interp.c: Use C++ exception handling.
10693 * mi/mi-cmd-stack.c: Use C++ exception handling.
10694 * mi/mi-cmd-break.c: Use C++ exception handling.
10695 * main.c: Use C++ exception handling.
10696 * linux-thread-db.c: Use C++ exception handling.
10697 * linux-tdep.c: Use C++ exception handling.
10698 * linux-nat.c: Use C++ exception handling.
10699 * linux-fork.c: Use C++ exception handling.
10700 * linespec.c: Use C++ exception handling.
10701 * language.c: Use C++ exception handling.
10702 * jit.c: Use C++ exception handling.
10703 * infrun.c: Use C++ exception handling.
10704 * infcmd.c: Use C++ exception handling.
10705 * infcall.c: Use C++ exception handling.
10706 * inf-loop.c: Use C++ exception handling.
10707 * i386-tdep.c: Use C++ exception handling.
10708 * i386-linux-tdep.c: Use C++ exception handling.
10709 * guile/scm-value.c: Use C++ exception handling.
10710 * guile/scm-type.c: Use C++ exception handling.
10711 * guile/scm-symtab.c: Use C++ exception handling.
10712 * guile/scm-symbol.c: Use C++ exception handling.
10713 * guile/scm-pretty-print.c: Use C++ exception handling.
10714 * guile/scm-ports.c: Use C++ exception handling.
10715 * guile/scm-param.c: Use C++ exception handling.
10716 * guile/scm-math.c: Use C++ exception handling.
10717 * guile/scm-lazy-string.c: Use C++ exception handling.
10718 * guile/scm-frame.c: Use C++ exception handling.
10719 * guile/scm-disasm.c: Use C++ exception handling.
10720 * guile/scm-cmd.c: Use C++ exception handling.
10721 * guile/scm-breakpoint.c: Use C++ exception handling.
10722 * guile/scm-block.c: Use C++ exception handling.
10723 * guile/guile-internal.h: Use C++ exception handling.
10724 * gnu-v3-abi.c: Use C++ exception handling.
10725 * gdbtypes.c: Use C++ exception handling.
10726 * frame.c: Use C++ exception handling.
10727 * frame-unwind.c: Use C++ exception handling.
10728 * fbsd-tdep.c: Use C++ exception handling.
10729 * f-valprint.c: Use C++ exception handling.
10730 * exec.c: Use C++ exception handling.
10731 * event-top.c: Use C++ exception handling.
10732 * event-loop.c: Use C++ exception handling.
10733 * eval.c: Use C++ exception handling.
10734 * dwarf2read.c: Use C++ exception handling.
10735 * dwarf2loc.c: Use C++ exception handling.
10736 * dwarf2-frame.c: Use C++ exception handling.
10737 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10738 * dwarf-index-write.c: Use C++ exception handling.
10739 * dwarf-index-cache.c: Use C++ exception handling.
10740 * dtrace-probe.c: Use C++ exception handling.
10741 * disasm-selftests.c: Use C++ exception handling.
10742 * darwin-nat.c: Use C++ exception handling.
10743 * cp-valprint.c: Use C++ exception handling.
10744 * cp-support.c: Use C++ exception handling.
10745 * cp-abi.c: Use C++ exception handling.
10746 * corelow.c: Use C++ exception handling.
10747 * completer.c: Use C++ exception handling.
10748 * compile/compile-object-run.c: Use C++ exception handling.
10749 * compile/compile-object-load.c: Use C++ exception handling.
10750 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10751 * compile/compile-c-symbols.c: Use C++ exception handling.
10752 * common/selftest.c: Use C++ exception handling.
10753 * common/new-op.c: Use C++ exception handling.
10754 * cli/cli-script.c: Use C++ exception handling.
10755 * cli/cli-interp.c: Use C++ exception handling.
10756 * cli/cli-cmds.c: Use C++ exception handling.
10757 * c-varobj.c: Use C++ exception handling.
10758 * btrace.c: Use C++ exception handling.
10759 * breakpoint.c: Use C++ exception handling.
10760 * break-catch-throw.c: Use C++ exception handling.
10761 * arch-utils.c: Use C++ exception handling.
10762 * amd64-tdep.c: Use C++ exception handling.
10763 * ada-valprint.c: Use C++ exception handling.
10764 * ada-typeprint.c: Use C++ exception handling.
10765 * ada-lang.c: Use C++ exception handling.
10766 * aarch64-tdep.c: Use C++ exception handling.
10767
3d6e9d23
TT
107682019-04-08 Tom Tromey <tom@tromey.com>
10769
10770 * xml-support.c (gdb_xml_parser::parse): Update.
10771 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10772 * value.c (show_convenience): Update.
10773 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10774 (test_parse_flags_qcs): Update.
10775 * thread.c (thr_try_catch_cmd): Update.
10776 * target.c (target_translate_tls_address): Update.
10777 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10778 (info_frame_command_core, frame_apply_command_count): Update.
10779 * rust-exp.y (rust_lex_exception_test): Update.
10780 * riscv-tdep.c (riscv_print_one_register_info): Update.
10781 * remote.c (remote_target::enable_btrace): Update.
10782 * record-btrace.c (record_btrace_enable_warn): Update.
10783 * python/py-utils.c (gdbpy_convert_exception): Update.
10784 * printcmd.c (do_one_display, print_variable_and_value): Update.
10785 * mi/mi-main.c (mi_print_exception): Update.
10786 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10787 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10788 * linux-nat.c (linux_nat_target::attach): Update.
10789 * linux-fork.c (class scoped_switch_fork_info): Update.
10790 * infrun.c (displaced_step_prepare): Update.
10791 * infcall.c (call_function_by_hand_dummy): Update.
10792 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10793 * gnu-v3-abi.c (print_one_vtable): Update.
10794 * frame.c (get_prev_frame_always): Update.
10795 * f-valprint.c (info_common_command_for_block): Update.
10796 * exec.c (try_open_exec_file): Update.
10797 * exceptions.c (print_exception, exception_print)
10798 (exception_fprintf, exception_print_same): Update.
10799 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10800 * dwarf-index-cache.c (index_cache::store)
10801 (index_cache::lookup_gdb_index): Update.
10802 * darwin-nat.c (maybe_cache_shell): Update.
10803 * cp-valprint.c (cp_print_value_fields): Update.
10804 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10805 (gcc_cplus_symbol_address): Update.
10806 * compile/compile-c-symbols.c (gcc_convert_symbol)
10807 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10808 * common/selftest.c: Update.
10809 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10810 a std::string.
10811 (exception_try_scope_entry, exception_try_scope_exit): Don't
10812 declare.
10813 (struct exception_try_scope): Remove.
10814 (TRY): Don't use exception_try_scope.
10815 (struct gdb_exception): Add constructor, operator=.
10816 <what>: New method.
10817 (struct gdb_exception_RETURN_MASK_ALL)
10818 (struct gdb_exception_RETURN_MASK_ERROR)
10819 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10820 (struct gdb_quit_bad_alloc): Update.
10821 * common/common-exceptions.c (exception_none): Change
10822 initializer.
10823 (struct catcher) <state, exception>: Initialize inline.
10824 <prev>: Remove member.
10825 (current_catcher): Remove.
10826 (catchers): New global.
10827 (exceptions_state_mc_init): Simplify.
10828 (catcher_pop): Remove.
10829 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10830 (try_scope_depth, exception_try_scope_entry)
10831 (exception_try_scope_exit): Remove.
10832 (throw_exception_sjlj): Update.
10833 (exception_messages, exception_messages_size): Remove.
10834 (throw_it): Simplify.
10835 (gdb_exception_sliced_copy): Remove.
10836 (throw_exception_cxx): Update.
10837 * cli/cli-script.c (script_from_file): Update.
10838 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10839 Update.
10840 * ada-valprint.c (ada_val_print): Update.
10841 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10842 (create_excep_cond_exprs): Update.
10843
c5c10118
TT
108442019-04-08 Tom Tromey <tom@tromey.com>
10845
10846 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10847 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10848 (TRY, CATCH, END_CATCH): Remove some definitions.
10849 * common/common-exceptions.c: Don't use GDB_XCPT.
10850 (catcher_list_size): Remove.
10851 (throw_exception, throw_it): Simplify.
10852
4de283e4
TT
108532019-04-05 Tom Tromey <tom@tromey.com>
10854
10855 Revert the header-sorting patch.
10856 * ft32-tdep.c: Revert.
10857 * frv-tdep.c: Revert.
10858 * frv-linux-tdep.c: Revert.
10859 * frame.c: Revert.
10860 * frame-unwind.c: Revert.
10861 * frame-base.c: Revert.
10862 * fork-child.c: Revert.
10863 * findvar.c: Revert.
10864 * findcmd.c: Revert.
10865 * filesystem.c: Revert.
10866 * filename-seen-cache.h: Revert.
10867 * filename-seen-cache.c: Revert.
10868 * fbsd-tdep.c: Revert.
10869 * fbsd-nat.h: Revert.
10870 * fbsd-nat.c: Revert.
10871 * f-valprint.c: Revert.
10872 * f-typeprint.c: Revert.
10873 * f-lang.c: Revert.
10874 * extension.h: Revert.
10875 * extension.c: Revert.
10876 * extension-priv.h: Revert.
10877 * expprint.c: Revert.
10878 * exec.h: Revert.
10879 * exec.c: Revert.
10880 * exceptions.c: Revert.
10881 * event-top.c: Revert.
10882 * event-loop.c: Revert.
10883 * eval.c: Revert.
10884 * elfread.c: Revert.
10885 * dwarf2read.h: Revert.
10886 * dwarf2read.c: Revert.
10887 * dwarf2loc.c: Revert.
10888 * dwarf2expr.h: Revert.
10889 * dwarf2expr.c: Revert.
10890 * dwarf2-frame.c: Revert.
10891 * dwarf2-frame-tailcall.c: Revert.
10892 * dwarf-index-write.h: Revert.
10893 * dwarf-index-write.c: Revert.
10894 * dwarf-index-common.c: Revert.
10895 * dwarf-index-cache.h: Revert.
10896 * dwarf-index-cache.c: Revert.
10897 * dummy-frame.c: Revert.
10898 * dtrace-probe.c: Revert.
10899 * disasm.h: Revert.
10900 * disasm.c: Revert.
10901 * disasm-selftests.c: Revert.
10902 * dictionary.c: Revert.
10903 * dicos-tdep.c: Revert.
10904 * demangle.c: Revert.
10905 * dcache.h: Revert.
10906 * dcache.c: Revert.
10907 * darwin-nat.h: Revert.
10908 * darwin-nat.c: Revert.
10909 * darwin-nat-info.c: Revert.
10910 * d-valprint.c: Revert.
10911 * d-namespace.c: Revert.
10912 * d-lang.c: Revert.
10913 * ctf.c: Revert.
10914 * csky-tdep.c: Revert.
10915 * csky-linux-tdep.c: Revert.
10916 * cris-tdep.c: Revert.
10917 * cris-linux-tdep.c: Revert.
10918 * cp-valprint.c: Revert.
10919 * cp-support.c: Revert.
10920 * cp-namespace.c: Revert.
10921 * cp-abi.c: Revert.
10922 * corelow.c: Revert.
10923 * corefile.c: Revert.
10924 * continuations.c: Revert.
10925 * completer.h: Revert.
10926 * completer.c: Revert.
10927 * complaints.c: Revert.
10928 * coffread.c: Revert.
10929 * coff-pe-read.c: Revert.
10930 * cli-out.h: Revert.
10931 * cli-out.c: Revert.
10932 * charset.c: Revert.
10933 * c-varobj.c: Revert.
10934 * c-valprint.c: Revert.
10935 * c-typeprint.c: Revert.
10936 * c-lang.c: Revert.
10937 * buildsym.c: Revert.
10938 * buildsym-legacy.c: Revert.
10939 * build-id.h: Revert.
10940 * build-id.c: Revert.
10941 * btrace.c: Revert.
10942 * bsd-uthread.c: Revert.
10943 * breakpoint.h: Revert.
10944 * breakpoint.c: Revert.
10945 * break-catch-throw.c: Revert.
10946 * break-catch-syscall.c: Revert.
10947 * break-catch-sig.c: Revert.
10948 * blockframe.c: Revert.
10949 * block.c: Revert.
10950 * bfin-tdep.c: Revert.
10951 * bfin-linux-tdep.c: Revert.
10952 * bfd-target.c: Revert.
10953 * bcache.c: Revert.
10954 * ax-general.c: Revert.
10955 * ax-gdb.h: Revert.
10956 * ax-gdb.c: Revert.
10957 * avr-tdep.c: Revert.
10958 * auxv.c: Revert.
10959 * auto-load.c: Revert.
10960 * arm-wince-tdep.c: Revert.
10961 * arm-tdep.c: Revert.
10962 * arm-symbian-tdep.c: Revert.
10963 * arm-pikeos-tdep.c: Revert.
10964 * arm-obsd-tdep.c: Revert.
10965 * arm-nbsd-tdep.c: Revert.
10966 * arm-nbsd-nat.c: Revert.
10967 * arm-linux-tdep.c: Revert.
10968 * arm-linux-nat.c: Revert.
10969 * arm-fbsd-tdep.c: Revert.
10970 * arm-fbsd-nat.c: Revert.
10971 * arm-bsd-tdep.c: Revert.
10972 * arch-utils.c: Revert.
10973 * arc-tdep.c: Revert.
10974 * arc-newlib-tdep.c: Revert.
10975 * annotate.h: Revert.
10976 * annotate.c: Revert.
10977 * amd64-windows-tdep.c: Revert.
10978 * amd64-windows-nat.c: Revert.
10979 * amd64-tdep.c: Revert.
10980 * amd64-sol2-tdep.c: Revert.
10981 * amd64-obsd-tdep.c: Revert.
10982 * amd64-obsd-nat.c: Revert.
10983 * amd64-nbsd-tdep.c: Revert.
10984 * amd64-nbsd-nat.c: Revert.
10985 * amd64-nat.c: Revert.
10986 * amd64-linux-tdep.c: Revert.
10987 * amd64-linux-nat.c: Revert.
10988 * amd64-fbsd-tdep.c: Revert.
10989 * amd64-fbsd-nat.c: Revert.
10990 * amd64-dicos-tdep.c: Revert.
10991 * amd64-darwin-tdep.c: Revert.
10992 * amd64-bsd-nat.c: Revert.
10993 * alpha-tdep.c: Revert.
10994 * alpha-obsd-tdep.c: Revert.
10995 * alpha-nbsd-tdep.c: Revert.
10996 * alpha-mdebug-tdep.c: Revert.
10997 * alpha-linux-tdep.c: Revert.
10998 * alpha-linux-nat.c: Revert.
10999 * alpha-bsd-tdep.c: Revert.
11000 * alpha-bsd-nat.c: Revert.
11001 * aix-thread.c: Revert.
11002 * agent.c: Revert.
11003 * addrmap.c: Revert.
11004 * ada-varobj.c: Revert.
11005 * ada-valprint.c: Revert.
11006 * ada-typeprint.c: Revert.
11007 * ada-tasks.c: Revert.
11008 * ada-lang.c: Revert.
11009 * aarch64-tdep.c: Revert.
11010 * aarch64-ravenscar-thread.c: Revert.
11011 * aarch64-newlib-tdep.c: Revert.
11012 * aarch64-linux-tdep.c: Revert.
11013 * aarch64-linux-nat.c: Revert.
11014 * aarch64-fbsd-tdep.c: Revert.
11015 * aarch64-fbsd-nat.c: Revert.
11016 * aarch32-linux-nat.c: Revert.
11017
d55e5aa6
TT
110182019-04-05 Tom Tromey <tom@tromey.com>
11019
11020 * ft32-tdep.c: Sort headers.
11021 * frv-tdep.c: Sort headers.
11022 * frv-linux-tdep.c: Sort headers.
11023 * frame.c: Sort headers.
11024 * frame-unwind.c: Sort headers.
11025 * frame-base.c: Sort headers.
11026 * fork-child.c: Sort headers.
11027 * findvar.c: Sort headers.
11028 * findcmd.c: Sort headers.
11029 * filesystem.c: Sort headers.
11030 * filename-seen-cache.h: Sort headers.
11031 * filename-seen-cache.c: Sort headers.
11032 * fbsd-tdep.c: Sort headers.
11033 * fbsd-nat.h: Sort headers.
11034 * fbsd-nat.c: Sort headers.
11035 * f-valprint.c: Sort headers.
11036 * f-typeprint.c: Sort headers.
11037 * f-lang.c: Sort headers.
11038 * extension.h: Sort headers.
11039 * extension.c: Sort headers.
11040 * extension-priv.h: Sort headers.
11041 * expprint.c: Sort headers.
11042 * exec.h: Sort headers.
11043 * exec.c: Sort headers.
11044 * exceptions.c: Sort headers.
11045 * event-top.c: Sort headers.
11046 * event-loop.c: Sort headers.
11047 * eval.c: Sort headers.
11048 * elfread.c: Sort headers.
11049 * dwarf2read.h: Sort headers.
11050 * dwarf2read.c: Sort headers.
11051 * dwarf2loc.c: Sort headers.
11052 * dwarf2expr.h: Sort headers.
11053 * dwarf2expr.c: Sort headers.
11054 * dwarf2-frame.c: Sort headers.
11055 * dwarf2-frame-tailcall.c: Sort headers.
11056 * dwarf-index-write.h: Sort headers.
11057 * dwarf-index-write.c: Sort headers.
11058 * dwarf-index-common.c: Sort headers.
11059 * dwarf-index-cache.h: Sort headers.
11060 * dwarf-index-cache.c: Sort headers.
11061 * dummy-frame.c: Sort headers.
11062 * dtrace-probe.c: Sort headers.
11063 * disasm.h: Sort headers.
11064 * disasm.c: Sort headers.
11065 * disasm-selftests.c: Sort headers.
11066 * dictionary.c: Sort headers.
11067 * dicos-tdep.c: Sort headers.
11068 * demangle.c: Sort headers.
11069 * dcache.h: Sort headers.
11070 * dcache.c: Sort headers.
11071 * darwin-nat.h: Sort headers.
11072 * darwin-nat.c: Sort headers.
11073 * darwin-nat-info.c: Sort headers.
11074 * d-valprint.c: Sort headers.
11075 * d-namespace.c: Sort headers.
11076 * d-lang.c: Sort headers.
11077 * ctf.c: Sort headers.
11078 * csky-tdep.c: Sort headers.
11079 * csky-linux-tdep.c: Sort headers.
11080 * cris-tdep.c: Sort headers.
11081 * cris-linux-tdep.c: Sort headers.
11082 * cp-valprint.c: Sort headers.
11083 * cp-support.c: Sort headers.
11084 * cp-namespace.c: Sort headers.
11085 * cp-abi.c: Sort headers.
11086 * corelow.c: Sort headers.
11087 * corefile.c: Sort headers.
11088 * continuations.c: Sort headers.
11089 * completer.h: Sort headers.
11090 * completer.c: Sort headers.
11091 * complaints.c: Sort headers.
11092 * coffread.c: Sort headers.
11093 * coff-pe-read.c: Sort headers.
11094 * cli-out.h: Sort headers.
11095 * cli-out.c: Sort headers.
11096 * charset.c: Sort headers.
11097 * c-varobj.c: Sort headers.
11098 * c-valprint.c: Sort headers.
11099 * c-typeprint.c: Sort headers.
11100 * c-lang.c: Sort headers.
11101 * buildsym.c: Sort headers.
11102 * buildsym-legacy.c: Sort headers.
11103 * build-id.h: Sort headers.
11104 * build-id.c: Sort headers.
11105 * btrace.c: Sort headers.
11106 * bsd-uthread.c: Sort headers.
11107 * breakpoint.h: Sort headers.
11108 * breakpoint.c: Sort headers.
11109 * break-catch-throw.c: Sort headers.
11110 * break-catch-syscall.c: Sort headers.
11111 * break-catch-sig.c: Sort headers.
11112 * blockframe.c: Sort headers.
11113 * block.c: Sort headers.
11114 * bfin-tdep.c: Sort headers.
11115 * bfin-linux-tdep.c: Sort headers.
11116 * bfd-target.c: Sort headers.
11117 * bcache.c: Sort headers.
11118 * ax-general.c: Sort headers.
11119 * ax-gdb.h: Sort headers.
11120 * ax-gdb.c: Sort headers.
11121 * avr-tdep.c: Sort headers.
11122 * auxv.c: Sort headers.
11123 * auto-load.c: Sort headers.
11124 * arm-wince-tdep.c: Sort headers.
11125 * arm-tdep.c: Sort headers.
11126 * arm-symbian-tdep.c: Sort headers.
11127 * arm-pikeos-tdep.c: Sort headers.
11128 * arm-obsd-tdep.c: Sort headers.
11129 * arm-nbsd-tdep.c: Sort headers.
11130 * arm-nbsd-nat.c: Sort headers.
11131 * arm-linux-tdep.c: Sort headers.
11132 * arm-linux-nat.c: Sort headers.
11133 * arm-fbsd-tdep.c: Sort headers.
11134 * arm-fbsd-nat.c: Sort headers.
11135 * arm-bsd-tdep.c: Sort headers.
11136 * arch-utils.c: Sort headers.
11137 * arc-tdep.c: Sort headers.
11138 * arc-newlib-tdep.c: Sort headers.
11139 * annotate.h: Sort headers.
11140 * annotate.c: Sort headers.
11141 * amd64-windows-tdep.c: Sort headers.
11142 * amd64-windows-nat.c: Sort headers.
11143 * amd64-tdep.c: Sort headers.
11144 * amd64-sol2-tdep.c: Sort headers.
11145 * amd64-obsd-tdep.c: Sort headers.
11146 * amd64-obsd-nat.c: Sort headers.
11147 * amd64-nbsd-tdep.c: Sort headers.
11148 * amd64-nbsd-nat.c: Sort headers.
11149 * amd64-nat.c: Sort headers.
11150 * amd64-linux-tdep.c: Sort headers.
11151 * amd64-linux-nat.c: Sort headers.
11152 * amd64-fbsd-tdep.c: Sort headers.
11153 * amd64-fbsd-nat.c: Sort headers.
11154 * amd64-dicos-tdep.c: Sort headers.
11155 * amd64-darwin-tdep.c: Sort headers.
11156 * amd64-bsd-nat.c: Sort headers.
11157 * alpha-tdep.c: Sort headers.
11158 * alpha-obsd-tdep.c: Sort headers.
11159 * alpha-nbsd-tdep.c: Sort headers.
11160 * alpha-mdebug-tdep.c: Sort headers.
11161 * alpha-linux-tdep.c: Sort headers.
11162 * alpha-linux-nat.c: Sort headers.
11163 * alpha-bsd-tdep.c: Sort headers.
11164 * alpha-bsd-nat.c: Sort headers.
11165 * aix-thread.c: Sort headers.
11166 * agent.c: Sort headers.
11167 * addrmap.c: Sort headers.
11168 * ada-varobj.c: Sort headers.
11169 * ada-valprint.c: Sort headers.
11170 * ada-typeprint.c: Sort headers.
11171 * ada-tasks.c: Sort headers.
11172 * ada-lang.c: Sort headers.
11173 * aarch64-tdep.c: Sort headers.
11174 * aarch64-ravenscar-thread.c: Sort headers.
11175 * aarch64-newlib-tdep.c: Sort headers.
11176 * aarch64-linux-tdep.c: Sort headers.
11177 * aarch64-linux-nat.c: Sort headers.
11178 * aarch64-fbsd-tdep.c: Sort headers.
11179 * aarch64-fbsd-nat.c: Sort headers.
11180 * aarch32-linux-nat.c: Sort headers.
11181
699bd4cf
TT
111822019-04-04 Tom Tromey <tom@tromey.com>
11183
11184 * varobj.c (varobj_create): Update.
11185 * rust-exp.y (struct rust_parser) <update_innermost_block,
11186 lookup_symbol>: New methods.
11187 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11188 Rename.
11189 (rust_parser::rust_lookup_type)
11190 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11191 * printcmd.c (display_command, do_one_display): Update.
11192 * parser-defs.h (struct parser_state) <parser_state>: Add
11193 "tracker" parameter.
11194 (block_tracker): New member.
11195 (class innermost_block_tracker) <innermost_block_tracker>: Add
11196 "types" parameter.
11197 <reset>: Remove method.
11198 (innermost_block): Don't declare.
11199 (null_post_parser): Update.
11200 * parse.c (innermost_block): Remove global.
11201 (write_dollar_variable): Update.
11202 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11203 Remove "tracker_types" parameter.
11204 (parse_expression): Add "tracker" parameter.
11205 (parse_expression_for_completion): Update.
11206 (null_post_parser): Add "tracker" parameter.
11207 * p-exp.y: Update rules.
11208 * m2-exp.y: Update rules.
11209 * language.h (struct language_defn) <la_post_parser>: Add
11210 "tracker" parameter.
11211 * go-exp.y: Update rules.
11212 * f-exp.y: Update rules.
11213 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11214 parameter.
11215 * d-exp.y: Update rules.
11216 * c-exp.y: Update rules.
11217 * breakpoint.c (set_breakpoint_condition): Create an
11218 innermost_block_tracker.
11219 (watch_command_1): Likewise.
11220 * ada-lang.c (resolve): Add "tracker" parameter.
11221 (resolve_subexp): Likewise.
11222 * ada-exp.y (write_var_from_sym): Update.
11223
dac43e32
TT
112242019-04-04 Tom Tromey <tom@tromey.com>
11225
11226 * type-stack.h: New file.
11227 * type-stack.c: New file.
11228 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11229 type-stack.h.
11230 (insert_into_type_stack, insert_type, push_type, push_type_int)
11231 (insert_type_address_space, pop_type, pop_type_int)
11232 (pop_typelist, pop_type_stack, append_type_stack)
11233 (push_type_stack, get_type_stack, push_typelist)
11234 (follow_type_instance_flags, follow_types): Don't declare.
11235 * parse.c (type_stack): Remove global.
11236 (parse_exp_in_context): Update.
11237 (insert_into_type_stack, insert_type, push_type, push_type_int)
11238 (insert_type_address_space, pop_type, pop_type_int)
11239 (pop_typelist, pop_type_stack, append_type_stack)
11240 (push_type_stack, get_type_stack, push_typelist)
11241 (follow_type_instance_flags, follow_types): Remove (moved to
11242 type-stack.c).
11243 * f-exp.y (type_stack): New global.
11244 Update rules.
11245 (push_kind_type, f_parse): Update.
11246 * d-exp.y (type_stack): New global.
11247 Update rules.
11248 (d_parse): Update.
11249 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11250 Update rules.
11251 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11252 (HFILES_NO_SRCDIR): Add type-stack.h.
11253
2a612529
TT
112542019-04-04 Tom Tromey <tom@tromey.com>
11255
11256 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11257 (rust_parser::convert_ast_to_expression, rust_parse)
11258 (rust_lex_test_completion, rust_lex_tests): Update.
11259 * parser-defs.h (struct expr_completion_state): New.
11260 (struct parser_state) <parser_state>: Add completion parameter.
11261 <mark_struct_expression, mark_completion_tag>: New methods.
11262 <parse_completion, m_completion_state>: New members.
11263 (prefixify_expression, null_post_parser): Update.
11264 (mark_struct_expression, mark_completion_tag): Don't declare.
11265 * parse.c (parse_completion, expout_last_struct)
11266 (expout_tag_completion_type, expout_completion_name): Remove
11267 globals.
11268 (parser_state::mark_struct_expression)
11269 (parser_state::mark_completion_tag): Now methods.
11270 (prefixify_expression): Add last_struct parameter.
11271 (prefixify_subexp): Likewise.
11272 (parse_exp_1): Update.
11273 (parse_exp_in_context): Add cstate parameter. Update.
11274 (parse_expression_for_completion): Create an
11275 expr_completion_state.
11276 (null_post_parser): Add "completion" parameter.
11277 * p-exp.y: Update rules.
11278 (yylex): Update.
11279 * language.h (struct language_defn) <la_post_parser>: Add
11280 "completing" parameter.
11281 * go-exp.y: Update rules.
11282 (lex_one_token): Update.
11283 * expression.h (parse_completion): Don't declare.
11284 * d-exp.y: Update rules.
11285 (lex_one_token): Update rules.
11286 * c-exp.y: Update rules.
11287 (lex_one_token): Update.
11288 * ada-lang.c (resolve): Add "parse_completion" parameter.
11289 (resolve_subexp): Likewise.
11290 (ada_resolve_function): Likewise.
11291
43476f0b
TT
112922019-04-04 Tom Tromey <tom@tromey.com>
11293
11294 * parser-defs.h (struct parser_state) <start_arglist,
11295 end_arglist>: New methods.
11296 <arglist_len, m_funcall_chain>: New members.
11297 (arglist_len, start_arglist, end_arglist): Don't declare.
11298 * parse.c (arglist_len, funcall_chain): Remove global.
11299 (start_arglist, end_arglist): Remove functions.
11300 (parse_exp_in_context): Update.
11301 * p-exp.y: Update rules.
11302 * m2-exp.y: Update rules.
11303 * go-exp.y: Update rules.
11304 * f-exp.y: Update rules.
11305 * d-exp.y: Update rules.
11306 * c-exp.y: Update rules.
11307
5776fca3
TT
113082019-04-04 Tom Tromey <tom@tromey.com>
11309
11310 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11311 lex_operator, push_back>: New methods.
11312 Update all rules.
11313 (rust_parser::lex_hex, lex_escape): Rename and update.
11314 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11315 (rust_parser::lex_operator): Rename and update.
11316 (rust_parser::lex_number, rustyylex, rustyyerror)
11317 (rust_lex_test_init, rust_lex_test_sequence)
11318 (rust_lex_test_push_back, rust_lex_tests): Update.
11319 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11320 parameter.
11321 <lexptr, prev_lexptr>: New members.
11322 (lexptr, prev_lexptr): Don't declare.
11323 * parse.c (lexptr, prev_lexptr): Remove globals.
11324 (parse_exp_in_context): Update.
11325 * p-exp.y (yylex, yyerror): Update.
11326 * m2-exp.y (parse_number, yylex, yyerror): Update.
11327 * go-exp.y (lex_one_token, yyerror): Update.
11328 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11329 * d-exp.y (lex_one_token, yyerror): Update.
11330 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11331 (lex_one_token, yyerror): Update.
11332 * ada-lex.l (YY_INPUT): Update.
11333 (rewind_to_char): Update.
11334 * ada-exp.y (yyerror): Update.
11335
8621b685
TT
113362019-04-04 Tom Tromey <tom@tromey.com>
11337
11338 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11339 * parser-defs.h (struct parser_state) <parser_state>: Add new
11340 parameter.
11341 <comma_terminates>: New member.
11342 (comma_terminates): Don't declare global.
11343 * parse.c (comma_terminates): Remove global.
11344 (parse_exp_in_context): Update.
11345 * p-exp.y (yylex): Update.
11346 * m2-exp.y (yylex): Update.
11347 * go-exp.y (lex_one_token): Update.
11348 * f-exp.y (yylex): Update.
11349 * d-exp.y (lex_one_token): Update.
11350 * c-exp.y (lex_one_token): Update.
11351 * ada-lex.l: Update.
11352
28aaf3fd
TT
113532019-04-04 Tom Tromey <tom@tromey.com>
11354
11355 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11356 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11357 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11358 * parser-defs.h (paren_depth): Don't declare.
11359 * parse.c (paren_depth): Remove global.
11360 (parse_exp_in_context): Update.
11361 * p-exp.y (paren_depth): New global.
11362 (pascal_parse): Initialize it.
11363 * m2-exp.y (paren_depth): New global.
11364 (m2_parse): Initialize it.
11365 * go-exp.y (paren_depth): New global.
11366 (go_parse): Initialize it.
11367 * f-exp.y (paren_depth): New global.
11368 (f_parse): Initialize it.
11369 * d-exp.y (paren_depth): New global.
11370 (d_parse): Initialize it.
11371 * c-exp.y (paren_depth): New global.
11372 (c_parse): Initialize it.
11373 * ada-lex.l (paren_depth): New global.
11374 (lexer_init): Initialize it.
11375
1e58a4a4
TT
113762019-04-04 Tom Tromey <tom@tromey.com>
11377
11378 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11379 (rust_parser::convert_ast_to_type)
11380 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11381 * parser-defs.h (struct parser_state) <parser_state>: Add
11382 parameters. Initialize new members.
11383 <expression_context_block, expression_context_pc>: New members.
11384 * parse.c (expression_context_block, expression_context_pc):
11385 Remove globals.
11386 (parse_exp_in_context): Update.
11387 * p-exp.y: Update all rules.
11388 (yylex): Update.
11389 * m2-exp.y: Update all rules.
11390 (yylex): Update.
11391 * go-exp.y (yylex): Update.
11392 * f-exp.y (yylex): Update.
11393 * d-exp.y: Update all rules.
11394 (yylex): Update.
11395 * c-exp.y: Update all rules.
11396 (lex_one_token, classify_name, yylex, c_parse): Update.
11397 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11398
37eedb39
TT
113992019-04-04 Tom Tromey <tom@tromey.com>
11400
11401 * gdbarch.h, gdbarch.c: Rebuild.
11402 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11403 * stap-probe.h:
11404 (struct stap_parse_info): Replace "parser_state" with
11405 "expr_builder".
11406 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11407 (parser_state): New class.
11408 * parse.c (expr_builder): Rename.
11409 (expr_builder::release): Rename.
11410 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11411 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11412 (write_exp_elt_longcst, write_exp_elt_floatcst)
11413 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11414 (write_exp_string_vector, write_exp_bitstring)
11415 (write_exp_msymbol, mark_struct_expression)
11416 (write_dollar_variable)
11417 (insert_type_address_space, increase_expout_size): Replace
11418 "parser_state" with "expr_builder".
11419 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11420 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11421 "parser_state" with "expr_builder".
11422
73923d7e
TT
114232019-04-04 Tom Tromey <tom@tromey.com>
11424
11425 * rust-exp.y: Replace "parse_language" with method call.
11426 * p-exp.y:
11427 (yylex): Replace "parse_language" with method call.
11428 * m2-exp.y:
11429 (yylex): Replace "parse_language" with method call.
11430 * go-exp.y (classify_name): Replace "parse_language" with method
11431 call.
11432 * f-exp.y (yylex): Replace "parse_language" with method call.
11433 * d-exp.y (lex_one_token): Replace "parse_language" with method
11434 call.
11435 * c-exp.y:
11436 (lex_one_token, classify_name, yylex): Replace "parse_language"
11437 with method call.
11438 * ada-exp.y (find_primitive_type, type_char)
11439 (type_system_address): Replace "parse_language" with method call.
11440
fa9f5be6
TT
114412019-04-04 Tom Tromey <tom@tromey.com>
11442
11443 * rust-exp.y: Replace "parse_gdbarch" with method call.
11444 * parse.c (write_dollar_variable, insert_type_address_space):
11445 Replace "parse_gdbarch" with method call.
11446 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11447 call.
11448 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11449 call.
11450 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11451 "parse_gdbarch" with method call.
11452 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11453 with method call.
11454 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11455 "parse_gdbarch" with method call.
11456 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11457 "parse_gdbarch" with method call.
11458 * c-exp.y (parse_type, parse_number, classify_name): Replace
11459 "parse_gdbarch" with method call.
11460 * ada-lex.l: Replace "parse_gdbarch" with method call.
11461 * ada-exp.y (parse_type, find_primitive_type, type_char)
11462 (type_system_address): Replace "parse_gdbarch" with method call.
11463
1201a264
TT
114642019-04-04 Tom Tromey <tom@tromey.com>
11465
11466 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11467 * stap-probe.c (stap_parse_argument): Update.
11468 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11469 initial_size parameter.
11470 * rust-exp.y (rust_lex_tests): Update.
11471 * parse.c (parser_state): Update.
11472 (parse_exp_in_context): Update.
11473 * parser-defs.h (struct parser_state) <parser_state>: Remove
11474 "initial_size" parameter.
11475
e3980ce2
TT
114762019-04-04 Tom Tromey <tom@tromey.com>
11477
11478 * parser-defs.h (increase_expout_size): Don't declare.
11479 * parse.c (increase_expout_size): Now static.
11480
e9f8e3f1
TS
114812019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11482
11483 * gnu-nat.c (gnu_nat_target::wait): Fix
11484 target_waitstatus_to_string call.
11485
d7df6549
AB
114862019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11487
11488 * eval.c (evaluate_subexp_standard): Handle internal functions
11489 during Fortran function call handling.
11490
8bdc1658
AB
114912019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11492
11493 * NEWS: Mention new internal functions.
11494 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11495 (read_base_type): Use dwarf2_init_complex_target_type.
11496 * value.c (creal_internal_fn): New function.
11497 (cimag_internal_fn): New function.
11498 (_initialize_values): Register new internal functions.
11499
c29705b7
PW
115002019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11501
11502 * infrun.c (stop_all_threads): If debug_infrun, always
11503 trace the wait status after wait_one, using
11504 target_waitstatus_to_string and target_pid_to_str.
11505 (handle_inferior_event): Replace various trace of
11506 wait status kind by a single trace.
11507 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11508 wait status kind image by target_waitstatus_to_string.
11509 * target/waitstatus.c (target_waitstatus_to_string): Fix
11510 obsolete comment.
11511
05caa1d2
TT
115122019-04-01 Tom Tromey <tromey@adacore.com>
11513
11514 PR symtab/23331:
11515 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11516
9d1447e0
SDJ
115172019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11518 Pedro Alves <palves@redhat.com>
11519
11520 * top.c (quit_force): Call 'finalize_values'.
11521 * value.c (finalize_values): New function.
11522 * value.h (finalize_values): Declare.
11523
7734102d
EZ
115242019-03-30 Eli Zaretskii <eliz@gnu.org>
11525
11526 * NEWS: Announce $_gdb_major and $_gdb_minor.
11527
11528 * top.c (init_gdb_version_vars): New function.
11529 (gdb_init): Call init_gdb_version_vars.
11530
188e1fa9
TT
115312019-03-29 Tom Tromey <tromey@adacore.com>
11532
11533 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11534 help text. Remove dead code.
11535
2880242d
KS
115362019-03-29 Keith Seitz <keiths@redhat.com>
11537
11538 From Siddhesh Poyarekar:
11539 * f-lang.h (f77_get_upperbound): Return LONGEST.
11540 (f77_get_lowerbound): Likewise.
11541 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11542 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11543 print them.
11544 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11545 plongest to format print it.
11546 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11547 (f77_get_upperbound): Likewise.
11548 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11549 LOWER_BOUND to LONGEST.
11550 (f77_create_arrayprint_offset_tbl): Likewise.
11551
cc1defb1
KS
115522019-03-29 Keith Seitz <keiths@redhat.com>
11553
11554 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11555 %s/pulongest for TYPE_LENGTH instead of %d in format
11556 strings.
11557 * ada-typerint.c (ada_print_type): Likewise.
11558 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11559 * compile/compile-c-support.c (generate_register_struct): Likewise.
11560 * gdbtypes.c (recursive_dump_type): Likewise.
11561 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11562 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11563 instead of %d in format strings.
11564 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11565 to std::min to ULONGEST.
11566 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11567 instead of %d in format strings.
11568 * tracepoint.c (info_scope_command): Likewise.
11569 * typeprint.c (print_offset_data::update)
11570 (print_offset_data::finish): Likewise.
11571 * xtensa-tdep.c (xtensa_store_return_value)
11572 (xtensa_push_dummy_call): Likewise.
11573
e432ccf1
JT
115742019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11575
11576 * windows-nat.c (display_selector): Fixed format specifications
11577 for 64-bit Cygwin.
11578
65d2b333
PW
115792019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11580
11581 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11582
f489207e
SL
115832019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11584
11585 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11586 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11587 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11588 (nios2_linux_init_abi): Install it.
11589
bffa1015
AH
115902019-03-28 Alan Hayward <alan.hayward@arm.com>
11591
11592 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11593
fc96163a
AH
115942019-03-28 Alan Hayward <alan.hayward@arm.com>
11595
11596 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11597
20dc7e9b
PW
115982019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11599 Tom Tromey <tromey@adacore.com>
11600
11601 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11602
7f5331a8
JB
116032019-03-26 Joel Brobecker <brobecker@adacore.com>
11604
11605 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11606 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11607 method to compute the bounds of range types. Also print "[evaluated]"
11608 if the bounds' values come from a dynamic evaluation.
11609
18c77628
AB
116102019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11611
11612 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11613 whitespace when pretty printing is on.
11614
53c973f2
AH
116152019-03-26 Alan Hayward <alan.hayward@arm.com>
11616
e79be6e5 11617 * ppc-linux-nat.c: Add include.
53c973f2 11618
d851aa71
AH
116192019-03-26 Alan Hayward <alan.hayward@arm.com>
11620
e79be6e5 11621 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 11622
2fe7bab7
AH
116232019-03-26 Alan Hayward <alan.hayward@arm.com>
11624
e79be6e5 11625 * arm-linux-nat.c: Add include.
2fe7bab7 11626
068ef30e
SM
116272019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11628
11629 * source-cache.c (source_cache::get_source_lines): Re-read
11630 fullname after calling open_source_file.
11631
81a24d04
JB
116322019-03-25 John Baldwin <jhb@FreeBSD.org>
11633
11634 * NEWS: Mention TLS support for FreeBSD.
11635
79e7ae11
TT
116362019-03-25 Tom Tromey <tromey@adacore.com>
11637
11638 * minsyms.c (BUNCH_SIZE): Update comment.
11639 (~minimal_symbol_reader): Remove old comment.
11640 (compact_minimal_symbols): Update comment.
11641 (minimal_symbol_reader::install): Remove old comment. Update
11642 other comments.
11643
d45963c2
AH
116442019-03-25 Alan Hayward <alan.hayward@arm.com>
11645
11646 * s390-linux-nat.c: Add include.
11647
0f83012e
AH
116482019-03-25 Alan Hayward <alan.hayward@arm.com>
11649
11650 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11651 Call linux_get_hwcap.
11652 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11653 Likewise.
11654 (aarch64_linux_get_hwcap): Remove function.
11655 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11656 declaration.
11657 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11658 linux_get_hwcap.
11659 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11660 * linux-tdep.c (linux_get_hwcap): Add function.
11661 (linux_get_hwcap2): Likewise.
11662 * linux-tdep.h (linux_get_hwcap): Add declaration.
11663 (linux_get_hwcap2): Likewise.
11664 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11665 (ppc_linux_get_hwcap2): Likewise.
11666 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11667 linux_get_hwcap.
11668 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11669 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11670 (ppc_linux_nat_target::read_description): Likewise.
11671 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11672 * s390-linux-nat.c: Likewise.
11673 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11674
6640a367
TT
116752019-03-24 Tom Tromey <tom@tromey.com>
11676
11677 * ada-lang.c (standard_lookup): Simplify initialization.
11678 (ada_lookup_symbol_nonlocal): Simplify return.
11679 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11680 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11681 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11682 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11683 initialization.
11684 * solib.c (solib_global_lookup): Simplify.
11685 * symtab.c (null_block_symbol): Remove.
11686 (symbol_cache_lookup): Simplify returns.
11687 (lookup_language_this): Simplify returns.
11688 (lookup_symbol_aux): Simplify return.
11689 (lookup_local_symbol): Simplify returns.
11690 (lookup_global_symbol_from_objfile): Simplify return.
11691 (lookup_symbol_in_objfile_symtabs)
11692 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11693 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11694 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11695 * cp-namespace.c (cp_lookup_bare_symbol)
11696 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11697 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11698 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11699 (cp_lookup_symbol_via_imports): Simplify initialization.
11700 (find_symbol_in_baseclass): Likewise.
11701 * symtab.h (null_block_symbol): Remove.
11702 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11703 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11704 (d_lookup_symbol_module): Likewise.
11705 (find_symbol_in_baseclass): Simplify initialization.
11706
a930ebcd
TT
117072019-03-24 Tom Tromey <tom@tromey.com>
11708
11709 * expression.h: Don't include symtab.h.
11710 (struct block): Forward declare.
11711
582942f4
TT
117122019-03-24 Tom Tromey <tom@tromey.com>
11713
11714 * c-exp.y (typebase): Remove casts.
11715 * gdbtypes.c (lookup_unsigned_typename, )
11716 (lookup_signed_typename): Remove cast.
11717 * eval.c (parse_to_comma_and_eval): Remove cast.
11718 * parse.c (write_dollar_variable): Remove cast.
11719 * block.h (struct block) <superblock>: Now const.
11720 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11721 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11722 (map_block): Make "block" const.
11723 * symfile.h (struct quick_symbol_functions)
11724 <map_matching_symbols>: Constify block argument to "callback".
11725 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11726 const.
11727 (find_pc_sect_compunit_symtab): Make "b" const.
11728 (find_symbol_at_address): Likewise.
11729 (search_symbols): Likewise.
11730 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11731 (dw2_debug_names_lookup_symbol): Likewise.
11732 (dw2_map_matching_symbols): Update.
11733 * p-valprint.c (pascal_val_print): Remove "block".
11734 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11735 (aux_add_nonlocal_symbols): Make "block" const.
11736 (resolve_subexp): Remove cast.
11737 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11738 const.
11739 (iterate_over_file_blocks): Likewise.
11740 * f-exp.y (%union) <bval>: Remove.
11741 * coffread.c (patch_opaque_types): Make "b" const.
11742 * spu-tdep.c (spu_catch_start): Make "block" const.
11743 * c-valprint.c (print_unpacked_pointer): Remove "block".
11744 * symmisc.c (dump_symtab_1): Make "b" const.
11745 (block_depth): Make "block" const.
11746 * d-exp.y (%union) <bval>: Remove.
11747 * cp-support.h (cp_lookup_rtti_type): Update.
11748 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11749 * psymtab.c (psym_lookup_symbol): Make "block" const.
11750 (maintenance_check_psymtabs): Make "b" const.
11751 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11752 (enumerate_locals, enumerate_args): Update.
11753 * python/py-symtab.c (stpy_global_block): Make "block" const.
11754 (stpy_static_block): Likewise.
11755 * inline-frame.c (block_starting_point_at): Make "new_block"
11756 const.
11757 * block.c (find_block_in_blockvector): Make return type const.
11758 (blockvector_for_pc_sect): Make "b" const.
11759 (find_block_in_blockvector): Make "b" const.
11760
7ad417dd
TT
117612019-03-23 Tom Tromey <tom@tromey.com>
11762
11763 * varobj.c (varobj_create): Update.
11764 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11765 * printcmd.c (display_command, do_one_display): Don't reset
11766 innermost_block.
11767 * parser-defs.h (enum innermost_block_tracker_type): Move to
11768 expression.h.
11769 (innermost_block): Update comment.
11770 * parse.c (parse_exp_1): Add tracker_types parameter.
11771 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11772 tracker_types parameter. Reset innermost_block.
11773 (parse_exp_in_context): Remove.
11774 (parse_expression_for_completion): Update.
11775 * objfiles.c (~objfile): Don't reset expression_context_block or
11776 innermost_block.
11777 * expression.h (enum innermost_block_tracker_type): Move from
11778 parser-defs.h.
11779 (parse_exp_1): Add tracker_types parameter.
11780 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11781 reset innermost_block.
11782
b366c208
TT
117832019-03-23 Tom Tromey <tom@tromey.com>
11784
11785 * objfiles.h: Include bcache.h.
11786
9bb9b2f9
TT
117872019-03-23 Tom Tromey <tom@tromey.com>
11788
11789 * linespec.c (get_current_search_block): Use
11790 scoped_restore_current_language.
11791 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11792
59c28372
AH
117932019-03-22 Alan Hayward <alan.hayward@arm.com>
11794 Jiong Wang <jiong.wang@arm.com>
11795
11796 * aarch64-linux-tdep.c
11797 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11798 section.
11799 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11800
17e116a7
AH
118012019-03-22 Alan Hayward <alan.hayward@arm.com>
11802 Jiong Wang <jiong.wang@arm.com>
11803
11804 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11805 instructions.
11806 (aarch64_analyze_prologue_test): Add PACIASP test.
11807 (aarch64_prologue_prev_register): Unmask PC value.
11808
11e1b75f
AH
118092019-03-22 Alan Hayward <alan.hayward@arm.com>
11810 Jiong Wang <jiong.wang@arm.com>
11811
11812 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11813 (aarch64_dwarf2_prev_register): Unmask PC value.
11814 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11815 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11816 DW_CFA_AARCH64_negate_ra_state.
11817 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11818
34dcc7cf
AH
118192019-03-22 Alan Hayward <alan.hayward@arm.com>
11820 Jiong Wang <jiong.wang@arm.com>
11821
11822 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11823 registers.
11824 (aarch64_pseudo_register_name): Likewise.
11825 (aarch64_pseudo_register_type): Likewise.
11826 (aarch64_pseudo_register_reggroup_p): Likewise.
11827 (aarch64_gdbarch_init): Add pauth registers.
11828 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11829 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11830 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11831 (struct gdbarch_tdep): Add regnum for ra_state.
11832
1ef53e6b
AH
118332019-03-22 Alan Hayward <alan.hayward@arm.com>
11834 Jiong Wang <jiong.wang@arm.com>
11835
11836 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11837
76bed0fd
AH
118382019-03-22 Alan Hayward <alan.hayward@arm.com>
11839 Jiong Wang <jiong.wang@arm.com>
11840
11841 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11842 function.
11843 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11844 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11845 (aarch64_gdbarch_init): Add puth registers.
11846 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11847 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11848 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11849
ee4fbcfa
AH
118502019-03-22 Alan Hayward <alan.hayward@arm.com>
11851 Jiong Wang <jiong.wang@arm.com>
11852
11853 * aarch64-linux-nat.c
11854 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11855 * aarch64-linux-tdep.c
11856 (aarch64_linux_core_read_description): Likewise.
11857 (aarch64_linux_get_hwcap): New function.
11858 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11859 (aarch64_linux_get_hwcap): New declaration.
11860
6dc0ebde
AH
118612019-03-22 Alan Hayward <alan.hayward@arm.com>
11862 Jiong Wang <jiong.wang@arm.com>
11863
11864 * aarch64-linux-nat.c
11865 (aarch64_linux_nat_target::read_description): Add pauth param.
11866 * aarch64-linux-tdep.c
11867 (aarch64_linux_core_read_description): Likewise.
11868 * aarch64-tdep.c (struct target_desc): Add in pauth.
11869 (aarch64_read_description): Add pauth param.
11870 (aarch64_gdbarch_init): Likewise.
11871 * aarch64-tdep.h (aarch64_read_description): Likewise.
11872 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11873 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11874 * features/Makefile: Add new files.
11875 * features/aarch64-pauth.c: New file.
11876 * features/aarch64-pauth.xml: New file.
11877
595915c1
TT
118782019-03-20 Tom Tromey <tromey@adacore.com>
11879
11880 * infrun.c (handle_inferior_event): Rename from
11881 handle_inferior_event_1. Create a scoped_value_mark.
11882 (handle_inferior_event): Remove.
11883
4c7d57e7
TT
118842019-03-19 Tom Tromey <tromey@adacore.com>
11885
11886 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11887 * infrun.h (print_stop_event): Add "displays" parameter.
11888 * infrun.c (print_stop_event): Add "displays" parameter.
11889
cb246234
PA
118902019-03-19 Pedro Alves <palves@redhat.com>
11891
11892 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11893 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11894 to -1. Fix TABs vs spaces.
11895 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11896 * tui/tui-out.h (tui_ui_out) Add intro comments.
11897 <m_line, m_start_of_line>: In-class initialize, and add describing
11898 comment.
11899
3a0e45b2
AH
119002019-03-18 Alan Hayward <alan.hayward@arm.com>
11901
11902 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11903 variable names.
11904 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11905
5371b850
PA
119062019-03-18 Pedro Alves <palves@redhat.com>
11907 Eli Zaretskii <eliz@gnu.org>
11908
11909 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11910 m_line and m_start_of_line.
11911
b17c4cd0
EZ
119122019-03-18 Eli Zaretskii <eliz@gnu.org>
11913
11914 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11915 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11916 it returns a newline. This fixes a regression in TU mode, whereby
11917 the next line is output on the same screen line as the user input.
11918
4bd56d18
TT
119192019-03-18 Tom Tromey <tromey@adacore.com>
11920
11921 * minsyms.c (minimal_symbol_reader::install): Remove call to
11922 obstack_blank.
11923
55c10aca
PA
119242019-03-18 Pedro Alves <palves@redhat.com>
11925
11926 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11927 New globals.
11928 (apply_style): New, factored out from ...
11929 (apply_ansi_escape): ... this. Handle reverse video mode.
11930 (tui_set_reverse_mode): New function.
11931 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11932 * tui/tui-winsource.c (tui_show_source_line): Use
11933 tui_set_reverse_mode instead of setting A_STANDOUT.
11934 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11935 New setter methods.
11936
647bb750
HD
119372019-03-18 Hannes Domani <ssbssa@yahoo.de>
11938
11939 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11940 Handle tabs.
11941
bff8c71f
TT
119422019-03-18 Tom Tromey <tromey@adacore.com>
11943
11944 * ada-lang.c (empty_array): Add "high" parameter.
11945 (ada_evaluate_subexp): Update.
11946
58785d98
ST
119472019-03-17 Sergei Trofimovich <siarheit@google.com>
11948
11949 * unittests/string_view-selftests.c: Define
11950 _initialize_string_view_selftests unconditionally.
11951
d4cbef22
ВМ
119522019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11953
11954 PR gdb/24350
11955 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11956
fce4c071
ВМ
119572019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11958
11959 PR gdb/24351
11960 * windows-nat.c (display_selector): Fix format specifiers.
11961
f7f0a123
EZ
119622019-03-17 Eli Zaretskii <eliz@gnu.org>
11963
11964 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11965 tui_refill_source_window instead of tui_refresh_win, to update the
11966 current execution line. This fixes redisplay of the current line
11967 when stepping through the code with "next" or "step".
11968
ab42892f
EZ
119692019-03-16 Eli Zaretskii <eliz@gnu.org>
11970
11971 * source-cache.c (source_cache::get_source_lines): Call
11972 find_source_lines to initialize s->nlines. This fixes vertical
11973 scrolling of TUI source window when the DOWN arrow is pressed.
11974
8d8c087f
PW
119752019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11976
11977 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11978 linux-thread-db.c (_initialize_thread_db): Likewise.
11979
798e1c30
EZ
119802019-03-16 Eli Zaretskii <eliz@gnu.org>
11981
11982 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11983 wclrtoeol in tui_show_source_line". This reverts changes made in
11984 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11985
eefba3da
TT
119862019-03-15 Tom Tromey <tom@tromey.com>
11987
11988 * symtab.h (struct minimal_symbol): Derive from
11989 general_symbol_info.
11990 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11991 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11992 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11993 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11994 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11995 (MSYMBOL_SEARCH_NAME): Update.
11996 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11997 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11998 * minsyms.c (minimal_symbol_reader::record_full): Update.
11999
0de2420c
TT
120002019-03-15 Tom Tromey <tom@tromey.com>
12001
12002 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12003
042d75e4
TT
120042019-03-15 Tom Tromey <tom@tromey.com>
12005
12006 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12007 unique_xmalloc_ptr.
12008 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12009 Update.
12010 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12011 (build_minimal_symbol_hash_tables)
12012 (minimal_symbol_reader::install): Update.
12013
db92718b
TT
120142019-03-15 Tom Tromey <tom@tromey.com>
12015
12016 * symtab.c (create_demangled_names_hash): Update.
12017 (symbol_set_names): Update.
12018 * objfiles.h (struct objfile_per_bfd_storage)
12019 <demangled_names_hash>: Now an htab_up.
12020 * objfiles.c (objfile_per_bfd_storage): Simplify.
12021
d6797f46
TT
120222019-03-15 Tom Tromey <tom@tromey.com>
12023
12024 * objfiles.h (struct objfile_per_bfd_storage): Declare
12025 destructor.
12026 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12027 New.
12028 (get_objfile_bfd_data): Use new. Don't initialize
12029 language_of_main.
12030 (free_objfile_per_bfd_storage): Remove.
12031 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12032
741d7538
TT
120332019-03-15 Tom Tromey <tom@tromey.com>
12034
12035 * symfile.c (reread_symbols): Update.
12036 * objfiles.c (objfile::objfile): Update.
12037 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12038 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12039 comment.
12040 (minimal_symbol_reader::install): Update.
12041 (terminate_minimal_symbol_table): Remove.
12042 * jit.c (jit_object_close_impl): Update.
12043
788c80d1
TT
120442019-03-15 Tom Tromey <tom@tromey.com>
12045
12046 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12047 initializations.
12048
1b7a07cb
TT
120492019-03-15 Tom Tromey <tom@tromey.com>
12050
12051 * objfiles.h (struct objfile_per_bfd_storage)
12052 <demangled_hash_languages>: Now a bitset.
12053 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12054 (lookup_minimal_symbol): Update.
12055
3db066bc
TT
120562019-03-15 Tom Tromey <tom@tromey.com>
12057
12058 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12059 Don't return the symbol.
12060 * coffread.c (record_minimal_symbol): Use record_full.
12061
3fff2c37
EZ
120622019-03-14 Eli Zaretskii <eliz@gnu.org>
12063
12064 The MS-Windows port of ncurses fails to switch to a color pair if
12065 one or both of the colors are the implicit default colors. This
12066 change records the default colors when TUI is initialized, and
12067 then specifies them explicitly when a color pair uses the default
12068 colors. This allows color styling in TUI mode on MS-Windows.
12069
12070 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12071 ncurses_norm_attr.
12072 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12073 colors in ncurses_norm_attr.
12074 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12075 "none", replace it with the default color recorded in
12076 ncurses_norm_attr.
12077
3b336828
TT
120782019-03-14 Tom Tromey <tromey@adacore.com>
12079
12080 * source-cache.h (class source_cache) <get_source_lines>: Return
12081 std::string.
12082 * source-cache.c (source_cache::extract_lines): Handle case where
12083 first_pos==npos. Return std::string.
12084 (source_cache::get_source_lines): Update.
12085
d085f989
TT
120862019-03-14 Tom Tromey <tromey@adacore.com>
12087
12088 * NEWS: Add item for "style sources" commands.
12089 * source-cache.c (source_cache::get_source_lines): Check
12090 source_styling.
12091 * cli/cli-style.c (source_styling): New global.
12092 (_initialize_cli_style): Add "style sources" commands.
12093 (show_style_sources): New function.
12094 * cli/cli-style.h (source_styling): Declare.
12095
6f11e682
TT
120962019-03-14 Pedro Alves <palves@redhat.com>
12097 Tom Tromey <tromey@adacore.com>
12098
12099 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12100 * tui/tui-winsource.c (tui_refill_source_window): New function,
12101 from...
12102 (tui_horizontal_source_scroll): ... here. Move some logic.
12103 * cli/cli-style.c (set_style_enabled): Notify new observable.
12104 * tui/tui-hooks.c (tui_redisplay_source): New function.
12105 (tui_attach_detach_observers): Attach or detach
12106 tui_redisplay_source.
12107 * observable.h (source_styling_changed): New observable.
12108 * observable.c: Define source_styling_changed observable.
12109
a068643d
TT
121102019-03-13 Tom Tromey <tromey@adacore.com>
12111
12112 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12113 (i386_gnu_nat_target::store_registers): Update.
12114 * target-debug.h (target_debug_print_std_string): New macro.
12115 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12116 * windows-tdep.c (display_one_tib): Update.
12117 * tui/tui-stack.c (tui_make_status_line): Update.
12118 * top.c (print_inferior_quit_action): Update.
12119 * thread.c (thr_try_catch_cmd): Update.
12120 (add_thread_with_info): Update.
12121 (thread_target_id_str): Update.
12122 (thr_try_catch_cmd): Update.
12123 (thread_command): Update.
12124 (thread_find_command): Update.
12125 * record-btrace.c (record_btrace_target::info_record)
12126 (record_btrace_resume_thread, record_btrace_target::resume)
12127 (record_btrace_cancel_resume, record_btrace_step_thread)
12128 (record_btrace_target::wait, record_btrace_target::wait)
12129 (record_btrace_target::wait, record_btrace_target::stop): Update.
12130 * progspace.c (print_program_space): Update.
12131 * process-stratum-target.c
12132 (process_stratum_target::thread_address_space): Update.
12133 * linux-fork.c (linux_fork_mourn_inferior)
12134 (detach_checkpoint_command, info_checkpoints_command)
12135 (linux_fork_context): Update.
12136 (linux_fork_detach): Update.
12137 (class scoped_switch_fork_info): Update.
12138 (delete_checkpoint_command): Update.
12139 * infrun.c (follow_fork_inferior): Update.
12140 (follow_fork_inferior): Update.
12141 (proceed_after_vfork_done): Update.
12142 (handle_vfork_child_exec_or_exit): Update.
12143 (follow_exec): Update.
12144 (displaced_step_prepare_throw): Update.
12145 (displaced_step_restore): Update.
12146 (start_step_over): Update.
12147 (resume_1): Update.
12148 (clear_proceed_status_thread): Update.
12149 (proceed): Update.
12150 (print_target_wait_results): Update.
12151 (do_target_wait): Update.
12152 (context_switch): Update.
12153 (stop_all_threads): Update.
12154 (restart_threads): Update.
12155 (finish_step_over): Update.
12156 (handle_signal_stop): Update.
12157 (switch_back_to_stepped_thread): Update.
12158 (keep_going_pass_signal): Update.
12159 (print_exited_reason): Update.
12160 (normal_stop): Update.
12161 * inferior.c (inferior_pid_to_str): Change return type.
12162 (print_selected_inferior): Update.
12163 (add_inferior): Update.
12164 (detach_inferior): Update.
12165 * dummy-frame.c (fprint_dummy_frames): Update.
12166 * dcache.c (dcache_info_1): Update.
12167 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12168 (btrace_fetch, btrace_clear): Update.
12169 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12170 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12171 type.
12172 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12173 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12174 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12175 * gdbarch.c, gdbarch.h: Rebuild.
12176 * gdbarch.sh (core_pid_to_str): Change return type.
12177 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12178 return type.
12179 (windows_nat_target::pid_to_str): Change return type.
12180 (windows_delete_thread): Update.
12181 (windows_nat_target::attach): Update.
12182 (windows_nat_target::files_info): Update.
12183 * target-delegates.c: Rebuild.
12184 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12185 return type.
12186 (sol_thread_target::pid_to_str): Change return type.
12187 * remote.c (class remote_target) <pid_to_str>: Change return
12188 type.
12189 (remote_target::pid_to_str): Change return type.
12190 (extended_remote_target::attach, remote_target::remote_stop_ns)
12191 (remote_target::remote_notif_remove_queued_reply)
12192 (remote_target::push_stop_reply, remote_target::disable_btrace):
12193 Update.
12194 (extended_remote_target::attach): Update.
12195 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12196 type.
12197 (gdbsim_target::pid_to_str): Change return type.
12198 * ravenscar-thread.c (struct ravenscar_thread_target)
12199 <pid_to_str>: Change return type.
12200 (ravenscar_thread_target::pid_to_str): Change return type.
12201 * procfs.c (class procfs_target) <pid_to_str>: Change return
12202 type.
12203 (procfs_target::pid_to_str): Change return type.
12204 (procfs_target::attach): Update.
12205 (procfs_target::detach): Update.
12206 (procfs_target::fetch_registers): Update.
12207 (procfs_target::store_registers): Update.
12208 (procfs_target::wait): Update.
12209 (procfs_target::files_info): Update.
12210 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12211 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12212 return type.
12213 (nto_procfs_target::pid_to_str): Change return type.
12214 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12215 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12216 return type.
12217 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12218 (exit_lwp): Update.
12219 (attach_proc_task_lwp_callback, get_detach_signal)
12220 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12221 (linux_nat_target::resume, wait_lwp, stop_callback)
12222 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12223 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12224 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12225 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12226 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12227 type.
12228 (inf_ptrace_target::attach): Update.
12229 (inf_ptrace_target::files_info): Update.
12230 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12231 type.
12232 (go32_nat_target::pid_to_str): Change return type.
12233 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12234 (gnu_nat_target::wait): Update.
12235 (gnu_nat_target::wait): Update.
12236 (gnu_nat_target::resume): Update.
12237 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12238 (fbsd_nat_target::wait): Update.
12239 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12240 type.
12241 (darwin_nat_target::attach): Update.
12242 * corelow.c (class core_target) <pid_to_str>: Change return type.
12243 (core_target::pid_to_str): Change return type.
12244 * target.c (normal_pid_to_str): Change return type.
12245 (default_pid_to_str): Likewise.
12246 (target_pid_to_str): Change return type.
12247 (target_translate_tls_address): Update.
12248 (target_announce_detach): Update.
12249 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12250 return type.
12251 (bsd_uthread_target::pid_to_str): Change return type.
12252 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12253 type.
12254 (bsd_kvm_target::pid_to_str): Change return type.
12255 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12256 return type.
12257 (aix_thread_target::pid_to_str): Change return type.
12258 * target.h (struct target_ops) <pid_to_str>: Change return type.
12259 (target_pid_to_str, normal_pid_to_str): Likewise.
12260 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12261 type.
12262 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12263 type.
12264 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12265 return type.
12266 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12267 type.
12268 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12269 type.
12270 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12271 return type.
12272
b4be1b06
SM
122732019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12274
12275 * NEWS: Mention that the new default MI version is 3. Mention
12276 changes to the output of commands and events that deal with
12277 multi-location breakpoints.
12278 * breakpoint.c: Include "mi/mi-out.h".
12279 (print_one_breakpoint): Change output syntax if using MI version
12280 >= 3.
12281 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12282 New.
12283 (mi_multi_location_breakpoint_output_fixed): New.
12284 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12285 (mi_cmd_fix_multi_location_breakpoint_output): New.
12286 (mi_multi_location_breakpoint_output_fixed): New.
12287 * mi/mi-cmds.c (mi_cmds): Register command
12288 -fix-multi-location-breakpoint-output.
12289 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12290 interpreter "mi".
12291
8e5e5494
SM
122922019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12293
12294 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12295 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12296 instantiate mi_ui_out based on interpreter name.
12297 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12298 * mi/mi-main.c (mi_load_progress): Likewise.
12299
197df35e
JB
123002019-03-12 John Baldwin <jhb@FreeBSD.org>
12301
12302 * NEWS: Combine separate "New targets" sections for 8.3.
12303
8399425f
JB
123042019-03-12 John Baldwin <jhb@FreeBSD.org>
12305
12306 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12307 (ppcfbsd_init_abi): Install gdbarch
12308 "fetch_tls_load_module_address" and "get_thread_local_address"
12309 methods.
12310
b0f87ed0
JB
123112019-03-12 John Baldwin <jhb@FreeBSD.org>
12312
12313 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12314 (riscv_fbsd_init_abi): Install gdbarch
12315 "fetch_tls_load_module_address" and "get_thread_local_address"
12316 methods.
12317
ce25aa57
JB
123182019-03-12 John Baldwin <jhb@FreeBSD.org>
12319
12320 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12321 (i386fbsd_init_abi): Install gdbarch
12322 "fetch_tls_load_module_address" and "get_thread_local_address"
12323 methods.
12324
f5424cfa
JB
123252019-03-12 John Baldwin <jhb@FreeBSD.org>
12326
12327 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12328 (amd64fbsd_init_abi): Install gdbarch
12329 "fetch_tls_load_module_address" and "get_thread_local_address"
12330 methods.
12331
945f3901
JB
123322019-03-12 John Baldwin <jhb@FreeBSD.org>
12333
12334 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12335 (struct fbsd_pspace_data): New type.
12336 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12337 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12338 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12339 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12340 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12341
ef0bd204
JB
123422019-03-12 John Baldwin <jhb@FreeBSD.org>
12343
12344 * gdbtypes.c (lookup_struct_elt): New function.
12345 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12346 * gdbtypes.h (struct struct_elt): New type.
12347 (lookup_struct_elt): New prototype.
12348
36c53a02
JB
123492019-03-12 John Baldwin <jhb@FreeBSD.org>
12350
12351 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12352 remove disabled code block.
12353
6e056c81
JB
123542019-03-12 John Baldwin <jhb@FreeBSD.org>
12355
12356 * gdbarch.sh (get_thread_local_address): New method.
12357 * gdbarch.h, gdbarch.c: Regenerate.
12358 * target.c (target_translate_tls_address): Use
12359 gdbarch_get_thread_local_address if present instead of
12360 target::get_thread_local_address.
12361
cd250a18
JB
123622019-03-12 John Baldwin <jhb@FreeBSD.org>
12363
12364 * target.h (target::get_thread_local_address): Update comment.
12365
df22c1e5
JB
123662019-03-12 John Baldwin <jhb@FreeBSD.org>
12367
12368 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12369 objfile->separate_debug_objfile_backlink if not NULL.
12370
dd6876c9
JB
123712019-03-12 John Baldwin <jhb@FreeBSD.org>
12372
12373 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12374 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12375 (amd64bsd_store_inferior_registers): Likewise.
12376 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12377 Enable segment base registers.
12378 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12379 PT_GETFSBASE and PT_GETGSBASE.
12380 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12381 PT_SETGSBASE.
12382 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12383 segment base registers.
12384 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12385
1163a4b7
JB
123862019-03-12 John Baldwin <jhb@FreeBSD.org>
12387
12388 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12389 Update calls to i386_target_description to add 'segments'
12390 parameter.
12391 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12392 add segment base registers.
12393 * arch/i386.c (i386_create_target_description): Add 'segments'
12394 parameter to enable segment base registers.
12395 * arch/i386.h (i386_create_target_description): Likewise.
12396 * features/i386/32bit-segments.xml: New file.
12397 * features/i386/32bit-segments.c: Generate.
12398 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12399 call to i386_target_description to add 'segments' parameter.
12400 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12401 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12402 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12403 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12404 if feature is present.
12405 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12406 Add 'segments' parameter to call to i386_target_description.
12407 (i386_target_description): Add 'segments' parameter to enable
12408 segment base registers.
12409 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12410 to call to i386_target_description.
12411 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12412 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12413 Define I386_NUM_REGS.
12414 (i386_target_description): Add 'segments' parameter to enable
12415 segment base registers.
12416
3a350822
EZ
124172019-03-12 Eli Zaretskii <eliz@gnu.org>
12418
12419 PR/24325
12420 * source-cache.c: #undef open and close, to avoid unresolved
12421 externals during linking.
12422
ffdd69cf
TT
124232019-03-12 Tom Tromey <tromey@adacore.com>
12424
12425 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12426 const. Add initializers.
12427 (_initialize_remote): Don't initialize ptid globals.
12428
ec148c57
PA
124292019-03-12 Pedro Alves <palves@redhat.com>
12430
12431 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12432
32764270
PA
124332019-03-12 Pedro Alves <palves@redhat.com>
12434
12435 * cp-name-parser.y (main): Remove unused 'len' variable.
12436
17547186
TT
124372019-03-12 Tom Tromey <tromey@adacore.com>
12438
12439 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12440 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12441
d3a70e03
TT
124422019-03-12 Tom Tromey <tromey@adacore.com>
12443
12444 * linux-nat.c (iterate_over_lwps): Update.
12445 (stop_callback): Remove parameter.
12446 (stop_wait_callback, detach_callback, resume_set_callback)
12447 (select_singlestep_lwp_callback, set_ignore_sigint)
12448 (status_callback, resumed_callback, resume_clear_callback)
12449 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12450 data parameter.
12451 (linux_nat_target::detach, linux_nat_target::resume)
12452 (linux_stop_and_wait_all_lwps, select_event_lwp)
12453 (linux_nat_filter_event, linux_nat_wait_1)
12454 (linux_nat_target::kill, linux_nat_target::stop)
12455 (linux_nat_target::stop): Update.
12456 (linux_nat_resume_callback): Change type.
12457 (resume_stopped_resumed_lwps, count_events_callback)
12458 (select_event_lwp_callback): Likewise.
12459 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12460 * arm-linux-nat.c (struct update_registers_data): Remove.
12461 (update_registers_callback): Change type.
12462 (arm_linux_insert_hw_breakpoint1): Update.
12463 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12464 parameter.
12465 (x86_linux_dr_set_addr): Update.
12466 (x86_linux_dr_set_control): Update.
12467 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12468 (iterate_over_lwps): Use gdb::function_view.
12469 * nat/aarch64-linux-hw-point.c (struct
12470 aarch64_dr_update_callback_param): Remove.
12471 (debug_reg_change_callback): Change type.
12472 (aarch64_notify_debug_reg_change): Update.
12473 * s390-linux-nat.c (s390_refresh_per_info): Update.
12474
82cb27ff
TT
124752019-03-11 Tom Tromey <tromey@adacore.com>
12476
12477 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12478 redundant assignment to "this_cu".
12479
568c0683
SM
124802019-03-08 Simon Marchi <simon.marchi@efficios.com>
12481
12482 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12483
f09ce22d
SM
124842019-03-08 Simon Marchi <simon.marchi@efficios.com>
12485
12486 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12487 from...
12488 (rank_one_type): ... this.
12489
595f96a9
SM
124902019-03-08 Simon Marchi <simon.marchi@efficios.com>
12491
12492 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12493 from...
12494 (rank_one_type): ... this.
12495
2598a94b
SM
124962019-03-08 Simon Marchi <simon.marchi@efficios.com>
12497
12498 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12499 from...
12500 (rank_one_type): ... this.
12501
7f17b20d
SM
125022019-03-08 Simon Marchi <simon.marchi@efficios.com>
12503
12504 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12505 from...
12506 (rank_one_type): ... this.
12507
2c509035
SM
125082019-03-08 Simon Marchi <simon.marchi@efficios.com>
12509
12510 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12511 from...
12512 (rank_one_type): ... this.
12513
0dd322dc
SM
125142019-03-08 Simon Marchi <simon.marchi@efficios.com>
12515
12516 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12517 from...
12518 (rank_one_type): ... this.
12519
41ea4728
SM
125202019-03-08 Simon Marchi <simon.marchi@efficios.com>
12521
12522 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12523 from...
12524 (rank_one_type): ... this.
12525
793cd1d2
SM
125262019-03-08 Simon Marchi <simon.marchi@efficios.com>
12527
12528 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12529 from...
12530 (rank_one_type): ... this.
12531
34910087
SM
125322019-03-08 Simon Marchi <simon.marchi@efficios.com>
12533
12534 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12535 from...
12536 (rank_one_type): ... this.
12537
f1f832d6
SM
125382019-03-08 Simon Marchi <simon.marchi@efficios.com>
12539
12540 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12541 from...
12542 (rank_one_type): ... this.
12543
b9f4512f
SM
125442019-03-08 Simon Marchi <simon.marchi@efficios.com>
12545
12546 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12547 from...
12548 (rank_one_type): ... this.
12549
9293fc63
SM
125502019-03-08 Simon Marchi <simon.marchi@efficios.com>
12551
12552 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12553 from...
12554 (rank_one_type): ... this.
12555
e3abbe7e
PW
125562019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12557
12558 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12559 inferior-events' shows the example events.
12560
e4adb939
EZ
125612019-03-08 Eli Zaretskii <eliz@gnu.org>
12562
12563 Support styling on native MS-Windows console
12564
12565 PR/24315
12566 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12567 on MS-Windows if $TERM is not defined.
12568
12569 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12570
12571 * posix-hdep.c (gdb_console_fputs):
12572 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12573 functions.
12574 * ui-file.h (gdb_console_fputs): Add prototype.
12575
12576 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12577 back to fputs only if the former returns zero.
12578
25629dfd
TT
125792019-03-07 Tom Tromey <tom@tromey.com>
12580
12581 * symmisc.c (print_symbol_bcache_statistics): Update.
12582 (print_objfile_statistics): Update.
12583 * symfile.c (allocate_symtab): Update.
12584 * stabsread.c: Don't include bcache.h.
12585 * psymtab.h (struct psymbol_bcache): Don't declare.
12586 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12587 (psymbol_bcache_init, psymbol_bcache_free)
12588 (psymbol_bcache_get_bcache): Don't declare.
12589 * psymtab.c (struct psymbol_bcache): Remove.
12590 (psymtab_storage::psymtab_storage): Update.
12591 (psymtab_storage::~psymtab_storage): Update.
12592 (psymbol_bcache_init, psymbol_bcache_free)
12593 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12594 (add_psymbol_to_bcache): Update.
12595 (allocate_psymtab): Update.
12596 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12597 macro_cache>: No longer pointers.
12598 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12599 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12600 * macrotab.c (macro_bcache): Update.
12601 * macroexp.c: Don't include bcache.h.
12602 * gdbtypes.c (check_types_worklist): Update.
12603 (types_deeply_equal): Remove TRY/CATCH. Update.
12604 * elfread.c (elf_symtab_read): Update.
12605 * dwarf2read.c: Don't include bcache.h.
12606 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12607 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12608 (print_bcache_statistics, bcache_memory_used): Don't declare.
12609 (struct bcache): Move from bcache.c. Add constructor, destructor,
12610 methods. Rename all data members.
12611 * bcache.c (struct bcache): Move to bcache.h.
12612 (bcache::expand_hash_table): Rename from expand_hash_table.
12613 (bcache): Remove.
12614 (bcache::insert): Rename from bcache_full.
12615 (bcache::compare): Rename from bcache_compare.
12616 (bcache_xmalloc): Remove.
12617 (bcache::~bcache): Rename from bcache_xfree.
12618 (bcache::print_statistics): Rename from print_bcache_statistics.
12619 (bcache::memory_used): Rename from bcache_memory_used.
12620
fe726667
PA
126212019-03-07 Pedro Alves <palves@redhat.com>
12622
12623 * infrun.c (normal_stop): Also check for
12624 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12625
7584bb30
AB
126262019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12627
12628 * f-lang.c (value_from_host_double): Moved to...
12629 * value.c (value_from_host_double): ...here.
12630 * value.h (value_from_host_double): Declare.
12631 * guile/scm-math.c (vlscm_convert_typed_number): Use
12632 value_from_host_double.
12633 (vlscm_convert_number): Likewise.
12634 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12635 * python/py-value.c (convert_value_from_python): Likewise.
12636
a7b1986e
TT
126372019-03-06 Tom Tromey <tom@tromey.com>
12638
12639 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12640
0ccf4211
TT
126412019-03-06 Tom Tromey <tom@tromey.com>
12642
12643 * utils.h (free_current_contents): Don't declare.
12644 * utils.c (free_current_contents): Remove.
12645
fe7b42e5
TT
126462019-03-06 Tom Tromey <tom@tromey.com>
12647
12648 * top.c (quit_force): Update.
12649 * main.c (captured_command_loop): Update.
12650 * common/new-op.c (operator new): Update.
12651 * common/common-exceptions.c (struct catcher)
12652 <save_cleanup_chain>: Remove member.
12653 (exceptions_state_mc_init): Update.
12654 (exception_try_scope_entry): Return nullptr.
12655 (exception_try_scope_exit, exception_rethrow)
12656 (throw_exception_sjlj, throw_exception_cxx): Update.
12657 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12658 (all_cleanups, do_cleanups, discard_cleanups)
12659 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12660 (restore_cleanups, restore_final_cleanups): Don't declare.
12661 (do_final_cleanups): Remove parameter.
12662 * common/cleanups.c (cleanup_chain, make_cleanup)
12663 (make_cleanup_dtor, all_cleanups, do_cleanups)
12664 (discard_my_cleanups, discard_cleanups)
12665 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12666 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12667 (null_cleanup): Remove.
12668 (do_final_cleanups): Remove parameter.
12669
c6321f19
TT
126702019-03-06 Tom Tromey <tom@tromey.com>
12671
12672 * remote.c (remote_target::remote_parse_stop_reply): Use
12673 unique_xmalloc_ptr.
12674
61b30099
TT
126752019-03-06 Tom Tromey <tom@tromey.com>
12676
12677 * stabsread.c (struct stabs_field_info): Rename from field_info.
12678 <list, fnlist>: Add initializers.
12679 <obstack>: New member.
12680 (read_member_functions, read_struct_fields, read_baseclasses):
12681 Allocate on obstack. Don't use cleanups.
12682 (read_one_struct_field, read_member_functions, read_struct_fields)
12683 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12684 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12685 (read_struct_type): Update.
12686
6cceac94
TT
126872019-03-06 Tom Tromey <tom@tromey.com>
12688
12689 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12690 * common/filestuff.h (make_cleanup_close): Don't declare.
12691 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12692 Remove.
12693
72412762
TT
126942019-03-06 Tom Tromey <tom@tromey.com>
12695
12696 * solib-aix.c: Use make_scope_exit.
12697
2b6ff1c0
TT
126982019-03-06 Tom Tromey <tom@tromey.com>
12699
12700 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12701 Use make_scope_exit.
12702
d01c5877
TT
127032019-03-06 Tom Tromey <tom@tromey.com>
12704
12705 * solib-svr4.c (disable_probes_interface): Remove parameter.
12706 (svr4_handle_solib_event): Use make_scope_exit.
12707
32603266
TT
127082019-03-06 Tom Tromey <tom@tromey.com>
12709
12710 * remote.c (struct stop_reply_deleter): Remove.
12711 (stop_reply_up): Update.
12712 (struct stop_reply): Derive from notif_event. Don't typedef.
12713 <regcache>: Now a std::vector.
12714 (stop_reply_xfree): Remove.
12715 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12716 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12717 (remote_target::discard_pending_stop_replies): Use delete.
12718 (remote_target::remote_parse_stop_reply): Update.
12719 (remote_target::process_stop_reply): Update.
12720 * remote-notif.h (struct notif_event): Add virtual destructor.
12721 Remove "dtr" member.
12722 (struct notif_client) <alloc_event>: Return a unique_ptr.
12723 (notif_event_xfree): Don't declare.
12724 (notif_event_up): New typedef.
12725 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12726 (notif_event_xfree, do_notif_event_xfree): Remove.
12727 (remote_notif_state_xfree): Update.
12728
9799571e
TT
127292019-03-06 Tom Tromey <tom@tromey.com>
12730
12731 * infrun.c (displaced_step_clear_cleanup): Now a
12732 forward_scope_exit type.
12733 (displaced_step_prepare_throw): Update.
12734 (displaced_step_fixup): Update.
12735
09e3c4ca
TT
127362019-03-06 Tom Tromey <tom@tromey.com>
12737
12738 * inferior.h (class inferior): Update comment.
12739 * gdbthread.h (class thread_info): Update comment.
12740
e2a03548
TT
127412019-03-06 Joel Brobecker <brobecker@adacore.com>
12742 Tom Tromey <tom@tromey.com>
12743
12744 * stabsread.h (struct stab_section_list): Remove.
12745 (coffstab_build_psymtabs): Update.
12746 * dbxread.c (symbuf_sections): Now a std::vector.
12747 (sect_idx): New global.
12748 (fill_symbuf): Update.
12749 (coffstab_build_psymtabs): Change type of stabsects parameter.
12750 Update.
12751 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12752 std::vector.
12753 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12754 (coff_locate_sections): Update.
12755 (coff_symfile_read): Remove cleanups. Update.
12756 (init_stringtab): Add storage parameter.
12757 (free_stringtab, free_stringtab_cleanup): Remove.
12758 (init_lineno): Add storage parameter.
12759 (free_linetab, free_linetab_cleanup): Remove.
12760
b7e60d85
PA
127612019-03-06 Pedro Alves <palves@redhat.com>
12762
12763 * linux-fork.c (fork_info::clobber_regs): Delete.
12764 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12765 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12766 comment. Adjust.
12767 (scoped_switch_fork_info::scoped_switch_fork_info)
12768 (checkpoint_command, linux_fork_context): Adjust
12769 fork_save_infrun_state calls.
12770
e52c971f
PA
127712019-03-06 Pedro Alves <palves@redhat.com>
12772
12773 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12774 (inf_has_multiple_threads): Return 'bool' and rewrite using
12775 inferior_info::threads().
12776
06974e6c
PA
127772019-03-06 Pedro Alves <palves@redhat.com>
12778
12779 * linux-fork.c: Include <list>.
12780 (fork_list): Now a std::list instance.
12781 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12782 (forks_exist_p, find_last_fork): Adjust.
12783 (new_fork): Delete.
12784 (one_fork_p): New.
12785 (add_fork): Adjust.
12786 (free_fork): Delete, folded into fork_info::~fork_info().
12787 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12788 Adjust.
12789 (init_fork_list): Delete.
12790 (linux_fork_killall, linux_fork_mourn_inferior)
12791 (linux_fork_detach, info_checkpoints_command): Adjust.
12792 (_initialize_linux_fork): No longer call init_fork_list.
12793
72f31aea
PA
127942019-03-06 Pedro Alves <palves@redhat.com>
12795
12796 * linux-fork.c (new_fork): New, split out of ...
12797 (add_fork): ... this. Return void. Move "first fork" special
12798 case from here, to ...
12799 (checkpoint_command): ... here.
12800 * linux-linux.h (add_fork): Return void.
12801
efbecbc1
AB
128022019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12803
12804 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12805
0841c79a
AB
128062019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12807 Chris January <chris.january@arm.com>
12808 David Lecomber <david.lecomber@arm.com>
12809
12810 * f-exp.y: New token, UNOP_INTRINSIC.
12811 (exp): New pattern using UNOP_INTRINSIC token.
12812 (f77_keywords): Add 'abs' keyword.
12813 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12814 (value_from_host_double): New function.
12815 (evaluate_subexp_f): Support UNOP_ABS.
12816
4a270568
AB
128172019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12818
12819 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12820 types.
12821
067630bd
AB
128222019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12823
12824 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12825 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12826 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12827
3be47f7a
AB
128282019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12829
12830 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12831
4d00f5d8
AB
128322019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12833 Chris January <chris.january@arm.com>
12834
12835 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12836 * f-exp.y: Define 'KIND' token.
12837 (exp): New pattern for KIND expressions.
12838 (ptype): Handle types with a kind extension.
12839 (direct_abs_decl): Extend to spot kind extensions.
12840 (f77_keywords): Add 'kind' to the list.
12841 (push_kind_type): New function.
12842 (convert_to_kind_type): New function.
12843 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12844 * parse.c (operator_length_standard): Likewise.
12845 * parser-defs.h (enum type_pieces): Add tp_kind.
12846 * std-operator.def: Add UNOP_KIND.
12847
e454224f
AB
128482019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12849
12850 * f-exp.y (f_parse): Set yydebug.
12851
9dad4a58
AB
128522019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12853
12854 * f-lang.c (evaluate_subexp_f): New function.
12855 (exp_descriptor_f): New global.
12856 (f_language_defn): Use exp_descriptor_f instead of
12857 exp_descriptor_standard.
12858
c8f91604
AB
128592019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12860
12861 * f-exp.y (struct token): Add comments.
12862 (dot_ops): Remove uppercase versions and the end marker.
12863 (f77_keywords): Likewise.
12864 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12865 entries in the dot_ops array are case insensitive, and use
12866 strncasecmp to compare strings. Also some whitespace cleanup in
12867 this area. Similar for the f77_keywords array, except entries in
12868 this list might be case sensitive.
12869
dd9f2c76
AB
128702019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12871
12872 * f-exp.y (struct f77_boolean_val): Add comments.
12873 (boolean_values): Remove uppercase versions, and end marker.
12874 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12875 and use strncasecmp to achieve case insensitivity. Additionally,
12876 perform whitespace cleanup around this code.
12877
67a3048c
TT
128782019-03-06 Tom Tromey <tromey@adacore.com>
12879
12880 * remote-sim.c (gdbsim_target_open): Use result of
12881 gdb_argv::release.
12882
aa3cfbda
RB
128832019-03-06 Richard Bunt <richard.bunt@arm.com>
12884 Dirk Schubert <dirk.schubert@arm.com>
12885 Chris January <chris.january@arm.com>
12886
12887 * eval.c (evaluate_subexp_standard): Call Fortran argument
12888 wrapping logic.
12889 * f-lang.c (struct value): A value which can be passed into a
12890 Fortran function call.
12891 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12892 where appropriate.
12893 (struct type): Value ready for a Fortran function call.
12894 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12895 is needed.
12896 * f-lang.h (fortran_argument_convert): Declaration.
12897 (fortran_preserve_arg_pointer): Declaration.
12898 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12899
ea38e5df
TT
129002019-03-05 Tom Tromey <tromey@adacore.com>
12901
12902 * python/py-prettyprint.c (print_string_repr): Remove #if.
12903 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12904
06b5b831
TT
129052019-03-05 Tom Tromey <tromey@adacore.com>
12906
12907 * target.c (the_dummy_target): Move later. Change type to
12908 "dummy_target".
12909 (initialize_targets): Don't initialize the_dummy_target.
12910
edbd9e45
TT
129112019-03-05 Tom Tromey <tromey@adacore.com>
12912
12913 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12914 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12915
c119e040
TT
129162019-03-05 Tom Tromey <tromey@adacore.com>
12917
12918 * windows-nat.c (windows_nat_target::attach)
12919 (windows_nat_target::detach): Don't call gdb_flush.
12920 * valprint.c (generic_val_print, val_print, val_print_string):
12921 Don't call gdb_flush.
12922 * utils.c (defaulted_query): Don't call gdb_flush.
12923 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12924 * target.c (target_announce_detach): Don't call gdb_flush.
12925 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12926 * remote.c (extended_remote_target::attach): Don't call
12927 gdb_flush.
12928 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12929 * printcmd.c (do_examine): Don't call gdb_flush.
12930 (info_display_command): Don't call gdb_flush.
12931 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12932 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12933 * memattr.c (info_mem_command): Don't call gdb_flush.
12934 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12935 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12936 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12937 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12938 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12939 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12940 (gnu_nat_target::detach): Don't call gdb_flush.
12941 * f-valprint.c (f_val_print): Don't call gdb_flush.
12942 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12943 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12944 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12945 gdb_flush.
12946 * c-valprint.c (c_val_print): Don't call gdb_flush.
12947 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12948
895dafa6
TT
129492019-03-05 Tom Tromey <tromey@adacore.com>
12950
12951 * varobj.c (update_dynamic_varobj_children): Update.
12952 (install_default_visualizer): Use reset, not release.
12953 * value.c (set_internalvar): Update.
12954 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12955 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12956 ATTRIBUTE_UNUSED_RESULT.
12957
88a774b9
TT
129582019-03-05 Tom Tromey <tromey@adacore.com>
12959
12960 * remote.c (class scoped_remote_fd) <release>: Add
12961 ATTRIBUTE_UNUSED_RESULT.
12962
4e4a8b93
TT
129632019-03-05 Tom Tromey <tromey@adacore.com>
12964
12965 * macroexp.c (struct macro_buffer) <release>: Add
12966 ATTRIBUTE_UNUSED_RESULT.
12967
083eef1f
TT
129682019-03-05 Tom Tromey <tromey@adacore.com>
12969
12970 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12971 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12972 ATTRIBUTE_UNUSED_RESULT.
12973
3cabd438
TT
129742019-03-05 Tom Tromey <tromey@adacore.com>
12975
12976 * common/scoped_fd.h (class scoped_fd) <release>: Add
12977 ATTRIBUTE_UNUSED_RESULT.
12978
41e3300a
TT
129792019-03-05 Tom Tromey <tromey@adacore.com>
12980
12981 * parser-defs.h (struct parser_state) <release>: Add
12982 ATTRIBUTE_UNUSED_RESULT.
12983
18cb7c9f
TT
129842019-03-05 Tom Tromey <tromey@adacore.com>
12985
12986 * utils.h (class gdb_argv) <release>: Add
12987 ATTRIBUTE_UNUSED_RESULT.
12988 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12989
41fa577f
EZ
129902019-03-02 Eli Zaretskii <eliz@gnu.org>
12991
a6a4b2c6
EZ
12992 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12993 for-loop range, to avoid compiler warnings.
12994
12995 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12996 avoid compiler warnings about unused variables.
12997
742a7df5
EZ
12998 * NEWS: Mention end of support for native debugging on MS-Windows
12999 before XP.
13000
41fa577f
EZ
13001 PR gdb/24292
13002 * common/netstuff.c:
13003 * gdbserver/gdbreplay.c
13004 * gdbserver/remote-utils.c:
13005 * ser-tcp.c:
13006 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13007 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13008 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13009 'getaddrinfo' and 'freeaddrinfo' were not available before
13010 Windows XP, and mingw.org's MinGW headers by default define
13011 _WIN32_WINNT to 0x500.
13012
827f438f
GB
130132019-03-01 Gary Benson <gbenson@redhat.com>
13014
13015 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13016
92137da0
RO
130172019-02-28 Brian Vandenberg <phantall@gmail.com>
13018 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13019
13020 PR gdb/8527
13021 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13022 set_sigint_trap, clear_sigint_trap.
13023
799efbe8
PW
130242019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13025
13026 * target.c (target_detach): Clear the regcache and the
13027 frame cache.
13028
8ed25214
PA
130292019-02-27 Pedro Alves <palves@redhat.com>
13030
13031 * utils.c (set_screen_size): When we cap the height/width sizes,
13032 tweak the corresponding command variable to show "unlimited":
13033
23031e31
SJ
130342019-02-27 Saagar Jha <saagar@saagarjha.com>
13035 Pedro Alves <palves@redhat.com>
13036
13037 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13038 before calling rl_set_screen_size.
13039
6c28e44a
TT
130402019-02-27 Tom Tromey <tromey@adacore.com>
13041
13042 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13043 define.
13044 * python/py-value.c: Remove Python 2.4 workaround.
13045 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13046 workaround.
13047 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13048 Python 2.4 workaround.
13049 * python/python-internal.h: Remove Python 2.4 comment.
13050 (Py_ssize_t): Don't define.
13051 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13052 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13053 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13054 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13055 * python/python.c (do_start_initialization): Remove Python 2.4
13056 workaround.
13057 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13058 (print_children): Remove Python 2.4 workaround.
13059 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13060 workaround.
13061 (CHARBUFFERPROC_NAME): Remove.
13062 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13063 Python 2.4 workaround.
13064
2c3fc25d 130652019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13066
2c3fc25d
KB
13067 * NEWS: Note minimum Python version.
13068
6ca62222
KB
130692019-02-27 Kevin Buettner <kevinb@redhat.com>
13070
13071 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13072 code from these functions. Remove corresponding ifdefs. Use
13073 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13074 Remove gotos and target of gotos.
13075 (infpy_search_memory): Likewise.
13076
f4bc7d2c
AB
130772019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13078
13079 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13080 (hppa_gdbarch_init): Don't register deleted functions with
13081 gdbarch.
13082
9734a586
AB
130832019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13084
13085 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13086 (h8300_unwind_sp): Delete.
13087 (h8300_dummy_id): Delete.
13088 (h8300_gdbarch_init): Don't register deleted functions with
13089 gdbarch.
13090
68b867f3
AB
130912019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13092
13093 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13094 (ft32_unwind_pc): Delete.
13095 (ft32_unwind_sp): Delete.
13096 (ft32_gdbarch_init): Don't register deleted functions with
13097 gdbarch.
13098
2fbe7ad0
AB
130992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13100
13101 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13102 (frv_unwind_pc): Delete.
13103 (frv_unwind_sp): Delete.
13104 (frv_gdbarch_init): Don't register deleted functions with
13105 gdbarch.
13106
76055cbe
AB
131072019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13108
13109 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13110 (riscv_unwind_pc): Delete.
13111 (riscv_unwind_sp): Delete.
13112 (riscv_gdbarch_init): Don't register deleted functions with
13113 gdbarch.
13114
4133e5a1
AB
131152019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13116
13117 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13118 (csky_unwind_pc): Delete.
13119 (csky_unwind_sp): Delete.
13120 (csky_gdbarch_init): Don't register deleted functions with
13121 gdbarch.
13122
8010f576
AB
131232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13124
13125 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13126 (cris_unwind_pc): Delete.
13127 (cris_unwind_sp): Delete.
13128 (cris_gdbarch_init): Don't register deleted functions with
13129 gdbarch.
13130
b56bf084
AB
131312019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13132
13133 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13134 (bfin_unwind_pc): Delete.
13135 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13136
a19a650f
AB
131372019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13138
13139 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13140 (arm_unwind_pc): Delete.
13141 (arm_unwind_sp): Delete.
13142 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13143
f8278c3c
AB
131442019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13145
13146 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13147 (arc_unwind_pc): Delete.
13148 (arc_unwind_sp): Delete.
13149 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13150
480e46cf
AB
131512019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13152
13153 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13154 (alpha_unwind_pc): Delete.
13155 (alpha_gdbarch_init): Don't register deleted functions with
13156 gdbarch.
13157
7a995095
AB
131582019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13159
13160 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13161 (aarch64_unwind_pc): Delete.
13162 (aarch64_unwind_sp): Delete.
13163 (aarch64_gdbarch_init): Don't register deleted functions with
13164 gdbarch.
13165
bf9a735e
AB
131662019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13167
13168 * gdbtypes.c (type_align): Don't consider static members when
13169 computing structure alignment.
13170
5561fc30
AB
131712019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13172
13173 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13174 return 0 for other types.
13175 * arch-utils.c (default_type_align): Always return 0.
13176 * gdbarch.h: Regenerate.
13177 * gdbarch.sh (type_align): Extend comment.
13178 * gdbtypes.c (type_align): Add additional comments, always call
13179 gdbarch_type_align before applying the default rules.
13180 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13181 generic code will then apply a suitable default.
13182 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13183 types, return 0 for other types.
13184
9335e75a
JB
131852019-02-27 Joel Brobecker <brobecker@adacore.com>
13186
13187 * NEWS: Create a new section for the next release branch.
13188 Rename the section of the current branch, now that it has
13189 been cut.
13190
3d34d8de
JB
131912019-02-27 Joel Brobecker <brobecker@adacore.com>
13192
13193 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13194 * version.in: Bump version to 8.3.50.DATE-git.
13195
143420fb
SM
131962019-02-26 Simon Marchi <simon.marchi@efficios.com>
13197
13198 * aix-thread.c (ptid_cmp): Remove unused variable.
13199 (get_signaled_thread): Likewise.
13200 (store_regs_user_thread): Likewise.
13201 (store_regs_kernel_thread): Likewise.
13202 (fetch_regs_kernel_thread): Remove shadowed variable.
13203
172fb711
AB
132042019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13205
13206 * features/riscv/32bit-cpu.xml: Add register numbers.
13207 * features/riscv/32bit-fpu.c: Regenerate.
13208 * features/riscv/32bit-fpu.xml: Add register numbers.
13209 * features/riscv/64bit-cpu.xml: Add register numbers.
13210 * features/riscv/64bit-fpu.c: Regenerate.
13211 * features/riscv/64bit-fpu.xml: Add register numbers.
13212
26c89782
KB
132132019-02-26 Kevin Buettner <kevinb@redhat.com>
13214
af54ade9 13215 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
13216 * python/py-value.c (convert_buffer_and_type_to_value): New
13217 function.
13218 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13219 Add support for handling an optional second argument. Call
13220 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
13221 * python/python-internal.h (Py_buffer_deleter): New struct.
13222 (Py_buffer_up): New typedef.
13223
0f58c9e8
JB
132242019-02-25 John Baldwin <jhb@FreeBSD.org>
13225
13226 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13227 instead of releasing ownership.
13228
0a0f4c01
JR
132292019-02-25 Jordan Rupprecht <rupprecht@google.com>
13230
13231 * dwarf2read.c (open_and_init_dwp_file): Call
13232 elf_numsections instead of bfd_count_sections to initialize
13233 dwp_file->num_sections.
13234
cd5a152c
TT
132352019-02-25 Tom Tromey <tromey@adacore.com>
13236
13237 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13238
8a6a8513
SDJ
132392019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13240
13241 * gcore.in: Add '--readnever' option when invoking GDB.
13242
04dcda9c
SM
132432019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13244
13245 * MAINTAINERS: Update my email address.
13246
07bc701d
SM
132472019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13248
13249 * build-id.c (build_id_to_debug_bfd_1): New function.
13250 (build_id_to_debug_bfd): Look for separate debug file in
13251 sysroot.
13252
c6f4a5d0
AB
132532019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13254
13255 * gdbarch.sh: Update the copyright year range that is placed into
13256 generated files.
13257
9600246d
KS
132582019-02-22 Keith Seitz <keiths@redhat.com>
13259
13260 PR symtab/23853
13261 * linespec.c (create_sals_line_offset): Search for the default
13262 symtab's filename instead of its fullname.
13263
7557a514
AH
132642019-02-21 Alan Hayward <alan.hayward@arm.com>
13265
13266 * NEWS: Update style defaults.
13267
ee2bcb0c
AH
132682019-02-21 Alan Hayward <alan.hayward@arm.com>
13269
13270 * main.c (captured_main_1): Disable styling in batch mode.
13271
0c95f9ed
TT
132722019-02-20 Tom Tromey <tom@tromey.com>
13273
13274 * symtab.c (symtab_symbol_info): Fix typos.
13275
c763b894
TT
132762019-02-20 Tom Tromey <tromey@adacore.com>
13277
13278 * findcmd.c (_initialize_mem_search): Use upper case for
13279 metasyntactic variables.
13280
0ef8a082
AH
132812019-02-20 Alan Hayward <alan.hayward@arm.com>
13282
13283 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13284 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13285
6caa91b6
SM
132862019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13287
13288 * top.h (source_file_name): Change to std::string.
13289 * top.c (source_file_name): Likewise.
13290 (command_line_input): Adjust.
13291 * cli/cli-script.c (script_from_file): Adjust.
13292
98814c6c
TT
132932019-02-19 Tom Tromey <tromey@adacore.com>
13294
13295 * ravenscar-thread.c
13296 (ravenscar_thread_target::update_thread_list): Don't call
13297 ada_build_task_list.
13298 * ada-lang.h (ada_build_task_list): Don't declare.
13299 * ada-tasks.c (struct ada_tasks_inferior_data)
13300 <task_list_valid_p>: Now bool.
13301 (read_known_tasks, ada_task_list_changed)
13302 (ada_tasks_invalidate_inferior_data): Update.
13303 (read_known_tasks_array): Return bool.
13304 (read_known_tasks_list): Likewise.
13305 (read_known_tasks): Return void.
13306 (ada_build_task_list): Now static.
13307
70cd633e
AB
133082019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13309
13310 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13311 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13312
040b3e95
PW
133132019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13314
13315 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13316 variant for ada_tasks_pspace_data_handle and
13317 ada_tasks_inferior_data_handle.
13318 (ada_tasks_pspace_data_cleanup): New function.
13319 (ada_tasks_inferior_data_cleanup): New function.
13320
9409233b
TT
133212019-02-17 Tom Tromey <tom@tromey.com>
13322
13323 * macrotab.h (macro_source_fullname): Return a std::string.
13324 * macrotab.c (macro_include, check_for_redefinition)
13325 (macro_undef, macro_lookup_definition, foreach_macro)
13326 (foreach_macro_in_scope): Update.
13327 (macro_source_fullname): Return a std::string.
13328 * macrocmd.c (show_pp_source_pos): Update.
13329
6506371f
TT
133302019-02-17 Tom Tromey <tom@tromey.com>
13331
13332 * macrocmd.c (show_pp_source_pos): Style the file names.
13333
0c820d67
TT
133342019-02-17 Tom Tromey <tom@tromey.com>
13335
13336 PR tui/24197:
13337 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13338
a0087920
TT
133392019-02-17 Tom Tromey <tom@tromey.com>
13340
13341 * ada-lang.c (user_select_syms): Use filtered printing.
13342 * utils.c (wrap_style): New global.
13343 (desired_style): Remove.
13344 (emit_style_escape): Add stream parameter.
13345 (set_output_style, reset_terminal_style, prompt_for_continue):
13346 Update.
13347 (flush_wrap_buffer): Only flush gdb_stdout.
13348 (wrap_here): Set wrap_style.
13349 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13350 treat escape sequences as a character. Change when wrap buffer is
13351 flushed.
13352 (fputs_styled): Do not set the output style when the default is
13353 requested.
13354 * ui-style.h (struct ui_file_style) <is_default>: New method.
13355 * source.c (print_source_lines_base): Emit escape sequences in one
13356 piece.
13357
75ba10dc
JB
133582019-02-17 Joel Brobecker <brobecker@adacore.com>
13359
13360 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13361 integers and enumeration types.
13362
a2cd4f14
JB
133632019-02-17 Joel Brobecker <brobecker@adacore.com>
13364
13365 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13366 instead of lookup_symbol_in_language
13367 (do_exact_match): New function.
13368 (ada_get_symbol_name_matcher): Return do_exact_match when
13369 doing a verbatim match.
13370
485b851b
TT
133712019-02-15 Tom Tromey <tromey@adacore.com>
13372
13373 * ravenscar-thread.c (ravenscar_thread_target::resume)
13374 (ravenscar_thread_target::wait): Special case wildcard requests.
13375
0b790b1e
TT
133762019-02-15 Tom Tromey <tromey@adacore.com>
13377
13378 * ravenscar-thread.c (base_ptid): Remove.
13379 (struct ravenscar_thread_target) <close>: New method.
13380 <m_base_ptid>: New member.
13381 <update_inferior_ptid, active_task, task_is_currently_active,
13382 runtime_initialized>: Declare methods.
13383 <ravenscar_thread_target>: Add constructor.
13384 (ravenscar_thread_target::task_is_currently_active)
13385 (ravenscar_thread_target::update_inferior_ptid)
13386 (ravenscar_runtime_initialized): Rename. Now methods.
13387 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13388 (ravenscar_thread_target::update_thread_list): Update.
13389 (ravenscar_thread_target::active_task): Now method.
13390 (ravenscar_thread_target::store_registers)
13391 (ravenscar_thread_target::prepare_to_store)
13392 (ravenscar_thread_target::prepare_to_store)
13393 (ravenscar_thread_target::mourn_inferior): Update.
13394 (ravenscar_inferior_created): Use "new" to create target.
13395 (ravenscar_thread_target::get_ada_task_ptid): Update.
13396 (_initialize_ravenscar): Don't initialize base_ptid.
13397 (ravenscar_ops): Remove global.
13398
dea57a62
TT
133992019-02-15 Tom Tromey <tromey@adacore.com>
13400
13401 * target.h (push_target): Declare new overload.
13402 * target.c (push_target): New overload, taking an rvalue reference.
13403 * remote.c (remote_target::open_1): Use push_target overload.
13404 * corelow.c (core_target_open): Use push_target overload.
13405
989f3c58
TT
134062019-02-15 Tom Tromey <tromey@adacore.com>
13407
13408 * ravenscar-thread.c (is_ravenscar_task)
13409 (ravenscar_task_is_currently_active): Return bool.
13410 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13411 (_initialize_ravenscar): Remove "(void)".
13412 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13413 Return bool.
13414
6cbcc006
TT
134152019-02-15 Tom Tromey <tromey@adacore.com>
13416
13417 * ravenscar-thread.c (ravenscar_runtime_initializer)
13418 (has_ravenscar_runtime, get_running_thread_id)
13419 (ravenscar_thread_target::resume): Fix indentation.
13420
7657f14d
TT
134212019-02-15 Tom Tromey <tromey@adacore.com>
13422
13423 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13424 from ravenscar_arch_ops.
13425 (sparc_ravenscar_ops::fetch_registers)
13426 (sparc_ravenscar_ops::store_registers): Now methods.
13427 (sparc_ravenscar_prepare_to_store): Remove.
13428 (sparc_ravenscar_ops): Redefine.
13429 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13430 methods and destructor. Remove members.
13431 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13432 (ravenscar_thread_target::store_registers)
13433 (ravenscar_thread_target::prepare_to_store): Update.
13434 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13435 Remove.
13436 (struct ppc_ravenscar_powerpc_ops): Derive from
13437 ravenscar_arch_ops.
13438 (ppc_ravenscar_powerpc_ops::fetch_registers)
13439 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13440 (ppc_ravenscar_powerpc_ops): Redefine.
13441 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13442 (ppc_ravenscar_e500_ops::fetch_registers)
13443 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13444 (ppc_ravenscar_e500_ops): Redefine.
13445 * aarch64-ravenscar-thread.c
13446 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13447 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13448 (aarch64_ravenscar_fetch_registers)
13449 (aarch64_ravenscar_store_registers): Now methods.
13450 (aarch64_ravenscar_ops): Redefine.
13451
5b6ea500
TT
134522019-02-15 Tom Tromey <tromey@adacore.com>
13453
13454 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13455 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13456 (ravenscar_thread_target::stopped_by_watchpoint)
13457 (ravenscar_thread_target::stopped_data_address)
13458 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13459
e397fd39
TT
134602019-02-15 Tom Tromey <tromey@adacore.com>
13461
13462 * ravenscar-thread.c: Fix some typos.
13463
cc12f4a8
TT
134642019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13465 Tom Tromey <tromey@adacore.com>
13466
13467 * ada-lang.c (ada_exception_sal): Change addr_string to a
13468 std::string.
13469 (create_ada_exception_catchpoint): Update.
13470
5f486660
TT
134712019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13472 Tom Tromey <tromey@adacore.com>
13473
13474 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13475 (bp_location_ops): Remove.
13476 (base_breakpoint_allocate_location): Update.
13477 (free_bp_location): Update.
13478 * ada-lang.c (class ada_catchpoint_location)
13479 <ada_catchpoint_location>: Remove ops parameter.
13480 (ada_catchpoint_location_dtor): Remove.
13481 (ada_catchpoint_location_ops): Remove.
13482 (allocate_location_exception): Update.
13483 * breakpoint.h (struct bp_location_ops): Remove.
13484 (class bp_location) <bp_location>: Remove bp_location_ops
13485 parameter.
13486 <~bp_location>: Add destructor.
13487 <ops>: Remove.
13488
b671c7fb
TS
134892019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13490 Pedro Alves <palves@redhat.com>
13491
13492 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13493 'PATH_MAX'.
13494
8071c5ce
DM
134952019-02-14 David Michael <fedora.dm0@gmail.com>
13496 Samuel Thibault <samuel.thibault@gnu.org>
13497 Thomas Schwinge <thomas@codesourcery.com>
13498
13499 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13500 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13501
b1041ae0
TS
135022019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13503
924514e1
TS
13504 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13505 (check_empty): Use "const char *".
13506
c29ee8d4
TS
13507 * gnu-nat.c (gnu_nat_target::detach): Instead of
13508 'detach_inferior (pid)' call
13509 'detach_inferior (find_inferior_pid (pid))'.
13510
6c6ef69f
TS
13511 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13512 'nat/fork-inferior.o'.
13513 * gnu-nat.c: #include "nat/fork-inferior.h".
13514
2d0a338c
TS
13515 * gnu-nat.c (gnu_nat_target::detach): Instead of
13516 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13517 * gnu-nat.h: #include "inf-child.h".
13518 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13519 'i386_gnu_nat_target::fetch_registers'.
13520 (gnu_store_registers): Rename/move to
13521 'i386_gnu_nat_target::store_registers'.
13522
cabb5f06
TS
13523 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13524 * gnu-nat.h (mach_thread_info): New function.
13525 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13526
b1041ae0
TS
13527 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13528
2988d01e
KF
135292019-02-14 Frederic Konrad <konrad@adacore.com>
13530
13531 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13532
c559d709
JB
135332019-02-14 Joel Brobecker <brobecker@adacore.com>
13534
13535 * windows-nat.c (windows_add_thread): Add new parameter
13536 "main_thread_p" with default value set to false. Update
13537 function documentation as well as all callers.
13538 (windows_delete_thread): Likewise.
13539 (fake_create_process): Update call to windows_add_thread.
13540 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13541 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13542 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13543 call to windows_delete_thread.
13544
007024cc
SM
135452019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13546
13547 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13548
f62318e9
JB
135492019-02-12 John Baldwin <jhb@FreeBSD.org>
13550
13551 * symfile.c (find_separate_debug_file): Use canonical path of
13552 sysroot with child_path instead of gdb_sysroot if it is valid.
13553
cd4b7848
JB
135542019-02-12 John Baldwin <jhb@FreeBSD.org>
13555
13556 * symfile.c (find_separate_debug_file): Use child_path to
13557 determine if an object file is under a sysroot.
13558
efac4bfe
JB
135592019-02-12 John Baldwin <jhb@FreeBSD.org>
13560
13561 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13562 unittests/child-path-selftests.c.
13563 * common/pathstuff.c (child_path): New function.
13564 * common/pathstuff.h (child_path): New prototype.
13565 * unittests/child-path-selftests.c: New file.
13566
402d2bfe
JB
135672019-02-12 John Baldwin <jhb@FreeBSD.org>
13568
13569 * symfile.c (find_separate_debug_file): Look for separate debug
13570 files in debug directories under the sysroot.
13571
1ed9f74e
PW
135722019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13573
13574 * symtab.h (struct minimal_symbol data_p): New const method.
13575 (struct minimal_symbol text_p): Likewise.
13576 * symtab.c (output_source_filename): Use file name style
13577 to print file name.
13578 (print_symbol_info): Likewise.
13579 (print_msymbol_info): Use address style to print addresses.
13580 Use function name style to print executable text symbols.
13581 (expand_symtab_containing_pc): Use data_p.
13582 (find_pc_sect_compunit_symtab): Likewise.
13583
2636d81d
PW
135842019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13585
13586 * breakpoint.c (describe_other_breakpoints): Use address style
13587 to print addresses.
13588 (say_where): Likewise.
13589
ac8c53cc
PW
135902019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13591
13592 * ada-typeprint.c (print_func_type): Print function name
13593 style to print function name.
13594 * c-typeprint.c (c_print_type_1): Likewise.
13595
ea638c43
AH
135962019-02-11 Alan Hayward <alan.hayward@arm.com>
13597
13598 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13599 for execve.
13600
ab759ca8
PW
136012019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13602
13603 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13604 type_stack.
13605
aff29d1c
JB
136062019-02-10 Joel Brobecker <brobecker@adacore.com>
13607
13608 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13609 TYPE_CODE_REF types.
13610
617126bc
JW
136112019-02-08 Jim Wilson <jimw@sifive.com>
13612
13613 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13614 (riscv_linux_fregset): New.
13615 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13616
46e3ed7f
TT
136172019-02-07 Tom Tromey <tom@tromey.com>
13618
13619 * thread.c (thread_cancel_execution_command): Update.
13620 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13621 methods.
13622 (struct thread_fsm_ops): Remove.
13623 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13624 (thread_fsm_should_stop, thread_fsm_return_value)
13625 (thread_fsm_set_finished, thread_fsm_finished_p)
13626 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13627 Don't declare.
13628 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13629 * infrun.c (clear_proceed_status_thread)
13630 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13631 (print_stop_event): Update.
13632 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13633 Add constructor.
13634 (step_command_fsm_ops): Remove.
13635 (new_step_command_fsm): Remove.
13636 (step_1): Update.
13637 (step_command_fsm::should_stop): Rename from
13638 step_command_fsm_should_stop.
13639 (step_command_fsm::clean_up): Rename from
13640 step_command_fsm_clean_up.
13641 (step_command_fsm::do_async_reply_reason): Rename from
13642 step_command_fsm_async_reply_reason.
13643 (struct until_next_fsm): Inherit from thread_fsm. Add
13644 constructor.
13645 (until_next_fsm_ops): Remove.
13646 (new_until_next_fsm): Remove.
13647 (until_next_fsm::should_stop): Rename from
13648 until_next_fsm_should_stop.
13649 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13650 (until_next_fsm::do_async_reply_reason): Rename from
13651 until_next_fsm_async_reply_reason.
13652 (struct finish_command_fsm): Inherit from thread_fsm. Add
13653 constructor. Change type of breakpoint.
13654 (finish_command_fsm_ops): Remove.
13655 (new_finish_command_fsm): Remove.
13656 (finish_command_fsm::should_stop): Rename from
13657 finish_command_fsm_should_stop.
13658 (finish_command_fsm::clean_up): Rename from
13659 finish_command_fsm_clean_up.
13660 (finish_command_fsm::return_value): Rename from
13661 finish_command_fsm_return_value.
13662 (finish_command_fsm::do_async_reply_reason): Rename from
13663 finish_command_fsm_async_reply_reason.
13664 (finish_command): Update.
13665 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13666 Add constructor.
13667 (call_thread_fsm_ops): Remove.
13668 (call_thread_fsm::call_thread_fsm): Rename from
13669 new_call_thread_fsm.
13670 (call_thread_fsm::should_stop): Rename from
13671 call_thread_fsm_should_stop.
13672 (call_thread_fsm::should_notify_stop): Rename from
13673 call_thread_fsm_should_notify_stop.
13674 (run_inferior_call, call_function_by_hand_dummy): Update.
13675 * cli/cli-interp.c (should_print_stop_to_console): Update.
13676 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13677 Add constructor. Change type of location_breakpoint,
13678 caller_breakpoint.
13679 (until_break_fsm_ops): Remove.
13680 (new_until_break_fsm): Remove.
13681 (until_break_fsm::should_stop): Rename from
13682 until_break_fsm_should_stop.
13683 (until_break_fsm::clean_up): Rename from
13684 until_break_fsm_clean_up.
13685 (until_break_fsm::do_async_reply_reason): Rename from
13686 until_break_fsm_async_reply_reason.
13687 (until_break_command): Update.
13688 * thread-fsm.c: Remove.
13689 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13690
1a5c2598
TT
136912019-02-07 Tom Tromey <tom@tromey.com>
13692
13693 * yy-remap.h: Add include guard.
13694 * xtensa-tdep.h: Add include guard.
13695 * xcoffread.h: Rename include guard.
13696 * varobj-iter.h: Add include guard.
13697 * tui/tui.h: Rename include guard.
13698 * tui/tui-winsource.h: Rename include guard.
13699 * tui/tui-wingeneral.h: Rename include guard.
13700 * tui/tui-windata.h: Rename include guard.
13701 * tui/tui-win.h: Rename include guard.
13702 * tui/tui-stack.h: Rename include guard.
13703 * tui/tui-source.h: Rename include guard.
13704 * tui/tui-regs.h: Rename include guard.
13705 * tui/tui-out.h: Rename include guard.
13706 * tui/tui-layout.h: Rename include guard.
13707 * tui/tui-io.h: Rename include guard.
13708 * tui/tui-hooks.h: Rename include guard.
13709 * tui/tui-file.h: Rename include guard.
13710 * tui/tui-disasm.h: Rename include guard.
13711 * tui/tui-data.h: Rename include guard.
13712 * tui/tui-command.h: Rename include guard.
13713 * tic6x-tdep.h: Add include guard.
13714 * target/waitstatus.h: Rename include guard.
13715 * target/wait.h: Rename include guard.
13716 * target/target.h: Rename include guard.
13717 * target/resume.h: Rename include guard.
13718 * target-float.h: Rename include guard.
13719 * stabsread.h: Add include guard.
13720 * rs6000-tdep.h: Add include guard.
13721 * riscv-fbsd-tdep.h: Add include guard.
13722 * regformats/regdef.h: Rename include guard.
13723 * record.h: Rename include guard.
13724 * python/python.h: Rename include guard.
13725 * python/python-internal.h: Rename include guard.
13726 * python/py-stopevent.h: Rename include guard.
13727 * python/py-ref.h: Rename include guard.
13728 * python/py-record.h: Rename include guard.
13729 * python/py-record-full.h: Rename include guard.
13730 * python/py-record-btrace.h: Rename include guard.
13731 * python/py-instruction.h: Rename include guard.
13732 * python/py-events.h: Rename include guard.
13733 * python/py-event.h: Rename include guard.
13734 * procfs.h: Add include guard.
13735 * proc-utils.h: Add include guard.
13736 * p-lang.h: Add include guard.
13737 * or1k-tdep.h: Rename include guard.
13738 * observable.h: Rename include guard.
13739 * nto-tdep.h: Rename include guard.
13740 * nat/x86-linux.h: Rename include guard.
13741 * nat/x86-linux-dregs.h: Rename include guard.
13742 * nat/x86-gcc-cpuid.h: Add include guard.
13743 * nat/x86-dregs.h: Rename include guard.
13744 * nat/x86-cpuid.h: Rename include guard.
13745 * nat/ppc-linux.h: Rename include guard.
13746 * nat/mips-linux-watch.h: Rename include guard.
13747 * nat/linux-waitpid.h: Rename include guard.
13748 * nat/linux-ptrace.h: Rename include guard.
13749 * nat/linux-procfs.h: Rename include guard.
13750 * nat/linux-osdata.h: Rename include guard.
13751 * nat/linux-nat.h: Rename include guard.
13752 * nat/linux-namespaces.h: Rename include guard.
13753 * nat/linux-btrace.h: Rename include guard.
13754 * nat/glibc_thread_db.h: Rename include guard.
13755 * nat/gdb_thread_db.h: Rename include guard.
13756 * nat/gdb_ptrace.h: Rename include guard.
13757 * nat/fork-inferior.h: Rename include guard.
13758 * nat/amd64-linux-siginfo.h: Rename include guard.
13759 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13760 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13761 * nat/aarch64-linux.h: Rename include guard.
13762 * nat/aarch64-linux-hw-point.h: Rename include guard.
13763 * mn10300-tdep.h: Add include guard.
13764 * mips-linux-tdep.h: Add include guard.
13765 * mi/mi-parse.h: Rename include guard.
13766 * mi/mi-out.h: Rename include guard.
13767 * mi/mi-main.h: Rename include guard.
13768 * mi/mi-interp.h: Rename include guard.
13769 * mi/mi-getopt.h: Rename include guard.
13770 * mi/mi-console.h: Rename include guard.
13771 * mi/mi-common.h: Rename include guard.
13772 * mi/mi-cmds.h: Rename include guard.
13773 * mi/mi-cmd-break.h: Rename include guard.
13774 * m2-lang.h: Add include guard.
13775 * location.h: Rename include guard.
13776 * linux-record.h: Rename include guard.
13777 * linux-nat.h: Add include guard.
13778 * linux-fork.h: Add include guard.
13779 * i386-darwin-tdep.h: Rename include guard.
13780 * hppa-linux-offsets.h: Add include guard.
13781 * guile/guile.h: Rename include guard.
13782 * guile/guile-internal.h: Rename include guard.
13783 * gnu-nat.h: Rename include guard.
13784 * gdb-stabs.h: Rename include guard.
13785 * frv-tdep.h: Add include guard.
13786 * f-lang.h: Add include guard.
13787 * event-loop.h: Add include guard.
13788 * darwin-nat.h: Rename include guard.
13789 * cp-abi.h: Rename include guard.
13790 * config/sparc/nm-sol2.h: Rename include guard.
13791 * config/nm-nto.h: Rename include guard.
13792 * config/nm-linux.h: Add include guard.
13793 * config/i386/nm-i386gnu.h: Rename include guard.
13794 * config/djgpp/nl_types.h: Rename include guard.
13795 * config/djgpp/langinfo.h: Rename include guard.
13796 * compile/gcc-cp-plugin.h: Add include guard.
13797 * compile/gcc-c-plugin.h: Add include guard.
13798 * compile/compile.h: Rename include guard.
13799 * compile/compile-object-run.h: Rename include guard.
13800 * compile/compile-object-load.h: Rename include guard.
13801 * compile/compile-internal.h: Rename include guard.
13802 * compile/compile-cplus.h: Rename include guard.
13803 * compile/compile-c.h: Rename include guard.
13804 * common/xml-utils.h: Rename include guard.
13805 * common/x86-xstate.h: Rename include guard.
13806 * common/version.h: Rename include guard.
13807 * common/vec.h: Rename include guard.
13808 * common/tdesc.h: Rename include guard.
13809 * common/selftest.h: Rename include guard.
13810 * common/scoped_restore.h: Rename include guard.
13811 * common/scoped_mmap.h: Rename include guard.
13812 * common/scoped_fd.h: Rename include guard.
13813 * common/safe-iterator.h: Rename include guard.
13814 * common/run-time-clock.h: Rename include guard.
13815 * common/refcounted-object.h: Rename include guard.
13816 * common/queue.h: Rename include guard.
13817 * common/ptid.h: Rename include guard.
13818 * common/print-utils.h: Rename include guard.
13819 * common/preprocessor.h: Rename include guard.
13820 * common/pathstuff.h: Rename include guard.
13821 * common/observable.h: Rename include guard.
13822 * common/netstuff.h: Rename include guard.
13823 * common/job-control.h: Rename include guard.
13824 * common/host-defs.h: Rename include guard.
13825 * common/gdb_wait.h: Rename include guard.
13826 * common/gdb_vecs.h: Rename include guard.
13827 * common/gdb_unlinker.h: Rename include guard.
13828 * common/gdb_unique_ptr.h: Rename include guard.
13829 * common/gdb_tilde_expand.h: Rename include guard.
13830 * common/gdb_sys_time.h: Rename include guard.
13831 * common/gdb_string_view.h: Rename include guard.
13832 * common/gdb_splay_tree.h: Rename include guard.
13833 * common/gdb_setjmp.h: Rename include guard.
13834 * common/gdb_ref_ptr.h: Rename include guard.
13835 * common/gdb_optional.h: Rename include guard.
13836 * common/gdb_locale.h: Rename include guard.
13837 * common/gdb_assert.h: Rename include guard.
13838 * common/filtered-iterator.h: Rename include guard.
13839 * common/filestuff.h: Rename include guard.
13840 * common/fileio.h: Rename include guard.
13841 * common/environ.h: Rename include guard.
13842 * common/common-utils.h: Rename include guard.
13843 * common/common-types.h: Rename include guard.
13844 * common/common-regcache.h: Rename include guard.
13845 * common/common-inferior.h: Rename include guard.
13846 * common/common-gdbthread.h: Rename include guard.
13847 * common/common-exceptions.h: Rename include guard.
13848 * common/common-defs.h: Rename include guard.
13849 * common/common-debug.h: Rename include guard.
13850 * common/cleanups.h: Rename include guard.
13851 * common/buffer.h: Rename include guard.
13852 * common/btrace-common.h: Rename include guard.
13853 * common/break-common.h: Rename include guard.
13854 * cli/cli-utils.h: Rename include guard.
13855 * cli/cli-style.h: Rename include guard.
13856 * cli/cli-setshow.h: Rename include guard.
13857 * cli/cli-script.h: Rename include guard.
13858 * cli/cli-interp.h: Rename include guard.
13859 * cli/cli-decode.h: Rename include guard.
13860 * cli/cli-cmds.h: Rename include guard.
13861 * charset-list.h: Add include guard.
13862 * buildsym-legacy.h: Rename include guard.
13863 * bfin-tdep.h: Add include guard.
13864 * ax.h: Rename include guard.
13865 * arm-linux-tdep.h: Add include guard.
13866 * arm-fbsd-tdep.h: Add include guard.
13867 * arch/xtensa.h: Rename include guard.
13868 * arch/tic6x.h: Add include guard.
13869 * arch/i386.h: Add include guard.
13870 * arch/arm.h: Rename include guard.
13871 * arch/arm-linux.h: Rename include guard.
13872 * arch/arm-get-next-pcs.h: Rename include guard.
13873 * arch/amd64.h: Add include guard.
13874 * arch/aarch64-insn.h: Rename include guard.
13875 * arch-utils.h: Rename include guard.
13876 * annotate.h: Add include guard.
13877 * amd64-darwin-tdep.h: Rename include guard.
13878 * aarch64-linux-tdep.h: Add include guard.
13879 * aarch64-fbsd-tdep.h: Add include guard.
13880 * aarch32-linux-nat.h: Add include guard.
13881
ab9268d2
PW
138822019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13883
13884 * macrotab.c (macro_define_internal): New function that
13885 factorizes macro_define_object_internal and macro_define_function
13886 code.
13887 (macro_define_object_internal): Use macro_define_internal.
13888 (macro_define_function): Likewise.
13889
bb0da2b4
PW
138902019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13891
13892 * macrocmd.c (extract_identifier): Return
13893 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13894 callers.
13895
424eb552
JB
138962019-02-06 John Baldwin <jhb@FreeBSD.org>
13897
13898 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13899
1688cb29
TT
139002019-02-05 Tom Tromey <tom@tromey.com>
13901
13902 * target.c (target_stack::unpush): Move assertion earlier.
13903
b5eba2d8
TT
139042019-01-30 Tom Tromey <tom@tromey.com>
13905
13906 PR python/23615:
13907 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13908 (gdbpy_parse_and_eval): Likewise.
13909 * python/python-internal.h (gdbpy_allow_threads): New class.
13910
7054e2ff
JB
139112019-01-28 John Baldwin <jhb@FreeBSD.org>
13912
13913 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13914 (aarch64_fbsd_fpregmap): Move earlier.
13915 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13916 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13917 instead of individual calls to trad_frame_set_reg_addr.
13918 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13919 earlier.
13920 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13921 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13922 instead of individual calls to trad_frame_set_reg_addr.
13923
36c25ffa
AH
139242019-01-28 Alan Hayward <alan.hayward@arm.com>
13925
13926 * CONTRIBUTE: Replace contribution list with wiki link.
13927
a0707f3c
TT
139282019-01-25 Tom Tromey <tom@tromey.com>
13929
13930 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13931
0747795c
TT
139322019-01-25 Tom Tromey <tom@tromey.com>
13933
13934 * xtensa-linux-nat.c: Fix common/ includes.
13935 * xml-support.h: Fix common/ includes.
13936 * xml-support.c: Fix common/ includes.
13937 * x86-linux-nat.c: Fix common/ includes.
13938 * windows-nat.c: Fix common/ includes.
13939 * varobj.h: Fix common/ includes.
13940 * varobj.c: Fix common/ includes.
13941 * value.c: Fix common/ includes.
13942 * valops.c: Fix common/ includes.
13943 * utils.c: Fix common/ includes.
13944 * unittests/xml-utils-selftests.c: Fix common/ includes.
13945 * unittests/utils-selftests.c: Fix common/ includes.
13946 * unittests/unpack-selftests.c: Fix common/ includes.
13947 * unittests/tracepoint-selftests.c: Fix common/ includes.
13948 * unittests/style-selftests.c: Fix common/ includes.
13949 * unittests/string_view-selftests.c: Fix common/ includes.
13950 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13951 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13952 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13953 * unittests/rsp-low-selftests.c: Fix common/ includes.
13954 * unittests/parse-connection-spec-selftests.c: Fix common/
13955 includes.
13956 * unittests/optional-selftests.c: Fix common/ includes.
13957 * unittests/offset-type-selftests.c: Fix common/ includes.
13958 * unittests/observable-selftests.c: Fix common/ includes.
13959 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13960 * unittests/memrange-selftests.c: Fix common/ includes.
13961 * unittests/memory-map-selftests.c: Fix common/ includes.
13962 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13963 * unittests/function-view-selftests.c: Fix common/ includes.
13964 * unittests/environ-selftests.c: Fix common/ includes.
13965 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13966 * unittests/common-utils-selftests.c: Fix common/ includes.
13967 * unittests/cli-utils-selftests.c: Fix common/ includes.
13968 * unittests/array-view-selftests.c: Fix common/ includes.
13969 * ui-file.c: Fix common/ includes.
13970 * tui/tui-io.c: Fix common/ includes.
13971 * tracepoint.h: Fix common/ includes.
13972 * tracepoint.c: Fix common/ includes.
13973 * tracefile-tfile.c: Fix common/ includes.
13974 * top.h: Fix common/ includes.
13975 * top.c: Fix common/ includes.
13976 * thread.c: Fix common/ includes.
13977 * target/waitstatus.h: Fix common/ includes.
13978 * target/waitstatus.c: Fix common/ includes.
13979 * target.h: Fix common/ includes.
13980 * target.c: Fix common/ includes.
13981 * target-memory.c: Fix common/ includes.
13982 * target-descriptions.c: Fix common/ includes.
13983 * symtab.h: Fix common/ includes.
13984 * symfile.c: Fix common/ includes.
13985 * stap-probe.c: Fix common/ includes.
13986 * spu-linux-nat.c: Fix common/ includes.
13987 * sparc-nat.c: Fix common/ includes.
13988 * source.c: Fix common/ includes.
13989 * solib.c: Fix common/ includes.
13990 * solib-target.c: Fix common/ includes.
13991 * ser-unix.c: Fix common/ includes.
13992 * ser-tcp.c: Fix common/ includes.
13993 * ser-pipe.c: Fix common/ includes.
13994 * ser-base.c: Fix common/ includes.
13995 * selftest-arch.c: Fix common/ includes.
13996 * s12z-tdep.c: Fix common/ includes.
13997 * rust-exp.y: Fix common/ includes.
13998 * rs6000-aix-tdep.c: Fix common/ includes.
13999 * riscv-tdep.c: Fix common/ includes.
14000 * remote.c: Fix common/ includes.
14001 * remote-notif.h: Fix common/ includes.
14002 * remote-fileio.h: Fix common/ includes.
14003 * remote-fileio.c: Fix common/ includes.
14004 * regcache.h: Fix common/ includes.
14005 * regcache.c: Fix common/ includes.
14006 * record-btrace.c: Fix common/ includes.
14007 * python/python.c: Fix common/ includes.
14008 * python/py-type.c: Fix common/ includes.
14009 * python/py-inferior.c: Fix common/ includes.
14010 * progspace.h: Fix common/ includes.
14011 * producer.c: Fix common/ includes.
14012 * procfs.c: Fix common/ includes.
14013 * proc-api.c: Fix common/ includes.
14014 * printcmd.c: Fix common/ includes.
14015 * ppc-linux-nat.c: Fix common/ includes.
14016 * parser-defs.h: Fix common/ includes.
14017 * osdata.c: Fix common/ includes.
14018 * obsd-nat.c: Fix common/ includes.
14019 * nat/x86-linux.c: Fix common/ includes.
14020 * nat/x86-linux-dregs.c: Fix common/ includes.
14021 * nat/x86-dregs.h: Fix common/ includes.
14022 * nat/x86-dregs.c: Fix common/ includes.
14023 * nat/ppc-linux.c: Fix common/ includes.
14024 * nat/mips-linux-watch.h: Fix common/ includes.
14025 * nat/mips-linux-watch.c: Fix common/ includes.
14026 * nat/linux-waitpid.c: Fix common/ includes.
14027 * nat/linux-ptrace.h: Fix common/ includes.
14028 * nat/linux-ptrace.c: Fix common/ includes.
14029 * nat/linux-procfs.c: Fix common/ includes.
14030 * nat/linux-personality.c: Fix common/ includes.
14031 * nat/linux-osdata.c: Fix common/ includes.
14032 * nat/linux-namespaces.c: Fix common/ includes.
14033 * nat/linux-btrace.h: Fix common/ includes.
14034 * nat/linux-btrace.c: Fix common/ includes.
14035 * nat/fork-inferior.c: Fix common/ includes.
14036 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14037 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14038 * nat/aarch64-linux.c: Fix common/ includes.
14039 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14040 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14041 * namespace.h: Fix common/ includes.
14042 * mips-linux-tdep.c: Fix common/ includes.
14043 * minsyms.c: Fix common/ includes.
14044 * mi/mi-parse.h: Fix common/ includes.
14045 * mi/mi-main.c: Fix common/ includes.
14046 * mi/mi-cmd-env.c: Fix common/ includes.
14047 * memrange.h: Fix common/ includes.
14048 * memattr.c: Fix common/ includes.
14049 * maint.h: Fix common/ includes.
14050 * maint.c: Fix common/ includes.
14051 * main.c: Fix common/ includes.
14052 * machoread.c: Fix common/ includes.
14053 * location.c: Fix common/ includes.
14054 * linux-thread-db.c: Fix common/ includes.
14055 * linux-nat.c: Fix common/ includes.
14056 * linux-fork.c: Fix common/ includes.
14057 * inline-frame.c: Fix common/ includes.
14058 * infrun.c: Fix common/ includes.
14059 * inflow.c: Fix common/ includes.
14060 * inferior.h: Fix common/ includes.
14061 * inferior.c: Fix common/ includes.
14062 * infcmd.c: Fix common/ includes.
14063 * inf-ptrace.c: Fix common/ includes.
14064 * inf-child.c: Fix common/ includes.
14065 * ia64-linux-nat.c: Fix common/ includes.
14066 * i387-tdep.c: Fix common/ includes.
14067 * i386-tdep.c: Fix common/ includes.
14068 * i386-linux-tdep.c: Fix common/ includes.
14069 * i386-linux-nat.c: Fix common/ includes.
14070 * i386-go32-tdep.c: Fix common/ includes.
14071 * i386-fbsd-tdep.c: Fix common/ includes.
14072 * i386-fbsd-nat.c: Fix common/ includes.
14073 * guile/scm-type.c: Fix common/ includes.
14074 * guile/guile.c: Fix common/ includes.
14075 * go32-nat.c: Fix common/ includes.
14076 * gnu-nat.c: Fix common/ includes.
14077 * gdbthread.h: Fix common/ includes.
14078 * gdbarch-selftests.c: Fix common/ includes.
14079 * gdb_usleep.c: Fix common/ includes.
14080 * gdb_select.h: Fix common/ includes.
14081 * gdb_bfd.c: Fix common/ includes.
14082 * gcore.c: Fix common/ includes.
14083 * fork-child.c: Fix common/ includes.
14084 * findvar.c: Fix common/ includes.
14085 * fbsd-nat.c: Fix common/ includes.
14086 * event-top.c: Fix common/ includes.
14087 * event-loop.c: Fix common/ includes.
14088 * dwarf2read.c: Fix common/ includes.
14089 * dwarf2loc.c: Fix common/ includes.
14090 * dwarf2-frame.c: Fix common/ includes.
14091 * dwarf-index-cache.c: Fix common/ includes.
14092 * dtrace-probe.c: Fix common/ includes.
14093 * disasm-selftests.c: Fix common/ includes.
14094 * defs.h: Fix common/ includes.
14095 * csky-tdep.c: Fix common/ includes.
14096 * cp-valprint.c: Fix common/ includes.
14097 * cp-support.h: Fix common/ includes.
14098 * cp-support.c: Fix common/ includes.
14099 * corelow.c: Fix common/ includes.
14100 * completer.h: Fix common/ includes.
14101 * completer.c: Fix common/ includes.
14102 * compile/compile.c: Fix common/ includes.
14103 * compile/compile-loc2c.c: Fix common/ includes.
14104 * compile/compile-cplus-types.c: Fix common/ includes.
14105 * compile/compile-cplus-symbols.c: Fix common/ includes.
14106 * command.h: Fix common/ includes.
14107 * cli/cli-dump.c: Fix common/ includes.
14108 * cli/cli-cmds.c: Fix common/ includes.
14109 * charset.c: Fix common/ includes.
14110 * build-id.c: Fix common/ includes.
14111 * btrace.h: Fix common/ includes.
14112 * btrace.c: Fix common/ includes.
14113 * breakpoint.h: Fix common/ includes.
14114 * breakpoint.c: Fix common/ includes.
14115 * ax.h:
14116 (enum agent_op): Fix common/ includes.
14117 * ax-general.c (struct aop_map): Fix common/ includes.
14118 * ax-gdb.c: Fix common/ includes.
14119 * auxv.c: Fix common/ includes.
14120 * auto-load.c: Fix common/ includes.
14121 * arm-tdep.c: Fix common/ includes.
14122 * arch/riscv.c: Fix common/ includes.
14123 * arch/ppc-linux-common.c: Fix common/ includes.
14124 * arch/i386.c: Fix common/ includes.
14125 * arch/arm.c: Fix common/ includes.
14126 * arch/arm-linux.c: Fix common/ includes.
14127 * arch/arm-get-next-pcs.c: Fix common/ includes.
14128 * arch/amd64.c: Fix common/ includes.
14129 * arch/aarch64.c: Fix common/ includes.
14130 * arch/aarch64-insn.c: Fix common/ includes.
14131 * arch-utils.c: Fix common/ includes.
14132 * amd64-windows-tdep.c: Fix common/ includes.
14133 * amd64-tdep.c: Fix common/ includes.
14134 * amd64-sol2-tdep.c: Fix common/ includes.
14135 * amd64-obsd-tdep.c: Fix common/ includes.
14136 * amd64-nbsd-tdep.c: Fix common/ includes.
14137 * amd64-linux-tdep.c: Fix common/ includes.
14138 * amd64-linux-nat.c: Fix common/ includes.
14139 * amd64-fbsd-tdep.c: Fix common/ includes.
14140 * amd64-fbsd-nat.c: Fix common/ includes.
14141 * amd64-dicos-tdep.c: Fix common/ includes.
14142 * amd64-darwin-tdep.c: Fix common/ includes.
14143 * agent.c: Fix common/ includes.
14144 * ada-lang.h: Fix common/ includes.
14145 * ada-lang.c: Fix common/ includes.
14146 * aarch64-tdep.c: Fix common/ includes.
14147
2f5c153e
TT
141482019-01-25 Tom Tromey <tom@tromey.com>
14149
14150 * common/create-version.sh: Use common/version.h.
14151
adc6a863
PA
141522019-01-24 Pedro Alves <palves@redhat.com>
14153
14154 * infrun.c (signal_stop, signal_print, signal_program)
14155 (signal_catch, signal_pass): Now arrays instead of pointers.
14156 (update_signals_program_target, do_target_resume)
14157 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14158 * linux-nat.c (linux_nat_target::pass_signals)
14159 (linux_nat_target::create_inferior, linux_nat_target::attach):
14160 Adjust.
14161 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14162 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14163 * procfs.c (procfs_target::pass_signals): Adjust.
14164 * record-full.c (record_full_target::resume): Adjust.
14165 * remote.c (remote_target::pass_signals)
14166 (remote_target::program_signals): Adjust.
14167 * target-debug.h (target_debug_print_signals): Now takes a
14168 gdb::array_view as parameter. Adjust.
14169 * target.h (target_ops) <pass_signals, program_signals>: Replace
14170 pointer and length parameters with gdb::array_view.
14171 (target_pass_signals, target_program_signals): Likewise.
14172 * target-delegates.c: Regenerate.
14173
3046d67a
PA
141742019-01-24 Pedro Alves <palves@redhat.com>
14175
14176 * common/forward-scope-exit.h
14177 (forward_scope_exit::forward_scope_exit): Pass arguments to
14178 m_bind_function directly, instead of creating a std::bind and
14179 copying that.
14180
353229bf
AH
141812019-01-24 Alan Hayward <alan.hayward@arm.com>
14182
14183 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14184 for static members.
14185 (pass_in_v_vfp_candidate): Likewise.
14186
311dc83a
TT
141872019-01-23 Tom Tromey <tom@tromey.com>
14188 Pedro Alves <palves@redhat.com>
14189
14190 * regcache.c (class regcache_invalidator): Remove.
14191 (regcache::raw_write): Use make_scope_exit.
14192
296bd123
TT
141932019-01-23 Tom Tromey <tom@tromey.com>
14194
14195 * ui-out.h (class ui_out_emit_type): Update comment.
14196
979a0d13
TT
141972019-01-23 Tom Tromey <tom@tromey.com>
14198
14199 * infrun.c (fetch_inferior_event): Update comment.
14200
d238133d
TT
142012019-01-23 Tom Tromey <tom@tromey.com>
14202 Pedro Alves <palves@redhat.com>
14203
14204 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14205 parameter.
14206 (fetch_inferior_event): Use SCOPE_EXIT.
14207
14208
9885e6bb
TT
142092019-01-23 Tom Tromey <tom@tromey.com>
14210 Pedro Alves <palves@redhat.com>
14211
14212 * infrun.c (disable_thread_events): Delete.
14213 (stop_all_threads): Use SCOPE_EXIT.
14214
286526c1
TT
142152019-01-23 Tom Tromey <tom@tromey.com>
14216 Pedro Alves <palves@redhat.com>
14217
14218 * symfile.c: Include forward-scope-exit.h.
14219 (clear_symtab_users_cleanup): Replace forward declaration with
14220 a FORWARD_SCOPE_EXIT.
14221 (syms_from_objfile_1): Use the forward_scope_exit and
14222 gdb::optional instead of cleanup_function.
14223 (reread_symbols): Use the forward_scope_exit instead of
14224 cleanup_function.
14225 (clear_symtab_users_cleanup): Remove function.
14226
1db93f14
TT
142272019-01-23 Tom Tromey <tom@tromey.com>
14228 Pedro Alves <palves@redhat.com>
14229
14230 * linux-nat.c: Include scope-exit.h.
14231 (cleanup_target_stop): Remove.
14232 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14233 SCOPE_EXIT.
14234
2cc83d1e
TT
142352019-01-23 Tom Tromey <tom@tromey.com>
14236 Pedro Alves <palves@redhat.com>
14237
14238 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14239 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14240
694c6bf5
TT
142412019-01-23 Tom Tromey <tom@tromey.com>
14242 Andrew Burgess <andrew.burgess@embecosm.com>
14243 Pedro Alves <palves@redhat.com>
14244
14245 * infrun.c (fetch_inferior_event): Use scope_exit.
14246 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14247 * top.c (execute_command): Use scope_exit.
14248 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14249 * utils.c (do_bpstat_clear_actions_cleanup)
14250 (make_bpstat_clear_actions_cleanup): Remove.
14251
4c41382a
TT
142522019-01-23 Tom Tromey <tom@tromey.com>
14253 Pedro Alves <palves@redhat.com>
14254
14255 * infrun.c: Include "common/scope-exit.h"
14256 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14257 (wait_for_inferior): Use SCOPE_EXIT.
14258 (fetch_inferior_event): Use scope_exit.
14259
89f8fb50
TT
142602019-01-23 Tom Tromey <tom@tromey.com>
14261 Pedro Alves <palves@redhat.com>
14262
14263 * breakpoint.c (create_breakpoint): Remove cleanup.
14264
5419bdae
TT
142652019-01-23 Tom Tromey <tom@tromey.com>
14266 Andrew Burgess <andrew.burgess@embecosm.com>
14267 Pedro Alves <palves@redhat.com>
14268
e587ef42
PA
142692019-01-23 Pedro Alves <palves@redhat.com>
14270
14271 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14272
77f0e74c
PA
142732019-01-23 Pedro Alves <palves@redhat.com>
14274 Andrew Burgess <andrew.burgess@embecosm.com>
14275
14276 * gdbthread.h: Include "common/forward-scope-exit.h".
14277 (scoped_finish_thread_state): Redefine custom class in terms of
14278 forward_scope_exit.
14279
5b9b3e53
PA
142802019-01-23 Pedro Alves <palves@redhat.com>
14281 Andrew Burgess <andrew.burgess@embecosm.com>
14282
14283 * common/forward-scope-exit.h: New file.
14284
54b65c9b
PA
142852019-01-23 Pedro Alves <palves@redhat.com>
14286 Andrew Burgess <andrew.burgess@embecosm.com>
14287 Tom Tromey <tom@tromey.com>
14288
14289 * common/scope-exit.h: New file.
14290
cf08fb29
PA
142912019-01-23 Pedro Alves <palves@redhat.com>
14292
14293 * common/preprocessor.h (ESC): Rename to ...
14294 (ESC_PARENS): ... this.
14295 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14296 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14297
ae73e2e2
TT
142982019-01-23 Tom Tromey <tom@tromey.com>
14299
14300 * language.h (class scoped_switch_to_sym_language_if_auto):
14301 Initialize m_lang in both cases.
14302
6594e122
AH
143032019-01-23 Alan Hayward <alan.hayward@arm.com>
14304
14305 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14306 with XCNEW.
14307
a7c9855d
TT
143082019-01-22 Tom Tromey <tom@tromey.com>
14309
14310 * corelow.c: Do not include sys/file.h.
14311
93cc1d53
TT
143122019-01-22 Tom Tromey <tom@tromey.com>
14313
14314 * tui/tui-wingeneral.h: Include gdb_curses.h.
14315
38561778
TT
143162019-01-22 Tom Tromey <tom@tromey.com>
14317
14318 * source-cache.h (class source_cache) <get_source_lines,
14319 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14320
37b3ab5b
TT
143212019-01-22 Tom Tromey <tom@tromey.com>
14322
14323 * remote-fileio.h (struct remote_target): Declare.
14324
3fabc016
TT
143252019-01-22 Tom Tromey <tom@tromey.com>
14326
14327 * python/py-arch.c: Do not include py-ref.h.
14328 * python/py-bpevent.c: Do not include py-ref.h.
14329 * python/py-cmd.c: Do not include py-ref.h.
14330 * python/py-continueevent.c: Do not include py-ref.h.
14331 * python/py-event.h: Do not include py-ref.h.
14332 * python/py-evtregistry.c: Do not include py-ref.h.
14333 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14334 * python/py-frame.c: Do not include py-ref.h.
14335 * python/py-framefilter.c: Do not include py-ref.h.
14336 * python/py-function.c: Do not include py-ref.h.
14337 * python/py-infevents.c: Do not include py-ref.h.
14338 * python/py-linetable.c: Do not include py-ref.h.
14339 * python/py-objfile.c: Do not include py-ref.h.
14340 * python/py-param.c: Do not include py-ref.h.
14341 * python/py-prettyprint.c: Do not include py-ref.h.
14342 * python/py-progspace.c: Do not include py-ref.h.
14343 * python/py-symbol.c: Do not include py-ref.h.
14344 * python/py-symtab.c: Do not include py-ref.h.
14345 * python/py-type.c: Do not include py-ref.h.
14346 * python/py-unwind.c: Do not include py-ref.h.
14347 * python/py-utils.c: Do not include py-ref.h.
14348 * python/py-value.c: Do not include py-ref.h.
14349 * python/py-varobj.c: Do not include py-ref.h.
14350 * python/py-xmethods.c: Do not include py-ref.h.
14351 * python/python.c: Do not include py-ref.h.
14352 * varobj.c: Do not include py-ref.h.
14353
6b4d7774
TT
143542019-01-22 Tom Tromey <tom@tromey.com>
14355
14356 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14357 keyword for bcache.
14358
7af7e9b5
TT
143592019-01-22 Tom Tromey <tom@tromey.com>
14360
14361 * compile/compile-cplus-types.c: Remove a comment by #include.
14362
951d1049
TT
143632019-01-22 Tom Tromey <tom@tromey.com>
14364
14365 * compile/gcc-c-plugin.h: Include compile-internal.h.
14366
d65d5705
TT
143672019-01-22 Tom Tromey <tom@tromey.com>
14368
14369 * stabsread.c (EXTERN): Do not define.
14370 (symnum, next_symbol_text_func, processing_gcc_compilation)
14371 (within_function, global_sym_chain, global_stabs)
14372 (previous_stab_code, this_object_header_files)
14373 (n_this_object_header_files)
14374 (n_allocated_this_object_header_files): Define.
14375 * stabsread.h (EXTERN): Never define. Use "extern".
14376
b6fb1ee5
PW
143772019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14378
14379 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14380 history_value.
14381
be6d4f74
TT
143822019-01-21 Tom Tromey <tom@tromey.com>
14383
14384 * ui-out.c: Fix includes.
14385 * tui/tui-source.c: Fix includes.
14386 * target.c: Fix includes.
14387 * remote.c: Fix includes.
14388 * regcache.c: Fix includes.
14389 * python/py-block.c: Fix includes.
14390 * printcmd.c: Fix includes.
14391 * or1k-tdep.c: Fix includes.
14392 * mi/mi-main.c: Fix includes.
14393 * m32r-tdep.c: Fix includes.
14394 * csky-tdep.c: Fix includes.
14395 * compile/compile-cplus-types.c: Fix includes.
14396 * cli/cli-interp.c: Fix includes.
14397
73021deb
AH
143982019-01-21 Alan Hayward <alan.hayward@arm.com>
14399
14400 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14401 for padding.
14402
7932255d
TT
144032019-01-16 Tom Tromey <tom@tromey.com>
14404
14405 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14406 earlier.
14407 (struct objfile) <msymbols_range>: Move from top level.
14408 <msymbols>: New method.
14409 (class objfile_msymbols): Remove.
14410 * symtab.c (default_collect_symbol_completion_matches_break_on):
14411 Update.
14412 * symmisc.c (dump_msymbols): Update.
14413 * stabsread.c (scan_file_globals): Update.
14414 * objc-lang.c (info_selectors_command, info_classes_command)
14415 (find_methods): Update.
14416 * minsyms.c (find_solib_trampoline_target): Update.
14417 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14418 * coffread.c (coff_symfile_read): Update.
14419 * ada-lang.c (ada_lookup_simple_minsym)
14420 (ada_collect_symbol_completion_matches): Update.
14421
604b1bfb
TT
144222019-01-16 Tom Tromey <tom@tromey.com>
14423
14424 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14425 type. Remove no-argument constructor.
14426 <iterator::operator++>: Simplify.
14427 <begin>: Update.
14428 <end>: Use minimal_symbol_count.
14429
f252c6d5
TT
144302019-01-16 Tom Tromey <tom@tromey.com>
14431
14432 * objfiles.h (struct objfile) <psymtabs>: New method.
14433 (class objfile_psymtabs): Remove.
14434 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14435 typedef.
14436 <range>: New method.
14437 (require_partial_symbols): Change return type.
14438 * psymtab.c (require_partial_symbols)
14439 (psym_expand_symtabs_matching): Update.
14440 * mdebugread.c (parse_partial_symbols): Update.
14441 * dbxread.c (dbx_end_psymtab): Update.
14442
b669c953
TT
144432019-01-15 Tom Tromey <tom@tromey.com>
14444
14445 * symtab.c (lookup_objfile_from_block)
14446 (lookup_symbol_in_objfile_symtabs)
14447 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14448 (find_line_symtab, info_sources_command)
14449 (default_collect_symbol_completion_matches_break_on)
14450 (make_source_files_completion_list): Update.
14451 * symmisc.c (print_objfile_statistics, dump_objfile)
14452 (maintenance_print_symbols, maintenance_info_symtabs)
14453 (maintenance_check_symtabs, maintenance_info_line_tables):
14454 Update.
14455 * source.c (select_source_symtab)
14456 (forget_cached_source_info_for_objfile): Update.
14457 * objfiles.h (class objfile_compunits): Remove.
14458 (struct objfile) <compunits_range>: New typedef.
14459 (compunits): New method.
14460 * objfiles.c (objfile_relocate1): Update.
14461 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14462 * maint.c (count_symtabs_and_blocks): Update.
14463 * linespec.c (iterate_over_all_matching_symtabs): Update.
14464 * cp-support.c (add_symbol_overload_list_qualified): Update.
14465 * coffread.c (coff_symtab_read): Update.
14466 * ada-lang.c (add_nonlocal_symbols)
14467 (ada_collect_symbol_completion_matches)
14468 (ada_add_global_exceptions): Update.
14469
7e955d83
TT
144702019-01-15 Tom Tromey <tom@tromey.com>
14471
14472 * progspace.h (program_space) <objfiles_safe_range>: New
14473 typedef.
14474 <objfiles_safe>: New method.
14475 * objfiles.h (class all_objfiles_safe): Remove.
14476 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14477 * jit.c (jit_inferior_exit_hook): Update.
14478
2030c079
TT
144792019-01-17 Tom Tromey <tom@tromey.com>
14480
14481 * progspace.h (program_space) <objfiles_range>: New typedef.
14482 <objfiles>: New method.
14483 <objfiles_head>: Rename from objfiles.
14484 (object_files): Update.
14485 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14486 * guile/scm-pretty-print.c
14487 (ppscm_find_pretty_printer_from_objfiles): Update.
14488 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14489 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14490 Update.
14491 * python/py-progspace.c (pspy_get_objfiles): Update.
14492 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14493 Update.
14494 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14495 (objfpy_lookup_objfile_by_build_id): Update.
14496 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14497 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14498 Update.
14499 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14500 (expand_symtab_containing_pc, lookup_objfile_from_block)
14501 (lookup_static_symbol, basic_lookup_transparent_type)
14502 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14503 (find_line_symtab, info_sources_command)
14504 (default_collect_symbol_completion_matches_break_on)
14505 (make_source_files_completion_list, find_main_name): Update.
14506 * symmisc.c (print_symbol_bcache_statistics)
14507 (print_objfile_statistics, maintenance_print_symbols)
14508 (maintenance_print_msymbols, maintenance_print_objfiles)
14509 (maintenance_info_symtabs, maintenance_check_symtabs)
14510 (maintenance_expand_symtabs, maintenance_info_line_tables):
14511 Update.
14512 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14513 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14514 (map_overlay_command, unmap_overlay_command)
14515 (simple_overlay_update, expand_symtabs_matching)
14516 (map_symbol_filenames): Update.
14517 * symfile-debug.c (set_debug_symfile): Update.
14518 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14519 Update.
14520 * source.c (select_source_symtab, forget_cached_source_info):
14521 Update.
14522 * solib.c (solib_read_symbols): Update.
14523 * solib-spu.c (append_ocl_sos): Update.
14524 * psymtab.c (maintenance_print_psymbols)
14525 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14526 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14527 * printcmd.c (info_symbol_command): Update.
14528 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14529 Update.
14530 * objfiles.h (class all_objfiles): Remove.
14531 * objfiles.c (have_partial_symbols, have_full_symbols)
14532 (have_minimal_symbols, qsort_cmp, update_section_map)
14533 (shared_objfile_contains_address_p)
14534 (default_iterate_over_objfiles_in_search_order): Update.
14535 * objc-lang.c (info_selectors_command, info_classes_command)
14536 (find_methods): Update.
14537 * minsyms.c (find_solib_trampoline_target): Update.
14538 * maint.c (maintenance_info_sections)
14539 (maintenance_translate_address, count_symtabs_and_blocks):
14540 Update.
14541 * main.c (captured_main_1): Update.
14542 * linux-thread-db.c (try_thread_db_load_from_pdir)
14543 (has_libpthread): Update.
14544 * linespec.c (iterate_over_all_matching_symtabs)
14545 (search_minsyms_for_name): Update.
14546 * jit.c (jit_find_objf_with_entry_addr): Update.
14547 * hppa-tdep.c (find_unwind_entry)
14548 (hppa_lookup_stub_minimal_symbol): Update.
14549 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14550 Update.
14551 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14552 (elf_gnu_ifunc_resolve_by_got): Update.
14553 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14554 * dwarf-index-write.c (save_gdb_index_command): Update.
14555 * cp-support.c (add_symbol_overload_list_qualified): Update.
14556 * breakpoint.c (create_overlay_event_breakpoint)
14557 (create_longjmp_master_breakpoint)
14558 (create_std_terminate_master_breakpoint)
14559 (create_exception_master_breakpoint): Update.
14560 * blockframe.c (find_pc_partial_function): Update.
14561 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14562 (ada_collect_symbol_completion_matches)
14563 (ada_add_global_exceptions): Update.
14564
776489e0
TT
145652019-01-17 Tom Tromey <tom@tromey.com>
14566
14567 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14568 declare VEC.
14569 (solib_target_parse_libraries): Change return type.
14570 (library_list_start_segment, library_list_start_section)
14571 (library_list_end_library, library_list_start_library); Update.
14572 (solib_target_free_library_list): Remove.
14573 (solib_target_parse_libraries): Remove cleanup. Change return
14574 type.
14575 (solib_target_current_sos): Update.
14576
6471e7d2
TT
145772019-01-17 Tom Tromey <tromey@bapiya>
14578
14579 * valprint.c: Replace "the the" with "the".
14580 * symtab.c: Replace "the the" with "the".
14581 * solib.c: Replace "the the" with "the".
14582 * solib-dsbt.c: Replace "the the" with "the".
14583 * linespec.c: Replace "the the" with "the".
14584 * dwarf2loc.h: Replace "the the" with "the".
14585 * amd64-windows-tdep.c: Replace "the the" with "the".
14586 * aarch64-tdep.c: Replace "the the" with "the".
14587
c24bdb02
KS
145882019-01-16 Keith Seitz <keiths@redhat.com>
14589
14590 PR gdb/23773
14591 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14592 <builder>: Rename to ..
14593 <m_builder>: ... this and make private.
14594 (dwarf2_cu::get_builder): New method. Change all users of
14595 `builder' to use this method.
14596 (dwarf2_start_symtab): Move to ...
14597 (dwarf2_cu::start_symtab): ... here. Update all callers
14598 (setup_type_unit_groups): Move to ...
14599 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14600 callers.
14601 (dwarf2_cu::reset_builder): New method.
14602 (process_full_compunit, process_full_type_unit): Use
14603 dwarf2_cu::reset_builder.
14604 (follow_die_offset): Record the ancestor CU if it is different
14605 from the followed DIE's CU.
14606 (follow_die_sig_1): Likewise.
14607
8d64371b
TT
146082019-01-15 Tom Tromey <tom@tromey.com>
14609
14610 * remote.c (class remote_state) <buf>: Now a char_vector.
14611 <buf_size>: Remove.
14612 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14613 parameter.
14614 (remote_target::getpkt_or_notif_sane_1)
14615 (remote_target::getpkt_sane)
14616 (remote_target::getpkt_or_notif_sane): Likewise.
14617 (class remote_target) <putpkt>: New overload.
14618 (remote_target::read_frame): Change type of "buf_p". Remove
14619 sizeof_p parameter.
14620 (packet_ok): New overload.
14621 (packet_check_result): New overload.
14622 Update all uses.
14623
bb277751
TT
146242019-01-14 Tom Tromey <tom@tromey.com>
14625
14626 * remote-notif.c (handle_notification, remote_notif_ack)
14627 (remote_notif_parse): Make "buf" const.
14628 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14629 const.
14630 (remote_notif_parse, remote_notif_ack, handle_notification):
14631 Likewise.
14632 * remote.c (remote_notif_stop_parse): Make "buf" const.
14633 (remote_target::remote_parse_stop_reply): Make "buf" const.
14634 (remote_notif_stop_ack): Make "buf" const.
14635
05be00a8
TT
146362019-01-14 Tom Tromey <tom@tromey.com>
14637
14638 * remote.c (remote_console_output): Make parameter const.
14639
491adeca
TT
146402019-01-14 Tom Tromey <tom@tromey.com>
14641
14642 * target-debug.h (target_debug_print_signals): Constify.
14643 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14644 * procfs.c (procfs_target::pass_signals): Update.
14645 * linux-nat.c (linux_nat_target::pass_signals): Update.
14646 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14647 * target-delegates.c: Rebuild.
14648 * remote.c (remote_target::program_signals): Update.
14649 (remote_target::pass_signals): Update.
14650 * target.c (target_pass_signals): Constify argument.
14651 (target_program_signals): Likewise.
14652 * target.h (struct target_ops) <pass_signals, program_signals>:
14653 Constify argument.
14654 (target_pass_signals, target_program_signals): Constify argument.
14655
bbd94648
TT
146562019-01-14 Tom Tromey <tom@tromey.com>
14657
14658 PR tui/28819:
14659 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14660
6f072a10
PFC
146612019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14662
14663 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14664 field.
14665 * rs6000-tdep.c: Include reggroups.h.
14666 (IS_V_ALIAS_PSEUDOREG): Define.
14667 (rs6000_register_name): Return names for the "vX" aliases.
14668 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14669 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14670 aliases. Call default_register_reggroup_p for all other
14671 pseudo-registers.
14672 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14673 New functions.
14674 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14675 Handle "vX" aliases.
14676 (v_alias_pseudo_register_collect): New function.
14677 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14678 (rs6000_gdbarch_init): Initialize "vX" aliases as
14679 pseudo-registers. Restore registration of
14680 rs6000_pseudo_register_reggroup_p with
14681 set_tdesc_pseudo_register_reggroup_p.
14682
1a782351
MF
146832019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14684
14685 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14686 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14687 set_gdbarch_num_pseudo_regs.
14688
d73cff18
PW
146892019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14690
14691 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14692 Remove arg prefixname, add do_set and do_show.
14693 Add member functions set_list and show_list.
14694 * cli/cli-style.c (class cli_style_option): Update accordingly.
14695 (style_set_list): Move to file scope.
14696 (style_show_list): Likewise.
14697 (set_style): Call help_list.
14698 (show_style): Call cmd_show_list.
14699 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14700 Update to use the new macro.
14701
60a90376
JB
147022019-10-12 Joel Brobecker <brobecker@adacore.com>
14703
14704 * ada-lang.c (_initialize_ada_language): Expand the help text
14705 for the "catch exception" command.
14706
9d7c67bf
PW
147072019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14708
14709 * symtab.c (matching_obj_sections): Initialize obj,
14710 declare it closer to its usage.
14711
7cf47dc4
TT
147122019-01-10 Tom Tromey <tom@tromey.com>
14713
14714 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14715 (basic_inf_threads_range): Remove.
14716 (inf_threads_range, inf_non_exited_threads_range)
14717 (safe_inf_threads_range): Use next_adapter.
14718
d3cb6808
KS
147192019-01-10 Keith Seitz <keiths@redhat.com>
14720
14721 PR gdb/23712
14722 PR symtab/23010
14723 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14724 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14725
63a20375
KS
147262019-01-10 Keith Seitz <keiths@redhat.com>
14727
14728 PR gdb/23712
14729 PR symtab/23010
14730 * dictionary.c (pending_to_vector): Remove.
14731 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14732 Remove _1 suffix, replacing functions of the same name. Update
14733 all callers.
14734 (dict_create_hashed, dict_create_hashed_expandable)
14735 (dict_create_linear, dict_create_linear_expandable, dict_free)
14736 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14737 Make functions static.
14738
b026f593
KS
147392019-01-10 Keith Seitz <keiths@redhat.com>
14740
14741 PR gdb/23712
14742 PR symtab/23010
14743 * dictionary.h (struct dictionary): Replace declaration with
14744 multidictionary.
14745 (dict_create_hashed, dict_create_hashed_expandable)
14746 (dict_create_linear, dict_create_linear_expandable)
14747 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14748 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14749 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14750 taking multidictionary argument.
14751 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14752 * block.h (struct block) <dict>: Change to multidictionary
14753 and rename `multidict'.
14754 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14755 symmisc.c: Update all dictionary references to multidictionary.
14756
c7748ee9
KS
147572019-01-10 Keith Seitz <keiths@redhat.com>
14758
14759 PR gdb/23712
14760 PR symtab/23010
14761 * dictionary.c: Include unordered_map.
14762 (pending_to_vector): New function.
14763 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14764 Rewrite the non-"_1" functions to take vector instead
14765 of linked list.
14766 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14767 "new" _1 versions of the same name.
14768 (multidictionary): Define.
14769 (std::hash<enum language): New definition.
14770 (collate_pending_symbols_by_language, mdict_create_hashed)
14771 (mdict_create_hashed_expandable, mdict_create_linear)
14772 (mdict_create_linear_expandable, mdict_free)
14773 (find_language_dictionary, create_new_language_dictionary)
14774 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14775 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14776 (mdict_size, mdict_empty): New functions.
14777 * dictionary.h (mdict_iterator): Define.
14778
67aa1f3c
PA
147792019-01-10 Pedro Alves <palves@redhat.com>
14780
14781 * breakpoint.c (read_uploaded_action)
14782 (create_tracepoint_from_upload): Adjust to use
14783 gdb::unique_xmalloc_ptr.
14784 * ctf.c (ctf_write_uploaded_tp):
14785 (SET_ARRAY_FIELD): Use emplace_back.
14786 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14787 * tracefile-tfile.c (tfile_write_uploaded_tp):
14788 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14789 gdb::unique_xmalloc_ptr.
14790 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14791 at_string, cond_string, cmd_strings>: Replace char pointers
14792 with gdb::unique_xmalloc_ptr.
14793
2f667667
PA
147942019-01-10 Pedro Alves <palves@redhat.com>
14795
14796 * solib-target.c (library_list_start_library): Don't xstrdup name.
14797
36cb7237
PA
147982019-01-10 Pedro Alves <palves@redhat.com>
14799
14800 * mdebugread.c (parse_partial_symbols): Use
14801 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14802
da584958
AB
148032019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14804
14805 * linux-fork.c (scoped_switch_fork_info)
14806 <~scoped_switch_fork_info>: Fix incorrect variable name.
14807
1ef8573c
AB
148082019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14809
14810 * linux-fork.c (scoped_switch_fork_info)
14811 <scoped_switch_fork_info>: Make explicit.
14812 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14813
8d7bcccb
TT
148142019-01-10 Tom Tromey <tom@tromey.com>
14815
14816 * objfiles.h (objfile::reset_psymtabs): Update.
14817 * objfiles.c (objfile::objfile): Update.
14818 * psymtab.h (psymtab_storage::obstack): Update.
14819 (psymtab_storage::m_obstack): Use gdb::optional.
14820 (class psymtab_storage): Update comment. Remove objfile
14821 parameter.
14822 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14823
b596a3c7
TT
148242019-01-10 Tom Tromey <tom@tromey.com>
14825
14826 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14827 <free_psymtabs>: Now private.
14828 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14829 (allocate_psymtab): Use new method.
14830
a9342b62
TT
148312019-01-10 Tom Tromey <tom@tromey.com>
14832
14833 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14834 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14835 * mdebugread.c (parse_partial_symbols): Use
14836 allocate_dependencies.
14837 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14838 allocate_dependencies.
14839 (process_psymtab_comp_unit_reader)
14840 (build_type_psymtab_dependencies): Likewise.
14841 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14842
5af70966
TT
148432019-01-10 Tom Tromey <tom@tromey.com>
14844
14845 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14846 PSYMBOL_SET_LANGUAGE.
14847 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14848
5923a04c
TT
148492019-01-10 Tom Tromey <tom@tromey.com>
14850
14851 * psymtab.h (psymtab_storage::obstack): New method.
14852 <m_obstack>: Rename from obstack; now private.
14853 * psymtab.c (psymtab_storage): Update.
14854 * dwarf2read.c (create_addrmap_from_index)
14855 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14856 Update.
14857
6d6a12bf
TT
148582019-01-10 Tom Tromey <tom@tromey.com>
14859
14860 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14861 * objfiles.h (objfile::reset_psymtabs): New method.
14862
d320c2b5
TT
148632019-01-10 Tom Tromey <tom@tromey.com>
14864
14865 * symmisc.c (print_symbol_bcache_statistics): Update.
14866 (print_objfile_statistics): Update.
14867 * symfile.c (reread_symbols): Update.
14868 * psymtab.h (class psymtab_storage): New.
14869 * psymtab.c (psymtab_storage): New constructor.
14870 (~psymtab_storage): New destructor.
14871 (require_partial_symbols): Update.
14872 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14873 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14874 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14875 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14876 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14877 (start_psymtab_common, end_psymtab_common)
14878 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14879 (allocate_psymtab): Update.
14880 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14881 Update.
14882 (dump_psymtab_addrmap, maintenance_print_psymbols)
14883 (maintenance_check_psymtabs): Update.
14884 (class objfile_psymtabs): Move to objfiles.h.
14885 * psympriv.h (discard_psymtab): Now inline.
14886 (psymtab_discarder::psymtab_discarder): Update.
14887 (psymtab_discarder::~psymtab_discarder): Update.
14888 (ALL_OBJFILE_PSYMTABS): Rewrite.
14889 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14890 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14891 Remove fields.
14892 <partial_symtabs>: New field.
14893 (class objfile_psymtabs): Move from psymtab.h. Update.
14894 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14895 psymbol_cache.
14896 (objfile::~objfile): Don't destroy psymbol_cache.
14897 * mdebugread.c (parse_partial_symbols): Update.
14898 * dwarf2read.c (create_addrmap_from_index)
14899 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14900 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14901 (add_partial_subprogram, dwarf2_ranges_read): Update.
14902 * dwarf-index-write.c (write_address_map)
14903 (write_one_signatured_type, recursively_write_psymbols)
14904 (class debug_names, class debug_names, write_psymtabs_to_index):
14905 Update.
14906
1d94a5a3
TT
149072019-01-10 Tom Tromey <tom@tromey.com>
14908
14909 * symtab.h (SYMBOL_SET_NAMES): Update.
14910 (symbol_set_names): Update.
14911 (MSYMBOL_SET_NAMES): Update.
14912 * symtab.c (symbol_set_names): Change argument to be an
14913 objfile_per_bfd_storage.
14914 * psymtab.c (add_psymbol_to_bcache): Update.
14915 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14916
0f14768a
TT
149172019-01-10 Tom Tromey <tom@tromey.com>
14918
14919 * symtab.c (create_demangled_names_hash): Change argument to be an
14920 objfile_per_bfd_storage.
14921 (symbol_set_names): Update.
14922
6eee24ce
TT
149232019-01-10 Tom Tromey <tom@tromey.com>
14924
14925 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14926 init_psymbol_list.
14927 * psymtab.c (init_psymbol_list): Do nothing if already called.
14928 * psympriv.h (init_psymbol_list): Add comment.
14929 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14930 init_psymbol_list.
14931 * dbxread.c (dbx_symfile_read): Unconditionally call
14932 init_psymbol_list.
14933
75aedd27
TT
149342019-01-10 Tom Tromey <tom@tromey.com>
14935
14936 * xcoffread.c (scan_xcoff_symtab): Update.
14937 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14938 "where".
14939 * mdebugread.c (parse_partial_symbols)
14940 (handle_psymbol_enumerators): Update.
14941 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14942 * dbxread.c (read_dbx_symtab): Update.
14943 * psympriv.h (psymbol_placement): New enum.
14944 (add_psymbol_to_list): Update.
14945
939652a5
TT
149462019-01-10 Tom Tromey <tom@tromey.com>
14947
14948 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14949 static_psymbols parameters.
14950 (scan_xcoff_symtab): Update.
14951 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14952 static_psymbols parameters.
14953 * psympriv.h (start_psymtab_common): Update.
14954 * mdebugread.c (parse_partial_symbols): Update.
14955 * dwarf2read.c (create_partial_symtab): Update.
14956 * dbxread.c (read_dbx_symtab): Update.
14957 (start_psymtab): Remove global_psymbols and static_psymbols
14958 parameters.
14959
baa62830
TT
149602019-01-10 Tom Tromey <tom@tromey.com>
14961
14962 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14963 * psymtab.c (allocate_psymtab): Add comment.
14964 * psympriv.h (allocate_psymtab): Add comment.
14965 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14966 initializations.
14967 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14968
0e8f53ba
TT
149692019-01-10 Tom Tromey <tom@tromey.com>
14970
14971 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14972 Don't declare.
14973 * mipsread.c: Include mdebugread.h.
14974 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14975 Declare.
14976 * elfread.c: Include mdebugread.h.
14977
b22a7c6a
TT
149782019-01-09 Tom Tromey <tom@tromey.com>
14979
14980 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14981 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14982 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14983 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14984 (psym_lookup_symbol, psym_find_last_source_symtab)
14985 (psym_forget_cached_source_info, psym_print_stats)
14986 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14987 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14988 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14989 (psym_find_compunit_symtab_by_address)
14990 (maintenance_print_psymbols, maintenance_info_psymtabs)
14991 (maintenance_check_psymtabs): Use ranged for.
14992 * psymtab.h (class objfile_psymtabs): New.
14993 (require_partial_symbols): Return objfile_psymtabs.
14994 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14995
3b9d3ac2
TT
149962019-01-09 Tom Tromey <tom@tromey.com>
14997
14998 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14999 (find_pc_mapped_section, list_overlays_command)
15000 (map_overlay_command, unmap_overlay_command)
15001 (simple_overlay_update): Use all_objfiles.
15002 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15003 * printcmd.c (info_symbol_command): Use all_objfiles.
15004 * objfiles.h (ALL_OBJSECTIONS): Remove.
15005 * maint.c (maintenance_translate_address): Use all_objfiles.
15006 * gcore.c (gcore_create_callback): Use all_objfiles.
15007 (objfile_find_memory_regions): Likewise.
15008
8b31193a
TT
150092019-01-09 Tom Tromey <tom@tromey.com>
15010
15011 * symtab.c (find_line_symtab, info_sources_command)
15012 (make_source_files_completion_list): Use objfile_compunits.
15013 * source.c (select_source_symtab): Use objfile_compunits.
15014 * objfiles.h (struct objfile): Update comment.
15015 (ALL_OBJFILES): Remove.
15016 (ALL_FILETABS): Remove.
15017 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15018 objfile_compunits.
15019
d5da8b3c
TT
150202019-01-09 Tom Tromey <tom@tromey.com>
15021
15022 * symmisc.c (print_objfile_statistics, dump_objfile)
15023 (maintenance_print_symbols): Use compunit_filetabs.
15024 * source.c (forget_cached_source_info_for_objfile): Use
15025 compunit_filetabs.
15026 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15027 (ALL_FILETABS): Use compunit_filetabs.
15028 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15029 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15030
5accd1a0
TT
150312019-01-09 Tom Tromey <tom@tromey.com>
15032
15033 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15034 (compunit_filetabs): New.
15035 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15036 compunit_filetabs.
15037 (info_sources_command, make_source_files_completion_list): Remove
15038 declaration.
15039 * symmisc.c (print_objfile_statistics, dump_objfile)
15040 (maintenance_print_symbols): Remove declaration.
15041 (maintenance_info_symtabs): Use compunit_filetabs.
15042 (maintenance_info_line_tables): Likewise.
15043 * source.c (select_source_symtab): Change local variable name.
15044 (forget_cached_source_info_for_objfile): Remove declaration.
15045 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15046 * objfiles.c (objfile_relocate1): Remove declaration.
15047 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15048 declaration.
15049 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15050 * coffread.c (coff_symtab_read): Remove declaration.
15051 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15052 compunit_filetabs.
15053
d8aeb77f
TT
150542019-01-09 Tom Tromey <tom@tromey.com>
15055
15056 * symtab.c (lookup_objfile_from_block)
15057 (find_pc_sect_compunit_symtab, search_symbols)
15058 (default_collect_symbol_completion_matches_break_on): Use
15059 objfile_compunits.
15060 * objfiles.h (ALL_COMPUNITS): Remove.
15061 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15062 * cp-support.c (add_symbol_overload_list_qualified): Use
15063 objfile_compunits.
15064 * ada-lang.c (ada_collect_symbol_completion_matches)
15065 (ada_add_global_exceptions): Use objfile_compunits.
15066
592553c4
TT
150672019-01-09 Tom Tromey <tom@tromey.com>
15068
15069 * source.c (select_source_symtab)
15070 (forget_cached_source_info_for_objfile): Remove declaration.
15071 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15072 declaration.
15073 * maint.c (count_symtabs_and_blocks): Remove declaration.
15074 * cp-support.c (add_symbol_overload_list_qualified): Remove
15075 declaration.
15076 * coffread.c (coff_symtab_read): Remove declaration.
15077 * symtab.c (lookup_symbol_in_objfile_symtabs)
15078 (basic_lookup_transparent_type_1): Use objfile_compunits.
15079 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15080 (info_sources_command, search_symbols)
15081 (default_collect_symbol_completion_matches_break_on)
15082 (make_source_files_completion_list): Remove declaration.
15083 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15084 (ada_collect_symbol_completion_matches)
15085 (ada_add_global_exceptions): Remove declaration.
15086 * linespec.c (iterate_over_all_matching_symtabs): Use
15087 objfile_compunits.
15088 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15089 (class objfile_compunits): New.
15090 (ALL_COMPUNITS): Use objfile_compunits.
15091 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15092 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15093 objfile_compunits.
15094 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15095
5325b9bf
TT
150962019-01-09 Tom Tromey <tom@tromey.com>
15097
15098 * symtab.c (search_symbols)
15099 (default_collect_symbol_completion_matches_break_on): Use
15100 objfile_msymbols.
15101 * ada-lang.c (ada_lookup_simple_minsym)
15102 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15103 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15104 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15105 objfile_msymbols.
15106 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15107 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15108 * objc-lang.c (find_methods): Use objfile_msymbols.
15109 (info_selectors_command, info_classes_command): Likewise.
15110 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15111 * objfiles.h (class objfile_msymbols): New.
15112 (ALL_OBJFILE_MSYMBOLS): Remove.
15113 (ALL_MSYMBOLS): Remove.
15114
cac85af2
TT
151152019-01-09 Tom Tromey <tom@tromey.com>
15116
15117 * common/next-iterator.h (next_adapter): Add Iterator template
15118 parameter.
15119 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15120 (class all_objfiles_safe): New.
15121 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15122 * objfiles.c (put_objfile_before): Update comment.
15123 (add_separate_debug_objfile): Likewise.
15124 (free_all_objfiles): Use all_objfiles_safe.
15125 (objfile_purge_solibs): Likewise.
15126
aed57c53
TT
151272019-01-09 Tom Tromey <tom@tromey.com>
15128
15129 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15130 (expand_symtab_containing_pc, lookup_static_symbol)
15131 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15132 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15133 all_objfiles.
15134 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15135 * breakpoint.c (create_overlay_event_breakpoint)
15136 (create_longjmp_master_breakpoint)
15137 (create_std_terminate_master_breakpoint)
15138 (create_exception_master_breakpoint): Use all_objfiles.
15139 * linux-thread-db.c (try_thread_db_load_from_pdir)
15140 (has_libpthread): Use all_objfiles.
15141 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15142 * linespec.c (iterate_over_all_matching_symtabs)
15143 (search_minsyms_for_name): Use all_objfiles.
15144 * maint.c (maintenance_info_sections): Use all_objfiles.
15145 * main.c (captured_main_1): Use all_objfiles.
15146 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15147 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15148 * guile/scm-pretty-print.c
15149 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15150 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15151 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15152 (maintenance_print_msymbols): Use all_objfiles.
15153 * source.c (select_source_symtab): Use all_objfiles.
15154 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15155 * symfile.c (remove_symbol_file_command)
15156 (expand_symtabs_matching, map_symbol_filenames): Use
15157 all_objfiles.
15158 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15159 all_objfiles.
15160 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15161 * objc-lang.c (find_methods): Use all_objfiles.
15162 * objfiles.c (have_partial_symbols, have_full_symbols)
15163 (have_minimal_symbols, qsort_cmp)
15164 (default_iterate_over_objfiles_in_search_order): Use
15165 all_objfiles.
15166 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15167 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15168 (maintenance_check_psymtabs): Use all_objfiles.
15169 (ALL_PSYMTABS): Remove.
15170 * compile/compile-object-run.c (do_module_cleanup): Use
15171 all_objfiles.
15172 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15173 * cp-support.c (add_symbol_overload_list_qualified): Use
15174 all_objfiles.
15175 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15176 Use all_objfiles.
15177 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15178 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15179 all_objfiles.
15180 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15181 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15182 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15183 Uses all_objfiles.
15184 * solib.c (solib_read_symbols): Use all_objfiles
15185
99d89cde
TT
151862019-01-09 Tom Tromey <tom@tromey.com>
15187
15188 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15189 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15190 all_objfiles.
15191 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15192 * symmisc.c (print_symbol_bcache_statistics)
15193 (print_objfile_statistics, maintenance_print_objfiles)
15194 (maintenance_info_symtabs, maintenance_check_symtabs)
15195 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15196 all_objfiles.
15197 * source.c (forget_cached_source_info): Use all_objfiles.
15198 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15199 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15200 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15201 * objfiles.c (update_section_map): Use all_objfiles.
15202 (shared_objfile_contains_address_p): Likewise.
15203 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15204 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15205
21708325
TT
152062019-01-09 Tom Tromey <tom@tromey.com>
15207
15208 * common/next-iterator.h: New file.
15209 * objfiles.h (class all_objfiles): New.
15210 (struct objfile_iterator): New.
15211
669e09f6
PW
152122019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15213
15214 * NEWS: Move the description of the changed "frame", "select-frame",
15215 and "info frame" commands to the Changed commands section.
15216
041be526
SM
152172019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15218
15219 * gdbtypes.c (check_stub_method_group): Remove handling of old
15220 mangling schemes.
15221 * linespec.c (find_methods): Likewise.
15222 * stabsread.c (read_member_functions): Likewise.
15223 * valops.c (search_struct_method): Likewise.
15224 (value_struct_elt_for_reference): Likewise.
15225 * NEWS: Mention this change.
15226
0e2a2133
AB
152272019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15228
15229 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15230 print_source_lines.
15231 * source.c (print_source_lines_base): Update line number check.
15232 (print_source_lines): New function.
15233 (source_lines_range::source_lines_range): New function.
15234 * source.h (class source_lines_range): New class.
15235 (print_source_lines): New declaration.
15236
1055a3b4
PW
152372019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15238
15239 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15240
cfeadda5
TT
152412019-01-08 Tom Tromey <tom@tromey.com>
15242 Simon Marchi <simon.marchi@ericsson.com>
15243
15244 PR gdb/24060
15245 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15246 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15247 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15248 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15249 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15250 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15251
583068ca
AB
152522019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15253
15254 * source.c (select_source_symtab): Move header comment to
15255 declaration in source.h.
15256 (forget_cached_source_info_for_objfile): Likewise.
15257 (forget_cached_source_info): Likewise.
15258 (identify_source_line): Likewise.
15259 * source.h (identify_source_line): Move declaration from symtab.h
15260 and add comment from source.c
15261 (print_source_lines): Likewise.
15262 (forget_cached_source_info_for_objfile): Likewise.
15263 (forget_cached_source_info): Likewise.
15264 (select_source_symtab): Likewise.
15265 (enum print_source_lines_flag): Move definition from symtab.h.
15266 * symtab.h (identify_source_line): Move declaration to source.h.
15267 (print_source_lines): Likewise.
15268 (forget_cached_source_info_for_objfile): Likewise.
15269 (forget_cached_source_info): Likewise.
15270 (select_source_symtab): Likewise.
15271 (enum print_source_lines_flag): Move definition to source.h.
15272 * tui/tui-hooks.c: Add 'source.h' include.
15273
ec98a4ad
AB
152742019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15275
15276 * source.c (print_source_lines_base): Handle requests to print
15277 reverse line number sequences, and guard against empty lines
15278 string.
15279
62ea19c1
AB
152802019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15281
15282 * source.c (print_source_lines_base): Fix skip of '\r' if next
15283 character is '\n'.
15284
9d30e1fd
TT
152852019-01-06 Tom Tromey <tom@tromey.com>
15286
15287 * c-exp.y (struct c_parse_state) <macro_original_text,
15288 expansion_obstack>: New member.
15289 (macro_original_text, expansion_obstack): Remove globals.
15290 (scan_macro_expansion, scanning_macro_expansion)
15291 (finished_macro_expansion): Update.
15292 (scan_macro_cleanup): Remove.
15293 (yylex, c_parse): Update.
15294
c65bac38
TT
152952019-01-06 Tom Tromey <tom@tromey.com>
15296
15297 * c-exp.y (struct c_parse_state) <strings>: New member.
15298 (operator_stoken): Update.
15299
02e12e38
TT
153002019-01-06 Tom Tromey <tom@tromey.com>
15301
15302 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15303 (union type_stack_elt) <typelist_val>: Now a pointer to
15304 std::vector.
15305 (type_stack_cleanup): Don't declare.
15306 (push_typelist): Update.
15307 * parse.c (pop_typelist): Return a std::vector.
15308 (push_typelist): Take a std::vector.
15309 (follow_types): Update. Do not free args.
15310 (type_stack_cleanup): Remove.
15311 * c-exp.y (struct c_parse_state): New.
15312 (cpstate): New global.
15313 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15314 (nonempty_typelist): Update.
15315 (func_mod): Create a new vector.
15316 (c_parse): Create a c_parse_state.
15317 (check_parameter_typelist): Do not delete params.
15318 (function_method): Update. Do not delete type_list.
15319
f097f5ad
TT
153202019-01-06 Tom Tromey <tom@tromey.com>
15321
15322 PR gdb/28155:
15323 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15324 check_typedef.
15325 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15326 (print_return_value): Likewise.
15327
d2adf9f1
TT
153282019-01-05 Tom Tromey <tom@tromey.com>
15329
15330 * contrib/cleanup_check.py: Remove.
15331 * contrib/gcc-with-excheck: Remove.
15332 * contrib/exsummary.py: Remove.
15333 * contrib/excheck.py: Remove.
15334
2eab46b1
JB
153352019-01-05 Joel Brobecker <brobecker@adacore.com>
15336
15337 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15338 NULL. Initialize tpprev to NULL instead of assigning it
15339 to NULL on the next statement.
15340 * windows-nat.c (windows_delete_thread): Remove check for
15341 main_thread_id before printing thread exit notifications.
15342 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15343 Remove thread ID check against main_thread_id.
15344 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15345 windows_delete_thread.
15346 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15347
48c5e7e2
TT
153482019-01-04 Tom Tromey <tom@tromey.com>
15349
15350 * compile/compile.c (_initialize_compile): Use upper case for
15351 metasyntactic variables.
15352 * symmisc.c (_initialize_symmisc): Use upper case for
15353 metasyntactic variables.
15354 * psymtab.c (_initialize_psymtab): Use upper case for
15355 metasyntactic variables.
15356 * demangle.c (demangle_command): Use upper case for metasyntactic
15357 variables.
15358 (_initialize_demangler): Likewise.
15359 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15360 variables.
15361
986041cd
TT
153622019-01-03 Tom Tromey <tom@tromey.com>
15363
15364 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15365
7c711119
TT
153662019-01-03 Tom Tromey <tom@tromey.com>
15367
15368 * python/py-symtab.c (salpy_str): Update.
15369 (struct salpy_sal_object) <symtab>: Now a PyObject.
15370 (salpy_dealloc): Update.
15371 (del_objfile_sal): Use gdbpy_ref.
15372
1b20edf0
TT
153732019-01-03 Tom Tromey <tom@tromey.com>
15374
15375 * python/py-type.c (convert_field): Use new_reference. Return
15376 gdbpy_ref.
15377 (make_fielditem): Return gdbpy_ref.
15378 (typy_fields): Update.
15379 (typy_getitem): Update.
15380 (field_name): Return gdbpy_ref. Use new_reference.
15381 (typy_iterator_iternext): Update.
15382
ea41325b
TT
153832019-01-03 Tom Tromey <tom@tromey.com>
15384
15385 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15386
2a3c71d6
TT
153872019-01-03 Tom Tromey <tom@tromey.com>
15388
15389 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15390 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15391 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15392 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15393 (pspy_set_type_printers): Likewise.
15394 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15395 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15396 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15397 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15398 (objfpy_set_type_printers): Likewise.
15399
5c329e6a
TT
154002019-01-03 Tom Tromey <tom@tromey.com>
15401
15402 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15403 (gdbpy_print_stack): Use gdbpy_err_fetch.
15404 * python/python-internal.h (class gdbpy_err_fetch): New class.
15405 (class gdbpy_enter) <m_error_type, m_error_value,
15406 m_error_traceback>: Remove.
15407 <m_error>: New member.
15408 (gdbpy_exception_to_string): Don't declare.
15409 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15410 * python/py-value.c (convert_value_from_python): Use
15411 gdbpy_err_fetch.
15412 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15413 gdbpy_exception_to_string.
15414 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15415 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15416 gdbpy_err_fetch.
15417
169bb27b
AB
154182019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15419
15420 * linux-nat.c (delete_lwp_cleanup): Delete.
15421 (struct lwp_deleter): New struct.
15422 (lwp_info_up): New typedef.
15423 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15424 lwp_info_up.
15425
a07c8880
AB
154262019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15427
15428 * linux-fork.c (class scoped_switch_fork_info): New class.
15429 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15430
26089c49
AB
154312019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15432
15433 * valops.c (find_overload_match): Remove use of null_cleanup, and
15434 calls to do_cleanups.
15435
06d3e5b0
AB
154362019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15437
15438 * compile/compile-cplus-types.c
15439 (compile_cplus_instance::decl_name): Handle changes to
15440 cp_func_name.
15441 * cp-support.c (cp_func_name): Update header comment, update
15442 return type.
15443 * cp-support.h (cp_func_name): Update return type in declaration.
15444 * valops.c (find_overload_match): Move temp_func local to top
15445 level of function and change its type. Use temp_func to hold and
15446 delete temporary string obtained from cp_func_name.
15447
66644cd3
AB
154482019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15449
15450 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15451 gdb::char_vector, remove cleanup, and update uses of `msg`.
15452
592d8c0a
JW
154532019-01-03 Jim Wilson <jimw@sifive.com>
15454
15455 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15456
c55d06ec
TT
154572019-01-02 Tom Tromey <tom@tromey.com>
15458
15459 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15460 (tdesc_parse_xml): Remove cleanups.
15461 * target-descriptions.h (make_cleanup_free_target_description):
15462 Don't declare.
15463 (target_desc_deleter): New struct.
15464 (target_desc_up): New typedef.
15465 * target-descriptions.c (target_desc_deleter::operator()): Rename
15466 from free_target_description.
15467 (make_cleanup_free_target_description): Remove.
15468
3a6ae42d
TT
154692019-01-02 Tom Tromey <tom@tromey.com>
15470
15471 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15472 constructor, destructor.
15473 (linespec_parser): Remove typedef.
15474 (~linespec_parser): Rename from linespec_parser_delete.
15475 (linespec_lex_to_end, linespec_complete_label)
15476 (linespec_complete): Update.
15477 (decode_line_full): Remove cleanups.
15478 (decode_line_1): Update.
15479
61fd3e73
TT
154802019-01-02 Tom Tromey <tom@tromey.com>
15481
15482 * python/python-internal.h (inferior_to_inferior_object): Change
15483 return type.
15484 * python/py-exitedevent.c (create_exited_event_object): Update.
15485 * python/py-inferior.c (inferior_to_inferior_object): Return
15486 gdbpy_ref.
15487 (python_new_inferior, python_inferior_deleted)
15488 (thread_to_thread_object, delete_thread_object)
15489 (build_inferior_list, gdbpy_selected_inferior): Update.
15490 * python/py-infthread.c (create_thread_object): Update. Also fail
15491 if inferior_to_inferior_object fails.
15492
d20172fc
SM
154932019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15494
15495 * inferior.h (class inferior) <displaced_step_state>: New field.
15496 * infrun.h (struct displaced_step_state): Move here from
15497 infrun.c. Initialize fields, add constructor.
15498 <inf>: Remove field.
15499 <reset>: New method.
15500 * infrun.c (struct displaced_step_inferior_state): Move to
15501 infrun.h.
15502 (displaced_step_inferior_states): Remove.
15503 (get_displaced_stepping_state): Adust.
15504 (displaced_step_in_progress_any_inferior): Adjust.
15505 (displaced_step_in_progress_thread): Adjust.
15506 (displaced_step_in_progress): Adjust.
15507 (add_displaced_stepping_state): Remove.
15508 (get_displaced_step_closure_by_addr): Adjust.
15509 (remove_displaced_stepping_state): Remove.
15510 (infrun_inferior_exit): Call displaced_step_state.reset.
15511 (use_displaced_stepping): Don't check for NULL.
15512 (displaced_step_prepare_throw): Call
15513 get_displaced_stepping_state.
15514 (displaced_step_fixup): Don't check for NULL.
15515 (prepare_for_detach): Don't check for NULL.
15516
e3319240
PW
155172019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15518
15519 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15520 in case of call that did not complete.
15521
5d36dfb9
AU
155222019-01-02 Andrey Utkin <autkin@undo.io>
15523
15524 * symfile.c (find_separate_debug_file): Fix search of debug files for
15525 remote debuggee.
15526
8833fbf0
TT
155272019-01-02 Tom Tromey <tom@tromey.com>
15528
15529 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15530 indentation.
15531 * python/py-frame.c (frapy_older): Remove cast.
15532 (frapy_newer): Likewise.
15533 * python/py-breakpoint.c (local_setattro): Remove cast.
15534 * python/py-arch.c (archpy_name): Remove local variable.
15535 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15536
4ada3dfd
JB
155372019-01-02 Joel Brobecker <brobecker@adacore.com>
15538
15539 * unittests/basic_string_view/element_access/char/empty.cc:
15540 Fix year range in copyright header.
15541
113b7b81
AB
155422019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15543
15544 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15545 Delete.
15546 <operator==>: Update with for removed field.
15547 <hash>: Likewise.
15548 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15549 <isa_features>: ...this.
15550 <abi_features>: New field.
15551 (riscv_isa_flen): Update comment.
15552 (riscv_abi_xlen): New declaration.
15553 (riscv_abi_flen): New declaration.
15554 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15555 isa_features.
15556 (riscv_abi_xlen): New function.
15557 (riscv_isa_flen): Update to get answer from isa_features.
15558 (riscv_abi_flen): New function.
15559 (riscv_has_fp_abi): Update to get answer from abi_features.
15560 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15561 xlen and flen.
15562 (riscv_call_info) <xlen, flen>: Update comment.
15563 (riscv_call_arg_struct): Remove invalid assertions
15564 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15565 is removed.
15566 (riscv_gdbarch_init): Gather isa features and abi features
15567 separately, ensure both match on the gdbarch when reusing an old
15568 gdbarch. Relax an error check to allow 32-bit abi float to run on
15569 a target with 64-bit float hardware.
15570
b18ca514
PW
155712019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15572
15573 * source.c (search_command_helper): Stop reverse search
15574 when line 1 has been searched.
15575
ec70d8db
PW
155762019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15577
15578 * record-full.c (record_full_base_target::close): Rewrite
15579 record_full_core_buf_list free logic.
15580
5b38f9c1
PW
155812019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15582
15583 * break-catch-syscall.c (print_one_catch_syscall): xfree
15584 the last text.
15585
66d91b39
JB
155862019-01-01 Joel Brobecker <brobecker@adacore.com>
15587
15588 * top.c (print_gdb_version): Update Copyright year in version
15589 message.
15590
42a4f53d
JB
155912019-01-01 Joel Brobecker <brobecker@adacore.com>
15592
15593 Update copyright year range in all GDB files.
15594
7e955d83 155952019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 15596
5bbd631d 15597 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 15598
5bbd631d 15599For older changes see ChangeLog-2018.
c906108c
SS
15600\f
15601Local Variables:
15602mode: change-log
15603left-margin: 8
15604fill-column: 74
15605version-control: never
57da7796 15606coding: utf-8
c906108c 15607End:
5bbd631d 15608
This page took 2.801896 seconds and 4 git commands to generate.